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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2587a7eed0101cd99265a01cea5dcdabda6691fe | 516 | py | Python | Py2toPy3.py | nyxson/ConvertTools | 2334a1034cb1515fb41d1cb866eabb6818df5c9a | [
"MIT"
] | null | null | null | Py2toPy3.py | nyxson/ConvertTools | 2334a1034cb1515fb41d1cb866eabb6818df5c9a | [
"MIT"
] | null | null | null | Py2toPy3.py | nyxson/ConvertTools | 2334a1034cb1515fb41d1cb866eabb6818df5c9a | [
"MIT"
] | null | null | null | import os
def py2_to_py3(path):
Filelist = []
DirList = []
for home, dirs, files in os.walk(path):
for filename in files:#get file name
[name, extension] = os.path.splitext(filename)#split file name for judge suffix
if extension=='.py':
output=os.pop... | 30.352941 | 115 | 0.581395 | 66 | 516 | 4.484848 | 0.681818 | 0.033784 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016349 | 0.28876 | 516 | 16 | 116 | 32.25 | 0.790191 | 0.153101 | 0 | 0 | 0 | 0 | 0.093301 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
258a9a39066ffdf4c49134824f92e9e312f0f315 | 1,298 | py | Python | 04_introduccion-al-computo-con-python/modulo_IV/complementos/solucion-range.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 30 | 2020-06-19T16:21:04.000Z | 2022-02-19T01:48:39.000Z | 04_introduccion-al-computo-con-python/modulo_IV/complementos/solucion-range.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 87 | 2021-02-12T04:42:13.000Z | 2021-09-20T04:25:29.000Z | 04_introduccion-al-computo-con-python/modulo_IV/complementos/solucion-range.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 11 | 2020-08-13T04:04:01.000Z | 2022-01-20T20:10:43.000Z | """
Reto: Imprimir todos los numeros enteros (opuestos a naturales tambien) pares e impares dependiendo del valor n
que escoja el usuario.
Le he sumado varios grados de complejidad al enunciado del problema.
Curso: Pensamiento computacional.
Plataforma: Platzi.
Profesor: David Aroesti.
Alumno: @edinsonrequena.
"""
... | 23.6 | 111 | 0.581664 | 193 | 1,298 | 3.870466 | 0.362694 | 0.056225 | 0.048193 | 0.088353 | 0.344043 | 0.344043 | 0.317269 | 0.317269 | 0.258367 | 0.258367 | 0 | 0.033898 | 0.318182 | 1,298 | 54 | 112 | 24.037037 | 0.810169 | 0.369029 | 0 | 0.307692 | 0 | 0 | 0.075397 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
258b9c3820e742b15673d62d28d795a3348d63db | 3,463 | py | Python | lexeme/lexeme.py | kdelwat/conlangDB | f83d89914aa684d4e5d54f0454533a87a9919a6f | [
"MIT"
] | null | null | null | lexeme/lexeme.py | kdelwat/conlangDB | f83d89914aa684d4e5d54f0454533a87a9919a6f | [
"MIT"
] | null | null | null | lexeme/lexeme.py | kdelwat/conlangDB | f83d89914aa684d4e5d54f0454533a87a9919a6f | [
"MIT"
] | null | null | null | import cmd
import argparse
from lexeme.Interface import *
class Lexeme(cmd.Cmd):
intro = "Welcome to Lexeme! Input '?' for help and commands."
prompt = "\nEnter command: "
def getHelp(self, command):
with open("help.txt", "r") as f:
line = f.readline().rstrip()
while line !... | 20.987879 | 66 | 0.540283 | 329 | 3,463 | 5.580547 | 0.227964 | 0.053377 | 0.127451 | 0.141612 | 0.198257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353162 | 3,463 | 164 | 67 | 21.115854 | 0.819643 | 0 | 0 | 0.430769 | 0 | 0 | 0.064106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.069231 | 0.053846 | 0 | 0.276923 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
258c3c99cbca5cbba1f90cbd667b00c6b392c68e | 26,432 | py | Python | ui/FetchReportsTab.py | reeset/COUNTER-5-Report-Tool | 6a88663d20eff9434b682fed65ecb64a2cb140f8 | [
"MIT"
] | 23 | 2020-05-13T12:11:42.000Z | 2022-03-25T06:38:23.000Z | ui/FetchReportsTab.py | reeset/COUNTER-5-Report-Tool | 6a88663d20eff9434b682fed65ecb64a2cb140f8 | [
"MIT"
] | 6 | 2020-05-01T05:45:46.000Z | 2021-07-14T20:21:30.000Z | ui/FetchReportsTab.py | reeset/COUNTER-5-Report-Tool | 6a88663d20eff9434b682fed65ecb64a2cb140f8 | [
"MIT"
] | 3 | 2020-07-01T22:40:35.000Z | 2022-03-24T20:35:06.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'FetchReportsTab.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_fetch_reports_tab(object):
def setupUi(self, fetch_report... | 62.486998 | 187 | 0.750492 | 3,073 | 26,432 | 6.164985 | 0.069639 | 0.061283 | 0.04038 | 0.030404 | 0.691739 | 0.506941 | 0.367485 | 0.305199 | 0.264714 | 0.244128 | 0 | 0.030207 | 0.154585 | 26,432 | 422 | 188 | 62.635071 | 0.817596 | 0.00715 | 0 | 0.183374 | 1 | 0.002445 | 0.07444 | 0.017876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00489 | false | 0 | 0.00489 | 0 | 0.012225 | 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 |
258d39c670c6087a22499b8db0ec10d44682c045 | 500 | py | Python | games/migrations/0003_auto_20160910_0756.py | michaelrios/TeachModern | 6ab32c02be19d382a0d46a84a773a41369e52fa1 | [
"MIT"
] | null | null | null | games/migrations/0003_auto_20160910_0756.py | michaelrios/TeachModern | 6ab32c02be19d382a0d46a84a773a41369e52fa1 | [
"MIT"
] | null | null | null | games/migrations/0003_auto_20160910_0756.py | michaelrios/TeachModern | 6ab32c02be19d382a0d46a84a773a41369e52fa1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-10 07:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0002_auto_20160910_0745'),
]
operations = [
migrations.AlterField(
... | 23.809524 | 96 | 0.634 | 57 | 500 | 5.368421 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0.248 | 500 | 20 | 97 | 25 | 0.728723 | 0.134 | 0 | 0 | 1 | 0 | 0.146512 | 0.053488 | 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 |
2595aa8842a8e5286f547cd3d880e58dd359e0eb | 4,169 | py | Python | .venv/lib/python2.7/site-packages/os_testr/tests/test_return_codes.py | niranjan-chavan/OSA_C_tempest | 97f1f16ecf71dd6e37f177ecbc955a38614a96ac | [
"Apache-2.0"
] | null | null | null | .venv/lib/python2.7/site-packages/os_testr/tests/test_return_codes.py | niranjan-chavan/OSA_C_tempest | 97f1f16ecf71dd6e37f177ecbc955a38614a96ac | [
"Apache-2.0"
] | null | null | null | .venv/lib/python2.7/site-packages/os_testr/tests/test_return_codes.py | niranjan-chavan/OSA_C_tempest | 97f1f16ecf71dd6e37f177ecbc955a38614a96ac | [
"Apache-2.0"
] | 1 | 2020-07-21T02:18:23.000Z | 2020-07-21T02:18:23.000Z | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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 requir... | 38.601852 | 78 | 0.663948 | 543 | 4,169 | 4.965009 | 0.294659 | 0.031157 | 0.093472 | 0.124629 | 0.375 | 0.256306 | 0.215875 | 0.080861 | 0 | 0 | 0 | 0.008323 | 0.221876 | 4,169 | 107 | 79 | 38.962617 | 0.82275 | 0.164548 | 0 | 0 | 0 | 0 | 0.203405 | 0.04674 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.2 | false | 0.171429 | 0.1 | 0 | 0.314286 | 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 |
2597830ffc939f6490aee732af3335473e0df184 | 332 | py | Python | ServiceRunner.py | Forcepoint/fp-bd-ngfw-aws-azure | f85ba29b714c9435c6ec946f8771b66943a7047c | [
"Apache-2.0"
] | null | null | null | ServiceRunner.py | Forcepoint/fp-bd-ngfw-aws-azure | f85ba29b714c9435c6ec946f8771b66943a7047c | [
"Apache-2.0"
] | null | null | null | ServiceRunner.py | Forcepoint/fp-bd-ngfw-aws-azure | f85ba29b714c9435c6ec946f8771b66943a7047c | [
"Apache-2.0"
] | null | null | null | from CommonUtils import open_config_file
from QuerySmc import run_query_and_upload
import time
cfg = open_config_file()
if __name__ == '__main__':
time_to_run = int(cfg.get('run-interval', 900)) if int(cfg.get('run-interval', 900)) > 300 else 300
while True:
run_query_and_upload()
time.sleep(t... | 27.666667 | 103 | 0.722892 | 52 | 332 | 4.192308 | 0.5 | 0.091743 | 0.12844 | 0.155963 | 0.211009 | 0.211009 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.174699 | 332 | 11 | 104 | 30.181818 | 0.751825 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
25a13aa4d1a38a75861a2b85e876018140714fe4 | 308 | py | Python | Chapter14/write_to_file.py | PacktPublishing/GettingStartedwithPythonfortheInternetofThings- | a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6 | [
"MIT"
] | 6 | 2017-05-17T17:51:45.000Z | 2021-11-08T13:10:35.000Z | Chapter14/write_to_file.py | PacktPublishing/GettingStartedwithPythonfortheInternetofThings- | a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6 | [
"MIT"
] | null | null | null | Chapter14/write_to_file.py | PacktPublishing/GettingStartedwithPythonfortheInternetofThings- | a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6 | [
"MIT"
] | 14 | 2017-05-21T17:59:40.000Z | 2021-10-02T16:58:16.000Z | #!/usr/bin/python3
if __name__ == "__main__":
# open text file to read
file = open('write_file.txt', 'w')
# read a line from the file
file.write('I am excited to learn Python using Raspberry Pi Zero\n')
file.close()
file = open('write_file.txt', 'r')
data = file.read()
print(data)
file.close() | 22 | 69 | 0.665584 | 51 | 308 | 3.823529 | 0.627451 | 0.082051 | 0.133333 | 0.174359 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.178571 | 308 | 14 | 70 | 22 | 0.766798 | 0.217532 | 0 | 0.25 | 0 | 0 | 0.386555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
25a20e13aa909c31b1ae521c1b9ec5e0b8502f62 | 7,335 | py | Python | build/lib/PyQuantum/BipartiteLindblad/Hamiltonian.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | build/lib/PyQuantum/BipartiteLindblad/Hamiltonian.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | build/lib/PyQuantum/BipartiteLindblad/Hamiltonian.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | 2 | 2020-07-28T08:40:06.000Z | 2022-02-16T23:04:58.000Z | # -------------------------------------------------------------------------------------------------
# scientific
import numpy as np
# -------------------------------------------------------------------------------------------------
# system
from math import sqrt
from PyQuantum.Common.html import *
import copy
# -------... | 34.275701 | 174 | 0.295297 | 628 | 7,335 | 3.417197 | 0.171975 | 0.069897 | 0.033551 | 0.030755 | 0.355545 | 0.347158 | 0.294967 | 0.26794 | 0.241379 | 0.177074 | 0 | 0.023928 | 0.367553 | 7,335 | 213 | 175 | 34.43662 | 0.438672 | 0.433538 | 0 | 0.121212 | 0 | 0 | 0.003927 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.090909 | false | 0 | 0.10101 | 0.010101 | 0.252525 | 0.080808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25a38ff749d2038d1b232f56a2132377984f8679 | 862 | py | Python | cms/plugins/flash/models.py | alamierda09/django-cms-2.0 | 0aba7f465730ae9a975ea6fd0bf5cac1ba70022c | [
"BSD-3-Clause"
] | 1 | 2016-05-09T09:33:41.000Z | 2016-05-09T09:33:41.000Z | cms/plugins/flash/models.py | alamierda09/django-cms-2.0 | 0aba7f465730ae9a975ea6fd0bf5cac1ba70022c | [
"BSD-3-Clause"
] | null | null | null | cms/plugins/flash/models.py | alamierda09/django-cms-2.0 | 0aba7f465730ae9a975ea6fd0bf5cac1ba70022c | [
"BSD-3-Clause"
] | null | null | null | import re
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from cms.models import CMSPlugin
if 'reversion' in settings.INSTALLED_APPS:
import reversion
class Flash(CMSPlugin):
file = models.FileField(_('file'), upload_to='uploads/plugins/f... | 27.806452 | 111 | 0.676334 | 118 | 862 | 4.788136 | 0.5 | 0.053097 | 0.046018 | 0.074336 | 0.19469 | 0.120354 | 0 | 0 | 0 | 0 | 0 | 0.005822 | 0.203016 | 862 | 31 | 112 | 27.806452 | 0.816594 | 0.017401 | 0 | 0.095238 | 0 | 0 | 0.115839 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.095238 | 0.809524 | 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 |
25a9140706091b6258026e518409ea1d11404f1a | 2,277 | py | Python | addons/DagAmendment/shaders.py | V-Sekai/V-Sekai-Blender-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/DagAmendment/shaders.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/DagAmendment/shaders.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | # This file is part of DagAmendment, the reference implementation of:
#
# Michel, Élie and Boubekeur, Tamy (2021).
# DAG Amendment for Inverse Control of Parametric Shapes
# ACM Transactions on Graphics (Proc. SIGGRAPH 2021), 173:1-173:14.
#
# Copyright (c) 2020-2021 -- Télécom Paris (Élie Michel <elie.michel@tel... | 25.021978 | 87 | 0.646465 | 294 | 2,277 | 4.959184 | 0.493197 | 0.027435 | 0.026749 | 0.039095 | 0.256516 | 0.150892 | 0.048011 | 0.048011 | 0 | 0 | 0 | 0.056113 | 0.256478 | 2,277 | 90 | 88 | 25.3 | 0.80508 | 0.410628 | 0 | 0.296296 | 0 | 0 | 0.651604 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
25ac73904133571493dee3698b61292be51aa858 | 1,160 | py | Python | 046/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | 1 | 2015-01-28T09:15:30.000Z | 2015-01-28T09:15:30.000Z | 046/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | 046/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | # coding: utf-8
""" Project Euler problem #46. """
import itertools as it
def problem():
u""" Solve the problem.
It was proposed by Christian Goldbach that every odd composite number can
be written as the sum of a prime and twice a square.
9 = 7 + 2×12
15 = 7 + 2×22
21 = 3 + 2×32
25 = ... | 24.166667 | 77 | 0.606034 | 194 | 1,160 | 3.603093 | 0.484536 | 0.017167 | 0.012876 | 0.040057 | 0.114449 | 0.114449 | 0.114449 | 0.114449 | 0.114449 | 0.114449 | 0 | 0.076923 | 0.282759 | 1,160 | 47 | 78 | 24.680851 | 0.75601 | 0.011207 | 0 | 0 | 0 | 0 | 0.013158 | 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 |
25ac7741c9dff461dd4a0a8ae146347505c71f0d | 1,534 | py | Python | jokedbapp/tests/test_load_omeka.py | BL-Labs/jokedbapp | a0e03eefbf04255623a9ad81db145f1508fade5f | [
"MIT"
] | null | null | null | jokedbapp/tests/test_load_omeka.py | BL-Labs/jokedbapp | a0e03eefbf04255623a9ad81db145f1508fade5f | [
"MIT"
] | null | null | null | jokedbapp/tests/test_load_omeka.py | BL-Labs/jokedbapp | a0e03eefbf04255623a9ad81db145f1508fade5f | [
"MIT"
] | null | null | null | import unittest
from models import *
from utils.handle_transcript import TranscriptionParser, OmekaXML, om
from test_data import TRANSCRIPTIONS
OMEKA_COLLECTION = "test_omeka_collection.xml"
# User, Transcription, Joke, Picture
class TestUserClass(unittest.TestCase):
def setUp(self):
self.TP = Transcription... | 29.5 | 77 | 0.717731 | 205 | 1,534 | 5.165854 | 0.331707 | 0.056657 | 0.122757 | 0.060434 | 0.339943 | 0.32389 | 0.32389 | 0.31728 | 0.31728 | 0.31728 | 0 | 0.007692 | 0.152542 | 1,534 | 51 | 78 | 30.078431 | 0.806923 | 0.033246 | 0 | 0.277778 | 0 | 0 | 0.137255 | 0.016903 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.194444 | false | 0.083333 | 0.138889 | 0 | 0.361111 | 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 |
25ae42e6b9aaf66b89d345642b78de1a10e20ebf | 1,001 | py | Python | 1301-1400/1396-Design Underground System/1396-Design Underground System.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1301-1400/1396-Design Underground System/1396-Design Underground System.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1301-1400/1396-Design Underground System/1396-Design Underground System.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class UndergroundSystem:
def __init__(self):
self.inMap = {}
self.outMap = {}
def checkIn(self, id: int, stationName: str, t: int) -> None:
self.inMap[id] = (stationName, t)
def checkOut(self, id: int, stationName: str, t: int) -> None:
start = self.i... | 31.28125 | 74 | 0.591409 | 115 | 1,001 | 5.104348 | 0.356522 | 0.102215 | 0.056218 | 0.068143 | 0.105622 | 0.105622 | 0.105622 | 0.105622 | 0 | 0 | 0 | 0.006944 | 0.280719 | 1,001 | 31 | 75 | 32.290323 | 0.808333 | 0.210789 | 0 | 0 | 0 | 0 | 0.002551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25bd09c96a7f9eeeb04d0ca5c026c157c77a9fe2 | 1,650 | py | Python | setup.py | urill/KiPart | 9e3ef63b53a5ce21bb829b26e1795d6340bfe239 | [
"MIT"
] | null | null | null | setup.py | urill/KiPart | 9e3ef63b53a5ce21bb829b26e1795d6340bfe239 | [
"MIT"
] | null | null | null | setup.py | urill/KiPart | 9e3ef63b53a5ce21bb829b26e1795d6340bfe239 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
import kipart
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = ... | 33 | 68 | 0.596364 | 169 | 1,650 | 5.615385 | 0.579882 | 0.05058 | 0.052687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012356 | 0.264242 | 1,650 | 49 | 69 | 33.673469 | 0.769358 | 0.050303 | 0 | 0 | 0 | 0 | 0.307591 | 0.013861 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25be57bdf52cff6c2d035f91b4a4ada535e03dca | 1,957 | py | Python | src/electionguard_cli/import_ballots/import_ballots_publish_step.py | PradyumnaKrishna/electionguard-python | e239478972d76195c64fd715bb57682d526aab6c | [
"MIT"
] | null | null | null | src/electionguard_cli/import_ballots/import_ballots_publish_step.py | PradyumnaKrishna/electionguard-python | e239478972d76195c64fd715bb57682d526aab6c | [
"MIT"
] | null | null | null | src/electionguard_cli/import_ballots/import_ballots_publish_step.py | PradyumnaKrishna/electionguard-python | e239478972d76195c64fd715bb57682d526aab6c | [
"MIT"
] | null | null | null | from typing import List
from shutil import make_archive
from os.path import splitext
from tempfile import TemporaryDirectory
from click import echo
from electionguard.encrypt import EncryptionDevice
from electionguard.constants import get_constants
from electionguard_tools.helpers.export import export_record
from .im... | 36.924528 | 88 | 0.710782 | 192 | 1,957 | 6.958333 | 0.427083 | 0.083832 | 0.04491 | 0.058383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00067 | 0.237609 | 1,957 | 52 | 89 | 37.634615 | 0.894772 | 0.039857 | 0 | 0 | 0 | 0 | 0.042178 | 0.017619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.317073 | 0 | 0.390244 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
25c033b2ec0de398ca59d4156307b09b3a903efd | 869 | py | Python | vartalaap/user/migrations/0001_initial.py | just-a-rookie-2001/vartalaap | f63666ef2ed3721062082a86c568d4a6056d0652 | [
"MIT"
] | null | null | null | vartalaap/user/migrations/0001_initial.py | just-a-rookie-2001/vartalaap | f63666ef2ed3721062082a86c568d4a6056d0652 | [
"MIT"
] | null | null | null | vartalaap/user/migrations/0001_initial.py | just-a-rookie-2001/vartalaap | f63666ef2ed3721062082a86c568d4a6056d0652 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-19 11:48
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | 31.035714 | 125 | 0.59954 | 87 | 869 | 5.83908 | 0.643678 | 0.088583 | 0.106299 | 0.141732 | 0.122047 | 0.122047 | 0 | 0 | 0 | 0 | 0 | 0.047695 | 0.27618 | 869 | 27 | 126 | 32.185185 | 0.759936 | 0.051784 | 0 | 0 | 1 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.1 | 0 | 0.3 | 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 |
25cf8b9f52fd0c02cd7d775f550736bc18df2d22 | 2,691 | py | Python | sitioWeb/Compra/views.py | UnopposedQuill/muedatos2 | f861fac5b5f6bc67add69e3fc8a8ead3901fc24b | [
"MIT"
] | null | null | null | sitioWeb/Compra/views.py | UnopposedQuill/muedatos2 | f861fac5b5f6bc67add69e3fc8a8ead3901fc24b | [
"MIT"
] | null | null | null | sitioWeb/Compra/views.py | UnopposedQuill/muedatos2 | f861fac5b5f6bc67add69e3fc8a8ead3901fc24b | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.db import connection, connections
def compra(request,uid=0,sid=0):
## POST, muestra la informacion del cliente para que este de un ultimo vistazo
if request.method == 'POST':
carrito = [int(x) for x in reques... | 62.581395 | 158 | 0.609067 | 356 | 2,691 | 4.603933 | 0.328652 | 0.033557 | 0.024405 | 0.029286 | 0.317267 | 0.298963 | 0.298963 | 0.250153 | 0.250153 | 0.250153 | 0 | 0.008423 | 0.205871 | 2,691 | 42 | 159 | 64.071429 | 0.75854 | 0.100706 | 0 | 0.324324 | 0 | 0 | 0.19917 | 0.027386 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.243243 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25d9069ae16cfc0685a11a407e0f167046a5a824 | 808 | py | Python | src/meetings/migrations/0001_initial.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | src/meetings/migrations/0001_initial.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | src/meetings/migrations/0001_initial.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-16 19:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('rooms', '0005_auto_20211016_2228'),
]
operations = [
migrations.CreateMo... | 31.076923 | 118 | 0.595297 | 85 | 808 | 5.517647 | 0.6 | 0.051173 | 0.059701 | 0.093817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053082 | 0.277228 | 808 | 25 | 119 | 32.32 | 0.75 | 0.055693 | 0 | 0 | 1 | 0 | 0.133152 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
25d9647b466383d331b09b9d2ea846d255540147 | 543 | py | Python | www/cgi-bin/QueryISBN.py | FinalTheory/CoYouthLibraryServer | 7772e906ca7621ab29eab7d6730eab965cd74af6 | [
"MIT"
] | 1 | 2019-09-04T02:05:30.000Z | 2019-09-04T02:05:30.000Z | www/cgi-bin/QueryISBN.py | FinalTheory/CoYouthLibraryServer | 7772e906ca7621ab29eab7d6730eab965cd74af6 | [
"MIT"
] | null | null | null | www/cgi-bin/QueryISBN.py | FinalTheory/CoYouthLibraryServer | 7772e906ca7621ab29eab7d6730eab965cd74af6 | [
"MIT"
] | 2 | 2016-01-18T14:12:34.000Z | 2020-11-09T09:42:34.000Z | #!/usr/bin/pythondevice = '/dev/video0'
# -*- coding: utf-8 -*-
import simplejson as json
from urllib2 import urlopen
from Config import ConfigDict
def QueryISBN( StrISBN ):
json_dict = json.loads(urlopen(ConfigDict["book_query_url"] +
urlopen(ConfigDict["isbn_query_url"] +
... | 31.941176 | 96 | 0.600368 | 58 | 543 | 5.362069 | 0.655172 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042079 | 0.255985 | 543 | 17 | 97 | 31.941176 | 0.727723 | 0.110497 | 0 | 0 | 0 | 0 | 0.114108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25dd1f3ce552a2b8b05c9b8d790efa9ca2f24cd9 | 11,031 | py | Python | lib/roi_data_layer/box_anno_layer.py | jialinwu17/box_cls_reg | be488241f2acbc91f0733f12d485ba152d2c6670 | [
"MIT"
] | null | null | null | lib/roi_data_layer/box_anno_layer.py | jialinwu17/box_cls_reg | be488241f2acbc91f0733f12d485ba152d2c6670 | [
"MIT"
] | null | null | null | lib/roi_data_layer/box_anno_layer.py | jialinwu17/box_cls_reg | be488241f2acbc91f0733f12d485ba152d2c6670 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""The data layer used during training to train a Fast R-CNN network.
... | 61.97191 | 278 | 0.54501 | 1,545 | 11,031 | 3.537217 | 0.106796 | 0.089661 | 0.13559 | 0.131747 | 0.65215 | 0.631473 | 0.604575 | 0.600183 | 0.583349 | 0.573468 | 0 | 0.035293 | 0.332155 | 11,031 | 177 | 279 | 62.322034 | 0.706529 | 0.043876 | 0 | 0.345865 | 0 | 0 | 0.012482 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0 | null | null | 0.015038 | 0.052632 | 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 |
25e3b658720eed46c257b608fcacc9f2a058d02d | 3,689 | py | Python | test/common.py | pencc/bfs | 02b6fb009cf643e78e47f2cb3376ecb2b87dfc49 | [
"BSD-3-Clause"
] | 3,106 | 2016-08-30T17:15:40.000Z | 2022-03-29T12:15:26.000Z | test/common.py | pencc/bfs | 02b6fb009cf643e78e47f2cb3376ecb2b87dfc49 | [
"BSD-3-Clause"
] | 265 | 2016-08-24T08:42:42.000Z | 2020-12-21T10:01:14.000Z | test/common.py | pencc/bfs | 02b6fb009cf643e78e47f2cb3376ecb2b87dfc49 | [
"BSD-3-Clause"
] | 651 | 2016-08-31T09:01:09.000Z | 2022-02-28T06:18:00.000Z | """
Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
"""
import subprocess
import filecmp
import os
import time
import nose.tools
import json
import commands
import string
from conf import const
def check_core():... | 36.89 | 147 | 0.606397 | 513 | 3,689 | 4.292398 | 0.255361 | 0.024523 | 0.032698 | 0.035422 | 0.529519 | 0.448229 | 0.396912 | 0.376022 | 0.32743 | 0.29564 | 0 | 0.013404 | 0.231499 | 3,689 | 99 | 148 | 37.262626 | 0.763316 | 0 | 0 | 0.341772 | 0 | 0 | 0.21919 | 0.024706 | 0 | 0 | 0 | 0 | 0.012658 | 0 | null | null | 0 | 0.113924 | null | null | 0.189873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25e5202e5c65ddb0a117c2c6f6832f90ae2e8a29 | 6,691 | py | Python | aamu.py | TuulaP/aamu | 7d17bf907a45d2dc2c6abdf1cdfcb8adca4285fd | [
"Apache-2.0"
] | null | null | null | aamu.py | TuulaP/aamu | 7d17bf907a45d2dc2c6abdf1cdfcb8adca4285fd | [
"Apache-2.0"
] | null | null | null | aamu.py | TuulaP/aamu | 7d17bf907a45d2dc2c6abdf1cdfcb8adca4285fd | [
"Apache-2.0"
] | null | null | null |
from __future__ import print_function # mandates the print() style
import base64
import email
import json
import os
import re
import urllib
import urllib2
import sys
import BeautifulSoup
import httplib2
import requests
import HTMLParser
from apiclient import discovery, errors
from oauth2client import client, tools... | 29.475771 | 111 | 0.636826 | 805 | 6,691 | 5.228571 | 0.347826 | 0.008553 | 0.014255 | 0.011879 | 0.066999 | 0.049893 | 0.049893 | 0.049893 | 0.049893 | 0.049893 | 0 | 0.006289 | 0.239576 | 6,691 | 226 | 112 | 29.606195 | 0.820951 | 0.138395 | 0 | 0.112903 | 0 | 0 | 0.123218 | 0.005703 | 0 | 0 | 0 | 0.004425 | 0 | 0 | null | null | 0 | 0.145161 | null | null | 0.104839 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25e8c7c17bb1ced3e1614d39f9c478f8d3ccaf4a | 1,652 | py | Python | run/scorer.py | osmanbaskaya/wsid | b486fb907a85981aa0d0c30210df1d0c33fcbff2 | [
"MIT"
] | 1 | 2016-12-22T21:41:21.000Z | 2016-12-22T21:41:21.000Z | run/scorer.py | osmanbaskaya/wsid | b486fb907a85981aa0d0c30210df1d0c33fcbff2 | [
"MIT"
] | 4 | 2015-06-20T14:09:35.000Z | 2015-06-26T18:29:26.000Z | run/scorer.py | osmanbaskaya/wsid | b486fb907a85981aa0d0c30210df1d0c33fcbff2 | [
"MIT"
] | 1 | 2018-05-11T00:12:59.000Z | 2018-05-11T00:12:59.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division
import sys
import gzip
from pprint import pprint
__author__ = "Osman Baskaya"
if len(sys.argv) != 3:
print >> sys.stderr, "Usage: {} system_ans_file gold_file".format(sys.argv[0])
exit()
def fopen(filename):
if filename.endswith('... | 25.030303 | 92 | 0.623487 | 236 | 1,652 | 4.182203 | 0.34322 | 0.042553 | 0.028369 | 0.038501 | 0.151976 | 0.052685 | 0 | 0 | 0 | 0 | 0 | 0.011637 | 0.219734 | 1,652 | 65 | 93 | 25.415385 | 0.754073 | 0.086562 | 0 | 0.045455 | 0 | 0 | 0.164777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.159091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25ec6610214384e766c43219df28f713b7edd56d | 302 | py | Python | checks.d/sample_check.py | mounemoi/datadog-test-sample | 14b470f2afbd0ea72c327f00c9982bf8391071ad | [
"MIT"
] | null | null | null | checks.d/sample_check.py | mounemoi/datadog-test-sample | 14b470f2afbd0ea72c327f00c9982bf8391071ad | [
"MIT"
] | null | null | null | checks.d/sample_check.py | mounemoi/datadog-test-sample | 14b470f2afbd0ea72c327f00c9982bf8391071ad | [
"MIT"
] | null | null | null | from checks import AgentCheck
class SampleCheck(AgentCheck):
def check(self, instance):
self.gauge(1)
class SampleClass():
def __init__(self):
self._num = 0
def get(self):
return self._num
def set(self, num):
self._num = num
return self._num
| 17.764706 | 30 | 0.609272 | 38 | 302 | 4.631579 | 0.5 | 0.198864 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00939 | 0.294702 | 302 | 16 | 31 | 18.875 | 0.816901 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25ec672e1842c923f267271dd2a7c91cc559df3c | 1,013 | py | Python | search/tests/tests_forms.py | pythonmentor/david-p8 | 61e24e2ecfd23e028d4927d8c18a5791e1b97d90 | [
"MIT"
] | null | null | null | search/tests/tests_forms.py | pythonmentor/david-p8 | 61e24e2ecfd23e028d4927d8c18a5791e1b97d90 | [
"MIT"
] | 1 | 2021-03-09T21:31:27.000Z | 2021-03-09T21:31:27.000Z | search/tests/tests_forms.py | pythonmentor/david-p8 | 61e24e2ecfd23e028d4927d8c18a5791e1b97d90 | [
"MIT"
] | 2 | 2020-12-03T15:15:05.000Z | 2021-03-09T11:27:59.000Z | from django.test import TestCase
from search.forms import RegisterForm, UserForm
from django.contrib.auth.models import User
# Create your tests here.
class FormTest(TestCase):
@classmethod
def setUpTestData(cls):
cls.data = {
"email": "test@test.te",
"password": "test123",
... | 25.325 | 53 | 0.577493 | 109 | 1,013 | 5.266055 | 0.422018 | 0.055749 | 0.045296 | 0.052265 | 0.209059 | 0.209059 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.301086 | 1,013 | 39 | 54 | 25.974359 | 0.798023 | 0.060217 | 0 | 0 | 0 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.111111 | false | 0.074074 | 0.111111 | 0 | 0.259259 | 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 |
25edbbc58817d480db2bd975dca382818c6ec57f | 3,485 | py | Python | compiler/rt/storage/local.py | NetSys/kappa | de1ab3393d1e6358f66427645c77833d4dc99693 | [
"BSD-2-Clause"
] | 34 | 2018-07-02T22:02:36.000Z | 2021-12-08T22:01:38.000Z | compiler/rt/storage/local.py | NetSys/kappa | de1ab3393d1e6358f66427645c77833d4dc99693 | [
"BSD-2-Clause"
] | 1 | 2019-07-01T16:02:04.000Z | 2019-07-01T16:11:26.000Z | compiler/rt/storage/local.py | NetSys/kappa | de1ab3393d1e6358f66427645c77833d4dc99693 | [
"BSD-2-Clause"
] | 10 | 2018-07-09T02:30:21.000Z | 2022-03-21T08:46:38.000Z | """
local.py
--------
A simple local key-value store.
** Keys are not case-sensitive. **
"""
import os
from pathlib import Path
import shutil
from tempfile import NamedTemporaryFile
STORAGE_DIR = Path(".kappa-store")
def _bucket_path(bucket):
"""
Internal method, generates a Path to a bucket.
:param buc... | 23.389262 | 79 | 0.633572 | 468 | 3,485 | 4.589744 | 0.226496 | 0.045624 | 0.071229 | 0.067039 | 0.356611 | 0.33892 | 0.302142 | 0.27095 | 0.248603 | 0.210428 | 0 | 0 | 0.24505 | 3,485 | 148 | 80 | 23.547297 | 0.81642 | 0.373314 | 0 | 0.224138 | 0 | 0 | 0.070166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.362069 | 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 |
25f5ddc735919e251dc2dd8a2352d00536f7c0a3 | 29,883 | py | Python | test/python/firebird.py | cryptoboxcomics/sqlrelay-1.6.0_amber | bda2d52edeb6afb25744b22e2841b105b1e4cd01 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | test/python/firebird.py | cryptoboxcomics/sqlrelay-1.6.0_amber | bda2d52edeb6afb25744b22e2841b105b1e4cd01 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | test/python/firebird.py | cryptoboxcomics/sqlrelay-1.6.0_amber | bda2d52edeb6afb25744b22e2841b105b1e4cd01 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | #! /usr/bin/env python
# Copyright (c) 1999-2018 David Muse
# See the file COPYING for more information.
from SQLRelay import PySQLRClient
from decimal import *
import sys
import string
def checkSuccess(value,success):
if value==success:
print("success")
else:
print("wanted", type(success), ":", success)
pri... | 35.960289 | 154 | 0.729512 | 3,822 | 29,883 | 5.701727 | 0.070644 | 0.230589 | 0.113987 | 0.042952 | 0.689749 | 0.569934 | 0.508398 | 0.461913 | 0.428781 | 0.412858 | 0 | 0.059736 | 0.085768 | 29,883 | 830 | 155 | 36.003614 | 0.737921 | 0.008801 | 0 | 0.48886 | 0 | 0.007864 | 0.220338 | 0.019859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002621 | false | 0 | 0.005242 | 0 | 0.007864 | 0.166448 | 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 |
25f853d1a72b265d1b57940b0cea09915f02b73f | 5,387 | py | Python | hummingbird/ml/operator_converters/sklearn/sv.py | gwd666/hummingbird | a39f0fbf4016754f8301dbaf54b0291b6a2e02e0 | [
"MIT"
] | null | null | null | hummingbird/ml/operator_converters/sklearn/sv.py | gwd666/hummingbird | a39f0fbf4016754f8301dbaf54b0291b6a2e02e0 | [
"MIT"
] | null | null | null | hummingbird/ml/operator_converters/sklearn/sv.py | gwd666/hummingbird | a39f0fbf4016754f8301dbaf54b0291b6a2e02e0 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
Conve... | 45.268908 | 121 | 0.62261 | 736 | 5,387 | 4.422554 | 0.285326 | 0.043932 | 0.075883 | 0.045161 | 0.255607 | 0.180645 | 0.121352 | 0.121352 | 0.118587 | 0.086636 | 0 | 0.010885 | 0.232597 | 5,387 | 118 | 122 | 45.652542 | 0.776488 | 0.207908 | 0 | 0.063291 | 0 | 0 | 0.022333 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.037975 | false | 0 | 0.063291 | 0 | 0.151899 | 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 |
25f9b3a97432f30bab99997f2395a4a6c6c7ac57 | 225 | py | Python | meridian/acupoints/xingjian21.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 5 | 2015-12-14T15:14:23.000Z | 2022-02-09T10:15:33.000Z | meridian/acupoints/xingjian21.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | null | null | null | meridian/acupoints/xingjian21.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 3 | 2015-11-27T05:23:49.000Z | 2020-11-28T09:01:56.000Z | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'xíngjiān'
CN=u'行间'
NAME=u'xingjian21'
CHANNEL='liver'
CHANNEL_FULLNAME='LiverChannelofFoot-Jueyin'
SEQ='LR2'
if __name__ == '__main__':
pass
| 10.714286 | 44 | 0.684444 | 30 | 225 | 4.833333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.128889 | 225 | 20 | 45 | 11.25 | 0.719388 | 0.24 | 0 | 0 | 0 | 0 | 0.376543 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 |
d309b880517a6daed029ff76f9a403814f7c9abe | 398 | py | Python | simple_django_rest_api/urls.py | frnkn/django-simple-rest-api | d5e9166441985870b62ab68ffa7d632b71f90676 | [
"Apache-2.0"
] | 1 | 2017-01-07T18:36:24.000Z | 2017-01-07T18:36:24.000Z | simple_django_rest_api/urls.py | frnkn/django-simple-rest-api | d5e9166441985870b62ab68ffa7d632b71f90676 | [
"Apache-2.0"
] | null | null | null | simple_django_rest_api/urls.py | frnkn/django-simple-rest-api | d5e9166441985870b62ab68ffa7d632b71f90676 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
from time_now.views import TimeNowView
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'simple_django_rest_api.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^now/', TimeNowView.as_view(),... | 30.615385 | 67 | 0.673367 | 55 | 398 | 4.745455 | 0.472727 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 398 | 12 | 68 | 33.166667 | 0.767647 | 0.273869 | 0 | 0 | 0 | 0 | 0.087719 | 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 |
d30b73a2fa3ca9b47bbfea326e837142ea894f92 | 5,670 | py | Python | app/user/tests/test_user_api.py | tsiaGeorge/recipe-app-api | eed9387aafb6f3efb169ff93e315a59baec8752f | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | tsiaGeorge/recipe-app-api | eed9387aafb6f3efb169ff93e315a59baec8752f | [
"MIT"
] | 11 | 2020-02-11T23:38:02.000Z | 2022-02-10T07:14:08.000Z | app/user/tests/test_user_api.py | tsiaGeorge/recipe-app-api | eed9387aafb6f3efb169ff93e315a59baec8752f | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = reverse('user:me')
def create_user(**params):
return get_user_model().o... | 32.586207 | 78 | 0.631217 | 668 | 5,670 | 5.100299 | 0.142216 | 0.088054 | 0.094805 | 0.110068 | 0.699736 | 0.674494 | 0.630467 | 0.568535 | 0.454065 | 0.426181 | 0 | 0.013618 | 0.248854 | 5,670 | 173 | 79 | 32.774566 | 0.786335 | 0 | 0 | 0.452555 | 0 | 0 | 0.101058 | 0 | 0 | 0 | 0 | 0 | 0.189781 | 1 | 0.124088 | false | 0.160584 | 0.029197 | 0.007299 | 0.175182 | 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 |
d30f0722c3e8a80209499098a6b98c11439ce68a | 2,447 | py | Python | train_test.py | Rongpeng-Lin/pix2pixhd_Tensorflow | 3ab9dbefe290bff1023c61ca2f4efed88bf2c4bf | [
"Apache-2.0"
] | 20 | 2018-10-21T14:57:51.000Z | 2021-06-10T10:26:00.000Z | train_test.py | xuyanging/pix2pixhd_Tensorflow | 3ab9dbefe290bff1023c61ca2f4efed88bf2c4bf | [
"Apache-2.0"
] | 3 | 2019-07-15T08:20:37.000Z | 2020-08-06T01:20:15.000Z | train_test.py | xuyanging/pix2pixhd_Tensorflow | 3ab9dbefe290bff1023c61ca2f4efed88bf2c4bf | [
"Apache-2.0"
] | 9 | 2018-10-25T03:39:32.000Z | 2021-01-13T08:11:53.000Z | import argparse,sys
from pix2pixhd import *
def parse_arguments(opts):
parser = argparse.ArgumentParser()
parser.add_argument('--phase', type=str, help='train or test', default="train")
parser.add_argument('--epoch', type=int, help='Epoch', default=300)
parser.add_argument('--batch', type=int, help='B... | 61.175 | 126 | 0.704536 | 358 | 2,447 | 4.662011 | 0.298883 | 0.107849 | 0.203715 | 0.05033 | 0.29299 | 0.22169 | 0.170162 | 0.170162 | 0.170162 | 0.068304 | 0 | 0.013214 | 0.134042 | 2,447 | 39 | 127 | 62.74359 | 0.774422 | 0.024111 | 0 | 0 | 0 | 0 | 0.354228 | 0.025242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d30f36c6fe5654c920a3ad42b95b22609e06c7b5 | 2,868 | py | Python | nxmake/toolchain.py | maheshkhanwalkar/NxMake | 3124f4af5f02a06f711477005346442a5c6daf9c | [
"Apache-2.0"
] | null | null | null | nxmake/toolchain.py | maheshkhanwalkar/NxMake | 3124f4af5f02a06f711477005346442a5c6daf9c | [
"Apache-2.0"
] | null | null | null | nxmake/toolchain.py | maheshkhanwalkar/NxMake | 3124f4af5f02a06f711477005346442a5c6daf9c | [
"Apache-2.0"
] | null | null | null | from subprocess import call
from typing import List
import os
class Compiler:
def __init__(self, cc_exe: str, flags: List[str]):
self.cc_exe = cc_exe
self.flags = flags
def compile(self, src: str, target: str, verbose: bool = False) -> bool:
if verbose:
print(self.cmd_str(... | 31.866667 | 95 | 0.593445 | 413 | 2,868 | 3.997579 | 0.128329 | 0.030285 | 0.065415 | 0.050878 | 0.440945 | 0.352514 | 0.308904 | 0.264082 | 0.243489 | 0.198667 | 0 | 0.001407 | 0.256625 | 2,868 | 89 | 96 | 32.224719 | 0.772983 | 0.028243 | 0 | 0.16129 | 0 | 0 | 0.022286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.048387 | 0.096774 | 0.5 | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d31071d96a2e2e713703f47b43f2f11ade40b59f | 95 | py | Python | xm.py | xianshuaiwang/basic | b77977a77b8f082b31dfbaea01089236df1bf9e7 | [
"MIT"
] | null | null | null | xm.py | xianshuaiwang/basic | b77977a77b8f082b31dfbaea01089236df1bf9e7 | [
"MIT"
] | null | null | null | xm.py | xianshuaiwang/basic | b77977a77b8f082b31dfbaea01089236df1bf9e7 | [
"MIT"
] | null | null | null | a = 23
b = 143
c = a + b
d = 1000
e = d + c
F = 300
print(a)
print(b)
print(d)
print(e)
| 5.277778 | 9 | 0.484211 | 22 | 95 | 2.090909 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 0.347368 | 95 | 17 | 10 | 5.588235 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d32124b512b98e0cf32a373bc3b48868d1744743 | 306 | py | Python | hackerrank-python/calendar-module.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | 2 | 2021-09-06T22:13:12.000Z | 2021-11-22T08:50:04.000Z | hackerrank-python/calendar-module.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null | hackerrank-python/calendar-module.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null |
#https://www.hackerrank.com/challenges/calendar-module/problem
import calendar
import datetime
if __name__ == '__main__':
calendar_date = input()
input_date = datetime.datetime.strptime(calendar_date, '%m %d %Y').weekday()
print(calendar.day_name[input_date].upper())
| 13.909091 | 80 | 0.683007 | 36 | 306 | 5.444444 | 0.638889 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 306 | 21 | 81 | 14.571429 | 0.787149 | 0.199346 | 0 | 0 | 0 | 0 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d32a6fabdd04b98a59faa36717532989a8a2bab8 | 729 | py | Python | packages/jet_bridge_base/jet_bridge_base/views/reload.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | 2 | 2020-04-18T14:34:44.000Z | 2020-04-18T14:34:47.000Z | packages/jet_bridge_base/jet_bridge_base/views/reload.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | null | null | null | packages/jet_bridge_base/jet_bridge_base/views/reload.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | null | null | null | from jet_bridge_base.db import dispose_connection, get_request_connection
from jet_bridge_base.permissions import HasProjectPermissions
from jet_bridge_base.responses.json import JSONResponse
from jet_bridge_base.views.base.api import APIView
class ReloadView(APIView):
permission_classes = (HasProjectPermissions,... | 31.695652 | 73 | 0.702332 | 75 | 729 | 6.546667 | 0.48 | 0.057026 | 0.105906 | 0.138493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216735 | 729 | 22 | 74 | 33.136364 | 0.859895 | 0 | 0 | 0 | 0 | 0 | 0.109739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.055556 | 0.555556 | 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 |
d32b7b780b6034d881366379a5e058c5cd9089c4 | 1,034 | py | Python | social_media_back_end/accounts/models.py | osama-mohamed/social_media | e61429d5b669224f811130ad04bcd7a43992afa6 | [
"MIT"
] | null | null | null | social_media_back_end/accounts/models.py | osama-mohamed/social_media | e61429d5b669224f811130ad04bcd7a43992afa6 | [
"MIT"
] | null | null | null | social_media_back_end/accounts/models.py | osama-mohamed/social_media | e61429d5b669224f811130ad04bcd7a43992afa6 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
import os
from shutil import rmtree
User = settings.AUTH_USER_MODEL
def get_image_path(instance, filename):
return os.p... | 31.333333 | 75 | 0.786267 | 147 | 1,034 | 5.367347 | 0.469388 | 0.050697 | 0.030418 | 0.053232 | 0.060837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004357 | 0.112186 | 1,034 | 32 | 76 | 32.3125 | 0.85512 | 0 | 0 | 0 | 0 | 0 | 0.011605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.291667 | 0.083333 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d32b90b6d20c1eccdcf3db349b9c879310439435 | 4,284 | py | Python | convlab2/task/multiwoz/generate_goals.py | ljw23/ConvLab-2 | 13d48ea0e441701bd66100689b6c25b561f15525 | [
"Apache-2.0"
] | 339 | 2020-03-04T09:43:22.000Z | 2022-03-26T17:27:38.000Z | convlab2/task/multiwoz/generate_goals.py | ljw23/ConvLab-2 | 13d48ea0e441701bd66100689b6c25b561f15525 | [
"Apache-2.0"
] | 122 | 2020-04-12T04:19:06.000Z | 2022-03-23T14:20:57.000Z | convlab2/task/multiwoz/generate_goals.py | ljw23/ConvLab-2 | 13d48ea0e441701bd66100689b6c25b561f15525 | [
"Apache-2.0"
] | 138 | 2020-02-18T16:48:04.000Z | 2022-03-26T17:27:43.000Z | """
generate user goal for collecting new multiwoz data
"""
from convlab2.task.multiwoz.goal_generator import GoalGenerator
from convlab2.util.file_util import read_zipped_json
import random
import numpy as np
import json
import datetime
from pprint import pprint
def extract_slot_combination_from_goal(goal):
dom... | 36 | 102 | 0.607376 | 487 | 4,284 | 5.104723 | 0.205339 | 0.096541 | 0.057924 | 0.041834 | 0.684634 | 0.643604 | 0.582462 | 0.565969 | 0.504425 | 0.475463 | 0 | 0.01792 | 0.270542 | 4,284 | 118 | 103 | 36.305085 | 0.7776 | 0.095238 | 0 | 0.580645 | 1 | 0 | 0.114108 | 0.018932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.075269 | 0 | 0.11828 | 0.053763 | 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 |
d33d705cf02f052b9f42df2edaf3e9c0cca08e8b | 5,874 | py | Python | cloudmesh_database/dbconn.py | zaber-paul/base | 9c4d4e40db7a5059dcaa32d44be0146b6bb829c4 | [
"Apache-2.0"
] | null | null | null | cloudmesh_database/dbconn.py | zaber-paul/base | 9c4d4e40db7a5059dcaa32d44be0146b6bb829c4 | [
"Apache-2.0"
] | null | null | null | cloudmesh_database/dbconn.py | zaber-paul/base | 9c4d4e40db7a5059dcaa32d44be0146b6bb829c4 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from builtins import object
import traceback
from cloudmesh_base.locations import config_file
from cloudmesh_base.ConfigDict import ConfigDict
from cloudmesh_base.logger import LOGGER
from pymongo import MongoClient
from mongoengine import connect
# Changes of import in existing... | 37.896774 | 103 | 0.483827 | 520 | 5,874 | 5.292308 | 0.244231 | 0.079942 | 0.021802 | 0.032703 | 0.243823 | 0.21766 | 0.173328 | 0.142078 | 0.142078 | 0.142078 | 0 | 0.004895 | 0.40875 | 5,874 | 154 | 104 | 38.142857 | 0.787504 | 0.180626 | 0 | 0.300971 | 0 | 0 | 0.084315 | 0.024811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048544 | false | 0.067961 | 0.087379 | 0 | 0.23301 | 0.048544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3422419e2fe0ed7b5c5d04358d91580ca1585da | 2,581 | py | Python | ietf/group/migrations/0013_add_groupmilestone_docs2_m2m.py | unofficial-mirror/ietfdb | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | [
"BSD-3-Clause"
] | null | null | null | ietf/group/migrations/0013_add_groupmilestone_docs2_m2m.py | unofficial-mirror/ietfdb | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | [
"BSD-3-Clause"
] | null | null | null | ietf/group/migrations/0013_add_groupmilestone_docs2_m2m.py | unofficial-mirror/ietfdb | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | [
"BSD-3-Clause"
] | null | null | null | # Copyright The IETF Trust 2019, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-02-25 13:02
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import ietf.utils.models
class Migration(m... | 46.089286 | 184 | 0.651685 | 273 | 2,581 | 6.025641 | 0.307692 | 0.038906 | 0.059574 | 0.093617 | 0.509422 | 0.509422 | 0.479027 | 0.479027 | 0.479027 | 0.412158 | 0 | 0.014328 | 0.215808 | 2,581 | 55 | 185 | 46.927273 | 0.798419 | 0.046494 | 0 | 0.5 | 1 | 0 | 0.185185 | 0.083028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.152174 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d35300a1ce1ca4d0c93f18cdead12b876f931630 | 3,427 | py | Python | autopyfactory/plugins/queue/sched/WorkQueueResources.py | vc3-project/vc3-factory-plugins | 1b79bbc77c43b60fb0d531bc470a0c147d45c63a | [
"Apache-2.0"
] | null | null | null | autopyfactory/plugins/queue/sched/WorkQueueResources.py | vc3-project/vc3-factory-plugins | 1b79bbc77c43b60fb0d531bc470a0c147d45c63a | [
"Apache-2.0"
] | null | null | null | autopyfactory/plugins/queue/sched/WorkQueueResources.py | vc3-project/vc3-factory-plugins | 1b79bbc77c43b60fb0d531bc470a0c147d45c63a | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#
from autopyfactory.interfaces import SchedInterface
import logging
import math
class WorkQueueResources(SchedInterface):
id = 'workqueue'
def __init__(self, apfqueue, config, section):
try:
self.apfqueue = apfqueue
self.apfqname = apfqueue.apfqnam... | 42.308642 | 184 | 0.66443 | 398 | 3,427 | 5.575377 | 0.276382 | 0.07571 | 0.032447 | 0.029743 | 0.251915 | 0.174854 | 0.118071 | 0.118071 | 0 | 0 | 0 | 0.004137 | 0.224103 | 3,427 | 80 | 185 | 42.8375 | 0.830387 | 0.044937 | 0 | 0.08 | 0 | 0.02 | 0.132974 | 0.02888 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | 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 |
d35796ca845fa1f59ad38684a5e1f86ea360c855 | 505 | py | Python | tests/test_version.py | fschleich/mhl | 5ae1f083c05f44a4e9751dc233f7d393b01e2210 | [
"MIT"
] | 28 | 2019-10-07T18:59:29.000Z | 2022-03-19T23:05:04.000Z | tests/test_version.py | fschleich/mhl | 5ae1f083c05f44a4e9751dc233f7d393b01e2210 | [
"MIT"
] | 93 | 2019-08-14T18:02:39.000Z | 2022-03-18T19:34:57.000Z | tests/test_version.py | fschleich/mhl | 5ae1f083c05f44a4e9751dc233f7d393b01e2210 | [
"MIT"
] | 8 | 2020-11-04T14:33:42.000Z | 2022-02-15T04:19:25.000Z | """
__author__ = "Patrick Renner"
__copyright__ = "Copyright 2020, Pomfort GmbH"
__license__ = "MIT"
__maintainer__ = "Patrick Renner, Alexander Sahm"
__email__ = "opensource@pomfort.com"
"""
from click.testing import CliRunner
from ascmhl.__version__ import ascmhl_tool_version
from ascmhl.cli.ascmhl import mhltool_... | 24.047619 | 52 | 0.758416 | 61 | 505 | 5.754098 | 0.590164 | 0.074074 | 0.096866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.146535 | 505 | 20 | 53 | 25.25 | 0.802784 | 0.364356 | 0 | 0 | 0 | 0 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d35cdb865e0411889b21d82b795b2ff8fee657ea | 475 | py | Python | openprescribing/openprescribing/utils.py | rebkwok/openprescribing | 28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4 | [
"MIT"
] | null | null | null | openprescribing/openprescribing/utils.py | rebkwok/openprescribing | 28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4 | [
"MIT"
] | null | null | null | openprescribing/openprescribing/utils.py | rebkwok/openprescribing | 28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4 | [
"MIT"
] | null | null | null | import os
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
import errno
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise
def find_files(path):
paths = []
for dirpath, dirnames, filenames in os.walk(path):
... | 19 | 61 | 0.583158 | 61 | 475 | 4.47541 | 0.590164 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317895 | 475 | 24 | 62 | 19.791667 | 0.842593 | 0 | 0 | 0 | 0 | 0 | 0.004211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.111111 | 0.055556 | 0.388889 | 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 |
d35fd74487a1cba2af9ada75cb722f6a1940b4c6 | 1,771 | py | Python | digideep/environment/wrappers/save_state.py | sharif1093/digideep | e42f10a58cec6cab70ac2be5ce3af6102caefd81 | [
"BSD-2-Clause"
] | 11 | 2019-03-09T23:54:02.000Z | 2020-09-05T20:47:55.000Z | log_sessions/cartpole_8_5_05_1/modules/digideep/environment/wrappers/save_state.py | godnpeter/DMC_Clustering_PICA | 1b3e14dd4034f3941af1caa06c1d4b6f9d606408 | [
"BSD-2-Clause"
] | 1 | 2021-09-30T01:15:57.000Z | 2021-09-30T01:15:57.000Z | digideep/environment/wrappers/save_state.py | sharif1093/digideep | e42f10a58cec6cab70ac2be5ce3af6102caefd81 | [
"BSD-2-Clause"
] | null | null | null | from digideep.environment.common.vec_env import VecEnvWrapper
def get_type_name(cls):
"""Gets the name of a type.
This function is used to produce a key for each wrapper to store its states in a dictionary of wrappers' states.
Args:
cls: The input class.
Returns:
str: Name of the clas... | 32.2 | 116 | 0.616601 | 237 | 1,771 | 4.405063 | 0.35865 | 0.094828 | 0.068966 | 0.061303 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0.299831 | 1,771 | 54 | 117 | 32.796296 | 0.841935 | 0.315641 | 0 | 0.275862 | 0 | 0 | 0.07268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.068966 | 0.413793 | 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 |
d368c1a19f81e89d43712aafed9dc76bf6409cfc | 3,355 | py | Python | env/Lib/site-packages/OpenGL/raw/GLES2/OES/geometry_shader.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | env/Lib/site-packages/OpenGL/raw/GLES2/OES/geometry_shader.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | env/Lib/site-packages/OpenGL/raw/GLES2/OES/geometry_shader.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
import... | 67.1 | 122 | 0.89389 | 528 | 3,355 | 4.996212 | 0.246212 | 0.050038 | 0.075057 | 0.047763 | 0.694086 | 0.460197 | 0.16414 | 0 | 0 | 0 | 0 | 0.042677 | 0.02921 | 3,355 | 49 | 123 | 68.469388 | 0.76727 | 0.029806 | 0 | 0 | 1 | 0 | 0.355603 | 0.355603 | 0 | 0 | 0.062192 | 0 | 0 | 1 | 0.044444 | false | 0.022222 | 0.133333 | 0.022222 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3710d663b8ebe58c8208e7f7e29e313bcefce1d | 3,222 | py | Python | main/views.py | Tony-MK/Healthy | bec2a1f917bc3d79e9315d30073ea62bdab34f3b | [
"Apache-2.0"
] | null | null | null | main/views.py | Tony-MK/Healthy | bec2a1f917bc3d79e9315d30073ea62bdab34f3b | [
"Apache-2.0"
] | null | null | null | main/views.py | Tony-MK/Healthy | bec2a1f917bc3d79e9315d30073ea62bdab34f3b | [
"Apache-2.0"
] | null | null | null | # Create your views here.
from .user import User,token_generator
from .models import Parent,CareTaker
from .forms import CaretakerRegisterForm,ParentRegisterForm,LogInForm
from django.contrib.auth import authenticate,login
from django.contrib.auth import views
from django.shortcuts import redirect,render
from django... | 27.775862 | 107 | 0.734947 | 420 | 3,222 | 5.521429 | 0.311905 | 0.025873 | 0.032342 | 0.031048 | 0.351445 | 0.24364 | 0.200086 | 0.113842 | 0.113842 | 0.072445 | 0 | 0.004281 | 0.130043 | 3,222 | 115 | 108 | 28.017391 | 0.823047 | 0.020795 | 0 | 0.164557 | 0 | 0 | 0.167995 | 0.043354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.037975 | 0.126582 | 0 | 0.506329 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3717382905c35b73db63685366d8292ba181697 | 1,048 | py | Python | async_dns/core/hosts.py | gera2ld/async_dns | e82066415f334f0a6518056643b58e475abb117f | [
"MIT"
] | 59 | 2017-01-22T04:46:04.000Z | 2022-03-18T08:31:38.000Z | async_dns/core/hosts.py | gera2ld/async_dns | e82066415f334f0a6518056643b58e475abb117f | [
"MIT"
] | 26 | 2017-05-09T05:20:53.000Z | 2021-10-02T10:42:55.000Z | async_dns/core/hosts.py | gera2ld/async_dns | e82066415f334f0a6518056643b58e475abb117f | [
"MIT"
] | 21 | 2017-05-08T20:50:19.000Z | 2022-02-04T19:19:43.000Z | from io import TextIOWrapper
import os
from typing import Union
from .address import Address
if os.name == 'nt':
hosts_file = os.path.expandvars(r'%windir%\System32\drivers\etc\hosts')
elif os.name == 'posix':
hosts_file = '/etc/hosts'
else:
hosts_file = None
def _parse_lines(fd: TextIOWrapper):
for... | 25.560976 | 75 | 0.569656 | 136 | 1,048 | 4.286765 | 0.448529 | 0.077187 | 0.041166 | 0.06518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.318702 | 1,048 | 40 | 76 | 26.2 | 0.810924 | 0 | 0 | 0.205882 | 0 | 0 | 0.060115 | 0.033397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.176471 | 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 |
d371a48e625d8ab6d2f70fe05e7b2dad800d28fa | 2,528 | py | Python | src/pyOpenMS/doc/create_manual.py | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | 1 | 2018-05-23T03:43:10.000Z | 2018-05-23T03:43:10.000Z | src/pyOpenMS/doc/create_manual.py | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/pyOpenMS/doc/create_manual.py | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | null | null | null | import os
import glob
pxd_files = glob.glob("../pxds/*.pxd")
classdocu_base = "http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html"
classdocu_base = "http://www.openms.de/current_doxygen/html/"
# after how many characters should a line be wrapped
Linebreak = 85
remove_nogil = True
ignores = ["ctime", "smart_p... | 29.395349 | 79 | 0.613133 | 346 | 2,528 | 4.378613 | 0.355491 | 0.047525 | 0.073927 | 0.014521 | 0.077888 | 0.058086 | 0.031683 | 0 | 0 | 0 | 0 | 0.009274 | 0.232199 | 2,528 | 85 | 80 | 29.741176 | 0.771252 | 0.137658 | 0 | 0.032787 | 0 | 0 | 0.205448 | 0.038781 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081967 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d37f502a4748d4919497fb8cd62305d5757e66ba | 1,799 | py | Python | tests/bugs/core_5322_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_5322_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_5322_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_5322
# title: Error "no current record to fetch" if some record is to be deleted both by the statement itself and by some trigger fired during statement execution
# decription:
# Reproduced bug on WI-V3.0.0.32483, WI-T4.0.0.258
# All ... | 27.257576 | 164 | 0.654808 | 276 | 1,799 | 4.112319 | 0.365942 | 0.043172 | 0.010573 | 0.039648 | 0.188546 | 0.188546 | 0.188546 | 0.151542 | 0.081057 | 0.081057 | 0 | 0.058303 | 0.246804 | 1,799 | 65 | 165 | 27.676923 | 0.779336 | 0.266815 | 0 | 0.257143 | 0 | 0.057143 | 0.732362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.085714 | 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 |
d3918d67f1f3354c68aa3504c1800995e154e5b7 | 701 | py | Python | stateful_simulator/time_delays/Delayer.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | 2 | 2018-10-28T06:41:34.000Z | 2018-10-30T04:19:05.000Z | stateful_simulator/time_delays/Delayer.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | null | null | null | stateful_simulator/time_delays/Delayer.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | null | null | null |
from abc import ABC, abstractmethod
from stateful_simulator.datatypes.DataTypes import TimeSeriesDataSet, RecordTime
from datetime import datetime
class Delayer(ABC):
def add_delay(self, dataset: TimeSeriesDataSet) -> TimeSeriesDataSet:
timestamps = dataset.timestamps
new_timestamps = [RecordT... | 29.208333 | 108 | 0.717546 | 71 | 701 | 6.915493 | 0.422535 | 0.05499 | 0.10998 | 0.1222 | 0.162933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222539 | 701 | 24 | 109 | 29.208333 | 0.900917 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.176471 | 0 | 0.470588 | 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 |
d392dd493f3042524640fbf9868754f1a8cf02b1 | 923 | py | Python | tests/test_flask_app.py | SynBioHub/Plugin-Submit-Test | 7aac03a9747b53f52c9ef4f799a73e29b4949e8d | [
"BSD-3-Clause"
] | null | null | null | tests/test_flask_app.py | SynBioHub/Plugin-Submit-Test | 7aac03a9747b53f52c9ef4f799a73e29b4949e8d | [
"BSD-3-Clause"
] | 1 | 2021-09-29T21:26:58.000Z | 2021-09-29T21:26:58.000Z | tests/test_flask_app.py | SynBioHub/Plugin-Submit-Test | 7aac03a9747b53f52c9ef4f799a73e29b4949e8d | [
"BSD-3-Clause"
] | 2 | 2020-07-14T15:52:48.000Z | 2021-05-05T17:08:15.000Z |
def test_status(client):
resp = client.get('/status')
assert resp.status_code == 200
def test_get_eval(client):
resp = client.get('/evaluate')
assert resp.status_code == 405
def test_eval_post(client, eval_dict):
resp = client.post('/evaluate', data=eval_dict)
assert resp.status_code == 20... | 26.371429 | 70 | 0.68364 | 139 | 923 | 4.381295 | 0.417266 | 0.057471 | 0.10509 | 0.131363 | 0.285714 | 0.210181 | 0.210181 | 0 | 0 | 0 | 0 | 0.02332 | 0.210184 | 923 | 34 | 71 | 27.147059 | 0.812071 | 0.238353 | 0 | 0.333333 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.277778 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d396222beb56da9831f2ecbd7033278c5f324848 | 838 | py | Python | article/migrations/0008_auto_20151028_1814.py | mactanxin/leetcodeblog | 0896be53233f974f1e7dd0efa1b92576142c7388 | [
"MIT-0",
"MIT"
] | null | null | null | article/migrations/0008_auto_20151028_1814.py | mactanxin/leetcodeblog | 0896be53233f974f1e7dd0efa1b92576142c7388 | [
"MIT-0",
"MIT"
] | null | null | null | article/migrations/0008_auto_20151028_1814.py | mactanxin/leetcodeblog | 0896be53233f974f1e7dd0efa1b92576142c7388 | [
"MIT-0",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0007_auto_20151028_1813'),
]
operations = [
migrations.AlterField(
model_name='article',
... | 27.933333 | 136 | 0.566826 | 86 | 838 | 5.372093 | 0.534884 | 0.12987 | 0.162338 | 0.188312 | 0.437229 | 0.437229 | 0.350649 | 0 | 0 | 0 | 0 | 0.033278 | 0.282816 | 838 | 29 | 137 | 28.896552 | 0.735441 | 0.02506 | 0 | 0.391304 | 0 | 0 | 0.11411 | 0.028221 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
d399eb151acbd2e80d3e37872202de4ab7c3e91f | 1,553 | py | Python | estracao-informacao-imagens/codigo-teste-borda.py | wemerson-henrique/machine-learning | cc88d55477eb56a07f4acc7b7f79f9504be54169 | [
"MIT"
] | null | null | null | estracao-informacao-imagens/codigo-teste-borda.py | wemerson-henrique/machine-learning | cc88d55477eb56a07f4acc7b7f79f9504be54169 | [
"MIT"
] | null | null | null | estracao-informacao-imagens/codigo-teste-borda.py | wemerson-henrique/machine-learning | cc88d55477eb56a07f4acc7b7f79f9504be54169 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
img = cv2.imread('img/entrada/sigatoka3.jpeg')
imgOriginal = img;
# Converter BGR em HSV
hsv = cv2.cvtColor (img, cv2.COLOR_BGR2HSV)
# define a faixa de cor azul em HSV
lower_blue = np.array ([0, 30, 30])
upper_blue = np.array ([130,255,255])
# Limite a imagem HSV para obter apenas cores ... | 39.820513 | 125 | 0.686413 | 229 | 1,553 | 4.611354 | 0.454148 | 0.028409 | 0.051136 | 0.032197 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06181 | 0.12492 | 1,553 | 39 | 126 | 39.820513 | 0.715232 | 0.371539 | 0 | 0 | 0 | 0 | 0.123318 | 0.029148 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d39b68c29ba92183f9a9e9b6247298dead954f48 | 3,651 | py | Python | takler/core/expression_ast.py | perillaroc/takler | 607a64ff22b33d507f90acca4640963e69626879 | [
"Apache-2.0"
] | null | null | null | takler/core/expression_ast.py | perillaroc/takler | 607a64ff22b33d507f90acca4640963e69626879 | [
"Apache-2.0"
] | null | null | null | takler/core/expression_ast.py | perillaroc/takler | 607a64ff22b33d507f90acca4640963e69626879 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Optional, TYPE_CHECKING, TypeVar
from .state import NodeStatus
from .event import Event
from .meter import Meter
if TYPE_CHECKING:
from .node import Node
T = TypeVar("T")
@dataclass
class AstBase:
def set_parent_node(self, node: "Node"):
...
... | 24.503356 | 115 | 0.64585 | 453 | 3,651 | 5.046358 | 0.154525 | 0.048994 | 0.039808 | 0.049869 | 0.370079 | 0.230534 | 0.230534 | 0.218285 | 0.218285 | 0.129046 | 0 | 0.000736 | 0.255546 | 3,651 | 148 | 116 | 24.668919 | 0.840324 | 0.005478 | 0 | 0.346154 | 0 | 0 | 0.075963 | 0.020516 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163462 | false | 0 | 0.057692 | 0.067308 | 0.596154 | 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 |
d39b6ff6d7293d0e283612816683930aad70810b | 278 | py | Python | backend/submissions/migrations/0006_merge_20191113_0542.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 56 | 2018-01-20T17:18:40.000Z | 2022-03-28T22:42:04.000Z | backend/submissions/migrations/0006_merge_20191113_0542.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 2,029 | 2018-01-20T11:37:24.000Z | 2022-03-31T04:10:51.000Z | backend/submissions/migrations/0006_merge_20191113_0542.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 17 | 2018-03-17T09:44:28.000Z | 2021-12-27T19:57:35.000Z | # Generated by Django 2.2.5 on 2019-11-13 05:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('submissions', '0004_submission_slug'),
('submissions', '0005_auto_20191102_2010'),
]
operations = [
]
| 18.533333 | 51 | 0.654676 | 32 | 278 | 5.53125 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0.226619 | 278 | 14 | 52 | 19.857143 | 0.660465 | 0.161871 | 0 | 0 | 1 | 0 | 0.281385 | 0.099567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d39b9bbf50848e5fe0bf7bae94756b2f9bed2ff3 | 225 | py | Python | src/examples/SCTA_context.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | src/examples/SCTA_context.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | src/examples/SCTA_context.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | import os, sys, inspect
cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"..")))
if cmd_subfolder not in sys.path:
sys.path.insert(0, cmd_subfolder) | 56.25 | 129 | 0.742222 | 36 | 225 | 4.555556 | 0.5 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.084444 | 225 | 4 | 130 | 56.25 | 0.786408 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 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 |
6c8f91fd2604fc19df2004bcbd665c5550d80756 | 3,995 | py | Python | render_moorchana.py | nikhilpriyatam/wiki_ragas | 987d614bef4dc17bbedb4b0a13928014330a622d | [
"MIT"
] | null | null | null | render_moorchana.py | nikhilpriyatam/wiki_ragas | 987d614bef4dc17bbedb4b0a13928014330a622d | [
"MIT"
] | 7 | 2020-07-23T07:19:55.000Z | 2022-01-13T02:57:34.000Z | render_moorchana.py | nikhilpriyatam/wiki_ragas | 987d614bef4dc17bbedb4b0a13928014330a622d | [
"MIT"
] | 2 | 2021-03-05T04:55:07.000Z | 2022-02-10T06:24:03.000Z | """This module contains functions which extract the required information for
populating the raga lakshana section in a wiki article. This module defines
those functions which generate information about a raga from its moorchana
alone.
@author: Nikhil Pattisapu, iREL, IIIT-H"""
import re
import json
import argparse
i... | 37.688679 | 78 | 0.69612 | 607 | 3,995 | 4.405272 | 0.280066 | 0.020194 | 0.033657 | 0.019447 | 0.333209 | 0.247943 | 0.193717 | 0.129394 | 0.111444 | 0.111444 | 0 | 0.004644 | 0.191489 | 3,995 | 105 | 79 | 38.047619 | 0.82322 | 0.376721 | 0 | 0.103448 | 1 | 0 | 0.076633 | 0.008794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.241379 | 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 |
6c996499b6b4fc541d94dc98432291f93acd103b | 1,648 | py | Python | playwell-python-service/playwell/service/resource/web.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | 4 | 2019-09-01T02:05:09.000Z | 2022-01-04T06:08:14.000Z | playwell-python-service/playwell/service/resource/web.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | null | null | null | playwell-python-service/playwell/service/resource/web.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | 6 | 2019-11-14T13:55:17.000Z | 2022-02-09T01:42:24.000Z | """Web server resource, base on bottle framework
"""
import threading
from bottle import (
Bottle,
run
)
web_server = None
class ConfigItems:
"""Web server配置项
"""
SERVER_TYPE = "server_type" # web服务基于的IO模型,比如gevent、tornado、gunicorn等等
HOST = "host" # 监听的host地址
PORT = "port" # 监听的端... | 20.6 | 75 | 0.62318 | 190 | 1,648 | 5.194737 | 0.268421 | 0.100304 | 0.070922 | 0.052685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28216 | 1,648 | 79 | 76 | 20.860759 | 0.83432 | 0.115291 | 0 | 0.102041 | 0 | 0 | 0.027913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.061224 | 0.102041 | 0.469388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6ca52bfdd87a523d0a4be3bb89bd451034bbf119 | 1,626 | py | Python | tests/test_simpledag.py | rlupton20/simpledag | 1770f29a92347e9dd82cebe5d390c3cf5eb68685 | [
"BSD-3-Clause"
] | null | null | null | tests/test_simpledag.py | rlupton20/simpledag | 1770f29a92347e9dd82cebe5d390c3cf5eb68685 | [
"BSD-3-Clause"
] | null | null | null | tests/test_simpledag.py | rlupton20/simpledag | 1770f29a92347e9dd82cebe5d390c3cf5eb68685 | [
"BSD-3-Clause"
] | null | null | null | import simpledag
from simpledag import __version__, Dag
def test_version():
assert __version__ == '0.1.0'
def test_can_add_edge_of_nontrivial_class():
"""Test an edge can be added between non-trivial classes."""
class Test:
def __init__(self, v):
self.v = v
dag = Dag()
dag.a... | 26.225806 | 64 | 0.637146 | 274 | 1,626 | 3.616788 | 0.193431 | 0.127144 | 0.063572 | 0.091826 | 0.23108 | 0.23108 | 0.226034 | 0.226034 | 0.226034 | 0.226034 | 0 | 0.043137 | 0.215867 | 1,626 | 61 | 65 | 26.655738 | 0.734118 | 0.166667 | 0 | 0.162162 | 0 | 0 | 0.003791 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 1 | 0.243243 | false | 0.027027 | 0.054054 | 0 | 0.324324 | 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 |
6ca66937dfe334b37965fe22160ee2778828daef | 403 | py | Python | BOJ1138.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ1138.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ1138.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | n = int(__import__('sys').stdin.readline())
a = [int(_) for _ in __import__('sys').stdin.readline().split()]
res = [-1] * n
for i in range(n):
for j in range(n):
if a[j] > i:
continue
c = 0
for front in range(i):
if res[front] > j:
c += 1
if c ... | 25.1875 | 64 | 0.444169 | 60 | 403 | 2.816667 | 0.416667 | 0.12426 | 0.16568 | 0.260355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.379653 | 403 | 15 | 65 | 26.866667 | 0.66 | 0 | 0 | 0 | 0 | 0 | 0.01737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 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 |
6ca9fdcc1de997af264d46d0f985ec3b3953545c | 5,229 | py | Python | rtmaii/analysis/bpm.py | RTMAAI/CO600-Musical-Analysis | f42cc916e95735b60e7e11a864a455ad0aaf5986 | [
"MIT"
] | 1 | 2018-03-30T12:03:43.000Z | 2018-03-30T12:03:43.000Z | rtmaii/analysis/bpm.py | RTMAAI/CO600-Musical-Analysis | f42cc916e95735b60e7e11a864a455ad0aaf5986 | [
"MIT"
] | 14 | 2018-01-12T12:25:39.000Z | 2022-02-09T23:32:20.000Z | rtmaii/analysis/bpm.py | RTMAAI/CO600-Musical-Analysis | f42cc916e95735b60e7e11a864a455ad0aaf5986 | [
"MIT"
] | 7 | 2018-01-12T13:33:10.000Z | 2018-03-25T16:24:57.000Z | """BPM Analysis and Beat Detection module.
- Uses descending velocity algorithm or sound energy algorithm to
determine beats.
- Uses spaces between beats to determine bpm.
- Also includes additional helper functions
"""
import audioop
import logging
import numpy
from scipy.signal import butter, lfilte... | 23.986239 | 78 | 0.660547 | 673 | 5,229 | 5.117385 | 0.329866 | 0.015679 | 0.012195 | 0.019164 | 0.250871 | 0.250871 | 0.235772 | 0.235772 | 0.221835 | 0.166086 | 0 | 0.015645 | 0.26659 | 5,229 | 217 | 79 | 24.096774 | 0.882399 | 0.497036 | 0 | 0.118421 | 0 | 0 | 0.023556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.092105 | 0.052632 | 0 | 0.473684 | 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 |
6caad7c7a8062efee9e5d61aa42d08dcfd12e551 | 6,617 | py | Python | app/portfolio/models.py | Arusey/Porfolio-website | cb95a17c44eb45f5e564b395ab2c73940eba27cc | [
"MIT"
] | null | null | null | app/portfolio/models.py | Arusey/Porfolio-website | cb95a17c44eb45f5e564b395ab2c73940eba27cc | [
"MIT"
] | 1 | 2021-04-30T09:21:32.000Z | 2021-04-30T09:21:32.000Z | app/portfolio/models.py | Arusey/Porfolio-website | cb95a17c44eb45f5e564b395ab2c73940eba27cc | [
"MIT"
] | null | null | null | from django_better_admin_arrayfield.models.fields import ArrayField
from django.db import models
from django.utils.text import slugify
from tinymce.models import HTMLField
class BaseModel(models.Model):
"""
The common field in all the models are defined here
"""
# A timestamp representing when this ob... | 35.385027 | 83 | 0.601481 | 784 | 6,617 | 4.945153 | 0.182398 | 0.055713 | 0.088213 | 0.117617 | 0.719113 | 0.686613 | 0.650761 | 0.580861 | 0.580861 | 0.524375 | 0 | 0.013065 | 0.294393 | 6,617 | 186 | 84 | 35.575269 | 0.817306 | 0.146441 | 0 | 0.543103 | 0 | 0 | 0.028756 | 0.005714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0 | 0.034483 | 0 | 0.577586 | 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 |
6cbfc970c39936600ba85701c9d23fe2519ff57b | 12,442 | py | Python | lib/python2.7/site-packages/user_media/tests/views_tests.py | darshanxyz/shop | 213c2dffca9f03a1939ce25ba4ede83e9c865a26 | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/user_media/tests/views_tests.py | darshanxyz/shop | 213c2dffca9f03a1939ce25ba4ede83e9c865a26 | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/user_media/tests/views_tests.py | darshanxyz/shop | 213c2dffca9f03a1939ce25ba4ede83e9c865a26 | [
"MIT"
] | null | null | null | """Tests for the views of the ``django-user-media`` app."""
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
from django_libs.tests.mixins import ViewRequestFactoryTestMixin
from mixer.backend.django import mixer, get_image
from .. import views
class CreateImageViewTestCas... | 36.919881 | 79 | 0.610191 | 1,512 | 12,442 | 4.848545 | 0.109788 | 0.049107 | 0.031101 | 0.041741 | 0.795935 | 0.745737 | 0.667985 | 0.618606 | 0.576183 | 0.523394 | 0 | 0.003192 | 0.269892 | 12,442 | 336 | 80 | 37.029762 | 0.803831 | 0.051358 | 0 | 0.566802 | 0 | 0 | 0.210684 | 0.035669 | 0 | 0 | 0 | 0 | 0.012146 | 1 | 0.109312 | false | 0 | 0.020243 | 0.048583 | 0.242915 | 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 |
6cc35df160bc85e18783db310504d2201437ded0 | 300 | py | Python | ex103.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | ex103.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | ex103.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | def ficha(nome, gols):
if nome == '':
nome = '<desconhecido>'
if gols == '':
gols = 0
print(f'O jogador {nome} fez {gols} gol(s) no campeonato.')
nomeJogador = str(input('Nome do jogador: ')).title()
golsJogador = input('Número de gols: ')
ficha(nomeJogador, golsJogador)
| 30 | 63 | 0.606667 | 38 | 300 | 4.789474 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.223333 | 300 | 9 | 64 | 33.333333 | 0.776824 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.111111 | 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 |
6cc8c44f70a31da2361f21086d8a8fdd5b06ab67 | 5,710 | py | Python | footy/domain/Team.py | dallinb/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | 2 | 2020-08-27T17:59:13.000Z | 2021-10-10T02:26:20.000Z | footy/domain/Team.py | FootyStats/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | 32 | 2020-08-24T15:01:57.000Z | 2022-03-12T00:47:02.000Z | footy/domain/Team.py | dallinb/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | null | null | null | """Result - Data structure for a team."""
class Team:
"""Result - Data structure for a team."""
def __init__(self, team_name, goals_for=0, goals_against=0, home_games=0, away_games=0, points=0):
"""Construct a Team object."""
self._team_name = team_name
self._goals_for = goals_for
... | 27.190476 | 102 | 0.560946 | 631 | 5,710 | 4.808241 | 0.133122 | 0.044825 | 0.023731 | 0.034278 | 0.309163 | 0.162821 | 0.102835 | 0.09031 | 0.06526 | 0.025709 | 0 | 0.001359 | 0.355517 | 5,710 | 209 | 103 | 27.320574 | 0.823098 | 0.394571 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ccc97277e94fe45cc72aaca926388a82b9dac05 | 2,321 | py | Python | libkludge/util.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | libkludge/util.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | libkludge/util.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | 2 | 2017-12-01T20:44:14.000Z | 2021-08-21T21:47:04.000Z | #
# Copyright (c) 2010-2016, Fabric Software Inc. All rights reserved.
#
import sys
def log(opts, level, string):
if opts.verbosity >= level:
print string
def error(opts, string):
log(opts, 0, "Error: %s" % string)
def warning(opts, string):
log(opts, 1, "Warning: %s" % string)
def info(opts, string):
... | 19.181818 | 68 | 0.579061 | 245 | 2,321 | 5.306122 | 0.469388 | 0.076923 | 0.04 | 0.052308 | 0.137692 | 0.053846 | 0.053846 | 0 | 0 | 0 | 0 | 0.007101 | 0.271866 | 2,321 | 120 | 69 | 19.341667 | 0.76213 | 0.028436 | 0 | 0.019048 | 0 | 0 | 0.234118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019048 | 0.009524 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cd43de7451a747f183eacec86741a2b5e34a58f | 1,855 | py | Python | resources/tests/view_tests.py | 9sneha-n/pari | 78e1e4851e484c076ce6ba3c76d1db081aacbc9a | [
"BSD-3-Clause"
] | 35 | 2015-10-04T17:07:20.000Z | 2022-03-23T08:10:13.000Z | resources/tests/view_tests.py | 9sneha-n/pari | 78e1e4851e484c076ce6ba3c76d1db081aacbc9a | [
"BSD-3-Clause"
] | 322 | 2015-07-31T17:06:47.000Z | 2022-02-10T07:17:55.000Z | resources/tests/view_tests.py | 9sneha-n/pari | 78e1e4851e484c076ce6ba3c76d1db081aacbc9a | [
"BSD-3-Clause"
] | 14 | 2016-05-09T10:50:20.000Z | 2021-05-08T14:48:51.000Z | from django.test import TestCase
from functional_tests.factory import ResourceFactory
from django.test import Client
class ResourceListTest(TestCase):
def setUp(self):
self.client = Client()
self.resource1 = ResourceFactory(title='Resource1')
self.resource2 = ResourceFactory(title='Resourc... | 42.159091 | 98 | 0.725067 | 222 | 1,855 | 5.797297 | 0.288288 | 0.06993 | 0.097902 | 0.114219 | 0.609169 | 0.609169 | 0.584305 | 0.491064 | 0.40404 | 0.40404 | 0 | 0.017857 | 0.154717 | 1,855 | 43 | 99 | 43.139535 | 0.802934 | 0 | 0 | 0.363636 | 0 | 0 | 0.140701 | 0.030189 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.242424 | false | 0 | 0.090909 | 0 | 0.393939 | 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 |
6cdc3a212f59276ac3a4d0bcaf7a68fe6313e153 | 1,263 | py | Python | myamiweb/simpleviewer.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | myamiweb/simpleviewer.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | myamiweb/simpleviewer.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | #!/usr/bin/env python
import os
import time
from leginon import leginondata
from leginon import projectdata
def getProjectList(showall=False):
projectsdata = projectdata.projects()
projectlist = projectsdata.query()
if showall is True:
return projectlist
### select only projects that have recently collected dat... | 25.77551 | 62 | 0.729216 | 140 | 1,263 | 6.514286 | 0.5 | 0.024123 | 0.037281 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004596 | 0.138559 | 1,263 | 48 | 63 | 26.3125 | 0.83364 | 0.077593 | 0 | 0.052632 | 0 | 0 | 0.161485 | 0.02418 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cddc167276d9a1d4835104ce911e2693dc3dc17 | 6,865 | py | Python | chatbrick/brick/whoami.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | null | null | null | chatbrick/brick/whoami.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | null | null | null | chatbrick/brick/whoami.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | 1 | 2019-03-05T06:50:11.000Z | 2019-03-05T06:50:11.000Z | import logging
import time
import blueforge.apis.telegram as tg
import requests
from blueforge.apis.facebook import Message, ImageAttachment, QuickReply, QuickReplyTextItem
from blueforge.apis.facebook import TemplateAttachment, Element, GenericTemplate
logger = logging.getLogger(__name__)
BRICK_DEFAULT_IMAGE = 'http... | 38.785311 | 112 | 0.399272 | 522 | 6,865 | 5.072797 | 0.291188 | 0.054003 | 0.029079 | 0.036254 | 0.662764 | 0.629154 | 0.619335 | 0.586103 | 0.515106 | 0.499245 | 0 | 0.010291 | 0.518718 | 6,865 | 176 | 113 | 39.005682 | 0.791162 | 0.028842 | 0 | 0.519737 | 0 | 0.013158 | 0.132662 | 0.029597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006579 | false | 0 | 0.039474 | 0 | 0.072368 | 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 |
6ce5bef14488ef6eb0ec0b6c81c2acd441bc7a7e | 675 | py | Python | jessiql/features/cursor/cursors/__init__.py | kolypto/py-jessiql | 724a1eda84e912483bb2d96bb0f74ce6a12098a3 | [
"MIT"
] | null | null | null | jessiql/features/cursor/cursors/__init__.py | kolypto/py-jessiql | 724a1eda84e912483bb2d96bb0f74ce6a12098a3 | [
"MIT"
] | null | null | null | jessiql/features/cursor/cursors/__init__.py | kolypto/py-jessiql | 724a1eda84e912483bb2d96bb0f74ce6a12098a3 | [
"MIT"
] | null | null | null | from typing import Union
from .base import CursorImplementation, PageLinks
from .skip import SkipCursor, SkipCursorData, SkipPageInfo
from .keyset import KeysetCursor, KeysetCursorData, KeysetPageInfo
# A cursor data type
CursorData = Union[SkipCursorData, KeysetCursorData]
# A page info type
PageInfo = Union[SkipP... | 28.125 | 74 | 0.761481 | 74 | 675 | 6.918919 | 0.581081 | 0.027344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171852 | 675 | 23 | 75 | 29.347826 | 0.915921 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6ce88a1769d2b4d7fb9c5442c4e85714e2fa58f3 | 4,229 | py | Python | src/aprl/visualize/make_videos.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 211 | 2019-02-22T08:07:25.000Z | 2022-03-14T10:44:20.000Z | src/aprl/visualize/make_videos.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 51 | 2019-02-08T01:39:49.000Z | 2022-02-15T21:21:46.000Z | src/aprl/visualize/make_videos.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 41 | 2019-04-23T05:01:49.000Z | 2022-03-16T06:51:19.000Z | """Generate videos for adversaries and standard baselines."""
import logging
import os
import os.path as osp
from sacred import Experiment
from sacred.observers import FileStorageObserver
from aprl.common.utils import make_timestamp
from aprl.configs import DATA_LOCATION
from aprl.multi.score import extract_data, ru... | 28.965753 | 99 | 0.677938 | 522 | 4,229 | 5.124521 | 0.295019 | 0.063551 | 0.049346 | 0.035888 | 0.244486 | 0.19215 | 0.134579 | 0.07215 | 0.07215 | 0.07215 | 0 | 0.006314 | 0.213526 | 4,229 | 145 | 100 | 29.165517 | 0.797956 | 0.098841 | 0 | 0.127273 | 1 | 0 | 0.1701 | 0.058901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.081818 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ce9e40584d13201d9d74881a2de4c9a3a29045a | 1,327 | py | Python | tests/test_util.py | xflash96/gitolite-sshkey-form | 65a1546f6e6d146ed793f35066bd45a1224ddbab | [
"BSD-3-Clause"
] | null | null | null | tests/test_util.py | xflash96/gitolite-sshkey-form | 65a1546f6e6d146ed793f35066bd45a1224ddbab | [
"BSD-3-Clause"
] | null | null | null | tests/test_util.py | xflash96/gitolite-sshkey-form | 65a1546f6e6d146ed793f35066bd45a1224ddbab | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from gitolite_sshkey_form import util
from tests.util import *
def test_pairwise():
i = util.pairwise((1,2,3))
assert i.next() == (1,2)
assert i.next() == (2,3)
i = util.pairwise((1,))
with raises(StopIteration):
i.next()
def test_onlyint():
... | 23.696429 | 55 | 0.569706 | 198 | 1,327 | 3.767677 | 0.313131 | 0.134048 | 0.042895 | 0.08445 | 0.143432 | 0.143432 | 0.073727 | 0.073727 | 0 | 0 | 0 | 0.039614 | 0.220045 | 1,327 | 55 | 56 | 24.127273 | 0.681159 | 0.033911 | 0 | 0 | 0 | 0 | 0.071931 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.184211 | false | 0 | 0.052632 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ced33e8c0ac03d36ce576c1fc69cc0b39a136ca | 1,342 | py | Python | angr/engines/pcode/arch/ArchPcode_SuperH_BE_32_SH_1.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/engines/pcode/arch/ArchPcode_SuperH_BE_32_SH_1.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/engines/pcode/arch/ArchPcode_SuperH_BE_32_SH_1.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | ###
### This file was automatically generated
###
from archinfo.arch import register_arch, Endness, Register
from .common import ArchPcode
class ArchPcode_SuperH_BE_32_SH_1(ArchPcode):
name = 'SuperH:BE:32:SH-1'
pcode_arch = 'SuperH:BE:32:SH-1'
description = 'SuperH SH-1 processor 32-bit big-endian'
... | 29.173913 | 81 | 0.567064 | 176 | 1,342 | 4.210227 | 0.465909 | 0.024292 | 0.067476 | 0.080972 | 0.122807 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.141844 | 0.264531 | 1,342 | 45 | 82 | 29.822222 | 0.608916 | 0.027571 | 0 | 0 | 1 | 0 | 0.11583 | 0 | 0 | 0 | 0.080309 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.324324 | 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 |
6cff44d55bd92796927c2cac01fa8ce079d197b3 | 3,757 | py | Python | pyhfo/core/phase_coupling.py | andersonbrisil/pyhfo | 0fdbe834442550117dc9d9c8f611989bb600db62 | [
"MIT"
] | null | null | null | pyhfo/core/phase_coupling.py | andersonbrisil/pyhfo | 0fdbe834442550117dc9d9c8f611989bb600db62 | [
"MIT"
] | null | null | null | pyhfo/core/phase_coupling.py | andersonbrisil/pyhfo | 0fdbe834442550117dc9d9c8f611989bb600db62 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 16 18:04:26 2015
@author: anderson
"""
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal as sig
from . import pop_channel, eegfilt
from pyhfo.ui import adjust_spines
def phase_coupling(SPK,Data,low_cut,high_cut,cluster = 'all', ch=None,order = None,... | 35.443396 | 157 | 0.573862 | 573 | 3,757 | 3.670157 | 0.263525 | 0.032335 | 0.014265 | 0.019971 | 0.447932 | 0.405611 | 0.370423 | 0.328103 | 0.29767 | 0.252021 | 0 | 0.035548 | 0.258717 | 3,757 | 106 | 158 | 35.443396 | 0.719569 | 0.01943 | 0 | 0.364865 | 0 | 0 | 0.060059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f0997360501d45fa27e376c1dc49b977890324d | 1,180 | py | Python | recipes/recipe_modules/windows_scripts_executor/add_windows_package.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | recipes/recipe_modules/windows_scripts_executor/add_windows_package.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 4 | 2022-03-17T18:58:21.000Z | 2022-03-17T18:58:22.000Z | recipes/recipe_modules/windows_scripts_executor/add_windows_package.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
INSTALL_PACKAGE_CMD = 'Add-WindowsPackage'
INSTALL_PACKAGE_SCRIPT = 'Add-WindowsPackage.ps1'
INSTALL_PACKAGE_PATH = '-PackagePath {}'
INSTALL_PACKAGE_ROOT = ... | 31.052632 | 72 | 0.65339 | 142 | 1,180 | 5.176056 | 0.429577 | 0.285714 | 0.092517 | 0.057143 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.25 | 1,180 | 37 | 73 | 31.891892 | 0.824859 | 0.189831 | 0 | 0 | 0 | 0 | 0.13622 | 0.023231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.074074 | 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 |
9f116f497edb401b492c9f5f4f36f5cca431216b | 41,118 | pyw | Python | AoE2DE_AIbuilder.pyw | JackkelDragon/AoE2DE_AIBuilder | 2a1b5e126c5d483f20fef0eca11a87c91966dd35 | [
"MIT"
] | 7 | 2020-10-19T11:30:51.000Z | 2021-10-05T15:57:25.000Z | AoE2DE_AIbuilder.pyw | JackkelDragon/AoE2DE_AIBuilder | 2a1b5e126c5d483f20fef0eca11a87c91966dd35 | [
"MIT"
] | null | null | null | AoE2DE_AIbuilder.pyw | JackkelDragon/AoE2DE_AIBuilder | 2a1b5e126c5d483f20fef0eca11a87c91966dd35 | [
"MIT"
] | 2 | 2020-10-24T17:39:18.000Z | 2022-02-20T21:59:42.000Z | try:
from Tkinter import *
from ttk import *
import tkFileDialog
except ImportError:
import tkinter as Tkinter
from tkinter import *
import tkinter.ttk as ttk
from tkinter.ttk import *
import tkinter.filedialog as tkFileDialog
import json
## Function definitions
## Create... | 53.608866 | 1,927 | 0.661535 | 6,086 | 41,118 | 4.458101 | 0.131778 | 0.009656 | 0.039216 | 0.044118 | 0.40513 | 0.356185 | 0.314831 | 0.274436 | 0.201902 | 0.141493 | 0 | 0.046965 | 0.162654 | 41,118 | 767 | 1,928 | 53.608866 | 0.741069 | 0.031884 | 0 | 0.107075 | 0 | 0.095602 | 0.500874 | 0.13706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01912 | false | 0 | 0.01912 | 0 | 0.051625 | 0.001912 | 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 |
9f1e896e87f3e258a8a1cb2f413191b272f714ed | 778 | py | Python | docs/gallery/pca/plot_003_scree.py | andersle/psynlig | 34ade63808ab4b215ae20df24ffd9c0c03adf272 | [
"MIT"
] | 1 | 2022-03-26T22:25:17.000Z | 2022-03-26T22:25:17.000Z | docs/gallery/pca/plot_003_scree.py | andersle/psynlig | 34ade63808ab4b215ae20df24ffd9c0c03adf272 | [
"MIT"
] | null | null | null | docs/gallery/pca/plot_003_scree.py | andersle/psynlig | 34ade63808ab4b215ae20df24ffd9c0c03adf272 | [
"MIT"
] | null | null | null | # Copyright (c) 2020, Anders Lervik.
# Distributed under the MIT License. See LICENSE for more info.
"""
Scree plot
==========
This example will show the eigenvalues of principal components
from a
`principal component analysis
<https://en.wikipedia.org/wiki/Principal_component_analysis>`_.
"""
from matplotlib import p... | 25.096774 | 72 | 0.763496 | 115 | 778 | 5.06087 | 0.608696 | 0.056701 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013081 | 0.115681 | 778 | 30 | 73 | 25.933333 | 0.832849 | 0.365039 | 0 | 0 | 0 | 0 | 0.070103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9f25b6ce6e89002c185da98ce00db678103b2830 | 772 | py | Python | examples/simple_email_pattern.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | examples/simple_email_pattern.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | examples/simple_email_pattern.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | 1 | 2019-04-16T18:37:32.000Z | 2019-04-16T18:37:32.000Z | #!/usr/bin/env python
# Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
"""Creates the CybOX content for CybOX_Simple_Email_Pattern.xml
"""
from cybox.core import Observables
from cybox.objects.email_message_object import EmailMessage
import cybox.utils
def mai... | 25.733333 | 65 | 0.690415 | 99 | 772 | 5.20202 | 0.585859 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007962 | 0.186529 | 772 | 29 | 66 | 26.62069 | 0.812102 | 0.15544 | 0 | 0 | 0 | 0 | 0.256014 | 0.07732 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f2af5bb4549a795dd28907871fadeb457aae6cd | 833 | py | Python | libs/rest.py | nramanan/nellie-bot | c21f9797a5d9999179b688a51122e3f53f3e4303 | [
"MIT"
] | 1 | 2018-07-25T10:59:02.000Z | 2018-07-25T10:59:02.000Z | libs/rest.py | rneeja/nellie-bot | c21f9797a5d9999179b688a51122e3f53f3e4303 | [
"MIT"
] | 9 | 2015-03-25T21:42:04.000Z | 2015-06-27T16:26:01.000Z | libs/rest.py | rneeja/nellie-bot | c21f9797a5d9999179b688a51122e3f53f3e4303 | [
"MIT"
] | null | null | null | import requests,sys
from config_helper import get_proxies
def get_pem():
if get_proxies()==None:
return None
pem_resp = requests.get('http://curl.haxx.se/ca/cacert.pem', proxies=get_proxies())
if pem_resp.status_code != 200:
print "ERROR: Received bad response from api: %d" % pem_resp.statu... | 34.708333 | 87 | 0.648259 | 122 | 833 | 4.303279 | 0.385246 | 0.066667 | 0.106667 | 0.064762 | 0.31619 | 0.31619 | 0.205714 | 0.205714 | 0.205714 | 0.205714 | 0 | 0.010606 | 0.207683 | 833 | 23 | 88 | 36.217391 | 0.784848 | 0 | 0 | 0.095238 | 0 | 0 | 0.210084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f2d75727c96d33cf581930ee6bab3097609572d | 624 | py | Python | tests/github/test_meta.py | odidev/aiogithubapi | ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd | [
"MIT"
] | null | null | null | tests/github/test_meta.py | odidev/aiogithubapi | ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd | [
"MIT"
] | null | null | null | tests/github/test_meta.py | odidev/aiogithubapi | ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd | [
"MIT"
] | null | null | null | """Test meta."""
# pylint: disable=missing-docstring
import pytest
from aiogithubapi import GitHubAPI
from tests.common import MockedRequests
@pytest.mark.asyncio
async def test_meta(github_api: GitHubAPI, mock_requests: MockedRequests):
response = await github_api.meta()
assert response.status == 200
a... | 29.714286 | 77 | 0.754808 | 71 | 624 | 6.464789 | 0.633803 | 0.078431 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030189 | 0.150641 | 624 | 20 | 78 | 31.2 | 0.835849 | 0.072115 | 0 | 0 | 0 | 0 | 0.1274 | 0.075044 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f38799913c5d0fc21e62ad194e559274002cffd | 2,882 | py | Python | libs/option_selector.py | DarshHariki/Pictorganizer | 5576a12b55ed85923610b0d592b01060511d5e67 | [
"MIT"
] | null | null | null | libs/option_selector.py | DarshHariki/Pictorganizer | 5576a12b55ed85923610b0d592b01060511d5e67 | [
"MIT"
] | null | null | null | libs/option_selector.py | DarshHariki/Pictorganizer | 5576a12b55ed85923610b0d592b01060511d5e67 | [
"MIT"
] | null | null | null | from table import table
import os
class option_selector:
def __init__(self):
pass
def get_selection(self, options, show_also=[], message='Please make a selection: ',allow_writein=False, sort=True):
if sort:
options = sorted(options, key=lambda s: s.lower())
show_also = [... | 40.027778 | 119 | 0.507634 | 343 | 2,882 | 4.104956 | 0.271137 | 0.079545 | 0.03196 | 0.026989 | 0.177557 | 0.109375 | 0.109375 | 0.109375 | 0.045455 | 0.045455 | 0 | 0.006623 | 0.37127 | 2,882 | 71 | 120 | 40.591549 | 0.770419 | 0.005552 | 0 | 0.179104 | 0 | 0 | 0.017452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.029851 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f3e89787fb702778425034bbe2bb9830feaa8a3 | 1,846 | py | Python | clu/testing/obsolete.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T08:17:59.000Z | 2019-07-02T08:17:59.000Z | clu/testing/obsolete.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 13 | 2019-12-17T02:28:30.000Z | 2021-11-17T03:46:10.000Z | clu/testing/obsolete.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import shutil
import pytest
@pytest.fixture
def shared_datadir(request, tmpdir):
""" Vendored version of “shared_datadir(…)” from the pytest-datadir package """
from clu.constants.polyfills import Path
from clu.fs.misc import win32_longpath
# Get the shared data ... | 34.185185 | 85 | 0.694475 | 250 | 1,846 | 5.028 | 0.32 | 0.063644 | 0.038186 | 0.040573 | 0.300716 | 0.26253 | 0.222753 | 0.222753 | 0.222753 | 0.222753 | 0 | 0.009655 | 0.214518 | 1,846 | 53 | 86 | 34.830189 | 0.851034 | 0.380282 | 0 | 0.444444 | 0 | 0 | 0.007175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.296296 | 0 | 0.518519 | 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 |
9f4368db471eb9e9ffbe87a19edcdb08f1ec645c | 616 | py | Python | database/create.py | CzarSimon/tweet-clustering | ae76f1c5d15bbdd445a8eb2c24429e114a28c15c | [
"MIT"
] | null | null | null | database/create.py | CzarSimon/tweet-clustering | ae76f1c5d15bbdd445a8eb2c24429e114a28c15c | [
"MIT"
] | null | null | null | database/create.py | CzarSimon/tweet-clustering | ae76f1c5d15bbdd445a8eb2c24429e114a28c15c | [
"MIT"
] | null | null | null | import sqlite3 as db
import sys
def _create_schema():
print "Creating schema in tweet db sqlite version: " + db.sqlite_version
try:
conn = db.connect("../tweet.db")
cur = conn.cursor()
cur.execute("DROP TABLE IF EXISTS Tweets")
cur.execute("CREATE TABLE Tweets(Id INT, t... | 24.64 | 78 | 0.566558 | 77 | 616 | 4.337662 | 0.571429 | 0.071856 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.321429 | 616 | 24 | 79 | 25.666667 | 0.794258 | 0 | 0 | 0 | 0 | 0 | 0.283784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f4c9e89e00f4782fa77f90b917f999f3b25de3c | 458 | py | Python | Part 1.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | 17 | 2020-03-23T10:16:38.000Z | 2022-02-26T05:03:33.000Z | Part 1.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | null | null | null | Part 1.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | 5 | 2020-09-16T12:20:00.000Z | 2021-05-16T09:20:44.000Z | import spacy
nlp = spacy.load('en_core_web_lg')
# text to be examine
text = """London is the capital and most populous city of England and
the United Kingdom. Standing on the River Thames in the south east
of the island of Great Britain, London has been a major settlement
for two millennia. It was founde... | 30.533333 | 73 | 0.71179 | 76 | 458 | 4.236842 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209607 | 458 | 14 | 74 | 32.714286 | 0.889503 | 0.039301 | 0 | 0 | 0 | 0 | 0.745283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f4e9fb247e5fc4cf3a6bf2eb38c2f887605e8a8 | 588 | py | Python | contrib/dns-seeder/test.py | dmitriy79/IDC-CORE | 211f7a7470cd341aa322166619bfca57d75260b8 | [
"MIT"
] | 4 | 2019-07-07T13:28:08.000Z | 2020-06-04T18:02:27.000Z | contrib/dns-seeder/test.py | dmitriy79/IDC-CORE | 211f7a7470cd341aa322166619bfca57d75260b8 | [
"MIT"
] | null | null | null | contrib/dns-seeder/test.py | dmitriy79/IDC-CORE | 211f7a7470cd341aa322166619bfca57d75260b8 | [
"MIT"
] | 2 | 2020-03-07T02:25:32.000Z | 2020-03-18T22:31:40.000Z | import socket
seeders = [
'dseed1.id-chain.org',
'dseed2.id-chain.org',
'dseed3.id-chain.org',
'dseed4.id-chain.org',
'dseed5.id-chain.org',
'dseed6.id-chain.org'
]
for seeder in seeders:
try:
ais = socket.getaddrinfo(seeder, 0)
except socket.gaierror:
ais = []
... | 21.777778 | 49 | 0.561224 | 79 | 588 | 4.177215 | 0.56962 | 0.127273 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02657 | 0.295918 | 588 | 26 | 50 | 22.615385 | 0.770531 | 0.147959 | 0 | 0 | 0 | 0 | 0.23494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.05 | 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 |
9f4f85582f87c8f20e6a21e26605436b1556691f | 1,431 | py | Python | ScalableLSH/DiskE2LSH/Visualize/getTop_forE2matlab.py | USCDataScience/cmu-fg-bg-similarity | d8fc9a53937551f7a052bc2c6f442bcc29ea2615 | [
"Apache-2.0"
] | 8 | 2020-04-13T21:40:26.000Z | 2022-01-22T11:32:31.000Z | ScalableLSH/DiskE2LSH/Visualize/getTop_forE2matlab.py | USCDataScience/cmu-fg-bg-similarity | d8fc9a53937551f7a052bc2c6f442bcc29ea2615 | [
"Apache-2.0"
] | null | null | null | ScalableLSH/DiskE2LSH/Visualize/getTop_forE2matlab.py | USCDataScience/cmu-fg-bg-similarity | d8fc9a53937551f7a052bc2c6f442bcc29ea2615 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
inputdir = '../tempdata/matches2'
outputdir = '../tempdata/tops/'
boxesdir = '../tempdata/selsearch_boxes/'
## Expects _posn files to be 0 indexed
N = 237
def main():
for i in range(1, N + 1):
print i
fpath = os.path.join(inputdir, str(i) + '.txt')
f = open(fpa... | 28.62 | 114 | 0.540881 | 214 | 1,431 | 3.546729 | 0.373832 | 0.02108 | 0.023715 | 0.047431 | 0.057971 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0.016765 | 0.291405 | 1,431 | 49 | 115 | 29.204082 | 0.731755 | 0.050314 | 0 | 0.05 | 0 | 0 | 0.082718 | 0.020679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f5822a58589c037f805bff02101b9dfbc83886a | 479 | py | Python | setup.py | bnb32/corona_modeling | 9db20be6739f21f2df3ce6c557c17f3b39fafa75 | [
"MIT"
] | null | null | null | setup.py | bnb32/corona_modeling | 9db20be6739f21f2df3ce6c557c17f3b39fafa75 | [
"MIT"
] | null | null | null | setup.py | bnb32/corona_modeling | 9db20be6739f21f2df3ce6c557c17f3b39fafa75 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='covid',
version='0.1.0',
url='https://github.com/bnb32/covid_modeling',
author='Brandon N. Benton',
description='various utilities for modeling covid',
packages=['covid'],
package_dir={'covid':'./covid'},
install_requires=['n... | 28.176471 | 57 | 0.496868 | 42 | 479 | 5.595238 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016447 | 0.365344 | 479 | 16 | 58 | 29.9375 | 0.756579 | 0 | 0 | 0 | 0 | 0 | 0.325679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f5d2d606fe02c60d6c3b605ad06599519f28893 | 7,671 | py | Python | autoprovision.py | ashutoshshanker/ops-aaa-utils | 10190e1f4cb28666cc82887562ad833715ed75a1 | [
"Apache-2.0"
] | null | null | null | autoprovision.py | ashutoshshanker/ops-aaa-utils | 10190e1f4cb28666cc82887562ad833715ed75a1 | [
"Apache-2.0"
] | null | null | null | autoprovision.py | ashutoshshanker/ops-aaa-utils | 10190e1f4cb28666cc82887562ad833715ed75a1 | [
"Apache-2.0"
] | 1 | 2021-09-10T08:12:50.000Z | 2021-09-10T08:12:50.000Z | #!/usr/bin/env python
# Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/lice... | 29.278626 | 79 | 0.609829 | 930 | 7,671 | 4.884946 | 0.280645 | 0.050187 | 0.010566 | 0.013867 | 0.251596 | 0.164869 | 0.109619 | 0.081004 | 0.081004 | 0.081004 | 0 | 0.006064 | 0.269065 | 7,671 | 261 | 80 | 29.390805 | 0.804173 | 0.15174 | 0 | 0.344828 | 0 | 0 | 0.157996 | 0.036658 | 0 | 0 | 0 | 0.003831 | 0 | 0 | null | null | 0 | 0.051724 | null | null | 0.063218 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f5dea963e2e49b943c2a4d7646e71137d33a3fe | 3,382 | py | Python | home/migrations/0005_manifestsettings.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 20 | 2021-04-29T12:36:25.000Z | 2022-03-27T12:17:41.000Z | home/migrations/0005_manifestsettings.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 892 | 2021-02-02T13:56:06.000Z | 2022-03-31T11:25:44.000Z | home/migrations/0005_manifestsettings.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 28 | 2021-02-19T19:28:37.000Z | 2022-03-11T11:46:00.000Z | # Generated by Django 3.1.13 on 2021-07-13 11:46
from django.db import migrations, models
import django.db.models.deletion
import home.models
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0022_uploadedimage'),
('home', '0004_auto_20210707_1005'),
]
operation... | 84.55 | 551 | 0.641632 | 393 | 3,382 | 5.358779 | 0.381679 | 0.078348 | 0.05698 | 0.076448 | 0.403134 | 0.306743 | 0.215575 | 0.167142 | 0.167142 | 0.167142 | 0 | 0.046071 | 0.172088 | 3,382 | 39 | 552 | 86.717949 | 0.706071 | 0.013601 | 0 | 0 | 1 | 0 | 0.317936 | 0.006899 | 0.090909 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f626ea0a6b98ad9011bd16d758cd936f1edd017 | 1,268 | py | Python | scripts/calculate_bin_concurrence.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | scripts/calculate_bin_concurrence.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | scripts/calculate_bin_concurrence.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | import os
def calculate_bin_concurrence(tsv_path, dir_path):
suffix_index = tsv_path.rindex(".train.labels.tsv")
tf_name = tsv_path[:suffix_index]
openi = open(dir_path + tsv_path)
bound_line_count = 0
bin_counts = []
for k in openi:
k = k.rstrip()
splitted = k.split("\t")
... | 31.7 | 107 | 0.559937 | 171 | 1,268 | 3.859649 | 0.362573 | 0.05303 | 0.084848 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016092 | 0.31388 | 1,268 | 40 | 108 | 31.7 | 0.742529 | 0 | 0 | 0 | 0 | 0 | 0.07959 | 0.034673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f62c71e55351587e2e53c1acfac72de8dde3993 | 494 | py | Python | emu/oper/cmp.py | en0/emu | 3891184a17e8f827acba48f523f270842a1dc025 | [
"MIT"
] | null | null | null | emu/oper/cmp.py | en0/emu | 3891184a17e8f827acba48f523f270842a1dc025 | [
"MIT"
] | null | null | null | emu/oper/cmp.py | en0/emu | 3891184a17e8f827acba48f523f270842a1dc025 | [
"MIT"
] | null | null | null | from emu.oper.operation import Operation
from emu.contract import IExecutionUnit
from emu.const import FLG_CORE_EQ, FLG_CORE_LT, FLG_CORE_GT
class CmpOp(Operation):
def execute(self, eu: IExecutionUnit, *args) -> bool:
a, b = args
eu.clear_flag(FLG_CORE_EQ | FLG_CORE_LT | FLG_CORE_GT)
if a... | 29.058824 | 62 | 0.635628 | 78 | 494 | 3.74359 | 0.371795 | 0.215753 | 0.150685 | 0.061644 | 0.39726 | 0.39726 | 0.39726 | 0.39726 | 0.35274 | 0.19863 | 0 | 0 | 0.281377 | 494 | 16 | 63 | 30.875 | 0.822535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.428571 | 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 |
9f65ed27b69e4e86a1be79ef37824e92c7957031 | 4,837 | py | Python | app.py | cope-systems/bottle-gitea-auth-example | a9ad42226e127668bf673b23aaca6c26f521cfae | [
"Apache-2.0"
] | null | null | null | app.py | cope-systems/bottle-gitea-auth-example | a9ad42226e127668bf673b23aaca6c26f521cfae | [
"Apache-2.0"
] | null | null | null | app.py | cope-systems/bottle-gitea-auth-example | a9ad42226e127668bf673b23aaca6c26f521cfae | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
This is an example application of how to make use of Bottle to provide
sub-request authentication with NGINX, particularly with a Gitea
SQLite3 database.
Copyright (c) 2019, Robert Cope/Cope Systems.
License: Apache (see LICENSE file)
"""
from vendor import bottle
from sqlite3 import dbapi2 a... | 28.28655 | 86 | 0.629316 | 581 | 4,837 | 5.115318 | 0.36833 | 0.026918 | 0.04004 | 0.033647 | 0.084791 | 0.056528 | 0.056528 | 0.028937 | 0 | 0 | 0 | 0.013125 | 0.259665 | 4,837 | 170 | 87 | 28.452941 | 0.816811 | 0.174902 | 0 | 0.106195 | 0 | 0.00885 | 0.161082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070796 | false | 0.088496 | 0.061947 | 0.017699 | 0.221239 | 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 |
9f661fe73d56fa11d04f969491adbade0dd453e8 | 1,009 | py | Python | Projects/Online Workouts/w3resource/Basic - Part-I/program-17.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Online Workouts/w3resource/Basic - Part-I/program-17.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Online Workouts/w3resource/Basic - Part-I/program-17.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#############################################################################
# #
# Program purpose: Test whether a number is within 100 of 1000 or #
# 2000. ... | 43.869565 | 78 | 0.363726 | 81 | 1,009 | 4.345679 | 0.679012 | 0.059659 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060956 | 0.398414 | 1,009 | 22 | 79 | 45.863636 | 0.518946 | 0.544103 | 0 | 0 | 0 | 0 | 0.14726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9f66224b29b29ce91cc95df13c2e95e084a22636 | 10,391 | py | Python | notebooks/.ipynb_checkpoints/compare_train_cem-checkpoint.py | prajwalresearch/rearrangement | 7a430fe320dcea42f47569ff3126793e26e986d7 | [
"BSD-3-Clause"
] | null | null | null | notebooks/.ipynb_checkpoints/compare_train_cem-checkpoint.py | prajwalresearch/rearrangement | 7a430fe320dcea42f47569ff3126793e26e986d7 | [
"BSD-3-Clause"
] | null | null | null | notebooks/.ipynb_checkpoints/compare_train_cem-checkpoint.py | prajwalresearch/rearrangement | 7a430fe320dcea42f47569ff3126793e26e986d7 | [
"BSD-3-Clause"
] | null | null | null |
import jax
import jax.numpy as jnp
import numpy as np
from jax import jit, vmap, random
import time
import roboticstoolbox as rtb
import cvxopt
robot = rtb.models.DH.Panda()
import autograd.numpy as np
import pdb
import cvxopt
from cvxopt import solvers
# import random
import matplotlib.pyplot as plt
from spatialmat... | 44.788793 | 1,181 | 0.622943 | 2,063 | 10,391 | 2.928745 | 0.11682 | 0.10427 | 0.121648 | 0.04237 | 0.460609 | 0.425687 | 0.357498 | 0.349553 | 0.325223 | 0.317279 | 0 | 0.074604 | 0.173131 | 10,391 | 231 | 1,182 | 44.982684 | 0.628608 | 0.044654 | 0 | 0.013986 | 0 | 0 | 0.008802 | 0.003136 | 0 | 0 | 0 | 0 | 0.006993 | 1 | 0.041958 | false | 0 | 0.118881 | 0.013986 | 0.202797 | 0.055944 | 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 |
9f6634140154d88e2189eed56ec3196ca83fffbb | 664 | py | Python | config/base.py | dwisulfahnur/flask-login | c2ae3a5cdea3b8a057d6d3dca42c57b6f064b0df | [
"Apache-2.0"
] | null | null | null | config/base.py | dwisulfahnur/flask-login | c2ae3a5cdea3b8a057d6d3dca42c57b6f064b0df | [
"Apache-2.0"
] | null | null | null | config/base.py | dwisulfahnur/flask-login | c2ae3a5cdea3b8a057d6d3dca42c57b6f064b0df | [
"Apache-2.0"
] | null | null | null | """ Base Configuration """
import os
PROJECT_DIR = os.path.dirname(os.path.abspath(__name__))
APP_DIR = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
SECRET_KEY = '4ku 4n4k s3h4t'
ASSETS_DEBUG = False
CACHE_TYPE = 'simple'
# SECURITY CONFIG
SECURITY_REGI... | 26.56 | 76 | 0.778614 | 93 | 664 | 5.225806 | 0.526882 | 0.08642 | 0.080247 | 0.061728 | 0.078189 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018581 | 0.108434 | 664 | 24 | 77 | 27.666667 | 0.802365 | 0.078313 | 0 | 0 | 0 | 0 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.058824 | 0 | 0.058824 | 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 |
9f68826d1bbaaa6c7755ff6889646ea9e3c12c2f | 7,064 | py | Python | jans-linux-setup/jans_setup/static/extension/person_authentication/AgamaBridge.py | JanssenProject/jans | 8d57d01b998bfe87a2377bbe9023dd97fb03cc9f | [
"Apache-2.0"
] | 18 | 2022-01-13T13:45:13.000Z | 2022-03-30T04:41:18.000Z | jans-linux-setup/jans_setup/static/extension/person_authentication/AgamaBridge.py | JanssenProject/jans | 8d57d01b998bfe87a2377bbe9023dd97fb03cc9f | [
"Apache-2.0"
] | 604 | 2022-01-13T12:32:50.000Z | 2022-03-31T20:27:36.000Z | jans-linux-setup/jans_setup/static/extension/person_authentication/AgamaBridge.py | JanssenProject/jans | 8d57d01b998bfe87a2377bbe9023dd97fb03cc9f | [
"Apache-2.0"
] | 8 | 2022-01-28T00:23:25.000Z | 2022-03-16T05:12:12.000Z | # Janssen Project software is available under the Apache 2.0 License (2004). See http://www.apache.org/licenses/ for full text.
# Copyright (c) 2020, Janssen Project
#
from io.jans.agama import NativeJansFlowBridge
from io.jans.agama.engine.misc import FlowUtils
from io.jans.as.server.security import Identity
from io.j... | 39.244444 | 127 | 0.601925 | 708 | 7,064 | 5.974576 | 0.326271 | 0.052009 | 0.023641 | 0.024113 | 0.117967 | 0.032624 | 0.019385 | 0.019385 | 0.019385 | 0 | 0 | 0.005276 | 0.329275 | 7,064 | 179 | 128 | 39.463687 | 0.887505 | 0.097961 | 0 | 0.266129 | 0 | 0 | 0.143913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008065 | 0.104839 | null | null | 0.177419 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f6f185d3a207748fcaf0399b6f5f7cf9b94f5f2 | 3,468 | py | Python | code.py | hamidfzm/bloom-filter | a3857ead9d00e34bd9db62f89474cf3edc539a32 | [
"MIT"
] | null | null | null | code.py | hamidfzm/bloom-filter | a3857ead9d00e34bd9db62f89474cf3edc539a32 | [
"MIT"
] | null | null | null | code.py | hamidfzm/bloom-filter | a3857ead9d00e34bd9db62f89474cf3edc539a32 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from hashlib import sha256
class Filter(object):
"""A simple bloom filter for lots of int()"""
def __init__(self, array_size, hashes):
"""Initializes a Filter() object
Expects:
array_size (in bytes): 4 * 1024 for a 4KB filter
hashes (int): for the nu... | 40.325581 | 78 | 0.59083 | 479 | 3,468 | 4.19833 | 0.361169 | 0.031328 | 0.027847 | 0.025361 | 0.067628 | 0.048732 | 0.024863 | 0 | 0 | 0 | 0 | 0.030047 | 0.318627 | 3,468 | 85 | 79 | 40.8 | 0.82099 | 0.318339 | 0 | 0 | 0 | 0 | 0.162722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f7494beebdeaff3e1e589c65e34f0e9d756821a | 311 | py | Python | server/audit_template/urls.py | makchamp/ALTA | eaa52a91a0bc19e3bb9ee803fac28f056ecff870 | [
"Apache-2.0"
] | 3 | 2020-09-09T23:26:29.000Z | 2020-10-17T22:58:34.000Z | server/audit_template/urls.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 294 | 2020-09-27T17:20:50.000Z | 2021-06-23T01:44:09.000Z | server/audit_template/urls.py | makchamp/ALTA | eaa52a91a0bc19e3bb9ee803fac28f056ecff870 | [
"Apache-2.0"
] | 10 | 2020-10-07T05:25:30.000Z | 2021-05-01T05:32:59.000Z | """
Holds urls related to audit template app.
"""
from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'template', views.AuditTemplateViewSet, basename='template')
urlpatterns = [
path('', include(router.urls)),
]
| 20.733333 | 77 | 0.749196 | 37 | 311 | 6.27027 | 0.621622 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131833 | 311 | 14 | 78 | 22.214286 | 0.859259 | 0.131833 | 0 | 0 | 0 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9f78940f352c8df3145d3e8664ea8d9700e894e9 | 2,043 | py | Python | dit_helpdesk/hierarchy/migrations/0007_auto_20200908_1750.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 3 | 2019-10-24T10:39:38.000Z | 2021-07-13T11:46:18.000Z | dit_helpdesk/hierarchy/migrations/0007_auto_20200908_1750.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 20 | 2020-01-22T11:16:24.000Z | 2022-02-02T10:38:54.000Z | dit_helpdesk/hierarchy/migrations/0007_auto_20200908_1750.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-09-08 16:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("hierarchy", "0006_chapter_last_updated")]
operations = [
migrations.CreateModel(
name="NomenclatureTree",
... | 30.954545 | 63 | 0.489476 | 161 | 2,043 | 6.080745 | 0.378882 | 0.04903 | 0.071502 | 0.11236 | 0.544433 | 0.544433 | 0.544433 | 0.544433 | 0.544433 | 0.544433 | 0 | 0.01737 | 0.408223 | 2,043 | 65 | 64 | 31.430769 | 0.79239 | 0.022516 | 0 | 0.59322 | 1 | 0 | 0.140852 | 0.064662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.084746 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.