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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acd40e12cea0a52ffbe819d06a71017a35e915c0 | 1,872 | py | Python | src/main/python/jep/redirect_streams.py | tschoonj/jep | 639f6cbe512b5ce4b51412564dba8db5bbbf1e3b | [
"Zlib"
] | 1 | 2020-11-13T00:12:59.000Z | 2020-11-13T00:12:59.000Z | src/main/python/jep/redirect_streams.py | tschoonj/jep | 639f6cbe512b5ce4b51412564dba8db5bbbf1e3b | [
"Zlib"
] | 1 | 2020-07-15T19:39:23.000Z | 2020-07-16T23:48:05.000Z | src/main/python/jep/redirect_streams.py | tschoonj/jep | 639f6cbe512b5ce4b51412564dba8db5bbbf1e3b | [
"Zlib"
] | null | null | null | #
# Copyright (c) 2016-2018 JEP AUTHORS.
#
# This file is licensed under the the zlib/libpng License.
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any
# damages arising from the use of this software.
#
# Permission is granted to anyon... | 29.714286 | 69 | 0.690705 | 257 | 1,872 | 5 | 0.447471 | 0.046693 | 0.02179 | 0.035798 | 0.25214 | 0.161868 | 0.161868 | 0.161868 | 0.161868 | 0.101167 | 0 | 0.007618 | 0.228632 | 1,872 | 62 | 70 | 30.193548 | 0.882271 | 0.553419 | 0 | 0.461538 | 0 | 0 | 0.131291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.115385 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acd52cccb0fcd4926a48c442b4d829ad7f38ccd1 | 11,185 | py | Python | bugsy_2_mod_astar.py | trattner/bugsy | 47b0de9bdb1e50c3bf45fa785ba44266aa48547b | [
"MIT"
] | null | null | null | bugsy_2_mod_astar.py | trattner/bugsy | 47b0de9bdb1e50c3bf45fa785ba44266aa48547b | [
"MIT"
] | null | null | null | bugsy_2_mod_astar.py | trattner/bugsy | 47b0de9bdb1e50c3bf45fa785ba44266aa48547b | [
"MIT"
] | null | null | null | #Problem Set
#Name: Andrew Trattner
#Collaborators: none
#Time Spent: 0:
#for leslie kaelbling bling bling
#Michael and Andy
#Weight of time and solution cost
import time
import heapq
from math import log
import sys
import random
class Puzzle:
"""
A 15-puzzle instance which takes input st... | 35.062696 | 130 | 0.58489 | 1,541 | 11,185 | 4.099935 | 0.195328 | 0.034821 | 0.024217 | 0.020893 | 0.44856 | 0.411839 | 0.402659 | 0.376385 | 0.338082 | 0.321304 | 0 | 0.036572 | 0.330174 | 11,185 | 318 | 131 | 35.172956 | 0.806727 | 0.104783 | 0 | 0.376471 | 0 | 0 | 0.025741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.029412 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
acd7d51351bdc91d38002d564b936e6c5894bc0e | 1,157 | py | Python | snippets/fxp.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/fxp.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/fxp.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null |
def fxp(number, fractionalBits):
"""
Returns a fixed point representation of a floating point number
rounded to a given number of fractional bits.
The returned value is a string of 1's and 0's and a dot. The
substring on the left of the dot gives the binary representation
of ... | 28.219512 | 72 | 0.607606 | 160 | 1,157 | 4.39375 | 0.475 | 0.021337 | 0.01707 | 0.02845 | 0.042674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046455 | 0.292999 | 1,157 | 40 | 73 | 28.925 | 0.812958 | 0.106309 | 0 | 0.190476 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ace436c6bea1ae6a25bcc3bbe56b95740901906b | 22,359 | py | Python | app/stats/tests.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 39 | 2018-05-09T02:14:52.000Z | 2022-03-07T20:31:44.000Z | app/stats/tests.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 337 | 2018-05-07T20:09:07.000Z | 2022-03-31T14:16:01.000Z | app/stats/tests.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 28 | 2018-05-09T18:03:07.000Z | 2022-03-30T02:21:56.000Z | import json
import datetime
from django.test import TransactionTestCase, Client
from django.urls import reverse
from rest_framework.test import APIClient
from tests import setup
from stats.models import Submission, PortInstallation, UUID
from stats.utilities import sort_by_version
from port.models import Port
from co... | 34.935938 | 159 | 0.54582 | 2,579 | 22,359 | 4.529663 | 0.096549 | 0.046995 | 0.033385 | 0.051361 | 0.794042 | 0.761085 | 0.688067 | 0.633881 | 0.59596 | 0.571906 | 0 | 0.054023 | 0.297956 | 22,359 | 639 | 160 | 34.99061 | 0.690196 | 0.010421 | 0 | 0.635108 | 0 | 0.005917 | 0.249412 | 0.02514 | 0 | 0 | 0 | 0 | 0.110454 | 1 | 0.063116 | false | 0 | 0.019724 | 0 | 0.100592 | 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 |
ace60e0cb9dbc642660a124f32a3870387e4235a | 6,507 | py | Python | Arena.py | taylor-santos/alpha-zero-general | 2f22d68bd5337de56dbf0482229e301c16377f04 | [
"MIT"
] | null | null | null | Arena.py | taylor-santos/alpha-zero-general | 2f22d68bd5337de56dbf0482229e301c16377f04 | [
"MIT"
] | null | null | null | Arena.py | taylor-santos/alpha-zero-general | 2f22d68bd5337de56dbf0482229e301c16377f04 | [
"MIT"
] | null | null | null | import logging
import random
from subprocess import Popen, PIPE
from tqdm import tqdm
log = logging.getLogger(__name__)
class Arena():
"""
An Arena class where any 2 agents can be pit against each other.
"""
def __init__(self, AlphaPlayer, MinimaxPlayer, game, display=None):
"""
Inp... | 35.950276 | 133 | 0.546027 | 718 | 6,507 | 4.931755 | 0.20195 | 0.038407 | 0.033889 | 0.042361 | 0.739904 | 0.698955 | 0.687376 | 0.687094 | 0.687094 | 0.687094 | 0 | 0.025242 | 0.348548 | 6,507 | 180 | 134 | 36.15 | 0.810097 | 0.242047 | 0 | 0.6 | 0 | 0 | 0.053092 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.05 | false | 0 | 0.04 | 0 | 0.14 | 0.04 | 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 |
acea1500cdcf1715a2aca01753e864dc70b4866b | 6,617 | py | Python | wxsplitsecrets.py | mrwizard82d1/pydiceware | c9a09f5d6d06b4203dcb6ce37d638f240d3db14e | [
"Apache-2.0"
] | null | null | null | wxsplitsecrets.py | mrwizard82d1/pydiceware | c9a09f5d6d06b4203dcb6ce37d638f240d3db14e | [
"Apache-2.0"
] | null | null | null | wxsplitsecrets.py | mrwizard82d1/pydiceware | c9a09f5d6d06b4203dcb6ce37d638f240d3db14e | [
"Apache-2.0"
] | null | null | null | #! /cygdrive/c/Python25/python.exe
"""GUI application (using wxPython) to create passphrases."""
import wx
import diceware
class SplitSecretFrame(wx.Frame):
"""The application frame."""
def __init__(self):
"""Initialize the application frame."""
wx.Frame.__init__(self, parent=None,
... | 36.558011 | 72 | 0.554783 | 641 | 6,617 | 5.680187 | 0.24649 | 0.028564 | 0.024718 | 0.028014 | 0.273826 | 0.184565 | 0.134578 | 0.047789 | 0.047789 | 0.047789 | 0 | 0.010974 | 0.338975 | 6,617 | 180 | 73 | 36.761111 | 0.821445 | 0.118634 | 0 | 0.131579 | 0 | 0 | 0.026573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.114035 | 0.017544 | 0 | 0.105263 | 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 |
acebdb47a0268457432b4bb796b0fc1251180006 | 273 | py | Python | main.py | RedCrabVb/Extract_doc_features | fb04fcb9c7e66ae392c31a68f43f6ebc780ec12f | [
"MIT"
] | null | null | null | main.py | RedCrabVb/Extract_doc_features | fb04fcb9c7e66ae392c31a68f43f6ebc780ec12f | [
"MIT"
] | null | null | null | main.py | RedCrabVb/Extract_doc_features | fb04fcb9c7e66ae392c31a68f43f6ebc780ec12f | [
"MIT"
] | null | null | null | import sys
import json
from extract_doc_features import extract_doc_features
sys.stdout.encoding
for param in sys.argv:
try:
d = extract_doc_features(param)
print(json.dumps(d, ensure_ascii=False, indent=4))
except Exception as e:
print(e)
| 22.75 | 58 | 0.714286 | 41 | 273 | 4.585366 | 0.634146 | 0.159574 | 0.287234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.212454 | 273 | 11 | 59 | 24.818182 | 0.869767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.2 | 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 |
acedc2f1a5d23e14c51c0feb17de2a7098fa64b8 | 2,192 | py | Python | Functions_Exerc/strings.py | ecanro/100DaysOfCode_Python | a86ebe5a793fd4743e0de87454ba76925efdd23d | [
"MIT"
] | null | null | null | Functions_Exerc/strings.py | ecanro/100DaysOfCode_Python | a86ebe5a793fd4743e0de87454ba76925efdd23d | [
"MIT"
] | null | null | null | Functions_Exerc/strings.py | ecanro/100DaysOfCode_Python | a86ebe5a793fd4743e0de87454ba76925efdd23d | [
"MIT"
] | null | null | null | # working with strings
# function to sort frase
def sort(str):
print(f'Frase usando sorting: {str[num_sorts1:num_sorts2]}')
# function to print frase 2 in 2
def print_f(str):
print(str[::2])
print('Frase de 2 en 2: ')
for e in str[::2]:
print(f'{e}', end='')
# functional
def print_str(str, num_... | 27.061728 | 104 | 0.649179 | 366 | 2,192 | 3.833333 | 0.270492 | 0.076978 | 0.054882 | 0.060584 | 0.21454 | 0.188881 | 0.094797 | 0.078403 | 0.078403 | 0.078403 | 0 | 0.013636 | 0.19708 | 2,192 | 81 | 105 | 27.061728 | 0.783523 | 0.229927 | 0 | 0.090909 | 0 | 0 | 0.516497 | 0.016797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0 | 0 | 0.113636 | 0.477273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
acf17484b80891c34ad38c2b5f4345b7dee7a1cf | 317 | py | Python | cesar_decryptage(base).py | alexandre-o/XOR-isn-projet-python- | 0e2bf4f7ba91f7f615710bcacc2275882765128f | [
"CC0-1.0"
] | null | null | null | cesar_decryptage(base).py | alexandre-o/XOR-isn-projet-python- | 0e2bf4f7ba91f7f615710bcacc2275882765128f | [
"CC0-1.0"
] | null | null | null | cesar_decryptage(base).py | alexandre-o/XOR-isn-projet-python- | 0e2bf4f7ba91f7f615710bcacc2275882765128f | [
"CC0-1.0"
] | null | null | null | message_decrypter=input("Votre message a decrypter:")
cle=int(input("Nombre de decalage ?:"))
longueur=len(message_decrypter)
i=0
alph=""
resultat=""
for i in range(longueur):
asc=ord(message_decrypter[i])
if asc>=65 or asc<=90:
asc=asc-cle
resultat=resultat+chr(asc)
print (resultat) | 24.384615 | 54 | 0.675079 | 46 | 317 | 4.586957 | 0.586957 | 0.227488 | 0.161137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.179811 | 317 | 13 | 55 | 24.384615 | 0.792308 | 0 | 0 | 0 | 0 | 0 | 0.153595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 |
acf39842590524dbdbb6da9ee504f9bf5164c4e6 | 793 | py | Python | playlist/views.py | ChocoYokan/PlayMix | f7324f7c9b992b070c12b21618eb8633b8d99f57 | [
"MIT"
] | null | null | null | playlist/views.py | ChocoYokan/PlayMix | f7324f7c9b992b070c12b21618eb8633b8d99f57 | [
"MIT"
] | null | null | null | playlist/views.py | ChocoYokan/PlayMix | f7324f7c9b992b070c12b21618eb8633b8d99f57 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from playlist.models import Content, PlayList
from playlist.serializers import (
ContentsDetailSerializer,
PlaylistSerializer,
PlayListWriteSerializer,
)
class PlayListViewSet(viewsets.ModelViewSet):
queryset = PlayList.objects.all()
def get_queryset(self):
... | 24.78125 | 54 | 0.703657 | 70 | 793 | 7.9 | 0.485714 | 0.0434 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223203 | 793 | 31 | 55 | 25.580645 | 0.897727 | 0.029004 | 0 | 0 | 0 | 0 | 0.016086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 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 |
4a016c080f06699df344bd86fb67ec9df19102d7 | 1,302 | py | Python | src/common/admin.py | kuriadn/fayvad | 7f26644b1407f7c493fff04126371a9e1ca53d58 | [
"MIT"
] | null | null | null | src/common/admin.py | kuriadn/fayvad | 7f26644b1407f7c493fff04126371a9e1ca53d58 | [
"MIT"
] | null | null | null | src/common/admin.py | kuriadn/fayvad | 7f26644b1407f7c493fff04126371a9e1ca53d58 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
class VehicleAdmin(admin.ModelAdmin):
fields = ('regno', 'dueinsurance',)
list_display = ('regno', 'dueinsurance',)
list_filter = ('regno', 'dueinsurance',)
list_per_page = 10
class DriverAdmin(admin.ModelAdmin):
fields = ('idno', 'fname', 'lname', 'ad... | 37.2 | 90 | 0.6851 | 147 | 1,302 | 5.959184 | 0.29932 | 0.082192 | 0.135845 | 0.059361 | 0.388128 | 0.15411 | 0.15411 | 0.15411 | 0 | 0 | 0 | 0.006999 | 0.12212 | 1,302 | 35 | 91 | 37.2 | 0.759405 | 0.069124 | 0 | 0.148148 | 0 | 0 | 0.255372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.814815 | 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 |
4a0f582785fdaf2d30b3e6980cfb54b3b07dffc5 | 2,603 | py | Python | catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-06-25T02:51:25.000Z | 2018-06-25T02:51:27.000Z | catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-09-04T06:44:21.000Z | 2018-10-15T02:30:50.000Z | #!/usr/bin/env python
import rospy
import time
import numpy as np
from Adafruit_LSM303 import Adafruit_LSM303
from Gyro_L3GD20 import Gyro_L3GD20
from sensor_msgs.msg import Imu
from sensor_msgs.msg import MagneticField
class AdafruitIMU(object):
# Physical constants
G = 9.80665 # Standart gravity at sea le... | 33.371795 | 93 | 0.657318 | 346 | 2,603 | 4.693642 | 0.343931 | 0.036946 | 0.019704 | 0.038793 | 0.155788 | 0.07266 | 0.04064 | 0.04064 | 0 | 0 | 0 | 0.027495 | 0.245486 | 2,603 | 77 | 94 | 33.805195 | 0.799389 | 0.134844 | 0 | 0 | 0 | 0 | 0.040197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a1847e01c784420779f30f7319d8ac4dc09e4ff | 252 | py | Python | Test_Condiut/email_generator.py | Lia4-info/conduit | 65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58 | [
"MIT"
] | null | null | null | Test_Condiut/email_generator.py | Lia4-info/conduit | 65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58 | [
"MIT"
] | null | null | null | Test_Condiut/email_generator.py | Lia4-info/conduit | 65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58 | [
"MIT"
] | null | null | null | import time
from datetime import datetime
now = datetime.now()
print(now)
email_num = now.strftime("%d%H")
username = f"TKori{email_num}"
print(username)
email = f"tk{email_num}@mail.com"
print(email)
password = f"TKpass{email_num}"
print(password)
| 16.8 | 33 | 0.742063 | 40 | 252 | 4.575 | 0.475 | 0.174863 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 252 | 14 | 34 | 18 | 0.816964 | 0 | 0 | 0 | 0 | 0 | 0.236 | 0.088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.181818 | 0 | 0.181818 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a1b1402b2afd8a02a9a80b11c173cb2aba193e7 | 7,567 | py | Python | run.py | Manasseh-Kinyua/passLocker | 09589628bbcda14cb59b1dc56a76eaf768a53760 | [
"MIT"
] | null | null | null | run.py | Manasseh-Kinyua/passLocker | 09589628bbcda14cb59b1dc56a76eaf768a53760 | [
"MIT"
] | null | null | null | run.py | Manasseh-Kinyua/passLocker | 09589628bbcda14cb59b1dc56a76eaf768a53760 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.9
from user import User
from user import Credentials
def logo():
print(" ____ _ _ ")
print(" | _ \ | | | | /\ ")
print(" | |_) ) ____ ___ ___ | | __... | 38.217172 | 255 | 0.556231 | 808 | 7,567 | 5 | 0.20297 | 0.039604 | 0.029703 | 0.016832 | 0.245297 | 0.171782 | 0.124257 | 0.10396 | 0.10396 | 0.086139 | 0 | 0.005921 | 0.330382 | 7,567 | 197 | 256 | 38.411168 | 0.791395 | 0.078499 | 0 | 0.34058 | 0 | 0.057971 | 0.380638 | 0.029969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094203 | false | 0.224638 | 0.014493 | 0 | 0.166667 | 0.376812 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a1e74ff8af00d27c275d21625778857a1dc71da | 749 | py | Python | app/device.py | zmops/zeus-modbus | 3de989f2233e994876cf2a98ac46d9213e53ff3c | [
"Apache-2.0"
] | 3 | 2022-01-26T04:27:49.000Z | 2022-03-04T14:02:41.000Z | app/device.py | zmops/zeus-modbus | 3de989f2233e994876cf2a98ac46d9213e53ff3c | [
"Apache-2.0"
] | null | null | null | app/device.py | zmops/zeus-modbus | 3de989f2233e994876cf2a98ac46d9213e53ff3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# 配置设置
# 作者: 三石
# 时间: 2021-12-10
from pydantic import BaseSettings
class DeviceSettings(BaseSettings):
plc366: dict = {
"id": "plc366",
"model": "napro_300",
"ipaddress": "172.16.3.66",
"port": 502,
"slave": 1,
}
hf318: dict = {
"... | 17.833333 | 56 | 0.473965 | 76 | 749 | 4.578947 | 0.618421 | 0.051724 | 0.12069 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15735 | 0.35514 | 749 | 41 | 57 | 18.268293 | 0.563147 | 0.064085 | 0 | 0.172414 | 0 | 0 | 0.29454 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a1f2f029eedf63f451068ef7ce97feb409c16de | 1,280 | py | Python | src/fvm/test/PARALLEL_TESTS/testPartMesh.py | drm42/fvm-drm | c9b940e593034f1aa3020d63ff1e09ebef9c182a | [
"MIT"
] | null | null | null | src/fvm/test/PARALLEL_TESTS/testPartMesh.py | drm42/fvm-drm | c9b940e593034f1aa3020d63ff1e09ebef9c182a | [
"MIT"
] | null | null | null | src/fvm/test/PARALLEL_TESTS/testPartMesh.py | drm42/fvm-drm | c9b940e593034f1aa3020d63ff1e09ebef9c182a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Usage: testPartMesh.py [options] infile
options are:
--type 'tri'[default], 'quad', 'hexa', or 'tetra'
--xdmf Dump data in xdmf
"""
import sys, fvm
import fvm.fvmbaseExt as fvmbaseExt
import fvm.importers as importers
import fvm.fvmparallel as fvmparallel
from mpi4py import MPI
from FluentC... | 21.694915 | 78 | 0.696094 | 175 | 1,280 | 4.948571 | 0.457143 | 0.083141 | 0.04157 | 0.04157 | 0.057737 | 0.057737 | 0 | 0 | 0 | 0 | 0 | 0.011121 | 0.157031 | 1,280 | 58 | 79 | 22.068966 | 0.791474 | 0.04375 | 0 | 0 | 0 | 0 | 0.092336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a22df4694e003d2e92159e315f7563b86875fd4 | 2,252 | py | Python | Logs_Generation/generate_log.py | ericsun95/Real_Time_Logs_Analysis_System | 463ec7a68a669d45dcf07764df0b284232853cd5 | [
"Apache-2.0"
] | null | null | null | Logs_Generation/generate_log.py | ericsun95/Real_Time_Logs_Analysis_System | 463ec7a68a669d45dcf07764df0b284232853cd5 | [
"Apache-2.0"
] | null | null | null | Logs_Generation/generate_log.py | ericsun95/Real_Time_Logs_Analysis_System | 463ec7a68a669d45dcf07764df0b284232853cd5 | [
"Apache-2.0"
] | 1 | 2021-02-17T02:30:46.000Z | 2021-02-17T02:30:46.000Z | # coding=UTF-8
# coding to generate logs
# crontab -e
# */1 * * * * sh /Users/eric_sun/IdeaProjects/SparkProject/log_generator.sh
import random
import time
url_paths = [
"class/112.html",
"class/130.html",
"class/131.html",
"class/145.html",
"class/128.html",
"class/146.html",
"learn/821",... | 26.186047 | 101 | 0.607904 | 316 | 2,252 | 4.148734 | 0.411392 | 0.034325 | 0.018307 | 0.032037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061374 | 0.211368 | 2,252 | 85 | 102 | 26.494118 | 0.676802 | 0.074156 | 0 | 0 | 1 | 0 | 0.304954 | 0.059644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.029851 | 0.029851 | 0.179104 | 0.014925 | 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 |
4a22f1aa5837583d0fe9ffc5d53c5d24ce6efe3a | 410 | py | Python | holmes/migrations/versions/17346cf564bc_renaming_delimiters_table_to_limiters.py | scorphus/holmes-api | 6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59 | [
"MIT"
] | null | null | null | holmes/migrations/versions/17346cf564bc_renaming_delimiters_table_to_limiters.py | scorphus/holmes-api | 6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59 | [
"MIT"
] | null | null | null | holmes/migrations/versions/17346cf564bc_renaming_delimiters_table_to_limiters.py | scorphus/holmes-api | 6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59 | [
"MIT"
] | null | null | null | """Renaming delimiters table to limiters
Revision ID: 17346cf564bc
Revises: 4d45dd3d8ce5
Create Date: 2014-03-07 14:45:27.909631
"""
# revision identifiers, used by Alembic.
revision = '17346cf564bc'
down_revision = '4d45dd3d8ce5'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.rename_table('... | 17.826087 | 45 | 0.746341 | 51 | 410 | 5.941176 | 0.666667 | 0.052805 | 0.085809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 0.143902 | 410 | 22 | 46 | 18.636364 | 0.726496 | 0.404878 | 0 | 0 | 0 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c57a6820227d81dfd0695cd710bf843bdda05869 | 530 | py | Python | src/algorithms/main/misce/count_list_elements.py | JoelGRod/Algorithms-py | 085dbf5d2d62adf41cfd59313827f83e2da6bc81 | [
"MIT"
] | null | null | null | src/algorithms/main/misce/count_list_elements.py | JoelGRod/Algorithms-py | 085dbf5d2d62adf41cfd59313827f83e2da6bc81 | [
"MIT"
] | null | null | null | src/algorithms/main/misce/count_list_elements.py | JoelGRod/Algorithms-py | 085dbf5d2d62adf41cfd59313827f83e2da6bc81 | [
"MIT"
] | null | null | null | import time
""" Count list elements
"""
def count_items(elements):
if elements == []: return 0
return 1 + count_items(elements[1:])
# Faster
def count_items_two(elements):
try: elements[1]
except: return 1
return 1 + count_items_two(elements[1:])
elements = [1,2,3,4,5,6,7,8,9,99]
start = time.p... | 22.083333 | 52 | 0.686792 | 84 | 530 | 4.178571 | 0.369048 | 0.17094 | 0.17094 | 0.179487 | 0.438746 | 0.438746 | 0.438746 | 0.239316 | 0.239316 | 0.239316 | 0 | 0.061674 | 0.143396 | 530 | 24 | 53 | 22.083333 | 0.711454 | 0.011321 | 0 | 0.266667 | 0 | 0 | 0.169355 | 0.084677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0.266667 | 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 |
c58452fef6e0d67804e4201b5227345aff058218 | 16,662 | py | Python | Scripts/FMaya.py | KhronosGroup/COLLADA-CTS | 61f2a560cbb2a06ee62da8025241f6b08d06bfd9 | [
"MIT"
] | 20 | 2015-03-19T08:02:57.000Z | 2020-10-16T15:16:11.000Z | Scripts/FMaya.py | Acidburn0zzz/COLLADA-CTS | 39a36188cf8710bbc003df43ed70b965eb4386bd | [
"MIT"
] | 4 | 2017-04-19T18:42:05.000Z | 2017-06-17T03:03:28.000Z | Scripts/FMaya.py | Acidburn0zzz/COLLADA-CTS | 39a36188cf8710bbc003df43ed70b965eb4386bd | [
"MIT"
] | 10 | 2015-03-26T02:52:24.000Z | 2022-02-24T08:43:48.000Z | # Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publis... | 44.790323 | 466 | 0.526167 | 1,429 | 16,662 | 5.953114 | 0.273618 | 0.016927 | 0.019043 | 0.020571 | 0.291642 | 0.252028 | 0.244034 | 0.201951 | 0.180087 | 0.159163 | 0 | 0.006041 | 0.344256 | 16,662 | 372 | 467 | 44.790323 | 0.772561 | 0.074961 | 0 | 0.238971 | 0 | 0 | 0.193902 | 0.003134 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066176 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c586ab7ed9d40b8a15e358157d1902fb84c56681 | 552 | py | Python | model-optimizer/extensions/front/mxnet/squeeze_ext.py | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | model-optimizer/extensions/front/mxnet/squeeze_ext.py | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | model-optimizer/extensions/front/mxnet/squeeze_ext.py | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.front.extractor import FrontExtractorOp
from mo.front.mxnet.extractors.utils import get_mxnet_layer_attrs
from mo.ops.squeeze import Squeeze
class SqueezeExtractor(FrontExtractorOp):
op = 'squeeze'
enabled = True
@... | 29.052632 | 107 | 0.740942 | 74 | 552 | 5.351351 | 0.662162 | 0.045455 | 0.055556 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023758 | 0.161232 | 552 | 18 | 108 | 30.666667 | 0.831533 | 0.139493 | 0 | 0 | 0 | 0 | 0.082627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c5911bdd6c26eb50724880136a90caf980deac40 | 34,409 | py | Python | scripts/velma_fake.py | dseredyn/velma_scripts | 26691f621ba0d4f771ddca6ecce0e49e5164123f | [
"BSD-3-Clause"
] | null | null | null | scripts/velma_fake.py | dseredyn/velma_scripts | 26691f621ba0d4f771ddca6ecce0e49e5164123f | [
"BSD-3-Clause"
] | null | null | null | scripts/velma_fake.py | dseredyn/velma_scripts | 26691f621ba0d4f771ddca6ecce0e49e5164123f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2014, Robot Control and Pattern Recognition Group, Warsaw University of Technology
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions o... | 48.259467 | 295 | 0.640181 | 4,760 | 34,409 | 4.360084 | 0.106513 | 0.010793 | 0.028332 | 0.027465 | 0.663005 | 0.589525 | 0.538065 | 0.496531 | 0.46155 | 0.444011 | 0 | 0.060714 | 0.241303 | 34,409 | 712 | 296 | 48.327247 | 0.734276 | 0.08181 | 0 | 0.391221 | 0 | 0 | 0.078582 | 0.044714 | 0 | 0 | 0 | 0.001404 | 0 | 0 | null | null | 0 | 0.043893 | null | null | 0.020992 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c592e9884e03a5c5d0fb297fe659a9b29ef5ebc1 | 5,197 | py | Python | lib/geventirc/handlers.py | ml31415/geventirc | 19ae7c0a0d9c0e1d5043a390e71282961ee2f8cd | [
"MIT"
] | null | null | null | lib/geventirc/handlers.py | ml31415/geventirc | 19ae7c0a0d9c0e1d5043a390e71282961ee2f8cd | [
"MIT"
] | null | null | null | lib/geventirc/handlers.py | ml31415/geventirc | 19ae7c0a0d9c0e1d5043a390e71282961ee2f8cd | [
"MIT"
] | null | null | null | import gevent
from geventirc import message
from geventirc import replycode
def ping_handler(client, msg):
client.send_message(message.Pong(client.nick))
def print_handler(client, msg):
print msg.encode()[:-2]
def log_handler(client, msg):
client.logger.debug("recv: " + msg.encode()[:-2])
def nick_in_u... | 27.94086 | 94 | 0.580142 | 581 | 5,197 | 4.993115 | 0.201377 | 0.049638 | 0.0586 | 0.074457 | 0.305757 | 0.252327 | 0.188211 | 0.161324 | 0.139262 | 0.139262 | 0 | 0.010241 | 0.304791 | 5,197 | 185 | 95 | 28.091892 | 0.792693 | 0.020396 | 0 | 0.299213 | 0 | 0 | 0.027174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047244 | 0.023622 | null | null | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c59765a253a8693d6b734148db9650d0543908f3 | 2,691 | py | Python | recipes/Python/161816_Enable_xmlrpclib_maintaJSP/recipe-161816.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/161816_Enable_xmlrpclib_maintaJSP/recipe-161816.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/161816_Enable_xmlrpclib_maintaJSP/recipe-161816.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | """A little Transport layer to maintain the JSESSIONID cookie that
Javaserver pages use to maintain a session. I'd like to use this
to make xmlrpclib session aware.
Sample usage:
server = Server("http://foobar.com/baz/servlet/xmlrpc.class")
print server.get_jsession_id();
print server.test.sayHello()
... | 28.03125 | 75 | 0.649201 | 307 | 2,691 | 5.456026 | 0.355049 | 0.04597 | 0.054328 | 0.039403 | 0.119403 | 0.081194 | 0.046567 | 0.046567 | 0 | 0 | 0 | 0.003935 | 0.244519 | 2,691 | 95 | 76 | 28.326316 | 0.81997 | 0.007804 | 0 | 0.074074 | 0 | 0 | 0.081567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5982593541c3403ab25d7d2f1953ed732b0b5f1 | 3,158 | py | Python | src/database.py | SlimeeGameS/VirginityBot | a1745893f21a16112bbf775fb2aff199c14dbbbb | [
"CC0-1.0"
] | null | null | null | src/database.py | SlimeeGameS/VirginityBot | a1745893f21a16112bbf775fb2aff199c14dbbbb | [
"CC0-1.0"
] | null | null | null | src/database.py | SlimeeGameS/VirginityBot | a1745893f21a16112bbf775fb2aff199c14dbbbb | [
"CC0-1.0"
] | null | null | null | import os
from datetime import datetime
from pony.orm import *
from dotenv import load_dotenv
load_dotenv()
POSTGRES_HOST = str(os.getenv('POSTGRES_HOST'))
POSTGRES_PORT = int(os.getenv('POSTGRES_PORT'))
POSTGRES_USER = str(os.getenv('POSTGRES_USER'))
POSTGRES_PASS = str(os.getenv('POSTGRES_PASSWORD'))
db = Databas... | 30.07619 | 147 | 0.747942 | 470 | 3,158 | 4.759574 | 0.204255 | 0.046938 | 0.048279 | 0.040232 | 0.499329 | 0.476084 | 0.44658 | 0.440322 | 0.35494 | 0.314707 | 0 | 0.004343 | 0.125079 | 3,158 | 104 | 148 | 30.365385 | 0.805284 | 0.018049 | 0 | 0.256757 | 0 | 0 | 0.054551 | 0.00807 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.135135 | false | 0.027027 | 0.054054 | 0.081081 | 0.513514 | 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 |
c59c9e4f36297af8f63a1a4ac54c4197153ecb58 | 554 | py | Python | setup.py | buremba/django-admin-tools | 60527f346e0aae2461d3ca001180ff59160d3d73 | [
"MIT"
] | 1 | 2020-05-25T20:28:45.000Z | 2020-05-25T20:28:45.000Z | setup.py | buremba/django-admin-tools | 60527f346e0aae2461d3ca001180ff59160d3d73 | [
"MIT"
] | 1 | 2015-06-18T16:52:29.000Z | 2015-06-24T13:04:29.000Z | setup.py | buremba/django-admin-tools | 60527f346e0aae2461d3ca001180ff59160d3d73 | [
"MIT"
] | null | null | null | # coding: utf-8
from setuptools import setup, find_packages
setup(name='django-admin-tools',
version='0.7',
description='A collection of tools for the django administration interface',
url='https://github.com/buremba/django_admin_tools',
author='Burak Emre Kabakcı',
long_description=open(... | 29.157895 | 82 | 0.658845 | 68 | 554 | 5.220588 | 0.779412 | 0.067606 | 0.090141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015982 | 0.209386 | 554 | 18 | 83 | 30.777778 | 0.794521 | 0.023466 | 0 | 0 | 0 | 0 | 0.35436 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5a775974397f81deba5a384aa7ed11d07103efa | 414 | py | Python | leave/migrations/0007_auto_20201002_1244.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | null | null | null | leave/migrations/0007_auto_20201002_1244.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | null | null | null | leave/migrations/0007_auto_20201002_1244.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | 1 | 2021-01-05T20:27:40.000Z | 2021-01-05T20:27:40.000Z | # Generated by Django 3.0.7 on 2020-10-02 09:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employees', '0006_statutorydeduction'),
('leave', '0006_auto_20201002_1241'),
]
operations = [
migrations.AlterUniqueTogether(
n... | 21.789474 | 57 | 0.613527 | 40 | 414 | 6.2 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114379 | 0.26087 | 414 | 18 | 58 | 23 | 0.696078 | 0.108696 | 0 | 0 | 1 | 0 | 0.242507 | 0.125341 | 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 |
c5acdc824ac9d24a73efad8c3070e597b1155267 | 1,419 | py | Python | satellite/ctx.py | aslepakurov/vgs-satellite | 9865a51a88987a32ea0ef89e7c39d2acea5f039a | [
"Apache-2.0"
] | 15 | 2020-06-03T07:31:22.000Z | 2021-11-03T19:30:47.000Z | satellite/ctx.py | aslepakurov/vgs-satellite | 9865a51a88987a32ea0ef89e7c39d2acea5f039a | [
"Apache-2.0"
] | 55 | 2020-07-14T23:51:02.000Z | 2022-03-25T19:12:02.000Z | satellite/ctx.py | aslepakurov/vgs-satellite | 9865a51a88987a32ea0ef89e7c39d2acea5f039a | [
"Apache-2.0"
] | 17 | 2020-03-23T23:12:43.000Z | 2022-02-19T15:46:21.000Z | from contextlib import contextmanager
from dataclasses import dataclass
from typing import Type
from mitmproxy.http import HTTPFlow
from .db.models.route import Route
from .proxy import ProxyMode
from .routes import Phase
@dataclass
class Context:
pass
@dataclass
class ProxyContext(Context):
mode: ProxyMo... | 18.428571 | 75 | 0.735729 | 174 | 1,419 | 5.810345 | 0.293103 | 0.138477 | 0.050445 | 0.037587 | 0.118694 | 0.063304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 1,419 | 76 | 76 | 18.671053 | 0.875325 | 0 | 0 | 0.125 | 0 | 0 | 0.057082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0.041667 | 0.145833 | 0.083333 | 0.583333 | 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 |
c5b5ca64b252cc8d1a9bdb6a132c2c0da8fc722f | 5,048 | py | Python | django/boss/settings/base.py | ArnaudGallardo/boss | c0d3bbca31575ac5442822b8d7f962def32d9072 | [
"Apache-2.0"
] | null | null | null | django/boss/settings/base.py | ArnaudGallardo/boss | c0d3bbca31575ac5442822b8d7f962def32d9072 | [
"Apache-2.0"
] | null | null | null | django/boss/settings/base.py | ArnaudGallardo/boss | c0d3bbca31575ac5442822b8d7f962def32d9072 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | 30.047619 | 91 | 0.732369 | 638 | 5,048 | 5.700627 | 0.46395 | 0.046467 | 0.036294 | 0.041243 | 0.135001 | 0.126203 | 0.100907 | 0.100907 | 0.047292 | 0 | 0 | 0.024437 | 0.165016 | 5,048 | 167 | 92 | 30.227545 | 0.838434 | 0.37817 | 0 | 0 | 0 | 0 | 0.513836 | 0.412375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0375 | 0 | 0.0375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5b976aee7071374dfcdd0ccca1d327dbacaf8a8 | 7,418 | py | Python | bane/info_s.py | GiulioCocconi/bane | 8b0b3b8e0a1f590a33d72b0441a8831e7db1a732 | [
"MIT"
] | null | null | null | bane/info_s.py | GiulioCocconi/bane | 8b0b3b8e0a1f590a33d72b0441a8831e7db1a732 | [
"MIT"
] | null | null | null | bane/info_s.py | GiulioCocconi/bane | 8b0b3b8e0a1f590a33d72b0441a8831e7db1a732 | [
"MIT"
] | null | null | null | import requests,urllib,socket,random,time,re,threading,sys,whois,json,os,xtelnet
import bs4
from bs4 import BeautifulSoup
from bane.payloads import *
if os.path.isdir('/data/data/com.termux/')==False:
import dns.resolver
def get_banner(u,p=23,timeout=3,payload=None):
try:
return xtelnet.get_banner(u,p=p,timeout=... | 28.098485 | 171 | 0.628876 | 1,153 | 7,418 | 4.013877 | 0.239376 | 0.015557 | 0.016854 | 0.028522 | 0.252377 | 0.17675 | 0.145635 | 0.098531 | 0.098531 | 0.080812 | 0 | 0.02303 | 0.180507 | 7,418 | 263 | 172 | 28.205323 | 0.738279 | 0.17161 | 0 | 0.387255 | 0 | 0 | 0.133038 | 0.003897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.053922 | 0.02451 | 0 | 0.171569 | 0.02451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c5b9925ed7029f2aaa65a788fe830d4fb65006c6 | 7,309 | py | Python | tests/test_tweetstream.py | CrowdScores/tweetstream-requests | 8f83b61e3c6b6efacfd51d28a9fc08618f42c9a1 | [
"BSD-3-Clause"
] | 1 | 2016-01-05T15:18:48.000Z | 2016-01-05T15:18:48.000Z | tests/test_tweetstream.py | CrowdScores/tweetstream-requests | 8f83b61e3c6b6efacfd51d28a9fc08618f42c9a1 | [
"BSD-3-Clause"
] | null | null | null | tests/test_tweetstream.py | CrowdScores/tweetstream-requests | 8f83b61e3c6b6efacfd51d28a9fc08618f42c9a1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import pytest
from pytest import raises
slow = pytest.mark.slow
from tweetstream import (
SampleStream, FilterStream, ConnectionError, AuthenticationError,
EnhanceYourCalmError, ReconnectExponentiallyError, FatalError,
)
from server... | 37.101523 | 1,439 | 0.648789 | 907 | 7,309 | 5.121279 | 0.37376 | 0.034446 | 0.039182 | 0.023251 | 0.288482 | 0.272766 | 0.261141 | 0.236598 | 0.22605 | 0.204521 | 0 | 0.030987 | 0.236147 | 7,309 | 196 | 1,440 | 37.290816 | 0.801003 | 0.158572 | 0 | 0.462121 | 0 | 0.007576 | 0.283528 | 0.188251 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.121212 | false | 0.037879 | 0.045455 | 0 | 0.181818 | 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 |
c5c9bf63072b44be9dfab32943c0c92ee51a6d85 | 2,150 | py | Python | tests/bugs/core_6144_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_6144_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_6144_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_6144
# title: Inconsistent behaviour of the NEW context variable in AFTER UPDATE OR DELETE triggers
# decription:
# Confirmed problem on: 4.0.0.1607, 3.0.5.33171 and 2.5.9.27143: new.v was assigned to 1 in AD trigger.
# Checked on:
... | 28.666667 | 121 | 0.624651 | 329 | 2,150 | 3.905775 | 0.370821 | 0.028016 | 0.014008 | 0.025681 | 0.231128 | 0.16965 | 0.094942 | 0 | 0 | 0 | 0 | 0.06611 | 0.275349 | 2,150 | 74 | 122 | 29.054054 | 0.758665 | 0.27814 | 0 | 0.27907 | 0 | 0.023256 | 0.683181 | 0.074967 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.069767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5cb6ae076eae534cf9a04ceb490d82512ffedeb | 1,939 | py | Python | control/go_straight.py | pravinas/et-maslab-2016 | d666e126881130658130df5ba97831d9a1869b9e | [
"MIT"
] | null | null | null | control/go_straight.py | pravinas/et-maslab-2016 | d666e126881130658130df5ba97831d9a1869b9e | [
"MIT"
] | null | null | null | control/go_straight.py | pravinas/et-maslab-2016 | d666e126881130658130df5ba97831d9a1869b9e | [
"MIT"
] | null | null | null | #Go_straight.py
class GoStraight():
## Initialize a Go_straight object.
#
# @param left A Motor representing the left motor.
# @param right A Motor representing the right motor.
# @param timer A Timer for moderating data taking.
def __init__(self, left, right, timer):
self.leftMoto... | 31.274194 | 84 | 0.575039 | 248 | 1,939 | 4.46371 | 0.395161 | 0.081301 | 0.03794 | 0.03794 | 0.063234 | 0.063234 | 0.063234 | 0.063234 | 0.063234 | 0 | 0 | 0.026275 | 0.332646 | 1,939 | 61 | 85 | 31.786885 | 0.829212 | 0.381124 | 0 | 0.192308 | 0 | 0 | 0.015319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5d7fdbbdba1abb091eaf0acc07372cae109f08a | 290 | py | Python | nodux_stock_one/config/nodux_stock_one.py | tatiqm25/nodux_stock_one | 78bcfd33b8ec89e2f7399dff55bb597cc52be2c0 | [
"MIT"
] | null | null | null | nodux_stock_one/config/nodux_stock_one.py | tatiqm25/nodux_stock_one | 78bcfd33b8ec89e2f7399dff55bb597cc52be2c0 | [
"MIT"
] | null | null | null | nodux_stock_one/config/nodux_stock_one.py | tatiqm25/nodux_stock_one | 78bcfd33b8ec89e2f7399dff55bb597cc52be2c0 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Reporte Stock"),
"icon": "fa fa-star",
"items": [
{
"type": "report",
"name": "Stock",
"doctype": "Stock One",
"is_query_report": True
}
]
}
]
| 15.263158 | 39 | 0.544828 | 31 | 290 | 4.774194 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282759 | 290 | 18 | 40 | 16.111111 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.117647 | 0.058824 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5e56267c5d51543b0874d07c08daaacb7f2c354 | 874 | py | Python | 1701-1800/1715-Three Equal Parts/1715-Three Equal Parts.py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 1701-1800/1715-Three Equal Parts/1715-Three Equal Parts.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 1701-1800/1715-Three Equal Parts/1715-Three Equal Parts.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution:
"""
@param A: an array
@return: divide the array into 3 non-empty parts
"""
def threeEqualParts(self, A):
total = A.count(1)
if total == 0:
return [0, 2]
if total % 3:
return [-1, -1]
k = total // 3
count = ... | 25.705882 | 60 | 0.343249 | 99 | 874 | 3.030303 | 0.373737 | 0.06 | 0.053333 | 0.073333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.546911 | 874 | 33 | 61 | 26.484848 | 0.70202 | 0.076659 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5e9ae3e22c7088f64dc43810458494c4758ea08 | 262 | py | Python | IRs/admin.py | ttrung149/reslife-portal | a00fa917d0e7adfdcfff8fc244dcc5727e97153d | [
"MIT"
] | null | null | null | IRs/admin.py | ttrung149/reslife-portal | a00fa917d0e7adfdcfff8fc244dcc5727e97153d | [
"MIT"
] | 9 | 2020-06-05T21:26:21.000Z | 2022-03-11T23:50:10.000Z | IRs/admin.py | ttrung149/reslife-portal | a00fa917d0e7adfdcfff8fc244dcc5727e97153d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import IR
# Register your models here.
class IRAdmin(admin.ModelAdmin):
list_display = ('title', 'author', 'date_posted')
list_filter = ('title', 'date_posted', 'author')
admin.site.register(IR, IRAdmin)
| 21.833333 | 53 | 0.717557 | 34 | 262 | 5.411765 | 0.617647 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148855 | 262 | 11 | 54 | 23.818182 | 0.825112 | 0.099237 | 0 | 0 | 0 | 0 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c5ee49002c14cbcad10664e7ea6bb109a17ed6a3 | 420 | py | Python | restaurants/migrations/0002_auto_20201229_0321.py | arcanemachine/menu-maker | c675dff5f04cde9924095d953bd7d7ad554d659d | [
"CC-BY-4.0"
] | 2 | 2022-02-14T15:21:02.000Z | 2022-02-15T06:20:48.000Z | restaurants/migrations/0002_auto_20201229_0321.py | arcanemachine/Menu-Maker | c675dff5f04cde9924095d953bd7d7ad554d659d | [
"CC-BY-4.0"
] | 1 | 2022-03-13T06:02:48.000Z | 2022-03-28T12:58:47.000Z | restaurants/migrations/0002_auto_20201229_0321.py | arcanemachine/django-menu-maker | 665b815c7255b756725d08bf3f66f144407b83d8 | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-29 03:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0001_squashed_0018_auto_20201228_2009'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
... | 22.105263 | 65 | 0.62381 | 46 | 420 | 5.543478 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123377 | 0.266667 | 420 | 18 | 66 | 23.333333 | 0.704545 | 0.107143 | 0 | 0 | 1 | 0 | 0.16622 | 0.099196 | 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 |
c5ee8bd3eb79302f6f9ae0f7443192415e407400 | 2,752 | py | Python | 2016/day10/day10.py | arink/advent-of-code | 319c4c11b9c09422e61120e898e63320d38f774b | [
"MIT"
] | null | null | null | 2016/day10/day10.py | arink/advent-of-code | 319c4c11b9c09422e61120e898e63320d38f774b | [
"MIT"
] | null | null | null | 2016/day10/day10.py | arink/advent-of-code | 319c4c11b9c09422e61120e898e63320d38f774b | [
"MIT"
] | null | null | null | """AoC Day 10
Usage:
day10.py <filename>
day10.py (-h | --help)
day10.py --version
Options:
-h --help Show this screen.
--version Show version.
"""
from docopt import docopt
from collections import defaultdict
class Instruction:
def __init__(self, from_bot, low_type, low_id, high_type, high_i... | 27.52 | 99 | 0.567951 | 348 | 2,752 | 4.301724 | 0.221264 | 0.03006 | 0.03006 | 0.024048 | 0.237141 | 0.098864 | 0 | 0 | 0 | 0 | 0 | 0.01512 | 0.303052 | 2,752 | 99 | 100 | 27.79798 | 0.765381 | 0 | 0 | 0.173913 | 0 | 0 | 0.021672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028986 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5f0803abd148008631c12ed43dd21d7a81c2bdb | 1,898 | py | Python | savReaderWriter/unit_tests/test_SavWriter_ioLocale.py | eawag-rdm/savReaderWriter | e766a38e20c09eb565ccfbe9064a7c557cc66baa | [
"MIT"
] | null | null | null | savReaderWriter/unit_tests/test_SavWriter_ioLocale.py | eawag-rdm/savReaderWriter | e766a38e20c09eb565ccfbe9064a7c557cc66baa | [
"MIT"
] | null | null | null | savReaderWriter/unit_tests/test_SavWriter_ioLocale.py | eawag-rdm/savReaderWriter | e766a38e20c09eb565ccfbe9064a7c557cc66baa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import os
import sys
import tempfile
import locale
from savReaderWriter import *
# I had to generate a German locale with the (Windows) codepage 1252 on my
# Linux machine first
# http://documentation.basis.com/BASISHelp/WebHelp/inst/character_encoding.ht... | 31.633333 | 78 | 0.643836 | 212 | 1,898 | 5.650943 | 0.5 | 0.013356 | 0.070117 | 0.076795 | 0.223706 | 0.1202 | 0.1202 | 0.1202 | 0.1202 | 0.1202 | 0 | 0.016878 | 0.25079 | 1,898 | 59 | 79 | 32.169492 | 0.825598 | 0.17176 | 0 | 0.261905 | 1 | 0 | 0.072983 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 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 |
c5f7f213ab25f5c5e8e5d2646542f30653d58c94 | 611 | py | Python | app/home/forms.py | fadebowaley/HrDeploy | 046fcca5c2b0d507d4762f99a9da9a5a11784ae2 | [
"MIT"
] | null | null | null | app/home/forms.py | fadebowaley/HrDeploy | 046fcca5c2b0d507d4762f99a9da9a5a11784ae2 | [
"MIT"
] | null | null | null | app/home/forms.py | fadebowaley/HrDeploy | 046fcca5c2b0d507d4762f99a9da9a5a11784ae2 | [
"MIT"
] | null | null | null | #from flask import Flask, render_template
#from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import Form, FieldList, FormField, IntegerField, StringField, \
SubmitField
class LapForm(Form):
"""Subform.
CSRF is disabled for this subform (using `Form` as parent class) ... | 25.458333 | 76 | 0.689034 | 72 | 611 | 5.75 | 0.625 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.222586 | 611 | 23 | 77 | 26.565217 | 0.865263 | 0.387889 | 0 | 0 | 0 | 0 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c5fba5583f3f505e60c0b622cf3acae041178545 | 1,321 | py | Python | src/python/grapl-tests-common/grapl_tests_common/dump_dynamodb.py | msilvey/grapl | 142dc8068d7955e3e4d24221aa94c236745d5faa | [
"Apache-2.0"
] | null | null | null | src/python/grapl-tests-common/grapl_tests_common/dump_dynamodb.py | msilvey/grapl | 142dc8068d7955e3e4d24221aa94c236745d5faa | [
"Apache-2.0"
] | null | null | null | src/python/grapl-tests-common/grapl_tests_common/dump_dynamodb.py | msilvey/grapl | 142dc8068d7955e3e4d24221aa94c236745d5faa | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import logging
import os
from pathlib import Path
from pprint import pformat as pretty_format
from typing import TYPE_CHECKING, Any, Optional
import boto3 # type: ignore
from grapl_common.env_helpers import DynamoDBResourceFactory
if TYPE_CHECKING:
from mypy_boto3_dynamodb.ser... | 30.022727 | 81 | 0.706283 | 174 | 1,321 | 5.201149 | 0.454023 | 0.039779 | 0.024309 | 0.041989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.20969 | 1,321 | 43 | 82 | 30.72093 | 0.863985 | 0.120363 | 0 | 0 | 0 | 0 | 0.088441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.310345 | 0 | 0.448276 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
680119496662ab6deb14dcab60fdee290512d1c9 | 4,945 | py | Python | tests/test_rpms.py | xsuchy/modulemd | d9b4752abe79fd1476e4284c4c62e2dc16ab0e94 | [
"MIT"
] | null | null | null | tests/test_rpms.py | xsuchy/modulemd | d9b4752abe79fd1476e4284c4c62e2dc16ab0e94 | [
"MIT"
] | null | null | null | tests/test_rpms.py | xsuchy/modulemd | d9b4752abe79fd1476e4284c4c62e2dc16ab0e94 | [
"MIT"
] | null | null | null | #/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Red Hat, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
... | 36.62963 | 88 | 0.653994 | 611 | 4,945 | 5.175123 | 0.288052 | 0.092979 | 0.079696 | 0.073055 | 0.36401 | 0.241619 | 0.144845 | 0.144845 | 0.084124 | 0 | 0 | 0.001799 | 0.213145 | 4,945 | 134 | 89 | 36.902985 | 0.810846 | 0.229727 | 0 | 0.174419 | 0 | 0 | 0.134971 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 1 | 0.209302 | false | 0 | 0.046512 | 0 | 0.267442 | 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 |
68019b0102a8cc2332f7a9a4fceb31dee8086213 | 581 | py | Python | cli/dcoscli/util.py | ArmandGrillet/dcos-cli | 94fb9b5ffd1c4412b7f3e42ab6e07998e0de07d2 | [
"Apache-2.0",
"MIT"
] | null | null | null | cli/dcoscli/util.py | ArmandGrillet/dcos-cli | 94fb9b5ffd1c4412b7f3e42ab6e07998e0de07d2 | [
"Apache-2.0",
"MIT"
] | null | null | null | cli/dcoscli/util.py | ArmandGrillet/dcos-cli | 94fb9b5ffd1c4412b7f3e42ab6e07998e0de07d2 | [
"Apache-2.0",
"MIT"
] | null | null | null | from functools import wraps
import docopt
from dcos import emitting
emitter = emitting.FlatEmitter()
def decorate_docopt_usage(func):
"""Handle DocoptExit exception
:param func: function
:type func: function
:return: wrapped function
:rtype: function
"""
@wraps(func)
def wrapper(*... | 20.034483 | 55 | 0.624785 | 63 | 581 | 5.730159 | 0.571429 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.289157 | 581 | 28 | 56 | 20.75 | 0.871671 | 0.196213 | 0 | 0 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.533333 | 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 |
680afd208cb9e42fb6646884233ac5a54410f676 | 1,057 | py | Python | optionstrader/script.py | Zaitsev11/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 6 | 2018-04-26T03:02:04.000Z | 2022-02-26T04:58:53.000Z | optionstrader/script.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | null | null | null | optionstrader/script.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 5 | 2019-12-01T08:09:08.000Z | 2021-11-28T03:43:24.000Z | # TODO
# Fix the importing
# import CustomName
# ...
# obj = CustomName()
# obj.account.get_balance()
# obj.parser.extract_symbols()
import __init__
from __init__ import Account
from __init__ import Webservice
from __init__ import Database
from __init__ import Parser
import sys, json
if __name__ == "__main__":
#... | 22.978261 | 53 | 0.647114 | 126 | 1,057 | 5.02381 | 0.404762 | 0.085308 | 0.086888 | 0.060032 | 0.322275 | 0.246446 | 0.246446 | 0.135861 | 0 | 0 | 0 | 0 | 0.244087 | 1,057 | 45 | 54 | 23.488889 | 0.79224 | 0.214759 | 0 | 0.166667 | 0 | 0 | 0.086797 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
680c3fd85f293280d4f2652bf1add7d4aca3bddd | 23,999 | py | Python | main.py | ErikVillarreal-bit/Rutas_V2 | be476f692d6ff854d7964250473bb8b25bcddf32 | [
"W3C"
] | 1 | 2021-12-18T00:49:11.000Z | 2021-12-18T00:49:11.000Z | main.py | ErikVillarreal-bit/Rutas_V2 | be476f692d6ff854d7964250473bb8b25bcddf32 | [
"W3C"
] | null | null | null | main.py | ErikVillarreal-bit/Rutas_V2 | be476f692d6ff854d7964250473bb8b25bcddf32 | [
"W3C"
] | null | null | null | from tkinter import *
from tkinter import ttk
import random
from typing_extensions import Self
from tkinter import messagebox as MessageBox
import pymysql.cursors
class Vertice:
"""Clase que define los vértices de los gráficas"""
def __init__(self, i):
"""Método que inicializa el vértice ... | 39.865449 | 150 | 0.558273 | 2,859 | 23,999 | 4.665617 | 0.144106 | 0.035685 | 0.019792 | 0.034635 | 0.403329 | 0.36412 | 0.315991 | 0.203838 | 0.186671 | 0.148887 | 0 | 0.01995 | 0.319097 | 23,999 | 601 | 151 | 39.93178 | 0.796157 | 0.118422 | 0 | 0.257403 | 0 | 0 | 0.107329 | 0.004187 | 0 | 0 | 0 | 0.016639 | 0 | 1 | 0.059226 | false | 0.002278 | 0.013667 | 0 | 0.095672 | 0.018223 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
68158d9cda7e6db113691fcc2a0a5c07b13184a2 | 779 | py | Python | api_demo/login.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | api_demo/login.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | api_demo/login.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | #
# Copyright (C) Analytics Engines 2021
# Alastair McKinley (a.mckinley@analyticsengines.com)
#
import pandas as pd
import streamlit as st
st.set_page_config(layout="wide")
import requests
import streamlit_bd_cytoscapejs
from common import login,init_state,base_url,format_request,local_css
init_state(['jwt','login_r... | 23.606061 | 70 | 0.771502 | 117 | 779 | 4.948718 | 0.57265 | 0.051813 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007052 | 0.089859 | 779 | 33 | 71 | 23.606061 | 0.809591 | 0.112965 | 0 | 0 | 0 | 0 | 0.225619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.277778 | 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 |
681708eedc590989d8fdd33d36406d0b5a67e284 | 1,441 | py | Python | tests/imageToDataTest3.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | 1 | 2015-11-06T06:41:33.000Z | 2015-11-06T06:41:33.000Z | tests/imageToDataTest3.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | tests/imageToDataTest3.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | import os
import time
import numpy as np
from armor import pattern
dbz = pattern.DBZ
dp = pattern.dp
plt = pattern.plt
folder = dp.defaultImageDataFolder + 'charts2-allinone-/'
outputFolder = dp.root + 'labLogs2/charts2_extracted/'
try:
os.makedirs(outputFolder)
except:
print outputFolder, 'exists'
N = 300... | 22.873016 | 61 | 0.611381 | 226 | 1,441 | 3.893805 | 0.429204 | 0.011364 | 0.013636 | 0.020455 | 0.093182 | 0.025 | 0.025 | 0 | 0 | 0 | 0 | 0.033275 | 0.207495 | 1,441 | 62 | 62 | 23.241935 | 0.737303 | 0.062457 | 0 | 0.056604 | 0 | 0 | 0.119012 | 0.041168 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6819d998c5b8e57f46e216f8d752442cfee743ed | 627 | py | Python | post-hoc/information_content_per_position/find_consensus_seqs.py | minjunp/MuSeAM | 42efc3a279b28f665d6fac74918bd2bd3795c5ea | [
"Apache-2.0"
] | null | null | null | post-hoc/information_content_per_position/find_consensus_seqs.py | minjunp/MuSeAM | 42efc3a279b28f665d6fac74918bd2bd3795c5ea | [
"Apache-2.0"
] | null | null | null | post-hoc/information_content_per_position/find_consensus_seqs.py | minjunp/MuSeAM | 42efc3a279b28f665d6fac74918bd2bd3795c5ea | [
"Apache-2.0"
] | null | null | null | import math
import numpy as np
from scipy import stats
import sys
def compute_entropy(motif_matrix):
motif_matrix = np.array(motif_matrix)
sum_m = np.sum(motif_matrix, axis = 1)
normalized_motif = np.divide(motif_matrix, sum_m[:, None])
motif_matrix = normalized_motif
r, c = motif_matrix.shape
assert c == 4
... | 23.222222 | 130 | 0.634769 | 128 | 627 | 2.976563 | 0.351563 | 0.230971 | 0.031496 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 0.183413 | 627 | 26 | 131 | 24.115385 | 0.611328 | 0.250399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 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 |
a83ee9316df29e1f8e77e41d2b1dce7f19255e17 | 1,228 | py | Python | virtool/caches/models.py | virtool/virtool | ec639c3bf41e0477447b87fbbab435c6a3b42f98 | [
"MIT"
] | 39 | 2016-10-31T23:28:59.000Z | 2022-01-15T00:00:42.000Z | virtool/caches/models.py | virtool/virtool | ec639c3bf41e0477447b87fbbab435c6a3b42f98 | [
"MIT"
] | 1,690 | 2017-02-07T23:39:48.000Z | 2022-03-31T22:30:44.000Z | virtool/caches/models.py | virtool/virtool | ec639c3bf41e0477447b87fbbab435c6a3b42f98 | [
"MIT"
] | 25 | 2017-02-08T18:25:31.000Z | 2021-09-20T22:55:25.000Z | from sqlalchemy import Column, DateTime, Enum, Integer, String
from sqlalchemy.sql.schema import UniqueConstraint
from virtool.pg.base import Base
from virtool.samples.models import ArtifactType
class SampleArtifactCache(Base):
"""
SQL model to store a cached sample artifact
"""
__tablename__ = "sa... | 28.55814 | 65 | 0.708469 | 143 | 1,228 | 5.881119 | 0.34965 | 0.11415 | 0.142687 | 0.178359 | 0.485137 | 0.439952 | 0.439952 | 0.356718 | 0.242568 | 0.242568 | 0 | 0.001996 | 0.184039 | 1,228 | 42 | 66 | 29.238095 | 0.837325 | 0.071661 | 0 | 0.4 | 0 | 0 | 0.059621 | 0.019874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a83f8dc9aeffae25fb833b41abd61d219a4ad1e1 | 11,348 | py | Python | pydfs_lineup_optimizer/settings.py | fuadahwal/optimum | c35b5e51f09eaf1667b36cc338c949d825d83358 | [
"MIT"
] | null | null | null | pydfs_lineup_optimizer/settings.py | fuadahwal/optimum | c35b5e51f09eaf1667b36cc338c949d825d83358 | [
"MIT"
] | null | null | null | pydfs_lineup_optimizer/settings.py | fuadahwal/optimum | c35b5e51f09eaf1667b36cc338c949d825d83358 | [
"MIT"
] | null | null | null | """
Store classes with settings for specified daily fantasy sports site and kind of sport.
"""
from abc import ABCMeta, abstractmethod
from collections import namedtuple
import csv
from .player import Player
LineupPosition = namedtuple('LineupPosition', ['name', 'positions'])
class BaseSettings(object):
__metac... | 30.836957 | 95 | 0.506345 | 969 | 11,348 | 5.873065 | 0.149639 | 0.038658 | 0.03936 | 0.068529 | 0.769461 | 0.674925 | 0.671411 | 0.627482 | 0.61114 | 0.569496 | 0 | 0.013402 | 0.303049 | 11,348 | 367 | 96 | 30.920981 | 0.706158 | 0.017007 | 0 | 0.753289 | 0 | 0 | 0.075763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019737 | false | 0 | 0.013158 | 0.006579 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8408d25e1003016a0730d381b18b4e438bf02d7 | 370 | py | Python | src/PyMud/Systems/AVEventCleaner.py | NichCritic/pymud | 583ec16f5a75dc7b45146564b39851291dc07b6c | [
"MIT"
] | null | null | null | src/PyMud/Systems/AVEventCleaner.py | NichCritic/pymud | 583ec16f5a75dc7b45146564b39851291dc07b6c | [
"MIT"
] | null | null | null | src/PyMud/Systems/AVEventCleaner.py | NichCritic/pymud | 583ec16f5a75dc7b45146564b39851291dc07b6c | [
"MIT"
] | null | null | null | from Systems.system import System
class AVEventCleaner(System):
manditory = ['av_events']
def process(self):
for node in self.get_nodes():
events = node.av_events.events
node.av_events.events[:] = [e for e in events if not e.handled]
if not node.av_events.events:
... | 28.461538 | 75 | 0.624324 | 49 | 370 | 4.571429 | 0.469388 | 0.178571 | 0.160714 | 0.241071 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278378 | 370 | 12 | 76 | 30.833333 | 0.838951 | 0 | 0 | 0 | 0 | 0 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a847e18cb941f3a439725515bf908a238718ce70 | 2,062 | py | Python | aestate/work/Config.py | canotf/aestate | e95580a8042103d0762b3edff8774b51908dcc72 | [
"Apache-2.0"
] | null | null | null | aestate/work/Config.py | canotf/aestate | e95580a8042103d0762b3edff8774b51908dcc72 | [
"Apache-2.0"
] | null | null | null | aestate/work/Config.py | canotf/aestate | e95580a8042103d0762b3edff8774b51908dcc72 | [
"Apache-2.0"
] | null | null | null | from aestate.ajson import aj
from aestate.exception import FieldNotExist
from aestate.util.Log import ALog
from aestate.dbs import _mysql
from aestate.dbs import _mssql
from aestate.work.Adapter import LanguageAdapter
DB_KWARGS = {
'pymysql': _mysql,
'pymssql': _mssql
}
class MySqlConfig(_mysql.ParseUtil):
... | 22.659341 | 96 | 0.530553 | 217 | 2,062 | 4.870968 | 0.43318 | 0.062441 | 0.02649 | 0.037843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001533 | 0.367119 | 2,062 | 90 | 97 | 22.911111 | 0.808429 | 0.21872 | 0 | 0 | 0 | 0 | 0.063602 | 0.017625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.205882 | 0 | 0.558824 | 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 |
a848a2ee6200e5727855a82af77b37856697cf54 | 452 | py | Python | clients/python/db/drop_tables.py | cdrappi/caucus | 742e95906d0fda375f72bb8db15e359893a4d675 | [
"Apache-2.0"
] | 1 | 2020-02-08T03:52:00.000Z | 2020-02-08T03:52:00.000Z | clients/python/db/drop_tables.py | cdrappi/caucus | 742e95906d0fda375f72bb8db15e359893a4d675 | [
"Apache-2.0"
] | 4 | 2021-03-10T06:58:04.000Z | 2022-02-26T23:22:51.000Z | clients/python/db/drop_tables.py | cdrappi/caucus | 742e95906d0fda375f72bb8db15e359893a4d675 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from db.pgdb import Pgdb
import os
pgdb = Pgdb(autocommit=True)
pgdb.execute_sql("""
DO $$ DECLARE
tabname RECORD;
BEGIN
FOR tabname IN (SELECT tablename
FROM pg_tables
WHERE schemaname = current_schema()... | 20.545455 | 88 | 0.570796 | 52 | 452 | 4.884615 | 0.769231 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.327434 | 452 | 21 | 89 | 21.52381 | 0.832237 | 0.075221 | 0 | 0 | 0 | 0 | 0.771635 | 0.072115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a84a86c45e8c867a2641d4abc431740926285023 | 1,210 | py | Python | study_algorithm/python/Linked List/Cycle Check.py | AlphaSunny/study | 4e65127fefa9078b7ae6b9db92369c93e61e4327 | [
"MIT"
] | null | null | null | study_algorithm/python/Linked List/Cycle Check.py | AlphaSunny/study | 4e65127fefa9078b7ae6b9db92369c93e61e4327 | [
"MIT"
] | null | null | null | study_algorithm/python/Linked List/Cycle Check.py | AlphaSunny/study | 4e65127fefa9078b7ae6b9db92369c93e61e4327 | [
"MIT"
] | null | null | null | class Node(object):
def __init__(self,value):
self.value = value
self.nextnode = None
def cycle_check(node):
# Begin both markers at the first node
marker1 = node
marker2 = node
# Go until end of list
while marker2 != None and marker2.next... | 18.059701 | 58 | 0.563636 | 156 | 1,210 | 4.314103 | 0.455128 | 0.049034 | 0.041605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020126 | 0.342975 | 1,210 | 67 | 59 | 18.059701 | 0.826415 | 0.173554 | 0 | 0 | 0 | 0 | 0.024166 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | null | null | 0.03125 | 0.03125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8537d74d4f0b1248d8ad6274a04135700bbc9c6 | 2,730 | py | Python | survey-crop/hough_cross.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | 4 | 2020-04-28T12:54:46.000Z | 2020-12-20T20:02:15.000Z | survey-crop/hough_cross.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | null | null | null | survey-crop/hough_cross.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | 1 | 2018-11-14T13:29:34.000Z | 2018-11-14T13:29:34.000Z | import math
import numpy as np
from scipy.signal import convolve2d
from skimage.morphology import dilation, disk
def generate_cross(size, lw):
assert size % 2 == 1
center = math.floor(size/2.)
cross = np.zeros([size, size])
cross[center, :] = np.ones(size)
cross[:, center] = np.ones(size)
... | 28.736842 | 118 | 0.606227 | 376 | 2,730 | 4.281915 | 0.218085 | 0.062112 | 0.047205 | 0.031677 | 0.293168 | 0.224845 | 0.196273 | 0.196273 | 0.196273 | 0.196273 | 0 | 0.016734 | 0.277656 | 2,730 | 94 | 119 | 29.042553 | 0.799696 | 0 | 0 | 0.1875 | 1 | 0 | 0.001467 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.09375 | false | 0 | 0.109375 | 0.015625 | 0.296875 | 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 |
a854f2170137070632d6fd576faafaf8989765a7 | 22,527 | py | Python | nobuild/data/python/orb/orb.py | jreyes1108/antelope_contrib | be2354605d8463d6067029eb16464a0bf432a41b | [
"BSD-2-Clause",
"MIT"
] | 30 | 2015-02-20T21:44:29.000Z | 2021-09-27T02:53:14.000Z | nobuild/data/python/orb/orb.py | jreyes1108/antelope_contrib | be2354605d8463d6067029eb16464a0bf432a41b | [
"BSD-2-Clause",
"MIT"
] | 14 | 2015-07-07T19:17:24.000Z | 2020-12-19T19:18:53.000Z | nobuild/data/python/orb/orb.py | jreyes1108/antelope_contrib | be2354605d8463d6067029eb16464a0bf432a41b | [
"BSD-2-Clause",
"MIT"
] | 46 | 2015-02-06T16:22:41.000Z | 2022-03-30T11:46:37.000Z | #
# Copyright (c) 2007-2010 Lindquist Consulting, Inc.
# All rights reserved.
#
# Written by Dr. Kent Lindquist, Lindquist Consulting, Inc.
#
# This software is licensed under the New BSD license:
#
# Redistribution and use in source and ... | 25.254484 | 90 | 0.584809 | 2,476 | 22,527 | 5.197092 | 0.150646 | 0.093565 | 0.139882 | 0.081831 | 0.61618 | 0.507771 | 0.375505 | 0.359807 | 0.334473 | 0.312714 | 0 | 0.007278 | 0.298619 | 22,527 | 891 | 91 | 25.282828 | 0.807152 | 0.077818 | 0 | 0.415138 | 0 | 0 | 0.058805 | 0.002524 | 0 | 0 | 0 | 0 | 0.208716 | 0 | null | null | 0 | 0.011468 | 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 |
a8585d73cff24fcba6d37f1bf5c4c92ab37834f3 | 318 | py | Python | BruteForceLetter.py | jkohhokj/AutoCrack | ddef5af1b1e0e8c40324cbe7714e134e3fbae47c | [
"CC-BY-4.0"
] | null | null | null | BruteForceLetter.py | jkohhokj/AutoCrack | ddef5af1b1e0e8c40324cbe7714e134e3fbae47c | [
"CC-BY-4.0"
] | null | null | null | BruteForceLetter.py | jkohhokj/AutoCrack | ddef5af1b1e0e8c40324cbe7714e134e3fbae47c | [
"CC-BY-4.0"
] | null | null | null | import string
from datetime import datetime
def bruteForceLetter(length, beg=""):
oldBeg = beg.upper()
if length != 1:
for x in string.ascii_uppercase:
yield from bruteForceLetter(length-1, beg=oldBeg+x)
else:
for x in string.ascii_uppercase:
yield oldBeg+x | 31.8 | 64 | 0.632075 | 40 | 318 | 4.975 | 0.475 | 0.221106 | 0.060302 | 0.120603 | 0.311558 | 0.311558 | 0.311558 | 0 | 0 | 0 | 0 | 0.008811 | 0.286164 | 318 | 10 | 65 | 31.8 | 0.867841 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 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 |
a85adeae4423c371acd6bc98865ab0917cb30ed3 | 19,605 | py | Python | Coursework.py | RyanJones11/csws-coursework | 927765dd27e270e647415f1583f8cf37dc12d556 | [
"Apache-2.0"
] | 2 | 2022-02-22T13:48:22.000Z | 2022-02-23T00:53:22.000Z | Coursework.py | RyanJones11/csws-coursework | 927765dd27e270e647415f1583f8cf37dc12d556 | [
"Apache-2.0"
] | null | null | null | Coursework.py | RyanJones11/csws-coursework | 927765dd27e270e647415f1583f8cf37dc12d556 | [
"Apache-2.0"
] | 1 | 2022-03-29T11:55:07.000Z | 2022-03-29T11:55:07.000Z | import pandas as pd
import csv
import math
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
#################################################################
# #
# #
# ... | 41.801706 | 319 | 0.533792 | 1,986 | 19,605 | 5.260322 | 0.140987 | 0.024122 | 0.036853 | 0.018953 | 0.510003 | 0.494687 | 0.451709 | 0.439456 | 0.439456 | 0.423184 | 0 | 0.008939 | 0.320939 | 19,605 | 468 | 320 | 41.891026 | 0.775783 | 0.259781 | 0 | 0.284672 | 0 | 0.00365 | 0.072808 | 0.010327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065693 | false | 0.080292 | 0.018248 | 0 | 0.087591 | 0.10219 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a85b2935ab1e21783eb3a71bf7104fc4cc8ac01b | 1,004 | py | Python | build/lib/test/components.py | hwengineer/rf_linkbudget | a0349f7df7c444fe0e1d0a40624ac9bf010dcbb5 | [
"MIT"
] | 2 | 2020-01-03T06:36:19.000Z | 2020-01-09T13:40:13.000Z | test/components.py | hwengineer/rf_linkbudget | a0349f7df7c444fe0e1d0a40624ac9bf010dcbb5 | [
"MIT"
] | null | null | null | test/components.py | hwengineer/rf_linkbudget | a0349f7df7c444fe0e1d0a40624ac9bf010dcbb5 | [
"MIT"
] | 1 | 2020-01-03T06:36:14.000Z | 2020-01-03T06:36:14.000Z | import unittest
import numpy as np
import rf_linkbudget as rf
class TestComponents(unittest.TestCase):
def setUp(self):
rf.Circuit("CircuitName")
def test_createAmplifier(self):
rf.Amplifier("name",
Gain=[(0, 10)],
NF=0.5, OP1dB=25, OIP3=35)
def... | 21.826087 | 47 | 0.520916 | 120 | 1,004 | 4.191667 | 0.358333 | 0.107356 | 0.137177 | 0.119284 | 0.180915 | 0.135189 | 0.135189 | 0.135189 | 0.135189 | 0.135189 | 0 | 0.04893 | 0.348606 | 1,004 | 45 | 48 | 22.311111 | 0.720183 | 0 | 0 | 0.09375 | 0 | 0 | 0.052789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.09375 | 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 |
a85f1c281651ab4733f8691c97166f5daa79755d | 1,705 | py | Python | pointpats/window.py | jGaboardi/pointpats | 9a09bd7ff2c3b5402f02a0a54175193cb643edd8 | [
"BSD-3-Clause"
] | null | null | null | pointpats/window.py | jGaboardi/pointpats | 9a09bd7ff2c3b5402f02a0a54175193cb643edd8 | [
"BSD-3-Clause"
] | 1 | 2020-07-17T13:48:48.000Z | 2020-07-17T13:48:48.000Z | pointpats/window.py | jGaboardi/pointpats | 9a09bd7ff2c3b5402f02a0a54175193cb643edd8 | [
"BSD-3-Clause"
] | 1 | 2020-07-04T17:50:12.000Z | 2020-07-04T17:50:12.000Z | """
Window class for point patterns
"""
__author__ = "Serge Rey sjsrey@gmail.com"
import libpysal as ps
import numpy as np
__all__ = ["as_window", "poly_from_bbox", "to_ccf", "Window"]
def poly_from_bbox(bbox):
l, b, r, t = bbox
c = [(l, b), (l, t), (r, t), (r, b), (l, b)]
return ps.cg.shapes.Polygon(c)... | 23.680556 | 79 | 0.61173 | 224 | 1,705 | 4.491071 | 0.366071 | 0.071571 | 0.053678 | 0.047714 | 0.172962 | 0.067594 | 0.067594 | 0 | 0 | 0 | 0 | 0.002425 | 0.274487 | 1,705 | 71 | 80 | 24.014085 | 0.810833 | 0.405279 | 0 | 0.08 | 0 | 0 | 0.067853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.08 | 0.04 | 0.52 | 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 |
a85fc836985b1f9fe0dccfd5de5551f76704103d | 717 | py | Python | lbry/wallet/server/db/canonical.py | snapperVibes/lbry-sdk | 77a51d1ad43404e5dc52af715a7bebfaeb3fee16 | [
"MIT"
] | 2 | 2020-03-25T09:56:58.000Z | 2020-03-25T09:56:59.000Z | lbry/wallet/server/db/canonical.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | lbry/wallet/server/db/canonical.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | class FindShortestID:
__slots__ = 'short_id', 'new_id'
def __init__(self):
self.short_id = ''
self.new_id = None
def step(self, other_id, new_id):
self.new_id = new_id
for i in range(len(self.new_id)):
if other_id[i] != self.new_id[i]:
if i > len... | 26.555556 | 80 | 0.589958 | 94 | 717 | 4.212766 | 0.340426 | 0.10101 | 0.138889 | 0.083333 | 0.10101 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.297071 | 717 | 26 | 81 | 27.576923 | 0.779762 | 0 | 0 | 0 | 0 | 0 | 0.036262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8628aa861ad3cab2bb0288683e49db5b430012a | 1,547 | py | Python | gt_mesh_gif_creator.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | gt_mesh_gif_creator.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | gt_mesh_gif_creator.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | # from __future__ import print_function
import meshio
import math, sys, random, argparse, json, os, tempfile, pickle
import shutil
import subprocess
import os
import numpy as np
import time
# import bpy
from subprocess import Popen, PIPE
import shlex
import sys
import imageio
import ipdb
st = ipdb.set_trace
import ima... | 35.159091 | 177 | 0.723335 | 211 | 1,547 | 5.161137 | 0.473934 | 0.041322 | 0.052342 | 0.07438 | 0.055096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061894 | 0.133161 | 1,547 | 44 | 178 | 35.159091 | 0.750186 | 0.140918 | 0 | 0.057143 | 0 | 0.028571 | 0.315193 | 0.182918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.371429 | 0 | 0.371429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a862c63ae9a81f2411ac8fb551b25804229b2f6c | 1,161 | py | Python | load_MNIST.py | kaixinhuaihuai/ufldl_tutorial | 8e4a6724342dfd4cd3a8211f60b6ef9a4137e5ce | [
"MIT"
] | 595 | 2015-01-06T06:59:39.000Z | 2022-03-30T11:56:56.000Z | load_MNIST.py | 493238731/ufldl_tutorial | 8e4a6724342dfd4cd3a8211f60b6ef9a4137e5ce | [
"MIT"
] | 8 | 2015-02-23T23:41:21.000Z | 2018-12-11T15:53:22.000Z | load_MNIST.py | 493238731/ufldl_tutorial | 8e4a6724342dfd4cd3a8211f60b6ef9a4137e5ce | [
"MIT"
] | 334 | 2015-01-05T01:39:15.000Z | 2021-12-21T10:19:55.000Z | import numpy as np
def load_MNIST_images(filename):
"""
returns a 28x28x[number of MNIST images] matrix containing
the raw MNIST images
:param filename: input data file
"""
with open(filename, "r") as f:
magic = np.fromfile(f, dtype=np.dtype('>i4'), count=1)
num_images = np.fr... | 27.642857 | 78 | 0.61671 | 167 | 1,161 | 4.221557 | 0.275449 | 0.113475 | 0.124823 | 0.18156 | 0.533333 | 0.451064 | 0.351773 | 0.351773 | 0.351773 | 0.26383 | 0 | 0.025143 | 0.246339 | 1,161 | 42 | 79 | 27.642857 | 0.780571 | 0.206718 | 0 | 0.210526 | 0 | 0 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a86387f7ea8408692268cba702068e00e52aee9e | 462 | py | Python | curso em video/python/mundo 1/ex023.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | curso em video/python/mundo 1/ex023.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | curso em video/python/mundo 1/ex023.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | # x=frase[0]
# y=frase[1]
# z=frase[2]
# w=frase[3]
# print('seu numero: {} \nTem como unidade:{}\nDezena:{} \ncentena:{} \nmilhar:{}'.format(frase,w,z,y,x))
num: int = int(input('digite um numero: '))
u = num % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print('analisando o numero {} '.format(num))
... | 28.875 | 105 | 0.597403 | 79 | 462 | 3.493671 | 0.481013 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053708 | 0.15368 | 462 | 15 | 106 | 30.8 | 0.652174 | 0.318182 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a86481e4f8848c97ac9e81a7658bc68758490832 | 6,091 | py | Python | fox.cub.utils/mlp_tools/settings.py | yaroslav-dudar/fox.cub | 852cabae05a27d442a728fc4015dfe66ea8479d6 | [
"Apache-2.0"
] | 1 | 2020-03-22T01:51:13.000Z | 2020-03-22T01:51:13.000Z | fox.cub.utils/mlp_tools/settings.py | yaroslav-dudar/fox.cub | 852cabae05a27d442a728fc4015dfe66ea8479d6 | [
"Apache-2.0"
] | 9 | 2018-06-23T07:01:04.000Z | 2022-03-02T14:57:57.000Z | fox.cub.utils/mlp_tools/settings.py | yaroslav-dudar/fox.cub | 852cabae05a27d442a728fc4015dfe66ea8479d6 | [
"Apache-2.0"
] | null | null | null | from dataset import (
DatasetAggregator,
EObservationDataset,
ObservationDataset,
FeatureDataset,
BaseDataset,
ModelType)
EPL = [DatasetAggregator(ObservationDataset('leagues/epl.json'))]
MLS = [DatasetAggregator(ObservationDataset('leagues/mls.json'))]
CHAMPIONSHIP = [DatasetAggregator(Observa... | 35.412791 | 87 | 0.662945 | 509 | 6,091 | 7.793713 | 0.153242 | 0.291152 | 0.076632 | 0.104865 | 0.486766 | 0.318629 | 0.217293 | 0.173683 | 0.160827 | 0.160827 | 0 | 0.007684 | 0.209489 | 6,091 | 171 | 88 | 35.619883 | 0.816199 | 0 | 0 | 0.262195 | 0 | 0 | 0.241011 | 0.16155 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006098 | 0 | 0.006098 | 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 |
a86940a9d61f7018bda82bdf058353807e8b01f7 | 6,274 | py | Python | pixelcnn/pixelcnn_pp.py | kngwyu/pytorch-pixelcnn | e59585d5d533de77c7b51a8e822da0264f2b56e5 | [
"Apache-2.0"
] | 1 | 2021-07-13T10:15:46.000Z | 2021-07-13T10:15:46.000Z | pixelcnn/pixelcnn_pp.py | kngwyu/pytorch-pixelcnn | e59585d5d533de77c7b51a8e822da0264f2b56e5 | [
"Apache-2.0"
] | null | null | null | pixelcnn/pixelcnn_pp.py | kngwyu/pytorch-pixelcnn | e59585d5d533de77c7b51a8e822da0264f2b56e5 | [
"Apache-2.0"
] | null | null | null | from functools import partial
import torch
from torch import nn, Tensor
from typing import Callable, List, Tuple
from .layers import ConcatELU, Conv1x1, DownShiftedConv2d, DownShiftedDeconv2d, GatedResNet
from .utils import down_shift, right_shift
class UpLayer(nn.Module):
def __init__(
self,
... | 35.647727 | 97 | 0.56503 | 733 | 6,274 | 4.578445 | 0.163711 | 0.02503 | 0.026818 | 0.034863 | 0.499702 | 0.423719 | 0.403159 | 0.387366 | 0.326579 | 0.311383 | 0 | 0.019562 | 0.323717 | 6,274 | 175 | 98 | 35.851429 | 0.771388 | 0.007332 | 0 | 0.419355 | 0 | 0 | 0.006303 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 1 | 0.03871 | false | 0.083871 | 0.03871 | 0 | 0.109677 | 0.006452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a86b4164bd32c858f7fe9b107a86dac227f1f5ab | 82,213 | py | Python | tests/test_configuration.py | TurboGears/tg2 | f40a82d016d70ce560002593b4bb8f83b57f87b3 | [
"MIT"
] | 812 | 2015-01-16T22:57:52.000Z | 2022-03-27T04:49:40.000Z | tests/test_configuration.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 74 | 2015-02-18T17:55:31.000Z | 2021-12-13T10:41:08.000Z | tests/test_configuration.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 72 | 2015-06-10T06:02:45.000Z | 2022-03-27T08:37:24.000Z | """
Testing for TG2 Configuration
"""
from nose import SkipTest
from nose.tools import eq_, raises
import sys, os
from datetime import datetime
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from sqlalchemy.engine import Engine
from ming import Session
from ming.orm import ThreadLocal... | 34.616 | 121 | 0.60426 | 8,211 | 82,213 | 5.855072 | 0.074656 | 0.026791 | 0.022194 | 0.028081 | 0.735003 | 0.700765 | 0.676013 | 0.650075 | 0.619145 | 0.598989 | 0 | 0.007127 | 0.293433 | 82,213 | 2,374 | 122 | 34.630581 | 0.8205 | 0.009281 | 0 | 0.693206 | 0 | 0 | 0.099306 | 0.019311 | 0 | 0 | 0 | 0 | 0.104565 | 1 | 0.146497 | false | 0.0138 | 0.028662 | 0.035563 | 0.295648 | 0.004777 | 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 |
a87142a66c2454de899c4d4ca7511fbe29a50eb0 | 12,898 | py | Python | vaws/model/debris.py | GeoscienceAustralia/vaws | 19b31e2402f7d5ad4cbec864523567d7bc46720e | [
"Apache-2.0"
] | 6 | 2018-06-02T04:39:34.000Z | 2021-11-12T12:07:04.000Z | vaws/model/debris.py | GeoscienceAustralia/vaws | 19b31e2402f7d5ad4cbec864523567d7bc46720e | [
"Apache-2.0"
] | null | null | null | vaws/model/debris.py | GeoscienceAustralia/vaws | 19b31e2402f7d5ad4cbec864523567d7bc46720e | [
"Apache-2.0"
] | null | null | null | """
Debris Module - adapted from JDH Consulting and Martin's work
- An instance of Debris class represents a debris item
- generate sources of debris.
- generate debris items from those sources.
- track items and sample target collisions.
- handle collisions (impact)
"""
import logging
import nump... | 33.67624 | 94 | 0.574275 | 1,580 | 12,898 | 4.459494 | 0.174684 | 0.024837 | 0.022992 | 0.014192 | 0.297474 | 0.237156 | 0.209622 | 0.195004 | 0.180954 | 0.180954 | 0 | 0.012479 | 0.341448 | 12,898 | 382 | 95 | 33.764398 | 0.817047 | 0.230036 | 0 | 0.230337 | 1 | 0 | 0.027924 | 0.00257 | 0 | 0 | 0 | 0.002618 | 0.011236 | 1 | 0.08427 | false | 0 | 0.033708 | 0.011236 | 0.191011 | 0.033708 | 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 |
a873f6919318ef14510f76fdd243515fff296fcf | 3,349 | py | Python | warehouse/packaging/search.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2019-01-31T02:44:40.000Z | 2019-01-31T02:44:40.000Z | warehouse/packaging/search.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2016-09-14T00:57:23.000Z | 2016-09-14T00:57:23.000Z | warehouse/packaging/search.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2019-01-31T02:44:30.000Z | 2019-01-31T02:44:30.000Z | # Copyright 2013 Donald Stufft
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 33.49 | 78 | 0.426396 | 279 | 3,349 | 5.043011 | 0.476703 | 0.10661 | 0.018479 | 0.022743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007016 | 0.446701 | 3,349 | 99 | 79 | 33.828283 | 0.752294 | 0.184234 | 0 | 0.112676 | 0 | 0 | 0.172376 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.070423 | false | 0 | 0.014085 | 0.042254 | 0.183099 | 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 |
a8742b9c4b98c769261b14f2d73eb4831e2ed368 | 1,006 | py | Python | larndsim/consts/light.py | peter-madigan/larnd-sim | ae3b25f25d2dc686677bdb7017013ada1ced81c9 | [
"Apache-2.0"
] | 2 | 2021-11-04T18:09:16.000Z | 2021-12-27T12:34:05.000Z | larndsim/consts/light.py | peter-madigan/larnd-sim | ae3b25f25d2dc686677bdb7017013ada1ced81c9 | [
"Apache-2.0"
] | 22 | 2021-01-20T17:41:12.000Z | 2022-03-31T20:18:41.000Z | larndsim/consts/light.py | peter-madigan/larnd-sim | ae3b25f25d2dc686677bdb7017013ada1ced81c9 | [
"Apache-2.0"
] | 10 | 2021-02-17T19:37:42.000Z | 2022-02-10T16:55:19.000Z | """
Sets ligth-related constants
"""
import yaml
import numpy as np
LUT_VOX_DIV = np.zeros(0)
N_OP_CHANNEL = 0
LIGHT_SIMULATED = True
OP_CHANNEL_EFFICIENCY = np.zeros(0)
#: Prescale factor analogous to ScintPreScale in LArSoft FIXME
SCINT_PRESCALE = 1
#: Ion + excitation work function in `MeV`
W_PH = 19.5e-6 # MeV
de... | 26.473684 | 74 | 0.717694 | 142 | 1,006 | 4.84507 | 0.471831 | 0.104651 | 0.052326 | 0.031977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010013 | 0.205765 | 1,006 | 38 | 75 | 26.473684 | 0.851064 | 0.310139 | 0 | 0 | 0 | 0 | 0.066971 | 0.031963 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 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 |
a87fbd4358e5fddb47974c1d077f3f440840ed4d | 2,700 | py | Python | sistema_operacional.py | JorgeMGuimaraes/escalonador | 9e034f29ae18a3e8f942276d6f067623395b11c0 | [
"MIT"
] | 1 | 2021-09-21T03:06:20.000Z | 2021-09-21T03:06:20.000Z | sistema_operacional.py | JorgeMGuimaraes/escalonador | 9e034f29ae18a3e8f942276d6f067623395b11c0 | [
"MIT"
] | null | null | null | sistema_operacional.py | JorgeMGuimaraes/escalonador | 9e034f29ae18a3e8f942276d6f067623395b11c0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
## imports
import io
from escalonador import Escalonador
from processo import Processo
from recursos import Recursos
from typing import List
## classes
## definicoes
def processa_entrada(quantum: int) -> List[Processo]:
filename ='entrada'
contador_processos... | 34.177215 | 90 | 0.554815 | 235 | 2,700 | 6.191489 | 0.412766 | 0.057732 | 0.030241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010995 | 0.36 | 2,700 | 78 | 91 | 34.615385 | 0.831019 | 0.034815 | 0 | 0.030769 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.046154 | false | 0 | 0.076923 | 0 | 0.169231 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a88059aa4103c5bf19f17b471e27a689119233ab | 903 | py | Python | examples/geojson.py | Yook74/dash-extensions | 81deee5949dc495eb5a23d3f142ca403f1c0adb5 | [
"MIT"
] | 250 | 2020-04-02T18:12:12.000Z | 2022-03-28T10:55:03.000Z | examples/geojson.py | Yook74/dash-extensions | 81deee5949dc495eb5a23d3f142ca403f1c0adb5 | [
"MIT"
] | 99 | 2020-06-18T11:03:08.000Z | 2022-03-29T05:01:09.000Z | examples/geojson.py | Yook74/dash-extensions | 81deee5949dc495eb5a23d3f142ca403f1c0adb5 | [
"MIT"
] | 40 | 2020-05-03T06:54:33.000Z | 2022-02-25T21:40:20.000Z | import dash
import dash_html_components as html
import json
import dash_leaflet as dl
from examples import geojson_csf
from dash_extensions.transpile import inject_js, module_to_props
# Create geojson.
with open("assets/us-states.json", 'r') as f:
data = json.load(f)
js = module_to_props(geojson_csf) # do transc... | 37.625 | 103 | 0.710963 | 130 | 903 | 4.738462 | 0.569231 | 0.064935 | 0.032468 | 0.048701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.155039 | 903 | 23 | 104 | 39.26087 | 0.788991 | 0.129568 | 0 | 0 | 0 | 0 | 0.103713 | 0.026889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 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 |
a8835d6029e7a679cb679aa59918407de798e136 | 3,017 | py | Python | gui/puzzlerepresentation/valuetriangle.py | JoostvanPinxten/ConstraintPuzzler | 7d3c4033b260057a46f9e27165b2ffdb5c9751ec | [
"MIT"
] | null | null | null | gui/puzzlerepresentation/valuetriangle.py | JoostvanPinxten/ConstraintPuzzler | 7d3c4033b260057a46f9e27165b2ffdb5c9751ec | [
"MIT"
] | null | null | null | gui/puzzlerepresentation/valuetriangle.py | JoostvanPinxten/ConstraintPuzzler | 7d3c4033b260057a46f9e27165b2ffdb5c9751ec | [
"MIT"
] | null | null | null | '''
Created on 6 jan. 2013
@author: Juice
'''
from PySide import QtGui, QtCore
from math import *
def centerTextItem(text):
form = QtGui.QTextBlockFormat()
form.setAlignment(QtCore.Qt.AlignCenter)
cursor = text.textCursor()
cursor.select(QtGui.QTextCursor.Document)
cursor.mergeBlockFormat(form)
... | 38.189873 | 139 | 0.668213 | 322 | 3,017 | 6.236025 | 0.372671 | 0.095618 | 0.047809 | 0.035857 | 0.161355 | 0.161355 | 0.125498 | 0.088645 | 0.088645 | 0.088645 | 0 | 0.012085 | 0.232019 | 3,017 | 79 | 140 | 38.189873 | 0.854553 | 0.110706 | 0 | 0.127273 | 0 | 0 | 0.003744 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.090909 | false | 0.036364 | 0.036364 | 0.018182 | 0.236364 | 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 |
a8895c34b6f4982125bb78d7a977ec1c0685cd3f | 7,861 | py | Python | scout/constants/acmg.py | szilvajuhos/scout | 2f4a03fb3192a57c99fd62be626e8c22051e81af | [
"BSD-3-Clause"
] | 1 | 2019-08-17T21:20:04.000Z | 2019-08-17T21:20:04.000Z | scout/constants/acmg.py | szilvajuhos/scout | 2f4a03fb3192a57c99fd62be626e8c22051e81af | [
"BSD-3-Clause"
] | null | null | null | scout/constants/acmg.py | szilvajuhos/scout | 2f4a03fb3192a57c99fd62be626e8c22051e81af | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import OrderedDict
# from worst to most certain benign
ACMG_MAP = OrderedDict([
(4, 'pathogenic'),
(3, 'likely_pathogenic'),
(0, 'uncertain_significance'),
(2, 'likely_benign'),
(1, 'benign'),
])
REV_ACMG_MAP = OrderedDict([(value, key) for key, value in AC... | 44.412429 | 227 | 0.603358 | 846 | 7,861 | 5.58156 | 0.368794 | 0.006353 | 0.019272 | 0.016942 | 0.211563 | 0.18022 | 0.148031 | 0.121982 | 0.121982 | 0.097416 | 0 | 0.007209 | 0.276555 | 7,861 | 176 | 228 | 44.664773 | 0.823105 | 0.006997 | 0 | 0.281437 | 0 | 0.095808 | 0.646546 | 0.005639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017964 | 0 | 0.017964 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a88a75be8f3d5f5accac2ef77c8941476c4a6dca | 185 | py | Python | ICPC_Mirrors/Nitc_9.0/nwerc2019all/disposableswitches/generators/uniform_tree.py | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | ICPC_Mirrors/Nitc_9.0/nwerc2019all/disposableswitches/generators/uniform_tree.py | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | ICPC_Mirrors/Nitc_9.0/nwerc2019all/disposableswitches/generators/uniform_tree.py | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import random
from lib import *
seed(sys.argv[-1])
n = int(sys.argv[1])
graph = random_tree_uniform(n)
output_graph(n, with_random_weights(graph))
| 14.230769 | 43 | 0.735135 | 32 | 185 | 4.09375 | 0.625 | 0.10687 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.124324 | 185 | 12 | 44 | 15.416667 | 0.790123 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a88e844197a3f2fab279a323db19e11eea7421f6 | 450 | py | Python | blousebrothers/catalogue/migrations/0011_product_for_sale.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/catalogue/migrations/0011_product_for_sale.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/catalogue/migrations/0011_product_for_sale.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-31 15:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0010_product_conf'),
]
operations = [
migrations.AddField(
... | 21.428571 | 53 | 0.615556 | 49 | 450 | 5.469388 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.266667 | 450 | 20 | 54 | 22.5 | 0.751515 | 0.148889 | 0 | 0 | 1 | 0 | 0.107895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a88ee9315952e08d727232bf55b53e215566a389 | 5,720 | py | Python | yarn/PhilReinholdPygrape/cuda_l1_wvd.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | 1 | 2020-07-09T13:31:21.000Z | 2020-07-09T13:31:21.000Z | yarn/PhilReinholdPygrape/cuda_l1_wvd.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | null | null | null | yarn/PhilReinholdPygrape/cuda_l1_wvd.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | null | null | null | import pycuda.autoinit
import pycuda.driver as drv
import numpy as np
from pycuda.compiler import SourceModule
import time
src = """
#if %(use_double)d
#define FLOAT double
#define IFLOAT unsigned long long int
#define F2I __double_as_longlong
#define I2F __longlong_as_double
#else
#define FLOAT float
#define IFLOAT u... | 29.637306 | 95 | 0.558566 | 829 | 5,720 | 3.669481 | 0.224367 | 0.031558 | 0.017751 | 0.00789 | 0.102564 | 0.102564 | 0.102564 | 0.102564 | 0.102564 | 0.061801 | 0 | 0.018727 | 0.299825 | 5,720 | 192 | 96 | 29.791667 | 0.740824 | 0 | 0 | 0.114943 | 0 | 0 | 0.640909 | 0.043007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.034483 | 0 | 0.063218 | 0.04023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a892b1ed4dbf8b8c3bc259fa5237414b47d31de4 | 3,762 | py | Python | qt_dialog/src/test_audio.py | AIRobolab-unilu/qt-dialog | d6a7538458f56efc6b8005f8611c9a28b1f2c25d | [
"MIT"
] | null | null | null | qt_dialog/src/test_audio.py | AIRobolab-unilu/qt-dialog | d6a7538458f56efc6b8005f8611c9a28b1f2c25d | [
"MIT"
] | null | null | null | qt_dialog/src/test_audio.py | AIRobolab-unilu/qt-dialog | d6a7538458f56efc6b8005f8611c9a28b1f2c25d | [
"MIT"
] | 1 | 2018-07-24T09:15:06.000Z | 2018-07-24T09:15:06.000Z | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | 33.589286 | 108 | 0.656034 | 481 | 3,762 | 5.10395 | 0.442827 | 0.03666 | 0.021181 | 0.01833 | 0.14664 | 0.098574 | 0.055397 | 0.055397 | 0.055397 | 0.055397 | 0 | 0.009366 | 0.262095 | 3,762 | 111 | 109 | 33.891892 | 0.875 | 0.452419 | 0 | 0.148148 | 0 | 0 | 0.038006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | 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 |
a893d174e4339789352a221e7fd35c138c6ae3ab | 460 | py | Python | Chapter04/cnn/basic_conv2d_ex2.py | PacktPublishing/Neural-Network-Programming-with-TensorFlow | 6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0 | [
"MIT"
] | 26 | 2017-11-17T18:56:16.000Z | 2022-03-03T13:25:44.000Z | Chapter04/cnn/basic_conv2d_ex2.py | PacktPublishing/Neural-Network-Programming-with-TensorFlow | 6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0 | [
"MIT"
] | 2 | 2021-08-25T14:50:10.000Z | 2022-02-09T23:30:51.000Z | Chapter04/cnn/basic_conv2d_ex2.py | PacktPublishing/Neural-Network-Programming-with-TensorFlow | 6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0 | [
"MIT"
] | 22 | 2017-11-16T05:16:38.000Z | 2022-01-03T20:10:04.000Z | import tensorflow as tf
k = tf.constant([
[1, 0, 1],
[2, 1, 0],
[0, 0, 1]
], dtype=tf.float32, name='k')
i = tf.constant([
[4, 3, 1, 0],
[2, 1, 0, 1],
[1, 2, 4, 1],
[3, 1, 0, 2]
], dtype=tf.float32, name='i')
kernel = tf.reshape(k, [3, 3, 1, 1], name='kernel')
image = tf.reshape(i, [1, 4, 4... | 24.210526 | 68 | 0.519565 | 87 | 460 | 2.747126 | 0.321839 | 0.041841 | 0.025105 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11831 | 0.228261 | 460 | 18 | 69 | 25.555556 | 0.55493 | 0 | 0 | 0 | 0 | 0 | 0.03913 | 0 | 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 |
a894d8f5d6a70b034aa7c4cd41513a063334ec9a | 19,495 | py | Python | TopQuarkAnalysis/TopPairBSM/test/anaTrain_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | TopQuarkAnalysis/TopPairBSM/test/anaTrain_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | TopQuarkAnalysis/TopPairBSM/test/anaTrain_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | # As of 1 Feb 2017:
# This configuration appears to be already broken. It
# fails to even run only under python.
# For this reason, it was not converted to use Tasks.
# If it is ever fixed, it will also need to be migrated
# to use Tasks to run unscheduled modules.
## import skeleton process
from PhysicsTools.PatAlgos... | 39.94877 | 166 | 0.577943 | 1,399 | 19,495 | 7.92995 | 0.321658 | 0.030737 | 0.018028 | 0.02614 | 0.365873 | 0.348567 | 0.327114 | 0.321165 | 0.299712 | 0.299712 | 0 | 0.017419 | 0.231393 | 19,495 | 487 | 167 | 40.030801 | 0.722971 | 0.146089 | 0 | 0.41003 | 0 | 0.00885 | 0.361354 | 0.200828 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038348 | null | null | 0.00295 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a89695f7ebdbc4be08c35552aa90e0900a8a289c | 682 | py | Python | myapp/config.py | RichardMM/testazure | 049354b2e3fce29cfa100be277b7a6ca9a8e3144 | [
"Apache-2.0"
] | null | null | null | myapp/config.py | RichardMM/testazure | 049354b2e3fce29cfa100be277b7a6ca9a8e3144 | [
"Apache-2.0"
] | null | null | null | myapp/config.py | RichardMM/testazure | 049354b2e3fce29cfa100be277b7a6ca9a8e3144 | [
"Apache-2.0"
] | null | null | null | TEMPLATES_AUTO_RELOAD = True
SECRET_KEY = '£$%^HJGE97655@~?><XGHWEDI7974'
DEBUG = False
##mails
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = 'rmachaz@gmail.com'
MAIL_DEFAULT_SENDER = 'rmachaz@gmail.com'
MAIL_PASSWORD = '684192684192'
## databases
SQLALCHEMY_DATABASE_URI = 'mysq... | 27.28 | 158 | 0.739003 | 83 | 682 | 5.855422 | 0.783133 | 0.049383 | 0.074074 | 0.078189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 0.11437 | 682 | 24 | 159 | 28.416667 | 0.72351 | 0.222874 | 0 | 0 | 0 | 0.083333 | 0.461538 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a89b8a4abcd463b473a47b6d0df27692605666d5 | 665 | py | Python | exercicios/lista2/exercicio-04.py | oliveiralenon/ser-347 | 43dca0c704d3d4599d0b10cd7c998c861626f422 | [
"MIT"
] | null | null | null | exercicios/lista2/exercicio-04.py | oliveiralenon/ser-347 | 43dca0c704d3d4599d0b10cd7c998c861626f422 | [
"MIT"
] | null | null | null | exercicios/lista2/exercicio-04.py | oliveiralenon/ser-347 | 43dca0c704d3d4599d0b10cd7c998c861626f422 | [
"MIT"
] | null | null | null | from math import radians, cos, sin, asin, sqrt
r = 6371
print('-------Calculadora de distância entre duas coordenadas-------\n')
print('Primeira coordenada')
lat1 = radians(float(input('Digite a latitude em graus decimais: ')))
long1 = radians(float(input('Digite a longitude em graus decimais: ')))
print('Segunda co... | 41.5625 | 130 | 0.673684 | 93 | 665 | 4.817204 | 0.430108 | 0.107143 | 0.151786 | 0.205357 | 0.424107 | 0.424107 | 0.424107 | 0.424107 | 0.424107 | 0 | 0 | 0.033217 | 0.13985 | 665 | 16 | 131 | 41.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.448949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.363636 | 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 |
a89f090292614440ccfa4abeae7cdbc4c5a45ef2 | 687 | py | Python | fileuploads/migrations/0010_auto_20160605_2219.py | fr33ky/signalserver | ce360cd89732c9d9270d7af04e38e55f6570d6a7 | [
"MIT"
] | 23 | 2016-03-24T00:31:47.000Z | 2022-02-10T21:27:53.000Z | fileuploads/migrations/0010_auto_20160605_2219.py | fr33ky/signalserver | ce360cd89732c9d9270d7af04e38e55f6570d6a7 | [
"MIT"
] | 148 | 2016-04-03T00:22:55.000Z | 2020-08-01T20:08:03.000Z | fileuploads/migrations/0010_auto_20160605_2219.py | fr33ky/signalserver | ce360cd89732c9d9270d7af04e38e55f6570d6a7 | [
"MIT"
] | 11 | 2016-04-24T03:31:31.000Z | 2019-09-03T16:51:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.dev20160107235441 on 2016-06-05 22:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fileuploads', '0009_result_row'),
]
operations = [
migratio... | 26.423077 | 81 | 0.621543 | 75 | 687 | 5.48 | 0.626667 | 0.097324 | 0.121655 | 0.141119 | 0.472019 | 0.472019 | 0.296837 | 0.296837 | 0.296837 | 0.296837 | 0 | 0.079051 | 0.263464 | 687 | 25 | 82 | 27.48 | 0.733202 | 0.122271 | 0 | 0.444444 | 1 | 0 | 0.098333 | 0 | 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 |
a8ad320a62fb901c26445887b287945edf22a5a5 | 881 | py | Python | Time/datatime.py | hhyluor/code_repository | cfa5ec9dab2437dd3896e58549489b2820eff30e | [
"MIT"
] | null | null | null | Time/datatime.py | hhyluor/code_repository | cfa5ec9dab2437dd3896e58549489b2820eff30e | [
"MIT"
] | null | null | null | Time/datatime.py | hhyluor/code_repository | cfa5ec9dab2437dd3896e58549489b2820eff30e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from datetime import datetime
import json
from datetime import timedelta
# 获取日期在一年中的第几周
def get_week(date):
if pd.to_datetime(str(date.year)+"-01-01").weekday() == 0:
return int(datetime.strftime(date, "%W"))
else:
return int(datetime.strftime(date, "%W"))... | 22.589744 | 66 | 0.651532 | 123 | 881 | 4.601626 | 0.317073 | 0.09894 | 0.077739 | 0.079505 | 0.484099 | 0.45053 | 0.310954 | 0.310954 | 0.310954 | 0.183746 | 0 | 0.026573 | 0.188422 | 881 | 38 | 67 | 23.184211 | 0.765035 | 0.060159 | 0 | 0.333333 | 0 | 0 | 0.058323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.208333 | 0 | 0.583333 | 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 |
a8c68a2f30645632fce0178b45a370f596b9f22f | 4,201 | py | Python | mini_xray_thermometer.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | null | null | null | mini_xray_thermometer.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | null | null | null | mini_xray_thermometer.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T20:21:32.000Z | 2021-03-08T20:21:32.000Z | import dxtbx
import numpy as np
from scipy.ndimage.filters import median_filter
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
from scitbx.matrix import sqr, col
import scitbx.matrix as matrix
import subprocess
from itertools import islice
import pandas
import StringIO
import numpy as np
from... | 29.584507 | 122 | 0.675553 | 671 | 4,201 | 4.086438 | 0.269747 | 0.019694 | 0.017505 | 0.0186 | 0.218818 | 0.146244 | 0.094457 | 0.094457 | 0.094457 | 0.094457 | 0 | 0.027413 | 0.166389 | 4,201 | 141 | 123 | 29.794326 | 0.755568 | 0.183052 | 0 | 0.12766 | 0 | 0 | 0.059255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.191489 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8caefbb61ef4b14aa932c6434a4dffef410f743 | 1,720 | py | Python | plugins/ping.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | null | null | null | plugins/ping.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | null | null | null | plugins/ping.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | 2 | 2018-10-09T15:42:59.000Z | 2019-02-11T07:16:00.000Z | """
ping.py
Generates fun names using the textgen module.
Created By:
- Bjorn Neergaard <https://github.com/neersighted>
Modified By:
- Luke Rogers <https://github.com/lukeroge>
License:
GPL v3
"""
import os
import re
import subprocess
from cloudbot import hook
unix_ping_regex = re.compile(r"(\d+.\d+... | 26.060606 | 87 | 0.565116 | 246 | 1,720 | 3.914634 | 0.410569 | 0.056075 | 0.018692 | 0.020768 | 0.232606 | 0.172378 | 0.122534 | 0.114226 | 0.114226 | 0.114226 | 0 | 0.014786 | 0.252907 | 1,720 | 65 | 88 | 26.461538 | 0.73463 | 0.175 | 0 | 0.243243 | 1 | 0.054054 | 0.246799 | 0.027738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.243243 | 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 |
a8ceff076fcb6eb7a12276d3a448dccb219907ef | 2,205 | py | Python | oms_cms/backend/api/v2/pages/serializers.py | RomanYarovoi/oms_cms | 49c6789242d7a35e81f4f208c04b18fb79249be7 | [
"BSD-3-Clause"
] | 18 | 2019-07-11T18:34:10.000Z | 2021-11-20T06:34:39.000Z | oms_cms/backend/api/v2/pages/serializers.py | RomanYarovoi/oms_cms | 49c6789242d7a35e81f4f208c04b18fb79249be7 | [
"BSD-3-Clause"
] | 13 | 2019-07-24T11:27:58.000Z | 2022-03-28T01:07:31.000Z | oms_cms/backend/api/v2/pages/serializers.py | RomanYarovoi/oms_cms | 49c6789242d7a35e81f4f208c04b18fb79249be7 | [
"BSD-3-Clause"
] | 18 | 2019-07-08T18:07:21.000Z | 2021-11-03T10:33:07.000Z | from rest_framework import serializers
from django.contrib.auth.models import User
from oms_gallery.models import Photo, Gallery
from oms_cms.backend.pages.models import Pages, BlockPage
class PagesListSerializer(serializers.ModelSerializer):
"""Сериализация всех страниц"""
class Meta:
model = Pages
... | 35 | 73 | 0.683447 | 202 | 2,205 | 7.326733 | 0.356436 | 0.042568 | 0.066216 | 0.087838 | 0.253378 | 0.155405 | 0.1 | 0.045946 | 0 | 0 | 0 | 0 | 0.208617 | 2,205 | 63 | 74 | 35 | 0.848138 | 0.14195 | 0 | 0.380952 | 0 | 0 | 0.134087 | 0.011309 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.547619 | 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 |
a8d561db0157fef31231433b9a275a5b03fa3faa | 594 | py | Python | util/color.py | EE-Ind-Stud-Group/blink-detection | 015263c125c72bf61e0b98b4821e866634ba50bf | [
"MIT"
] | 1 | 2021-10-17T03:08:37.000Z | 2021-10-17T03:08:37.000Z | util/color.py | EE-Ind-Stud-Group/blink-detection | 015263c125c72bf61e0b98b4821e866634ba50bf | [
"MIT"
] | 18 | 2021-12-24T08:25:33.000Z | 2022-03-31T15:19:02.000Z | util/color.py | Lai-YT/webcam-applications | e478deb1a609bb331cb831b7365bfe81b8bc22f9 | [
"MIT"
] | 1 | 2022-02-04T06:18:51.000Z | 2022-02-04T06:18:51.000Z | """This file defines Colors in BGR Format(BLUE, GREEN, RED)."""
from typing import Tuple
BGR = Tuple[int, int, int]
BLACK: BGR = (0, 0, 0)
BLUE: BGR = (255, 0, 0)
CHOCOLATE: BGR = (30, 105, 210)
CYAN: BGR = (255, 255, 0)
GOLDEN: BGR = (32, 218, 165)
GARY: BGR = (155, 155, 155)
GREEN: ... | 25.826087 | 63 | 0.521886 | 95 | 594 | 3.252632 | 0.442105 | 0.064725 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237981 | 0.299663 | 594 | 22 | 64 | 27 | 0.504808 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8da7c6e358438f13e03e8503b217f8de20baa88 | 1,451 | py | Python | settings_model/migrations/0001_initial.py | gregschmit/django-settings-model | ba8e3302291f367247624dbf47a9d70ceaa4ef8f | [
"MIT"
] | 1 | 2021-09-23T09:43:33.000Z | 2021-09-23T09:43:33.000Z | settings_model/migrations/0001_initial.py | gregschmit/django-settings-model | ba8e3302291f367247624dbf47a9d70ceaa4ef8f | [
"MIT"
] | null | null | null | settings_model/migrations/0001_initial.py | gregschmit/django-settings-model | ba8e3302291f367247624dbf47a9d70ceaa4ef8f | [
"MIT"
] | 2 | 2021-02-22T11:20:42.000Z | 2021-02-25T05:11:29.000Z | # Generated by Django 2.2.4 on 2019-12-04 03:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Settings",
fields=[
(
"id",
... | 32.244444 | 121 | 0.450034 | 116 | 1,451 | 5.5 | 0.577586 | 0.051724 | 0.056426 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.450034 | 1,451 | 44 | 122 | 32.977273 | 0.769424 | 0.031013 | 0 | 0.162162 | 1 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.135135 | 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 |
76351b87a2e2d88d8510da8e3f7468bda2e9ab1c | 2,906 | py | Python | test/hummingbot/client/config/test_config_security.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 3,027 | 2019-04-04T18:52:17.000Z | 2022-03-30T09:38:34.000Z | test/hummingbot/client/config/test_config_security.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 4,080 | 2019-04-04T19:51:11.000Z | 2022-03-31T23:45:21.000Z | test/hummingbot/client/config/test_config_security.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 1,342 | 2019-04-04T20:50:53.000Z | 2022-03-31T15:22:36.000Z | #!/usr/bin/env python
import unittest
from hummingbot.client.config.security import Security
from hummingbot.client import settings
from hummingbot.client.config.global_config_map import global_config_map
from hummingbot.client.config.config_crypt import encrypt_n_save_config_value
import os
import shutil
import async... | 40.929577 | 82 | 0.729181 | 373 | 2,906 | 5.369973 | 0.270777 | 0.049925 | 0.01997 | 0.03994 | 0.464803 | 0.36645 | 0.36645 | 0.264603 | 0.216675 | 0.193709 | 0 | 0.005017 | 0.176875 | 2,906 | 70 | 83 | 41.514286 | 0.832358 | 0.08947 | 0 | 0.307692 | 0 | 0 | 0.108753 | 0.042061 | 0 | 0 | 0 | 0 | 0.288462 | 1 | 0.115385 | false | 0.153846 | 0.153846 | 0 | 0.307692 | 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 |
763a68fc6bebd7a6371316350783eac3ec554c73 | 2,539 | py | Python | at-cidr-ranges-by-maxmind/filter-at-ranges.py | certat/contacts.cert.at | a14f855f1e51f650c19590a2784dfbb446e4064a | [
"BSD-3-Clause"
] | null | null | null | at-cidr-ranges-by-maxmind/filter-at-ranges.py | certat/contacts.cert.at | a14f855f1e51f650c19590a2784dfbb446e4064a | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:06:03.000Z | 2019-08-08T13:42:45.000Z | at-cidr-ranges-by-maxmind/filter-at-ranges.py | certat/contacts.cert.at | a14f855f1e51f650c19590a2784dfbb446e4064a | [
"BSD-3-Clause"
] | 1 | 2020-11-16T16:10:45.000Z | 2020-11-16T16:10:45.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" NOTE!!!!
This script only works with the legacy GeoIPLite version 1.x databases!
DO NOT USE IT ANYMORE.
It's here for reference only.
"""
import sys
import math
import csv
import re
import subprocess
# format of CSV version of Maxmind (http://dev.maxmind.com... | 36.797101 | 121 | 0.546278 | 351 | 2,539 | 3.860399 | 0.430199 | 0.016236 | 0.013284 | 0.035424 | 0.059041 | 0.048708 | 0.02214 | 0 | 0 | 0 | 0 | 0.08338 | 0.291453 | 2,539 | 68 | 122 | 37.338235 | 0.669817 | 0.412367 | 0 | 0 | 0 | 0.032258 | 0.103638 | 0.026081 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.16129 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
763b7c108fc67c400d732c1b48fbc94480ddd2f9 | 11,738 | py | Python | framework/utils/animate_parareal_tasks.py | batterysim/oas | 077042f89e7494b02c66daf51b9ba60c856faab5 | [
"BSD-3-Clause"
] | 1 | 2019-10-04T00:11:24.000Z | 2019-10-04T00:11:24.000Z | framework/utils/animate_parareal_tasks.py | batterysim/oas | 077042f89e7494b02c66daf51b9ba60c856faab5 | [
"BSD-3-Clause"
] | null | null | null | framework/utils/animate_parareal_tasks.py | batterysim/oas | 077042f89e7494b02c66daf51b9ba60c856faab5 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
#-------------------------------------------------------------------------------
# Copyright 2006-2012 UT-Battelle, LLC. See LICENSE for more information.
#-------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
import sys
import subprocess
import ... | 36.340557 | 110 | 0.556654 | 1,473 | 11,738 | 4.203666 | 0.189409 | 0.031008 | 0.017765 | 0.02261 | 0.455749 | 0.411176 | 0.395026 | 0.366441 | 0.336886 | 0.319606 | 0 | 0.017731 | 0.322542 | 11,738 | 322 | 111 | 36.453416 | 0.760941 | 0.135202 | 0 | 0.314516 | 0 | 0 | 0.047374 | 0.00267 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004032 | 0.048387 | null | null | 0.024194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
764167659c1dfaf9857ff739fe3284ad1ae0e274 | 2,722 | py | Python | admin/views/storages.py | ssfdust/full-stack-flask-smorest | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | 33 | 2019-09-25T02:19:43.000Z | 2022-03-25T01:58:19.000Z | admin/views/storages.py | ssfdust/full-stack-flask-rest-api | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | null | null | null | admin/views/storages.py | ssfdust/full-stack-flask-rest-api | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | 6 | 2020-01-12T15:18:07.000Z | 2021-06-01T16:30:26.000Z | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | 27.494949 | 74 | 0.637766 | 323 | 2,722 | 5.20743 | 0.479876 | 0.035672 | 0.023781 | 0.027348 | 0.098692 | 0.030916 | 0 | 0 | 0 | 0 | 0 | 0.003947 | 0.255327 | 2,722 | 98 | 75 | 27.77551 | 0.825851 | 0.24504 | 0 | 0.066667 | 0 | 0 | 0.105841 | 0.016475 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.05 | false | 0 | 0.083333 | 0 | 0.483333 | 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 |
76472246ee3396b311e7fdef30c9b0ca28887784 | 242 | py | Python | Awesome-face-operations/Face Clustering/Script/constants.py | swapnilgarg7/Face-X | fab21bf667fa7387b8e73e5a1d72fcba4fba2818 | [
"MIT"
] | 175 | 2020-10-02T13:42:50.000Z | 2022-03-30T15:57:12.000Z | Awesome-face-operations/Face Clustering/Script/constants.py | swapnilgarg7/Face-X | fab21bf667fa7387b8e73e5a1d72fcba4fba2818 | [
"MIT"
] | 704 | 2020-09-30T10:44:13.000Z | 2022-03-30T07:18:28.000Z | Awesome-face-operations/Face Clustering/Script/constants.py | swapnilgarg7/Face-X | fab21bf667fa7387b8e73e5a1d72fcba4fba2818 | [
"MIT"
] | 342 | 2020-10-02T14:04:49.000Z | 2022-03-31T10:14:20.000Z | import os
# face_data (directory) represents the path component to be joined.
FACE_DATA_PATH = os.path.join(os.getcwd(),'face_cluster')
ENCODINGS_PATH = os.path.join(os.getcwd(),'encodings.pickle')
CLUSTERING_RESULT_PATH = os.getcwd() | 34.571429 | 68 | 0.756198 | 36 | 242 | 4.888889 | 0.527778 | 0.102273 | 0.113636 | 0.159091 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 242 | 7 | 69 | 34.571429 | 0.82243 | 0.268595 | 0 | 0 | 0 | 0 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7660f8ca43bb9bb300543f196f8fdba2ccf304cb | 2,068 | py | Python | test_all_wav_files.py | billyang98/tacotron2 | f6fffccf1ea1499b31ba169396ed3d9a3ecf0ad1 | [
"BSD-3-Clause"
] | 2 | 2019-05-06T06:28:48.000Z | 2019-05-26T04:31:47.000Z | test_all_wav_files.py | billyang98/tacotron2 | f6fffccf1ea1499b31ba169396ed3d9a3ecf0ad1 | [
"BSD-3-Clause"
] | null | null | null | test_all_wav_files.py | billyang98/tacotron2 | f6fffccf1ea1499b31ba169396ed3d9a3ecf0ad1 | [
"BSD-3-Clause"
] | null | null | null | import os
import time
import argparse
import math
from numpy import finfo
import torch
from distributed import apply_gradient_allreduce
import torch.distributed as dist
from torch.utils.data.distributed import DistributedSampler
from torch.utils.data import DataLoader
from data_utils import TextMelLoader, TextMelColl... | 37.6 | 80 | 0.675048 | 242 | 2,068 | 5.595041 | 0.458678 | 0.053176 | 0.100443 | 0.026588 | 0.051699 | 0.051699 | 0.051699 | 0 | 0 | 0 | 0 | 0.002514 | 0.230658 | 2,068 | 54 | 81 | 38.296296 | 0.848523 | 0.023694 | 0 | 0 | 0 | 0 | 0.182721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.325581 | 0 | 0.372093 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76673ec32bf2fa4164d15c6e0042adfcd26afa23 | 822 | py | Python | setup.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 78 | 2019-09-25T15:09:18.000Z | 2022-02-09T09:56:15.000Z | setup.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 23 | 2019-10-09T21:24:39.000Z | 2022-03-12T00:00:53.000Z | setup.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 18 | 2020-01-24T13:13:57.000Z | 2022-02-15T18:58:12.000Z | from setuptools import setup
setup(
name='gans2',
version='0.1',
author='Tomasz Latkowski',
description='GANs-2.0',
long_description=(
'Generative Adversarial Networks in TensorFlow 2.0.'
),
long_description_content_type='text/markdown',
install_requires=[
'matplotlib==3... | 22.833333 | 60 | 0.534063 | 95 | 822 | 4.536842 | 0.568421 | 0.013921 | 0.027842 | 0.078886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.283455 | 822 | 35 | 61 | 23.485714 | 0.667233 | 0 | 0 | 0.058824 | 0 | 0 | 0.402676 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7677d75f479b0a3ca31cb7e24674dc290d4e8b2b | 455 | py | Python | gaze_estimation/losses.py | kibernetika-ai/pytorch_mpiigaze | d55c1909eb0d64d62816ade3b48664ee1ebacd74 | [
"MIT"
] | 8 | 2020-09-01T09:17:35.000Z | 2022-02-27T16:18:28.000Z | gaze_estimation/losses.py | leon-liangwu/pytorch_mpiigaze | a51b5c824b7d186846770453a7e731cd69e8a952 | [
"MIT"
] | 4 | 2021-02-28T07:26:14.000Z | 2021-09-07T14:37:50.000Z | gaze_estimation/losses.py | leon-liangwu/pytorch_mpiigaze | a51b5c824b7d186846770453a7e731cd69e8a952 | [
"MIT"
] | 2 | 2021-07-15T13:25:00.000Z | 2021-11-12T02:18:09.000Z | import torch.nn as nn
import yacs.config
from . import LossType
def create_loss(config: yacs.config.CfgNode) -> nn.Module:
loss_name = config.train.loss
if loss_name == LossType.L1.name:
return nn.L1Loss(reduction='mean')
elif loss_name == LossType.L2.name:
return nn.MSELoss(reduction='me... | 26.764706 | 58 | 0.685714 | 61 | 455 | 5.032787 | 0.47541 | 0.104235 | 0.156352 | 0.136808 | 0.214984 | 0.214984 | 0 | 0 | 0 | 0 | 0 | 0.01385 | 0.206593 | 455 | 16 | 59 | 28.4375 | 0.836565 | 0 | 0 | 0 | 0 | 0 | 0.026374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | 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 |
7681f1b244dd3c23e7690873a46de2facae10dd0 | 5,100 | py | Python | agn_disks.py | AlexaVillaume/AGN-Disks | a725b0c9d012e19a179d61810563e8651c2e8611 | [
"Apache-2.0"
] | null | null | null | agn_disks.py | AlexaVillaume/AGN-Disks | a725b0c9d012e19a179d61810563e8651c2e8611 | [
"Apache-2.0"
] | null | null | null | agn_disks.py | AlexaVillaume/AGN-Disks | a725b0c9d012e19a179d61810563e8651c2e8611 | [
"Apache-2.0"
] | null | null | null | '''
INPUT:
Spectral Energy Distribution
OUTPUT:
Temperature structure and new SED
Plot of input and calculated SED
'''
import sys
import numpy as np
import matplotlib.pyplot as plt
from astropy import units as u
light_speed = 2.9979e8 # m s^-1
planck_c = 6.626e-34 # J s
boltzmann_c = 1.38e-23 # J K^... | 32.278481 | 99 | 0.658039 | 805 | 5,100 | 3.967702 | 0.310559 | 0.065122 | 0.052599 | 0.028178 | 0.227927 | 0.208516 | 0.194114 | 0.180338 | 0.117095 | 0.117095 | 0 | 0.077715 | 0.200196 | 5,100 | 157 | 100 | 32.484076 | 0.70532 | 0.119804 | 0 | 0.08046 | 0 | 0 | 0.021646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045977 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7693cac285294708f2785d7447de74031d72b78a | 2,592 | py | Python | __tests__/unit/test_convert_datetime_to_ts_format.py | tetrascience/ts-task-script-utils | 7e7992c8345f478b74ed42dd0ba990e21933141c | [
"Apache-2.0"
] | 2 | 2022-01-24T15:33:03.000Z | 2022-03-23T10:59:44.000Z | __tests__/unit/test_convert_datetime_to_ts_format.py | tetrascience/ts-task-script-utils | 7e7992c8345f478b74ed42dd0ba990e21933141c | [
"Apache-2.0"
] | 11 | 2021-04-21T13:57:24.000Z | 2022-03-31T20:19:34.000Z | __tests__/unit/test_convert_datetime_to_ts_format.py | tetrascience/ts-task-script-utils | 7e7992c8345f478b74ed42dd0ba990e21933141c | [
"Apache-2.0"
] | null | null | null | import sys
from dateutil import tz
from task_script_utils.convert_datetime_to_ts_format import (
convert_datetime_to_ts_format,
)
def test_no_timezone():
raw_expect = [
("2019-07-17 11:21:00", "2019-07-17T11:21:00.000"),
("2020-06-18 13:17:57.54036", "2020-06-18T13:17:57.540"),
]
for r... | 30.494118 | 83 | 0.63233 | 378 | 2,592 | 4.103175 | 0.243386 | 0.096712 | 0.109607 | 0.122502 | 0.672469 | 0.574468 | 0.528691 | 0.473243 | 0.457124 | 0.397163 | 0 | 0.218734 | 0.225694 | 2,592 | 84 | 84 | 30.857143 | 0.554061 | 0.006559 | 0 | 0.294118 | 0 | 0 | 0.25068 | 0.179168 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.044118 | 0 | 0.161765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76947e55c840bf1b29f496870d0dbf7731787c99 | 4,734 | py | Python | turbustat/statistics/scf/scf.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | turbustat/statistics/scf/scf.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | turbustat/statistics/scf/scf.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | # Licensed under an MIT open source license - see LICENSE
import numpy as np
class SCF(object):
'''
Computes the Spectral Correlation Function of a data cube
(Rosolowsky et al, 1999).
Parameters
----------
cube : numpy.ndarray
Data cube.
size : int, optional
Maximum siz... | 27.364162 | 80 | 0.526405 | 579 | 4,734 | 4.238342 | 0.259067 | 0.06194 | 0.03912 | 0.03912 | 0.268541 | 0.257131 | 0.190709 | 0.145884 | 0.107579 | 0.107579 | 0 | 0.025058 | 0.359316 | 4,734 | 172 | 81 | 27.523256 | 0.784042 | 0.024504 | 0 | 0.27381 | 0 | 0 | 0.037248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.