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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e7a6fc86454876b69fd90b4996cead630be38e6 | 364 | py | Python | python/unary_unpack.py | Floozutter/tome | 8aa7f2d6b4705952600f678c35c5eb0d8e61c9d4 | [
"Unlicense"
] | null | null | null | python/unary_unpack.py | Floozutter/tome | 8aa7f2d6b4705952600f678c35c5eb0d8e61c9d4 | [
"Unlicense"
] | null | null | null | python/unary_unpack.py | Floozutter/tome | 8aa7f2d6b4705952600f678c35c5eb0d8e61c9d4 | [
"Unlicense"
] | null | null | null | """
getting the value out of a singleton set!
"""
from typing import TypeVar, NoReturn
T = TypeVar("T")
def unary_unpack(singleton: set[T]) -> T:
value ,= singleton
return value
if __name__ == "__main__":
singleton = {0xdeadbeef}
empty: set[NoReturn] = set()
some = {2, 3, 5}
many = {range(1_0... | 20.222222 | 41 | 0.642857 | 49 | 364 | 4.530612 | 0.653061 | 0.108108 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038596 | 0.217033 | 364 | 17 | 42 | 21.411765 | 0.740351 | 0.112637 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e83e9bb88c52a00d6b0a5db02b17272bd88c5fc | 183 | py | Python | romeo.py | sgriffith3/PythonBasics7-22-19 | ca41afcbfa655454234956401441c18273cf15a7 | [
"MIT"
] | 1 | 2019-07-22T14:22:38.000Z | 2019-07-22T14:22:38.000Z | romeo.py | sgriffith3/PythonBasics7-22-19 | ca41afcbfa655454234956401441c18273cf15a7 | [
"MIT"
] | null | null | null | romeo.py | sgriffith3/PythonBasics7-22-19 | ca41afcbfa655454234956401441c18273cf15a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
count = 0
with open("romeo.txt") as romeo:
text = romeo.readlines()
for line in text:
if "ROMEO" in line:
count += 1
print(count)
| 16.636364 | 32 | 0.57377 | 27 | 183 | 3.888889 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.295082 | 183 | 10 | 33 | 18.3 | 0.790698 | 0.114754 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 |
3e88342835a08975bf1575773be9c61215c1a3b0 | 352 | py | Python | bench/flink-gelly/community-detection/generate_random_edges.py | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 4 | 2018-05-22T02:01:26.000Z | 2020-10-13T04:55:30.000Z | bench/flink-gelly/community-detection/generate_random_edges.py | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 1 | 2018-08-16T22:36:03.000Z | 2018-08-16T22:36:03.000Z | bench/flink-gelly/community-detection/generate_random_edges.py | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 7 | 2018-05-21T23:37:38.000Z | 2021-03-18T01:45:56.000Z | import random
import os
import sys
if len(sys.argv) != 3:
sys.stderr.write('usage: python generate_random_edges.py <# records> <# vertices>\n')
sys.exit(1)
nrecords = int(sys.argv[1])
nvertices = int(sys.argv[2])
i = 0
while i < nrecords:
print(str(random.randint(0, nvertices-1)) + ' ' + str(random.randi... | 22 | 90 | 0.653409 | 56 | 352 | 4.071429 | 0.535714 | 0.092105 | 0.087719 | 0.149123 | 0.236842 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0.034364 | 0.173295 | 352 | 15 | 91 | 23.466667 | 0.749141 | 0 | 0 | 0 | 1 | 0 | 0.1875 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e8a03e0c659525ea6b0719c196e41c1eeb2e06c | 1,895 | py | Python | snowflake_dir/snowflake_connect.py | suniyahminhas/iw-tech-test-snowflake | c779af7d494f335d91bd262d0458abf8b2122df3 | [
"MIT"
] | null | null | null | snowflake_dir/snowflake_connect.py | suniyahminhas/iw-tech-test-snowflake | c779af7d494f335d91bd262d0458abf8b2122df3 | [
"MIT"
] | null | null | null | snowflake_dir/snowflake_connect.py | suniyahminhas/iw-tech-test-snowflake | c779af7d494f335d91bd262d0458abf8b2122df3 | [
"MIT"
] | 1 | 2021-04-22T20:32:01.000Z | 2021-04-22T20:32:01.000Z | import snowflake.connector
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
import os
class SnowflakeConnection:
def __init__(self, **kwargs):
self.user = kwargs.get("user")
self.password = kwargs.get("password")
self.warehou... | 33.839286 | 74 | 0.61372 | 201 | 1,895 | 5.567164 | 0.278607 | 0.107239 | 0.050045 | 0.048257 | 0.035746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000729 | 0.275989 | 1,895 | 55 | 75 | 34.454545 | 0.814869 | 0 | 0 | 0 | 0 | 0 | 0.086016 | 0.011082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.065217 | 0.086957 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3e8db7a8578be4fb1b73ce717866825c91bc98c1 | 674 | py | Python | nasws/cnn/search_space/darts/interactive_darts_space_test.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | 8 | 2021-04-13T01:52:11.000Z | 2022-03-30T03:53:12.000Z | nasws/cnn/search_space/darts/interactive_darts_space_test.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | 4 | 2021-05-29T01:41:00.000Z | 2021-08-24T09:40:43.000Z | nasws/cnn/search_space/darts/interactive_darts_space_test.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | null | null | null | #%%
# init
# used everywhere.
from IPython import get_ipython
from torch.optim import SGD
if get_ipython() is not None:
get_ipython().run_line_magic('load_ext', 'autoreload')
get_ipython().run_line_magic('autoreload', '2')
get_ipython().system('nvidia-smi')
from argparse import Namespace
import sys
import ... | 24.071429 | 58 | 0.737389 | 104 | 674 | 4.634615 | 0.471154 | 0.103734 | 0.099585 | 0.112033 | 0.410788 | 0.207469 | 0 | 0 | 0 | 0 | 0 | 0.004983 | 0.106825 | 674 | 27 | 59 | 24.962963 | 0.795681 | 0.106825 | 0 | 0 | 0 | 0 | 0.252931 | 0.108878 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3e92240f4d282d274be64b10b828b284579e7f8a | 521 | py | Python | scripts/quest/q22004e.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 2 | 2020-04-15T03:16:07.000Z | 2020-08-12T23:28:32.000Z | scripts/quest/q22004e.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/quest/q22004e.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 3 | 2020-08-25T06:55:25.000Z | 2020-12-01T13:07:43.000Z | # 22004 | Fixing the Fence (Evan intro)
sm.setSpeakerID(1013103)
sm.sendNext("Ah, did you bring all the Thick Branches? That's my kid! What shall i give you as reward?... Let's see... Oh, right! \r\n #fUI/UIWindow2.img/QuestIcon/4/0# \r\n #v3010097# Strong Wooden Chair \r\n #fUI/UIWindow2.img/QuestIcon/8/0# 210 exp")... | 47.363636 | 253 | 0.700576 | 87 | 521 | 4.195402 | 0.724138 | 0.016438 | 0.027397 | 0.076712 | 0.142466 | 0.142466 | 0 | 0 | 0 | 0 | 0 | 0.102506 | 0.15739 | 521 | 11 | 254 | 47.363636 | 0.728929 | 0.074856 | 0 | 0.2 | 0 | 0.1 | 0.580042 | 0.137214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9240ba47e66453315fab4ec52a2db55e61980e | 2,252 | py | Python | models/lgblkb_model.py | lgblkb/nu_abda | 59174f17037fdfae870e2bf1fea6a8f70c8c78b8 | [
"MIT"
] | null | null | null | models/lgblkb_model.py | lgblkb/nu_abda | 59174f17037fdfae870e2bf1fea6a8f70c8c78b8 | [
"MIT"
] | 2 | 2021-06-08T21:26:27.000Z | 2021-09-08T01:58:42.000Z | models/lgblkb_model.py | lgblkb/nu_abda | 59174f17037fdfae870e2bf1fea6a8f70c8c78b8 | [
"MIT"
] | null | null | null | import torch.nn as nn
def conv_relu(*args, module=nn.Conv2d, **kwargs):
return module(*args, **kwargs), nn.ReLU()
def get_pipelined_conv_relu(in_channels, resultant_out_channels, strip_ending=False, **kwargs):
items = list()
for out_channels in resultant_out_channels:
items.extend(conv_relu(in_c... | 36.322581 | 95 | 0.306838 | 153 | 2,252 | 4.215686 | 0.398693 | 0.062016 | 0.074419 | 0.093023 | 0.086822 | 0.086822 | 0.086822 | 0 | 0 | 0 | 0 | 0.053269 | 0.633215 | 2,252 | 61 | 96 | 36.918033 | 0.727603 | 0.015098 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.040816 | 0.020408 | 0.020408 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4213b3eec025aa7410e0f5a2673f38dc410b70c | 3,280 | py | Python | GameEngine/game_master.py | OmarJabri7/UofG_Robotics_TDP | 8c0ce98c7bf03a0bc2d826463fbc0b5ce2354e4f | [
"MIT"
] | 1 | 2021-04-17T18:16:01.000Z | 2021-04-17T18:16:01.000Z | GameEngine/game_master.py | OmarJabri7/UofG_Robotics_TDP | 8c0ce98c7bf03a0bc2d826463fbc0b5ce2354e4f | [
"MIT"
] | null | null | null | GameEngine/game_master.py | OmarJabri7/UofG_Robotics_TDP | 8c0ce98c7bf03a0bc2d826463fbc0b5ce2354e4f | [
"MIT"
] | null | null | null | from GameEngine.robot_model import RobotBasicModel
from GameEngine.ball_model import BallBasicModel, BallActions
# import matplotlib.pyplot as plt
from GameEngine.visualizer import BasicVisualizer
from GameEngine.game_simulator import GameSimulator
import logging
class BaseGameMaster:
def __init__(self):
... | 32.156863 | 104 | 0.618293 | 407 | 3,280 | 4.732187 | 0.304668 | 0.049844 | 0.043614 | 0.049325 | 0.030114 | 0.030114 | 0 | 0 | 0 | 0 | 0 | 0.0269 | 0.285976 | 3,280 | 101 | 105 | 32.475248 | 0.795474 | 0.134756 | 0 | 0.086207 | 0 | 0 | 0.046206 | 0.009016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.051724 | 0.086207 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e421f221f4a4dc898aab4a0ddc1ce44663152427 | 11,809 | py | Python | pywren/scripts/standalone.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | pywren/scripts/standalone.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | pywren/scripts/standalone.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pywren
import boto3
import click
import shutil
import os
import json
import zipfile
from glob2 import glob
import io
import time
import botocore
from multiprocessing import Process
from pywren import wrenhandler
import logging
import watchtower
import subprocess
import math
try:
# For... | 37.13522 | 155 | 0.618003 | 1,422 | 11,809 | 4.855837 | 0.216596 | 0.020854 | 0.035771 | 0.04895 | 0.351484 | 0.268791 | 0.234033 | 0.211151 | 0.198117 | 0.178711 | 0 | 0.013062 | 0.293336 | 11,809 | 317 | 156 | 37.252366 | 0.81438 | 0.069862 | 0 | 0.182648 | 0 | 0.009132 | 0.12795 | 0.007526 | 0 | 0 | 0 | 0.006309 | 0 | 0 | null | null | 0 | 0.091324 | null | null | 0.004566 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e421f37ac94c9f573ff328dd4e15002cf3344cba | 438 | py | Python | asados/migrations/0004_auto_20171023_1303.py | TenStrings/organizador-de-asados | 5f8ede2ca5c8f9d2faf7fec316c4014142113464 | [
"MIT"
] | null | null | null | asados/migrations/0004_auto_20171023_1303.py | TenStrings/organizador-de-asados | 5f8ede2ca5c8f9d2faf7fec316c4014142113464 | [
"MIT"
] | null | null | null | asados/migrations/0004_auto_20171023_1303.py | TenStrings/organizador-de-asados | 5f8ede2ca5c8f9d2faf7fec316c4014142113464 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-23 13:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('asados', '0003_auto_20171022_2103'),
]
operations = [
migrations.AlterField... | 20.857143 | 48 | 0.607306 | 47 | 438 | 5.468085 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 0.273973 | 438 | 20 | 49 | 21.9 | 0.704403 | 0.155251 | 0 | 0 | 1 | 0 | 0.103542 | 0.06267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e42c093d87a745578bb8b9c0a6fbb18455a45ca8 | 720 | py | Python | calliope_app/api/migrations/0026_help_guide.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | 3 | 2021-01-25T18:13:00.000Z | 2021-04-30T12:17:42.000Z | calliope_app/api/migrations/0026_help_guide.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | 8 | 2020-12-11T22:28:17.000Z | 2022-03-05T02:08:27.000Z | calliope_app/api/migrations/0026_help_guide.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | 1 | 2021-09-15T22:15:12.000Z | 2021-09-15T22:15:12.000Z | # Generated by Django 2.1.4 on 2019-11-07 20:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0025_auto_20191106_2001'),
]
operations = [
migrations.CreateModel(
name='Help_Guide',
fields=[
... | 27.692308 | 114 | 0.543056 | 73 | 720 | 5.191781 | 0.712329 | 0.07124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069815 | 0.323611 | 720 | 25 | 115 | 28.8 | 0.708419 | 0.0625 | 0 | 0 | 1 | 0 | 0.15156 | 0.034175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e42e3a259c0dff76f25c35237ca731098a5b1704 | 474 | py | Python | products/migrations/0005_auto_20200806_2308.py | vladoprea/dream-woollies | 7113400a03e4047312b88a3afff7e5969ff96f6b | [
"W3C",
"PostgreSQL"
] | null | null | null | products/migrations/0005_auto_20200806_2308.py | vladoprea/dream-woollies | 7113400a03e4047312b88a3afff7e5969ff96f6b | [
"W3C",
"PostgreSQL"
] | 5 | 2021-06-04T23:31:01.000Z | 2021-09-22T19:18:34.000Z | products/migrations/0005_auto_20200806_2308.py | vladoprea/dream-woollies | 7113400a03e4047312b88a3afff7e5969ff96f6b | [
"W3C",
"PostgreSQL"
] | 1 | 2020-08-17T14:27:29.000Z | 2020-08-17T14:27:29.000Z | # Generated by Django 3.0.7 on 2020-08-06 22:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0004_auto_20200806_2257'),
]
operations = [
migrations.AlterField(
model_name='review',
name='rate',
... | 24.947368 | 139 | 0.537975 | 55 | 474 | 4.563636 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122857 | 0.261603 | 474 | 18 | 140 | 26.333333 | 0.594286 | 0.094937 | 0 | 0 | 1 | 0 | 0.142857 | 0.053864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e434e3cf42bb609adc1b2d702820160fe0173d8b | 876 | py | Python | modes/__init__.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | 3 | 2020-07-14T13:01:45.000Z | 2022-02-04T04:32:13.000Z | modes/__init__.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | null | null | null | modes/__init__.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | 1 | 2022-02-03T15:46:20.000Z | 2022-02-03T15:46:20.000Z | from modes import _analyse as fit
from modes import design, materials
from modes.config import CONFIG
from modes.coupling_efficiency import coupling_efficiency
from modes.group_index import group_index
from modes.mode_solver_full import mode_solver_full
from modes.mode_solver_semi import mode_solver_semi
from modes.nef... | 25.028571 | 76 | 0.762557 | 112 | 876 | 5.508929 | 0.294643 | 0.160454 | 0.068071 | 0.061588 | 0.132901 | 0.132901 | 0 | 0 | 0 | 0 | 0 | 0.004071 | 0.158676 | 876 | 34 | 77 | 25.764706 | 0.833107 | 0 | 0 | 0 | 0 | 0 | 0.203196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.366667 | 0 | 0.366667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e43741ae6df3927ba979dc553b1f285a9c07f7a0 | 1,789 | py | Python | src/functions/icloudmail.py | lalaveine/VoiceAssistant | 3742de4b305ba0e9bd34f3a9914a20ec64e17397 | [
"MIT"
] | null | null | null | src/functions/icloudmail.py | lalaveine/VoiceAssistant | 3742de4b305ba0e9bd34f3a9914a20ec64e17397 | [
"MIT"
] | 3 | 2021-02-08T20:33:39.000Z | 2021-06-02T00:00:21.000Z | src/functions/icloudmail.py | lalaveine/VoiceAssistant | 3742de4b305ba0e9bd34f3a9914a20ec64e17397 | [
"MIT"
] | 1 | 2020-04-17T18:40:09.000Z | 2020-04-17T18:40:09.000Z | import smtplib
import imaplib
import ssl
import email
# Import the email modules we'll need
from email.message import EmailMessage
smtp_server = "smtp.mail.me.com"
starttls_port = 587
smtp_login = ""
imap_server = "imap.mail.me.com"
imap_port = 993
imap_login = ""
password = ""
def send_email(receiver_email, mess... | 24.506849 | 65 | 0.667971 | 234 | 1,789 | 4.897436 | 0.376068 | 0.048866 | 0.015707 | 0.04363 | 0.048866 | 0.048866 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.21744 | 1,789 | 72 | 66 | 24.847222 | 0.807857 | 0.162661 | 0 | 0.040816 | 0 | 0 | 0.053945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.061224 | 0.102041 | 0 | 0.142857 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e441b54f15188a0b3c41d5179d8314f1bbe48399 | 356 | py | Python | setup.py | Lioheart/Weterynarz | bc70a6a768e2d0ecd15ff15843bf2289a34c23ac | [
"Unlicense"
] | 1 | 2020-04-16T12:11:20.000Z | 2020-04-16T12:11:20.000Z | setup.py | Lioheart/Weterynarz | bc70a6a768e2d0ecd15ff15843bf2289a34c23ac | [
"Unlicense"
] | null | null | null | setup.py | Lioheart/Weterynarz | bc70a6a768e2d0ecd15ff15843bf2289a34c23ac | [
"Unlicense"
] | null | null | null | """
https://github.com/thecodemonkey86/qt_mysql_driver
"""
from setuptools import setup
setup(
name='Weterynarz',
version='0.0.1',
packages=[''],
url='',
license='',
author='Jakub Hawro;Paweł Żelazek',
author_email='',
description='Projekt na zaliczenie',
install_requires=['PyQt5==5... | 20.941176 | 64 | 0.648876 | 41 | 356 | 5.536585 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.168539 | 356 | 16 | 65 | 22.25 | 0.733108 | 0.140449 | 0 | 0 | 0 | 0 | 0.322148 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e44691acf27b8884e49a65fff156b02c9391f84d | 520 | py | Python | example/main.py | oplik0/aiohttp_rest_api | 0b317180b66b3f856ca33de4d2271ed34f82a696 | [
"MIT"
] | null | null | null | example/main.py | oplik0/aiohttp_rest_api | 0b317180b66b3f856ca33de4d2271ed34f82a696 | [
"MIT"
] | null | null | null | example/main.py | oplik0/aiohttp_rest_api | 0b317180b66b3f856ca33de4d2271ed34f82a696 | [
"MIT"
] | null | null | null | import os
from aiohttp import web
from aiohttp_rest_api.loader import load_and_connect_all_endpoints_from_folder, get_swagger_documentation
from aiohttp_rest_api.swagger import setup_swagger
import logging
logging.basicConfig(level=logging.DEBUG)
app = web.Application()
load_and_connect_all_endpoints_from_folder(
... | 28.888889 | 105 | 0.815385 | 76 | 520 | 5.197368 | 0.473684 | 0.083544 | 0.075949 | 0.091139 | 0.182278 | 0.182278 | 0.182278 | 0 | 0 | 0 | 0 | 0.006316 | 0.086538 | 520 | 18 | 106 | 28.888889 | 0.825263 | 0 | 0 | 0 | 0 | 0 | 0.034549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e454e3a74fe5def6299fcd57bb198d52cb39d30d | 17,245 | py | Python | tests/test_edifice.py | fding/pyedifice | 53007e112912d870c9202e14c9d8a0884d83bf24 | [
"MIT"
] | 151 | 2021-01-26T16:29:26.000Z | 2022-03-29T07:16:12.000Z | tests/test_edifice.py | fding/pyedifice | 53007e112912d870c9202e14c9d8a0884d83bf24 | [
"MIT"
] | 16 | 2021-01-27T20:40:48.000Z | 2022-03-29T07:28:15.000Z | tests/test_edifice.py | fding/pyedifice | 53007e112912d870c9202e14c9d8a0884d83bf24 | [
"MIT"
] | 7 | 2021-02-02T17:09:04.000Z | 2021-12-21T18:46:11.000Z | import unittest
import unittest.mock
import edifice._component as component
import edifice.engine as engine
import edifice.base_components as base_components
from edifice.qt import QT_VERSION
if QT_VERSION == "PyQt5":
from PyQt5 import QtWidgets
else:
from PySide2 import QtWidgets
if QtWidgets.QApplication.in... | 36.536017 | 160 | 0.612815 | 1,913 | 17,245 | 5.214323 | 0.092002 | 0.054135 | 0.03609 | 0.039699 | 0.770426 | 0.716792 | 0.667769 | 0.638697 | 0.590075 | 0.576642 | 0 | 0.013638 | 0.289939 | 17,245 | 471 | 161 | 36.613588 | 0.80098 | 0.051841 | 0 | 0.62069 | 0 | 0 | 0.006957 | 0 | 0 | 0 | 0 | 0.002123 | 0.123563 | 1 | 0.132184 | false | 0.005747 | 0.022989 | 0.017241 | 0.284483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45b64bd24ecc07b2c48cde4c33f6b5ed8d0b19d | 6,507 | py | Python | CalcPara.py | mscook/pyParaTools | 5db60329519c1550a8480d2ace0ecd0dcfbf1255 | [
"ECL-2.0"
] | 2 | 2020-04-15T23:04:42.000Z | 2021-01-27T21:34:14.000Z | CalcPara.py | mscook/pyParaTools | 5db60329519c1550a8480d2ace0ecd0dcfbf1255 | [
"ECL-2.0"
] | null | null | null | CalcPara.py | mscook/pyParaTools | 5db60329519c1550a8480d2ace0ecd0dcfbf1255 | [
"ECL-2.0"
] | null | null | null | #TODO: Test and check current test coverage
#TODO: Check that the calculation over multiple ParsedObjs works correctly
#TODO: Ensure that the average calculated is true
#NOTE: All above can be adressed in the testing framework test_CalcPara.py
import math
import sys
from ParaUtils import *
class CalcPara:
"""C... | 41.711538 | 80 | 0.50146 | 773 | 6,507 | 4.168176 | 0.203105 | 0.085351 | 0.007449 | 0.020484 | 0.570453 | 0.524209 | 0.497207 | 0.476412 | 0.476412 | 0.445996 | 0 | 0.02998 | 0.379745 | 6,507 | 155 | 81 | 41.980645 | 0.768335 | 0.036269 | 0 | 0.542056 | 0 | 0 | 0.036755 | 0 | 0 | 0 | 0 | 0.006452 | 0 | 0 | null | null | 0 | 0.028037 | null | null | 0.056075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45f0960fb7599d86be1c35d947739e3b3bdb4c3 | 4,282 | py | Python | mem_prof.py | YangZhou1997/NetBricks-GEM5 | 3cf8b30492ee48abdc437dd497aa089d18a20d52 | [
"0BSD"
] | null | null | null | mem_prof.py | YangZhou1997/NetBricks-GEM5 | 3cf8b30492ee48abdc437dd497aa089d18a20d52 | [
"0BSD"
] | null | null | null | mem_prof.py | YangZhou1997/NetBricks-GEM5 | 3cf8b30492ee48abdc437dd497aa089d18a20d52 | [
"0BSD"
] | null | null | null | import os
import time
from termcolor import colored
import datetime
import threading
from threading import Event, Thread
# 5 pages from the monitoring to dpdk
# cgroup seems including dpdk memory usage
# DPDK_MEM = (5 * 2 * 1024 * 1024)
# seems you cannot pass 1.2M to cgroup.
# you should first do "export TMPDIR=/t... | 29.736111 | 118 | 0.664176 | 571 | 4,282 | 4.777583 | 0.294221 | 0.047654 | 0.028226 | 0.021994 | 0.226173 | 0.192449 | 0.192449 | 0.119868 | 0.103372 | 0.103372 | 0 | 0.024735 | 0.206913 | 4,282 | 144 | 119 | 29.736111 | 0.778563 | 0.179589 | 0 | 0.172043 | 0 | 0.010753 | 0.158603 | 0.041225 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.075269 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4678632c0074996b191770fee28a658a0d0905c | 237 | py | Python | config.example.py | Mad880/BlistBot | c5615ba4184ece283de9ebe1724d4cb4230a69c9 | [
"MIT"
] | 3 | 2021-01-20T21:35:41.000Z | 2021-04-05T01:31:57.000Z | config.example.py | Mad880/BlistBot | c5615ba4184ece283de9ebe1724d4cb4230a69c9 | [
"MIT"
] | 18 | 2020-10-13T23:24:04.000Z | 2021-04-03T21:23:49.000Z | config.example.py | Mad880/BlistBot | c5615ba4184ece283de9ebe1724d4cb4230a69c9 | [
"MIT"
] | 14 | 2020-10-12T22:00:14.000Z | 2021-12-06T13:03:50.000Z | bot_token = ""
bot_token_dev = ""
db_url = ""
mod_db_url = ""
cloudflare_email = ""
cloudflare_token = ""
error_webhook_token = ""
error_webhook_id = 0
consumer_key = ""
consumer_secret_key = ""
access_token = ""
access_token_secret = "" | 19.75 | 24 | 0.708861 | 31 | 237 | 4.83871 | 0.516129 | 0.106667 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.147679 | 237 | 12 | 25 | 19.75 | 0.737624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e46cb575e89300981e0c0d552d0d983d723cb867 | 1,154 | py | Python | manage.py | tcufer/nyc_traffic_speed_api | 8f94636bcc6efb9b4be6511c9c4605c1e4d0c6a2 | [
"MIT"
] | null | null | null | manage.py | tcufer/nyc_traffic_speed_api | 8f94636bcc6efb9b4be6511c9c4605c1e4d0c6a2 | [
"MIT"
] | null | null | null | manage.py | tcufer/nyc_traffic_speed_api | 8f94636bcc6efb9b4be6511c9c4605c1e4d0c6a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from flask.ext.script import Manager
from apscheduler.scheduler import Scheduler
from common import data_ingestion
from common.models import User
from resources import app
manager = Manager(app)
@app.before_first_request
def init_scheduler():
data_ingestion.insert_traffic_data()
apsched... | 24.553191 | 87 | 0.692374 | 139 | 1,154 | 5.597122 | 0.553957 | 0.050129 | 0.048843 | 0.066838 | 0.077121 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007527 | 0.194107 | 1,154 | 46 | 88 | 25.086957 | 0.829032 | 0.064991 | 0 | 0.060606 | 0 | 0 | 0.146592 | 0.043884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.242424 | 0 | 0.333333 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e470812e1449f65fbf0e62faf0ef4acee92d24bf | 638 | py | Python | src/dataset/migrations/0010_auto_20160427_1823.py | matthiasplappert/motion-annotation-tool | 129f0a2ee731b8d8e01f9794ee35dabf17696ef9 | [
"MIT"
] | 5 | 2017-01-26T12:57:43.000Z | 2020-05-25T06:13:48.000Z | src/dataset/migrations/0010_auto_20160427_1823.py | matthiasplappert/motion-annotation-tool | 129f0a2ee731b8d8e01f9794ee35dabf17696ef9 | [
"MIT"
] | 3 | 2020-06-05T17:43:45.000Z | 2021-06-10T19:35:19.000Z | src/dataset/migrations/0010_auto_20160427_1823.py | matthiasplappert/motion-annotation-tool | 129f0a2ee731b8d8e01f9794ee35dabf17696ef9 | [
"MIT"
] | 1 | 2021-02-09T04:46:03.000Z | 2021-02-09T04:46:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-27 16:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dataset', '0009_auto_20160427_1140'),
]
operations = [
migrations.AddField(
... | 24.538462 | 53 | 0.611285 | 65 | 638 | 5.784615 | 0.676923 | 0.095745 | 0.12234 | 0.143617 | 0.446809 | 0.260638 | 0.260638 | 0.260638 | 0 | 0 | 0 | 0.069414 | 0.277429 | 638 | 25 | 54 | 25.52 | 0.746204 | 0.105016 | 0 | 0.444444 | 1 | 0 | 0.153169 | 0.040493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e478dcf91e62dbd7c597588404af00d3198e422d | 166 | py | Python | A/263A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | 1 | 2020-08-25T19:59:11.000Z | 2020-08-25T19:59:11.000Z | A/263A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | null | null | null | A/263A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | null | null | null | # Time: 218 ms
# Memory: 4 KB
for i in range(5):
m = list(map(int, input().split()))
if 1 in m:
r, c = (m.index(1)), (i)
sol = abs(r - 2) + abs(2 - c)
print(sol)
| 18.444444 | 36 | 0.53012 | 36 | 166 | 2.444444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0.23494 | 166 | 8 | 37 | 20.75 | 0.622047 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e480d25d8a3ecb265a88c0ffcde9a15412d8370b | 71,923 | py | Python | adddialog.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | 3 | 2021-05-12T01:05:12.000Z | 2022-02-11T15:43:00.000Z | adddialog.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | null | null | null | adddialog.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'addDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import ... | 55.538996 | 216 | 0.697913 | 7,958 | 71,923 | 6.233224 | 0.065469 | 0.037739 | 0.02395 | 0.024494 | 0.499194 | 0.390392 | 0.30308 | 0.246391 | 0.238368 | 0.233328 | 0 | 0.042901 | 0.171628 | 71,923 | 1,294 | 217 | 55.581917 | 0.789657 | 0.00381 | 0 | 0.239844 | 1 | 0.039063 | 0.223151 | 0.116139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001563 | false | 0 | 0.001563 | 0 | 0.003906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e488d8fb8e5c6a6819d7ca9cd2504880f5e98722 | 2,659 | py | Python | BAMF_Detect/modules/njrat.py | bwall/bamfdetect | 3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1 | [
"MIT"
] | 152 | 2015-02-04T16:34:53.000Z | 2021-07-27T19:00:40.000Z | BAMF_Detect/modules/njrat.py | bwall/bamfdetect | 3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1 | [
"MIT"
] | null | null | null | BAMF_Detect/modules/njrat.py | bwall/bamfdetect | 3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1 | [
"MIT"
] | 30 | 2015-03-31T10:20:32.000Z | 2022-02-09T16:17:04.000Z | from common import Modules, data_strings_wide, load_yara_rules, PEParseModule, ModuleMetadata, is_ip_or_domain
class njRat(PEParseModule):
def __init__(self):
md = ModuleMetadata(
module_name="njrat",
bot_name="njRat",
description="RAT",
authors=["Brian Wall... | 34.089744 | 110 | 0.59308 | 322 | 2,659 | 4.658385 | 0.360248 | 0.088 | 0.034667 | 0.044 | 0.052667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018388 | 0.304626 | 2,659 | 78 | 111 | 34.089744 | 0.792861 | 0.133133 | 0 | 0.055556 | 0 | 0 | 0.071864 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.074074 | false | 0 | 0.018519 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e496b57d45183fe536ebe1752fed020a3a57f118 | 515 | py | Python | ool/agent/tasks.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | ool/agent/tasks.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | ool/agent/tasks.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from config import celery_app
from ool.oppositions.constants import RECEIPT
from ool.oppositions.models import Document, Recipt
from ool.users.models import Message
from ool.utils.receipt import generate_receipt
User = get_user_model()
@celery_app.task()
def create_and... | 25.75 | 63 | 0.78835 | 69 | 515 | 5.710145 | 0.463768 | 0.071066 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139806 | 515 | 19 | 64 | 27.105263 | 0.889391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e4994c8707f6fa77d941ad4d55bc567fd838c2a4 | 4,200 | py | Python | scripts/monitoring/ops-gcp-check-tags.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 164 | 2015-07-29T17:35:04.000Z | 2021-12-16T16:38:04.000Z | scripts/monitoring/ops-gcp-check-tags.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 3,634 | 2015-06-09T13:49:15.000Z | 2022-03-23T20:55:44.000Z | scripts/monitoring/ops-gcp-check-tags.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 250 | 2015-06-08T19:53:11.000Z | 2022-03-01T04:51:23.000Z | #!/usr/bin/env python
# vim: expandtab:tabstop=4:shiftwidth=4
"""
This is a script that gathers tags from instances and reports the status of the tags to zabbix
Usage:
ops-gcp-check-tags.py --gcp-creds-file /root/.gce/creds.json --region=us-east1 --clusterid=testcluster
"""
# Ignoring module name
# pylint: disab... | 36.206897 | 103 | 0.565 | 481 | 4,200 | 4.779626 | 0.378378 | 0.027838 | 0.020879 | 0.020879 | 0.062636 | 0.026098 | 0.026098 | 0 | 0 | 0 | 0 | 0.003028 | 0.292381 | 4,200 | 115 | 104 | 36.521739 | 0.770525 | 0.172143 | 0 | 0.101695 | 0 | 0 | 0.127362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e49a02ef46e6ade9cb4c451ae6f37c7fdcb003af | 444 | py | Python | main.py | puyuliao/ItC-python_parser-HW | 28019c09bd03b3b6458decdc05d383afde6fe69b | [
"MIT"
] | 6 | 2019-12-20T07:00:56.000Z | 2019-12-31T15:58:58.000Z | main.py | puyuliao/ItC-python_parser-HW | 28019c09bd03b3b6458decdc05d383afde6fe69b | [
"MIT"
] | 1 | 2019-12-28T12:14:12.000Z | 2019-12-28T12:14:12.000Z | main.py | puyuliao/ItC-python_parser-HW | 28019c09bd03b3b6458decdc05d383afde6fe69b | [
"MIT"
] | 1 | 2019-12-20T08:04:10.000Z | 2019-12-20T08:04:10.000Z | from crawler import Crawler
from args import get_args
if __name__ == '__main__':
args = get_args()
crawler = Crawler()
contents = crawler.crawl(args.start_date, args.end_date)
# TODO: write content to file according to spec
with open(args.output,'w') as f:
for date, title,content in cont... | 29.6 | 60 | 0.623874 | 62 | 444 | 4.225806 | 0.532258 | 0.068702 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254505 | 444 | 14 | 61 | 31.714286 | 0.791541 | 0.132883 | 0 | 0 | 0 | 0 | 0.115183 | 0.091623 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4a79af76b6788b0647996e1dc8acc7d47ae8376 | 1,657 | py | Python | resources/lib/main.py | stemaj/plugin.video.aktuellekamera | 9c5460db2ddcdddc4b99e1efeae29b5b2ab16c88 | [
"MIT"
] | null | null | null | resources/lib/main.py | stemaj/plugin.video.aktuellekamera | 9c5460db2ddcdddc4b99e1efeae29b5b2ab16c88 | [
"MIT"
] | null | null | null | resources/lib/main.py | stemaj/plugin.video.aktuellekamera | 9c5460db2ddcdddc4b99e1efeae29b5b2ab16c88 | [
"MIT"
] | null | null | null | import re
import json
import time
import datetime
class HeuteJournal():
def __init__(self, name_, mp4link_, age_):
self.name = name_
self.mp4link = mp4link_
self.age = age_
def getCurrentHeuteJournalLink(bytes):
return "https://www.zdf.de" + str(re.compile("href=\"(.+)\" title=\"heute jo... | 34.520833 | 122 | 0.623416 | 210 | 1,657 | 4.871429 | 0.390476 | 0.053763 | 0.087977 | 0.102639 | 0.236559 | 0.215054 | 0.170088 | 0.119257 | 0.087977 | 0.087977 | 0 | 0.026948 | 0.171394 | 1,657 | 47 | 123 | 35.255319 | 0.718135 | 0 | 0 | 0.175 | 0 | 0 | 0.16717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.1 | 0.075 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4aacf3d7fb44a66f78d3e812577e654117670b4 | 1,700 | py | Python | backend/src/jobs/flaskGetJobHistory.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | null | null | null | backend/src/jobs/flaskGetJobHistory.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | 1 | 2021-09-18T05:56:45.000Z | 2021-09-18T05:56:45.000Z | backend/src/jobs/flaskGetJobHistory.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | null | null | null | from dataCheck import customerDataCheck, jobDataCheck
import json
from flask import Blueprint, Response
from postgres.databaseConnection import PostgresControll
from auth.flaskAuthVerify import tokenVerify
manager = Blueprint('getJobHistory', __name__, url_prefix='/jobs')
# 특정 시술 id의 데이터를 불러옴
@manager.route('/<job... | 30.357143 | 100 | 0.702941 | 190 | 1,700 | 6.210526 | 0.478947 | 0.033898 | 0.033898 | 0.047458 | 0.113559 | 0.062712 | 0.062712 | 0 | 0 | 0 | 0 | 0.006329 | 0.163529 | 1,700 | 55 | 101 | 30.909091 | 0.822785 | 0.023529 | 0 | 0.055556 | 0 | 0 | 0.177751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4b2045667ba2210e0b3d69ff7b5f210edea49a2 | 1,871 | py | Python | {{cookiecutter.project_slug}}/django/{{cookiecutter.project_slug}}/utils/functions.py | yumastudio/cookiecutter-django | c62c093ec9202f855e16d113c289fb8cfdd81fcf | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.project_slug}}/django/{{cookiecutter.project_slug}}/utils/functions.py | yumastudio/cookiecutter-django | c62c093ec9202f855e16d113c289fb8cfdd81fcf | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.project_slug}}/django/{{cookiecutter.project_slug}}/utils/functions.py | yumastudio/cookiecutter-django | c62c093ec9202f855e16d113c289fb8cfdd81fcf | [
"Apache-2.0"
] | null | null | null | import os
from django.conf import settings
from urllib.request import urlretrieve
from django.utils.html import format_html
from easy_thumbnails.files import generate_all_aliases
from django.core.files import File
AWS_ENABLED = 'storages' in settings.INSTALLED_APPS
def resolve_thumbnails(model, field):
if not ha... | 26.728571 | 81 | 0.636024 | 234 | 1,871 | 4.854701 | 0.358974 | 0.06162 | 0.059859 | 0.02993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001413 | 0.24372 | 1,871 | 69 | 82 | 27.115942 | 0.801413 | 0 | 0 | 0.074074 | 1 | 0 | 0.092464 | 0.017103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4b22af5a6e59817ea21e79867194a65fa96afca | 4,841 | py | Python | torrent_downloader/torrent_downloader.py | zspatter/automate-the-boring-stuff | 5efc5ab7112be5b5e1197c86472aee212c3a829b | [
"Unlicense"
] | 15 | 2019-08-16T19:44:30.000Z | 2021-09-05T20:19:40.000Z | torrent_downloader/torrent_downloader.py | zspatter/automate-the-boring-stuff | 5efc5ab7112be5b5e1197c86472aee212c3a829b | [
"Unlicense"
] | 1 | 2020-01-05T10:06:33.000Z | 2020-01-17T22:28:07.000Z | torrent_downloader/torrent_downloader.py | zspatter/automate-the-boring-stuff | 5efc5ab7112be5b5e1197c86472aee212c3a829b | [
"Unlicense"
] | 7 | 2019-08-16T20:42:11.000Z | 2022-03-10T10:33:18.000Z | #! /usr/bin/env python3
# torrent_downloader.py - downloads torrents specified via magnet link through email
import imaplib
import subprocess
from notifications import text_myself
from os import environ
from pathlib import Path
from imapclient import IMAPClient
from pyzmail import PyzMessage
def check_for_torrents(... | 39.680328 | 88 | 0.670936 | 582 | 4,841 | 5.412371 | 0.293814 | 0.031429 | 0.019048 | 0.019048 | 0.190476 | 0.130159 | 0.110476 | 0.110476 | 0.110476 | 0.110476 | 0 | 0.00334 | 0.257798 | 4,841 | 121 | 89 | 40.008264 | 0.873365 | 0.360669 | 0 | 0 | 0 | 0 | 0.098299 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.1 | 0.116667 | 0 | 0.216667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e4b51e0f6d3846a115eb5bb1b3095a15e37d2415 | 482 | py | Python | ex072.py | arthurfas123/Curso-De-Python | c4a15d92811bd101a8562d2c3a90fe2d5a3c360d | [
"MIT"
] | null | null | null | ex072.py | arthurfas123/Curso-De-Python | c4a15d92811bd101a8562d2c3a90fe2d5a3c360d | [
"MIT"
] | null | null | null | ex072.py | arthurfas123/Curso-De-Python | c4a15d92811bd101a8562d2c3a90fe2d5a3c360d | [
"MIT"
] | null | null | null | print('NUMEROS POR EXTENSO!!!')
print('=-=' * 15)
numeros = ('Zero', 'Um', 'Dois', 'Tres', 'Quatro', 'Cinco', 'Seis', 'Sete', 'Oito', 'Nove', 'Dez', 'Onze', 'Doze',
'Treze', 'Quatorze', 'Quinze', 'Dezesseis', 'Dezessete', 'Dezoito', 'Dezenove', 'Vinte')
while True:
n = int(input('Escolha um numero entre ... | 37.076923 | 114 | 0.520747 | 58 | 482 | 4.327586 | 0.758621 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.219917 | 482 | 12 | 115 | 40.166667 | 0.635638 | 0 | 0 | 0.25 | 0 | 0 | 0.437759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e4b532d06d3c95512690f1d709afe1274922678f | 1,433 | py | Python | 01-PythonAlgorithms/binary_trees/traversals.py | spendyala/deeplearning-docker | 1dcd03e2e65cb1897daf9dfffeab018f97fc0780 | [
"MIT"
] | null | null | null | 01-PythonAlgorithms/binary_trees/traversals.py | spendyala/deeplearning-docker | 1dcd03e2e65cb1897daf9dfffeab018f97fc0780 | [
"MIT"
] | 1 | 2021-02-02T22:47:32.000Z | 2021-02-02T22:47:32.000Z | 01-PythonAlgorithms/binary_trees/traversals.py | spendyala/deeplearning-docker | 1dcd03e2e65cb1897daf9dfffeab018f97fc0780 | [
"MIT"
] | null | null | null |
class Node(object):
'''Binary Tree Node'''
def __init__(self, data):
self.data = data
self.left = None
self.right = None
class BinaryTree(object):
'''Building binary Tree'''
def __init__(self, data):
self.root = Node(data)
def addLeft(self, data):
if self... | 22.390625 | 51 | 0.615492 | 185 | 1,433 | 4.605405 | 0.227027 | 0.150235 | 0.084507 | 0.06338 | 0.194836 | 0.107981 | 0.107981 | 0.107981 | 0.107981 | 0.107981 | 0 | 0.008772 | 0.28402 | 1,433 | 63 | 52 | 22.746032 | 0.821637 | 0.05792 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0 | 0.095238 | 0.404762 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4ba26ceb4a9475f18888c66de929a4b1d867cb2 | 1,623 | py | Python | server/processes/models/workflow_task_instance_execution.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/models/workflow_task_instance_execution.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/models/workflow_task_instance_execution.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | from typing import cast
import logging
import uuid
from django.db import models
logger = logging.getLogger(__name__)
class WorkflowTaskInstanceExecution(models.Model):
"""
WorkflowTaskInstanceExecutions hold the execution information
for a WorkflowTaskInstance (which holds a Task) for a spec... | 35.282609 | 77 | 0.704868 | 169 | 1,623 | 6.52071 | 0.43787 | 0.082577 | 0.046279 | 0.057169 | 0.103448 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.000788 | 0.218115 | 1,623 | 45 | 78 | 36.066667 | 0.867612 | 0.099815 | 0 | 0 | 0 | 0 | 0.114224 | 0.056753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0.034483 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4be28040fc7399023cbba2066c3efc5c63c7e98 | 893 | py | Python | horoscofox/astrologers/astrologer.py | xofoloapp/pyhoroscofox | 5f1e00e270baa0fda64b71c6d1f91972e5b116ae | [
"MIT"
] | 4 | 2018-03-30T14:05:13.000Z | 2020-08-06T10:41:17.000Z | horoscofox/astrologers/astrologer.py | xofoloapp/pyhoroscofox | 5f1e00e270baa0fda64b71c6d1f91972e5b116ae | [
"MIT"
] | 3 | 2018-10-29T20:39:44.000Z | 2019-10-19T16:14:03.000Z | horoscofox/astrologers/astrologer.py | xofoloapp/pyhoroscofox | 5f1e00e270baa0fda64b71c6d1f91972e5b116ae | [
"MIT"
] | 1 | 2018-03-29T00:05:41.000Z | 2018-03-29T00:05:41.000Z | from horoscofox.constants import SIGNS, KINDS
from horoscofox.errors import AstrologerException
class Astrologer():
def __init__(self):
for sign in SIGNS:
sign_object = self.sign_class(sign)
setattr(self, sign, sign_object)
def _check_sign(self, sign):
if sign not in ... | 28.806452 | 69 | 0.602464 | 108 | 893 | 4.805556 | 0.342593 | 0.092486 | 0.050096 | 0.061657 | 0.177264 | 0.1079 | 0.1079 | 0.1079 | 0 | 0 | 0 | 0 | 0.31467 | 893 | 31 | 70 | 28.806452 | 0.848039 | 0 | 0 | 0.083333 | 0 | 0 | 0.090604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4c26fdfc6cce52491e689f9caf0f726b5774714 | 986 | py | Python | 2017-08-23/exemplo_servidor_django/meuprojeto/petshop/admin.py | dunossauro/bora_falar_de_python | 7fe92d6257a2cad1c570255bc9be069f6c8e38d3 | [
"Apache-2.0"
] | 6 | 2017-09-07T20:24:48.000Z | 2018-09-12T16:16:32.000Z | 2017-08-23/exemplo_servidor_django/meuprojeto/petshop/admin.py | dunossauro/bora_falar_de_python | 7fe92d6257a2cad1c570255bc9be069f6c8e38d3 | [
"Apache-2.0"
] | 1 | 2017-12-22T01:47:12.000Z | 2017-12-24T13:59:13.000Z | 2017-08-23/exemplo_servidor_django/meuprojeto/petshop/admin.py | dunossauro/bora_falar_de_python | 7fe92d6257a2cad1c570255bc9be069f6c8e38d3 | [
"Apache-2.0"
] | 6 | 2017-10-20T01:25:01.000Z | 2018-09-11T22:54:01.000Z | from django.contrib import admin # esse eh generico do django
from petshop.models import Animal, Dono, Funcionario, Atendimento # acabamos de criar
class AnimalAdmin(admin.ModelAdmin):
list_display = ['id', 'nome', 'idade', 'dono']
class DonoAdmin(admin.ModelAdmin):
list_display = ['id', 'nome']
class Funci... | 34 | 121 | 0.751521 | 117 | 986 | 6.153846 | 0.444444 | 0.083333 | 0.105556 | 0.144444 | 0.186111 | 0.147222 | 0.102778 | 0 | 0 | 0 | 0 | 0.004684 | 0.133874 | 986 | 28 | 122 | 35.214286 | 0.838407 | 0.044625 | 0 | 0.1 | 0 | 0 | 0.13312 | 0.022364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4c3d07c587f6c28932713322c468d09f3843610 | 2,993 | py | Python | DisplayUI.py | chennnnnnnnn/face_detection | 77d5a9098d9e1a65ac5093a23620ed5d99dc0723 | [
"MIT"
] | null | null | null | DisplayUI.py | chennnnnnnnn/face_detection | 77d5a9098d9e1a65ac5093a23620ed5d99dc0723 | [
"MIT"
] | null | null | null | DisplayUI.py | chennnnnnnnn/face_detection | 77d5a9098d9e1a65ac5093a23620ed5d99dc0723 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DisplayUI.ui'
#
# Created by: PyQt5 UI code generator 5.14.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Main... | 44.671642 | 73 | 0.702974 | 301 | 2,993 | 6.960133 | 0.328904 | 0.064916 | 0.08401 | 0.052983 | 0.116945 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03416 | 0.178416 | 2,993 | 66 | 74 | 45.348485 | 0.817812 | 0.061143 | 0 | 0 | 1 | 0 | 0.076758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4cdc2d35a1bae51257c12f8ca9fb8135a679d04 | 5,160 | py | Python | l1l2/l2_coding.py | ManoDaSilva/amtetra2 | b844d5e5e9da45b5919d862626a32ecaa131d7cc | [
"MIT"
] | 2 | 2021-02-15T21:38:13.000Z | 2021-02-19T21:35:19.000Z | l1l2/l2_coding.py | OH2NXX/hamtetra2 | 9f9738af30a2b9252da87bf6a08ef3f995be05c4 | [
"MIT"
] | null | null | null | l1l2/l2_coding.py | OH2NXX/hamtetra2 | 9f9738af30a2b9252da87bf6a08ef3f995be05c4 | [
"MIT"
] | 1 | 2020-12-21T14:32:00.000Z | 2020-12-21T14:32:00.000Z | #!/usr/bin/env python3
"""Channel coding in L2.
This module contains functions used for conversion between type-1 and type-5
bits in lower MAC. These process individual bursts or blocks, and don't
store state in between calls."""
import ctypes
import numpy as np
import numba # to make things run faster
libcorrect =... | 36.083916 | 124 | 0.675388 | 837 | 5,160 | 4.087216 | 0.303465 | 0.024554 | 0.03157 | 0.014031 | 0.128617 | 0.073955 | 0.052032 | 0.043262 | 0.043262 | 0 | 0 | 0.056636 | 0.212985 | 5,160 | 142 | 125 | 36.338028 | 0.785767 | 0.404845 | 0 | 0 | 0 | 0 | 0.043375 | 0.013555 | 0 | 0 | 0.011522 | 0.014085 | 0.013333 | 1 | 0.146667 | false | 0 | 0.04 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e4d139017f7749acd60235ec750cbcb0664cbc59 | 913 | py | Python | src/analysis.py | luca-bottero/Parallel_n_body | 3b2082955d62a37cd9b2762fdf3f556867f43437 | [
"MIT"
] | 2 | 2020-12-12T17:40:42.000Z | 2021-11-06T14:13:02.000Z | src/analysis.py | luca-bottero/Parallel_n_body | 3b2082955d62a37cd9b2762fdf3f556867f43437 | [
"MIT"
] | 5 | 2020-12-22T11:34:16.000Z | 2021-11-29T11:44:44.000Z | src/analysis.py | luca-bottero/Parallel_n_body | 3b2082955d62a37cd9b2762fdf3f556867f43437 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from numba import jit
class DataAnalyzer():
def __init__(self, ResultsPath = ''):
try:
self.PosHistory = np.load(ResultsPath + '/PosHistory.npy')
self.Mass = np.load(ResultsPath + '/Masses.npy')
#load yaml with configura... | 35.115385 | 127 | 0.626506 | 113 | 913 | 5.026549 | 0.415929 | 0.116197 | 0.132042 | 0.176056 | 0.221831 | 0.221831 | 0.221831 | 0.221831 | 0.221831 | 0.221831 | 0 | 0.011544 | 0.240964 | 913 | 25 | 128 | 36.52 | 0.808081 | 0.031763 | 0 | 0.1 | 0 | 0 | 0.029445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.15 | 0 | 0.35 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4ddbdebb6ad60bd0ac6d32b26c0e0b8c43fedc9 | 1,036 | py | Python | actualite/models.py | Kgermando/ev-ccnsc | ad8710014ab11aec18d72cbb97462efbba28dc85 | [
"Apache-2.0"
] | null | null | null | actualite/models.py | Kgermando/ev-ccnsc | ad8710014ab11aec18d72cbb97462efbba28dc85 | [
"Apache-2.0"
] | null | null | null | actualite/models.py | Kgermando/ev-ccnsc | ad8710014ab11aec18d72cbb97462efbba28dc85 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from ccnsc.constant import CATEGORIES, PROVINCES
# Create your models here.
class Actualite(models.Model):
actu_titre = models.CharField(max_length=300)
auteur = models.CharField(max_length=300)
actu_content = models.TextField()
actu_province = models.CharField(max_length=... | 41.44 | 98 | 0.750965 | 138 | 1,036 | 5.384058 | 0.427536 | 0.080754 | 0.096904 | 0.129206 | 0.476447 | 0.403769 | 0.270525 | 0.270525 | 0.270525 | 0.270525 | 0 | 0.016816 | 0.138996 | 1,036 | 24 | 99 | 43.166667 | 0.816144 | 0.023166 | 0 | 0 | 0 | 0 | 0.096135 | 0.030723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4e09acc65392770e837f84a235e9408e9ec1623 | 387 | py | Python | trains/tests/test_models.py | llamicron/old_trains | 9d73dbc3c85224da2138ecbe05f73c3a8688dffc | [
"MIT"
] | null | null | null | trains/tests/test_models.py | llamicron/old_trains | 9d73dbc3c85224da2138ecbe05f73c3a8688dffc | [
"MIT"
] | null | null | null | trains/tests/test_models.py | llamicron/old_trains | 9d73dbc3c85224da2138ecbe05f73c3a8688dffc | [
"MIT"
] | null | null | null | import unittest
from trains import models
from trains.db import db
class TestModels(unittest.TestCase):
def test_create_tables(self):
models.create_tables()
assert 'volunteer' in db.get_tables()
def test_populate_volunteers(self):
models.Volunteer.populate('trains/data/volunteers.csv... | 25.8 | 63 | 0.728682 | 49 | 387 | 5.632653 | 0.489796 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180879 | 387 | 14 | 64 | 27.642857 | 0.870662 | 0 | 0 | 0 | 0 | 0 | 0.090439 | 0.067183 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4e31610385e7cef9f0e00fe63855aee37a567ff | 3,632 | py | Python | INFLO-SIM/QTmProc/QTmProcessor.py | OSADP/INFLO | 19964445fe79a1f9334516fa0f51fa9dfc735f6c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | INFLO-SIM/QTmProc/QTmProcessor.py | OSADP/INFLO | 19964445fe79a1f9334516fa0f51fa9dfc735f6c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | INFLO-SIM/QTmProc/QTmProcessor.py | OSADP/INFLO | 19964445fe79a1f9334516fa0f51fa9dfc735f6c | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-02-02T18:12:32.000Z | 2020-11-04T04:35:58.000Z | '''
Created on Sep 9, 2014
@author: jbarrios
This script analyzes the vehicle queue time from VISSIM
'''
from __future__ import print_function
import csv
import sys
import easygui as eg
import math
programTitle = "Queue Time Processor v0.1"
selected_csv = 'QueueTime.csv'
selected_csv = eg.fileopenbox("Choose CSV", p... | 44.292683 | 165 | 0.635463 | 474 | 3,632 | 4.841772 | 0.369198 | 0.023965 | 0.045752 | 0.048802 | 0.141176 | 0.086275 | 0.055773 | 0.055773 | 0.055773 | 0 | 0 | 0.025452 | 0.253579 | 3,632 | 82 | 166 | 44.292683 | 0.821099 | 0.262665 | 0 | 0.05 | 0 | 0 | 0.070196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016667 | 0.083333 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4f19881f9339b83c47205353942db42e48b5cbd | 729 | py | Python | framework/modelhublib_tests/imageconverters_tests/numpyToNumpyConverter_test.py | modelhub-ai/modelhub-engine | 81e893fb7669ee9912178346efbf828dd8c0410b | [
"MIT"
] | 6 | 2018-10-13T10:11:51.000Z | 2022-02-21T08:28:10.000Z | framework/modelhublib_tests/imageconverters_tests/numpyToNumpyConverter_test.py | modelhub-ai/modelhub-docker | 81e893fb7669ee9912178346efbf828dd8c0410b | [
"MIT"
] | 34 | 2018-03-06T16:25:10.000Z | 2018-06-26T21:55:13.000Z | framework/modelhublib_tests/imageconverters_tests/numpyToNumpyConverter_test.py | modelhub-ai/modelhub-docker | 81e893fb7669ee9912178346efbf828dd8c0410b | [
"MIT"
] | 3 | 2018-02-22T18:57:00.000Z | 2018-02-26T22:13:53.000Z | import unittest
import os
import json
import PIL
import numpy as np
from modelhublib.imageconverters import NumpyToNumpyConverter
class TestNumpyImageConverter(unittest.TestCase):
def setUp(self):
self.imageConverter = NumpyToNumpyConverter()
def tearDown(self):
pass
def test_convert_su... | 26.035714 | 70 | 0.706447 | 92 | 729 | 5.402174 | 0.521739 | 0.108652 | 0.056338 | 0.016097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.182442 | 729 | 27 | 71 | 27 | 0.807047 | 0 | 0 | 0 | 0 | 0 | 0.015089 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0.05 | 0.3 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4f42378eddbe10889dca350ea99a224fbf7b3ac | 541 | py | Python | utilities/Gnip-Python-Historical-Utilities/src/setup.py | compston/TAP-Workshop | 84a7987081f71d45e057b30cc8e0cbc1b6af90d7 | [
"MIT"
] | null | null | null | utilities/Gnip-Python-Historical-Utilities/src/setup.py | compston/TAP-Workshop | 84a7987081f71d45e057b30cc8e0cbc1b6af90d7 | [
"MIT"
] | null | null | null | utilities/Gnip-Python-Historical-Utilities/src/setup.py | compston/TAP-Workshop | 84a7987081f71d45e057b30cc8e0cbc1b6af90d7 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='gnip-historical',
version='0.4.1',
author='Scott Hendrickson, Brian Lehman, Josh Montague',
author_email='scott@drskippy.net',
packages=['gnip_historical'],
scripts=['create_job.py', 'accept_job.py','reject_job.py', 'list_jobs.py'],
url='http://... | 33.8125 | 79 | 0.689464 | 70 | 541 | 5.214286 | 0.714286 | 0.153425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.140481 | 541 | 15 | 80 | 36.066667 | 0.772043 | 0 | 0 | 0 | 0 | 0 | 0.502773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4f9ac2d7dbb4c18965c7f339428d85c46df7d78 | 229 | py | Python | python_solutions/array/Nested Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | python_solutions/array/Nested Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | python_solutions/array/Nested Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | lst = [['Harry', 37.21],['Berry', 37.21],['Tina', 37.2],['Akriti', 41],['Harsh', 39]]
second_highest = sorted(list(set([marks for name, marks in lst])))[1]
print('\n'.join([a for a,b in sorted(lst) if b == second_highest])) | 45.8 | 85 | 0.598253 | 40 | 229 | 3.375 | 0.675 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080402 | 0.131004 | 229 | 5 | 86 | 45.8 | 0.59799 | 0 | 0 | 0 | 0 | 0 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4ff7a152955b9983b32843f1a40b6868cd1fe81 | 1,525 | py | Python | experiments/graphviz_tryout.py | rreben/zettelkasten_tools | 1be7a6f2a259cf235defb545819c6e13e158884a | [
"MIT"
] | 1 | 2022-03-21T20:41:33.000Z | 2022-03-21T20:41:33.000Z | experiments/graphviz_tryout.py | rreben/zettelkasten_tools | 1be7a6f2a259cf235defb545819c6e13e158884a | [
"MIT"
] | 3 | 2021-11-22T20:09:30.000Z | 2022-01-04T22:18:06.000Z | experiments/graphviz_tryout.py | rreben/tools4zettelkasten | eea0c3c3e869345cd6fd6c9773c90434c60bddd8 | [
"MIT"
] | null | null | null | from graphviz import Digraph
dot = Digraph(comment='Goal Tree')
# Goal
dot.node('0', 'Mein Leben erfüllen', shape='box', style='rounded')
# CSF
dot.node('1', 'Mein volles Potential für Gutes einsetzen',
shape='box', style='rounded')
dot.node('2', 'Mein Leben selbstbestimmt gestalten',
shape='box', s... | 28.773585 | 66 | 0.601311 | 246 | 1,525 | 3.727642 | 0.272358 | 0.050164 | 0.045802 | 0.283533 | 0.441658 | 0.432933 | 0.389313 | 0.288986 | 0.109051 | 0.043621 | 0 | 0.058548 | 0.16 | 1,525 | 52 | 67 | 29.326923 | 0.657299 | 0.021639 | 0 | 0.285714 | 0 | 0 | 0.384926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90092353fe4987a88cf13090c83b7f7ff7df34b8 | 4,623 | py | Python | app/utils.py | shiniao/soul-api | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | 1 | 2021-02-27T09:05:40.000Z | 2021-02-27T09:05:40.000Z | app/utils.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | app/utils.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | import os
from datetime import timedelta, datetime
from typing import Union, Any, Optional
import bcrypt
import emails
from emails.template import JinjaTemplate as T
from jose import jwt
from loguru import logger
from app.config import settings
# security
def create_access_token(
subject: Union[str, Any],... | 27.517857 | 93 | 0.656067 | 570 | 4,623 | 5.110526 | 0.229825 | 0.043254 | 0.041195 | 0.02197 | 0.298661 | 0.257123 | 0.257123 | 0.257123 | 0.242705 | 0.217988 | 0 | 0.002271 | 0.237941 | 4,623 | 167 | 94 | 27.682635 | 0.824581 | 0.100368 | 0 | 0.254545 | 0 | 0 | 0.12742 | 0.051703 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0.072727 | false | 0.090909 | 0.081818 | 0.018182 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9010196edaf582b80ac9294bd9f85f4ad63230eb | 5,713 | py | Python | unhcr.py | OCHA-DAP/hdx-scraper-unhcr-microdata | 1a8a7afb0ef3447df613e2bd084b3015be985a81 | [
"MIT"
] | null | null | null | unhcr.py | OCHA-DAP/hdx-scraper-unhcr-microdata | 1a8a7afb0ef3447df613e2bd084b3015be985a81 | [
"MIT"
] | null | null | null | unhcr.py | OCHA-DAP/hdx-scraper-unhcr-microdata | 1a8a7afb0ef3447df613e2bd084b3015be985a81 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
UNHCR:
-----
Generates urls from the UNHCR microdata website.
"""
import logging
from hdx.data.dataset import Dataset
from hdx.data.hdxobject import HDXError
from hdx.location.country import Country
from hdx.utilities.dateparse import parse_date_range
from slugify import slugify
logger = loggi... | 36.621795 | 131 | 0.629617 | 636 | 5,713 | 5.468553 | 0.290881 | 0.025877 | 0.025877 | 0.03019 | 0.191777 | 0.064692 | 0 | 0 | 0 | 0 | 0 | 0.015198 | 0.251357 | 5,713 | 155 | 132 | 36.858065 | 0.797989 | 0.013828 | 0 | 0.089552 | 1 | 0.007463 | 0.214222 | 0.055289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022388 | false | 0 | 0.044776 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9015cdcd9b86c03f505209ecf0faa58ec63dba7d | 1,787 | py | Python | HTML-Swapper/GUI/RuleWidgetTwoValues.py | smithbro2115/HTML-Swapper | 22032643d3c8beef3d03eaa1a91f464d0a6b435c | [
"Apache-2.0"
] | null | null | null | HTML-Swapper/GUI/RuleWidgetTwoValues.py | smithbro2115/HTML-Swapper | 22032643d3c8beef3d03eaa1a91f464d0a6b435c | [
"Apache-2.0"
] | null | null | null | HTML-Swapper/GUI/RuleWidgetTwoValues.py | smithbro2115/HTML-Swapper | 22032643d3c8beef3d03eaa1a91f464d0a6b435c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\Programming\HTML-Swapper\RuleWidgetTwoValues.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(s... | 41.55814 | 105 | 0.722999 | 175 | 1,787 | 7.365714 | 0.394286 | 0.155159 | 0.089992 | 0.102405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014966 | 0.177392 | 1,787 | 42 | 106 | 42.547619 | 0.861905 | 0.123671 | 0 | 0 | 1 | 0 | 0.055841 | 0.014121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9015f75a4c4c081056befa7d00f1d600909b5f56 | 518 | py | Python | powernodes/operators/material.py | rpopovici/power-nodes | 99ac1d342057a3dd6af043ec3ccd76b843317c84 | [
"Apache-2.0"
] | 11 | 2020-11-28T21:28:06.000Z | 2021-10-31T00:01:06.000Z | powernodes/operators/material.py | rpopovici/power-nodes | 99ac1d342057a3dd6af043ec3ccd76b843317c84 | [
"Apache-2.0"
] | 1 | 2020-12-03T12:08:50.000Z | 2020-12-03T14:20:49.000Z | powernodes/operators/material.py | rpopovici/power-nodes | 99ac1d342057a3dd6af043ec3ccd76b843317c84 | [
"Apache-2.0"
] | null | null | null | import bpy
def material_operator(inputstream0, options={}):
material = options['material']
for obj in inputstream0:
keep_mats = [mat for mat in obj.data.materials if '_pn_material_tag_' in mat]
obj.data.materials.clear()
for mat in keep_mats:
obj.data.materials.append(mat)... | 30.470588 | 85 | 0.660232 | 66 | 518 | 5.015152 | 0.409091 | 0.10574 | 0.241692 | 0.132931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.241313 | 518 | 16 | 86 | 32.375 | 0.834606 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90199a0432f4fdd99b07f55a2cfd44b61899d159 | 1,670 | py | Python | EtlPipeline/sector_salaries.py | office-for-students/beta-data-pipelines | 36b90c7720e0be0f807d93a31cf7346522b6e1f0 | [
"MIT"
] | 2 | 2019-06-04T14:15:16.000Z | 2019-08-04T15:26:16.000Z | EtlPipeline/sector_salaries.py | office-for-students/beta-data-pipelines | 36b90c7720e0be0f807d93a31cf7346522b6e1f0 | [
"MIT"
] | 3 | 2019-06-24T12:21:10.000Z | 2019-07-22T11:15:27.000Z | EtlPipeline/sector_salaries.py | office-for-students/beta-data-pipelines | 36b90c7720e0be0f807d93a31cf7346522b6e1f0 | [
"MIT"
] | 1 | 2019-09-26T19:29:15.000Z | 2019-09-26T19:29:15.000Z | import xmltodict
import defusedxml.ElementTree as ET
class SectorSalaries:
"""Provides lookup of raw sector salary data based on GO- LEO3- LEO5- -SECSBJ"""
def __init__(self, root, sector_type):
"""Build the sector salaries lookup table
Sector salaries are unique on -SECSBJ
"""
... | 30.363636 | 140 | 0.683234 | 204 | 1,670 | 5.127451 | 0.279412 | 0.240918 | 0.137667 | 0.108987 | 0.274379 | 0.230402 | 0 | 0 | 0 | 0 | 0 | 0.00774 | 0.226347 | 1,670 | 54 | 141 | 30.925926 | 0.801858 | 0.091018 | 0 | 0.096774 | 0 | 0 | 0.105369 | 0.081208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.064516 | 0.032258 | 0.387097 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
901c42ff63825b82c3f2809d496a5f6b81f1047f | 306 | py | Python | setup.py | franc90/brag | 5f5c010ab152ef32e27ee5b507891442d71b8e74 | [
"MIT"
] | null | null | null | setup.py | franc90/brag | 5f5c010ab152ef32e27ee5b507891442d71b8e74 | [
"MIT"
] | null | null | null | setup.py | franc90/brag | 5f5c010ab152ef32e27ee5b507891442d71b8e74 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='brag',
version='0.1',
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=[
'pyfzf'
],
entry_points={
'console_scripts': [
'brag=brag.app:main',
],
},
)
| 18 | 43 | 0.542484 | 31 | 306 | 5.16129 | 0.774194 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.294118 | 306 | 16 | 44 | 19.125 | 0.731481 | 0 | 0 | 0.133333 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
901c75b22e4a37b5773b181cdc2c38865661e28b | 4,877 | py | Python | Script-Example.py | 7Backwards/Prolific-Python-Script | 71f5a32f2463e784d2ee08efb5a68b8fb5fe6f29 | [
"MIT"
] | 1 | 2020-12-18T18:50:43.000Z | 2020-12-18T18:50:43.000Z | Script-Example.py | 7Backwards/Prolific-Python-Script | 71f5a32f2463e784d2ee08efb5a68b8fb5fe6f29 | [
"MIT"
] | null | null | null | Script-Example.py | 7Backwards/Prolific-Python-Script | 71f5a32f2463e784d2ee08efb5a68b8fb5fe6f29 | [
"MIT"
] | null | null | null | import smtplib
import requests
import json
import time
from time import gmtime, strftime
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdrive... | 50.802083 | 1,159 | 0.565307 | 537 | 4,877 | 5.063315 | 0.413408 | 0.022067 | 0.030894 | 0.014344 | 0.112909 | 0.112909 | 0.112909 | 0.112909 | 0.112909 | 0.112909 | 0 | 0.006701 | 0.357392 | 4,877 | 95 | 1,160 | 51.336842 | 0.860881 | 0.04798 | 0 | 0.197531 | 0 | 0.049383 | 0.317152 | 0.009924 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.123457 | 0 | 0.123457 | 0.160494 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
901e7a47d22c5e2fdf506824716663c0024b92f5 | 2,259 | py | Python | src/stephscript/utils.py | ErisMik/stephscript | eb9671c4a2d0fcb394bd17c1268668b2d6efd730 | [
"MIT"
] | null | null | null | src/stephscript/utils.py | ErisMik/stephscript | eb9671c4a2d0fcb394bd17c1268668b2d6efd730 | [
"MIT"
] | null | null | null | src/stephscript/utils.py | ErisMik/stephscript | eb9671c4a2d0fcb394bd17c1268668b2d6efd730 | [
"MIT"
] | null | null | null | """
StephScript Utility Functions
"""
import locale
import platform
import os
import subprocess
import random
import sys
from stephscript.constants import ERROR_CODES
class Utils:
class SystemRant(Exception):
def __init__(self, msg_code) -> Exception:
"""
Get the error from the er... | 28.594937 | 97 | 0.577689 | 259 | 2,259 | 4.891892 | 0.459459 | 0.059195 | 0.040253 | 0.035517 | 0.067877 | 0.067877 | 0.067877 | 0.067877 | 0 | 0 | 0 | 0.006477 | 0.316512 | 2,259 | 78 | 98 | 28.961538 | 0.814119 | 0.245684 | 0 | 0.125 | 0 | 0 | 0.076455 | 0.014208 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.15 | false | 0 | 0.175 | 0 | 0.375 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
902339f75f46523158b2f06f3aa9bce52a3bf26f | 1,746 | py | Python | src/bpythonparser.py | dndHawking/blenderpy | 578904542718f937e754b9c64955851baec71e86 | [
"MIT"
] | null | null | null | src/bpythonparser.py | dndHawking/blenderpy | 578904542718f937e754b9c64955851baec71e86 | [
"MIT"
] | null | null | null | src/bpythonparser.py | dndHawking/blenderpy | 578904542718f937e754b9c64955851baec71e86 | [
"MIT"
] | null | null | null | """
Blender Argument Parser made by;
https://blender.stackexchange.com/users/70695/fr-andres
"""
import argparse
import sys
class BPythonParser(argparse.ArgumentParser):
"""
This class is identical to its superclass, except for the parse_args
method (see docstring). It resolves the ambiguity generat... | 36.375 | 78 | 0.663803 | 243 | 1,746 | 4.695473 | 0.481481 | 0.02454 | 0.039439 | 0.055215 | 0.067485 | 0.047327 | 0.047327 | 0.047327 | 0.047327 | 0 | 0 | 0.007692 | 0.255441 | 1,746 | 47 | 79 | 37.148936 | 0.87 | 0.688431 | 0 | 0 | 0 | 0 | 0.005115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
90269a90c6bff5480aaa30a0a75b51cad47b8420 | 506 | py | Python | 1025.py | ShawonBarman/URI-Online-Judge-Data-Structures-And-Libraries-level-problem-solution-in-python | 76afafb35528eaa9d2a5f12052d0d8733c1555ba | [
"MIT"
] | null | null | null | 1025.py | ShawonBarman/URI-Online-Judge-Data-Structures-And-Libraries-level-problem-solution-in-python | 76afafb35528eaa9d2a5f12052d0d8733c1555ba | [
"MIT"
] | null | null | null | 1025.py | ShawonBarman/URI-Online-Judge-Data-Structures-And-Libraries-level-problem-solution-in-python | 76afafb35528eaa9d2a5f12052d0d8733c1555ba | [
"MIT"
] | null | null | null | i = 0
while True:
n, q = map(int, input().split())
if n == 0 and q == 0:
break
marble_numbers = []
while n>0:
n -= 1
num = int(input())
marble_numbers.append(num)
marble_numbers.sort()
i += 1
print(f"CASE# {i}:")
while q > 0:
q ... | 22 | 67 | 0.448617 | 69 | 506 | 3.217391 | 0.42029 | 0.292793 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0299 | 0.405138 | 506 | 23 | 68 | 22 | 0.707641 | 0 | 0 | 0 | 0 | 0 | 0.140206 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
902779b70aa4bcd2c958983eec1201df0b3f805c | 1,195 | py | Python | law/models/domain.py | B-Stefan/law-crawler | 1be853ff21bd97786c3758dd914a1f8323569805 | [
"Apache-2.0"
] | 1 | 2019-03-10T21:38:36.000Z | 2019-03-10T21:38:36.000Z | law/models/domain.py | B-Stefan/law-crawler | 1be853ff21bd97786c3758dd914a1f8323569805 | [
"Apache-2.0"
] | 40 | 2019-01-31T04:38:31.000Z | 2021-08-03T04:13:29.000Z | law/models/domain.py | B-Stefan/law-service | 1be853ff21bd97786c3758dd914a1f8323569805 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List
class TextParagraph:
def __init__(self, number, text, parent = None):
self.parent: LawParagraph = parent
self.number: str = number
self.text: str = text
@property
def id(self) -> str:
safe_number = self.number if self.number is not None else ... | 25.425532 | 68 | 0.611715 | 148 | 1,195 | 4.790541 | 0.25 | 0.084626 | 0.062059 | 0.056417 | 0.126939 | 0.070522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274477 | 1,195 | 47 | 69 | 25.425532 | 0.817762 | 0 | 0 | 0.121212 | 0 | 0 | 0.001672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.030303 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90302f2db0e269b82c35b6c2c16aae1a4da8c532 | 7,393 | py | Python | src/score_server.py | mnuyens/forseti2 | 3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8 | [
"Apache-2.0"
] | 1 | 2015-03-07T04:48:53.000Z | 2015-03-07T04:48:53.000Z | src/score_server.py | mnuyens/forseti2 | 3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8 | [
"Apache-2.0"
] | null | null | null | src/score_server.py | mnuyens/forseti2 | 3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
"""
Score server
"""
import lcm
import time
import forseti2
import settings
import util
def health_handler(channel, data):
msg = forseti2.health.decode(data)
print('forseti2.health:'
+ 'channel='
+ str(channel)
+ ', uptime='
+ str(msg.uptime)
+ ... | 39.116402 | 161 | 0.620181 | 840 | 7,393 | 5.189286 | 0.153571 | 0.055059 | 0.0702 | 0.102776 | 0.531544 | 0.487497 | 0.400092 | 0.338839 | 0.306033 | 0.265198 | 0 | 0.00675 | 0.278642 | 7,393 | 188 | 162 | 39.324468 | 0.810613 | 0.056811 | 0 | 0.260274 | 0 | 0.006849 | 0.196256 | 0.043197 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034247 | null | null | 0.061644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9035dbe3aceda083df43de2bf18cf8907b5bc804 | 499 | py | Python | bin/faceFilter.py | trevery/alpha-dad | f122a99ab70606697bd232e25febe81df7315b72 | [
"MIT"
] | null | null | null | bin/faceFilter.py | trevery/alpha-dad | f122a99ab70606697bd232e25febe81df7315b72 | [
"MIT"
] | null | null | null | bin/faceFilter.py | trevery/alpha-dad | f122a99ab70606697bd232e25febe81df7315b72 | [
"MIT"
] | null | null | null | from SimpleCV import Image
import os
# read one image
def findFace(imgPath):
img = Image(imgPath)
faces = img.findHaarFeatures("face.xml")
if faces is not None:
#print("find faces!")
return True
else:
#print("Don't find andy faces!")
return False
#def deleteFile(imgPath):
# os.remove(imgPath)
# return
... | 16.633333 | 41 | 0.679359 | 69 | 499 | 4.797101 | 0.521739 | 0.090634 | 0.090634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188377 | 499 | 29 | 42 | 17.206897 | 0.817284 | 0.230461 | 0 | 0.117647 | 0 | 0 | 0.148541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90366cf5aed1dadf08fc1835225500e62f3b2cf4 | 974 | py | Python | src/huegely/utils.py | kirberich/huegely | ed993b3b8123605b49e9e1ac9c6d13bf6bab48ac | [
"MIT"
] | 3 | 2015-12-19T10:19:03.000Z | 2018-07-02T11:42:08.000Z | src/huegely/utils.py | kirberich/huegely | ed993b3b8123605b49e9e1ac9c6d13bf6bab48ac | [
"MIT"
] | null | null | null | src/huegely/utils.py | kirberich/huegely | ed993b3b8123605b49e9e1ac9c6d13bf6bab48ac | [
"MIT"
] | null | null | null | from huegely import constants
def parse_attribute_from_url(resource_url):
""" Returns the original attribute from the resource url contained in API responses.
This is simply the last element in a resource url as returned by the API.
API responses look like {'success': {'resource_url': resource_va... | 37.461538 | 105 | 0.700205 | 135 | 974 | 4.911111 | 0.4 | 0.082956 | 0.036199 | 0.087481 | 0.277526 | 0.277526 | 0.168929 | 0.168929 | 0.168929 | 0.168929 | 0 | 0.002554 | 0.196099 | 974 | 25 | 106 | 38.96 | 0.844189 | 0.474333 | 0 | 0.181818 | 0 | 0 | 0.002155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90496913c7b6e643152c9b41cbf1a7f1724837f4 | 4,333 | py | Python | main/settings.py | florent6001/django-simple-blog | a8a9a38ac16d2ac91698f5ca1247bcaa5db83ffd | [
"MIT"
] | 2 | 2020-03-17T12:42:56.000Z | 2020-04-19T12:10:02.000Z | main/settings.py | florent6001/django-simple-blog | a8a9a38ac16d2ac91698f5ca1247bcaa5db83ffd | [
"MIT"
] | 9 | 2021-03-30T12:51:05.000Z | 2022-03-12T00:19:03.000Z | main/settings.py | florent6001/django-simple-blog | a8a9a38ac16d2ac91698f5ca1247bcaa5db83ffd | [
"MIT"
] | null | null | null | from decouple import config
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = config('SECRET_KEY')
DEBUG = config('DEBUG', cast=bool)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=lambda v: [
s.strip() for s in v.split(',')])
INSTALLED_APPS = [
'd... | 27.598726 | 91 | 0.659358 | 456 | 4,333 | 6.096491 | 0.368421 | 0.088849 | 0.042806 | 0.02518 | 0.188849 | 0.165108 | 0.081655 | 0.028777 | 0.028777 | 0 | 0 | 0.005518 | 0.2054 | 4,333 | 156 | 92 | 27.775641 | 0.801917 | 0.120932 | 0 | 0.095652 | 0 | 0 | 0.475877 | 0.332982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06087 | 0.017391 | 0 | 0.017391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
904ad242d7c19b48c16b4584b591187918f75b40 | 329 | py | Python | init-plots/init_plot.py | VivanVatsa/matplotlib-castle | a4e9d5761948fa4192830218e8f4aa4111f43e30 | [
"MIT"
] | 2 | 2021-05-10T13:07:50.000Z | 2021-05-10T16:21:33.000Z | init-plots/init_plot.py | VivanVatsa/matplotlib-directory | a4e9d5761948fa4192830218e8f4aa4111f43e30 | [
"MIT"
] | null | null | null | init-plots/init_plot.py | VivanVatsa/matplotlib-directory | a4e9d5761948fa4192830218e8f4aa4111f43e30 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
# Median Developer Salaries w.r.t Age
x_coordinates = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]
y_coordinates = [
38496,
42000,
46752,
49320,
53200,
56000,
62316,
64928,
67317,
68748,
73752,
]
plt.plot(x_coordinates, y_coordinates)
pl... | 15.666667 | 60 | 0.617021 | 47 | 329 | 4.234043 | 0.851064 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320833 | 0.270517 | 329 | 20 | 61 | 16.45 | 0.508333 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f3acb5e5d46a227ceb78ecc03c694e9e782919a | 243 | py | Python | core/lab_data.py | 3pings/HOLCLD-2100 | 21442a48ea796eb432f4d05a6d5ec307b86ba00a | [
"MIT"
] | null | null | null | core/lab_data.py | 3pings/HOLCLD-2100 | 21442a48ea796eb432f4d05a6d5ec307b86ba00a | [
"MIT"
] | null | null | null | core/lab_data.py | 3pings/HOLCLD-2100 | 21442a48ea796eb432f4d05a6d5ec307b86ba00a | [
"MIT"
] | null | null | null | import yaml, os
def get_lab_data():
yaml_path = os.path.abspath(os.path.join(os.path.dirname( __file__ ), os.pardir, 'lab/yaml/lab_data.yaml'))
yaml_data = open(yaml_path, 'r')
return yaml.load(yaml_data, Loader=yaml.FullLoader)
| 30.375 | 111 | 0.711934 | 40 | 243 | 4.05 | 0.475 | 0.111111 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 243 | 7 | 112 | 34.714286 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.095041 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f3e8f7cbe4e9ffa4f76184b747d52da0b91ab78 | 1,200 | py | Python | custom_dmcontrol/dm_control/entities/manipulators/kinova/assets_path.py | haorang/285 | 3b7369b8eb4433952c9cdf27d4feaa015a6c40e4 | [
"MIT"
] | 26 | 2021-11-05T08:46:06.000Z | 2022-03-22T05:53:57.000Z | dm_control/entities/manipulators/kinova/assets_path.py | zzlqwq/dm_control | fb0199e61db3323a17f56fd089af61f7c949f41e | [
"Apache-2.0"
] | 1 | 2021-11-19T11:13:37.000Z | 2021-11-30T09:08:04.000Z | dm_control/entities/manipulators/kinova/assets_path.py | zzlqwq/dm_control | fb0199e61db3323a17f56fd089af61f7c949f41e | [
"Apache-2.0"
] | 5 | 2021-11-05T08:46:12.000Z | 2022-03-25T21:56:58.000Z | # Copyright 2019 The dm_control Authors.
#
# 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 i... | 33.333333 | 78 | 0.718333 | 174 | 1,200 | 4.781609 | 0.574713 | 0.064904 | 0.057692 | 0.038462 | 0.036058 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.141667 | 1,200 | 35 | 79 | 34.285714 | 0.798058 | 0.6375 | 0 | 0 | 0 | 0 | 0.091787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.615385 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f42cd721b8d1d6876d0a3bab251f81a86c43332 | 13,447 | py | Python | bitcoinx/script.py | AustEcon/bitcoinX | 9dee032ec4910d54c4a976416ccb7c41317f5fa4 | [
"MIT"
] | null | null | null | bitcoinx/script.py | AustEcon/bitcoinX | 9dee032ec4910d54c4a976416ccb7c41317f5fa4 | [
"MIT"
] | null | null | null | bitcoinx/script.py | AustEcon/bitcoinX | 9dee032ec4910d54c4a976416ccb7c41317f5fa4 | [
"MIT"
] | null | null | null | # Copyright (c) 2019, Neil Booth
#
# All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the r... | 29.424508 | 98 | 0.595895 | 1,797 | 13,447 | 4.265999 | 0.292154 | 0.01461 | 0.012784 | 0.009131 | 0.093269 | 0.054918 | 0.011218 | 0.011218 | 0.011218 | 0.011218 | 0 | 0.05163 | 0.320146 | 13,447 | 456 | 99 | 29.489035 | 0.786918 | 0.263256 | 0 | 0.118421 | 0 | 0 | 0.026816 | 0 | 0 | 0 | 0.05071 | 0 | 0.006579 | 1 | 0.078947 | false | 0.006579 | 0.009868 | 0 | 0.611842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f4c7c1134316d633f64223892ce566eb85a859d | 628 | py | Python | project/migrations/0008_auto_20200607_1022.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | project/migrations/0008_auto_20200607_1022.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | project/migrations/0008_auto_20200607_1022.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | # Generated by Django 3.2.dev20200604053612 on 2020-06-07 07:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0007_auto_20200606_1112'),
]
operations = [
migrations.AddField(
model_name='menu',
name=... | 26.166667 | 126 | 0.589172 | 61 | 628 | 5.95082 | 0.737705 | 0.049587 | 0.071625 | 0.093664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101099 | 0.275478 | 628 | 23 | 127 | 27.304348 | 0.696703 | 0.097134 | 0 | 0.235294 | 1 | 0 | 0.153982 | 0.040708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f4db9898aa77818f687dc321392319d43b6565c | 3,939 | py | Python | mezzanine_wiki/models.py | dfalk/mezzanine-wiki | 4c0f2ba86ee320dda06626afa0def253a7cb74ee | [
"BSD-2-Clause"
] | 7 | 2015-01-22T03:49:01.000Z | 2021-06-05T16:39:40.000Z | mezzanine_wiki/models.py | dfalk/mezzanine-wiki | 4c0f2ba86ee320dda06626afa0def253a7cb74ee | [
"BSD-2-Clause"
] | 4 | 2016-07-12T20:32:25.000Z | 2019-12-27T01:28:32.000Z | mezzanine_wiki/models.py | dfalk/mezzanine-wiki | 4c0f2ba86ee320dda06626afa0def253a7cb74ee | [
"BSD-2-Clause"
] | 12 | 2015-01-21T10:27:21.000Z | 2021-02-19T21:38:16.000Z | # -*- coding: utf-8 -*-
from django.db import models
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from mezzanine.conf import settings
from mezzanine.core.fields import FileField
from mezzanine.core.models import Display... | 32.553719 | 86 | 0.638233 | 415 | 3,939 | 5.831325 | 0.33253 | 0.054545 | 0.047107 | 0.024793 | 0.169421 | 0.130579 | 0.107438 | 0.090083 | 0.052066 | 0 | 0 | 0.002417 | 0.264788 | 3,939 | 120 | 87 | 32.825 | 0.833218 | 0.081493 | 0 | 0.175676 | 0 | 0 | 0.128507 | 0.027497 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.081081 | false | 0 | 0.162162 | 0.067568 | 0.608108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f514a6f9b0d96cd61c45216fa73fca4d4a5367d | 1,750 | py | Python | version_control/cli.py | cloudify-cosmo/version-tool | 9f77e3f52513f5e8728693157282e54e136aa10b | [
"Apache-2.0"
] | 1 | 2016-10-26T22:20:01.000Z | 2016-10-26T22:20:01.000Z | version_control/cli.py | cloudify-cosmo/version-tool | 9f77e3f52513f5e8728693157282e54e136aa10b | [
"Apache-2.0"
] | null | null | null | version_control/cli.py | cloudify-cosmo/version-tool | 9f77e3f52513f5e8728693157282e54e136aa10b | [
"Apache-2.0"
] | 2 | 2015-01-21T17:05:48.000Z | 2016-02-15T23:28:53.000Z | # flake8: NOQA
"""Script to run cloudify-version-control via command line
Usage:
version-control (--plugins-version=<string> --core-version=<string>) [--prerelease=<string>]
(--base-dir=<path> --config=<path>) [--validate -v]
version-control --version
Options:
-h --help ... | 27.777778 | 96 | 0.591429 | 199 | 1,750 | 5.055276 | 0.437186 | 0.097416 | 0.062624 | 0.053678 | 0.073559 | 0.073559 | 0.073559 | 0 | 0 | 0 | 0 | 0.002402 | 0.286286 | 1,750 | 62 | 97 | 28.225806 | 0.803042 | 0.006857 | 0 | 0 | 0 | 0 | 0.121893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f548bdba2d94dbde7f475f56a4ce44ac6f4d35c | 5,468 | py | Python | proto/mail_pb2.py | qq20004604/mail-server | 1ac7d2ddcef58a06eada8c2232eba9ca2b79f928 | [
"MIT"
] | 2 | 2019-11-04T03:02:13.000Z | 2019-11-05T03:15:04.000Z | test/mail_pb2.py | qq20004604/mail-server | 1ac7d2ddcef58a06eada8c2232eba9ca2b79f928 | [
"MIT"
] | 6 | 2021-03-19T10:24:43.000Z | 2021-09-22T19:30:43.000Z | package/mail_client/mail_pb2.py | qq20004604/Mail-Report-System | 59d2390431251d8ffd0435cab510a37900f2dc17 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mail.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import... | 33.753086 | 432 | 0.748354 | 638 | 5,468 | 6.141066 | 0.23511 | 0.040837 | 0.058959 | 0.030628 | 0.437468 | 0.415518 | 0.415518 | 0.415518 | 0.383869 | 0.383869 | 0 | 0.033557 | 0.128018 | 5,468 | 161 | 433 | 33.962733 | 0.788171 | 0.051939 | 0 | 0.552239 | 1 | 0.007463 | 0.180835 | 0.112635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037313 | 0 | 0.037313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f55b389638e50c3b048dccc4b371440e6d8ebed | 4,488 | py | Python | pysptools/spectro/inval.py | ctherien/pysptools | fbcd3ecaa7ab27f0158b28b4327537c3e75db160 | [
"Apache-2.0"
] | 35 | 2016-03-20T15:25:07.000Z | 2022-03-29T04:05:56.000Z | pysptools/spectro/inval.py | ctherien/pysptools | fbcd3ecaa7ab27f0158b28b4327537c3e75db160 | [
"Apache-2.0"
] | 12 | 2016-03-24T13:38:52.000Z | 2021-04-06T07:11:19.000Z | pysptools/spectro/inval.py | ctherien/pysptools | fbcd3ecaa7ab27f0158b28b4327537c3e75db160 | [
"Apache-2.0"
] | 14 | 2016-03-21T17:26:46.000Z | 2022-01-18T08:39:27.000Z | #
#------------------------------------------------------------------------------
# Copyright (c) 2013-2014, Christian Therien
#
# 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
#
# h... | 41.555556 | 147 | 0.662879 | 486 | 4,488 | 5.876543 | 0.238683 | 0.077381 | 0.107143 | 0.077031 | 0.685924 | 0.683123 | 0.603641 | 0.583333 | 0.521709 | 0.521709 | 0 | 0.004827 | 0.215241 | 4,488 | 107 | 148 | 41.943925 | 0.806076 | 0.208779 | 0 | 0.666667 | 0 | 0 | 0.034291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.015152 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f64dc24665166b2de6f2f9d5b3f1c62f0914037 | 3,369 | py | Python | authors/apps/authentication/tests/test_validation.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/authentication/tests/test_validation.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | 56 | 2018-08-28T13:18:19.000Z | 2021-06-10T20:49:30.000Z | authors/apps/authentication/tests/test_validation.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | 4 | 2018-08-24T04:40:32.000Z | 2021-06-30T09:47:08.000Z | from rest_framework import status
from authors.apps.authentication.tests import BaseTest
class ValidationTests(BaseTest):
def test_missing_email(self):
"""Test whether an error is returned when some required fields are missing"""
self.user_validate_data["user"].pop("email")
data = self.... | 40.107143 | 100 | 0.623034 | 400 | 3,369 | 5.105 | 0.2575 | 0.039177 | 0.078355 | 0.097943 | 0.599412 | 0.587659 | 0.527914 | 0.441234 | 0.270813 | 0.262977 | 0 | 0.006387 | 0.256456 | 3,369 | 83 | 101 | 40.590361 | 0.808782 | 0.170377 | 0 | 0.377358 | 0 | 0 | 0.23602 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 1 | 0.188679 | false | 0.226415 | 0.037736 | 0 | 0.264151 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5f6e09c7793784185ceb5f908a53f5ec60bb0f5b | 2,494 | py | Python | SRC/orientationmap/orientmapdisplay.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | SRC/orientationmap/orientmapdisplay.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | SRC/orientationmap/orientmapdisplay.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 44.535714 | 103 | 0.719727 | 279 | 2,494 | 6.394265 | 0.469534 | 0.07287 | 0.06278 | 0.049327 | 0.174888 | 0.042601 | 0.042601 | 0.042601 | 0 | 0 | 0 | 0.006497 | 0.197674 | 2,494 | 55 | 104 | 45.345455 | 0.885057 | 0.255012 | 0 | 0 | 0 | 0 | 0.123035 | 0.030352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.333333 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f7466b0ae98c93b9b60cf0a0fffea4cf7387dd8 | 383 | py | Python | basicfunc.py | krshubham/ecc-elgamal | 9a4e14b59580a6b71d33919e5dd9adc3867bf30f | [
"MIT"
] | 1 | 2017-10-17T07:03:51.000Z | 2017-10-17T07:03:51.000Z | basicfunc.py | krshubham/ecc-elgamal | 9a4e14b59580a6b71d33919e5dd9adc3867bf30f | [
"MIT"
] | null | null | null | basicfunc.py | krshubham/ecc-elgamal | 9a4e14b59580a6b71d33919e5dd9adc3867bf30f | [
"MIT"
] | null | null | null | import collections
import os,sys
def inv(n, q):
for i in range(q):
if (n * i) % q == 1:
return i
pass
assert False, "unreached"
pass
def sqrt(n, q):
assert n < q
for i in range(1, q):
if i * i % q == n:
return (i, q - i)
pass
return (Fals... | 18.238095 | 51 | 0.488251 | 58 | 383 | 3.224138 | 0.413793 | 0.032086 | 0.053476 | 0.064171 | 0.139037 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.373368 | 383 | 21 | 51 | 18.238095 | 0.770833 | 0 | 0 | 0.176471 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.176471 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5f785393ef3e7a5c77df5ec5bc6d2c915a18b7b4 | 360 | py | Python | app/ask/api.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | 8 | 2020-06-16T07:45:35.000Z | 2020-08-10T10:11:50.000Z | app/ask/api.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | 2 | 2021-10-06T18:31:08.000Z | 2022-02-19T03:32:29.000Z | app/ask/api.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | null | null | null | from functools import wraps
from glasskit.utils import get_user_from_app_context
from ask.errors import AuthenticationError
def auth_required(func):
@wraps(func)
def wrapper(*args, **kwargs):
u = get_user_from_app_context()
if u is None:
raise AuthenticationError()
return f... | 25.714286 | 52 | 0.697222 | 46 | 360 | 5.26087 | 0.565217 | 0.057851 | 0.090909 | 0.115702 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227778 | 360 | 13 | 53 | 27.692308 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f7e6bb49caeb45506665d228934978f0c67faaa | 1,706 | py | Python | src/hardwario/chester/pib.py | hardwario/py-hardwario-chester | efe355ff63491f8f0e0fe78786f56ed18df4b262 | [
"MIT"
] | null | null | null | src/hardwario/chester/pib.py | hardwario/py-hardwario-chester | efe355ff63491f8f0e0fe78786f56ed18df4b262 | [
"MIT"
] | null | null | null | src/hardwario/chester/pib.py | hardwario/py-hardwario-chester | efe355ff63491f8f0e0fe78786f56ed18df4b262 | [
"MIT"
] | null | null | null | import re
from hardwario.common.pib import PIB as PIBCommon, PIBException
class PIB(PIBCommon):
HW_VARIANT_LIST = [
'CDGLS',
'CGLS',
'CGS',
'CGV',
'CS',
'CV',
'L',
'BCDGLS',
'BCGLS',
'BCGS',
'BCGV',
'BCS',
'BC... | 24.028169 | 78 | 0.548066 | 205 | 1,706 | 4.331707 | 0.409756 | 0.09009 | 0.037162 | 0.045045 | 0.103604 | 0.04955 | 0.04955 | 0 | 0 | 0 | 0 | 0.023973 | 0.315358 | 1,706 | 70 | 79 | 24.371429 | 0.736301 | 0 | 0 | 0 | 0 | 0 | 0.147714 | 0 | 0 | 0 | 0.004689 | 0 | 0 | 1 | 0.140351 | false | 0.122807 | 0.035088 | 0.035088 | 0.298246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5f807d29801e7c913e228ec8a90ff0db948456e9 | 370 | py | Python | Dataset/Leetcode/valid/62/489.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/62/489.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/62/489.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
dp = [1]*n
dp = [dp]*m
for i in range(m):
for j in range(n):
if i!=0 and j!=0:
dp[i][j] = dp[i-1][j] + dp[i][j-1]... | 23.125 | 54 | 0.332432 | 55 | 370 | 2.236364 | 0.4 | 0.073171 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038043 | 0.502703 | 370 | 15 | 55 | 24.666667 | 0.630435 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f892e84ce47f7e24d2b05505b0a9eaa05807346 | 3,438 | py | Python | ec_crawler.py | rmadhok/scrapy-crawl-asp | ad3e4c685a5d31b706525098fabe5625e41613fc | [
"MIT"
] | 16 | 2016-08-01T21:23:13.000Z | 2019-10-17T01:13:00.000Z | ec_crawler.py | rmadhok/scrapy-crawl-asp | ad3e4c685a5d31b706525098fabe5625e41613fc | [
"MIT"
] | 1 | 2016-08-26T21:03:06.000Z | 2016-08-26T21:03:06.000Z | ec_crawler.py | rmadhok/scrapy-crawl-asp | ad3e4c685a5d31b706525098fabe5625e41613fc | [
"MIT"
] | 7 | 2016-03-25T21:28:05.000Z | 2020-08-25T16:11:25.000Z | """
=== Web Scraper for pulling environmental clearance data ===
The scraper cycles through every page on the start url
and builds a useable dataset. The website runs on ASP.net
so each page is reached using a form request and posting
javascript arguements.
USE:
* For scraping central data, set page 1 to url_a1 and
... | 33.057692 | 148 | 0.589296 | 405 | 3,438 | 4.846914 | 0.422222 | 0.012226 | 0.018339 | 0.04432 | 0.074376 | 0.074376 | 0 | 0 | 0 | 0 | 0 | 0.013457 | 0.308319 | 3,438 | 103 | 149 | 33.378641 | 0.812027 | 0.228621 | 0 | 0.076923 | 0 | 0 | 0.293569 | 0.04287 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096154 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f8b3e752d9cb2e179565d44b98ccd0eca52e0c2 | 4,630 | py | Python | monolithe/courgette/lib/helper.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 18 | 2015-06-24T18:35:20.000Z | 2022-01-19T19:04:00.000Z | monolithe/courgette/lib/helper.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 63 | 2015-11-03T18:57:12.000Z | 2020-09-30T02:54:49.000Z | monolithe/courgette/lib/helper.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 38 | 2015-10-23T19:04:44.000Z | 2021-06-04T08:13:33.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | 37.95082 | 167 | 0.685097 | 588 | 4,630 | 5.251701 | 0.341837 | 0.05829 | 0.036269 | 0.032383 | 0.255505 | 0.189443 | 0.145402 | 0.145402 | 0.114313 | 0.114313 | 0 | 0.001399 | 0.227862 | 4,630 | 121 | 168 | 38.264463 | 0.862378 | 0.402376 | 0 | 0.037736 | 0 | 0 | 0.04486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0.037736 | 0.056604 | 0.037736 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f8c2cf9c6eca5fb4d5f977c17b26b73dcaa6715 | 1,968 | py | Python | pydenji/config/composite.py | alanfranz/pydenji | a922f1456e0d698b3e9e0674d980ede746fc2835 | [
"Apache-2.0"
] | null | null | null | pydenji/config/composite.py | alanfranz/pydenji | a922f1456e0d698b3e9e0674d980ede746fc2835 | [
"Apache-2.0"
] | null | null | null | pydenji/config/composite.py | alanfranz/pydenji | a922f1456e0d698b3e9e0674d980ede746fc2835 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (C) 2010 Alan Franzoni
from pydenji.config.provider import is_object_factory, dontconfigure
from pydenji.appcontext.aware import AppContextAware
class NamingClashException(Exception):
def __init__(self, clashing_attr, last_config):
super(NamingClashException... | 40.163265 | 99 | 0.59248 | 207 | 1,968 | 5.425121 | 0.492754 | 0.029386 | 0.034728 | 0.039181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003828 | 0.336382 | 1,968 | 49 | 100 | 40.163265 | 0.856049 | 0.26626 | 0 | 0 | 0 | 0 | 0.046788 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f8c83edd9adba53b537298dddf6ca056af8d20e | 425 | py | Python | bluebottle/assignments/migrations/0002_auto_20190529_0858.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/assignments/migrations/0002_auto_20190529_0858.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/assignments/migrations/0002_auto_20190529_0858.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-05-29 06:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('assignments', '0001_initial'),
]
operations = [
migrations.RenameField(
... | 20.238095 | 49 | 0.602353 | 45 | 425 | 5.488889 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0.28 | 425 | 20 | 50 | 21.25 | 0.735294 | 0.162353 | 0 | 0 | 1 | 0 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f99dbbdee2c2694d57f6b339774f6b1740c4c5e | 269 | py | Python | imports/download-json.py | UrbanDS/semantic-segmentation-editor | 8a7ca14708b22b96a988e4dcc0502eb94acf8292 | [
"MIT"
] | null | null | null | imports/download-json.py | UrbanDS/semantic-segmentation-editor | 8a7ca14708b22b96a988e4dcc0502eb94acf8292 | [
"MIT"
] | 1 | 2022-01-27T16:10:53.000Z | 2022-01-27T16:10:53.000Z | imports/download-json.py | UrbanDS/semantic-segmentation-editor | 8a7ca14708b22b96a988e4dcc0502eb94acf8292 | [
"MIT"
] | 1 | 2020-07-20T20:50:01.000Z | 2020-07-20T20:50:01.000Z | import glob
import requests
import json
files = glob.glob('*.jpg')
for file in files:
base_file = file.split("/")[-1]
output = open(base_file.replace(".jpg", ".json"))
url = f"http://localhost:3000/api/json/{base_file}"
json.dump(requests.get(url).json(), output) | 24.454545 | 52 | 0.687732 | 42 | 269 | 4.333333 | 0.547619 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.111524 | 269 | 11 | 53 | 24.454545 | 0.740586 | 0 | 0 | 0 | 0 | 0 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f9a7314d57b1d513794e3d1dfa51b0d7ce8a0f9 | 536 | py | Python | decoder/base_decoder.py | baoy-nlp/TextVAE-pytorch | 65e53eef4f0c8b6ddd1355c857eff028421c0b4e | [
"MIT"
] | 37 | 2019-07-05T16:20:13.000Z | 2021-12-21T05:04:49.000Z | decoder/base_decoder.py | baoy-nlp/TextVAE-pytorch | 65e53eef4f0c8b6ddd1355c857eff028421c0b4e | [
"MIT"
] | 2 | 2019-08-28T11:51:01.000Z | 2021-06-06T11:39:21.000Z | decoder/base_decoder.py | baoy-nlp/TextVAE-pytorch | 65e53eef4f0c8b6ddd1355c857eff028421c0b4e | [
"MIT"
] | 3 | 2020-09-20T13:02:45.000Z | 2021-04-22T08:04:26.000Z | class BaseDecoder(object):
def __init__(self, name="BaseDecoder"):
self.name = name
print(name)
def decode(self, **kwargs):
"""
Using for greedy decoding for a given input, may corresponding with gold target,
return the log_probability of decoder steps.
"""
... | 28.210526 | 88 | 0.61194 | 57 | 536 | 5.649123 | 0.649123 | 0.049689 | 0.074534 | 0.142857 | 0.15528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300373 | 536 | 18 | 89 | 29.777778 | 0.858667 | 0.384328 | 0 | 0.25 | 0 | 0 | 0.041199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f9f07376ac946bf2771cc27a10eb9abe6fb67aa | 464 | py | Python | data/ar20.5ab_apdtrpap_Tn_solvated/rand_kde.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | data/ar20.5ab_apdtrpap_Tn_solvated/rand_kde.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | data/ar20.5ab_apdtrpap_Tn_solvated/rand_kde.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | #!/home/charmm-gui/local/bin/python
import sys, os
import cPickle
import numpy as np
from sklearn.neighbors import KernelDensity
segid = sys.argv[1]
#segid = segid.lower()
#saved_pickle = 'glycan_rotlib.dat'
saved_pickle = sys.argv[2]
kde = cPickle.load( open(saved_pickle, 'rb') )
sample = kde[segid].sample(n_samples... | 27.294118 | 67 | 0.698276 | 73 | 464 | 4.342466 | 0.561644 | 0.094637 | 0.082019 | 0.119874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.094828 | 464 | 16 | 68 | 29 | 0.72619 | 0.19181 | 0 | 0 | 0 | 0 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5fa4ccc5eb9fe5e1f3260a45dc9125fd80934914 | 1,619 | py | Python | mongonator/pointermixin.py | nitxiodev/py-mongonnator | c9dd1d47d89d1b26be95868d22d6f6115765dbe6 | [
"Apache-2.0"
] | 2 | 2021-06-01T11:11:47.000Z | 2021-07-19T13:14:21.000Z | mongonator/pointermixin.py | nitxiodev/py-mongonnator | c9dd1d47d89d1b26be95868d22d6f6115765dbe6 | [
"Apache-2.0"
] | 3 | 2020-11-07T23:00:55.000Z | 2021-05-18T13:16:15.000Z | mongonator/pointermixin.py | nitxiodev/py-mongonnator | c9dd1d47d89d1b26be95868d22d6f6115765dbe6 | [
"Apache-2.0"
] | 1 | 2021-07-07T16:09:43.000Z | 2021-07-07T16:09:43.000Z | import base64
import pickle
import mongonator
class PointerMixin:
def encode(self, collection_data, field):
return base64.b64encode(pickle.dumps((collection_data.get(field), collection_data.get("_id"))))
def decode(self, encoded_pointer):
if encoded_pointer is not None:
return pi... | 37.651163 | 103 | 0.66399 | 184 | 1,619 | 5.548913 | 0.25 | 0.129285 | 0.054848 | 0.094025 | 0.505387 | 0.471107 | 0.369246 | 0.333007 | 0.333007 | 0.333007 | 0 | 0.011382 | 0.240272 | 1,619 | 42 | 104 | 38.547619 | 0.818699 | 0 | 0 | 0.30303 | 0 | 0 | 0.052502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.030303 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fa8548616ab09b82ebe24124154c1fd6becfbb2 | 3,727 | py | Python | Lab04_git/action_operator.py | dmitrykoro/NetworksLab2020 | f7fcad781b74896c68311f74edc182a207367f81 | [
"MIT"
] | null | null | null | Lab04_git/action_operator.py | dmitrykoro/NetworksLab2020 | f7fcad781b74896c68311f74edc182a207367f81 | [
"MIT"
] | null | null | null | Lab04_git/action_operator.py | dmitrykoro/NetworksLab2020 | f7fcad781b74896c68311f74edc182a207367f81 | [
"MIT"
] | null | null | null | import json
import sys
from math import ceil
from server import BLOCK_SIZE
from encrypt import encrypt_password
from database_handler import add_to_database, get_from_database, delete_from_database, get_total_amount
from datetime import datetime
date_format = '%Y-%m-%d %H:%M:%S.%f'
def authenticate(user... | 36.90099 | 104 | 0.590019 | 460 | 3,727 | 4.630435 | 0.217391 | 0.018779 | 0.050704 | 0.06385 | 0.432864 | 0.395775 | 0.338498 | 0.321127 | 0.321127 | 0.302347 | 0 | 0.010208 | 0.264019 | 3,727 | 100 | 105 | 37.27 | 0.766314 | 0.017172 | 0 | 0.253333 | 0 | 0 | 0.178421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.12 | 0.093333 | 0 | 0.2 | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5fb099530af29ac23cb350fde1fab01428302473 | 183 | py | Python | contest/abc118/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc118/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc118/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | import fractions
n = int(input())
a = list(map(int, input().split()))
ans = 0
# 最大公約数を求める
for i in range(n - 1):
ans = fractions.gcd(a[i], a[i + 1])
a[i + 1] = ans
print(ans)
| 18.3 | 39 | 0.57377 | 34 | 183 | 3.088235 | 0.558824 | 0.057143 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.218579 | 183 | 9 | 40 | 20.333333 | 0.706294 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fbafb8a270ba40b936ec35bdad356b485ded4b2 | 2,249 | py | Python | cli/menu.py | reneses/cloud-cli | 1f765cfb67cb9ffde1633fffe0da11893fb1503f | [
"MIT"
] | null | null | null | cli/menu.py | reneses/cloud-cli | 1f765cfb67cb9ffde1633fffe0da11893fb1503f | [
"MIT"
] | null | null | null | cli/menu.py | reneses/cloud-cli | 1f765cfb67cb9ffde1633fffe0da11893fb1503f | [
"MIT"
] | null | null | null | import sys
class MenuEntry:
"""
Class representing a menu entry, which has a name and an associated function
"""
def __init__(self, name, f):
"""
Entry constructor
:param name: Name to display
:param f: Associated function
"""
self.name = name
... | 22.717172 | 80 | 0.473544 | 236 | 2,249 | 4.423729 | 0.377119 | 0.045977 | 0.034483 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003172 | 0.439306 | 2,249 | 98 | 81 | 22.94898 | 0.824742 | 0.060471 | 0 | 0.047619 | 0 | 0 | 0.059075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fc5d7d5bedc2e957a1c1cda88b8c7d1dd5b49b5 | 6,761 | py | Python | tests/test_xmlparser.py | aurzenligl/melina | 3fbd5257f17a15ac9c95bc1a6317b27fa967fc4e | [
"MIT"
] | null | null | null | tests/test_xmlparser.py | aurzenligl/melina | 3fbd5257f17a15ac9c95bc1a6317b27fa967fc4e | [
"MIT"
] | null | null | null | tests/test_xmlparser.py | aurzenligl/melina | 3fbd5257f17a15ac9c95bc1a6317b27fa967fc4e | [
"MIT"
] | null | null | null | import os
import timeit
import pytest
import melina
datadir = os.path.abspath(__file__ + '/../data')
def parse(filename):
return melina.XmlParser.from_file(datadir + '/' + filename).parse()
def id_func(param):
if isinstance(param, str):
name, ext = os.path.splitext(param)
if ext == '.xml':
... | 55.876033 | 161 | 0.597988 | 804 | 6,761 | 4.929104 | 0.262438 | 0.035327 | 0.032803 | 0.025738 | 0.318193 | 0.198839 | 0.151148 | 0.120868 | 0.113046 | 0.088822 | 0 | 0.040414 | 0.271705 | 6,761 | 120 | 162 | 56.341667 | 0.764419 | 0 | 0 | 0.105263 | 0 | 0.192982 | 0.789528 | 0.100133 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.04386 | false | 0 | 0.035088 | 0.008772 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fccaf01cde941c83b110aa74b33637c5d4555dd | 2,891 | py | Python | tests/test_emoji.py | capnfabs/emoji-haiku | cacf011424a9d15b8cf6f17b2b815a85cf2b97f2 | [
"Apache-2.0"
] | 4 | 2017-04-16T01:07:31.000Z | 2020-05-02T18:29:45.000Z | tests/test_emoji.py | capnfabs/emoji-haiku | cacf011424a9d15b8cf6f17b2b815a85cf2b97f2 | [
"Apache-2.0"
] | null | null | null | tests/test_emoji.py | capnfabs/emoji-haiku | cacf011424a9d15b8cf6f17b2b815a85cf2b97f2 | [
"Apache-2.0"
] | null | null | null | from emoji.core import Gender
from tests.fixture_emoji import baby_angel, detective, genie, index_pointing_up, pencil, \
police_officer, tent, MODIFIER_SKIN_TONE_DARK
def from_cps(codepoints: str) -> str:
"""The unicode datafiles often contain entries in this format, which is super useful for
copy-pasting... | 36.594937 | 96 | 0.732618 | 394 | 2,891 | 5.126904 | 0.324873 | 0.058911 | 0.047525 | 0.059406 | 0.407921 | 0.365842 | 0.224257 | 0.162871 | 0.085644 | 0.058416 | 0 | 0.04658 | 0.175718 | 2,891 | 78 | 97 | 37.064103 | 0.801091 | 0.270149 | 0 | 0.153846 | 0 | 0 | 0.102963 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.282051 | false | 0 | 0.051282 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd18aff869dd3bcafab8198e4c4213dd7f590ff | 2,938 | py | Python | snake_game.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | snake_game.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | snake_game.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | from collections import deque
class SnakeGame:
def __init__(self, width: int, height: int, food: List[List[int]]):
"""
Initialize your data structure here.
@param width - screen width
@param height - screen height
@param food - A list of food positions
E.g food = [... | 36.271605 | 248 | 0.551736 | 388 | 2,938 | 4.033505 | 0.242268 | 0.191693 | 0.191693 | 0.092013 | 0.311182 | 0.286901 | 0.226837 | 0.226837 | 0.20639 | 0.131629 | 0 | 0.034586 | 0.320967 | 2,938 | 81 | 249 | 36.271605 | 0.749875 | 0.20354 | 0 | 0.212766 | 0 | 0 | 0.001342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.148936 | 0.12766 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd201ba6f29f60c878142765688dedefc4a75a4 | 574 | py | Python | TTestDependentPlugin.py | verociraptor/CSVPairedTTest | 292a6336a90466af701a418fa82d626789d5c646 | [
"MIT"
] | null | null | null | TTestDependentPlugin.py | verociraptor/CSVPairedTTest | 292a6336a90466af701a418fa82d626789d5c646 | [
"MIT"
] | null | null | null | TTestDependentPlugin.py | verociraptor/CSVPairedTTest | 292a6336a90466af701a418fa82d626789d5c646 | [
"MIT"
] | null | null | null | import sys
import csv
from scipy import stats
class TTestDependentPlugin:
def input(self, filename):
self.myfile = filename
def run(self):
f = open(self.myfile, 'r')
csv_f = csv.reader(f)
next(csv_f)
self.column1, self.column2 = [], []
for row in csv_f:
self.column1.append(row[1])
self.column2... | 19.133333 | 52 | 0.675958 | 93 | 574 | 4.129032 | 0.419355 | 0.143229 | 0.117188 | 0.171875 | 0.072917 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0.025918 | 0.19338 | 574 | 29 | 53 | 19.793103 | 0.803456 | 0.062718 | 0 | 0 | 0 | 0 | 0.001862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
395eacb8290bad31cbef33c0bcd4b3110e96c832 | 391 | py | Python | tests/numpy/arange.py | Fryguy/py2rb | 0d2fbc5a86b82707a1d83241a21af6b2cc22c0b8 | [
"MIT"
] | 124 | 2017-08-19T05:37:16.000Z | 2022-03-08T18:24:18.000Z | tests/numpy/arange.py | JeMaMokuma/py2rb | 0d2fbc5a86b82707a1d83241a21af6b2cc22c0b8 | [
"MIT"
] | 15 | 2017-12-16T05:59:31.000Z | 2022-02-08T02:51:17.000Z | tests/numpy/arange.py | JeMaMokuma/py2rb | 0d2fbc5a86b82707a1d83241a21af6b2cc22c0b8 | [
"MIT"
] | 18 | 2017-09-25T11:57:04.000Z | 2022-02-19T17:33:48.000Z | import numpy as np
def print_array(data):
datas = []
for i in data:
if float("%.3f" % abs(i)) == 0:
datas.append(float("%.3f" % abs(i)))
else:
datas.append(float("%.3f" % i))
print(datas)
x = np.arange(-1.0, 1.0, 0.1)
print_array(x)
x = np.arange(6)
print_array(x)
x... | 18.619048 | 48 | 0.544757 | 69 | 391 | 3.014493 | 0.347826 | 0.240385 | 0.173077 | 0.144231 | 0.3125 | 0.3125 | 0.216346 | 0.216346 | 0.216346 | 0 | 0 | 0.055172 | 0.258312 | 391 | 20 | 49 | 19.55 | 0.662069 | 0 | 0 | 0.235294 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.352941 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39693c102a182a2d5c7f8449be6d51a09805eb83 | 1,000 | py | Python | rate/migrations/0006_choice_review.py | muneneee/work | b16e273bd8ee626b41cdbb5366013b76ff6c373a | [
"MIT"
] | null | null | null | rate/migrations/0006_choice_review.py | muneneee/work | b16e273bd8ee626b41cdbb5366013b76ff6c373a | [
"MIT"
] | 6 | 2021-03-19T11:22:07.000Z | 2022-02-10T12:03:40.000Z | rate/migrations/0006_choice_review.py | muneneee/work | b16e273bd8ee626b41cdbb5366013b76ff6c373a | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-06-07 14:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rate', '0005_project_account'),
]
operations = [
migrations.CreateModel(
name='Review',
... | 32.258065 | 114 | 0.578 | 101 | 1,000 | 5.60396 | 0.504951 | 0.042403 | 0.04947 | 0.077739 | 0.371025 | 0.279152 | 0.279152 | 0.279152 | 0.279152 | 0.279152 | 0 | 0.032168 | 0.285 | 1,000 | 30 | 115 | 33.333333 | 0.759441 | 0.043 | 0 | 0.416667 | 1 | 0 | 0.091099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
396a8622857ab483dedadda7cd197e0bd29342dd | 9,224 | py | Python | Python/cryptal_frame_examples/ecc/done.py | NigrumAquila/useful_solutions | cd86d7e3cc0de83fd92b8afdbed5acae2213fb47 | [
"Unlicense"
] | 2 | 2020-04-12T16:33:04.000Z | 2020-05-06T09:08:09.000Z | Python/cryptal_frame_examples/ecc/done.py | NigrumAquila/useful_solutions | cd86d7e3cc0de83fd92b8afdbed5acae2213fb47 | [
"Unlicense"
] | null | null | null | Python/cryptal_frame_examples/ecc/done.py | NigrumAquila/useful_solutions | cd86d7e3cc0de83fd92b8afdbed5acae2213fb47 | [
"Unlicense"
] | null | null | null | import collections
def inv(n, q):
"""div on PN modulo a/b mod q as a * inv(b, q) mod q
>>> assert n * inv(n, q) % q == 1
"""
# n*inv % q = 1 => n*inv = q*m + 1 => n*inv + q*-m = 1
# => egcd(n, q) = (inv, -m, 1) => inv = egcd(n, q)[0] (mod q)
return egcd(n, q)[0] % q
#[ref] naive implementa... | 28.294479 | 79 | 0.487316 | 1,461 | 9,224 | 3.049281 | 0.132786 | 0.039057 | 0.026263 | 0.017957 | 0.265769 | 0.208081 | 0.183614 | 0.142536 | 0.125028 | 0.119641 | 0 | 0.024374 | 0.359497 | 9,224 | 326 | 80 | 28.294479 | 0.729689 | 0.337598 | 0 | 0.2625 | 0 | 0 | 0.006779 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 1 | 0.13125 | false | 0.1 | 0.00625 | 0 | 0.275 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
396b4a6749ef88edc0ce26096fa542dd96eeaa7b | 300 | py | Python | codigo/Live197/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | 2 | 2017-06-05T23:32:00.000Z | 2017-06-08T01:01:35.000Z | codigo/Live197/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | codigo/Live197/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | def formatação(quem, prog, n):
return '{quem} está apresentando a {prog} #{n}'
nome = 'Eduardo'
programa = 'Live de Python'
numero = 197
breakpoint()
formatado = formatação(nome, programa, numero)
breakpoint()
# TESTE!
assert formatado == 'Eduardo está apresentando a Live de Python #197'
| 16.666667 | 69 | 0.7 | 38 | 300 | 5.526316 | 0.552632 | 0.047619 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024292 | 0.176667 | 300 | 17 | 70 | 17.647059 | 0.825911 | 0.02 | 0 | 0.222222 | 0 | 0 | 0.363014 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0 | 0.111111 | 0.222222 | 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 | 0 | 0 | 0 | 1 |
396c0a735663efa94505eeee204284cf7bf3a991 | 2,718 | py | Python | unittest/scripts/py_devapi/validation/mysqlx_table_delete.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | unittest/scripts/py_devapi/validation/mysqlx_table_delete.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | unittest/scripts/py_devapi/validation/mysqlx_table_delete.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | #@ TableDelete: valid operations after delete
|All expected functions are available|
|No additional functions are available|
#@ TableDelete: valid operations after where
|All expected functions are available|
|No additional functions are available|
#@ TableDelete: valid operations after order_by
|All expected functio... | 31.976471 | 89 | 0.775938 | 378 | 2,718 | 5.560847 | 0.227513 | 0.068506 | 0.119886 | 0.088487 | 0.619886 | 0.469077 | 0.458135 | 0.458135 | 0.412464 | 0.373454 | 0 | 0.015504 | 0.145695 | 2,718 | 84 | 90 | 32.357143 | 0.88975 | 0.352097 | 0 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
396c8f7f767d08269f54c9b93c79245b2d0c18c9 | 6,956 | py | Python | parse.py | VT-CHCI/Jeffersonian-Stats | 0816a0c493fe1950904ae6ee2936eafcf5a7d600 | [
"MIT"
] | 1 | 2020-09-21T07:31:07.000Z | 2020-09-21T07:31:07.000Z | parse.py | VT-CHCI/Jeffersonian-Stats | 0816a0c493fe1950904ae6ee2936eafcf5a7d600 | [
"MIT"
] | null | null | null | parse.py | VT-CHCI/Jeffersonian-Stats | 0816a0c493fe1950904ae6ee2936eafcf5a7d600 | [
"MIT"
] | null | null | null | import sys
import re
import string
import codes
import os
def remove_non_verbals(txt): # (* ... *)
nv_pattern = re.compile("\(\*[^\*\)]+\*\)")
results = nv_pattern.subn('',txt)
return results
def remove_timestamps(txt):
# the dot M means multiline
ts_pattern = re.compile("^[^\[]*\[\d\d:\d\d:\d\d\.... | 38.430939 | 169 | 0.663744 | 907 | 6,956 | 4.835722 | 0.16097 | 0.040128 | 0.040128 | 0.03192 | 0.380529 | 0.262654 | 0.182399 | 0.095759 | 0.073871 | 0.057912 | 0 | 0.007434 | 0.207159 | 6,956 | 181 | 170 | 38.430939 | 0.787851 | 0.162306 | 0 | 0.144 | 0 | 0 | 0.099965 | 0.01433 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3971096c4cc273693fdd19cadd8f7b76b930461b | 1,093 | py | Python | inst/phyloprofile/scripts/fastaParser.py | trvinh/test | 73d91cb76e986c6b7b056a728cdf2b4b22171946 | [
"MIT"
] | null | null | null | inst/phyloprofile/scripts/fastaParser.py | trvinh/test | 73d91cb76e986c6b7b056a728cdf2b4b22171946 | [
"MIT"
] | null | null | null | inst/phyloprofile/scripts/fastaParser.py | trvinh/test | 73d91cb76e986c6b7b056a728cdf2b4b22171946 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import getopt
import glob
import time
import re
def appendToDict(key,value,aDict):
if not key in aDict.keys():
aDict[key] = []
aDict[key].append(value)
else:
if not value in aDict[key]:
aDict[key].append(value)
def main(argv):
inFile = ''
try:
opts, args = getopt.geto... | 21.86 | 58 | 0.605672 | 168 | 1,093 | 3.892857 | 0.422619 | 0.04893 | 0.082569 | 0.087156 | 0.195719 | 0.195719 | 0.11315 | 0.11315 | 0.11315 | 0 | 0 | 0.011325 | 0.192132 | 1,093 | 49 | 59 | 22.306122 | 0.729332 | 0.045746 | 0 | 0.195122 | 0 | 0 | 0.164423 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3979e6f55589e1a0f72ff83846035b34b9fb0411 | 19,101 | py | Python | Visualization/CTDvPrawler_plot.py | shaunwbell/EcoFOCI_AtSea | a21a8f90c0d82902f24e64db1ef3f2af51005f57 | [
"MIT"
] | 2 | 2017-03-07T23:27:24.000Z | 2020-02-14T22:16:37.000Z | Visualization/CTDvPrawler_plot.py | shaunwbell/EcoFOCI_AtSea | a21a8f90c0d82902f24e64db1ef3f2af51005f57 | [
"MIT"
] | 73 | 2020-12-14T17:45:36.000Z | 2022-03-02T05:06:10.000Z | Visualization/CTDvPrawler_plot.py | NOAA-PMEL/EcoFOCI_AtSea | 1528d3df810a28e5a715538aef9a0a0d6bc14381 | [
"MIT"
] | null | null | null | #!/usr/bin/env
"""
CTDvPrawler_plot.py
Plot data from cruises
Currently
---------
ctd plots
plots prawler data as secondary
Input - CruiseID
Compatibility:
==============
python >=3.6
python 2.7
"""
from __future__ import absolute_import, division, print_function
import argparse
import datetime
import os
... | 40.46822 | 167 | 0.558348 | 2,306 | 19,101 | 4.441457 | 0.120555 | 0.030268 | 0.040812 | 0.046475 | 0.785198 | 0.72066 | 0.647042 | 0.632103 | 0.628979 | 0.591095 | 0 | 0.038865 | 0.256426 | 19,101 | 471 | 168 | 40.55414 | 0.68225 | 0.012355 | 0 | 0.626039 | 0 | 0 | 0.176316 | 0.004874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00277 | false | 0 | 0.038781 | 0 | 0.044321 | 0.00831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.