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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e265824cd5b4d3d09aa3a85134608484df9ae21 | 1,151 | py | Python | Integertask.py | Ainara12/Programing-Scripting-problems | 1017c1a8a3aeabc040886f9bdab35b252e7e08ea | [
"MIT"
] | null | null | null | Integertask.py | Ainara12/Programing-Scripting-problems | 1017c1a8a3aeabc040886f9bdab35b252e7e08ea | [
"MIT"
] | null | null | null | Integertask.py | Ainara12/Programing-Scripting-problems | 1017c1a8a3aeabc040886f9bdab35b252e7e08ea | [
"MIT"
] | null | null | null | #This program calculates the successive values of the following
# calculation: Next value by taking the positive integer added by user
# and if it is even divide it by 2, if it is odd, multiply by
#3 and add 1.Program ends if current value is 1.
#First: I created variable "pnumber" which will be the positive integer ... | 34.878788 | 100 | 0.701998 | 188 | 1,151 | 4.297872 | 0.393617 | 0.111386 | 0.055693 | 0.063119 | 0.132426 | 0.107673 | 0.079208 | 0.079208 | 0.079208 | 0 | 0 | 0.022805 | 0.238054 | 1,151 | 33 | 101 | 34.878788 | 0.898518 | 0.615117 | 0 | 0.333333 | 0 | 0 | 0.21709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e26eeb7a1d51ccae528791cb9b9b4c924ad57bd | 914 | py | Python | proj/urls.py | vitali-rebkavets-itechart/students-lab | 574ad0249ee40b799a2e8faaced3661915bee756 | [
"MIT"
] | null | null | null | proj/urls.py | vitali-rebkavets-itechart/students-lab | 574ad0249ee40b799a2e8faaced3661915bee756 | [
"MIT"
] | 26 | 2019-05-21T13:24:59.000Z | 2019-06-13T10:24:29.000Z | proj/urls.py | vitali-r/students-lab | 574ad0249ee40b799a2e8faaced3661915bee756 | [
"MIT"
] | 2 | 2019-05-21T12:55:23.000Z | 2019-05-21T14:31:14.000Z | from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from products.views import (products, index,
products_detail)
from rest_framework_jwt.views import refresh_jwt_token
from users.views import Obta... | 35.153846 | 80 | 0.705689 | 111 | 914 | 5.684685 | 0.351351 | 0.063391 | 0.044374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146608 | 914 | 25 | 81 | 36.56 | 0.808974 | 0 | 0 | 0 | 0 | 0 | 0.146608 | 0.028446 | 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 |
6e27e9a98e0663d5f4593b8e13414810400eac10 | 1,248 | py | Python | src/calc_orientation.py | ouyang-lab/CAPC | e0fcc698da833b9195315d6769bd076646323289 | [
"Apache-2.0"
] | 5 | 2020-08-24T16:18:45.000Z | 2021-07-07T16:54:32.000Z | src/calc_orientation.py | ouyang-lab/CAPC | e0fcc698da833b9195315d6769bd076646323289 | [
"Apache-2.0"
] | null | null | null | src/calc_orientation.py | ouyang-lab/CAPC | e0fcc698da833b9195315d6769bd076646323289 | [
"Apache-2.0"
] | 1 | 2020-12-09T04:15:59.000Z | 2020-12-09T04:15:59.000Z | import sys
import gzip
import numpy as np
if __name__ == "__main__":
f_names = sys.argv[1:]
max_value = 100000
bin_size = 50
threshold = 0.01
data = []
total_bins = (max_value/bin_size)+1
for no, f_name in enumerate(f_names):
#prefix = f_name.split("/")[-1].replace(".tx... | 23.54717 | 72 | 0.491186 | 173 | 1,248 | 3.364162 | 0.375723 | 0.072165 | 0.037801 | 0.051546 | 0.158076 | 0.09622 | 0.09622 | 0.09622 | 0.09622 | 0.09622 | 0 | 0.025031 | 0.359776 | 1,248 | 52 | 73 | 24 | 0.703379 | 0.042468 | 0 | 0.171429 | 0 | 0 | 0.038526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e2927924bc2223cbcdf3f80649b9ddc5b016ea6 | 1,143 | py | Python | module/test.py | yuxy000/PythonSyntax | efbfddbd62d88fa6768035d0155c9e8d17cb5670 | [
"MIT"
] | null | null | null | module/test.py | yuxy000/PythonSyntax | efbfddbd62d88fa6768035d0155c9e8d17cb5670 | [
"MIT"
] | null | null | null | module/test.py | yuxy000/PythonSyntax | efbfddbd62d88fa6768035d0155c9e8d17cb5670 | [
"MIT"
] | null | null | null | from module import support
from module import fibo
import sys
support.print_func("Runoob")
fibo.fib(1000)
print(fibo.fib2(100))
print(fibo.__name__)
# 把模块中的一个函数赋给一个本地的名称
fib = fibo.fib
fib(10)
"""
from…import 语句
Python的from语句让你从模块中导入一个指定的部分到当前命名空间中,语法如下:
from modname import name1[, name2[, ... nameN]]
例如,要导入模块 fib... | 19.05 | 85 | 0.726159 | 143 | 1,143 | 5.622378 | 0.573427 | 0.033582 | 0.039801 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.154856 | 1,143 | 59 | 86 | 19.372881 | 0.782609 | 0.045494 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6e2e387eef5e879a3d06801f9f8eb44b9b39bb68 | 712 | py | Python | CursoEmVideo/Aula16 - Tuplas.py | caique-santana/CursoEmVideo-Curso_Python3 | 86bb67bbbf348544e1135d8657672d4e33fa70e2 | [
"MIT"
] | 1 | 2020-04-15T00:49:02.000Z | 2020-04-15T00:49:02.000Z | CursoEmVideo/Aula16 - Tuplas.py | caique-santana/CursoEmVideo-Curso_Python3 | 86bb67bbbf348544e1135d8657672d4e33fa70e2 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula16 - Tuplas.py | caique-santana/CursoEmVideo-Curso_Python3 | 86bb67bbbf348544e1135d8657672d4e33fa70e2 | [
"MIT"
] | null | null | null | lanche = ('Hambúrguer', 'Suco', 'Pizza', 'Pudim', 'Batata Frita')
# Tuplas são imutáveis
# lanche[1] = 'Refrigerante' - Esse comando não vai funcionar
print(len(lanche))
print(sorted(lanche))
print(lanche)
print(lanche[-3:])
for comida in lanche:
print(f'Eu vou comer {comida}')
for cont in range(0, len(lanche)):... | 22.25 | 65 | 0.644663 | 121 | 712 | 3.793388 | 0.495868 | 0.143791 | 0.078431 | 0.091503 | 0.169935 | 0.169935 | 0.122004 | 0 | 0 | 0 | 0 | 0.033613 | 0.164326 | 712 | 31 | 66 | 22.967742 | 0.737815 | 0.11236 | 0 | 0 | 0 | 0 | 0.346582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.590909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6e3054f23fea6a6c7c56f18a768f57df2c3c07ac | 1,604 | py | Python | unittesting/utils/output_panel.py | guillermooo/UnitTesting | 04802c56d5ccea44043a241050d6fe331c6ff694 | [
"MIT"
] | null | null | null | unittesting/utils/output_panel.py | guillermooo/UnitTesting | 04802c56d5ccea44043a241050d6fe331c6ff694 | [
"MIT"
] | null | null | null | unittesting/utils/output_panel.py | guillermooo/UnitTesting | 04802c56d5ccea44043a241050d6fe331c6ff694 | [
"MIT"
] | null | null | null | import sublime
import os
class OutputPanel:
def __init__(
self, name, file_regex='', line_regex='', base_dir=None,
word_wrap=False, line_numbers=False, gutter=False,
scroll_past_end=False, syntax='Packages/Text/Plain text.tmLanguage'
):
self.name = name
self.window = s... | 32.08 | 79 | 0.639651 | 208 | 1,604 | 4.682692 | 0.307692 | 0.090349 | 0.100616 | 0.061602 | 0.137577 | 0.110883 | 0.053388 | 0 | 0 | 0 | 0 | 0 | 0.238155 | 1,604 | 49 | 80 | 32.734694 | 0.797054 | 0.023067 | 0 | 0.052632 | 0 | 0 | 0.109904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e369cedee85dd513db727dff183f7bdbc8263b5 | 1,624 | py | Python | gnes/service/grpc.py | micro-pixel/gnes | 388d1ba718ec04eedaaff3ce34da43689c197ee7 | [
"Apache-2.0"
] | 1 | 2019-10-23T03:41:57.000Z | 2019-10-23T03:41:57.000Z | gnes/service/grpc.py | cmy9068/gnes | 44a54be4c80108ac65b2450b4af8deded6da3339 | [
"Apache-2.0"
] | null | null | null | gnes/service/grpc.py | cmy9068/gnes | 44a54be4c80108ac65b2450b4af8deded6da3339 | [
"Apache-2.0"
] | 1 | 2020-10-28T15:07:36.000Z | 2020-10-28T15:07:36.000Z | # Tencent is pleased to support the open source community by making GNES available.
#
# Copyright (C) 2019 THL A29 Limited, a Tencent company. 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... | 36.088889 | 86 | 0.711823 | 229 | 1,624 | 4.943231 | 0.545852 | 0.056537 | 0.022968 | 0.028269 | 0.061837 | 0.061837 | 0.061837 | 0 | 0 | 0 | 0 | 0.010712 | 0.195197 | 1,624 | 44 | 87 | 36.909091 | 0.855394 | 0.428571 | 0 | 0 | 0 | 0 | 0.087816 | 0.064764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e37060290900c339e29bf4d74171d48cbea8c69 | 3,508 | py | Python | dhost/logs/models.py | dhost-project/dhost | ca6a4a76a737174b24165e20edeb1d1019a9424b | [
"MIT"
] | null | null | null | dhost/logs/models.py | dhost-project/dhost | ca6a4a76a737174b24165e20edeb1d1019a9424b | [
"MIT"
] | 67 | 2021-07-06T11:50:25.000Z | 2021-10-14T13:45:51.000Z | dhost/logs/models.py | dhost-project/dhost | ca6a4a76a737174b24165e20edeb1d1019a9424b | [
"MIT"
] | null | null | null | import uuid
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils import timezone
from django.utils.timesince import timesince
from django.utils.translation import gettext_lazy as _
from dhost.dapps.models import Dapp
def get_obj_m... | 35.434343 | 79 | 0.679019 | 409 | 3,508 | 5.503667 | 0.283619 | 0.031097 | 0.019991 | 0.022657 | 0.0502 | 0.033763 | 0.033763 | 0.033763 | 0.033763 | 0 | 0 | 0.001084 | 0.210946 | 3,508 | 98 | 80 | 35.795918 | 0.812139 | 0 | 0 | 0.070588 | 0 | 0 | 0.22634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0 | 0.094118 | 0.035294 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e3d50e4fe09a809ba48df4ba35365fe114afae0 | 609 | py | Python | final/VolleyballClubHouse/backend/Python/fb_post_scraper.py | Sabalone87/wp1092 | 3da36f3f3ae7ebc175bf0b015838de2928b3b5b9 | [
"MIT"
] | null | null | null | final/VolleyballClubHouse/backend/Python/fb_post_scraper.py | Sabalone87/wp1092 | 3da36f3f3ae7ebc175bf0b015838de2928b3b5b9 | [
"MIT"
] | null | null | null | final/VolleyballClubHouse/backend/Python/fb_post_scraper.py | Sabalone87/wp1092 | 3da36f3f3ae7ebc175bf0b015838de2928b3b5b9 | [
"MIT"
] | null | null | null | import os
import sys
from dotenv import load_dotenv
from facebook_scraper import get_posts
load_dotenv()
print ("hi")
result = []
for post in get_posts(group=os.environ.get("FacebookGroupId"), pages=1,
credentials=(os.environ.get("FacebookUser"), os.environ.get("FacebookPassword"))):
result.... | 25.375 | 102 | 0.609195 | 75 | 609 | 4.8 | 0.426667 | 0.066667 | 0.1 | 0.077778 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.223317 | 609 | 24 | 103 | 25.375 | 0.758985 | 0.019704 | 0 | 0 | 0 | 0 | 0.199664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.210526 | 0 | 0.210526 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e3fe2c168f62972f11479c2284c380956d44257 | 6,351 | py | Python | apps/user/tests/user/test_users_crud.py | magocod/django_chat | 9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7 | [
"MIT"
] | 1 | 2019-10-01T01:39:37.000Z | 2019-10-01T01:39:37.000Z | apps/user/tests/user/test_users_crud.py | magocod/django_chat | 9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7 | [
"MIT"
] | 18 | 2019-12-14T15:09:56.000Z | 2022-01-02T16:22:41.000Z | apps/user/tests/user/test_users_crud.py | magocod/django_chat | 9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7 | [
"MIT"
] | 1 | 2020-02-10T18:00:16.000Z | 2020-02-10T18:00:16.000Z | """
Prueba creacion de usuarios
"""
# import json
from typing import Any, Dict
import pytest
from django.contrib.auth import get_user_model
from apps.user.serializers import UserHeavySerializer
# from django.contrib.auth.models import User
User = get_user_model()
pytestmark = [pytest.mark.django_db, pytest.mark... | 26.135802 | 79 | 0.623366 | 752 | 6,351 | 5.058511 | 0.140957 | 0.078076 | 0.099895 | 0.119874 | 0.771556 | 0.73817 | 0.696372 | 0.640641 | 0.580442 | 0.48265 | 0 | 0.0199 | 0.216659 | 6,351 | 242 | 80 | 26.243802 | 0.744724 | 0.056841 | 0 | 0.568493 | 0 | 0 | 0.146757 | 0.007999 | 0 | 0 | 0 | 0 | 0.191781 | 1 | 0.10274 | false | 0.034247 | 0.027397 | 0 | 0.130137 | 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 |
6e41cc5519a39b51f1547eae6ffa40cae08fd9e3 | 493 | py | Python | rabbit_mq_examples/new_task.py | audip/rabbitmq | f151dea427afa2a08a76fcdccf6fb99e6a81380f | [
"Apache-2.0"
] | null | null | null | rabbit_mq_examples/new_task.py | audip/rabbitmq | f151dea427afa2a08a76fcdccf6fb99e6a81380f | [
"Apache-2.0"
] | null | null | null | rabbit_mq_examples/new_task.py | audip/rabbitmq | f151dea427afa2a08a76fcdccf6fb99e6a81380f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pika
import sys
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='task_queue', durable=True)
message = ''.join(sys.argv[1:]) or 'Hello World!'
for i in range(30):
message = str(i)+' '+i*'.'
ch... | 25.947368 | 127 | 0.730223 | 64 | 493 | 5.53125 | 0.703125 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.107505 | 493 | 18 | 128 | 27.388889 | 0.795455 | 0.040568 | 0 | 0 | 0 | 0 | 0.112527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
6e4cf85303623618f7fb5038daec890f74903ee3 | 2,641 | py | Python | ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py | exyi/ILSpy | 17ddfa01ff4915c4ca8461c56fb7d04d25fc591e | [
"MIT"
] | 1 | 2021-04-26T19:46:09.000Z | 2021-04-26T19:46:09.000Z | ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py | exyi/ILSpy | 17ddfa01ff4915c4ca8461c56fb7d04d25fc591e | [
"MIT"
] | null | null | null | ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py | exyi/ILSpy | 17ddfa01ff4915c4ca8461c56fb7d04d25fc591e | [
"MIT"
] | null | null | null | # Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, m... | 41.920635 | 99 | 0.775842 | 333 | 2,641 | 6.126126 | 0.513514 | 0.043137 | 0.023529 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002233 | 0.152215 | 2,641 | 63 | 100 | 41.920635 | 0.908441 | 0.425596 | 0 | 0.054054 | 0 | 0 | 0.052069 | 0.020694 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | 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 |
6e4d8cf0e65920064f1566f74432415d41b6c22a | 3,187 | py | Python | src/detector.py | omelchert/LEPM_1DFD | aa5ba78e557cdcd0a10a16065c0f17119f51ab78 | [
"BSD-3-Clause"
] | null | null | null | src/detector.py | omelchert/LEPM_1DFD | aa5ba78e557cdcd0a10a16065c0f17119f51ab78 | [
"BSD-3-Clause"
] | null | null | null | src/detector.py | omelchert/LEPM_1DFD | aa5ba78e557cdcd0a10a16065c0f17119f51ab78 | [
"BSD-3-Clause"
] | null | null | null | import sys
import numpy as np
class PiezoTransducer(object):
"""Piezoelectric transducer data structure
"""
def __init__(self,Glob,(zMin,zMax),h=1.):
"""initial instance of PiezoTransducer class
Args:
Glob (data structure): data structure holding domain configuration
... | 32.85567 | 81 | 0.569187 | 394 | 3,187 | 4.588832 | 0.436548 | 0.016593 | 0.034292 | 0.016593 | 0.219027 | 0.190265 | 0.167035 | 0.146018 | 0.146018 | 0.146018 | 0 | 0.013966 | 0.326012 | 3,187 | 96 | 82 | 33.197917 | 0.827747 | 0.03326 | 0 | 0.0625 | 0 | 0 | 0.035889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | 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 |
6e536b50d4b1d1ed9120b0881d839d4c283289b4 | 2,472 | py | Python | evaluator.py | kavinyao/SKBPR | 305aeb846ee89234d8eae3b73452c2fdad2496b4 | [
"MIT"
] | null | null | null | evaluator.py | kavinyao/SKBPR | 305aeb846ee89234d8eae3b73452c2fdad2496b4 | [
"MIT"
] | null | null | null | evaluator.py | kavinyao/SKBPR | 305aeb846ee89234d8eae3b73452c2fdad2496b4 | [
"MIT"
] | 1 | 2018-09-29T08:31:40.000Z | 2018-09-29T08:31:40.000Z | """
Evaluate recommendations.
"""
import config
from collections import defaultdict
class ConfusionMatrixEvaluator(object):
"""Evaluate result's precision and recall."""
def __init__(self):
self.experiment_reset()
self.reset()
def experiment_reset(self):
self.exp_results = default... | 35.314286 | 94 | 0.640372 | 292 | 2,472 | 5.232877 | 0.260274 | 0.054974 | 0.058901 | 0.082461 | 0.118456 | 0.044503 | 0.044503 | 0 | 0 | 0 | 0 | 0.009204 | 0.252832 | 2,472 | 69 | 95 | 35.826087 | 0.818083 | 0 | 0 | 0 | 0 | 0 | 0.052867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
280b4458ea5ac2ac7597da9b972198f9e0db4a04 | 2,502 | py | Python | instagram/migrations/0001_initial.py | Maxwel5/photo-app-instagram | 8635346a5115dcc7e282791bd646f0a7f9dd2917 | [
"MIT"
] | null | null | null | instagram/migrations/0001_initial.py | Maxwel5/photo-app-instagram | 8635346a5115dcc7e282791bd646f0a7f9dd2917 | [
"MIT"
] | 8 | 2020-06-06T00:09:24.000Z | 2022-02-10T10:48:10.000Z | instagram/migrations/0001_initial.py | Maxwel5/photo-app-instagram | 8635346a5115dcc7e282791bd646f0a7f9dd2917 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-22 07:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 41.7 | 154 | 0.584333 | 249 | 2,502 | 5.73494 | 0.337349 | 0.028011 | 0.039216 | 0.061625 | 0.387955 | 0.316527 | 0.316527 | 0.285714 | 0.221289 | 0.221289 | 0 | 0.01652 | 0.274181 | 2,502 | 59 | 155 | 42.40678 | 0.769824 | 0.017986 | 0 | 0.423077 | 1 | 0 | 0.088798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
280f1650f5bc3fd7a59f3f2ae253341d13e12350 | 5,738 | py | Python | App/GUI_Pages/LoginPage.py | TUIASI-AC-enaki/Shopping_Application | d6c6f446618937347f9c78fe3b969bc2c2ef9331 | [
"Apache-2.0"
] | null | null | null | App/GUI_Pages/LoginPage.py | TUIASI-AC-enaki/Shopping_Application | d6c6f446618937347f9c78fe3b969bc2c2ef9331 | [
"Apache-2.0"
] | null | null | null | App/GUI_Pages/LoginPage.py | TUIASI-AC-enaki/Shopping_Application | d6c6f446618937347f9c78fe3b969bc2c2ef9331 | [
"Apache-2.0"
] | null | null | null | import tkinter as tk
from tkinter import font as tkfont, ttk
import logging as log
import sys
from cx_Oracle import DatabaseError
from GUI_Pages.BasicPage import TitlePage
from Utilities.Cipher import Cipher, get_hash
FORMAT = '[%(asctime)s] [%(levelname)s] : %(message)s'
log.basicConfig(stream=sys.stdout, level=lo... | 50.778761 | 140 | 0.682468 | 726 | 5,738 | 5.179063 | 0.227273 | 0.175 | 0.111702 | 0.11117 | 0.486702 | 0.445745 | 0.385638 | 0.345213 | 0.345213 | 0.345213 | 0 | 0.010138 | 0.192053 | 5,738 | 113 | 141 | 50.778761 | 0.800906 | 0.020565 | 0 | 0.022727 | 0 | 0 | 0.114276 | 0.003738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056818 | false | 0.147727 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2811f691c9df0cfa06acd32c5b53be25799129d1 | 786 | py | Python | lvl2.py | choxner/python-challenge | 3c726936027087bc38f830a758549dd68467af52 | [
"Apache-2.0"
] | null | null | null | lvl2.py | choxner/python-challenge | 3c726936027087bc38f830a758549dd68467af52 | [
"Apache-2.0"
] | null | null | null | lvl2.py | choxner/python-challenge | 3c726936027087bc38f830a758549dd68467af52 | [
"Apache-2.0"
] | null | null | null |
# Level 2 of pythonchallenge.com!
# Challenge: within the source code of this level, there is a
# set of jumbled characters. Within these characters, find the
# letters and join them together to find the correct url.
from solution_framework import Solution
import requests
# to view source code
import re
... | 26.2 | 69 | 0.722646 | 120 | 786 | 4.625 | 0.575 | 0.048649 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00315 | 0.192112 | 786 | 30 | 70 | 26.2 | 0.870866 | 0.464377 | 0 | 0 | 0 | 0 | 0.138381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.214286 | 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 |
2812d4c9e6e9c407e500296b0bda22c042be6c3e | 1,444 | py | Python | saleor/social/migrations/0001_initial.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 1 | 2022-02-19T13:27:40.000Z | 2022-02-19T13:27:40.000Z | saleor/social/migrations/0001_initial.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | null | null | null | saleor/social/migrations/0001_initial.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 2 | 2021-12-03T16:59:37.000Z | 2022-02-19T13:05:42.000Z | # Generated by Django 3.1.7 on 2021-05-10 07:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import saleor.core.utils.json_serializer
class Migration(migrations.Migration):
initial = True
dependencies = [
('store', '0001_initial'),
... | 41.257143 | 156 | 0.640582 | 158 | 1,444 | 5.734177 | 0.462025 | 0.03532 | 0.046358 | 0.072848 | 0.416115 | 0.384106 | 0.384106 | 0.384106 | 0.384106 | 0.384106 | 0 | 0.016964 | 0.224377 | 1,444 | 34 | 157 | 42.470588 | 0.791964 | 0.031163 | 0 | 0 | 1 | 0 | 0.095204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.296296 | 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 |
2814523dd67ea38c542b435dab46056033dd5d9d | 4,847 | py | Python | web/app/djrq/model/ampache/__init__.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 1 | 2016-11-23T20:50:00.000Z | 2016-11-23T20:50:00.000Z | web/app/djrq/model/ampache/__init__.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 15 | 2017-01-15T04:18:40.000Z | 2017-02-25T04:13:06.000Z | web/app/djrq/model/ampache/__init__.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
from sqlalchemy import *
from sqlalchemy.sql import func, or_
from sqlalchemy.types import TIMESTAMP
from sqlalchemy.ext.hybrid import hybrid_property
from time import time
import markupsafe
from sqlalchemy.ext.associationproxy import ... | 29.023952 | 100 | 0.637508 | 539 | 4,847 | 5.564007 | 0.218924 | 0.036012 | 0.03001 | 0.036012 | 0.483495 | 0.462821 | 0.462821 | 0.43081 | 0.404135 | 0.404135 | 0 | 0.016529 | 0.251083 | 4,847 | 166 | 101 | 29.198795 | 0.809642 | 0.054467 | 0 | 0.495727 | 0 | 0 | 0.061229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.153846 | 0.111111 | 0 | 0.623932 | 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 |
281c7adc874167e64dc0db3f96ec79ad8d491740 | 1,958 | py | Python | simone/test.py | ross/simone | cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4 | [
"MIT"
] | null | null | null | simone/test.py | ross/simone | cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4 | [
"MIT"
] | 1 | 2021-11-04T13:47:28.000Z | 2021-11-04T13:47:28.000Z | simone/test.py | ross/simone | cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4 | [
"MIT"
] | 1 | 2021-10-20T14:44:19.000Z | 2021-10-20T14:44:19.000Z | from django.test.runner import DiscoverRunner
from io import StringIO
from logging import StreamHandler, getLogger
from unittest import TextTestRunner, TextTestResult
class SimoneTestRunner(TextTestRunner):
def __init__(self, *args, **kwargs):
kwargs['buffer'] = True
super().__init__(*args, **kwar... | 31.079365 | 78 | 0.670582 | 233 | 1,958 | 5.412017 | 0.467811 | 0.047581 | 0.044409 | 0.052339 | 0.125297 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001349 | 0.242594 | 1,958 | 62 | 79 | 31.580645 | 0.848955 | 0.213994 | 0 | 0.146341 | 0 | 0 | 0.011757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0.02439 | 0.097561 | 0.04878 | 0.512195 | 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 |
28254fc9a86cfb17a27b879bc1d9e02d48b17b76 | 1,288 | py | Python | HTTPServer.py | dannyb648/HTTPServer | e7877646d2ee890229d5db67055abed2f3a91812 | [
"MIT"
] | null | null | null | HTTPServer.py | dannyb648/HTTPServer | e7877646d2ee890229d5db67055abed2f3a91812 | [
"MIT"
] | null | null | null | HTTPServer.py | dannyb648/HTTPServer | e7877646d2ee890229d5db67055abed2f3a91812 | [
"MIT"
] | null | null | null | from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from SocketServer import ThreadingMixIn
from os import curdir, sep
import threading
import urlparse
import mimetypes
PORT_NUMBER = 8080
VERSION_NUMBER = '1.0.0'
class Handler(BaseHTTPRequestHandler):
def do_GET(self):
#Parse path into dictionary and... | 24.769231 | 61 | 0.736801 | 170 | 1,288 | 5.452941 | 0.541176 | 0.05178 | 0.02589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015568 | 0.152174 | 1,288 | 51 | 62 | 25.254902 | 0.833333 | 0.062112 | 0 | 0.078947 | 0 | 0 | 0.116939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28274273d3b6e8ded8878a57fe78503427048f15 | 664 | py | Python | examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py | fastack-dev/fastack-migrate | 1e9d3b3b1d25bec000432026b975053e5350e3da | [
"MIT"
] | 1 | 2021-12-23T03:20:57.000Z | 2021-12-23T03:20:57.000Z | examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py | fastack-dev/fastack-migrate | 1e9d3b3b1d25bec000432026b975053e5350e3da | [
"MIT"
] | 1 | 2022-02-09T08:10:30.000Z | 2022-02-09T08:10:30.000Z | examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py | fastack-dev/fastack-migrate | 1e9d3b3b1d25bec000432026b975053e5350e3da | [
"MIT"
] | null | null | null | """remove unique constraint
Revision ID: 36745fa33987
Revises: 6b7ad8fd60f9
Create Date: 2022-01-06 08:31:55.141039
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "36745fa33987"
down_revision = "6b7ad8fd60f9"
branch_labels = None
depends_on = None
def upgrade():
# ### commands a... | 24.592593 | 72 | 0.701807 | 79 | 664 | 5.759494 | 0.556962 | 0.059341 | 0.092308 | 0.101099 | 0.32967 | 0.193407 | 0.193407 | 0.193407 | 0 | 0 | 0 | 0.093863 | 0.165663 | 664 | 26 | 73 | 25.538462 | 0.727437 | 0.460843 | 0 | 0 | 0 | 0 | 0.249221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28289fb87251908aef9d071f6be27139338d9810 | 2,640 | py | Python | strongholds-and-followers/retainer/retainer.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | strongholds-and-followers/retainer/retainer.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | strongholds-and-followers/retainer/retainer.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | 1 | 2022-03-17T18:06:25.000Z | 2022-03-17T18:06:25.000Z | embed
<drac2>
GVARS = load_json(get_gvar("c1ee7d0f-750d-4f92-8d87-70fa22c07a81"))
CLASSES = [load_json(get_gvar(gvar)) for gvar in GVARS]
DISPLAY = {
"acrobatics": "Acrobatics",
"animalhandling": "Animal Handling",
"athletics": "Athletics",
"arcana": "Arcana",
"deception": "Deception",
"dex": "Dex... | 36.164384 | 122 | 0.625 | 334 | 2,640 | 4.805389 | 0.311377 | 0.04486 | 0.034891 | 0.034891 | 0.144548 | 0.144548 | 0.115888 | 0.115888 | 0.047352 | 0 | 0 | 0.014027 | 0.162879 | 2,640 | 72 | 123 | 36.666667 | 0.712217 | 0 | 0 | 0 | 0 | 0.060606 | 0.537773 | 0.145639 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
282ccb40eb876af8551ca4938f1b672da9c20208 | 1,189 | py | Python | helpers.py | AHS-Open-Sorcery/HTNE-Project | c6caf57f1e89302c06ef0a84ddb83c645274d183 | [
"MIT"
] | null | null | null | helpers.py | AHS-Open-Sorcery/HTNE-Project | c6caf57f1e89302c06ef0a84ddb83c645274d183 | [
"MIT"
] | null | null | null | helpers.py | AHS-Open-Sorcery/HTNE-Project | c6caf57f1e89302c06ef0a84ddb83c645274d183 | [
"MIT"
] | null | null | null | from data_retrieval import *
import emailer
from login.config import Config
from sentiment_analysis import *
import tweepy
import json
def send_email(user_id, post_id): # Note: can determine user_id from post_id
try:
emailer.send_email(Config.EMAIL_SENDER, get_email(user_id), get_post_content(post_id), Co... | 27.022727 | 117 | 0.710681 | 177 | 1,189 | 4.497175 | 0.39548 | 0.045226 | 0.032663 | 0.030151 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01343 | 0.18587 | 1,189 | 43 | 118 | 27.651163 | 0.808884 | 0.033642 | 0 | 0 | 0 | 0 | 0.093368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.066667 | 0.2 | 0.066667 | 0.433333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
282db7a977d5ee21b51eae4baa89a5c662e12b73 | 1,044 | py | Python | trim2.py | AmadeusChan/GeminiGraph | 893b05ee5c560ec51d41ab6a58a300baade8a9f5 | [
"Apache-2.0"
] | null | null | null | trim2.py | AmadeusChan/GeminiGraph | 893b05ee5c560ec51d41ab6a58a300baade8a9f5 | [
"Apache-2.0"
] | null | null | null | trim2.py | AmadeusChan/GeminiGraph | 893b05ee5c560ec51d41ab6a58a300baade8a9f5 | [
"Apache-2.0"
] | null | null | null | import os
with open("./simple_graph.txt", "r") as f:
N = int(f.readline())
edges = []
while True:
line = f.readline().strip()
if line == None or len(line) == 0:
break
line = line.split(" ")
edges.append([int(line[0]), int(line[1])])
con = []
for i in range(N):
... | 18.642857 | 50 | 0.51341 | 151 | 1,044 | 3.490066 | 0.298013 | 0.045541 | 0.068311 | 0.125237 | 0.201139 | 0.155598 | 0.102467 | 0.102467 | 0.102467 | 0 | 0 | 0.020173 | 0.335249 | 1,044 | 55 | 51 | 18.981818 | 0.739193 | 0 | 0 | 0.230769 | 0 | 0 | 0.037111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
282de6dc694665ce1234b3c8d5c5765ed89dc979 | 3,516 | py | Python | Classes/Data.py | zerowsir/stock_study | ae2f3fab2b0cb3f4c980f0b229547867902415c4 | [
"MIT"
] | 5 | 2020-04-27T08:07:06.000Z | 2022-01-02T14:47:21.000Z | Classes/Data.py | zerowsir/stock_study | ae2f3fab2b0cb3f4c980f0b229547867902415c4 | [
"MIT"
] | null | null | null | Classes/Data.py | zerowsir/stock_study | ae2f3fab2b0cb3f4c980f0b229547867902415c4 | [
"MIT"
] | 3 | 2020-04-25T12:29:09.000Z | 2021-07-09T05:47:01.000Z | # coding=utf-8
"""
__title__ = ''
__file__ = ''
__author__ = 'tianmuchunxiao'
__mtime__ = '2019/7/4'
"""
import requests
import datetime
import pandas as pd
from io import StringIO
TODAY = datetime.date.strftime(datetime.date.today(), '%Y%m%d')
class Data(object):
URL = ''
PARAMS = {}
HEADERS = {}
file_pa... | 42.878049 | 834 | 0.700512 | 498 | 3,516 | 4.795181 | 0.433735 | 0.01005 | 0.035176 | 0.042714 | 0.446399 | 0.431323 | 0.431323 | 0.431323 | 0.400335 | 0.400335 | 0 | 0.173857 | 0.123151 | 3,516 | 81 | 835 | 43.407407 | 0.598767 | 0.027019 | 0 | 0.38806 | 0 | 0.119403 | 0.634548 | 0.396886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.059701 | 0 | 0.298507 | 0.074627 | 0 | 0 | 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 |
28306d7ad64f3293bff710f9c34f8a63246637c0 | 4,151 | py | Python | tledb/common/misc.py | rtubio/tledb | 2bfb13497d4ba7c155505fa7396abd7bf837b3a5 | [
"Apache-2.0"
] | null | null | null | tledb/common/misc.py | rtubio/tledb | 2bfb13497d4ba7c155505fa7396abd7bf837b3a5 | [
"Apache-2.0"
] | 5 | 2020-11-09T00:24:16.000Z | 2022-02-10T15:10:19.000Z | tledb/common/misc.py | rtubio/tledb | 2bfb13497d4ba7c155505fa7396abd7bf837b3a5 | [
"Apache-2.0"
] | 1 | 2020-11-08T10:35:23.000Z | 2020-11-08T10:35:23.000Z |
import datetime
import logging
import pytz
import socket
logger = logging.getLogger('common')
def get_fqdn(ip_address):
"""
Function that transforms a given IP address into the associated FQDN name
for that host.
:param ip_address: IP address of the remote host.
:return: FQDN name for that host... | 30.748148 | 78 | 0.688991 | 561 | 4,151 | 5.017825 | 0.258467 | 0.049734 | 0.023091 | 0.0373 | 0.33357 | 0.25897 | 0.233393 | 0.218117 | 0.18508 | 0.077798 | 0 | 0.013471 | 0.231029 | 4,151 | 134 | 79 | 30.977612 | 0.868421 | 0.493857 | 0 | 0.153846 | 0 | 0 | 0.008095 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.173077 | false | 0.019231 | 0.076923 | 0 | 0.461538 | 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 |
2832742f4b503c46d1f0a267a28c5b2b06f21e83 | 2,455 | py | Python | CoC/CoC_Default_CmdSets.py | macorvalan/MyGame | 29a14bcb1ffb11b158d325112d5698107d8f1188 | [
"Unlicense"
] | null | null | null | CoC/CoC_Default_CmdSets.py | macorvalan/MyGame | 29a14bcb1ffb11b158d325112d5698107d8f1188 | [
"Unlicense"
] | null | null | null | CoC/CoC_Default_CmdSets.py | macorvalan/MyGame | 29a14bcb1ffb11b158d325112d5698107d8f1188 | [
"Unlicense"
] | null | null | null | """
"""
from evennia import default_cmds
from evennia import CmdSet
class CoCCharacterCmdSet(default_cmds.CharacterCmdSet):
"""
The `CharacterCmdSet` contains general in-game commands like `look`,
`get`, etc available on in-game Character objects. It is merged with
the `AccountCmdSet` when an Accoun... | 24.068627 | 72 | 0.627291 | 280 | 2,455 | 5.410714 | 0.353571 | 0.052805 | 0.105611 | 0.062706 | 0.352475 | 0.322112 | 0.322112 | 0.322112 | 0.322112 | 0.322112 | 0 | 0 | 0.292872 | 2,455 | 102 | 73 | 24.068627 | 0.872696 | 0.484725 | 0 | 0.454545 | 0 | 0 | 0.066341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.772727 | 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 |
2832f2cc2b9e737de1d148d89d82f9fe93379119 | 6,300 | py | Python | dit/inference/counts.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | 1 | 2021-03-15T08:51:42.000Z | 2021-03-15T08:51:42.000Z | dit/inference/counts.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | dit/inference/counts.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | """
Non-cython methods for getting counts and distributions from data.
"""
import numpy as np
try: # cython
from .pycounts import counts_from_data, distribution_from_data
except ImportError: # no cython
from boltons.iterutils import windowed_iter
from collections import Counter, defaultdict
from it... | 35 | 98 | 0.619524 | 801 | 6,300 | 4.841448 | 0.298377 | 0.018051 | 0.018051 | 0.009283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002548 | 0.314762 | 6,300 | 179 | 99 | 35.195531 | 0.895761 | 0.557619 | 0 | 0.18 | 0 | 0 | 0.001878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.06 | 0.18 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28336284c8b0c58eec05e4f7f5c39c75af17be88 | 1,845 | py | Python | tests/test_get_meetings.py | GeorgianBadita/Dronem-gym-envirnoment | f3b488f6a4b55722c4b129051555a68d7775278c | [
"MIT"
] | 5 | 2020-06-13T10:43:42.000Z | 2022-01-25T10:37:32.000Z | tests/test_get_meetings.py | GeorgianBadita/Dronem-gym-envirnoment | f3b488f6a4b55722c4b129051555a68d7775278c | [
"MIT"
] | null | null | null | tests/test_get_meetings.py | GeorgianBadita/Dronem-gym-envirnoment | f3b488f6a4b55722c4b129051555a68d7775278c | [
"MIT"
] | null | null | null | """
@author: Badita Marin-Georgian
@email: geo.badita@gmail.com
@date: 21.03.2020 00:58
"""
from env_interpretation import Meeting
from env_interpretation.meeting import get_valid_meetings
def test_get_meetings_4_robots(env4_robots):
env_data = env4_robots.get_env_metadata()
cycles_length = [l... | 38.4375 | 104 | 0.656369 | 269 | 1,845 | 4.178439 | 0.193309 | 0.087189 | 0.156584 | 0.186833 | 0.630783 | 0.620107 | 0.620107 | 0.414591 | 0.346975 | 0.268683 | 0 | 0.05567 | 0.211382 | 1,845 | 47 | 105 | 39.255319 | 0.716838 | 0.046612 | 0 | 0.1875 | 0 | 0 | 0.052904 | 0 | 0 | 0 | 0 | 0 | 0.28125 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 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 |
2837b7ad00fad751653116c498c45a40929e5a19 | 4,030 | py | Python | generator/season.py | fraziermatthew/njba | acedec351543b8ecf339beb2d27c635f3377e929 | [
"MIT"
] | null | null | null | generator/season.py | fraziermatthew/njba | acedec351543b8ecf339beb2d27c635f3377e929 | [
"MIT"
] | null | null | null | generator/season.py | fraziermatthew/njba | acedec351543b8ecf339beb2d27c635f3377e929 | [
"MIT"
] | null | null | null | """season.py: Generates random NJBA season data."""
__author__ = "Matthew Frazier"
__copyright__ = "Copyright 2019, University of Delaware, CISC 637 Database Systems"
__email__ = "matthew@udel.edu"
from datetime import timedelta
import calendar
import csv
'''
Steps to run this project:
1. Create a virtual env a... | 33.032787 | 106 | 0.536476 | 441 | 4,030 | 4.827664 | 0.287982 | 0.06341 | 0.082198 | 0.093001 | 0.375763 | 0.297792 | 0.281822 | 0.281822 | 0.281822 | 0.263504 | 0 | 0.022952 | 0.372953 | 4,030 | 121 | 107 | 33.305785 | 0.819549 | 0.171712 | 0 | 0.339623 | 1 | 0 | 0.051129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.056604 | 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 |
2837e96df35c3511f85fcf1e1d1d5915d5541eac | 2,746 | py | Python | src/pace/allele_similarity.py | tmadden/pace | 0be5d92579efc4e6219f5c58bb4e4ac6754e865e | [
"MIT"
] | null | null | null | src/pace/allele_similarity.py | tmadden/pace | 0be5d92579efc4e6219f5c58bb4e4ac6754e865e | [
"MIT"
] | 9 | 2019-01-16T15:13:37.000Z | 2019-07-29T18:31:58.000Z | src/pace/allele_similarity.py | tmadden/pace | 0be5d92579efc4e6219f5c58bb4e4ac6754e865e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pace
from pace.definitions import amino_acids, builtin_aa_encodings, builtin_allele_similarities
from pace.sklearn import create_one_hot_encoder
from pkg_resources import resource_stream
def load_allele_similarity(allele_similarity_name):
allele_similarity = ... | 36.131579 | 101 | 0.717407 | 320 | 2,746 | 5.89375 | 0.328125 | 0.212089 | 0.116649 | 0.076352 | 0.453871 | 0.393425 | 0.351007 | 0.306469 | 0.306469 | 0.306469 | 0 | 0.000933 | 0.219592 | 2,746 | 75 | 102 | 36.613333 | 0.879141 | 0.427531 | 0 | 0 | 0 | 0 | 0.037806 | 0.024463 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
283a66142e84ec8f0ef344d826e481e7692288fc | 391 | py | Python | sqli/__main__.py | everilae/sqli | 8a63076dc8316b38ce521b63e67bea8d2ccf2a80 | [
"MIT"
] | null | null | null | sqli/__main__.py | everilae/sqli | 8a63076dc8316b38ce521b63e67bea8d2ccf2a80 | [
"MIT"
] | 1 | 2017-10-22T11:13:58.000Z | 2020-06-01T09:20:20.000Z | sqli/__main__.py | everilae/sqli | 8a63076dc8316b38ce521b63e67bea8d2ccf2a80 | [
"MIT"
] | null | null | null | import argparse
import astunparse
import sys
from . import check
parser = argparse.ArgumentParser()
parser.add_argument("file", nargs="?", type=argparse.FileType("r"),
default=sys.stdin)
args = parser.parse_args()
poisoned = check(args.file.read())
print("Possible SQL injections:")
for p in poi... | 23 | 67 | 0.682864 | 50 | 391 | 5.26 | 0.66 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161125 | 391 | 16 | 68 | 24.4375 | 0.801829 | 0 | 0 | 0 | 0 | 0 | 0.104859 | 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 |
283aae358baff3c73b726efc887ef653ab678494 | 318 | py | Python | rammstein.py | wildekek/rammstein-generator | fc7ef34260c4dddaba01ff4c964349e13bd4bf1a | [
"MIT"
] | 3 | 2015-10-11T15:39:30.000Z | 2019-06-18T19:20:00.000Z | rammstein.py | wildekek/rammstein-generator | fc7ef34260c4dddaba01ff4c964349e13bd4bf1a | [
"MIT"
] | null | null | null | rammstein.py | wildekek/rammstein-generator | fc7ef34260c4dddaba01ff4c964349e13bd4bf1a | [
"MIT"
] | 1 | 2019-06-16T21:49:16.000Z | 2019-06-16T21:49:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
a='Du hast mich'
b='Du, du hast'+'\n'+a
c=a+' gefragt'
def j(i):
return '\n'.join(i)
d=j([b,b,''])
e=j(['Willst du bis der Tod euch scheidet','Treurig sein für alle Tage?','Nein, nein!',''])
f=j([d,b,a,'',j([c,c,c,'Und ich hab nichts gesagt','']),e,e])
print j([d,f,f,e]) | 28.909091 | 91 | 0.566038 | 69 | 318 | 2.608696 | 0.594203 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.122642 | 318 | 11 | 92 | 28.909091 | 0.641577 | 0.132075 | 0 | 0 | 0 | 0 | 0.483636 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
283e3728c74f274d987dc75b56ca98081fe4485b | 2,307 | py | Python | test/test.py | SK-415/bilireq | ce4dfa2ae05a88291162907b86caf29ab868bedc | [
"MIT"
] | 2 | 2021-10-20T06:32:35.000Z | 2022-03-26T11:40:07.000Z | test/test.py | SK-415/bilireq | ce4dfa2ae05a88291162907b86caf29ab868bedc | [
"MIT"
] | 1 | 2021-12-06T01:37:08.000Z | 2021-12-06T01:37:08.000Z | test/test.py | SK-415/bilireq | ce4dfa2ae05a88291162907b86caf29ab868bedc | [
"MIT"
] | null | null | null | import asyncio
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
from bilireq.auth import Auth
from bilireq.dynamic import get_user_dynamics, get_followed_dynamics_update_info, get_followed_new_dynamics, get_followed_history_dynamics
from bilireq.live import get_rooms_info_by_ids
... | 30.355263 | 138 | 0.704378 | 321 | 2,307 | 4.788162 | 0.23053 | 0.104099 | 0.08458 | 0.044242 | 0.318803 | 0.148341 | 0.099545 | 0.057254 | 0.057254 | 0 | 0 | 0.020923 | 0.192024 | 2,307 | 75 | 139 | 30.76 | 0.803648 | 0.367577 | 0 | 0.325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.075 | 0.25 | 0 | 0.325 | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
28420d9ddb5dd0a224753623044f62aac5eba76f | 669 | py | Python | ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py | ItanuRomero/PythonStudyPrograms | 2b784b2af068b34e65ddf817ca8d99c1ca3a710e | [
"MIT"
] | null | null | null | ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py | ItanuRomero/PythonStudyPrograms | 2b784b2af068b34e65ddf817ca8d99c1ca3a710e | [
"MIT"
] | null | null | null | ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py | ItanuRomero/PythonStudyPrograms | 2b784b2af068b34e65ddf817ca8d99c1ca3a710e | [
"MIT"
] | null | null | null | # Questão 12. Construa uma função que receba uma string como parâmetro
# e devolva outra string com os carateres emba- ralhados. Por exemplo:
# se função receber a palavra python, pode retornar npthyo, ophtyn ou
# qualquer outra combinação possível, de forma aleatória. Padronize em
# sua função que todos os caracte... | 37.166667 | 71 | 0.751868 | 90 | 669 | 5.588889 | 0.711111 | 0.035785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00363 | 0.176383 | 669 | 17 | 72 | 39.352941 | 0.909256 | 0.603886 | 0 | 0 | 0 | 0 | 0.209302 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28484e4880b21cb0cfb818580cf5e99d4d59fc00 | 568 | py | Python | tests/conftest.py | ljnsn/pycwatch | 9fb8910b010e7e89357a9c6b99197697ee5a8cf6 | [
"MIT"
] | 1 | 2022-02-25T17:23:17.000Z | 2022-02-25T17:23:17.000Z | tests/conftest.py | ljnsn/pycwatch | 9fb8910b010e7e89357a9c6b99197697ee5a8cf6 | [
"MIT"
] | 1 | 2022-02-28T18:37:08.000Z | 2022-02-28T18:37:08.000Z | tests/conftest.py | ljnsn/pycwatch | 9fb8910b010e7e89357a9c6b99197697ee5a8cf6 | [
"MIT"
] | null | null | null | """Fixtures and configuration for the test suite."""
from pathlib import Path
import pytest
import vcr
from pycwatch import CryptoWatchClient
BASE_DIR = Path(__file__).parent.absolute()
api_vcr = my_vcr = vcr.VCR(
serializer="yaml",
cassette_library_dir=BASE_DIR.joinpath("vcr_cassettes").as_posix(),
rec... | 20.285714 | 71 | 0.739437 | 70 | 568 | 5.728571 | 0.714286 | 0.034913 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142606 | 568 | 27 | 72 | 21.037037 | 0.823409 | 0.080986 | 0 | 0 | 0 | 0 | 0.133721 | 0.050388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 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 |
284d7bf5c6289c980a9a21998f63efdfc660f3b8 | 570 | py | Python | videoprocessor/app.py | ashish1595/uPresent | 663acc6ad7c958c8d45699918c60e48535aff3b3 | [
"MIT"
] | 1 | 2020-09-02T23:51:15.000Z | 2020-09-02T23:51:15.000Z | videoprocessor/app.py | ashish1595/uPresent | 663acc6ad7c958c8d45699918c60e48535aff3b3 | [
"MIT"
] | 1,143 | 2020-01-26T07:18:37.000Z | 2022-03-31T21:02:44.000Z | videoprocessor/app.py | ashish1595/uPresent | 663acc6ad7c958c8d45699918c60e48535aff3b3 | [
"MIT"
] | 4 | 2020-01-27T07:47:29.000Z | 2020-07-22T10:54:15.000Z | from flask import Flask
from flask_restful import Api
from elasticapm.contrib.flask import ElasticAPM
from flask_restful_swagger import swagger
from resources import custom_logger
from resources.routes import initialize_routes
import logging
app = Flask(__name__)
app.config.from_object("config.Config")
# Initializing... | 24.782609 | 47 | 0.801754 | 83 | 570 | 5.361446 | 0.39759 | 0.060674 | 0.07191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01165 | 0.096491 | 570 | 22 | 48 | 25.909091 | 0.852427 | 0.045614 | 0 | 0 | 0 | 0 | 0.049816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
284f1b158ca4db2c6a71a6bb4e065847635e83d7 | 447 | py | Python | Chapter2_Python/Logic.py | LKilian1/UdemyML_Template | 4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a | [
"MIT"
] | null | null | null | Chapter2_Python/Logic.py | LKilian1/UdemyML_Template | 4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a | [
"MIT"
] | null | null | null | Chapter2_Python/Logic.py | LKilian1/UdemyML_Template | 4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a | [
"MIT"
] | null | null | null | i_am_broke = False
if i_am_broke:
print("I am broke.")
else:
print("I am not broke.")
my_bank_account = 1000
if my_bank_account <= 0:
print("I am broke.")
else:
print("I am not broke.")
# equal ==
# less <
# greater >
# not equal !=
# less or equal <=
# greater or equal >=
my_age = 21
if my_age ... | 13.96875 | 33 | 0.604027 | 76 | 447 | 3.407895 | 0.381579 | 0.069498 | 0.123552 | 0.138996 | 0.254826 | 0.254826 | 0.254826 | 0.254826 | 0.254826 | 0.254826 | 0 | 0.032836 | 0.250559 | 447 | 31 | 34 | 14.419355 | 0.740299 | 0.167785 | 0 | 0.411765 | 0 | 0 | 0.293151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2851770a789aa6df103f42e0f34d59c8093d59ff | 498 | py | Python | neighbour/migrations/0014_auto_20211228_2342.py | mary-wan/Neighbourhood | 4150ea60d8ab471fce7173c50c040f36320f3f40 | [
"Unlicense"
] | 2 | 2022-01-17T03:52:59.000Z | 2022-02-18T15:09:34.000Z | neighbour/migrations/0014_auto_20211228_2342.py | mary-wan/Neighbourhood | 4150ea60d8ab471fce7173c50c040f36320f3f40 | [
"Unlicense"
] | null | null | null | neighbour/migrations/0014_auto_20211228_2342.py | mary-wan/Neighbourhood | 4150ea60d8ab471fce7173c50c040f36320f3f40 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2.24 on 2021-12-28 20:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('neighbour', '0013_profile_neighbourhood'),
]
operations = [
migrations.AlterModelOptions(
name='neighbourhood',
options={'o... | 21.652174 | 52 | 0.566265 | 45 | 498 | 6.155556 | 0.755556 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058309 | 0.311245 | 498 | 22 | 53 | 22.636364 | 0.749271 | 0.092369 | 0 | 0.125 | 1 | 0 | 0.177778 | 0.057778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
285fac9d4a82de6931604146cf170d6983d5310f | 4,225 | py | Python | test-suite/handwritten-src/python/test_foo_interface.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 16 | 2020-10-18T20:09:29.000Z | 2022-02-21T07:11:13.000Z | test-suite/handwritten-src/python/test_foo_interface.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 53 | 2020-10-13T20:08:29.000Z | 2022-03-10T14:59:50.000Z | test-suite/handwritten-src/python/test_foo_interface.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 13 | 2020-10-16T20:31:36.000Z | 2022-01-28T15:37:05.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
# Example code written by a python developer to access cpp implementation of Foo
# This file should be hand-written by a python developer
from foo_interface import FooInterface
from djinni.support import decode... | 31.296296 | 108 | 0.626509 | 515 | 4,225 | 4.959223 | 0.295146 | 0.041112 | 0.031323 | 0.026625 | 0.437353 | 0.417776 | 0.417776 | 0.399765 | 0.375881 | 0.320282 | 0 | 0.03526 | 0.27503 | 4,225 | 134 | 109 | 31.529851 | 0.798564 | 0.16568 | 0 | 0.534653 | 0 | 0.009901 | 0.101796 | 0.006843 | 0 | 0 | 0 | 0 | 0.079208 | 1 | 0.19802 | false | 0.168317 | 0.039604 | 0 | 0.267327 | 0.029703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
28673f63b24f6a069e726650a9df5d529a4e2b9c | 3,053 | py | Python | Uzura/data/subsystem/stream.py | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | Uzura/data/subsystem/stream.py | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | Uzura/data/subsystem/stream.py | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# ユーザーストリームで流れているアカウントの画像を片っ端から取得、保存。
# Perl の名刺化スクリプトと連携せよ。
# 2012 / 11 / 14
# jskny
# http://d.hatena.ne.jp/iacctech/20110429/1304090609
import sys, tweepy, urllib, urllib2
import os, time, subprocess, socket
import re
from tweepy.streaming import StreamListener, ... | 24.821138 | 263 | 0.717327 | 391 | 3,053 | 5.465473 | 0.442455 | 0.02059 | 0.046795 | 0.026205 | 0.174544 | 0.147403 | 0.130557 | 0.094057 | 0.058493 | 0.058493 | 0 | 0.03171 | 0.132329 | 3,053 | 122 | 264 | 25.02459 | 0.774632 | 0.137242 | 0 | 0.123077 | 0 | 0 | 0.180529 | 0.068225 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015385 | 0.092308 | null | null | 0.107692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
286fb0783887ca84bf84591d7e276b7bf74e2f66 | 2,867 | py | Python | safe_eval/default_rules.py | bentheiii/safe_eval | caf9e7a6df3d6029e4bdac2abe11326d55c09ed2 | [
"MIT"
] | 1 | 2021-05-16T17:24:05.000Z | 2021-05-16T17:24:05.000Z | safe_eval/default_rules.py | bentheiii/safe_eval | caf9e7a6df3d6029e4bdac2abe11326d55c09ed2 | [
"MIT"
] | null | null | null | safe_eval/default_rules.py | bentheiii/safe_eval | caf9e7a6df3d6029e4bdac2abe11326d55c09ed2 | [
"MIT"
] | null | null | null | from _ast import In, NotIn, Is, IsNot
from collections import deque, Counter
from decimal import Decimal
from fractions import Fraction
from safe_eval.rules import BinOpRule, CallableTypeRule, CallableRule, GetattrTypeRule, CallableMethodRule
k_view_type = type({}.keys())
v_view_type = type({}.values())
it_view_type ... | 31.505495 | 118 | 0.702825 | 343 | 2,867 | 5.597668 | 0.367347 | 0.0875 | 0.053125 | 0.05 | 0.060417 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000427 | 0.182769 | 2,867 | 90 | 119 | 31.855556 | 0.819035 | 0.023369 | 0 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.013699 | false | 0 | 0.09589 | 0 | 0.109589 | 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 |
287358c4458cfef128d6223f0355c87f498e047c | 2,196 | py | Python | src/predict_video_file.py | irfanmustafas/TeethClassifierCNN | 8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7 | [
"MIT"
] | 1 | 2018-12-05T01:49:54.000Z | 2018-12-05T01:49:54.000Z | src/predict_video_file.py | irfanmustafas/TeethClassifierCNN | 8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7 | [
"MIT"
] | null | null | null | src/predict_video_file.py | irfanmustafas/TeethClassifierCNN | 8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import caffe
import glob
import uuid
import cv2
from util import transform_img
from mouth_detector_dlib import mouth_detector
from caffe.proto import caffe_pb2
import os
import shutil
from util import histogram_equalization
from teeth_cnn import teeth_cnn
mouth_detector_instance = mouth_d... | 31.371429 | 89 | 0.679417 | 390 | 2,196 | 3.705128 | 0.289744 | 0.049827 | 0.070588 | 0.078893 | 0.386851 | 0.386159 | 0.370934 | 0.336332 | 0.30173 | 0.30173 | 0 | 0.082371 | 0.132058 | 2,196 | 69 | 90 | 31.826087 | 0.675761 | 0.071494 | 0 | 0.166667 | 0 | 0 | 0.039882 | 0 | 0 | 0 | 0.001969 | 0 | 0 | 0 | null | null | 0 | 0.240741 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2883fadc5c01ff1f187f68ba84f5e3ae0a52978b | 1,057 | py | Python | src/archive/test3.py | felipearcaro/indexing-repository-python | 4fa504d3535495b30db443cc753ebc56e7e329c2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/archive/test3.py | felipearcaro/indexing-repository-python | 4fa504d3535495b30db443cc753ebc56e7e329c2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/archive/test3.py | felipearcaro/indexing-repository-python | 4fa504d3535495b30db443cc753ebc56e7e329c2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #setup
import docx2txt
# extract text
text = docx2txt.process("../documents/ambev.docx")
text2 = docx2txt.process("../documents/ambev2.docx")
text3 = docx2txt.process("../documents/ambev3.docx")
from whoosh.fields import Schema, TEXT
schema = Schema(title=TEXT, content=TEXT)
import os, os.path
from whoosh import i... | 24.581395 | 53 | 0.746452 | 143 | 1,057 | 5.475524 | 0.41958 | 0.051086 | 0.086845 | 0.112388 | 0.155811 | 0.097063 | 0.097063 | 0 | 0 | 0 | 0 | 0.010604 | 0.107852 | 1,057 | 43 | 54 | 24.581395 | 0.819724 | 0 | 0 | 0 | 0 | 0 | 0.154455 | 0.070297 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
288538cbd5c881814ddd71394b3b7fcabde021bf | 4,427 | py | Python | barcodes/generateBarcodes.py | sbarton272/AcousticBarcodes-Explorations | 73f019228988727575af7d67d1b7c7119f6c49a6 | [
"MIT"
] | null | null | null | barcodes/generateBarcodes.py | sbarton272/AcousticBarcodes-Explorations | 73f019228988727575af7d67d1b7c7119f6c49a6 | [
"MIT"
] | null | null | null | barcodes/generateBarcodes.py | sbarton272/AcousticBarcodes-Explorations | 73f019228988727575af7d67d1b7c7119f6c49a6 | [
"MIT"
] | null | null | null | """
Generate barcode images with various encodings
TODO
- Include text at bottom
- DXF instead
"""
#========================================================
# Imports
#========================================================
from dxfwrite import DXFEngine as dxf
#=====================================================... | 29.125 | 98 | 0.483171 | 474 | 4,427 | 4.451477 | 0.293249 | 0.014218 | 0.018957 | 0.021327 | 0.074408 | 0.045024 | 0.018009 | 0 | 0 | 0 | 0 | 0.024773 | 0.279648 | 4,427 | 151 | 99 | 29.317881 | 0.636877 | 0.240795 | 0 | 0.075 | 1 | 0 | 0.02561 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 1 | 0.075 | false | 0 | 0.0125 | 0 | 0.1875 | 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 |
28935cc03b2db600110d382016ba629d850712b4 | 236 | py | Python | cloud_test_app/cloud_test/utils.py | gabrielamelian/django-docker-code-test | 0500980c519140460f66d3812da29e651a0d0ac6 | [
"Apache-2.0"
] | null | null | null | cloud_test_app/cloud_test/utils.py | gabrielamelian/django-docker-code-test | 0500980c519140460f66d3812da29e651a0d0ac6 | [
"Apache-2.0"
] | null | null | null | cloud_test_app/cloud_test/utils.py | gabrielamelian/django-docker-code-test | 0500980c519140460f66d3812da29e651a0d0ac6 | [
"Apache-2.0"
] | null | null | null |
def parse_boolean(value):
if type(value) == bool:
return value
if value in ['True', 'true', 'T', 't', '1']:
return True
if value in ['False', 'false', 'F', 'f', '0']:
return False
return False
| 19.666667 | 50 | 0.512712 | 32 | 236 | 3.75 | 0.46875 | 0.116667 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.309322 | 236 | 11 | 51 | 21.454545 | 0.723926 | 0 | 0 | 0.25 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
953d79768caec877a768ca7a6b3a2fc0176266ec | 27,309 | py | Python | main.py | ruotianluo/neural-summ-cnndm-pytorch | 027b63107b748bc56356bd119b243cfdda684aa2 | [
"MIT"
] | 3 | 2018-10-22T23:03:40.000Z | 2018-10-23T09:45:32.000Z | main.py | ruotianluo/neural-summ-cnndm-pytorch | 027b63107b748bc56356bd119b243cfdda684aa2 | [
"MIT"
] | null | null | null | main.py | ruotianluo/neural-summ-cnndm-pytorch | 027b63107b748bc56356bd119b243cfdda684aa2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
cudaid = 0
os.environ["CUDA_VISIBLE_DEVICES"] = str(cudaid)
import sys
import time
import numpy as np
import cPickle as pickle
import copy
import random
from random import shuffle
import math
import torch
import torch.nn as nn
from torch.autograd import Variable
import data as datar... | 40.397929 | 211 | 0.587462 | 3,650 | 27,309 | 4.108219 | 0.088767 | 0.028276 | 0.018139 | 0.011737 | 0.652151 | 0.585395 | 0.562121 | 0.55025 | 0.526375 | 0.510637 | 0 | 0.011323 | 0.28855 | 27,309 | 675 | 212 | 40.457778 | 0.760461 | 0.025559 | 0 | 0.541436 | 0 | 0 | 0.082982 | 0.006006 | 0 | 0 | 0 | 0.001481 | 0.018416 | 0 | null | null | 0 | 0.029466 | null | null | 0.081031 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
953e614df603a782bc861b2188ed97f796d8d6d2 | 471 | py | Python | openbook_posts/migrations/0016_auto_20190214_1525.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/migrations/0016_auto_20190214_1525.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/migrations/0016_auto_20190214_1525.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | # Generated by Django 2.1.5 on 2019-02-14 14:25
from django.db import migrations
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('openbook_posts', '0015_post_community'),
]
operations = [
migrations.AlterField(
model_name='postimage',
... | 23.55 | 108 | 0.641189 | 51 | 471 | 5.803922 | 0.764706 | 0.094595 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053221 | 0.242038 | 471 | 19 | 109 | 24.789474 | 0.77591 | 0.095541 | 0 | 0 | 1 | 0 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9540c7d295e0a61b349ecd6b4bc768783ff0138e | 45,052 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class LinkOAM(Base):
__slots__ = ()
_SDM_NAME = 'linkOAM'
_SDM_ATT_MAP = {
'PacketSubtype': 'linkOAM.header.packet.subtype-1',
'PacketFlags': 'linkOAM.header.packet.flags-2',
'InformationOAMPDUCode': 'l... | 43.319231 | 202 | 0.715551 | 3,910 | 45,052 | 8.093095 | 0.087724 | 0.039028 | 0.057041 | 0.038617 | 0.662337 | 0.642207 | 0.627828 | 0.618221 | 0.416351 | 0.416351 | 0 | 0.011877 | 0.201967 | 45,052 | 1,039 | 203 | 43.360924 | 0.868272 | 0.138196 | 0 | 0.390756 | 0 | 0 | 0.408525 | 0.391105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19958 | false | 0 | 0.19958 | 0.002101 | 0.605042 | 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 |
954146cbdea7e57641fc5a1ec374f381deb7f479 | 3,967 | py | Python | memos/memos/users/forms.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | memos/memos/users/forms.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | memos/memos/users/forms.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | from flask import current_app
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from memos.m... | 40.896907 | 98 | 0.659188 | 402 | 3,967 | 6.425373 | 0.253731 | 0.085172 | 0.058072 | 0.036779 | 0.493225 | 0.472319 | 0.435153 | 0.435153 | 0.403407 | 0.399148 | 0 | 0.001302 | 0.225611 | 3,967 | 96 | 99 | 41.322917 | 0.839518 | 0.003277 | 0 | 0.465753 | 0 | 0 | 0.151092 | 0.00711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0.150685 | 0.136986 | 0 | 0.60274 | 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 |
9552f2a3d627a440738e08b8175d69d9667e0003 | 12,194 | py | Python | resources/lib/themoviedb/tmdb.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | null | null | null | resources/lib/themoviedb/tmdb.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 1 | 2015-04-21T22:05:02.000Z | 2015-04-22T22:27:15.000Z | resources/lib/themoviedb/tmdb.py | GetSomeBlocks/Score_Soccer | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 2 | 2015-09-29T16:31:43.000Z | 2020-07-26T03:41:10.000Z | #!/usr/bin/env python2.5
#encoding:utf-8
#author:dbr/Ben
#project:themoviedb
#forked by ccjensen/Chris
#http://github.com/ccjensen/themoviedb
"""An interface to the themoviedb.org API
"""
__author__ = "dbr/Ben"
__version__ = "0.2b"
config = {}
config['apikey'] = "a8b9f96dde091408a03cb4c78477bd14"
config['urls'] = {... | 33.31694 | 142 | 0.586354 | 1,391 | 12,194 | 4.985622 | 0.207045 | 0.01615 | 0.025955 | 0.013843 | 0.302379 | 0.258111 | 0.181975 | 0.112761 | 0.094016 | 0.083922 | 0 | 0.014977 | 0.28268 | 12,194 | 366 | 143 | 33.31694 | 0.777867 | 0.031327 | 0 | 0.209302 | 0 | 0.013953 | 0.100294 | 0.003758 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023256 | 0.037209 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9554ef14a15f7437ba6f8f9a2cf1620b9d8dfb4c | 1,681 | py | Python | location.py | TED-996/Nightshift | 3cc76af96c8e85e913be8c2f8f70564ea9d9f95d | [
"MIT"
] | null | null | null | location.py | TED-996/Nightshift | 3cc76af96c8e85e913be8c2f8f70564ea9d9f95d | [
"MIT"
] | null | null | null | location.py | TED-996/Nightshift | 3cc76af96c8e85e913be8c2f8f70564ea9d9f95d | [
"MIT"
] | null | null | null | import os.path
import json
from astral import Astral
appdata_folder = os.path.join(os.environ["LOCALAPPDATA"], "Nightshift")
def set_location(latitude, longitude):
print "Setting location to {0}, {1}".format(latitude, longitude)
try:
if not os.path.exists(appdata_folder):
os.mkdir(appdat... | 28.982759 | 75 | 0.625223 | 208 | 1,681 | 4.951923 | 0.365385 | 0.040777 | 0.029126 | 0.025243 | 0.137864 | 0.137864 | 0.08932 | 0.08932 | 0.08932 | 0.08932 | 0 | 0.001642 | 0.275431 | 1,681 | 57 | 76 | 29.491228 | 0.844007 | 0 | 0 | 0.255319 | 0 | 0 | 0.289709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.255319 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
955b6290b3f098708424dbec65825578b92645dc | 1,945 | py | Python | self_driving_desktop/grammar.py | wasimakh2/self-driving-desktop | 309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6 | [
"MIT"
] | 536 | 2019-05-08T02:54:27.000Z | 2022-03-24T10:02:07.000Z | self_driving_desktop/grammar.py | JonTheNiceGuy/self-driving-desktop | 309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6 | [
"MIT"
] | 17 | 2019-05-08T03:08:14.000Z | 2021-03-02T12:52:53.000Z | self_driving_desktop/grammar.py | JonTheNiceGuy/self-driving-desktop | 309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6 | [
"MIT"
] | 33 | 2019-05-08T03:50:56.000Z | 2021-12-08T11:22:29.000Z | grammar = r"""
start: (item ";")+
item: import | coords | playlist | step
import : "import" string
coords : "coords" coords_body
coords_body : "{" coord_def ("," coord_def)* "}"
coord_def: string ":" "{" coord_body ("," coord_body)* "}"
coord_body: string ":" "[" int "," int "]"
playlist : "playlist" string playli... | 19.45 | 58 | 0.682776 | 245 | 1,945 | 5.293878 | 0.289796 | 0.055513 | 0.041635 | 0.024672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13419 | 1,945 | 99 | 59 | 19.646465 | 0.77019 | 0 | 0 | 0 | 0 | 0 | 0.990746 | 0.094602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084337 | 0 | 0.084337 | 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 |
955f1cf7d1a0592b32cf0c5abbfe0bb9060df419 | 2,805 | py | Python | geocamUtil/usng/convertUsngCsv.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 4 | 2017-03-03T16:24:24.000Z | 2018-06-24T05:50:40.000Z | geocamUtil/usng/convertUsngCsv.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2021-09-29T17:17:30.000Z | 2021-09-29T17:17:30.000Z | geocamUtil/usng/convertUsngCsv.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2017-12-19T20:45:53.000Z | 2017-12-19T20:45:53.000Z | #!/usr/bin/env python
# __BEGIN_LICENSE__
#Copyright (c) 2015, United States Government, as represented by the
#Administrator of the National Aeronautics and Space Administration.
#All rights reserved.
# __END_LICENSE__
"""
Takes as input a CSV file in the format:
37 46 29.2080,-122 25 08.1336,San Francisco
37 27 1... | 30.824176 | 92 | 0.624242 | 338 | 2,805 | 5.115385 | 0.467456 | 0.026027 | 0.043378 | 0.060729 | 0.091382 | 0.091382 | 0.091382 | 0.091382 | 0.039329 | 0 | 0 | 0.041767 | 0.257398 | 2,805 | 90 | 93 | 31.166667 | 0.788286 | 0.074866 | 0 | 0.033898 | 0 | 0 | 0.189225 | 0.046305 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
955fe4376191cdb0e3d9522af865a55375090411 | 246 | py | Python | examples/fullproject/items/user.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | null | null | null | examples/fullproject/items/user.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | null | null | null | examples/fullproject/items/user.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | 1 | 2019-11-12T20:15:50.000Z | 2019-11-12T20:15:50.000Z | from toapi import Item, XPath
class User(Item):
url = XPath('//a[@class="hnuser"][1]/@href')
name = XPath('//a[@class="hnuser"][1]/text()')
class Meta:
source = XPath('//tr[@class="athing"]')
route = '/news\?p=\d+'
| 22.363636 | 50 | 0.536585 | 33 | 246 | 4 | 0.666667 | 0.090909 | 0.166667 | 0.257576 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.211382 | 246 | 10 | 51 | 24.6 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0.373984 | 0.325203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
9566c8358fb6d074b645539d82fffd8a430711c8 | 1,770 | py | Python | processDiscoveryNews4chat.py | data-henrik/watson-chatbot-discovery-news | d63d579718d4fc529af29bb413c73fdbd9b52361 | [
"Apache-2.0"
] | 3 | 2019-05-03T20:28:45.000Z | 2019-06-28T09:58:25.000Z | processDiscoveryNews4chat.py | psaupsau/watson-chatbot-discovery-news | d63d579718d4fc529af29bb413c73fdbd9b52361 | [
"Apache-2.0"
] | null | null | null | processDiscoveryNews4chat.py | psaupsau/watson-chatbot-discovery-news | d63d579718d4fc529af29bb413c73fdbd9b52361 | [
"Apache-2.0"
] | 4 | 2019-04-25T16:49:47.000Z | 2020-07-02T15:27:05.000Z | # Handle client-side action for an IBM Watson Assistant chatbot
#
# The code requires my Watson Conversation Tool. For details see
# https://github.com/data-henrik/watson-conversation-tool
#
#
# Setup: Configure your credentials
# - for Watson Assistant see instructions for the tool
# - for Discovery change username / ... | 35.4 | 95 | 0.714124 | 222 | 1,770 | 5.599099 | 0.540541 | 0.036203 | 0.04103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007725 | 0.19548 | 1,770 | 50 | 96 | 35.4 | 0.865169 | 0.546893 | 0 | 0 | 0 | 0 | 0.190231 | 0.064267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9567e6ba5dc9af36046c391fbc5d4e1144009cc8 | 378 | py | Python | objects/regex_deleter.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | objects/regex_deleter.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | objects/regex_deleter.py | Egor2005l/cho | c7cb165394089b277be5c306edde0b8fb42e466d | [
"MIT"
] | null | null | null | from typing import Dict
from objects.base import BaseModel
class RegexDeleter(BaseModel):
name: str
regex: str
chat_id: int
for_all: bool
def save(self) -> Dict[str, int]:
return {
'name': self.name,
'regex': self.regex,
'chat_id': self.... | 19.894737 | 38 | 0.531746 | 45 | 378 | 4.333333 | 0.488889 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 378 | 18 | 39 | 21 | 0.819328 | 0 | 0 | 0 | 0 | 0 | 0.063889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 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 |
956d8de300f81dc8c0786d5a4d8868b85762da6f | 16,229 | py | Python | networks/infill/func_intersect_ub.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | 2 | 2020-07-09T19:34:03.000Z | 2021-06-21T23:09:23.000Z | networks/larflow/models/func_intersect_ub.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | networks/larflow/models/func_intersect_ub.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | import os,time
import torch
from larcv import larcv
import numpy as np
import ROOT as rt
from array import array
class IntersectUB( torch.autograd.Function ):
larcv_version = None
dataloaded = False
imgdimset = False
@classmethod
def load_intersection_data(cls,intersectiondatafile=None,larcv_vers... | 48.735736 | 182 | 0.644217 | 2,164 | 16,229 | 4.590573 | 0.139094 | 0.033823 | 0.029092 | 0.013086 | 0.473827 | 0.401651 | 0.338031 | 0.269881 | 0.224985 | 0.224784 | 0 | 0.037028 | 0.217882 | 16,229 | 332 | 183 | 48.88253 | 0.745608 | 0.127303 | 0 | 0.115556 | 0 | 0 | 0.076192 | 0.014543 | 0 | 0 | 0 | 0 | 0.004444 | 0 | null | null | 0 | 0.026667 | null | null | 0.062222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95770242fba26f6f07dd35c5f3e789a8b70b5318 | 2,961 | py | Python | fcos/datasets/cityscapes.py | rosshemsley/fcos | de30bb2c78df54cae6814282c7166beed333d34c | [
"MIT"
] | 5 | 2020-08-02T11:03:25.000Z | 2021-12-12T19:37:09.000Z | fcos/datasets/cityscapes.py | rosshemsley/fcos | de30bb2c78df54cae6814282c7166beed333d34c | [
"MIT"
] | null | null | null | fcos/datasets/cityscapes.py | rosshemsley/fcos | de30bb2c78df54cae6814282c7166beed333d34c | [
"MIT"
] | 1 | 2021-03-05T12:19:48.000Z | 2021-03-05T12:19:48.000Z | import pathlib
import logging
from torch import nn
import numpy as np
import torch
import torch.functional as F
import torchvision.transforms as T
from torch.utils.data import Dataset
from torchvision.datasets.cityscapes import Cityscapes
import cv2
from torchvision.transforms import ToPILImage
from torch.utils.data ... | 24.882353 | 90 | 0.628842 | 387 | 2,961 | 4.630491 | 0.325581 | 0.03683 | 0.035714 | 0.018415 | 0.09933 | 0.050223 | 0.026786 | 0 | 0 | 0 | 0 | 0.007353 | 0.265113 | 2,961 | 118 | 91 | 25.09322 | 0.816176 | 0.038838 | 0 | 0 | 0 | 0 | 0.052687 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.02381 | 0.416667 | 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 |
9577bc0bf7d0b84bf30768ffc4afd03a7523fd8b | 6,960 | py | Python | core/event/event_handler.py | ErlendHer/AlgoView | 946c2bb38e2ab3af011281c9672af4fcca84ae87 | [
"Apache-2.0"
] | 1 | 2020-11-26T09:37:28.000Z | 2020-11-26T09:37:28.000Z | core/event/event_handler.py | ErlendHer/AlgoView | 946c2bb38e2ab3af011281c9672af4fcca84ae87 | [
"Apache-2.0"
] | null | null | null | core/event/event_handler.py | ErlendHer/AlgoView | 946c2bb38e2ab3af011281c9672af4fcca84ae87 | [
"Apache-2.0"
] | 1 | 2020-12-09T17:18:12.000Z | 2020-12-09T17:18:12.000Z | class EventHandler:
def __init__(self, maze, maze_handler, maze_builder, bfs, a_star, indexes, text_table, screen):
"""
Initialize a new EventHandler instance.
:param maze: _maze list
:param maze_handler: MazeHandler instance
:param maze_builder: MazeBuilder instance
... | 34.117647 | 116 | 0.616379 | 863 | 6,960 | 4.541136 | 0.134415 | 0.069405 | 0.07655 | 0.080378 | 0.700179 | 0.674917 | 0.638173 | 0.631283 | 0.623373 | 0.605256 | 0 | 0.004995 | 0.309626 | 6,960 | 203 | 117 | 34.285714 | 0.810614 | 0.262356 | 0 | 0.578947 | 0 | 0 | 0.005543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115789 | false | 0 | 0 | 0 | 0.136842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
957d235d1750094b4270c5454f14c28d2e8173f1 | 769 | py | Python | Post/migrations/0002_auto_20201110_0901.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | 2 | 2020-12-27T11:28:02.000Z | 2021-01-04T07:52:38.000Z | Post/migrations/0002_auto_20201110_0901.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | 1 | 2020-12-26T13:36:12.000Z | 2020-12-26T13:36:12.000Z | Post/migrations/0002_auto_20201110_0901.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-11-10 03:16
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Post', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
... | 30.76 | 224 | 0.594278 | 84 | 769 | 5.369048 | 0.678571 | 0.044346 | 0.088692 | 0.075388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050089 | 0.273082 | 769 | 24 | 225 | 32.041667 | 0.756708 | 0.058518 | 0 | 0.222222 | 1 | 0 | 0.19341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
957e510be8f3a2b81dab14d254545719454d7bb3 | 2,714 | py | Python | About.py | pm-str/CountDown-More | 90eed19b3d5e417d474f1d79e07c6740f5a9a53d | [
"MIT"
] | null | null | null | About.py | pm-str/CountDown-More | 90eed19b3d5e417d474f1d79e07c6740f5a9a53d | [
"MIT"
] | null | null | null | About.py | pm-str/CountDown-More | 90eed19b3d5e417d474f1d79e07c6740f5a9a53d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'About.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectN... | 49.345455 | 140 | 0.70339 | 315 | 2,714 | 5.977778 | 0.374603 | 0.090813 | 0.031864 | 0.062135 | 0.168879 | 0.111524 | 0.03505 | 0.03505 | 0 | 0 | 0 | 0.028344 | 0.168018 | 2,714 | 54 | 141 | 50.259259 | 0.80558 | 0.065954 | 0 | 0 | 1 | 0 | 0.15625 | 0.01068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.095238 | 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 |
9581ac185297ca50496beb710a3edddd006be6af | 6,792 | py | Python | misc_scripts/downsample.py | rajesh-ibm-power/MITObim | 5d617054975a0e30e0f6c6fb88d21862eaae238f | [
"MIT"
] | 81 | 2015-01-21T21:48:20.000Z | 2022-03-22T12:43:50.000Z | misc_scripts/downsample.py | rajesh-ibm-power/MITObim | 5d617054975a0e30e0f6c6fb88d21862eaae238f | [
"MIT"
] | 47 | 2015-02-16T22:53:00.000Z | 2021-12-16T20:38:17.000Z | misc_scripts/downsample.py | rajesh-ibm-power/MITObim | 5d617054975a0e30e0f6c6fb88d21862eaae238f | [
"MIT"
] | 37 | 2015-01-29T07:34:32.000Z | 2022-03-17T07:20:00.000Z | #!/usr/bin/python
"""downsample
Author: Christoph Hahn (christoph.hahn@uni-graz.at)
February 2017
Extract a random subsample of ~ x % reads from fastq data.
The choice is based on a random number generator. For each fastq read, a random number between 1-100 will be generated. If the random number is smaller than t... | 36.12766 | 383 | 0.6197 | 961 | 6,792 | 4.340271 | 0.228928 | 0.030209 | 0.023735 | 0.021578 | 0.349796 | 0.300408 | 0.274035 | 0.257732 | 0.257732 | 0.257732 | 0 | 0.033833 | 0.273263 | 6,792 | 187 | 384 | 36.320856 | 0.811183 | 0.009276 | 0 | 0.252336 | 0 | 0.065421 | 0.34254 | 0.022379 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093458 | null | null | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9583bb525f9a10680502ac52b441c849a250aefe | 2,107 | py | Python | cdk-cross-stack-references/app.py | MauriceBrg/aws-blog.de-projects | ce0e86ccdd845c68c41d9190239926756e09c998 | [
"MIT"
] | 36 | 2019-10-01T12:19:49.000Z | 2021-09-11T00:55:43.000Z | cdk-cross-stack-references/app.py | MauriceBrg/aws-blog.de-projects | ce0e86ccdd845c68c41d9190239926756e09c998 | [
"MIT"
] | 2 | 2021-06-02T00:19:43.000Z | 2021-06-02T00:51:48.000Z | cdk-cross-stack-references/app.py | MauriceBrg/aws-blog.de-projects | ce0e86ccdd845c68c41d9190239926756e09c998 | [
"MIT"
] | 29 | 2019-07-23T04:05:15.000Z | 2021-08-12T14:36:57.000Z | #!/usr/bin/env python3
import aws_cdk.aws_iam as iam
import aws_cdk.aws_s3 as s3
from aws_cdk import core
class ExportingStack(core.Stack):
exported_role_a: iam.Role
exported_role_b: iam.Role
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kw... | 25.385542 | 106 | 0.570954 | 215 | 2,107 | 5.325581 | 0.367442 | 0.030568 | 0.034061 | 0.031441 | 0.289956 | 0.190393 | 0.190393 | 0.059389 | 0 | 0 | 0 | 0.028129 | 0.325107 | 2,107 | 82 | 107 | 25.695122 | 0.777075 | 0.203607 | 0 | 0.148148 | 0 | 0 | 0.061188 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95850f5ad82092788d3a213273d93bc24cd594e7 | 4,079 | py | Python | src/api/algorithm/abstract.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | src/api/algorithm/abstract.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | src/api/algorithm/abstract.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod, abstractproperty
from typing import Dict
__all__ = ["AbstractAlgorithm"]
class AbstractAlgorithm(ABC):
@abstractmethod
def preprocess(self, text: str) -> Dict:
"""Применяется к каждому фрагменту текста.
:param text: Текст
:type text: str
... | 31.620155 | 79 | 0.61314 | 408 | 4,079 | 6.071078 | 0.409314 | 0.027453 | 0.043601 | 0.048446 | 0.058135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008532 | 0.31037 | 4,079 | 128 | 80 | 31.867188 | 0.872023 | 0.505271 | 0 | 0.297872 | 0 | 0 | 0.207767 | 0.013592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0.12766 | 0.042553 | 0 | 0.319149 | 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 |
95851ced698edaf85c4890ce3e5ba9ddb348e00d | 304 | py | Python | buidl/libsec_build.py | jamesob/buidl-python | 84ef0284c2bff8bb09cb804c6a02f99e78e59dbe | [
"MIT"
] | 45 | 2020-10-23T13:03:41.000Z | 2022-03-27T17:32:43.000Z | buidl/libsec_build.py | jamesob/buidl-python | 84ef0284c2bff8bb09cb804c6a02f99e78e59dbe | [
"MIT"
] | 87 | 2020-10-23T19:59:36.000Z | 2022-03-03T18:05:58.000Z | buidl/libsec_build.py | jamesob/buidl-python | 84ef0284c2bff8bb09cb804c6a02f99e78e59dbe | [
"MIT"
] | 8 | 2020-11-26T14:29:32.000Z | 2022-03-01T23:00:44.000Z | #!/usr/bin/python3
from cffi import FFI
source = open("libsec.h", "r").read()
header = """
#include <secp256k1.h>
#include <secp256k1_extrakeys.h>
#include <secp256k1_schnorrsig.h>
"""
ffi = FFI()
ffi.cdef(source)
ffi.set_source("_libsec", header, libraries=["secp256k1"])
ffi.compile(verbose=True)
| 16.888889 | 58 | 0.703947 | 41 | 304 | 5.121951 | 0.585366 | 0.228571 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.105263 | 304 | 17 | 59 | 17.882353 | 0.709559 | 0.055921 | 0 | 0 | 0 | 0 | 0.405594 | 0.164336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
959ca1652d25eeda188d0626465d82a0647c2777 | 1,886 | py | Python | algorithms/library/metricscontroller.py | heitor57/poi-rss | 12990af118f19595be01bf80e26a7ee93f9d05d8 | [
"MIT"
] | 1 | 2021-09-01T23:55:27.000Z | 2021-09-01T23:55:27.000Z | algorithms/library/metricscontroller.py | heitor57/poi-rss | 12990af118f19595be01bf80e26a7ee93f9d05d8 | [
"MIT"
] | 1 | 2021-09-09T06:21:48.000Z | 2021-09-14T02:08:33.000Z | algorithms/library/metricscontroller.py | heitor57/poi-rss | 12990af118f19595be01bf80e26a7ee93f9d05d8 | [
"MIT"
] | null | null | null | import numpy as np
class MetricsController:
def __init__(self,metrics=None,algorithm="generic",metrics_path="/home/heitor/recsys/data/metrics",k=10):
self.algorithm=algorithm
self.metrics_path=metrics_path
self.k=k
if metrics==None:
self.fload_metrics()
... | 37.72 | 158 | 0.559915 | 254 | 1,886 | 4.051181 | 0.259843 | 0.22449 | 0.116618 | 0.020408 | 0.338192 | 0.338192 | 0.300292 | 0.259475 | 0.178814 | 0.178814 | 0 | 0.007123 | 0.255567 | 1,886 | 50 | 159 | 37.72 | 0.724359 | 0.159597 | 0 | 0.15 | 0 | 0.025 | 0.140317 | 0.093968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0.025 | 0.025 | 0.025 | 0.275 | 0.075 | 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 |
959f88de24a529a6005e19e9f3a68842519cdb55 | 930 | py | Python | slackbot/admin.py | surface-security/django-slackbot | 8d22fb922cf5365284d7a4836bb095eeeb8c7e90 | [
"MIT"
] | 1 | 2022-01-24T10:29:09.000Z | 2022-01-24T10:29:09.000Z | slackbot/admin.py | surface-security/django-slack-processor | 8d22fb922cf5365284d7a4836bb095eeeb8c7e90 | [
"MIT"
] | 4 | 2022-02-21T15:59:08.000Z | 2022-03-26T00:33:13.000Z | slackbot/admin.py | surface-security/django-slack-processor | 8d22fb922cf5365284d7a4836bb095eeeb8c7e90 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.html import format_html
from . import get_user_model
@admin.register(get_user_model())
class UserAdmin(admin.ModelAdmin):
list_display = ['ext_id', 'username', 'name', 'email', 'active', 'is_bot', 'is_admin', 'get_photo', 'last_seen']
list_filter = ('active'... | 34.444444 | 119 | 0.634409 | 121 | 930 | 4.595041 | 0.479339 | 0.071942 | 0.091727 | 0.070144 | 0.233813 | 0.201439 | 0.201439 | 0.201439 | 0.201439 | 0.201439 | 0 | 0.002688 | 0.2 | 930 | 26 | 120 | 35.769231 | 0.744624 | 0 | 0 | 0 | 0 | 0 | 0.272043 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
95a0896392ae42746732acf467a7a7dc9ad52617 | 1,476 | py | Python | touroute/tourouteapp/migrations/0001_initial.py | oscarlamasrios/toroute | 5b00c0f606f438229e7857f25a23c4d51ff34293 | [
"Apache-2.0"
] | null | null | null | touroute/tourouteapp/migrations/0001_initial.py | oscarlamasrios/toroute | 5b00c0f606f438229e7857f25a23c4d51ff34293 | [
"Apache-2.0"
] | null | null | null | touroute/tourouteapp/migrations/0001_initial.py | oscarlamasrios/toroute | 5b00c0f606f438229e7857f25a23c4d51ff34293 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-04-24 14:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | 34.325581 | 117 | 0.571816 | 149 | 1,476 | 5.516779 | 0.416107 | 0.048662 | 0.051095 | 0.080292 | 0.517032 | 0.453771 | 0.453771 | 0.453771 | 0.453771 | 0.453771 | 0 | 0.020932 | 0.28794 | 1,476 | 42 | 118 | 35.142857 | 0.76118 | 0.046748 | 0 | 0.441176 | 1 | 0 | 0.069801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.205882 | 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 |
95a1633d9ce1bb6f212d67d9111c6397f243ba02 | 19,691 | py | Python | catalog/application.py | gevannmullins/catalog-category-items | 850c77e17d5123511c954e3705f522228c6574ea | [
"MIT"
] | null | null | null | catalog/application.py | gevannmullins/catalog-category-items | 850c77e17d5123511c954e3705f522228c6574ea | [
"MIT"
] | null | null | null | catalog/application.py | gevannmullins/catalog-category-items | 850c77e17d5123511c954e3705f522228c6574ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, Item, User
from flask import session as login_session
import random
import string
impor... | 35.867031 | 174 | 0.632218 | 2,330 | 19,691 | 5.20515 | 0.143777 | 0.066293 | 0.021768 | 0.024736 | 0.540897 | 0.496867 | 0.439232 | 0.384235 | 0.322559 | 0.294772 | 0 | 0.007785 | 0.243309 | 19,691 | 548 | 175 | 35.932482 | 0.806175 | 0.073231 | 0 | 0.413953 | 0 | 0.006977 | 0.275326 | 0.037872 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037209 | null | null | 0.006977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95a3fd394b5e1d1a390370d7caef0aefa5912c98 | 576 | py | Python | Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
from solution1 import checkParticipants as f
qa = [
([0, 1, 1, 5, 4, 8],
[2]),
([0, 1, 2, 3, 4, 5],
[]),
([6],
[]),
([3, 3, 3, 3, 3, 3, 3, 3],
[4, 5, 6, 7]),
([0, 0, 1, 5, 5, 4, 5, 4, 10, 8],
[1, 2, 5, 6, 7, 9])
]
for *q, a in qa:
for i, e in enumerate(q):
... | 19.2 | 47 | 0.378472 | 90 | 576 | 2.422222 | 0.4 | 0.06422 | 0.082569 | 0.091743 | 0.036697 | 0.036697 | 0.036697 | 0 | 0 | 0 | 0 | 0.134831 | 0.381944 | 576 | 29 | 48 | 19.862069 | 0.477528 | 0.012153 | 0 | 0.16 | 0 | 0 | 0.112875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.28 | 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 |
95a5e5403994144db82f320da6b9ae78fdfacc78 | 3,556 | py | Python | django_thermostat/pypelib/Rule.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | django_thermostat/pypelib/Rule.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | django_thermostat/pypelib/Rule.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import time
import exceptions
import uuid
import logging
'''
@author: msune,lbergesio,omoya,CarolinaFernandez
@organization: i2CAT, OFELIA FP7
PolicyEngine Rule class
Encapsulates logic of a simple Rule
'''
from django_thermostat.pypelib.Condition import Condition
from django_thermo... | 27.353846 | 105 | 0.719629 | 427 | 3,556 | 5.847775 | 0.297424 | 0.032038 | 0.039247 | 0.032439 | 0.023228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001019 | 0.171822 | 3,556 | 129 | 106 | 27.565891 | 0.846859 | 0.066367 | 0 | 0.066667 | 0 | 0 | 0.101177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
95abecff3908d6331f655cf91a24b321277dc4f4 | 12,306 | py | Python | For_Cluster/letshpc_folder_backtracking_2/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | 2 | 2019-05-10T09:09:07.000Z | 2022-02-07T05:46:57.000Z | For_Cluster/letshpc_folder_bitmasking/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | null | null | null | For_Cluster/letshpc_folder_bitmasking/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | null | null | null | #!/bin/python
import subprocess
import os
import sys
import maps
import time
import logging
def line(n):
print('-'*n)
logging.basicConfig(filename = "LetsHPC_Team_CodeRunner.log", level = logging.INFO)
logger = logging.getLogger(__name__)
#####################################################################... | 34.664789 | 138 | 0.491549 | 1,325 | 12,306 | 4.387925 | 0.160755 | 0.045408 | 0.037152 | 0.035604 | 0.375645 | 0.346577 | 0.327829 | 0.28655 | 0.275542 | 0.26591 | 0 | 0.006614 | 0.385666 | 12,306 | 354 | 139 | 34.762712 | 0.762434 | 0.025841 | 0 | 0.425455 | 0 | 0.003636 | 0.207624 | 0.004066 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021818 | null | null | 0.105455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95b11eb96aa3d734016e0fceb804be347a3066c5 | 1,860 | py | Python | testModules/migration.py | mannamman/newsCrawl | 8779c1ee06ef51d2affbd9b8a80e688c6ed056e7 | [
"MIT"
] | null | null | null | testModules/migration.py | mannamman/newsCrawl | 8779c1ee06ef51d2affbd9b8a80e688c6ed056e7 | [
"MIT"
] | 14 | 2021-12-20T03:44:08.000Z | 2022-02-24T06:04:06.000Z | testModules/migration.py | mannamman/newsCrawl | 8779c1ee06ef51d2affbd9b8a80e688c6ed056e7 | [
"MIT"
] | null | null | null | import pymongo
## local 테스트 ##
from dotenv import load_dotenv
import os
import pytz
import datetime
import itertools
from uuid import uuid4
from collections import defaultdict
# ObjectId로 쿼리할때 필요
from bson.objectid import ObjectId
"""
RDBMS Mongo DB
Database Database
Table Collection
Row Document
Index... | 28.181818 | 111 | 0.638172 | 226 | 1,860 | 5.004425 | 0.429204 | 0.035367 | 0.045093 | 0.055703 | 0.044209 | 0.044209 | 0 | 0 | 0 | 0 | 0 | 0.001409 | 0.237097 | 1,860 | 66 | 112 | 28.181818 | 0.795631 | 0.02043 | 0 | 0.088889 | 0 | 0 | 0.094216 | 0.04353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.422222 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
95b591115eff8da9eaed281f3f62bddae8faefca | 755 | py | Python | model/param_const.py | tototo617/Biomodel-Raia2011 | a06d531e3d9f18ddee1d85a19d8c57363be3da8e | [
"MIT"
] | null | null | null | model/param_const.py | tototo617/Biomodel-Raia2011 | a06d531e3d9f18ddee1d85a19d8c57363be3da8e | [
"MIT"
] | null | null | null | model/param_const.py | tototo617/Biomodel-Raia2011 | a06d531e3d9f18ddee1d85a19d8c57363be3da8e | [
"MIT"
] | null | null | null | from .name2idx import parameters as C
def f_params():
x = [0]*C.len_f_params
x[C.Kon_IL13Rec] = 0.00341992
x[C.Rec_phosphorylation] = 999.631
x[C.pRec_intern] = 0.15254
x[C.pRec_degradation] = 0.172928
x[C.Rec_intern] = 0.103346
x[C.Rec_recycle] = 0.00135598
x[C.JAK2_phosphorylation] =... | 31.458333 | 46 | 0.682119 | 124 | 755 | 3.983871 | 0.491935 | 0.068826 | 0.030364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228385 | 0.188079 | 755 | 24 | 47 | 31.458333 | 0.577488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95b980c29bfb10b077998e38727075e9d4e823a6 | 2,271 | py | Python | day4/day4.py | UncleTed/adventOfCode2020 | 382560f7aee89f6b04b2ee60882d3801425ea46c | [
"MIT"
] | null | null | null | day4/day4.py | UncleTed/adventOfCode2020 | 382560f7aee89f6b04b2ee60882d3801425ea46c | [
"MIT"
] | null | null | null | day4/day4.py | UncleTed/adventOfCode2020 | 382560f7aee89f6b04b2ee60882d3801425ea46c | [
"MIT"
] | null | null | null | import re
valid = ['hcl', 'iyr', 'pid', 'ecl', 'hgt','eyr', 'byr' ]
def check_passport_part1(buffer):
passport = map(lambda x: x.split(':')[0], buffer.split(' '))
for v in valid:
if v not in passport:
return False
return True
def split_passport(buffer):
dictionary = {}
for fiel... | 27.695122 | 66 | 0.483928 | 279 | 2,271 | 3.892473 | 0.283154 | 0.04512 | 0.038674 | 0.044199 | 0.298343 | 0.230203 | 0.138122 | 0.138122 | 0.138122 | 0.138122 | 0 | 0.0375 | 0.365918 | 2,271 | 82 | 67 | 27.695122 | 0.716667 | 0.003082 | 0 | 0.4 | 0 | 0 | 0.05212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.142857 | 0.014286 | 0 | 0.314286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
95bd0c7bd55d7d49e38f428fd858ef62fbc90459 | 269 | py | Python | tests/ansible/lib/modules/custom_python_external_pkg.py | webcoast-dk/mitogen | a5fe4a9fac5561511b676fe61ed127b732be5b12 | [
"BSD-3-Clause"
] | 1,526 | 2017-09-15T18:49:40.000Z | 2021-01-17T16:04:12.000Z | tests/ansible/lib/modules/custom_python_external_pkg.py | webcoast-dk/mitogen | a5fe4a9fac5561511b676fe61ed127b732be5b12 | [
"BSD-3-Clause"
] | 682 | 2017-09-11T17:43:12.000Z | 2021-01-17T05:26:26.000Z | tests/ansible/lib/modules/custom_python_external_pkg.py | webcoast-dk/mitogen | a5fe4a9fac5561511b676fe61ed127b732be5b12 | [
"BSD-3-Clause"
] | 111 | 2017-09-15T23:21:37.000Z | 2021-01-01T14:45:35.000Z | #!/usr/bin/python
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.externalpkg import extmod
def main():
module = AnsibleModule(argument_spec={})
module.exit_json(extmod_path=extmod.path())
if __name__ == '__main__':
main()
| 22.416667 | 52 | 0.750929 | 34 | 269 | 5.558824 | 0.617647 | 0.116402 | 0.179894 | 0.232804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130112 | 269 | 11 | 53 | 24.454545 | 0.807692 | 0.05948 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
95bd18d246cfb63e62a2a8d0384166889102ed92 | 1,869 | py | Python | mlangpy/metalanguages/EBNF.py | rium9/mlangpy | 75821306b15d72278220d2a1a403daa36f60cc4a | [
"MIT"
] | 1 | 2020-04-20T20:23:31.000Z | 2020-04-20T20:23:31.000Z | mlangpy/metalanguages/EBNF.py | rium9/mlangpy | 75821306b15d72278220d2a1a403daa36f60cc4a | [
"MIT"
] | null | null | null | mlangpy/metalanguages/EBNF.py | rium9/mlangpy | 75821306b15d72278220d2a1a403daa36f60cc4a | [
"MIT"
] | null | null | null | from ..grammar import *
from .Metalanguage import Metalanguage
class EBNFTerminal(Terminal):
def __init__(self, subject, left_bound='"', right_bound='"'):
super().__init__(subject, left_bound=left_bound, right_bound=right_bound)
class EBNFDefinitionList(DefinitionList):
def __init__(self, definitio... | 29.203125 | 83 | 0.652755 | 177 | 1,869 | 6.389831 | 0.259887 | 0.095491 | 0.159151 | 0.134394 | 0.339523 | 0.339523 | 0.339523 | 0.339523 | 0.339523 | 0.339523 | 0 | 0 | 0.23328 | 1,869 | 64 | 84 | 29.203125 | 0.789253 | 0.013376 | 0 | 0.111111 | 0 | 0 | 0.005975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95c285b58cd596c463e5846360384f8f0b80a4d5 | 352 | py | Python | app/migrations/0004_auto_20200704_0405.py | duorah/GRanDpa-Family-Tree | 613df3fb61a8dd5eba7416ad6f8fda80e350bbe1 | [
"MIT"
] | 1 | 2020-07-13T21:03:17.000Z | 2020-07-13T21:03:17.000Z | app/migrations/0004_auto_20200704_0405.py | duorah/grandpa-family-tree | 613df3fb61a8dd5eba7416ad6f8fda80e350bbe1 | [
"MIT"
] | null | null | null | app/migrations/0004_auto_20200704_0405.py | duorah/grandpa-family-tree | 613df3fb61a8dd5eba7416ad6f8fda80e350bbe1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-04 04:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20200704_0400'),
]
operations = [
migrations.AlterModelOptions(
name='person',
options={'verbose_name_plura... | 19.555556 | 54 | 0.602273 | 37 | 352 | 5.594595 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 0.278409 | 352 | 17 | 55 | 20.705882 | 0.692913 | 0.127841 | 0 | 0 | 1 | 0 | 0.186885 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95cdaf4dfa1b6e4f1d482661c80dff3aa859d8b1 | 11,978 | py | Python | validatearcgisenterprisedeployment.py | pheede/ArcGIS-Server-Stuff | 9b491d2f4edebec3f613182981f4e50dcc7641a3 | [
"Apache-2.0"
] | 6 | 2017-05-31T10:44:09.000Z | 2020-12-18T18:12:15.000Z | validatearcgisenterprisedeployment.py | pheede/ArcGIS-Server-Stuff | 9b491d2f4edebec3f613182981f4e50dcc7641a3 | [
"Apache-2.0"
] | 1 | 2021-09-30T21:20:59.000Z | 2021-09-30T23:55:48.000Z | validatearcgisenterprisedeployment.py | pheede/ArcGIS-Server-Stuff | 9b491d2f4edebec3f613182981f4e50dcc7641a3 | [
"Apache-2.0"
] | 2 | 2017-12-28T19:30:23.000Z | 2019-10-04T20:34:27.000Z | """This script validates an ArcGIS Enterprise deployment to ensure it is
configured properly with all the required components such as Portal for ArcGIS,
ArcGIS Server, ArcGIS Data Store and the associated configuration.
Designed for ArcGIS Enterprise 10.5 and higher."""
# Author: Philip Heede <pheede@esri.com>
# Last... | 46.972549 | 153 | 0.655034 | 1,187 | 11,978 | 6.580455 | 0.251053 | 0.024965 | 0.017923 | 0.024197 | 0.235437 | 0.214441 | 0.186276 | 0.166304 | 0.138779 | 0.12444 | 0 | 0.003373 | 0.23276 | 11,978 | 254 | 154 | 47.15748 | 0.846572 | 0.055769 | 0 | 0.153846 | 0 | 0.009615 | 0.267995 | 0.026826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.086538 | 0.043269 | 0 | 0.120192 | 0.173077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
95da8c78112cb6f44e754d89ffd5c8e26c67e104 | 1,238 | py | Python | backend/ai4all_api/models.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | backend/ai4all_api/models.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | backend/ai4all_api/models.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | import os
from django.db import models
from ai4all_api.detection_items import DETECTION_ITEMS
from ai4all_api.notification_types import NOTIFICATION_TYPES
class SubmitCameraItem(models.Model):
date_created = models.DateTimeField(auto_now_add=True)
tg_chat_id = models.BigIntegerField()
name = models.Char... | 35.371429 | 86 | 0.757674 | 154 | 1,238 | 5.87013 | 0.506494 | 0.099558 | 0.110619 | 0.053097 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021989 | 0.155089 | 1,238 | 34 | 87 | 36.411765 | 0.842256 | 0.115509 | 0 | 0 | 0 | 0 | 0.012832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0.045455 | 0.954545 | 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 |
95ef3fa428d1d310cb953139858993824869ba27 | 1,929 | py | Python | Flatipie/widgets/cards.py | zenqiwp/Flatipie | 441b1f120d78ec072b86d1c95b381e85fbe7661d | [
"MIT"
] | 11 | 2020-11-12T08:07:56.000Z | 2021-04-27T01:42:30.000Z | Flatipie/widgets/cards.py | zenqiwp/Flatipie | 441b1f120d78ec072b86d1c95b381e85fbe7661d | [
"MIT"
] | null | null | null | Flatipie/widgets/cards.py | zenqiwp/Flatipie | 441b1f120d78ec072b86d1c95b381e85fbe7661d | [
"MIT"
] | 2 | 2020-11-12T07:08:27.000Z | 2020-11-12T08:07:58.000Z |
"""
Copyright (c) 2020 Flatipie
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | 37.096154 | 79 | 0.709176 | 250 | 1,929 | 5.404 | 0.512 | 0.065137 | 0.035529 | 0.026647 | 0.034049 | 0.034049 | 0 | 0 | 0 | 0 | 0 | 0.006775 | 0.234837 | 1,929 | 51 | 80 | 37.823529 | 0.908537 | 0.544842 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.047619 | 0.47619 | 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 |
95f557240d66982761b806e370f3acd7dca5c78f | 480 | py | Python | python_tips_three.py | obetron/python_tips | 9b6299db4f9dbc51638bba310deaf0c1dec759fe | [
"MIT"
] | null | null | null | python_tips_three.py | obetron/python_tips | 9b6299db4f9dbc51638bba310deaf0c1dec759fe | [
"MIT"
] | null | null | null | python_tips_three.py | obetron/python_tips | 9b6299db4f9dbc51638bba310deaf0c1dec759fe | [
"MIT"
] | null | null | null |
#for all read file code at the end of the code file should closed.
f = open('test.txt', 'r')
file_contents = f.read()
f.close()
words = file_contents.split(' ')
word_count = len(words)
print(word_count)
"""
OUTPUT:
3
"""
#for all the time use a file closing it is became a big job.
with open('test.txt', 'r') as f:
... | 17.777778 | 66 | 0.675 | 82 | 480 | 3.853659 | 0.5 | 0.151899 | 0.06962 | 0.075949 | 0.379747 | 0.379747 | 0.379747 | 0.379747 | 0.379747 | 0.379747 | 0 | 0.005076 | 0.179167 | 480 | 26 | 67 | 18.461538 | 0.796954 | 0.327083 | 0 | 0.727273 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95f79173711e478161ccc6939dc1c76c706f0ae5 | 1,192 | py | Python | albert/helper.py | vvvm23/albert | 548fa03832f7e64ab79f2dfa16aa5ac42469333d | [
"MIT"
] | 1 | 2021-06-10T10:54:59.000Z | 2021-06-10T10:54:59.000Z | albert/helper.py | vvvm23/albert | 548fa03832f7e64ab79f2dfa16aa5ac42469333d | [
"MIT"
] | null | null | null | albert/helper.py | vvvm23/albert | 548fa03832f7e64ab79f2dfa16aa5ac42469333d | [
"MIT"
] | null | null | null | import torch
from einops import rearrange
"""
@openai - VD-VAE
https://github.com/openai/vdvae/blob/main/vae_helpers.py
Nice helper module as calling super.__init__() gets annoying
"""
class HelperModule(torch.nn.Module):
def __init__(self, *args, **kwargs):
super().__init__()
self.bui... | 27.090909 | 100 | 0.613255 | 177 | 1,192 | 3.988701 | 0.491525 | 0.090652 | 0.03966 | 0.028329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013001 | 0.225671 | 1,192 | 43 | 101 | 27.72093 | 0.751896 | 0 | 0 | 0 | 0 | 0 | 0.035187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0.083333 | 0.458333 | 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 |
2505a01273ca3c6e0204f8f0d9964f3bd464761f | 1,125 | py | Python | register/migrations/0001_initial.py | duks500/Nilestone-Project | 6b45ac21f9d9e7a4839d6f616711cbe8daa6e051 | [
"bzip2-1.0.6"
] | null | null | null | register/migrations/0001_initial.py | duks500/Nilestone-Project | 6b45ac21f9d9e7a4839d6f616711cbe8daa6e051 | [
"bzip2-1.0.6"
] | null | null | null | register/migrations/0001_initial.py | duks500/Nilestone-Project | 6b45ac21f9d9e7a4839d6f616711cbe8daa6e051 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0 on 2020-03-29 14:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 37.5 | 165 | 0.623111 | 122 | 1,125 | 5.631148 | 0.581967 | 0.034935 | 0.040757 | 0.064047 | 0.081514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031505 | 0.238222 | 1,125 | 29 | 166 | 38.793103 | 0.770128 | 0.038222 | 0 | 0 | 1 | 0 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 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 |
250b9e3749e20788bc502eca2699fe190f414709 | 11,285 | py | Python | shape_generator/helpers.py | MarkusPic/SWMM_xsections_shape_generator | daf19c9508f3727e8cd12c450485f7f21f3e30ed | [
"MIT"
] | null | null | null | shape_generator/helpers.py | MarkusPic/SWMM_xsections_shape_generator | daf19c9508f3727e8cd12c450485f7f21f3e30ed | [
"MIT"
] | null | null | null | shape_generator/helpers.py | MarkusPic/SWMM_xsections_shape_generator | daf19c9508f3727e8cd12c450485f7f21f3e30ed | [
"MIT"
] | 1 | 2020-12-29T13:02:28.000Z | 2020-12-29T13:02:28.000Z | from io import StringIO
from os import path, listdir, remove
from math import radians, tan, cos, pi, atan, sin
from pandas import read_csv
import sympy as sy
import numpy as np
# these variables are used to solve symbolic mathematical equations
# x is the control variable over the height ... max(x) = H_cross_section
... | 25.823799 | 118 | 0.517767 | 1,463 | 11,285 | 3.897471 | 0.172932 | 0.011224 | 0.015433 | 0.014907 | 0.253946 | 0.173448 | 0.130656 | 0.090845 | 0.071905 | 0.071905 | 0 | 0.021075 | 0.31883 | 11,285 | 436 | 119 | 25.883028 | 0.720437 | 0.271511 | 0 | 0.313433 | 0 | 0.00995 | 0.049835 | 0.012207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238806 | false | 0.024876 | 0.029851 | 0.084577 | 0.492537 | 0.004975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
251c85ca611047b1b27da7153669dd51f78397d6 | 1,034 | py | Python | 201.bitwise-and-of-numbers-range.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 201.bitwise-and-of-numbers-range.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 201.bitwise-and-of-numbers-range.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=201 lang=python
#
# [201] Bitwise AND of Numbers Range
#
# https://leetcode.com/problems/bitwise-and-of-numbers-range/description/
#
# algorithms
# Medium (35.44%)
# Total Accepted: 77.3K
# Total Submissions: 217.7K
# Testcase Example: '5\n7'
#
# Given a range [m, n] where 0 <= m <= n <= 214... | 19.509434 | 78 | 0.548356 | 142 | 1,034 | 3.93662 | 0.5 | 0.075134 | 0.064401 | 0.067979 | 0.257603 | 0.171735 | 0.171735 | 0.171735 | 0.171735 | 0.171735 | 0 | 0.061625 | 0.309478 | 1,034 | 52 | 79 | 19.884615 | 0.721289 | 0.452611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
251d599be91a9d5e66da8bf669765945fc72709e | 299 | py | Python | 1_Sys_Module/sysIO.py | ericchou1/Top5PythonModulesForNetworkEngineers | c6aa92c3b7bf6668f049acc6d3ba295634b56027 | [
"Apache-2.0"
] | 5 | 2016-08-21T16:24:03.000Z | 2021-01-11T23:04:21.000Z | 1_Sys_Module/sysIO.py | ericchou1/Top5PythonModulesForNetworkEngineers | c6aa92c3b7bf6668f049acc6d3ba295634b56027 | [
"Apache-2.0"
] | null | null | null | 1_Sys_Module/sysIO.py | ericchou1/Top5PythonModulesForNetworkEngineers | c6aa92c3b7bf6668f049acc6d3ba295634b56027 | [
"Apache-2.0"
] | 5 | 2016-11-05T17:05:39.000Z | 2022-01-31T20:19:12.000Z | #!/usr/bin/env python
import sys
print("Please tell me your favorite color: ")
color = sys.stdin.readline()
animal = raw_input("Please tell me your favorite animal: ")
print(animal)
sys.stdout.write("Your favorite color is: " + color + " favorite animal is: " + animal + "\n")
print("*" * 10)
| 19.933333 | 94 | 0.67893 | 43 | 299 | 4.697674 | 0.534884 | 0.178218 | 0.118812 | 0.158416 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.167224 | 299 | 14 | 95 | 21.357143 | 0.803213 | 0.06689 | 0 | 0 | 0 | 0 | 0.438406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
251efaea3581632f73c0223d75becaac1ffc7162 | 954 | py | Python | measure_mate/tests/api/test_template.py | niche-tester/measure-mate | c3acba57747bcb89fe0c6b9509ec90f04a581506 | [
"MIT"
] | 15 | 2015-12-14T02:20:31.000Z | 2022-01-30T04:36:39.000Z | measure_mate/tests/api/test_template.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 1,403 | 2017-02-16T01:00:04.000Z | 2022-03-15T21:12:13.000Z | measure_mate/tests/api/test_template.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 10 | 2015-12-18T01:30:46.000Z | 2022-01-30T04:36:41.000Z | from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from measure_mate.models import Template
from measure_mate.tests.factories import TemplateFactory
class TemplateAPITestCases(APITestCase):
def test_list_template(self):
"""
Lis... | 38.16 | 73 | 0.715933 | 110 | 954 | 6.118182 | 0.427273 | 0.13373 | 0.170877 | 0.160475 | 0.166419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01023 | 0.180294 | 954 | 24 | 74 | 39.75 | 0.850384 | 0.059748 | 0 | 0 | 0 | 0 | 0.038946 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.411765 | 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 |
251f5df96375dbae57ea9bdc6db0a3e28bc73439 | 658 | py | Python | ecommerce/shop_management/migrations/0003_shop_created_at_shop_last_updated.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | ecommerce/shop_management/migrations/0003_shop_created_at_shop_last_updated.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | ecommerce/shop_management/migrations/0003_shop_created_at_shop_last_updated.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-29 11:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop_management', '0002_alter_shop_type_alter_shoptype_name'),
]
operations = [
migrations.AddField(
model_name='shop',
... | 27.416667 | 97 | 0.62462 | 73 | 658 | 5.410959 | 0.616438 | 0.091139 | 0.116456 | 0.136709 | 0.450633 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0.03719 | 0.264438 | 658 | 23 | 98 | 28.608696 | 0.778926 | 0.06535 | 0 | 0.352941 | 1 | 0 | 0.181077 | 0.065253 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
252023af22ef5365f5e3d2b2d4c333240848fc36 | 4,085 | py | Python | lib/model.py | lanseyege/rl_algorithms | 5bdc5211b84fa4e9f16e68e1407825fdcacacec0 | [
"MIT"
] | null | null | null | lib/model.py | lanseyege/rl_algorithms | 5bdc5211b84fa4e9f16e68e1407825fdcacacec0 | [
"MIT"
] | null | null | null | lib/model.py | lanseyege/rl_algorithms | 5bdc5211b84fa4e9f16e68e1407825fdcacacec0 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from lib.util import normal_log_density
class ModelActor(nn.Module):
def __init__(self, obs_size, act_size, active='tanh', hidden_size=128, lstd=-0.0):
super(ModelActor, self).__init__()
if active == 'tanh':
self.active = torch.tanh
else:
... | 31.183206 | 98 | 0.59388 | 572 | 4,085 | 4.055944 | 0.127622 | 0.086207 | 0.046552 | 0.062069 | 0.638793 | 0.568534 | 0.528017 | 0.487931 | 0.487931 | 0.473707 | 0 | 0.026307 | 0.274174 | 4,085 | 130 | 99 | 31.423077 | 0.756155 | 0.050673 | 0 | 0.554455 | 0 | 0 | 0.0031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178218 | false | 0.059406 | 0.029703 | 0 | 0.336634 | 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 |
252d0e1541c6bce0edda34974ac8e4c3861ecde4 | 2,622 | py | Python | scripts/create_fluseverity_figs/Supp_zOR_totalAR.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | 3 | 2018-03-29T23:02:43.000Z | 2020-08-10T12:01:50.000Z | scripts/create_fluseverity_figs/Supp_zOR_totalAR.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | scripts/create_fluseverity_figs/Supp_zOR_totalAR.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | #!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 9/2/14
###Function: mean peak-based retro zOR metric vs. total attack rate
###Import data: SQL_export/OR_allweeks_outpatient.csv, SQL_export/OR_allweeks.csv
###Command Line: python Supp_zOR_totalAR.... | 32.775 | 171 | 0.71167 | 399 | 2,622 | 4.508772 | 0.463659 | 0.022235 | 0.033352 | 0.053363 | 0.155086 | 0.113396 | 0.095053 | 0.095053 | 0.095053 | 0.095053 | 0 | 0.019726 | 0.110603 | 2,622 | 79 | 172 | 33.189873 | 0.751715 | 0.291381 | 0 | 0 | 0 | 0 | 0.258907 | 0.218527 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114286 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
252f723efb0474d342e7055aa1aa0011f4760543 | 3,731 | py | Python | fuentes/Colecciones.py | victorricardo/tutorial-python | 5a49407e98c371b39d53993a8d5f63ed9f266353 | [
"OLDAP-2.5"
] | null | null | null | fuentes/Colecciones.py | victorricardo/tutorial-python | 5a49407e98c371b39d53993a8d5f63ed9f266353 | [
"OLDAP-2.5"
] | null | null | null | fuentes/Colecciones.py | victorricardo/tutorial-python | 5a49407e98c371b39d53993a8d5f63ed9f266353 | [
"OLDAP-2.5"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Colecciones - Listas
# In[1]:
l = [22, True, "una lista", [1, 2]]
mi_var = l[0] # mi_var vale 22
mi_var1 = l[3] # mi_var1 vale [1, 2]
print (mi_var)
print (mi_var1)
# In[50]:
# Si queremos acceder a un elemento de una lista incluida dentro de otra lista tendremos que
#... | 31.091667 | 123 | 0.703029 | 633 | 3,731 | 4.094787 | 0.312796 | 0.054012 | 0.03858 | 0.023148 | 0.124228 | 0.114198 | 0.114198 | 0.100309 | 0.100309 | 0.070988 | 0 | 0.030063 | 0.188689 | 3,731 | 119 | 124 | 31.352941 | 0.826231 | 0.725543 | 0 | 0.35 | 0 | 0 | 0.212215 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2536ce2ad28b7718b5111d981d1c1217ff573d5d | 1,868 | py | Python | 11_ContainerWithMostWater/container_with_most_water.py | xiaowei1118/leetcode-python | 24d4ccbbf9643100dd2de91afd5d30dca9b7ffe1 | [
"MIT"
] | 2 | 2017-10-09T16:59:01.000Z | 2017-10-10T08:38:08.000Z | 11_ContainerWithMostWater/container_with_most_water.py | xiaowei1118/leetcode-python | 24d4ccbbf9643100dd2de91afd5d30dca9b7ffe1 | [
"MIT"
] | null | null | null | 11_ContainerWithMostWater/container_with_most_water.py | xiaowei1118/leetcode-python | 24d4ccbbf9643100dd2de91afd5d30dca9b7ffe1 | [
"MIT"
] | null | null | null | # coding: utf-8
# 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。
# 在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。
# 找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。
#
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/container-with-most-water
class Solution(object):
# 递归做法
def maxArea1(self, height):
"""
... | 20.527473 | 68 | 0.4197 | 230 | 1,868 | 3.408696 | 0.317391 | 0.084184 | 0.053571 | 0.076531 | 0.445153 | 0.404337 | 0.404337 | 0.404337 | 0.404337 | 0.360969 | 0 | 0.033465 | 0.456103 | 1,868 | 90 | 69 | 20.755556 | 0.738189 | 0.141863 | 0 | 0.586957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
253841f648fa7d855056a9bf18031761bbedfe7c | 561 | py | Python | app/system/migrations/0003_auto_20181206_1042.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 7 | 2018-11-13T17:39:15.000Z | 2019-03-27T04:55:24.000Z | app/system/migrations/0003_auto_20181206_1042.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 72 | 2018-11-09T14:20:25.000Z | 2020-06-05T19:28:19.000Z | app/system/migrations/0003_auto_20181206_1042.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 3 | 2018-11-19T19:10:39.000Z | 2019-08-23T20:52:23.000Z | # Generated by Django 2.1.3 on 2018-12-06 10:42
from django.db import migrations, models
import system.models.system_settings
class Migration(migrations.Migration):
dependencies = [
('system', '0002_systemsettings_contract_vot_manager_address'),
]
operations = [
migrations.AlterField(
... | 28.05 | 134 | 0.691622 | 63 | 561 | 5.952381 | 0.650794 | 0.064 | 0.096 | 0.138667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047191 | 0.206774 | 561 | 19 | 135 | 29.526316 | 0.795506 | 0.080214 | 0 | 0 | 1 | 0 | 0.18677 | 0.14786 | 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 |
253ce464d772dd296d3b8fca083e60adbb02df3d | 423 | py | Python | CeV - Gustavo Guanabara/exerc022.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | 1 | 2021-12-11T19:53:41.000Z | 2021-12-11T19:53:41.000Z | CeV - Gustavo Guanabara/exerc022.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | null | null | null | CeV - Gustavo Guanabara/exerc022.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | null | null | null | #022: Crie um programa que leia o nome completo de uma pessoa e mostre:
# - O nome com todas as letras maiúsculas e minúsculas.
# - Quantas letras ao tdo (sem considerar espaços).
# - Quantas letras tem o primeiro nome.
nome = input("Qual é o seu nome? ")
print(">>",nome.upper())
print(">>",nome.lower())
jnome = nome.... | 28.2 | 71 | 0.664303 | 66 | 423 | 4.257576 | 0.651515 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.158392 | 423 | 14 | 72 | 30.214286 | 0.77809 | 0.501182 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
254d4a38068cbf495fc111202fbf1797b204e7fd | 491 | py | Python | recipe/exceptions.py | juiceinc/recipe | ef3c5af58e2d68892d54285a24b78565f6401ef4 | [
"MIT"
] | 5 | 2017-10-26T10:44:07.000Z | 2021-08-30T16:35:55.000Z | recipe/exceptions.py | juiceinc/recipe | ef3c5af58e2d68892d54285a24b78565f6401ef4 | [
"MIT"
] | 56 | 2017-10-23T14:01:37.000Z | 2022-02-17T17:07:41.000Z | recipe/exceptions.py | juiceinc/recipe | ef3c5af58e2d68892d54285a24b78565f6401ef4 | [
"MIT"
] | null | null | null | class BadIngredient(Exception):
""" Something is wrong with an ingredient """
class BadRecipe(Exception):
""" Something is wrong with a recipe """
class InvalidColumnError(Exception):
def __init__(self, *args, **kwargs):
self.column_name = kwargs.pop("column_name", None)
if not args:
... | 30.6875 | 67 | 0.651731 | 53 | 491 | 5.830189 | 0.54717 | 0.097087 | 0.12945 | 0.161812 | 0.187702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221996 | 491 | 15 | 68 | 32.733333 | 0.808901 | 0.201629 | 0 | 0 | 0 | 0 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 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 |
254f90068c187cfc444d126472019f1e35637c92 | 1,373 | py | Python | jack/io/read_semeval2017Task10.py | elyase/jack | a4f43a4012a540d55d2e05d8a904e6f8cc3002f1 | [
"MIT"
] | 192 | 2017-10-19T18:04:56.000Z | 2019-09-21T23:29:03.000Z | jack/io/read_semeval2017Task10.py | elyase/jack | a4f43a4012a540d55d2e05d8a904e6f8cc3002f1 | [
"MIT"
] | 120 | 2017-10-16T09:46:07.000Z | 2019-06-20T18:34:24.000Z | jack/io/read_semeval2017Task10.py | elyase/jack | a4f43a4012a540d55d2e05d8a904e6f8cc3002f1 | [
"MIT"
] | 50 | 2017-10-19T09:57:45.000Z | 2019-07-24T13:46:26.000Z | import os
def readAnn(textfolder="../data/SemEval2017Task10/"):
'''
Read .ann files and look up corresponding spans in .txt files
Args:
textfolder:
'''
flist = os.listdir(textfolder)
for f in flist:
if not f.endswith(".ann"):
continue
f_anno = open(os... | 32.690476 | 143 | 0.554261 | 181 | 1,373 | 4.082873 | 0.469613 | 0.043302 | 0.027064 | 0.037889 | 0.067659 | 0.067659 | 0 | 0 | 0 | 0 | 0 | 0.009847 | 0.334304 | 1,373 | 42 | 144 | 32.690476 | 0.798687 | 0.286235 | 0 | 0 | 0 | 0 | 0.096842 | 0.027368 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
25582433fc1391299fee92277e679b595fa40a57 | 1,667 | py | Python | ooobuild/lo/script/provider/script_framework_error_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/script/provider/script_framework_error_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/script/provider/script_framework_error_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 30.87037 | 165 | 0.721656 | 222 | 1,667 | 5.261261 | 0.581081 | 0.05137 | 0.025685 | 0.041096 | 0.133562 | 0.113014 | 0.113014 | 0 | 0 | 0 | 0 | 0.018601 | 0.193761 | 1,667 | 53 | 166 | 31.45283 | 0.850446 | 0.602879 | 0 | 0 | 0 | 0 | 0.287206 | 0.274151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.