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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92b1f11a47c452538e873213498085cdb64f10d2 | 5,238 | py | Python | src/hardware/depth_registration.py | shehancaldera/baxter_pick_and_place | e6f6b7decf5bee0b3b757b4dd7326c97115b6e38 | [
"BSD-2-Clause"
] | 6 | 2018-12-15T15:08:45.000Z | 2020-10-24T05:57:59.000Z | src/hardware/depth_registration.py | BRML/baxter_pick_and_place | b9faf285bcbeb0cbadac59c34d016838b26d1fe4 | [
"BSD-2-Clause"
] | null | null | null | src/hardware/depth_registration.py | BRML/baxter_pick_and_place | b9faf285bcbeb0cbadac59c34d016838b26d1fe4 | [
"BSD-2-Clause"
] | 4 | 2016-12-14T17:44:43.000Z | 2020-01-07T06:58:16.000Z | # Copyright (c) 2016, BRML
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following... | 41.571429 | 81 | 0.70294 | 815 | 5,238 | 4.426994 | 0.325153 | 0.041574 | 0.025222 | 0.025499 | 0.276608 | 0.244457 | 0.244457 | 0.244457 | 0.244457 | 0.244457 | 0 | 0.041738 | 0.222413 | 5,238 | 125 | 82 | 41.904 | 0.844095 | 0.600993 | 0 | 0.392157 | 0 | 0 | 0.024427 | 0 | 0 | 0 | 0 | 0.016 | 0 | 1 | 0.058824 | false | 0 | 0.039216 | 0 | 0.156863 | 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 |
2b7bb8eadb1a1f0de4502511e86e66a29c9138c7 | 227 | py | Python | Django/DjangoT1.11_LTS/14_Template Inheritance dan Include/blog/views.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | Django/DjangoT1.11_LTS/14_Template Inheritance dan Include/blog/views.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | Django/DjangoT1.11_LTS/14_Template Inheritance dan Include/blog/views.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def index(request):
context = {
'title':'Blog',
'heading':'Blog',
'subheading':'jurnal kelas terbuka',
}
return render(request, 'blog/index.html',context) | 20.636364 | 50 | 0.700441 | 28 | 227 | 5.678571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145374 | 227 | 11 | 50 | 20.636364 | 0.819588 | 0.101322 | 0 | 0 | 0 | 0 | 0.320197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b815dad0a5f5c8e7b010f6992eca65a8505c103 | 1,011 | py | Python | ephemeral/embed_cluster_distance_matrices.py | BorgwardtLab/fMRI_Cubical_Persistence | 5a4773333a33f86c17bbd0604cc48a361fc9a35f | [
"BSD-3-Clause"
] | 10 | 2020-10-22T13:57:06.000Z | 2021-09-30T22:17:22.000Z | ephemeral/embed_cluster_distance_matrices.py | SaqibMamoon/fMRI_Cubical_Persistence | 5a4773333a33f86c17bbd0604cc48a361fc9a35f | [
"BSD-3-Clause"
] | null | null | null | ephemeral/embed_cluster_distance_matrices.py | SaqibMamoon/fMRI_Cubical_Persistence | 5a4773333a33f86c17bbd0604cc48a361fc9a35f | [
"BSD-3-Clause"
] | 1 | 2021-02-25T11:00:40.000Z | 2021-02-25T11:00:40.000Z | #!/usr/bin/env python3
import argparse
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.manifold import MDS
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('INPUT', help='Input matrix')
args = parser.parse_args()
D = ... | 22.977273 | 71 | 0.64095 | 139 | 1,011 | 4.532374 | 0.589928 | 0.028571 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01353 | 0.195846 | 1,011 | 43 | 72 | 23.511628 | 0.761378 | 0.055391 | 0 | 0 | 0 | 0 | 0.132214 | 0.056663 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 |
2b85bcd5f427bc963a39099f1ef69dd360f2ccb7 | 1,086 | py | Python | demo/core/ibm/ibm_conversations.py | sergioalberto/Chatbots | b0a1dc15771d834fca491a809047dd347fe8a0a3 | [
"Apache-2.0"
] | 1 | 2019-03-31T23:25:46.000Z | 2019-03-31T23:25:46.000Z | demo/core/ibm/ibm_conversations.py | sergioalberto/Chatbots | b0a1dc15771d834fca491a809047dd347fe8a0a3 | [
"Apache-2.0"
] | null | null | null | demo/core/ibm/ibm_conversations.py | sergioalberto/Chatbots | b0a1dc15771d834fca491a809047dd347fe8a0a3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Created by Eng.Sergio GQ
# 23/4/2018
# Cartago, Costa Rica
from demo.core.ibm.ibm_conversation import *
class IBM_Conversations:
def __init__(self, username, password, workspace_id):
self.username = username
self.password = password
self.workspace_id = workspace_i... | 28.578947 | 96 | 0.638122 | 128 | 1,086 | 5.242188 | 0.445313 | 0.067064 | 0.059613 | 0.068554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008917 | 0.277164 | 1,086 | 37 | 97 | 29.351351 | 0.84586 | 0.229282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.166667 | 0.055556 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2b861c7d06ad0645ee65a453ead89139bd1146ae | 1,499 | py | Python | app/engine.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | app/engine.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | app/engine.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | import logging
import os
import mybot
import rocketgram
logger = logging.getLogger('minibots.engine')
def main():
mode = os.environ.get('MODE', 'updates').lower().strip()
logging.basicConfig(format='%(asctime)s - %(levelname)-5s - %(name)-25s: %(message)s')
logging.basicConfig(level=logging.ERROR)
... | 33.311111 | 94 | 0.607071 | 174 | 1,499 | 5.132184 | 0.33908 | 0.080627 | 0.067189 | 0.058231 | 0.275476 | 0.197088 | 0.094065 | 0.094065 | 0.094065 | 0.094065 | 0 | 0.007792 | 0.229486 | 1,499 | 44 | 95 | 34.068182 | 0.764502 | 0 | 0 | 0.060606 | 0 | 0 | 0.216288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | 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 |
2b887090c723ff3d76de3e180ff91892279181ed | 834 | py | Python | main.py | AntonioBerna/Costante-di-Kaprekar-Python- | d44a67af627984ba9d74031ad0ff111e3472d82f | [
"Apache-2.0"
] | null | null | null | main.py | AntonioBerna/Costante-di-Kaprekar-Python- | d44a67af627984ba9d74031ad0ff111e3472d82f | [
"Apache-2.0"
] | null | null | null | main.py | AntonioBerna/Costante-di-Kaprekar-Python- | d44a67af627984ba9d74031ad0ff111e3472d82f | [
"Apache-2.0"
] | null | null | null | def controllo_input(n):
if len(n) < 4:
raise TypeError("Errore: il numero deve avere minimo 4 cifre")
def ordina_crescente(n):
return "".join(sorted(n))
def ordina_decrescente(n):
return "".join(reversed(sorted(n)))
def costante_kaprekar(n):
iterazioni_max_kaprekar = 7
for i in range(i... | 25.272727 | 123 | 0.615108 | 111 | 834 | 4.423423 | 0.387387 | 0.07332 | 0.0611 | 0.093686 | 0.187373 | 0.187373 | 0.187373 | 0.187373 | 0.187373 | 0.187373 | 0 | 0.015528 | 0.227818 | 834 | 32 | 124 | 26.0625 | 0.746894 | 0 | 0 | 0 | 0 | 0 | 0.134293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0.086957 | 0.304348 | 0.130435 | 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 |
2b8b1af1ac0b5110e5161d6fba85ca0949973896 | 1,126 | py | Python | make_sparse_op.py | ayushbaid/MakeSparseTF | cf1e501944df3b722ae4a2a2c2a1dc61347ce8ad | [
"Apache-2.0"
] | 8 | 2017-05-06T02:21:35.000Z | 2020-04-10T00:27:17.000Z | make_sparse_op.py | ayushbaid/MakeSparseTF | cf1e501944df3b722ae4a2a2c2a1dc61347ce8ad | [
"Apache-2.0"
] | 1 | 2017-08-02T02:41:05.000Z | 2017-08-02T02:41:05.000Z | make_sparse_op.py | ayushbaid/MakeSparseTF | cf1e501944df3b722ae4a2a2c2a1dc61347ce8ad | [
"Apache-2.0"
] | null | null | null | # Python library for make_sparse operation
import os.path
import tensorflow as tf
from tensorflow.python.framework import ops
# Getting the functions from the shared library
_make_sparse_module = tf.load_op_library(os.path.join(
tf.resource_loader.get_data_files_path(), 'make_sparse.so'))
make_sparse = _make_sp... | 28.871795 | 74 | 0.746892 | 168 | 1,126 | 4.72619 | 0.380952 | 0.214106 | 0.123426 | 0.035264 | 0.183879 | 0.183879 | 0.183879 | 0.183879 | 0.183879 | 0.183879 | 0 | 0.002139 | 0.169627 | 1,126 | 38 | 75 | 29.631579 | 0.847059 | 0.37833 | 0 | 0 | 0 | 0 | 0.085973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 |
2b913c14c7d4691e516be46152d364b6163a19c6 | 3,092 | py | Python | cloud99/disruptors/host.py | cisco-oss-eng/Cloud99 | 106ebf1ba5d3f36e04dca07800a89aa6b53550e0 | [
"Apache-2.0"
] | 28 | 2015-05-20T00:53:28.000Z | 2019-07-25T16:29:46.000Z | cloud99/disruptors/host.py | cisco-oss-eng/Cloud99 | 106ebf1ba5d3f36e04dca07800a89aa6b53550e0 | [
"Apache-2.0"
] | 12 | 2015-05-26T17:57:53.000Z | 2021-09-23T23:21:19.000Z | cloud99/disruptors/host.py | cisco-oss-eng/Cloud99 | 106ebf1ba5d3f36e04dca07800a89aa6b53550e0 | [
"Apache-2.0"
] | 14 | 2015-08-12T16:37:29.000Z | 2017-12-14T10:01:35.000Z | # Copyright 2016 Cisco Systems, Inc.
# All Rights Reserved.
#
# 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 la... | 39.641026 | 79 | 0.655239 | 384 | 3,092 | 5.080729 | 0.364583 | 0.032804 | 0.022553 | 0.036904 | 0.084059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.243208 | 3,092 | 77 | 80 | 40.155844 | 0.826068 | 0.213454 | 0 | 0.037736 | 0 | 0 | 0.096894 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.037736 | false | 0.037736 | 0.113208 | 0 | 0.207547 | 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 |
2b94e422e9dd4bfcfbac59fc77a63812a714b591 | 4,245 | py | Python | okta_oauth2/tests/test_middleware.py | MattBrown88/django-okta-auth | 755cf8eaa90be1d533c7fa0b709eefdb2e8bf2b8 | [
"MIT"
] | 17 | 2020-09-16T15:47:24.000Z | 2022-03-28T04:06:14.000Z | okta_oauth2/tests/test_middleware.py | MattBrown88/django-okta-auth | 755cf8eaa90be1d533c7fa0b709eefdb2e8bf2b8 | [
"MIT"
] | 16 | 2020-11-04T11:15:28.000Z | 2022-02-21T19:28:48.000Z | okta_oauth2/tests/test_middleware.py | MattBrown88/django-okta-auth | 755cf8eaa90be1d533c7fa0b709eefdb2e8bf2b8 | [
"MIT"
] | 18 | 2020-11-18T08:38:52.000Z | 2022-03-09T13:24:47.000Z | from unittest.mock import Mock, patch
from django.http import HttpResponse
from django.urls import reverse
from okta_oauth2.exceptions import TokenExpired
from okta_oauth2.middleware import OktaMiddleware
from okta_oauth2.tests.utils import build_id_token, update_okta_settings
def test_no_token_redirects_to_login(rf... | 32.906977 | 87 | 0.681272 | 521 | 4,245 | 5.362764 | 0.21881 | 0.03937 | 0.042949 | 0.06514 | 0.661417 | 0.63529 | 0.621331 | 0.621331 | 0.607015 | 0.607015 | 0 | 0.018568 | 0.213428 | 4,245 | 128 | 88 | 33.164063 | 0.818209 | 0.168198 | 0 | 0.578947 | 0 | 0 | 0.16229 | 0.074653 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.092105 | false | 0 | 0.078947 | 0 | 0.171053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b9c50e28bfff5ccac8ed03085054f6f78eb9c4f | 7,609 | py | Python | Lib/unittest/result.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/unittest/result.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/unittest/result.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """Test result object"""
zaimportuj io
zaimportuj sys
zaimportuj traceback
z . zaimportuj util
z functools zaimportuj wraps
__unittest = Prawda
def failfast(method):
@wraps(method)
def inner(self, *args, **kw):
jeżeli getattr(self, 'failfast', Nieprawda):
self.stop()
zwróć method... | 35.064516 | 79 | 0.60757 | 878 | 7,609 | 5.124146 | 0.271071 | 0.016004 | 0.021338 | 0.01667 | 0.223383 | 0.218938 | 0.18004 | 0.148033 | 0.148033 | 0.140031 | 0 | 0.001694 | 0.301748 | 7,609 | 216 | 80 | 35.226852 | 0.845097 | 0.049152 | 0 | 0.251748 | 0 | 0 | 0.043242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034965 | null | null | 0.006993 | 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 |
2b9d0adea8705f5855f9c394722e30f355f33deb | 842 | py | Python | apps/entradas/migrations/0001_initial.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | apps/entradas/migrations/0001_initial.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | apps/entradas/migrations/0001_initial.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-22 16:21
import apps.entradas.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH... | 31.185185 | 155 | 0.665083 | 98 | 842 | 5.571429 | 0.581633 | 0.043956 | 0.065934 | 0.080586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022866 | 0.220903 | 842 | 26 | 156 | 32.384615 | 0.809451 | 0.053444 | 0 | 0 | 1 | 0 | 0.036478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.421053 | 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 |
2bb005f4ff933c154411d9d155d15d20caffd8b9 | 21,641 | py | Python | tools/openmldb_migrate.py | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 2,659 | 2021-06-07T12:59:15.000Z | 2022-03-30T15:29:37.000Z | tools/openmldb_migrate.py | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 1,396 | 2021-05-28T09:50:13.000Z | 2022-03-31T16:37:49.000Z | tools/openmldb_migrate.py | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 499 | 2021-05-31T07:36:48.000Z | 2022-03-31T15:10:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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 ... | 36.804422 | 164 | 0.578901 | 2,502 | 21,641 | 4.867306 | 0.121103 | 0.023813 | 0.038101 | 0.065692 | 0.552143 | 0.489243 | 0.459599 | 0.423551 | 0.405814 | 0.394318 | 0 | 0.014451 | 0.315697 | 21,641 | 587 | 165 | 36.867121 | 0.807887 | 0.077769 | 0 | 0.555328 | 0 | 0 | 0.150093 | 0.002211 | 0.002049 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004098 | 0.012295 | null | null | 0.151639 | 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 |
2bb0fe651fc7a98995ac52977770521a08baccb7 | 4,589 | py | Python | neoPixels/testpxlBuffer.py | karlg100/rpiGridMultiTask | 36913295bf865efa3dc2e454f5bd133727f25776 | [
"MIT"
] | 2 | 2018-06-14T01:39:25.000Z | 2019-07-17T00:54:04.000Z | neoPixels/testpxlBuffer.py | karlg100/rpiGridMultiTask | 36913295bf865efa3dc2e454f5bd133727f25776 | [
"MIT"
] | null | null | null | neoPixels/testpxlBuffer.py | karlg100/rpiGridMultiTask | 36913295bf865efa3dc2e454f5bd133727f25776 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import time
import threading
from time import sleep
import pxlBuffer as pxb
import random
from neopixel import *
from pprint import pprint
# target FPS
#TARGET_FPS = 1
TARGET_FPS = 24
# LED strip configuration:
LED_COUNT = 240 # Number of LED pixels.
LED_PIN = 18 # ... | 24.409574 | 95 | 0.675093 | 729 | 4,589 | 4.209877 | 0.262003 | 0.028674 | 0.017921 | 0.01564 | 0.193223 | 0.100358 | 0.095797 | 0.095797 | 0.095797 | 0.072988 | 0 | 0.053309 | 0.17019 | 4,589 | 187 | 96 | 24.540107 | 0.752626 | 0.331663 | 0 | 0.252336 | 0 | 0 | 0.007573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074766 | null | null | 0.037383 | 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 |
2bbc45e437f63b6442af098be11677d77dcc295d | 1,466 | py | Python | tests/libs/config.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 4 | 2019-02-08T03:47:36.000Z | 2019-10-17T21:45:23.000Z | tests/libs/config.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 81 | 2019-02-09T01:01:51.000Z | 2020-07-01T08:35:07.000Z | tests/libs/config.py | oceanprotocol/ocean-py | 318ad0de2519e61d0a301c040a48d1839cd82425 | [
"Apache-2.0"
] | 1 | 2021-01-28T12:14:03.000Z | 2021-01-28T12:14:03.000Z |
import os
import re
from configparser import (
ConfigParser,
ExtendedInterpolation,
)
class Config():
def __init__(self, filename):
config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(filename)
if 'NETWORK_URL' in os.environ:
config.set('test', ... | 30.541667 | 75 | 0.549795 | 152 | 1,466 | 5.171053 | 0.315789 | 0.125954 | 0.122137 | 0.101781 | 0.157761 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009862 | 0.308322 | 1,466 | 47 | 76 | 31.191489 | 0.765286 | 0.015007 | 0 | 0 | 0 | 0 | 0.170952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.088235 | 0.088235 | 0 | 0.147059 | 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 |
2bc5610f909d369870a4dfb90bacccfba10f4527 | 2,346 | py | Python | weather_bot.py | Lanseuo/RedditBot | 86e9f5f15811d13dd2ef86910d81c19129079911 | [
"MIT"
] | null | null | null | weather_bot.py | Lanseuo/RedditBot | 86e9f5f15811d13dd2ef86910d81c19129079911 | [
"MIT"
] | null | null | null | weather_bot.py | Lanseuo/RedditBot | 86e9f5f15811d13dd2ef86910d81c19129079911 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# bot.py
import praw
import config
import time
import os
import requests
def bot_login():
print("Logging in ...")
r = praw.Reddit(username = config.username,
password = config.password,
client_id = config.client_id,
client_secret = config.clie... | 37.83871 | 162 | 0.610827 | 296 | 2,346 | 4.679054 | 0.381757 | 0.110469 | 0.19639 | 0.043321 | 0.07509 | 0.07509 | 0 | 0 | 0 | 0 | 0 | 0.008716 | 0.266411 | 2,346 | 62 | 163 | 37.83871 | 0.795468 | 0.071611 | 0 | 0.041667 | 0 | 0 | 0.218132 | 0.031753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.020833 | 0.104167 | 0 | 0.208333 | 0.166667 | 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 |
2bc7165fbb41284e20b217a7a65b71dbc5f09a09 | 8,099 | py | Python | scripts/lib/archive/ATICorrelate.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 93 | 2015-11-26T14:15:51.000Z | 2022-03-10T13:54:21.000Z | scripts/lib/archive/ATICorrelate.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 19 | 2017-04-06T11:09:21.000Z | 2022-03-05T20:12:39.000Z | scripts/lib/archive/ATICorrelate.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 30 | 2017-06-12T16:08:51.000Z | 2022-01-28T17:34:04.000Z | #!/usr/bin/python
import commands
import csv
import fileinput
import fnmatch
import math
import os
import pyexiv2
import re
import spline
# AuraUAS/navigation
from aurauas.flightdata import flight_loader, flight_interp
time_fuzz = 1.5
#time_fuzz = 3.0
r2d = 180 / math.pi
class Correlate():
def __init__(self):
... | 37.151376 | 95 | 0.54624 | 958 | 8,099 | 4.429019 | 0.202505 | 0.033938 | 0.024747 | 0.02239 | 0.168277 | 0.146123 | 0.11737 | 0.104643 | 0.104643 | 0.085317 | 0 | 0.017491 | 0.343499 | 8,099 | 217 | 96 | 37.322581 | 0.780515 | 0.079886 | 0 | 0.149425 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057471 | null | null | 0.091954 | 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 |
2bdfc8e0d5c4d74b30ebf56d2200d295f8f6ed29 | 939 | py | Python | mmpi/data/signatures/ole/ole_infos.py | a232319779/mmpi | cdf0dd21e377b3476fdf5ea5292f6ab929c77ae7 | [
"MIT"
] | 16 | 2021-01-01T18:06:39.000Z | 2021-10-15T10:49:43.000Z | mmpi/data/signatures/ole/ole_infos.py | Blazarstar/mmpi | cdf0dd21e377b3476fdf5ea5292f6ab929c77ae7 | [
"MIT"
] | null | null | null | mmpi/data/signatures/ole/ole_infos.py | Blazarstar/mmpi | cdf0dd21e377b3476fdf5ea5292f6ab929c77ae7 | [
"MIT"
] | 9 | 2021-01-03T07:33:02.000Z | 2021-08-18T11:42:09.000Z | # -*- coding: utf-8 -*-
# @Time : 2020/12/27 18:09:15
# @Author : ddvv
# @Site : https://ddvvmmzz.github.io
# @File : ole_infos.py
# @Software: Visual Studio Code
from data_lib.mmpi.common.abstracts import Signature
class OleTypeNotMatch(Signature):
authors = ["ddvv"]
sig_type = 'ole'
name =... | 31.3 | 90 | 0.548456 | 119 | 939 | 4.168067 | 0.546218 | 0.040323 | 0.072581 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025039 | 0.319489 | 939 | 30 | 91 | 31.3 | 0.751174 | 0.172524 | 0 | 0 | 0 | 0 | 0.095979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.526316 | 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 |
2befcdba6db09f780c5b76e4ae46fbda41c15016 | 20,450 | py | Python | runcrawler.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | runcrawler.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | runcrawler.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Australian Government, Department of the Environment
#
# 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, incl... | 48.231132 | 186 | 0.591736 | 2,381 | 20,450 | 5.065519 | 0.215456 | 0.011442 | 0.010944 | 0.024625 | 0.254788 | 0.215156 | 0.20927 | 0.192273 | 0.156869 | 0.144432 | 0 | 0.005425 | 0.287873 | 20,450 | 423 | 187 | 48.345154 | 0.82277 | 0.173643 | 0 | 0.290566 | 0 | 0.007547 | 0.139684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003774 | 0.033962 | null | null | 0.003774 | 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 |
9204aa7eebfe9802ac0c4b26592d6a3256134f79 | 1,880 | py | Python | fileEncryptorTest.py | croixsuhy/webProject | 156510fc53a501c76e8816c7e6cc8797e04e6a38 | [
"MIT"
] | null | null | null | fileEncryptorTest.py | croixsuhy/webProject | 156510fc53a501c76e8816c7e6cc8797e04e6a38 | [
"MIT"
] | null | null | null | fileEncryptorTest.py | croixsuhy/webProject | 156510fc53a501c76e8816c7e6cc8797e04e6a38 | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet as Fer
# import os
text = []
encryptedText = []
# Define key out of loop
key = None
# Determines if we generate a random key or not
rKey = None
try:
# Open file and examine the contents and add them to a list to be encrypted
with open("test.txt", "rb") as decryptedFile... | 24.736842 | 85 | 0.461702 | 235 | 1,880 | 3.689362 | 0.404255 | 0.023068 | 0.010381 | 0.013841 | 0.15917 | 0.147636 | 0.124567 | 0.124567 | 0.124567 | 0.124567 | 0 | 0.009158 | 0.419149 | 1,880 | 75 | 86 | 25.066667 | 0.784799 | 0.214894 | 0 | 0.355556 | 1 | 0 | 0.088571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.044444 | 0.022222 | 0 | 0.022222 | 0.088889 | 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 |
920685980f6c574e51536ee830af375aeb3e5b22 | 219 | py | Python | models/retinaface/config.py | Akshobhya2018eeb1137/Attendance_System_Using_Face_Recognition | a52ca53e15332ab706f6ed23045b38ea6d38dfd9 | [
"MIT"
] | 10 | 2021-02-27T15:04:50.000Z | 2022-01-27T07:54:37.000Z | models/retinaface/config.py | Akshobhya2018eeb1137/Attendance_System_Using_Face_Recognition | a52ca53e15332ab706f6ed23045b38ea6d38dfd9 | [
"MIT"
] | 8 | 2021-03-28T09:41:13.000Z | 2021-12-15T11:01:57.000Z | models/retinaface/config.py | Akshobhya2018eeb1137/Attendance_System_Using_Face_Recognition | a52ca53e15332ab706f6ed23045b38ea6d38dfd9 | [
"MIT"
] | 5 | 2021-03-10T12:52:33.000Z | 2021-08-02T01:38:44.000Z | # config.py
cfg = {
'name': 'Retinaface',
'min_sizes': [[16, 32], [64, 128], [256, 512]],
'steps': [8, 16, 32],
'variance': [0.1, 0.2],
'clip': False,
'loc_weight': 2.0,
'gpu_train': True
}
| 18.25 | 51 | 0.479452 | 31 | 219 | 3.290323 | 0.83871 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 0.260274 | 219 | 11 | 52 | 19.909091 | 0.469136 | 0.041096 | 0 | 0 | 0 | 0 | 0.283654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9208812e9186f9122c9475413464965d9a231b3d | 2,883 | py | Python | Biscuit/utils/constants.py | monkeyman192/Biscuit | 2c0b884e82a8cc3e17228fe13c2eab524a2923c2 | [
"MIT"
] | 5 | 2018-06-06T06:58:48.000Z | 2021-09-20T16:38:24.000Z | Biscuit/utils/constants.py | monkeyman192/Biscuit | 2c0b884e82a8cc3e17228fe13c2eab524a2923c2 | [
"MIT"
] | 16 | 2018-11-07T04:43:53.000Z | 2019-09-10T11:40:32.000Z | Biscuit/utils/constants.py | monkeyman192/Biscuit | 2c0b884e82a8cc3e17228fe13c2eab524a2923c2 | [
"MIT"
] | 1 | 2019-06-06T01:17:02.000Z | 2019-06-06T01:17:02.000Z | """ some OS dependent constants """
from platform import system as os_name
import os
import Biscuit
OSNAMEMAP = {'Windows': 'WIN',
'Linux': 'LNX',
'Darwin': 'MAC'} # TODO: confirm on other ios versions
class OSConstMap():
""" Class which provides values of constants in an OS-depende... | 28.544554 | 78 | 0.690253 | 396 | 2,883 | 4.80303 | 0.431818 | 0.0347 | 0.033649 | 0.028391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011568 | 0.190427 | 2,883 | 100 | 79 | 28.83 | 0.803342 | 0.320846 | 0 | 0 | 0 | 0 | 0.182311 | 0.034183 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.06 | false | 0.02 | 0.06 | 0 | 0.16 | 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 |
920abd2d1eced1ff184d60280df27257fda392e0 | 340 | py | Python | service/security.py | LandRegistry/login-api | a9c7128498f9ec4dede07d0c915cc1a4c0e37a43 | [
"MIT"
] | null | null | null | service/security.py | LandRegistry/login-api | a9c7128498f9ec4dede07d0c915cc1a4c0e37a43 | [
"MIT"
] | 8 | 2015-05-29T14:25:32.000Z | 2015-08-06T15:36:17.000Z | service/security.py | LandRegistry/login-api | a9c7128498f9ec4dede07d0c915cc1a4c0e37a43 | [
"MIT"
] | 2 | 2016-11-22T12:26:32.000Z | 2021-04-11T06:05:42.000Z | import hashlib
import binascii
HASH_ALGORITHM = 'sha256'
HASH_ITERATION_COUNT = 100000
def get_user_password_hash(user_id, password, salt):
hash = hashlib.pbkdf2_hmac(
HASH_ALGORITHM,
(user_id + password).encode(),
salt.encode(),
HASH_ITERATION_COUNT
)
return binascii.hex... | 20 | 52 | 0.691176 | 40 | 340 | 5.575 | 0.525 | 0.116592 | 0.161435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037594 | 0.217647 | 340 | 16 | 53 | 21.25 | 0.800752 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
920f742146750d7083303945c13a15eb360921fe | 1,329 | py | Python | imp.py | rehabiftikhar93/web-development | f9f5a29da32c7801a0a5045e64fc311eb485e900 | [
"Unlicense"
] | null | null | null | imp.py | rehabiftikhar93/web-development | f9f5a29da32c7801a0a5045e64fc311eb485e900 | [
"Unlicense"
] | null | null | null | imp.py | rehabiftikhar93/web-development | f9f5a29da32c7801a0a5045e64fc311eb485e900 | [
"Unlicense"
] | null | null | null | Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> 2+2
4
>>> 2+3*8
26
>>> 2**8
256
>>> 23/7
3.2857142857142856
>>> 23//7
3
>>> (5 - 1) * ((7 + 1) / (3 - 1))
16.0
>>> 'alice' + 'bob'
'a... | 15.102273 | 95 | 0.515425 | 213 | 1,329 | 3.215962 | 0.384977 | 0.081752 | 0.112409 | 0.081752 | 0.230657 | 0.230657 | 0.192701 | 0.081752 | 0 | 0 | 0 | 0.160433 | 0.235515 | 1,329 | 87 | 96 | 15.275862 | 0.51378 | 0.009029 | 0 | 0.232558 | 0 | 0 | 0.131922 | 0.020358 | 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 |
9213b870a81b765971a9fddd0eae4ccb65b47b65 | 564 | py | Python | apgorm/__main__.py | aragentum/asyncpg-orm | e0935b6fa7f6ef4de0be36db2fad36f9dc817fbd | [
"MIT"
] | null | null | null | apgorm/__main__.py | aragentum/asyncpg-orm | e0935b6fa7f6ef4de0be36db2fad36f9dc817fbd | [
"MIT"
] | null | null | null | apgorm/__main__.py | aragentum/asyncpg-orm | e0935b6fa7f6ef4de0be36db2fad36f9dc817fbd | [
"MIT"
] | null | null | null | import asyncio
import logging
from apgorm.database.core import ApgORM
from apgorm.database.model import User
from apgorm.settings import PG_URL
pg_orm = ApgORM(PG_URL)
async def main():
session = await pg_orm.init(echo=True)
logger = logging.getLogger(__name__)
user1 = await User().query(session).where... | 22.56 | 70 | 0.719858 | 79 | 564 | 4.886076 | 0.518987 | 0.07772 | 0.093264 | 0.108808 | 0.15544 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0.010549 | 0.159574 | 564 | 24 | 71 | 23.5 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
921529afe7fd178f7d15082611b1fc3f0aadc755 | 456 | py | Python | dr_twitter/accounts/migrations/0004_auto_20200612_0526.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | null | null | null | dr_twitter/accounts/migrations/0004_auto_20200612_0526.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | 4 | 2021-06-08T21:50:45.000Z | 2022-03-12T00:36:42.000Z | dr_twitter/accounts/migrations/0004_auto_20200612_0526.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2020-06-12 05:26
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200606_0615'),
]
operations = [
migrations.AlterField(
model_name='prof... | 22.8 | 82 | 0.640351 | 51 | 456 | 5.607843 | 0.784314 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091176 | 0.254386 | 456 | 19 | 83 | 24 | 0.75 | 0.098684 | 0 | 0 | 1 | 0 | 0.114914 | 0.056235 | 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 |
921820b3db4caebe64cd4c1fe9a747a1afc5d8eb | 3,398 | py | Python | xstc/fixup-tests.py | sthagen/libxml2 | 0aa8652e596a20e95ed334ac65cf15e6e9ec4b3b | [
"MIT"
] | 1 | 2020-09-11T07:36:25.000Z | 2020-09-11T07:36:25.000Z | xstc/fixup-tests.py | sthagen/libxml2 | 0aa8652e596a20e95ed334ac65cf15e6e9ec4b3b | [
"MIT"
] | null | null | null | xstc/fixup-tests.py | sthagen/libxml2 | 0aa8652e596a20e95ed334ac65cf15e6e9ec4b3b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys, os
import libxml2
libxml2.debugMemory(1)
baseDir = os.path.join('msxsdtest', 'Particles')
filenames = os.listdir(baseDir)
mainXSD = str()
signature = str()
dictXSD = dict()
def gatherFiles():
for file in filenames:
if (file[-5] in ["a", "b", "c"]) and (file[-3:] == 'xs... | 33.98 | 95 | 0.548558 | 335 | 3,398 | 5.561194 | 0.355224 | 0.030059 | 0.030596 | 0.01825 | 0.081052 | 0.050456 | 0.050456 | 0.050456 | 0.050456 | 0 | 0 | 0.014461 | 0.328428 | 3,398 | 99 | 96 | 34.323232 | 0.801928 | 0.049735 | 0 | 0.121951 | 0 | 0 | 0.11425 | 0.00652 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.04878 | 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 |
ecf600d6623756b5f8cbf5b0efc07b3dff1f44f4 | 744 | py | Python | app/pico/urls.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | 1 | 2017-09-20T23:29:59.000Z | 2017-09-20T23:29:59.000Z | app/pico/urls.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | null | null | null | app/pico/urls.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^users/', include('users.urls', namespace='users')),
url(r'^teams/', include('teams.urls'... | 41.333333 | 103 | 0.71371 | 104 | 744 | 5.048077 | 0.307692 | 0.053333 | 0.08 | 0.068571 | 0.129524 | 0.129524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09543 | 744 | 17 | 104 | 43.764706 | 0.780089 | 0.126344 | 0 | 0 | 0 | 0 | 0.195046 | 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 |
ecf90833dcea9e39a3ef2f970449308b6c96a763 | 1,118 | py | Python | jobs/migrations/0001_initial.py | scrapi/rest_test | 76a4181773a6dee860c3a53280ed9e65fb065d10 | [
"Apache-1.1"
] | null | null | null | jobs/migrations/0001_initial.py | scrapi/rest_test | 76a4181773a6dee860c3a53280ed9e65fb065d10 | [
"Apache-1.1"
] | null | null | null | jobs/migrations/0001_initial.py | scrapi/rest_test | 76a4181773a6dee860c3a53280ed9e65fb065d10 | [
"Apache-1.1"
] | null | null | null | # Generated by Django 2.0.9 on 2018-12-18 18:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Data',
fields=[
... | 28.666667 | 126 | 0.513417 | 101 | 1,118 | 5.60396 | 0.544554 | 0.042403 | 0.04947 | 0.077739 | 0.180212 | 0.180212 | 0.180212 | 0.180212 | 0.180212 | 0 | 0 | 0.027322 | 0.345259 | 1,118 | 38 | 127 | 29.421053 | 0.745902 | 0.04025 | 0 | 0.387097 | 1 | 0 | 0.074697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.193548 | 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 |
ecfab24df45cef0cc731c86ec7a17196215deb5d | 599 | py | Python | baekjoon/python/plus_cycle_1110.py | yskang/AlgorithmPracticeWithPython | f7129bd1924a7961489198f0ee052d2cd1e9cf40 | [
"MIT"
] | null | null | null | baekjoon/python/plus_cycle_1110.py | yskang/AlgorithmPracticeWithPython | f7129bd1924a7961489198f0ee052d2cd1e9cf40 | [
"MIT"
] | null | null | null | baekjoon/python/plus_cycle_1110.py | yskang/AlgorithmPracticeWithPython | f7129bd1924a7961489198f0ee052d2cd1e9cf40 | [
"MIT"
] | null | null | null | # https://www.acmicpc.net/problem/1110
class PlusCycle(object):
def get_new_number(self, num):
sum_of_each = int(num[0]) + int(num[1])
return str(num[1]) + str(sum_of_each%10)
def get_cycle(self, n):
n = '{:02d}'.format(int(n))
target = n
count = 1
ne... | 27.227273 | 49 | 0.547579 | 82 | 599 | 3.707317 | 0.45122 | 0.207237 | 0.118421 | 0.105263 | 0.171053 | 0.171053 | 0.171053 | 0 | 0 | 0 | 0 | 0.031941 | 0.320534 | 599 | 21 | 50 | 28.52381 | 0.714988 | 0.0601 | 0 | 0.117647 | 0 | 0 | 0.025926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.294118 | 0.058824 | 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 |
ecfb9a3878863b89da932ec66528d1dae892d89b | 2,217 | py | Python | week2/evaluation.py | servidal/-M5-T7-Project | ce6c0594017a6b5cc3c3eff759a8741395a14a18 | [
"Unlicense",
"MIT"
] | null | null | null | week2/evaluation.py | servidal/-M5-T7-Project | ce6c0594017a6b5cc3c3eff759a8741395a14a18 | [
"Unlicense",
"MIT"
] | null | null | null | week2/evaluation.py | servidal/-M5-T7-Project | ce6c0594017a6b5cc3c3eff759a8741395a14a18 | [
"Unlicense",
"MIT"
] | null | null | null | # Some basic setup:
# Setup detectron2 logger
import imp
import detectron2
from detectron2.utils.logger import setup_logger
setup_logger()
# import some common libraries
import numpy as np
import os, json, cv2, random, sys
# import some common detectron2 utilities
from detectron2 import model_zoo
from detectron2.engin... | 32.130435 | 94 | 0.807397 | 310 | 2,217 | 5.551613 | 0.370968 | 0.097618 | 0.026148 | 0.030215 | 0.025567 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.102842 | 2,217 | 68 | 95 | 32.602941 | 0.847159 | 0.100586 | 0 | 0 | 0 | 0 | 0.102319 | 0.055444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.386364 | 0 | 0.386364 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6001143a067b8bd9ce662f9f2d2a53559967ec6 | 2,766 | py | Python | packages/solvers/loopy.py | Nizebulous/games_solver | 4fc3ea67edaebae8b95a8c4ab5dd184c4f0c5116 | [
"MIT"
] | null | null | null | packages/solvers/loopy.py | Nizebulous/games_solver | 4fc3ea67edaebae8b95a8c4ab5dd184c4f0c5116 | [
"MIT"
] | null | null | null | packages/solvers/loopy.py | Nizebulous/games_solver | 4fc3ea67edaebae8b95a8c4ab5dd184c4f0c5116 | [
"MIT"
] | null | null | null | from packages.utils import Value
class Loopy(object):
"""
Loopy-style solver
"""
def __init__(self, game_logic, solution_store):
"""
Setup the game for solving
"""
self.game_logic = game_logic
self.board = game_logic()
self.game_solution = solution_stor... | 34.575 | 70 | 0.583876 | 326 | 2,766 | 4.730061 | 0.184049 | 0.099222 | 0.103761 | 0.09987 | 0.660182 | 0.632944 | 0.577173 | 0.534371 | 0.534371 | 0.534371 | 0 | 0 | 0.331887 | 2,766 | 79 | 71 | 35.012658 | 0.834416 | 0 | 0 | 0.622951 | 0 | 0 | 0.005426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016393 | null | null | 0.016393 | 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 |
a600826535895a3e5e6c5937edf3c8c9ef16d170 | 1,538 | py | Python | dlu/limitusers/management/commands/enableuser.py | yashrane015/django-limit-users | d7db7bbec3579964efa33b8facfc6d8a3930ead0 | [
"Apache-2.0"
] | 2 | 2015-06-07T21:33:12.000Z | 2022-02-16T02:24:16.000Z | dlu/limitusers/management/commands/enableuser.py | yashrane015/django-limit-users | d7db7bbec3579964efa33b8facfc6d8a3930ead0 | [
"Apache-2.0"
] | null | null | null | dlu/limitusers/management/commands/enableuser.py | yashrane015/django-limit-users | d7db7bbec3579964efa33b8facfc6d8a3930ead0 | [
"Apache-2.0"
] | 1 | 2020-10-01T02:45:33.000Z | 2020-10-01T02:45:33.000Z | from optparse import make_option
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from dlu.limitusers.models import DisabledUser
class Command(BaseCommand):
args = '<id>'
help = 'Enable a single user, regardless of settings.MAX_USER_REGISTRAT... | 37.512195 | 84 | 0.53446 | 157 | 1,538 | 5.171975 | 0.503185 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001041 | 0.375163 | 1,538 | 40 | 85 | 38.45 | 0.843913 | 0.038362 | 0 | 0.054054 | 0 | 0 | 0.189573 | 0.020988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.108108 | null | null | 0.027027 | 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 |
a6098b55d7edd74e0006c40ba2bdeae23dc7db19 | 24,229 | py | Python | cbuildbot/config_lib_unittest.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | cbuildbot/config_lib_unittest.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | cbuildbot/config_lib_unittest.py | sglass68/chromite | fa56d880e5970e63b8372895c5d43fe6edd8324a | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittests for config."""
from __future__ import print_function
import copy
import cPickle
import mock
from chromite.cbuildbot import chromeos_config... | 33.46547 | 482 | 0.661026 | 2,797 | 24,229 | 5.532714 | 0.186271 | 0.030824 | 0.01538 | 0.029467 | 0.327819 | 0.251826 | 0.188821 | 0.168788 | 0.139709 | 0.138998 | 0 | 0.005829 | 0.221181 | 24,229 | 723 | 483 | 33.511757 | 0.814255 | 0.113789 | 0 | 0.236052 | 0 | 0.002146 | 0.172617 | 0.033615 | 0 | 0 | 0 | 0.004149 | 0.17382 | 0 | null | null | 0 | 0.017167 | null | null | 0.002146 | 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 |
a60a3165e108bad6ad27534960c0ac4b3435df01 | 1,418 | py | Python | Archive/webhook.py | eBellmer/move_data_processing | 5c89541a48c0e59fe9cb89a307ca264a8b12d319 | [
"MIT"
] | null | null | null | Archive/webhook.py | eBellmer/move_data_processing | 5c89541a48c0e59fe9cb89a307ca264a8b12d319 | [
"MIT"
] | null | null | null | Archive/webhook.py | eBellmer/move_data_processing | 5c89541a48c0e59fe9cb89a307ca264a8b12d319 | [
"MIT"
] | null | null | null | # Title: Webhook Listener (MOVE)
# Description: A webhook listener for the data collected by the
# MOVE sensors in the Salford Museum and Gallery
# Author: Ethan Bellmer
# Date: 29/08/2019
# Version: 0.1
# Import libraries
import sys
from flask import Flask, request, abort
import json
import pandas as pd
... | 23.633333 | 63 | 0.701693 | 188 | 1,418 | 5.18617 | 0.446809 | 0.020513 | 0.01641 | 0.028718 | 0.065641 | 0.065641 | 0.065641 | 0.065641 | 0 | 0 | 0 | 0.018707 | 0.170663 | 1,418 | 59 | 64 | 24.033898 | 0.810374 | 0.17842 | 0 | 0.085714 | 0 | 0 | 0.149784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.057143 | 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 |
a60a8e167784a7b7578bc395857a4513dd861c72 | 1,054 | py | Python | web-app/tests/helpers/test_numberhelper.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | null | null | null | web-app/tests/helpers/test_numberhelper.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | 65 | 2021-06-01T15:52:12.000Z | 2021-10-01T15:44:50.000Z | web-app/tests/helpers/test_numberhelper.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | 1 | 2022-03-29T14:13:45.000Z | 2022-03-29T14:13:45.000Z | import pytest
from src.helpers.NumberHelper import NumberHelper
@pytest.mark.parametrize(
'character,expected',
[
pytest.param('A', 1),
pytest.param('a', 1),
pytest.param('B', 2),
pytest.param('b', 2),
pytest.param('C', 3),
pytest.param('D', 4),
pytest.... | 25.095238 | 74 | 0.607211 | 132 | 1,054 | 4.704545 | 0.272727 | 0.283414 | 0.062802 | 0.041868 | 0.310789 | 0.181965 | 0 | 0 | 0 | 0 | 0 | 0.024907 | 0.23814 | 1,054 | 41 | 75 | 25.707317 | 0.748443 | 0 | 0 | 0.117647 | 0 | 0 | 0.055028 | 0.02277 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 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 |
a60bbb5463d42409951df04f7401c181d7d9cc75 | 280 | py | Python | test/Django/03/BookManager_model/Book/urls.py | Kingworrior007/lchw001 | e59e6f300123bd98d49e81be16e73a4440ffa85a | [
"MIT"
] | 2 | 2018-03-09T02:13:54.000Z | 2020-12-28T01:47:30.000Z | test/Django/03/BookManager_model/Book/urls.py | X-Warrior007/lchw001 | e59e6f300123bd98d49e81be16e73a4440ffa85a | [
"MIT"
] | null | null | null | test/Django/03/BookManager_model/Book/urls.py | X-Warrior007/lchw001 | e59e6f300123bd98d49e81be16e73a4440ffa85a | [
"MIT"
] | null | null | null | from django.conf.urls import url
from Book.views import bookList,areaList
# from Book import views # views.bookList
urlpatterns = [
# http://127.0.0.1:8000/booklist/
url(r'^booklist/$', bookList),
# http://127.0.0.1:8000/arealist/
url(r'^arealist/$', areaList)
] | 28 | 42 | 0.675 | 41 | 280 | 4.609756 | 0.414634 | 0.084656 | 0.084656 | 0.095238 | 0.148148 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.157143 | 280 | 10 | 43 | 28 | 0.716102 | 0.367857 | 0 | 0 | 0 | 0 | 0.127168 | 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 |
a60c1a94b9055798bb1f7659310fa5131fd8e375 | 1,587 | py | Python | scripts/stride_plot.py | Emma926/WIICA | c5bfca36c1ab937adf755c5f6082cd496e63c440 | [
"BSD-3-Clause"
] | 2 | 2016-09-14T06:30:59.000Z | 2019-02-03T05:01:53.000Z | scripts/stride_plot.py | Emma926/WIICA | c5bfca36c1ab937adf755c5f6082cd496e63c440 | [
"BSD-3-Clause"
] | null | null | null | scripts/stride_plot.py | Emma926/WIICA | c5bfca36c1ab937adf755c5f6082cd496e63c440 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import gzip
import math
import sys
color_code = ['#FFA540', '#3BA3D0']
marker_code = ['o', 's']
def main(directory, kernel, algorithm):
print 'Plotting stride pattern...'
BMKROOT = directory
os.chdir(BMKROO... | 27.842105 | 84 | 0.688721 | 227 | 1,587 | 4.651982 | 0.506608 | 0.086174 | 0.030303 | 0.045455 | 0.064394 | 0.064394 | 0.064394 | 0 | 0 | 0 | 0 | 0.029918 | 0.15753 | 1,587 | 56 | 85 | 28.339286 | 0.75991 | 0.012602 | 0 | 0 | 0 | 0 | 0.091374 | 0.013419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | null | null | 0.021739 | 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 |
a60c4a9c8f2f6656c96c3902d6a207123e920681 | 3,911 | py | Python | common/utils/printdata.py | ziizhuwy/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 8 | 2018-10-11T16:05:14.000Z | 2020-12-30T08:21:15.000Z | common/utils/printdata.py | keven1z/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 1 | 2020-04-22T03:36:59.000Z | 2020-06-11T06:42:42.000Z | common/utils/printdata.py | ziizhuwy/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 4 | 2019-07-10T06:51:45.000Z | 2020-04-19T09:52:09.000Z | from termcolor import colored, cprint
from common.log.log_util import LogUtil as log
import os
from prettytable import PrettyTable
logging = log.getLogger(__name__)
def warn(string, flag="[!]"):
cprint(flag + string, 'yellow')
def error(string, flag="[-]"):
cprint(flag + string, 'red')
def info(string, f... | 43.455556 | 101 | 0.514958 | 420 | 3,911 | 4.645238 | 0.316667 | 0.065607 | 0.131215 | 0.164018 | 0.394157 | 0.337776 | 0.337776 | 0.316761 | 0 | 0 | 0 | 0.036794 | 0.298133 | 3,911 | 89 | 102 | 43.94382 | 0.673953 | 0.001534 | 0 | 0 | 0 | 0 | 0.278504 | 0.011786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.092105 | 0 | 0.157895 | 0.118421 | 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 |
a61a05314bc15f8a425160e4fbc655a4888676e0 | 1,975 | py | Python | tfx/orchestration/launcher/looped_component_launcher.py | jkim1014/tfx-async | efb007cc8fb884f600b3f7ad2b43268058015ce7 | [
"Apache-2.0"
] | null | null | null | tfx/orchestration/launcher/looped_component_launcher.py | jkim1014/tfx-async | efb007cc8fb884f600b3f7ad2b43268058015ce7 | [
"Apache-2.0"
] | null | null | null | tfx/orchestration/launcher/looped_component_launcher.py | jkim1014/tfx-async | efb007cc8fb884f600b3f7ad2b43268058015ce7 | [
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from typing import Any, Dict, List, Text, cast
from tfx import types
from tfx.components.base import base_executor
from tfx.components.base import executor_spec
from tfx.orchestration.config import... | 37.264151 | 80 | 0.745316 | 242 | 1,975 | 5.805785 | 0.429752 | 0.068327 | 0.034164 | 0.029893 | 0.12669 | 0.041281 | 0 | 0 | 0 | 0 | 0 | 0.001866 | 0.185823 | 1,975 | 52 | 81 | 37.980769 | 0.871891 | 0.203038 | 0 | 0 | 0 | 0 | 0.00323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.322581 | 0 | 0.483871 | 0.032258 | 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 |
a61be458c196242a9d46267fee15183e17f90b6a | 632 | py | Python | examples/jeepney_trio.py | amezin/dbus-objects | 6aceac3c832087515ebf5aae7ff6b9678aea9565 | [
"MIT"
] | 7 | 2020-09-25T07:14:10.000Z | 2022-02-07T16:59:54.000Z | examples/jeepney_trio.py | amezin/dbus-objects | 6aceac3c832087515ebf5aae7ff6b9678aea9565 | [
"MIT"
] | 24 | 2020-09-24T18:04:50.000Z | 2021-12-19T23:33:03.000Z | examples/jeepney_trio.py | amezin/dbus-objects | 6aceac3c832087515ebf5aae7ff6b9678aea9565 | [
"MIT"
] | 4 | 2020-11-10T21:08:13.000Z | 2021-07-12T07:14:49.000Z | #!/usr/bin/env python
import trio
import dbus_objects
import dbus_objects.integration.jeepney
class ExampleObject(dbus_objects.DBusObject):
def __init__(self):
super().__init__(default_interface_root='io.github.ffy00.dbus_objects.example')
@dbus_objects.dbus_method()
def ping(self) -> str:
... | 23.407407 | 87 | 0.712025 | 78 | 632 | 5.525641 | 0.538462 | 0.204176 | 0.090487 | 0.118329 | 0.199536 | 0.143852 | 0 | 0 | 0 | 0 | 0 | 0.011342 | 0.162975 | 632 | 26 | 88 | 24.307692 | 0.803403 | 0.031646 | 0 | 0 | 0 | 0 | 0.184943 | 0.165303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.411765 | 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 |
a61ed3c61872562b06adbad7d2c288a4cbe2aa70 | 449 | py | Python | abetoserp/abetoserp/doctype/facturas/facturas.py | ErickLopez76/abetoserp | e013ff85345038bf54be9031e12a0fea56ed4a3c | [
"MIT"
] | null | null | null | abetoserp/abetoserp/doctype/facturas/facturas.py | ErickLopez76/abetoserp | e013ff85345038bf54be9031e12a0fea56ed4a3c | [
"MIT"
] | null | null | null | abetoserp/abetoserp/doctype/facturas/facturas.py | ErickLopez76/abetoserp | e013ff85345038bf54be9031e12a0fea56ed4a3c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2018, ErickLopez and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Facturas(Document):
pass
@frappe.whitelist()
def anulardoc(doc_name):
# frappe.db.sql("""... | 26.411765 | 61 | 0.741648 | 59 | 449 | 5.508475 | 0.694915 | 0.043077 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012788 | 0.129176 | 449 | 16 | 62 | 28.0625 | 0.818414 | 0.394209 | 0 | 0 | 0 | 0 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a61f1fdf026b7428cef101b5fe6222bbc7ee71a0 | 351 | py | Python | expen/urls.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | expen/urls.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | expen/urls.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | from django.urls import path
from expen.config import app_config
from expen import views
app_name = app_config['name']
urlpatterns = [
path('', views.ListView.as_view(), name='list'),
path('<int:pk>/', views.DetailView.as_view(), name='item'),
path(app_config['group_entity'] + '/<int:pk>/', views.ProjectVi... | 31.909091 | 95 | 0.689459 | 50 | 351 | 4.68 | 0.44 | 0.115385 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122507 | 351 | 10 | 96 | 35.1 | 0.75974 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 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 |
a62009176469177920c2ff2ecf81c0870918dfda | 1,339 | py | Python | teleband/submissions/models.py | JMU-CIME/CPR-Music-Backend | b72b70ed8826595c96c028595181293edcf1e368 | [
"MIT"
] | 2 | 2022-01-08T20:21:43.000Z | 2022-03-18T03:31:30.000Z | teleband/submissions/models.py | JMU-CIME/CPR-Music-Backend | b72b70ed8826595c96c028595181293edcf1e368 | [
"MIT"
] | 16 | 2022-01-08T02:12:54.000Z | 2022-03-02T03:02:59.000Z | teleband/submissions/models.py | JMU-CIME/CPR-Music-Backend | b72b70ed8826595c96c028595181293edcf1e368 | [
"MIT"
] | 2 | 2022-01-08T00:21:37.000Z | 2022-01-18T05:33:15.000Z | from django.db import models
from django.conf import settings
from teleband.assignments.models import Assignment
class Submission(models.Model):
assignment = models.ForeignKey(Assignment, on_delete=models.PROTECT)
submitted = models.DateTimeField(auto_now_add=True)
content = models.TextField(blank=True)... | 30.431818 | 95 | 0.725168 | 154 | 1,339 | 6.12987 | 0.350649 | 0.067797 | 0.059322 | 0.088983 | 0.465042 | 0.465042 | 0.28072 | 0.122881 | 0 | 0 | 0 | 0 | 0.170276 | 1,339 | 43 | 96 | 31.139535 | 0.849685 | 0 | 0 | 0.133333 | 0 | 0 | 0.106049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0.066667 | 0.766667 | 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 |
a624f6138bcf29d1f4eb47fc2951e4e4777d8357 | 376 | py | Python | LibMS/Home/migrations/0006_alter_userbook_options.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | LibMS/Home/migrations/0006_alter_userbook_options.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | LibMS/Home/migrations/0006_alter_userbook_options.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-11-12 11:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Home', '0005_userbook'),
]
operations = [
migrations.AlterModelOptions(
name='userbook',
options={'verbose_name': 'UserBook'... | 20.888889 | 85 | 0.606383 | 38 | 376 | 5.894737 | 0.736842 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068841 | 0.265957 | 376 | 17 | 86 | 22.117647 | 0.742754 | 0.119681 | 0 | 0 | 1 | 0 | 0.221885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a625cdea57bd22040e5d8574d4ac563be0237940 | 5,350 | py | Python | day6/Day_06_Code_Challenge.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | 1 | 2019-06-13T13:52:09.000Z | 2019-06-13T13:52:09.000Z | day6/Day_06_Code_Challenge.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null | day6/Day_06_Code_Challenge.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null |
"""
Code Challenge
Name:
Pallindromic Integer
Filename:
pallindromic2.py
Problem Statement:
You are given a space separated list of integers.
If all the integers are positive and if any integer is a palindromic integer,
then you need to print True else print False.
(Take Input from ... | 22.19917 | 138 | 0.658692 | 780 | 5,350 | 4.498718 | 0.370513 | 0.025933 | 0.035908 | 0.016244 | 0.15389 | 0.14762 | 0.098604 | 0.077515 | 0.063266 | 0.063266 | 0 | 0.060295 | 0.252897 | 5,350 | 240 | 139 | 22.291667 | 0.817363 | 0 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 0 | null | null | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a62c00123263a4e266b5f19b22f04916d723a117 | 2,968 | py | Python | xfel/lcls_api/exercise_api.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | xfel/lcls_api/exercise_api.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | xfel/lcls_api/exercise_api.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
import psana
from xfel.lcls_api.psana_cctbx import CctbxPsanaEventProcessor
def simple_example(experiment, run_number, detector_address, params_file, event_num):
""" Demo using the cctbx/lcls api
@param experiment LCLS experiment string
@param run_... | 40.657534 | 134 | 0.734164 | 397 | 2,968 | 5.27204 | 0.256927 | 0.055901 | 0.063545 | 0.057334 | 0.626851 | 0.626851 | 0.626851 | 0.626851 | 0.626851 | 0.602007 | 0 | 0.000811 | 0.168801 | 2,968 | 72 | 135 | 41.222222 | 0.847588 | 0.167453 | 0 | 0.5 | 0 | 0 | 0.076355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0.173077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a62c07922c8d25550eb192966008f3039d49abbf | 687 | py | Python | rate/migrations/0006_auto_20200320_1041.py | Harsh14901/ProfCourse_review_portal | 9cb2c332aa090e4aa54865ba66c6eda42cc0de89 | [
"MIT"
] | null | null | null | rate/migrations/0006_auto_20200320_1041.py | Harsh14901/ProfCourse_review_portal | 9cb2c332aa090e4aa54865ba66c6eda42cc0de89 | [
"MIT"
] | 1 | 2020-03-28T19:48:55.000Z | 2020-03-29T09:34:33.000Z | rate/migrations/0006_auto_20200320_1041.py | Harsh14901/ProfCourse_review_portal | 9cb2c332aa090e4aa54865ba66c6eda42cc0de89 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-20 10:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rate', '0005_auto_20200320_1039'),
]
operations = [
migrations.AlterField(
model_name='review',... | 27.48 | 111 | 0.620087 | 78 | 687 | 5.371795 | 0.538462 | 0.076372 | 0.100239 | 0.157518 | 0.529833 | 0.529833 | 0.343675 | 0.343675 | 0.343675 | 0.343675 | 0 | 0.060429 | 0.253275 | 687 | 24 | 112 | 28.625 | 0.756335 | 0.065502 | 0 | 0.333333 | 1 | 0 | 0.110938 | 0.035938 | 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 |
a636cc421137f603c25169d8b42dd320250764f1 | 767 | py | Python | gcp_saving/__init__.py | bilardi/gcp-saving | f3450c674c46cddd42157b49356ca1122c28aac6 | [
"MIT"
] | null | null | null | gcp_saving/__init__.py | bilardi/gcp-saving | f3450c674c46cddd42157b49356ca1122c28aac6 | [
"MIT"
] | null | null | null | gcp_saving/__init__.py | bilardi/gcp-saving | f3450c674c46cddd42157b49356ca1122c28aac6 | [
"MIT"
] | null | null | null | """GCP saving package
This package contains the modules for managing your services timelife and costs.
The package works if you have added some tags on your objects:
see the documentation on https://gcp-saving.readthedocs.io/en/latest/
It is part of the educational repositories (https://github.com/pandle/materials)
t... | 33.347826 | 80 | 0.754889 | 116 | 767 | 4.896552 | 0.637931 | 0.09507 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.159061 | 767 | 22 | 81 | 34.863636 | 0.875969 | 0.916558 | 0 | 0 | 0 | 0 | 0.403509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a63a00eae1b205dd2fb2032dfb7aa872e5d9d589 | 26,072 | py | Python | tests20/python_client/testcases/test_query.py | DragonDriver/milvus | b72e4c63726e28cd54f90c642faf5394d4a24c12 | [
"Apache-2.0"
] | null | null | null | tests20/python_client/testcases/test_query.py | DragonDriver/milvus | b72e4c63726e28cd54f90c642faf5394d4a24c12 | [
"Apache-2.0"
] | null | null | null | tests20/python_client/testcases/test_query.py | DragonDriver/milvus | b72e4c63726e28cd54f90c642faf5394d4a24c12 | [
"Apache-2.0"
] | null | null | null | import pytest
from base.client_base import TestcaseBase
from common import common_func as cf
from common import common_type as ct
from common.common_type import CaseLabel, CheckTasks
from utils.util_log import test_log as log
prefix = "query"
default_term_expr = f'{ct.default_int64_field_name} in [0, 1]'
@pytest.mar... | 45.107266 | 118 | 0.662857 | 3,403 | 26,072 | 4.779019 | 0.059947 | 0.06358 | 0.030253 | 0.042059 | 0.770399 | 0.715366 | 0.663039 | 0.620365 | 0.574679 | 0.538462 | 0 | 0.008879 | 0.239721 | 26,072 | 577 | 119 | 45.185442 | 0.811573 | 0.254833 | 0 | 0.492647 | 0 | 0 | 0.073044 | 0.03443 | 0 | 0 | 0 | 0.005199 | 0.106618 | 1 | 0.154412 | false | 0.003676 | 0.022059 | 0 | 0.1875 | 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 |
a63cc64e9900c1c1b9a914d50e8d657f9eb3b686 | 1,038 | py | Python | ex45.py | eng-lenin/Python | 6038f052b8343878760ed133dd43869927e39b3d | [
"MIT"
] | 1 | 2021-01-30T14:50:55.000Z | 2021-01-30T14:50:55.000Z | ex45.py | eng-lenin/Python | 6038f052b8343878760ed133dd43869927e39b3d | [
"MIT"
] | null | null | null | ex45.py | eng-lenin/Python | 6038f052b8343878760ed133dd43869927e39b3d | [
"MIT"
] | null | null | null | import random
from time import sleep
itens = ('Pedra', 'Papel', 'Tesoura')
print('{:=^40}'.format(' Vamos jogar JO KEN PO !!!! '))
j=int(input('[0] Pedra\n[1] Papel\n[2] Tesoura\nQual é a sua jogada? '))
print('-='*20)
c=random.randint(0,2)
print('Você jogou {}'.format(itens[j])) #é o item... tem posição 0, 1 e 2
print... | 23.590909 | 73 | 0.555877 | 155 | 1,038 | 3.722581 | 0.316129 | 0.109185 | 0.051993 | 0.046794 | 0.417678 | 0.209705 | 0.145581 | 0.145581 | 0 | 0 | 0 | 0.037275 | 0.250482 | 1,038 | 43 | 74 | 24.139535 | 0.70437 | 0.030829 | 0 | 0.651163 | 0 | 0.023256 | 0.332338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0.465116 | 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 |
a63ccb681df7141ad297cdfacfb50eb994d3ea71 | 717 | py | Python | scripts/redact_cli_py/redact/redaction/image_redaction.py | laujan/OCR-Form-Tools | 9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e | [
"MIT"
] | null | null | null | scripts/redact_cli_py/redact/redaction/image_redaction.py | laujan/OCR-Form-Tools | 9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e | [
"MIT"
] | null | null | null | scripts/redact_cli_py/redact/redaction/image_redaction.py | laujan/OCR-Form-Tools | 9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project
# root for license information.
from typing import List
from PIL import Image, ImageDraw
from redact.types.annotation import Annotation
class ImageRedaction:
# White color in RGBA for re... | 28.68 | 68 | 0.688982 | 88 | 717 | 5.556818 | 0.534091 | 0.03681 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.23431 | 717 | 24 | 69 | 29.875 | 0.868852 | 0.25802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a644d3247f86e0443bbd845ae1c993a99251db49 | 1,508 | py | Python | care/facility/migrations/0254_patientnotes.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 189 | 2020-03-17T17:18:58.000Z | 2022-02-22T09:49:45.000Z | care/facility/migrations/0254_patientnotes.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 598 | 2020-03-19T21:22:09.000Z | 2022-03-30T05:08:37.000Z | care/facility/migrations/0254_patientnotes.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 159 | 2020-03-19T18:45:56.000Z | 2022-03-17T13:23:12.000Z | # Generated by Django 2.2.11 on 2021-06-12 14:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('facility', ... | 43.085714 | 136 | 0.636605 | 166 | 1,508 | 5.626506 | 0.439759 | 0.042827 | 0.059957 | 0.094218 | 0.342612 | 0.216274 | 0.134904 | 0.134904 | 0.134904 | 0.134904 | 0 | 0.028473 | 0.231432 | 1,508 | 34 | 137 | 44.352941 | 0.777394 | 0.030504 | 0 | 0 | 1 | 0 | 0.117808 | 0.034932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.25 | 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 |
a64907c321efe31e045a6e77ac4340c5a4462869 | 1,356 | py | Python | backend/analytics/views.py | ankile/budbua-classifieds | 5e85edab4747501b0110cf56e1bfea524308dfff | [
"MIT"
] | null | null | null | backend/analytics/views.py | ankile/budbua-classifieds | 5e85edab4747501b0110cf56e1bfea524308dfff | [
"MIT"
] | null | null | null | backend/analytics/views.py | ankile/budbua-classifieds | 5e85edab4747501b0110cf56e1bfea524308dfff | [
"MIT"
] | null | null | null | # Create your views here.
from collections import Counter
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from analytics.permissions import IsOwner
from auctions.models import Ad, Bid
from reports.models import AdReport, UserReport
from users.mod... | 28.25 | 120 | 0.675516 | 169 | 1,356 | 5.254438 | 0.420118 | 0.056306 | 0.084459 | 0.097973 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005515 | 0.19764 | 1,356 | 47 | 121 | 28.851064 | 0.810662 | 0.016962 | 0 | 0 | 0 | 0 | 0.075883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a64b815e9a472a4659cc3a8cfd30c352ae07d09c | 3,732 | py | Python | Code/Components/swc-utils/current/process_skydip.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/swc-utils/current/process_skydip.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/swc-utils/current/process_skydip.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # quick and dirty script to extract some initial data for the skydip measurement
# it runs delaytest.sh for a number of "CONTROL" selection settings (assumed translated
# to scan numbers), extracts data for a given channel and writes the result vs. elevation
# It is assumed that delaytest is compiled the right way (aut... | 34.555556 | 108 | 0.624866 | 532 | 3,732 | 4.37594 | 0.357143 | 0.073024 | 0.039519 | 0.013746 | 0.045103 | 0.01933 | 0.01933 | 0 | 0 | 0 | 0 | 0.014604 | 0.266077 | 3,732 | 107 | 109 | 34.878505 | 0.835341 | 0.096195 | 0 | 0.136986 | 0 | 0 | 0.230162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013699 | null | null | 0.041096 | 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 |
a660062361c26642b9b88216fb2cfb6d64eea060 | 664 | py | Python | shop/tests/profiles/views/test_login_user_view.py | nikolaynikolov971/NftShop | 09a535a6f708f0f6da5addeb8781f9bdcea72cf3 | [
"MIT"
] | null | null | null | shop/tests/profiles/views/test_login_user_view.py | nikolaynikolov971/NftShop | 09a535a6f708f0f6da5addeb8781f9bdcea72cf3 | [
"MIT"
] | null | null | null | shop/tests/profiles/views/test_login_user_view.py | nikolaynikolov971/NftShop | 09a535a6f708f0f6da5addeb8781f9bdcea72cf3 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import Client
from django.urls import reverse
from tests.base.tests import ShopUserTestCase
UserModel = get_user_model()
class ProfileDetailsTest(ShopUserTestCase):
def setUp(self):
self.client = Client()
self.user = UserModel.objec... | 26.56 | 74 | 0.685241 | 78 | 664 | 5.730769 | 0.474359 | 0.067114 | 0.053691 | 0.06264 | 0.143177 | 0.143177 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.209337 | 664 | 24 | 75 | 27.666667 | 0.845714 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.117647 | 0.235294 | 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 |
a661d68ff44970905f4537a42d211101a125e882 | 536 | py | Python | newsgac/cached_views/tasks.py | newsgac/newsgac | 7503783521afd6fb755fef164ec7e8660955a783 | [
"Apache-2.0"
] | 3 | 2019-04-05T13:40:12.000Z | 2019-08-01T10:51:40.000Z | newsgac/cached_views/tasks.py | newsgac/newsgac | 7503783521afd6fb755fef164ec7e8660955a783 | [
"Apache-2.0"
] | 143 | 2018-12-18T10:38:16.000Z | 2022-03-21T19:02:48.000Z | newsgac/cached_views/tasks.py | Tommos0/newsgac | 7503783521afd6fb755fef164ec7e8660955a783 | [
"Apache-2.0"
] | 1 | 2020-01-23T09:19:49.000Z | 2020-01-23T09:19:49.000Z | from bson import ObjectId
from newsgac.cached_views.models import CachedView
from newsgac.tasks.celery_app import celery_app
#
#
# @celery_app.task()
# def save_view_task_result(result, cache_id):
# cache = CachedView.objects.get({'_id': ObjectId(cache_id)})
# cache.task.set_success()
# cache.data = result... | 26.8 | 65 | 0.725746 | 75 | 536 | 4.906667 | 0.346667 | 0.097826 | 0.130435 | 0.086957 | 0.516304 | 0.516304 | 0.516304 | 0.516304 | 0.331522 | 0.331522 | 0 | 0 | 0.141791 | 536 | 19 | 66 | 28.210526 | 0.8 | 0.367537 | 0 | 0 | 0 | 0 | 0.009119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
a66213ffc840034bf564b3ceddcf749e3c9e6dd7 | 1,225 | py | Python | dice/dice.py | peterson-dnd/discord-dice | f859354692ef80163611048e6fbd528fc4954b4b | [
"Apache-2.0"
] | null | null | null | dice/dice.py | peterson-dnd/discord-dice | f859354692ef80163611048e6fbd528fc4954b4b | [
"Apache-2.0"
] | null | null | null | dice/dice.py | peterson-dnd/discord-dice | f859354692ef80163611048e6fbd528fc4954b4b | [
"Apache-2.0"
] | 1 | 2021-10-31T17:51:19.000Z | 2021-10-31T17:51:19.000Z | import random
import logging
class Die:
def __init__(self, sides: int):
self.sides = int(sides)
self.has_rolled = False
self.result = None
def __str__(self):
return f'Sides: {self.sides}\nHas been rolled: {self.has_rolled}\nResult: {self.result}'
def simple_die_str(self):... | 22.685185 | 96 | 0.542857 | 152 | 1,225 | 4.164474 | 0.243421 | 0.099526 | 0.123223 | 0.056872 | 0.075829 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002497 | 0.346122 | 1,225 | 54 | 97 | 22.685185 | 0.787765 | 0.00898 | 0 | 0.282051 | 0 | 0.025641 | 0.072547 | 0.021434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.051282 | 0.025641 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6667a2d8c9a002b5fe56b28e4f20c161b5df646 | 4,613 | py | Python | test/unit/testreport.py | alok1974/compage | 4b8875a225b37dd9ca3a14dfdad9b66177fe6d64 | [
"MIT"
] | 1 | 2021-03-01T20:25:29.000Z | 2021-03-01T20:25:29.000Z | test/unit/testreport.py | alok1974/compage | 4b8875a225b37dd9ca3a14dfdad9b66177fe6d64 | [
"MIT"
] | null | null | null | test/unit/testreport.py | alok1974/compage | 4b8875a225b37dd9ca3a14dfdad9b66177fe6d64 | [
"MIT"
] | null | null | null | import os
import unittest
import tempfile
import shutil
import collections
from compage import report, logger, formatter, packageutil
class TestImportReporter(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.log_msg = False
cls.package_name = 'mock_package'
cls.package_root ... | 34.425373 | 79 | 0.618686 | 532 | 4,613 | 5.114662 | 0.201128 | 0.040426 | 0.046307 | 0.036751 | 0.14774 | 0.105108 | 0.105108 | 0.105108 | 0.072767 | 0.072767 | 0 | 0.005773 | 0.286581 | 4,613 | 133 | 80 | 34.684211 | 0.821027 | 0 | 0 | 0.149533 | 0 | 0 | 0.049859 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 1 | 0.074766 | false | 0 | 0.308411 | 0 | 0.420561 | 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 |
a666aff4215aaa6b936d3da62f8a4a6c1288544b | 615 | py | Python | Q5_read_CSV_file1.py | ICEJ-jr/MyHackathonCodes | 001de2cadcd56b5d3c9bbbe93ce6baaaeadd5455 | [
"MIT"
] | null | null | null | Q5_read_CSV_file1.py | ICEJ-jr/MyHackathonCodes | 001de2cadcd56b5d3c9bbbe93ce6baaaeadd5455 | [
"MIT"
] | null | null | null | Q5_read_CSV_file1.py | ICEJ-jr/MyHackathonCodes | 001de2cadcd56b5d3c9bbbe93ce6baaaeadd5455 | [
"MIT"
] | null | null | null | def csvReader(file):
''' Reads a csv file creates a dictionary with the first three
comma seperated values of each line key and the fourth as value. '''
fileObject = open(file)
data = fileObject.readlines()
dic = {}
for i in range(0,len(data)):
try:
dic[data[i].strip... | 36.176471 | 98 | 0.560976 | 87 | 615 | 3.873563 | 0.551724 | 0.089021 | 0.178042 | 0.195846 | 0.261128 | 0.261128 | 0.261128 | 0.261128 | 0.261128 | 0.261128 | 0 | 0.010753 | 0.243902 | 615 | 16 | 99 | 38.4375 | 0.713978 | 0.2 | 0 | 0 | 0 | 0 | 0.073276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 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 |
a669382b298c534ea2a67932d7b341bd5f1b9702 | 1,417 | py | Python | fccpy/utils.py | ricomnl/fcc | 796d95c729398812ec3daf01b7bfbd02ec347785 | [
"MIT"
] | null | null | null | fccpy/utils.py | ricomnl/fcc | 796d95c729398812ec3daf01b7bfbd02ec347785 | [
"MIT"
] | null | null | null | fccpy/utils.py | ricomnl/fcc | 796d95c729398812ec3daf01b7bfbd02ec347785 | [
"MIT"
] | null | null | null | """Assorted utility functions."""
import itertools
import gzip
import math
from pathlib import Path
def as_file_handle(filepath, mode):
"""Return a file-handle from a given file path.
Infers if file is compressed or not based on extension.
Parameters
----------
filepath : str or pathlib.Path
... | 25.763636 | 87 | 0.642202 | 197 | 1,417 | 4.583756 | 0.461929 | 0.033223 | 0.036545 | 0.035437 | 0.039867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0.257586 | 1,417 | 54 | 88 | 26.240741 | 0.85076 | 0.529993 | 0 | 0 | 0 | 0 | 0.005199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.65 | 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 |
a66a741c487928e2c65c9276b4285d10a28f57a6 | 5,227 | py | Python | handlers/kbeServer/Editor/Interface/interface_obj.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | handlers/kbeServer/Editor/Interface/interface_obj.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | handlers/kbeServer/Editor/Interface/interface_obj.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import json
import Global
from methods.DBManager import DBManager
from handlers.kbeServer.Editor.Interface import interface_global
from handlers.kbeServer.Editor.Data import data_obj
def CopyToDB(target,DB ,uid, pid, sourceTableName):
if target == 0:
table_name = G... | 48.850467 | 1,053 | 0.591161 | 761 | 5,227 | 3.813403 | 0.189225 | 0.149552 | 0.16816 | 0.038594 | 0.317712 | 0.299793 | 0.28601 | 0.273604 | 0.272915 | 0.272915 | 0 | 0.047815 | 0.207767 | 5,227 | 107 | 1,054 | 48.850467 | 0.652982 | 0.073465 | 0 | 0.430556 | 0 | 0.013889 | 0.20265 | 0.075347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.069444 | 0 | 0.180556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a66ae604560e37cdaa1d12503e05f6ed0c1fcecb | 487 | py | Python | Uso do for.py | JhonatasAntonelli/Pyhton_2 | e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424 | [
"MIT"
] | null | null | null | Uso do for.py | JhonatasAntonelli/Pyhton_2 | e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424 | [
"MIT"
] | null | null | null | Uso do for.py | JhonatasAntonelli/Pyhton_2 | e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424 | [
"MIT"
] | null | null | null | for c in range (0,6):
print('oi')
for c in range (0,6):
print(c)
for c in range (6,0,-1):
print(c)
for c in range (0,20,2):
print(c)
n = int(input('Digite um número'))
for c in range (0,n+1):
print(c)
i = int(input('Digite um número inicial'))
f = int(input('Digite um número final'))
p = int(input('... | 23.190476 | 54 | 0.589322 | 100 | 487 | 2.87 | 0.29 | 0.097561 | 0.146341 | 0.268293 | 0.627178 | 0.38676 | 0.125436 | 0 | 0 | 0 | 0 | 0.045333 | 0.229979 | 487 | 21 | 55 | 23.190476 | 0.72 | 0 | 0 | 0.333333 | 0 | 0 | 0.235656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
a66bc33bd163df61bb74af2d5ea5f9128c567a46 | 5,216 | py | Python | src/cnaas_nac/tools/db_replicator.py | ernstwi/cnaas-nac | df5bec81ff4e0276c34008d40689cfc47f8ba1e3 | [
"BSD-2-Clause"
] | 1 | 2020-12-23T03:31:03.000Z | 2020-12-23T03:31:03.000Z | src/cnaas_nac/tools/db_replicator.py | ernstwi/cnaas-nac | df5bec81ff4e0276c34008d40689cfc47f8ba1e3 | [
"BSD-2-Clause"
] | 4 | 2020-02-18T10:43:46.000Z | 2021-12-07T09:16:33.000Z | src/cnaas_nac/tools/db_replicator.py | ernstwi/cnaas-nac | df5bec81ff4e0276c34008d40689cfc47f8ba1e3 | [
"BSD-2-Clause"
] | 2 | 2019-09-19T07:13:02.000Z | 2021-06-18T12:39:09.000Z | import os
import sys
import getopt
from cnaas_nac.db.session import sqla_session
from cnaas_nac.db.user import User
from cnaas_nac.db.reply import Reply
from cnaas_nac.db.userinfo import UserInfo
from cnaas_nac.db.nas import NasPort
from cnaas_nac.db.accounting import Accounting
from cnaas_nac.tools.log import get_log... | 32 | 83 | 0.627876 | 661 | 5,216 | 4.821483 | 0.217852 | 0.050204 | 0.062127 | 0.070286 | 0.253216 | 0.165046 | 0.102291 | 0.068403 | 0.02573 | 0.02573 | 0 | 0.000787 | 0.26898 | 5,216 | 162 | 84 | 32.197531 | 0.835038 | 0.076304 | 0 | 0.155738 | 0 | 0.008197 | 0.192516 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0.114754 | 0.090164 | 0 | 0.155738 | 0.040984 | 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 |
a66faa24271aa42a5a938e04378548ce45c6283f | 3,641 | py | Python | ChatRobot/Contacts.py | lecjian/WeChatRobot | 0cbd907a1a9fab92dea9f79794b9b410fd0411a5 | [
"Apache-2.0"
] | 1 | 2017-03-29T18:16:38.000Z | 2017-03-29T18:16:38.000Z | ChatRobot/Contacts.py | lecjian/WeChatRobot | 0cbd907a1a9fab92dea9f79794b9b410fd0411a5 | [
"Apache-2.0"
] | null | null | null | ChatRobot/Contacts.py | lecjian/WeChatRobot | 0cbd907a1a9fab92dea9f79794b9b410fd0411a5 | [
"Apache-2.0"
] | 2 | 2017-04-02T05:28:30.000Z | 2022-02-28T23:35:40.000Z | #coding=utf8
import time
import os
import json
import Data
import Tools
class Contacts:
def __init__(self):
self.get_contacts()
def get_contacts(self):
'''
Access to all accounts of the current account
including contacts, public numbers, group chat
'''
url = Da... | 34.349057 | 94 | 0.574293 | 422 | 3,641 | 4.796209 | 0.244076 | 0.059289 | 0.035573 | 0.031621 | 0.26087 | 0.25 | 0.234684 | 0.145751 | 0.145751 | 0.145751 | 0 | 0.00284 | 0.322988 | 3,641 | 106 | 95 | 34.349057 | 0.818256 | 0.007965 | 0 | 0.329545 | 0 | 0 | 0.108783 | 0.023249 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034091 | 0.056818 | null | null | 0.011364 | 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 |
a670d3c11bcec4abe45ba4a86b7cd0aa14f6ca36 | 6,182 | py | Python | Scripts/orientate-h-o-bond.py | friedc/fu | 2f457ebb3b6f98a3a9838ec791e88044594c9bca | [
"BSD-2-Clause"
] | null | null | null | Scripts/orientate-h-o-bond.py | friedc/fu | 2f457ebb3b6f98a3a9838ec791e88044594c9bca | [
"BSD-2-Clause"
] | null | null | null | Scripts/orientate-h-o-bond.py | friedc/fu | 2f457ebb3b6f98a3a9838ec791e88044594c9bca | [
"BSD-2-Clause"
] | null | null | null | #!/bin/sh
# -*- coding: utf-8
#
#-----------
# module name: orientate_h-o-bond.py
# ----------
# function: Orientate OH to make hydrogen bonds with neighbors
# usage: This script is executed in PyCrust shell.
# >>> fum.fum.ExecuteAddOnScript('orientate_h-o-bond.py',False)
# note: this is an example to u... | 32.708995 | 85 | 0.569233 | 972 | 6,182 | 3.598765 | 0.253086 | 0.024014 | 0.017153 | 0.022013 | 0.235563 | 0.19068 | 0.170383 | 0.156661 | 0.14008 | 0.105775 | 0 | 0.030863 | 0.255742 | 6,182 | 188 | 86 | 32.882979 | 0.729407 | 0.242478 | 0 | 0.132353 | 0 | 0 | 0.020738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014706 | null | null | 0.014706 | 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 |
a671d2aedc5d5b9aa6310bb57b04e750228cd016 | 5,796 | py | Python | vision3d/detector/proposal.py | jhultman/PV-RCNN | 8d73f4fe2b9037bc428b7cf7040c563110f2f0a7 | [
"MIT"
] | 131 | 2020-01-11T06:24:40.000Z | 2020-04-08T19:19:27.000Z | vision3d/detector/proposal.py | jhultman/PV-RCNN | 8d73f4fe2b9037bc428b7cf7040c563110f2f0a7 | [
"MIT"
] | 20 | 2020-02-11T14:27:29.000Z | 2020-04-07T13:05:02.000Z | vision3d/detector/proposal.py | jhultman/PV-RCNN | 8d73f4fe2b9037bc428b7cf7040c563110f2f0a7 | [
"MIT"
] | 32 | 2020-01-15T01:25:15.000Z | 2020-04-05T16:08:38.000Z | import torch
import math
from torch import nn
import torch.nn.functional as F
from vision3d.ops import sigmoid_focal_loss, batched_nms_rotated
from vision3d.core.box_encode import decode
class ProposalLayer(nn.Module):
"""
Use BEV feature map to generate 3D box proposals.
TODO: Fix long variable names, u... | 40.816901 | 83 | 0.624914 | 900 | 5,796 | 3.761111 | 0.197778 | 0.023043 | 0.025997 | 0.033087 | 0.223338 | 0.145938 | 0.101625 | 0.082127 | 0.082127 | 0.062629 | 0 | 0.01511 | 0.246377 | 5,796 | 141 | 84 | 41.106383 | 0.759844 | 0.111801 | 0 | 0.086538 | 0 | 0 | 0.011451 | 0 | 0 | 0 | 0 | 0.014184 | 0 | 1 | 0.144231 | false | 0 | 0.057692 | 0 | 0.336538 | 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 |
a674f53f97581ef75513173f377cd138300312be | 898 | py | Python | aliyunauth/slb.py | movermeyer/requests-aliyun | 43f6646dcf7f09691ae997b09d365ad9e76386cf | [
"Apache-2.0"
] | null | null | null | aliyunauth/slb.py | movermeyer/requests-aliyun | 43f6646dcf7f09691ae997b09d365ad9e76386cf | [
"Apache-2.0"
] | null | null | null | aliyunauth/slb.py | movermeyer/requests-aliyun | 43f6646dcf7f09691ae997b09d365ad9e76386cf | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf8 -*-
"""
aliyunauth.slb
~~~~~~~~~~~~~~
This module contains the authentication handlers for Ali Slb Service
"""
from . import sign_ver_1_0
class SlbAuth(sign_ver_1_0.AuthBase):
"""Attach Aliyun Slb Authentication to the given request
:param access_key: the access_key of your slb account
... | 25.657143 | 78 | 0.619154 | 105 | 898 | 5.190476 | 0.6 | 0.049541 | 0.029358 | 0.033028 | 0.088073 | 0.088073 | 0 | 0 | 0 | 0 | 0 | 0.023426 | 0.239421 | 898 | 34 | 79 | 26.411765 | 0.774524 | 0.783964 | 0 | 0 | 0 | 0 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a681a61b0570171580c9a24844429f25adf45caf | 858 | py | Python | radius_tester.py | mdu42/RADIUS-to-Okta-MFA | 5fe93d33e8319a06082ec4f1fe8d08af741ddf3f | [
"MIT"
] | null | null | null | radius_tester.py | mdu42/RADIUS-to-Okta-MFA | 5fe93d33e8319a06082ec4f1fe8d08af741ddf3f | [
"MIT"
] | null | null | null | radius_tester.py | mdu42/RADIUS-to-Okta-MFA | 5fe93d33e8319a06082ec4f1fe8d08af741ddf3f | [
"MIT"
] | null | null | null | from pyrad.client import Client
from pyrad.dictionary import Dictionary
import pyrad.packet
from secrets import token_hex
import getpass
SERVER = "localhost"
USERNAME = "your_okta_username"
PASSWORD = getpass.getpass(prompt="Enter the password for {}: ".format(USERNAME))
RADIUS_SECRET = b"$upers3cret"
srv = Client(se... | 28.6 | 107 | 0.750583 | 114 | 858 | 5.578947 | 0.526316 | 0.051887 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.114219 | 858 | 29 | 108 | 29.586207 | 0.834211 | 0.031469 | 0 | 0 | 0 | 0 | 0.213768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.238095 | 0 | 0.238095 | 0.190476 | 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 |
a6893f7a57730b3349771aa6b08273e1680dc7ad | 335 | py | Python | beancount_bot/util.py | dumbPy/beancount_bot | 388a17f165c22b30e7f6377161eb5bf63578168a | [
"MIT"
] | null | null | null | beancount_bot/util.py | dumbPy/beancount_bot | 388a17f165c22b30e7f6377161eb5bf63578168a | [
"MIT"
] | null | null | null | beancount_bot/util.py | dumbPy/beancount_bot | 388a17f165c22b30e7f6377161eb5bf63578168a | [
"MIT"
] | null | null | null | import sys
import telebot
logger = telebot.logger
def load_class(classname: str) -> type:
"""
通过类名加载类
:param classname:
:return:
"""
class_path = classname.split('.')
module, classname = '.'.join(class_path[:-1]), class_path[-1]
__import__(module)
return getattr(sys.modules[modul... | 18.611111 | 65 | 0.644776 | 38 | 335 | 5.473684 | 0.526316 | 0.129808 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.208955 | 335 | 17 | 66 | 19.705882 | 0.777358 | 0.101493 | 0 | 0 | 0 | 0 | 0.00722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a69064777504ce75a3033adb1858652dbf34b326 | 223 | py | Python | launcher.py | R4ULtv/siffredi-bot | 515ccb67e79dab7fdf9965e79ac61c040ee19ee6 | [
"MIT"
] | 1 | 2021-06-27T15:55:51.000Z | 2021-06-27T15:55:51.000Z | launcher.py | R4ULtv/siffredi-bot | 515ccb67e79dab7fdf9965e79ac61c040ee19ee6 | [
"MIT"
] | 13 | 2021-06-27T15:38:45.000Z | 2022-01-15T16:22:31.000Z | launcher.py | R4ULtv/siffredi-bot | 515ccb67e79dab7fdf9965e79ac61c040ee19ee6 | [
"MIT"
] | null | null | null | # usage: python launcher.py num_shards first_shard_id:last_shard_id
from bot import SiffrediBot
import json
with open('config.json') as config_file:
config = json.load(config_file)
bot = SiffrediBot(config)
bot.run() | 22.3 | 67 | 0.780269 | 35 | 223 | 4.771429 | 0.628571 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130045 | 223 | 10 | 68 | 22.3 | 0.860825 | 0.29148 | 0 | 0 | 0 | 0 | 0.070064 | 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 |
a69129acd0bcafba4ff233fd2c993ecb0325e796 | 1,957 | py | Python | mkatsim/subarray/mkat_config.py | ska-sa/mkatsim | 94f0e5fb28bf3f9c18f0559f9049636db2abcc27 | [
"BSD-2-Clause"
] | 1 | 2019-03-14T06:52:41.000Z | 2019-03-14T06:52:41.000Z | mkatsim/subarray/mkat_config.py | ska-sa/mkatsim | 94f0e5fb28bf3f9c18f0559f9049636db2abcc27 | [
"BSD-2-Clause"
] | null | null | null | mkatsim/subarray/mkat_config.py | ska-sa/mkatsim | 94f0e5fb28bf3f9c18f0559f9049636db2abcc27 | [
"BSD-2-Clause"
] | 1 | 2019-03-14T08:15:52.000Z | 2019-03-14T08:15:52.000Z | # #! /usr/bin/python
# ##
# ## Holds hardcoded and predefined parameters used by simulation scripts
# ##
# ###############
import string
class Subarrays():
def __init__(self, ref_location, array_geocentric, ant_list):
self.array_ref = ref_location
self.array = array_geocentric
self.antenna... | 45.511628 | 384 | 0.576392 | 236 | 1,957 | 4.65678 | 0.461864 | 0.040946 | 0.029117 | 0.032757 | 0.145587 | 0.047316 | 0.047316 | 0 | 0 | 0 | 0 | 0.155819 | 0.22279 | 1,957 | 42 | 385 | 46.595238 | 0.566732 | 0.084824 | 0 | 0.142857 | 0 | 0 | 0.221843 | 0.011945 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.035714 | 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 |
a692ffa958b8062c4a8348ddca8b631d329cc906 | 1,998 | py | Python | SQR-web/sqrauth/forms.py | dmitriypru/SQR | 496549545d8ea1caf40aff95b41498eb60cde40c | [
"MIT"
] | null | null | null | SQR-web/sqrauth/forms.py | dmitriypru/SQR | 496549545d8ea1caf40aff95b41498eb60cde40c | [
"MIT"
] | null | null | null | SQR-web/sqrauth/forms.py | dmitriypru/SQR | 496549545d8ea1caf40aff95b41498eb60cde40c | [
"MIT"
] | null | null | null | from qruser.models import User
from django import forms
from django.core.validators import RegexValidator
class UserRegisterForm(forms.Form):
schools = (('1', 'МБОУ СОШ №45'), ('2', 'МБОУ лицей №4'))
username = forms.CharField(label="Логин", max_length=25, widget=forms.TextInput(attrs={'class': 'validate'}), ... | 71.357143 | 230 | 0.700701 | 239 | 1,998 | 5.786611 | 0.376569 | 0.071584 | 0.055676 | 0.061461 | 0.445409 | 0.399855 | 0.355025 | 0.355025 | 0.282719 | 0.282719 | 0 | 0.011501 | 0.12963 | 1,998 | 28 | 231 | 71.357143 | 0.781484 | 0 | 0 | 0 | 0 | 0 | 0.184592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.208333 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a697c84b0afff4d2540548f8b655a454f9fa8d9b | 3,174 | py | Python | aws-cfn-control/awscfnctl/getinstinfo.py | veloduff/aws-cfn-control | ab0c9589e4eb22ef50d89c0bb73bc59e047c79a8 | [
"Apache-2.0"
] | 39 | 2018-05-16T10:17:09.000Z | 2022-03-30T10:07:44.000Z | aws-cfn-control/awscfnctl/getinstinfo.py | veloduff/aws-cfn-control | ab0c9589e4eb22ef50d89c0bb73bc59e047c79a8 | [
"Apache-2.0"
] | null | null | null | aws-cfn-control/awscfnctl/getinstinfo.py | veloduff/aws-cfn-control | ab0c9589e4eb22ef50d89c0bb73bc59e047c79a8 | [
"Apache-2.0"
] | 15 | 2018-05-14T03:54:08.000Z | 2021-09-20T20:12:02.000Z | #!/usr/bin/env python
#!/usr/bin/env python
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.c... | 28.339286 | 126 | 0.632955 | 432 | 3,174 | 4.550926 | 0.439815 | 0.036623 | 0.04883 | 0.061038 | 0.114954 | 0.023398 | 0.023398 | 0.023398 | 0.023398 | 0.023398 | 0 | 0.051932 | 0.217391 | 3,174 | 111 | 127 | 28.594595 | 0.739533 | 0.218967 | 0 | 0.030769 | 0 | 0.030769 | 0.226922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.061538 | 0.123077 | 0.292308 | 0.153846 | 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 |
a6a44d843e5767f9629d8865e7e3ee3973680a4f | 2,955 | py | Python | guifw/views/port_view.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2021-02-05T02:58:19.000Z | 2021-02-05T02:58:19.000Z | guifw/views/port_view.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2018-11-09T16:10:50.000Z | 2018-11-09T16:10:50.000Z | guifw/views/port_view.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, HttpResponseRedirect, HttpResponse
from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
from django.db.models.deletion import ProtectedError
from guifw.models.port import Port, FormPort
# Create your views here.
def multipleDelete(request):
... | 32.472527 | 89 | 0.656514 | 375 | 2,955 | 5.077333 | 0.258667 | 0.022059 | 0.029412 | 0.044118 | 0.38708 | 0.271008 | 0.271008 | 0.271008 | 0.271008 | 0.271008 | 0 | 0 | 0.213536 | 2,955 | 91 | 90 | 32.472527 | 0.819277 | 0.060237 | 0 | 0.276923 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | null | null | 0.015385 | 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 |
a6a8f3e7f2761f688a422d41b2d5fc6a0d1bfcc3 | 9,403 | py | Python | startrek-py/startrek/socket/base_conn.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | null | null | null | startrek-py/startrek/socket/base_conn.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | null | null | null | startrek-py/startrek/socket/base_conn.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Star Trek: Interstellar Transport
#
# Written in 2021 by Moky <albert.moky@gmail.com>
#
# ==============================================================================
# MIT License
#
# Copyright (c) 2021 Albert Moky
#
# Permission is hereby granted, free of... | 33.343972 | 110 | 0.621504 | 1,129 | 9,403 | 4.994686 | 0.202834 | 0.039014 | 0.017556 | 0.024827 | 0.320447 | 0.271147 | 0.232665 | 0.215996 | 0.208725 | 0.160489 | 0 | 0.003526 | 0.276188 | 9,403 | 281 | 111 | 33.462633 | 0.825007 | 0.230777 | 0 | 0.307229 | 0 | 0.012048 | 0.023503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210843 | false | 0.018072 | 0.060241 | 0.060241 | 0.415663 | 0.006024 | 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 |
a6abdf6094971fcd41315fd5be87179e945692f3 | 9,573 | py | Python | test/test_shared.py | NRuf77/proset | 101d491e05c2423faddca31029232982f46d8831 | [
"MIT"
] | null | null | null | test/test_shared.py | NRuf77/proset | 101d491e05c2423faddca31029232982f46d8831 | [
"MIT"
] | null | null | null | test/test_shared.py | NRuf77/proset | 101d491e05c2423faddca31029232982f46d8831 | [
"MIT"
] | null | null | null | """Unit tests for code in shared.py.
Copyright by Nikolaus Ruf
Released under the MIT license - see LICENSE file for details
"""
from unittest import TestCase
import numpy as np
import proset.shared as shared
from test.test_set_manager import REFERENCE, PROTOTYPES, FEATURE_WEIGHTS # pylint: disable=wron... | 42.358407 | 121 | 0.642954 | 1,250 | 9,573 | 4.7008 | 0.1168 | 0.08373 | 0.049013 | 0.057862 | 0.76872 | 0.742001 | 0.693839 | 0.640742 | 0.589687 | 0.573519 | 0 | 0.023679 | 0.258853 | 9,573 | 225 | 122 | 42.546667 | 0.80451 | 0.043873 | 0 | 0.451087 | 0 | 0 | 0.106137 | 0 | 0 | 0 | 0 | 0 | 0.168478 | 1 | 0.141304 | false | 0 | 0.021739 | 0 | 0.168478 | 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 |
a6ac1bb47606ab0f5213adbeb70e3abc9f740e9c | 464 | py | Python | core/migrations/0002_auto_20200730_2201.py | nepoarthur/fusion | 498aa38d04addf6f55d40427cf0451279d7acaac | [
"MIT"
] | null | null | null | core/migrations/0002_auto_20200730_2201.py | nepoarthur/fusion | 498aa38d04addf6f55d40427cf0451279d7acaac | [
"MIT"
] | null | null | null | core/migrations/0002_auto_20200730_2201.py | nepoarthur/fusion | 498aa38d04addf6f55d40427cf0451279d7acaac | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-31 01:01
import core.models
from django.db import migrations
import stdimage.models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employee',
... | 22.095238 | 107 | 0.640086 | 53 | 464 | 5.490566 | 0.698113 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054441 | 0.247845 | 464 | 20 | 108 | 23.2 | 0.77937 | 0.096983 | 0 | 0 | 1 | 0 | 0.081535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6b19d281af0120e8f8dbbb610479584ab3706dd | 4,444 | py | Python | mdde/core/mdde/scenario/default/default_scenario_simulation.py | akharitonov/mdde | b0443f3c9c3ca948e9dda213572926087c214d8d | [
"MIT"
] | 1 | 2021-05-17T11:17:51.000Z | 2021-05-17T11:17:51.000Z | mdde/core/mdde/scenario/default/default_scenario_simulation.py | akharitonov/mdde | b0443f3c9c3ca948e9dda213572926087c214d8d | [
"MIT"
] | 4 | 2020-05-30T12:23:04.000Z | 2021-12-25T12:59:14.000Z | mdde/core/mdde/scenario/default/default_scenario_simulation.py | akharitonov/mdde | b0443f3c9c3ca948e9dda213572926087c214d8d | [
"MIT"
] | null | null | null | import logging
import pathlib
import csv
import collections
from typing import Tuple, Union, Sequence, Dict, List
from pathlib import Path
import numpy as np
import tiledb
from tiledb.libtiledb import TileDBError
from mdde.agent.abc import ABCAgent
from mdde.agent.enums import EActionResult
from mdde.config import C... | 49.377778 | 118 | 0.70387 | 518 | 4,444 | 5.870656 | 0.38417 | 0.026307 | 0.018415 | 0.024992 | 0.075633 | 0.075633 | 0.075633 | 0.030253 | 0.030253 | 0 | 0 | 0.00986 | 0.24685 | 4,444 | 89 | 119 | 49.932584 | 0.898118 | 0.362061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.404255 | 0 | 0.510638 | 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 |
a6ba032a377fc6f31cff0e61d9fe3ee7bdc71f2a | 1,973 | py | Python | pydgn/training/callback/optimizer.py | terragord7/PyDGN | 60918b42126c25c8f8d4ab083a0e3d548f7092ca | [
"BSD-3-Clause"
] | 1 | 2022-03-05T07:10:13.000Z | 2022-03-05T07:10:13.000Z | pydgn/training/callback/optimizer.py | terragord7/PyDGN | 60918b42126c25c8f8d4ab083a0e3d548f7092ca | [
"BSD-3-Clause"
] | null | null | null | pydgn/training/callback/optimizer.py | terragord7/PyDGN | 60918b42126c25c8f8d4ab083a0e3d548f7092ca | [
"BSD-3-Clause"
] | null | null | null | import copy
from pydgn.experiment.util import s2c
from pydgn.model.interface import ModelInterface
from pydgn.training.event.handler import EventHandler
class Optimizer(EventHandler):
"""
Optimizer is the main event handler for optimizers.
Just pass a PyTorch optimizer together with its arguments in the ... | 37.226415 | 159 | 0.694374 | 243 | 1,973 | 5.423868 | 0.329218 | 0.115326 | 0.087253 | 0.081942 | 0.247344 | 0.247344 | 0.200303 | 0.200303 | 0.14264 | 0.094082 | 0 | 0.001314 | 0.228586 | 1,973 | 52 | 160 | 37.942308 | 0.864652 | 0.270654 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.40625 | 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 |
a6c7df6b0e64be3a2c71e7bbb20fbb5d2713533c | 2,180 | py | Python | views/ui_about.py | pupkinit/mail-notifier | 24d90e3e2f8abaed2468086cea7deaa4c19de40b | [
"BSD-3-Clause"
] | null | null | null | views/ui_about.py | pupkinit/mail-notifier | 24d90e3e2f8abaed2468086cea7deaa4c19de40b | [
"BSD-3-Clause"
] | null | null | null | views/ui_about.py | pupkinit/mail-notifier | 24d90e3e2f8abaed2468086cea7deaa4c19de40b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources\about.ui'
#
# Created by: PyQt5 UI code generator 5.12
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_about(object):
def setupUi(self, about):
about.setOb... | 39.636364 | 103 | 0.695413 | 228 | 2,180 | 6.618421 | 0.45614 | 0.083499 | 0.043738 | 0.031809 | 0.042412 | 0.042412 | 0 | 0 | 0 | 0 | 0 | 0.029478 | 0.190826 | 2,180 | 54 | 104 | 40.37037 | 0.825964 | 0.08578 | 0 | 0 | 1 | 0 | 0.06143 | 0.025176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.125 | 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 |
a6c9c4632442d94fb8f7b15411e97ecbcc47fee3 | 2,705 | py | Python | plenum/test/audit_ledger/test_first_audit_catchup_during_ordering.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | plenum/test/audit_ledger/test_first_audit_catchup_during_ordering.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | plenum/test/audit_ledger/test_first_audit_catchup_during_ordering.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | import pytest
from plenum.test import waits
from plenum.common.constants import LEDGER_STATUS, DOMAIN_LEDGER_ID
from plenum.common.messages.node_messages import MessageReq, CatchupReq
from plenum.server.catchup.node_leecher_service import NodeLeecherService
from plenum.test.delayers import ppDelay, pDelay, cDelay, DEF... | 43.629032 | 118 | 0.756747 | 351 | 2,705 | 5.547009 | 0.353276 | 0.079096 | 0.043143 | 0.069851 | 0.274268 | 0.232666 | 0.205958 | 0.12943 | 0.080123 | 0.080123 | 0 | 0.002273 | 0.186691 | 2,705 | 61 | 119 | 44.344262 | 0.882727 | 0.163771 | 0 | 0.051282 | 0 | 0 | 0.003551 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.128205 | false | 0 | 0.282051 | 0.025641 | 0.512821 | 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 |
a6ce7efa44fa53070f54181677ca18aadabc838d | 2,876 | py | Python | ydb/public/api/grpc/draft/ydb_s3_internal_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-18T16:18:52.000Z | 2022-02-19T20:15:05.000Z | ydb/public/api/grpc/draft/ydb_s3_internal_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 1 | 2022-02-09T12:49:19.000Z | 2022-02-21T08:15:36.000Z | ydb/public/api/grpc/draft/ydb_s3_internal_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-03T14:58:56.000Z | 2022-02-22T19:42:59.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from ydb.public.api.protos import ydb_s3_internal_pb2 as ydb_dot_public_dot_api_dot_protos_dot_ydb__s3__internal__pb2
class S3InternalServiceStub(object):
... | 42.925373 | 137 | 0.71975 | 312 | 2,876 | 6.185897 | 0.317308 | 0.020725 | 0.053886 | 0.066321 | 0.423316 | 0.380829 | 0.380829 | 0.355959 | 0.327979 | 0.268912 | 0 | 0.01847 | 0.209319 | 2,876 | 66 | 138 | 43.575758 | 0.830255 | 0.159249 | 0 | 0 | 1 | 0 | 0.077086 | 0.053791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0.02381 | 0.238095 | 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 |
a6cf5cd732bd5cb9175b7b818d8c9207817a2472 | 4,720 | py | Python | main.py | taidalab/yunba-smarthome | 01027f3d86f3424eea335083456d47c614cf3ad2 | [
"MIT"
] | 12 | 2016-01-14T15:10:35.000Z | 2019-07-15T08:11:40.000Z | main.py | taidalab/yunba-smarthome | 01027f3d86f3424eea335083456d47c614cf3ad2 | [
"MIT"
] | null | null | null | main.py | taidalab/yunba-smarthome | 01027f3d86f3424eea335083456d47c614cf3ad2 | [
"MIT"
] | 6 | 2016-01-27T03:05:37.000Z | 2018-08-21T11:58:01.000Z | #!/usr/bin/env python
import time
import sys
import json
import types
import threading
import signal
import socket
import logging
import RPi.GPIO as GPIO
from messenger import Messenger
import config
import led
import dht
import stepper_motor
import magnet_sw
from player import Player
logging.basicConfig()
player = ... | 21.454545 | 76 | 0.608475 | 644 | 4,720 | 4.26087 | 0.195652 | 0.023324 | 0.029155 | 0.038265 | 0.219388 | 0.118076 | 0.056851 | 0.056851 | 0.056851 | 0.030612 | 0 | 0.00872 | 0.246822 | 4,720 | 219 | 77 | 21.552511 | 0.76315 | 0.032627 | 0 | 0.255682 | 0 | 0 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005682 | 0.090909 | null | null | 0.096591 | 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 |
a6d3585c394a26241f84d62cd6e356f688de20ae | 4,821 | py | Python | pyobd-pi/obd_sensors.py | rcaldwell1200/RPi_Infotainment | 335f30f4a8dd56598bb3dd3c9b5e7781d0025a75 | [
"MIT"
] | null | null | null | pyobd-pi/obd_sensors.py | rcaldwell1200/RPi_Infotainment | 335f30f4a8dd56598bb3dd3c9b5e7781d0025a75 | [
"MIT"
] | null | null | null | pyobd-pi/obd_sensors.py | rcaldwell1200/RPi_Infotainment | 335f30f4a8dd56598bb3dd3c9b5e7781d0025a75 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###########################################################################
# obd_sensors.py
#
# Copyright 2004 Donour Sizemore (donour@uchicago.edu)
# Copyright 2009 Secons Ltd. (www.obdtester.com)
#
# This file is part of pyOBD.
#
# pyOBD is free software; you can redistribute it and/or modify
#... | 29.944099 | 104 | 0.529766 | 608 | 4,821 | 3.995066 | 0.379934 | 0.034994 | 0.049403 | 0.069164 | 0.232606 | 0.201317 | 0.156855 | 0.123508 | 0.086455 | 0.033759 | 0 | 0.056662 | 0.322755 | 4,821 | 160 | 105 | 30.13125 | 0.687289 | 0.234599 | 0 | 0.247525 | 0 | 0 | 0.086994 | 0 | 0 | 0 | 0.007986 | 0.00625 | 0 | 0 | null | null | 0.019802 | 0 | null | null | 0.009901 | 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 |
a6d48017f3bee4285d2ffd6e1bf5c71e111cfd2a | 1,933 | py | Python | tests/unit/test_plugins.py | TechnicalBro/simple-python-plugins | 971f047c85c634bcbd28f247c8214dcf77a345f9 | [
"MIT"
] | null | null | null | tests/unit/test_plugins.py | TechnicalBro/simple-python-plugins | 971f047c85c634bcbd28f247c8214dcf77a345f9 | [
"MIT"
] | null | null | null | tests/unit/test_plugins.py | TechnicalBro/simple-python-plugins | 971f047c85c634bcbd28f247c8214dcf77a345f9 | [
"MIT"
] | null | null | null | import pytest
from simpleplugins import Plugin
from ..fixtures.plugin_manager import OperationPlugin
from ..fixtures.plugin_module import YamlTemplate, TemplatePlugin
def test_plugin_manager(plugin_manager, base_plugin, clean_operation, build_operation, operation_plugin, module):
plugin_manager.register(plugin=cl... | 37.173077 | 115 | 0.789446 | 235 | 1,933 | 6.251064 | 0.234043 | 0.150442 | 0.103472 | 0.089857 | 0.424779 | 0.424779 | 0.332199 | 0.26821 | 0.26821 | 0.26821 | 0 | 0.000596 | 0.131919 | 1,933 | 51 | 116 | 37.901961 | 0.874851 | 0 | 0 | 0.060606 | 0 | 0 | 0.131402 | 0.077082 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6db89627a4fa70729e1442c6fc4d7c869e46a3d | 1,257 | py | Python | api/apps/users/serializers.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | api/apps/users/serializers.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | api/apps/users/serializers.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from rest_framework.authtoken.models import Token
from .models import User
class UserTokenSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = (
'id', 'full_name', 'email', 'role', 'role_name')
class AuthTokenSerializer(se... | 26.744681 | 67 | 0.652347 | 130 | 1,257 | 6.130769 | 0.369231 | 0.130489 | 0.070263 | 0.087829 | 0.25345 | 0.188206 | 0.087829 | 0.087829 | 0 | 0 | 0 | 0 | 0.240255 | 1,257 | 46 | 68 | 27.326087 | 0.834555 | 0 | 0 | 0.25 | 0 | 0 | 0.09467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.09375 | 0.09375 | 0 | 0.46875 | 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 |
a6de719cc0ecab587224b4f5990ce6f27b4cf9a5 | 263 | py | Python | src/tests/bot/mining/testCloseMines.py | coinmasterlisting/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | 1 | 2022-02-21T20:06:57.000Z | 2022-02-21T20:06:57.000Z | src/tests/bot/mining/testCloseMines.py | nurullahk5656/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | null | null | null | src/tests/bot/mining/testCloseMines.py | nurullahk5656/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | null | null | null | from src.bot.mining.closeMines import closeMines
from src.common.config import users
# VARS
# TEST FUNCTIONS
def testCloseMines() -> None:
nFinished = closeMines(users[0]['address'])
print(f'CLOSED {nFinished} LOOTING MINES')
# EXECUTE
testCloseMines() | 21.916667 | 48 | 0.745247 | 32 | 263 | 6.125 | 0.75 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.140684 | 263 | 12 | 49 | 21.916667 | 0.862832 | 0.102662 | 0 | 0 | 0 | 0 | 0.167382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6e90ecc85f732ad656bad081675cbb7765af045 | 11,126 | py | Python | level_two_utils/vehicle.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | level_two_utils/vehicle.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | level_two_utils/vehicle.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | from skfuzzy import control as ctrl
import skfuzzy as fuzz
import numpy as np
from fuzzy_utils import create_universes_membership_functions
class VehicleRules:
def __init__(self, show_sim_result=None):
prox, over, spat = create_universes_membership_functions()
self.__show_sim_result = show_sim_res... | 62.858757 | 119 | 0.595542 | 1,139 | 11,126 | 5.330114 | 0.089552 | 0.047439 | 0.075111 | 0.034426 | 0.742382 | 0.644375 | 0.591006 | 0.533849 | 0.396969 | 0.353648 | 0 | 0.011628 | 0.312062 | 11,126 | 177 | 120 | 62.858757 | 0.781552 | 0.047277 | 0 | 0.27027 | 0 | 0 | 0.082161 | 0.007933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.155405 | 0.027027 | 0 | 0.162162 | 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 |
a6ee3f6610149efb3c795979583b174774a4e2d6 | 1,288 | py | Python | Migrate/create_gcp_instances.py | mrahma04/gcp | 0bb8939573c276ebe757356b751cc27d36c60a77 | [
"MIT"
] | null | null | null | Migrate/create_gcp_instances.py | mrahma04/gcp | 0bb8939573c276ebe757356b751cc27d36c60a77 | [
"MIT"
] | null | null | null | Migrate/create_gcp_instances.py | mrahma04/gcp | 0bb8939573c276ebe757356b751cc27d36c60a77 | [
"MIT"
] | 1 | 2020-10-01T02:07:36.000Z | 2020-10-01T02:07:36.000Z | def GenerateConfig(context):
resources = []
project = context.env["project"]
zone = context.properties["zone"]
instance_name = "gcp-vm-" + context.env["project"]
machine_type = context.properties["machineType"]
resources.append({
"name": instance_name,
"type": "compute.v1.i... | 35.777778 | 100 | 0.487578 | 95 | 1,288 | 6.526316 | 0.568421 | 0.082258 | 0.054839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017032 | 0.361801 | 1,288 | 36 | 101 | 35.777778 | 0.737226 | 0 | 0 | 0.060606 | 1 | 0 | 0.321179 | 0.099302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.060606 | 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 |
a6f5444d68203e42fedb89b00b8a9c2a4c2f8bdc | 698 | py | Python | password_checker.py | StefanS97/free-time-fun | 2de2f70c333eff4263e54bc908220465fa29d592 | [
"MIT"
] | null | null | null | password_checker.py | StefanS97/free-time-fun | 2de2f70c333eff4263e54bc908220465fa29d592 | [
"MIT"
] | null | null | null | password_checker.py | StefanS97/free-time-fun | 2de2f70c333eff4263e54bc908220465fa29d592 | [
"MIT"
] | null | null | null | from string import digits as d, ascii_letters as l, punctuation as p
def check(pw):
digitcount = 0
lettercount = 0
punctcount = 0
if len(pw) >= 8:
for letter in range(len(pw)):
if pw[letter] in l:
lettercount += 1
elif pw[letter] in d:
di... | 26.846154 | 68 | 0.511461 | 81 | 698 | 4.395062 | 0.506173 | 0.089888 | 0.08427 | 0.073034 | 0.08427 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.415473 | 698 | 26 | 69 | 26.846154 | 0.848039 | 0 | 0 | 0.136364 | 0 | 0 | 0.108727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.045455 | 0 | 0.272727 | 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 |
47080cb9f696ece732c4773f35e10b1b8e0ddeaf | 1,712 | py | Python | solutions/day_7.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | 1 | 2020-12-07T18:20:31.000Z | 2020-12-07T18:20:31.000Z | solutions/day_7.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | null | null | null | solutions/day_7.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | null | null | null | import re
from typing import Tuple, List, Dict
from dataclasses import dataclass, field
@dataclass
class Bag:
color: str
contents: List[Tuple[int, "Bag"]] = field(default_factory=list)
containers: Dict[str, "Bag"] = field(default_factory=dict)
def total_containers(self):
return set(self.conta... | 29.517241 | 85 | 0.651869 | 218 | 1,712 | 4.963303 | 0.252294 | 0.049908 | 0.04159 | 0.060998 | 0.146026 | 0.146026 | 0.146026 | 0.146026 | 0.079482 | 0.079482 | 0 | 0.001521 | 0.231893 | 1,712 | 57 | 86 | 30.035088 | 0.821293 | 0 | 0 | 0.046512 | 0 | 0 | 0.036215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.069767 | 0.046512 | 0.511628 | 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 |
4708f3166eb7dc61b1035d4b7e4773016fea585c | 1,040 | py | Python | crudapp/migrations/0057_auto_20220118_1205.py | akhm7/atm-managment-system | 50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf | [
"Apache-2.0"
] | null | null | null | crudapp/migrations/0057_auto_20220118_1205.py | akhm7/atm-managment-system | 50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf | [
"Apache-2.0"
] | null | null | null | crudapp/migrations/0057_auto_20220118_1205.py | akhm7/atm-managment-system | 50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.10 on 2022-01-18 07:05
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crudapp', '0056_auto_20220118_1155'),
]
operations = [
migrations.AddField(
model_name='telegrammsg',
... | 29.714286 | 134 | 0.598077 | 108 | 1,040 | 5.611111 | 0.537037 | 0.059406 | 0.123762 | 0.143564 | 0.056106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 0.279808 | 1,040 | 34 | 135 | 30.588235 | 0.724967 | 0.044231 | 0 | 0.321429 | 1 | 0 | 0.154234 | 0.081653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
470a2bfe99cca5741fafc2a6e26fae25ac3ecf57 | 1,312 | py | Python | Node_interpretation/get_annotations.py | JustinRunyon/JustinRunyon | 0c3c88555459355a64e78579141af0836b674545 | [
"BSD-3-Clause"
] | 67 | 2015-11-12T17:52:49.000Z | 2021-04-08T16:07:38.000Z | Node_interpretation/get_annotations.py | shijs1982/adage | 2575a60804218db7f91402b955371bb60e5b00d6 | [
"BSD-3-Clause"
] | 2 | 2016-01-12T21:25:17.000Z | 2016-05-17T14:03:06.000Z | Node_interpretation/get_annotations.py | shijs1982/adage | 2575a60804218db7f91402b955371bb60e5b00d6 | [
"BSD-3-Clause"
] | 29 | 2015-12-16T14:34:07.000Z | 2022-02-16T21:04:31.000Z | import requests
import sys
TRIBE_URL = 'http://tribe.greenelab.com'
limit = 2000
def get_terms(offset=None, target = None):
parameters = {'show_tip': 'true', 'organism': 9, 'xrdb': 'Symbol', 'limit': limit, 'offset': offset}
r = requests.get(TRIBE_URL + '/api/v1/geneset/?title__startswith='+target, params=pa... | 32.8 | 117 | 0.592988 | 168 | 1,312 | 4.452381 | 0.464286 | 0.053476 | 0.06016 | 0.048128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.242378 | 1,312 | 39 | 118 | 33.641026 | 0.738431 | 0.009146 | 0 | 0.058824 | 0 | 0 | 0.160893 | 0.026944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 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 |
470d177e8fa57c80e7be8d43a746a71982e0d6c0 | 11,492 | py | Python | Python/klampt/robotplanning.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | Python/klampt/robotplanning.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | Python/klampt/robotplanning.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | from cspace import *
from cspaceutils import *
import robotcspace
import robotcollide
from klampt import IKObjective
def preferredPlanOptions(robot,movingSubset=None,optimizing=False):
"""Returns some options that might be good for your given robot, and
whether you want a feasible or just an optimal plan.
... | 43.530303 | 156 | 0.638096 | 1,291 | 11,492 | 5.673896 | 0.208366 | 0.010922 | 0.012423 | 0.014334 | 0.605188 | 0.596314 | 0.59372 | 0.586621 | 0.586075 | 0.56587 | 0 | 0.007429 | 0.285503 | 11,492 | 263 | 157 | 43.695817 | 0.884667 | 0.019579 | 0 | 0.5 | 0 | 0 | 0.066531 | 0.004513 | 0 | 0 | 0 | 0.007605 | 0.0125 | 0 | null | null | 0 | 0.03125 | null | null | 0.01875 | 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 |
470d20d14df593b26eda4b43f62a2bc6bf70043c | 1,721 | py | Python | guimain.py | XrangerCY19/Project2.7 | 91754c0224744a06a35e9767c98e25133067373e | [
"MIT"
] | 1 | 2020-01-14T16:59:43.000Z | 2020-01-14T16:59:43.000Z | guimain.py | XrangerCY19/Project2.7 | 91754c0224744a06a35e9767c98e25133067373e | [
"MIT"
] | 5 | 2021-03-19T10:15:56.000Z | 2022-03-12T00:12:13.000Z | guimain.py | XrangerCY19/Project2.7 | 91754c0224744a06a35e9767c98e25133067373e | [
"MIT"
] | null | null | null | #Made By XrangerCY19
import os
import sys
from kivy.app import App
from kivy.lang import Builder
from kivy.properties import ObjectProperty
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.gridlayout import GridLayout
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from... | 26.890625 | 91 | 0.699012 | 234 | 1,721 | 5.094017 | 0.418803 | 0.067114 | 0.055369 | 0.035235 | 0.139262 | 0.139262 | 0.139262 | 0.080537 | 0.080537 | 0 | 0 | 0.016679 | 0.198722 | 1,721 | 63 | 92 | 27.31746 | 0.847716 | 0.159791 | 0 | 0.097561 | 0 | 0 | 0.10365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.04878 | 0.292683 | 0.02439 | 0.560976 | 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 |
4714e3af7891fa85c1be5c0fe089f5ffdf71f24b | 1,457 | py | Python | query_flight/migrations/0002_flight.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | null | null | null | query_flight/migrations/0002_flight.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | 17 | 2018-06-04T16:02:51.000Z | 2021-06-10T20:26:45.000Z | query_flight/migrations/0002_flight.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-21 19:33
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('query_flight', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 50.241379 | 185 | 0.665065 | 158 | 1,457 | 5.993671 | 0.417722 | 0.058078 | 0.084477 | 0.069694 | 0.543823 | 0.472017 | 0.472017 | 0.472017 | 0.472017 | 0.472017 | 0 | 0.018692 | 0.192176 | 1,457 | 28 | 186 | 52.035714 | 0.785896 | 0.030885 | 0 | 0 | 1 | 0 | 0.168794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.272727 | 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 |
471bf5332c28c38489c28da69f551822007300fb | 5,415 | py | Python | pysnmp/WWP-VOIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/WWP-VOIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/WWP-VOIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module WWP-VOIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-VOIP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:08 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 110.510204 | 790 | 0.763989 | 619 | 5,415 | 6.680129 | 0.231018 | 0.014994 | 0.01451 | 0.01838 | 0.355744 | 0.297944 | 0.247642 | 0.247642 | 0.247642 | 0.244498 | 0 | 0.088479 | 0.087904 | 5,415 | 48 | 791 | 112.8125 | 0.748735 | 0.058726 | 0 | 0 | 0 | 0 | 0.138758 | 0.008648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.170732 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
471ef9ce3b9dfa96275c519437e5d3d6851ec7dc | 428 | py | Python | ontask/migrations/0023_pluginregistry_is_model.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 33 | 2017-12-02T04:09:24.000Z | 2021-11-07T08:41:57.000Z | ontask/migrations/0023_pluginregistry_is_model.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 189 | 2017-11-16T04:06:29.000Z | 2022-03-11T23:35:59.000Z | ontask/migrations/0023_pluginregistry_is_model.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 30 | 2017-11-30T03:35:44.000Z | 2022-01-31T03:08:08.000Z | # Generated by Django 2.2 on 2019-04-27 01:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ontask', '0022_auto_20190106_0051'),
]
operations = [
migrations.AddField(
model_name='pluginregistry',
name='is_model... | 22.526316 | 87 | 0.621495 | 47 | 428 | 5.531915 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095847 | 0.268692 | 428 | 18 | 88 | 23.777778 | 0.734824 | 0.100467 | 0 | 0 | 1 | 0 | 0.177546 | 0.060052 | 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 |
471fd3d8c23b69a3567f86494a0487174095cba2 | 1,981 | py | Python | chroma-agent/chroma_agent/action_plugins/manage_client_mounts.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-agent/chroma_agent/action_plugins/manage_client_mounts.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-agent/chroma_agent/action_plugins/manage_client_mounts.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | # Copyright (c) 2017 Intel Corporation. All rights reserved.
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
import os
import errno
from chroma_agent.lib.shell import AgentShell
FSTAB_ENTRY_TEMPLATE = "%s\t%s\t\tlustre\tdefaults,_netdev\t0 0\n"
def delete_fst... | 27.901408 | 116 | 0.697627 | 254 | 1,981 | 5.23622 | 0.425197 | 0.157143 | 0.071429 | 0.087218 | 0.35188 | 0.166917 | 0.166917 | 0.166917 | 0 | 0 | 0 | 0.007682 | 0.211509 | 1,981 | 70 | 117 | 28.3 | 0.84379 | 0.100454 | 0 | 0.093023 | 0 | 0 | 0.069781 | 0.020822 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | 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 |
472136dfe8746be9f1dbb1c7cae3b6b7e128eaac | 1,906 | py | Python | wintermute/policy_evaluation/epsilon_greedy.py | bogdanbranescu/wintermute | 82bb1eb4065a6791b9b6f53ed0906df29bf881f4 | [
"MIT"
] | null | null | null | wintermute/policy_evaluation/epsilon_greedy.py | bogdanbranescu/wintermute | 82bb1eb4065a6791b9b6f53ed0906df29bf881f4 | [
"MIT"
] | null | null | null | wintermute/policy_evaluation/epsilon_greedy.py | bogdanbranescu/wintermute | 82bb1eb4065a6791b9b6f53ed0906df29bf881f4 | [
"MIT"
] | null | null | null | """ Epsilon Greedy. """
from typing import Union, Dict, Iterator, NamedTuple
from numpy import random
from .deterministic import DeterministicPolicy
from .exploration_schedules import get_schedule as get_epsilon_schedule
class EpsilonGreedyOutput(NamedTuple):
""" The output of the epsilon greedy policy. """
... | 29.323077 | 77 | 0.633263 | 218 | 1,906 | 5.302752 | 0.307339 | 0.07872 | 0.049308 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000724 | 0.275446 | 1,906 | 64 | 78 | 29.78125 | 0.83635 | 0.143232 | 0 | 0.105263 | 0 | 0 | 0.038339 | 0.027476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.105263 | 0.078947 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.