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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f59e6ff2959ad5da0ce34644a57158a7a03f79a4 | 14,570 | py | Python | newagebullshitgenerator.py | rcsmit/newagebullshitgenerator | 04a0cb8f464b37aa786564f43c38efd95b6ef9de | [
"MIT"
] | null | null | null | newagebullshitgenerator.py | rcsmit/newagebullshitgenerator | 04a0cb8f464b37aa786564f43c38efd95b6ef9de | [
"MIT"
] | null | null | null | newagebullshitgenerator.py | rcsmit/newagebullshitgenerator | 04a0cb8f464b37aa786564f43c38efd95b6ef9de | [
"MIT"
] | null | null | null | # * New Age Bullshit Generator
# * © 2014-15 Seb Pearce (sebpearce.com)
# * Licensed under the MIT License.
# * Converted into Python by Rene Smit, Nov. 2020
import random
import re
import streamlit as st
def cleanSentence(sentence):
# replace 'a [vowel]' with 'an [vowel]' - works
# Seb Pearce added a \W ... | 55.39924 | 151 | 0.654084 | 1,757 | 14,570 | 5.377917 | 0.474673 | 0.002752 | 0.004127 | 0.00889 | 0.031644 | 0.016616 | 0.01397 | 0.002963 | 0 | 0 | 0 | 0.003867 | 0.183528 | 14,570 | 262 | 152 | 55.610687 | 0.790182 | 0.079272 | 0 | 0 | 0 | 0.020619 | 0.649059 | 0.001718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030928 | false | 0.005155 | 0.015464 | 0 | 0.061856 | 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 |
f59fa3841f2aab6919a241d401dd7b50f23f9706 | 76,024 | py | Python | scripts/utils/summary_scores.py | NeuroanatomyAndConnectivity/opendata | 3779cbae0d2e50d2e1210d22b2b3d40ded3dc747 | [
"MIT"
] | 5 | 2017-09-09T02:24:35.000Z | 2021-03-05T01:02:06.000Z | scripts/utils/summary_scores.py | NeuroanatomyAndConnectivity/opendata | 3779cbae0d2e50d2e1210d22b2b3d40ded3dc747 | [
"MIT"
] | null | null | null | scripts/utils/summary_scores.py | NeuroanatomyAndConnectivity/opendata | 3779cbae0d2e50d2e1210d22b2b3d40ded3dc747 | [
"MIT"
] | 1 | 2020-05-05T09:36:37.000Z | 2020-05-05T09:36:37.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 7 17:35:28 2015
@author: oligschlager
"""
import pandas as pd
import seaborn as sns
import numpy as np
sns.set_style('white')
##############################################################################
#################### Creative Achievement Questionnaire ####... | 40.075909 | 171 | 0.434139 | 9,417 | 76,024 | 3.112031 | 0.097483 | 0.027128 | 0.034942 | 0.011943 | 0.484406 | 0.418242 | 0.341261 | 0.307719 | 0.287347 | 0.26643 | 0 | 0.114481 | 0.331632 | 76,024 | 1,896 | 172 | 40.097046 | 0.4618 | 0.056482 | 0 | 0.105344 | 0 | 0 | 0.336709 | 0.052004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021374 | false | 0.000763 | 0.00229 | 0 | 0.023664 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5a7ec7cfaef5c089131ff99d0216bd4d8848585 | 137 | py | Python | 97.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | 97.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | 97.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | msg = str(input('Digite uma mensagem'))
n = 0
n = len(msg)
def escreva():
print('-'*n)
print(msg)
print('-'*n)
escreva()
| 10.538462 | 39 | 0.540146 | 20 | 137 | 3.7 | 0.6 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.240876 | 137 | 12 | 40 | 11.416667 | 0.701923 | 0 | 0 | 0.25 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
191b8a2c7f0fb938bc5002aeff903e531c5855d0 | 207 | py | Python | modules/2.79/bpy/types/UVWarpModifier.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/UVWarpModifier.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/UVWarpModifier.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class UVWarpModifier:
axis_u = None
axis_v = None
bone_from = None
bone_to = None
center = None
object_from = None
object_to = None
uv_layer = None
vertex_group = None
| 14.785714 | 23 | 0.623188 | 28 | 207 | 4.321429 | 0.535714 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328502 | 207 | 13 | 24 | 15.923077 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1920275bd38ede2e5b16108aa0d4f23f56cd754d | 5,257 | py | Python | io_file_pickle_json.py | yddgit/hello-python | 49f7d9db29049af73d2066fed36ecfd185ba8c09 | [
"Apache-2.0"
] | null | null | null | io_file_pickle_json.py | yddgit/hello-python | 49f7d9db29049af73d2066fed36ecfd185ba8c09 | [
"Apache-2.0"
] | null | null | null | io_file_pickle_json.py | yddgit/hello-python | 49f7d9db29049af73d2066fed36ecfd185ba8c09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python内置了读写文件的函数,用法与C兼容
# 读文件open()函数
# 以只读方式打开文件
f = open('test.txt', 'r')
# 如果文件不存在会抛出IOError的错误
#file_not_found = open('notfound.txt', 'r')
# 打开成功,调用read()方法读取文件内容,Python把内容读到内存,用一个str对象表示
print f.read()
# 最后调用close()方法关闭文件
f.close()
# 由于读写时都可能产生IOError,为保证文件始终正确关闭... | 27.238342 | 89 | 0.713715 | 678 | 5,257 | 5.498525 | 0.439528 | 0.020923 | 0.016094 | 0.012876 | 0.101663 | 0.05794 | 0.025751 | 0.015558 | 0.015558 | 0.015558 | 0 | 0.008079 | 0.128781 | 5,257 | 192 | 90 | 27.380208 | 0.805895 | 0.504851 | 0 | 0.144578 | 0 | 0 | 0.148133 | 0.010326 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072289 | null | null | 0.301205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
19262d920eb061c0559ffe1e6a887b90addd5c07 | 395 | py | Python | DevSqlite3/error.py | omar-othmann/DevSqlite3 | a4e413e7728d760c559495f6abcd546f8faec9fa | [
"MIT"
] | null | null | null | DevSqlite3/error.py | omar-othmann/DevSqlite3 | a4e413e7728d760c559495f6abcd546f8faec9fa | [
"MIT"
] | null | null | null | DevSqlite3/error.py | omar-othmann/DevSqlite3 | a4e413e7728d760c559495f6abcd546f8faec9fa | [
"MIT"
] | null | null | null |
class NotAllowed(Exception):
"""when change class.id"""
class DatabaseException(Exception):
"""Database error"""
class ColumnTypeUnknown(Exception):
"""Variable type unknown"""
class NoFieldException(Exception):
"""Class has no variables"""
class WhereUsageException(Exception... | 12.741935 | 50 | 0.632911 | 35 | 395 | 7.142857 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248101 | 395 | 30 | 51 | 13.166667 | 0.841751 | 0.303797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192bad0a5a13f0fed759659b35cbd1fb56a91eb7 | 1,747 | py | Python | M3_feature_zone/retipy/test/test_math.py | rmaphoh/AutoMorph | 0c82ce322c6cd8bd80f06bbd85c5c2542e534cb8 | [
"Apache-2.0"
] | 1 | 2022-01-28T00:56:23.000Z | 2022-01-28T00:56:23.000Z | M3_feature_zone/retipy/test/test_math.py | rmaphoh/AutoMorph | 0c82ce322c6cd8bd80f06bbd85c5c2542e534cb8 | [
"Apache-2.0"
] | null | null | null | M3_feature_zone/retipy/test/test_math.py | rmaphoh/AutoMorph | 0c82ce322c6cd8bd80f06bbd85c5c2542e534cb8 | [
"Apache-2.0"
] | null | null | null | # Retipy - Retinal Image Processing on Python
# Copyright (C) 2017 Alejandro Valdes
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any ... | 37.170213 | 107 | 0.71723 | 243 | 1,747 | 5.020576 | 0.440329 | 0.065574 | 0.059016 | 0.046721 | 0.49918 | 0.356557 | 0.212295 | 0.162295 | 0.081967 | 0.081967 | 0 | 0.035125 | 0.201488 | 1,747 | 46 | 108 | 37.978261 | 0.839427 | 0.411563 | 0 | 0.285714 | 0 | 0 | 0.093254 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192de86d68e7a4ad9bf38d1b2704f846ca015ae1 | 25,983 | py | Python | mne/io/edf/edf.py | nicproulx/mne-python | 4b0f362df04b21249faf6c9a2495c71c337a14a8 | [
"BSD-3-Clause"
] | null | null | null | mne/io/edf/edf.py | nicproulx/mne-python | 4b0f362df04b21249faf6c9a2495c71c337a14a8 | [
"BSD-3-Clause"
] | null | null | null | mne/io/edf/edf.py | nicproulx/mne-python | 4b0f362df04b21249faf6c9a2495c71c337a14a8 | [
"BSD-3-Clause"
] | 1 | 2020-12-15T09:16:29.000Z | 2020-12-15T09:16:29.000Z | """Conversion tool from EDF, EDF+, BDF to FIF."""
# Authors: Teon Brooks <teon.brooks@gmail.com>
# Martin Billinger <martin.billinger@tugraz.at>
#
# License: BSD (3-clause)
import calendar
import datetime
import os
import re
import numpy as np
from ...utils import verbose, logger, warn
from ..utils import ... | 42.665025 | 79 | 0.573606 | 3,404 | 25,983 | 4.224148 | 0.170094 | 0.034425 | 0.013561 | 0.015648 | 0.369775 | 0.332777 | 0.298352 | 0.270047 | 0.259962 | 0.253008 | 0 | 0.014117 | 0.323866 | 25,983 | 608 | 80 | 42.735197 | 0.80436 | 0.267136 | 0 | 0.129288 | 0 | 0 | 0.084195 | 0.002705 | 0 | 0 | 0 | 0 | 0.007916 | 1 | 0.01847 | false | 0.05277 | 0.034301 | 0 | 0.068602 | 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 |
1933ad6fe35e12ed54780ad3c8f6185400f2170b | 540 | py | Python | fastapi/backend.py | alejgo06/image_capabilities_backend | 94dab64527351fab5f540d0f49bc9c8e05766b62 | [
"MIT"
] | null | null | null | fastapi/backend.py | alejgo06/image_capabilities_backend | 94dab64527351fab5f540d0f49bc9c8e05766b62 | [
"MIT"
] | null | null | null | fastapi/backend.py | alejgo06/image_capabilities_backend | 94dab64527351fab5f540d0f49bc9c8e05766b62 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from typing import List
from fastapi import FastAPI, UploadFile, File
import numpy as np
from starlette.requests import Request
import io
from PIL import Image
import base64
import cv2
app = FastAPI()
@app.post("/predict")
async def analyse(image_file_read: bytes = File(...)):
file = ba... | 28.421053 | 59 | 0.77037 | 80 | 540 | 5.05 | 0.475 | 0.029703 | 0.084158 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 0.146296 | 540 | 18 | 60 | 30 | 0.845987 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.529412 | 0 | 0.588235 | 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 |
193ca8639b684c68c4e6d8159cb82b247a3dba12 | 431 | py | Python | homepage/portfolio/migrations/0006_collection_spotlight.py | FabianVolkers/portfolio | b5008818b6ca7b2b10c587e2beab4265157bc694 | [
"MIT"
] | null | null | null | homepage/portfolio/migrations/0006_collection_spotlight.py | FabianVolkers/portfolio | b5008818b6ca7b2b10c587e2beab4265157bc694 | [
"MIT"
] | 7 | 2021-03-30T13:55:39.000Z | 2022-01-13T03:01:58.000Z | homepage/portfolio/migrations/0006_collection_spotlight.py | FabianVolkers/homepage | b5008818b6ca7b2b10c587e2beab4265157bc694 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-30 17:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0005_auto_20200630_1658'),
]
operations = [
migrations.AddField(
model_name='collection',
name='spotlig... | 21.55 | 52 | 0.605568 | 44 | 431 | 5.818182 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100977 | 0.287703 | 431 | 19 | 53 | 22.684211 | 0.732899 | 0.104408 | 0 | 0 | 1 | 0 | 0.132813 | 0.059896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
193dd10e5a239161956671aab0f12aed6ee395ee | 2,450 | py | Python | 2017/Skilandschaft/xmas_Hanna.py | jmenzelupb/MSMP-xmas | 856a914de5699347ba17716edb8c02842651de24 | [
"Unlicense"
] | 1 | 2018-01-09T09:39:20.000Z | 2018-01-09T09:39:20.000Z | 2017/Skilandschaft/xmas_Hanna.py | jmenzelupb/MSMP-xmas | 856a914de5699347ba17716edb8c02842651de24 | [
"Unlicense"
] | null | null | null | 2017/Skilandschaft/xmas_Hanna.py | jmenzelupb/MSMP-xmas | 856a914de5699347ba17716edb8c02842651de24 | [
"Unlicense"
] | 8 | 2017-12-20T13:50:49.000Z | 2019-12-16T10:18:36.000Z | # MSMP christmas challenge
# Hanna Schmiegel, 20.12.2017
import numpy as np
import matplotlib.pyplot as plt
import pylab
# load Data
da = np.load('Daten.npz')
temps = np.array([5, 7.5, 10, 12.5, 15, 17.5, 20, 22.5, 25, 27.5, 30, 32.5, 35, 37.5, 40, 42.5, 45, 47.5, 50, 52.5, 55, 57.5, 60, 62.5, 65, 67.5, 70, 72.5, 75,... | 46.226415 | 189 | 0.609388 | 487 | 2,450 | 2.997947 | 0.26694 | 0.100685 | 0.087671 | 0.106849 | 0.530822 | 0.417123 | 0.414384 | 0.293151 | 0.293151 | 0.293151 | 0 | 0.184672 | 0.115918 | 2,450 | 52 | 190 | 47.115385 | 0.489381 | 0.037551 | 0 | 0 | 0 | 0 | 0.0894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19476a3f250a7bfb2e06c1322f72755fcbb834ad | 1,342 | py | Python | biblio/award_history.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | biblio/award_history.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | biblio/award_history.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2020-2021 Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision: 21 $
# Date: $Date: 2019-12-01 19:57:53 -0400 (Tue, 31 Oct 2017) $
from isfdb import... | 31.209302 | 99 | 0.637109 | 178 | 1,342 | 4.640449 | 0.623596 | 0.038741 | 0.031477 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051411 | 0.260805 | 1,342 | 42 | 100 | 31.952381 | 0.78125 | 0.209389 | 0 | 0 | 0 | 0 | 0.522857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
194dcc3bc1950a79521e08b467eaaee3732285a5 | 2,114 | py | Python | rowbasedauth.py | TJGorrie/pipeline | 95d7e728a71ade41e2fc089777c61510a94eabed | [
"Apache-2.0"
] | null | null | null | rowbasedauth.py | TJGorrie/pipeline | 95d7e728a71ade41e2fc089777c61510a94eabed | [
"Apache-2.0"
] | 139 | 2018-01-29T11:29:18.000Z | 2022-01-11T12:04:32.000Z | rowbasedauth.py | TJGorrie/pipeline | 95d7e728a71ade41e2fc089777c61510a94eabed | [
"Apache-2.0"
] | 6 | 2018-08-21T17:09:19.000Z | 2020-04-14T13:49:32.000Z | """
rowbasedauth.py
"""
# lives at: /var/www/cgi-bin/proasisapi/v1.4
import csv
import os
import re
import sys
# from p3SConstants import dssPyPath
# if dssPyPath not in sys.path:
# sys.path.insert(1, dssPyPath)
BLACKLISTDIR = "/usr/local/Proasis2/Data/BLACKLIST"
def readblcsv(curf):
retdict = {}
try:
... | 24.022727 | 69 | 0.593188 | 271 | 2,114 | 4.616236 | 0.424354 | 0.031974 | 0.035172 | 0.057554 | 0.21263 | 0.15028 | 0.15028 | 0.15028 | 0.119904 | 0.119904 | 0 | 0.00953 | 0.25544 | 2,114 | 87 | 70 | 24.298851 | 0.78526 | 0.349101 | 0 | 0 | 0 | 0 | 0.124692 | 0.027892 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
195122245737ec9b80a6c263e4c7df655fc42b2e | 1,423 | py | Python | billy/api/__init__.py | balanced/billy | a723c3aca18f817829ae088f469fabc5bea9d538 | [
"MIT"
] | 51 | 2015-01-01T00:34:39.000Z | 2021-12-20T16:51:49.000Z | billy/api/__init__.py | balanced/billy | a723c3aca18f817829ae088f469fabc5bea9d538 | [
"MIT"
] | 6 | 2015-01-13T15:09:19.000Z | 2015-12-29T15:59:55.000Z | billy/api/__init__.py | balanced/billy | a723c3aca18f817829ae088f469fabc5bea9d538 | [
"MIT"
] | 31 | 2015-03-13T21:50:16.000Z | 2022-03-09T23:18:43.000Z | from __future__ import unicode_literals
from .company.views import CompanyIndexResource
from .customer.views import CustomerIndexResource
from .invoice.views import InvoiceIndexResource
from .plan.views import PlanIndexResource
from .subscription.views import SubscriptionIndexResource
from .transaction.views import Tr... | 29.645833 | 71 | 0.689389 | 142 | 1,423 | 6.633803 | 0.415493 | 0.070064 | 0.05414 | 0.038217 | 0.080679 | 0.080679 | 0.080679 | 0.080679 | 0 | 0 | 0 | 0.00276 | 0.236121 | 1,423 | 47 | 72 | 30.276596 | 0.863845 | 0.018974 | 0 | 0.166667 | 0 | 0 | 0.010043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.194444 | 0 | 0.527778 | 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 |
195846707d0dafc53aa7bb944243a8fb9adfd7eb | 5,802 | py | Python | library/models.py | doriclazar/peak_30 | a87217e4d0d1f96d39ad214d40a879c7abfaaaee | [
"Apache-2.0"
] | null | null | null | library/models.py | doriclazar/peak_30 | a87217e4d0d1f96d39ad214d40a879c7abfaaaee | [
"Apache-2.0"
] | 1 | 2018-07-14T07:35:55.000Z | 2018-07-16T07:40:49.000Z | library/models.py | doriclazar/peak_30 | a87217e4d0d1f96d39ad214d40a879c7abfaaaee | [
"Apache-2.0"
] | null | null | null | import uuid
from django.db import models
from django.contrib.auth.models import User
class Language(models.Model):
name = models.CharField(max_length = 32)
code = models.CharField(max_length = 8, default='')
active = models.BooleanField(default = True)
def __str__(self):
return 'Language: {0}.... | 35.378049 | 96 | 0.694588 | 687 | 5,802 | 5.669578 | 0.129549 | 0.062131 | 0.078562 | 0.10475 | 0.643132 | 0.587933 | 0.573042 | 0.573042 | 0.529653 | 0.425417 | 0 | 0.014884 | 0.189417 | 5,802 | 163 | 97 | 35.595092 | 0.813311 | 0 | 0 | 0.5 | 0 | 0 | 0.084109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085938 | false | 0 | 0.023438 | 0.085938 | 0.828125 | 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 |
195a4c3ffc9003f308ae47902a84bf6a7e00a173 | 3,517 | py | Python | ingenico/connect/sdk/domain/payout/definitions/card_payout_method_specific_input.py | festicket/connect-sdk-python3 | c399c6443789dd978f319c89e1ebd387c812a77b | [
"MIT"
] | 12 | 2016-09-26T21:46:31.000Z | 2020-12-23T18:44:54.000Z | ingenico/connect/sdk/domain/payout/definitions/card_payout_method_specific_input.py | festicket/connect-sdk-python3 | c399c6443789dd978f319c89e1ebd387c812a77b | [
"MIT"
] | 3 | 2020-05-02T16:53:02.000Z | 2020-06-02T12:49:51.000Z | ingenico/connect/sdk/domain/payout/definitions/card_payout_method_specific_input.py | festicket/connect-sdk-python3 | c399c6443789dd978f319c89e1ebd387c812a77b | [
"MIT"
] | 11 | 2017-07-16T00:55:28.000Z | 2021-09-24T17:00:49.000Z | # -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.domain.definitions.card import Card
from ingenico.connect.sdk.domain.payout.definitions.abstract_payout_method_specific_input import AbstractPa... | 35.17 | 168 | 0.656241 | 381 | 3,517 | 5.908136 | 0.246719 | 0.062195 | 0.063972 | 0.05331 | 0.313194 | 0.290982 | 0.160373 | 0.138605 | 0.048867 | 0.048867 | 0 | 0.001896 | 0.250213 | 3,517 | 99 | 169 | 35.525253 | 0.851725 | 0.214103 | 0 | 0.066667 | 1 | 0 | 0.070135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.05 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
196a55437383773f44b480e9caf2aee476f95d53 | 1,630 | py | Python | ocdskingfisherviews/migrations/versions/947ad833b815_select_collection_tables.py | CDSPY/kingfisher-views | f6d7d4896f5ab714376ff819db71f90ed2ba5488 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisherviews/migrations/versions/947ad833b815_select_collection_tables.py | CDSPY/kingfisher-views | f6d7d4896f5ab714376ff819db71f90ed2ba5488 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisherviews/migrations/versions/947ad833b815_select_collection_tables.py | CDSPY/kingfisher-views | f6d7d4896f5ab714376ff819db71f90ed2ba5488 | [
"BSD-3-Clause"
] | null | null | null | """select_collection_tables
Revision ID: 947ad833b815
Revises:
Create Date: 2019-02-18 12:31:24.495009
"""
import os
from alembic import op
dir_path = os.path.dirname(os.path.realpath(__file__))
sql_dir = os.path.join(dir_path, '../../sql/')
# revision identifiers, used by Alembic.
revision = '947ad833b815'
down_... | 21.733333 | 96 | 0.634969 | 188 | 1,630 | 5.260638 | 0.452128 | 0.040445 | 0.048534 | 0.076845 | 0.351871 | 0.301314 | 0.236603 | 0.173913 | 0.173913 | 0.173913 | 0 | 0.044464 | 0.296319 | 1,630 | 74 | 97 | 22.027027 | 0.817786 | 0.202454 | 0 | 0.372549 | 0 | 0 | 0.737985 | 0.04031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.039216 | 0 | 0.078431 | 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 |
197ab76745ab4fdd870278f950e38e45e087a22a | 1,315 | py | Python | bookmarks/views.py | jessehood/djorg | e0c12cb48d2d7137a150010093d0f6fba9561a7a | [
"MIT"
] | null | null | null | bookmarks/views.py | jessehood/djorg | e0c12cb48d2d7137a150010093d0f6fba9561a7a | [
"MIT"
] | 3 | 2020-06-05T18:14:29.000Z | 2021-06-10T20:17:57.000Z | bookmarks/views.py | jessehood/djorg | e0c12cb48d2d7137a150010093d0f6fba9561a7a | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.views.decorators.http import require_http_methods, require_POST, require_GET
from django.views.generic.edit import UpdateView
from django.urls import reverse, reverse_lazy
from django.http import HttpResponseRedirect
from django.contrib.auth.models impo... | 36.527778 | 95 | 0.742966 | 163 | 1,315 | 5.883436 | 0.404908 | 0.062565 | 0.103233 | 0.118874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.153612 | 1,315 | 36 | 96 | 36.527778 | 0.856244 | 0.044106 | 0 | 0.096774 | 0 | 0 | 0.067093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.258065 | 0 | 0.645161 | 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 |
197ed3baf6ecc940d1c7f4b6450e15ba04b19b8a | 396 | py | Python | context/color.py | sarthak212/Own-Proxy | a5723f5b86db690b0a255f962d6d910929ddcf4a | [
"MIT"
] | 3 | 2020-06-04T17:28:27.000Z | 2020-07-16T12:15:45.000Z | context/color.py | sarthak212/Own-Proxy | a5723f5b86db690b0a255f962d6d910929ddcf4a | [
"MIT"
] | null | null | null | context/color.py | sarthak212/Own-Proxy | a5723f5b86db690b0a255f962d6d910929ddcf4a | [
"MIT"
] | null | null | null | import colorama
from colorama import Fore, Back, Style
colorama.init(autoreset=True) # Reset Colour after every line
colorama.init() #Initialize
def col_info(msg):
print(Fore.MAGENTA + msg)
def col_connect(method,path):
print(Fore.GREEN + method+" ",end="")
print(Fore.CYAN + path)
def col_warning(msg):... | 20.842105 | 61 | 0.704545 | 58 | 396 | 4.741379 | 0.534483 | 0.163636 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 396 | 19 | 62 | 20.842105 | 0.833333 | 0.098485 | 0 | 0 | 0 | 0 | 0.002817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.461538 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
198a1b7061d92aaf46760285e555b0793b78b559 | 322 | py | Python | fastapi_template/v1/server/routers/main/__init__.py | DevLucca/python-fastapi-template | 1a631afb3c4c6eedd436713a1213b9eb0c9c94eb | [
"MIT"
] | 3 | 2021-09-18T23:59:39.000Z | 2021-12-12T14:50:25.000Z | fastapi_template/v1/server/routers/main/__init__.py | DevLucca/python-fastapi-template | 1a631afb3c4c6eedd436713a1213b9eb0c9c94eb | [
"MIT"
] | null | null | null | fastapi_template/v1/server/routers/main/__init__.py | DevLucca/python-fastapi-template | 1a631afb3c4c6eedd436713a1213b9eb0c9c94eb | [
"MIT"
] | null | null | null | from ..base import BaseRouter
from .admins import router as admins_router
from .users import router as users_router
router = BaseRouter()
router.include_router(admins_router, prefix="/admins", tags=["admins"])
router.include_router(users_router, prefix="/users", tags=["users"])
__all__ = [
"router",
]... | 24.769231 | 72 | 0.720497 | 40 | 322 | 5.55 | 0.3 | 0.162162 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 322 | 12 | 73 | 26.833333 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
198ab5140f6d3f7081ea3eb0c160ba27c56d09ff | 2,141 | py | Python | exercises_and_metrics_types/MetricSingleInputWidget.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | 1 | 2020-04-15T21:42:42.000Z | 2020-04-15T21:42:42.000Z | exercises_and_metrics_types/MetricSingleInputWidget.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | null | null | null | exercises_and_metrics_types/MetricSingleInputWidget.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from MetricSingle import *
class MetricSingleInputWidget( GridLayout ):
def __init__( self, metr... | 42.82 | 75 | 0.646894 | 245 | 2,141 | 5.35102 | 0.285714 | 0.036613 | 0.041953 | 0.045767 | 0.085431 | 0.085431 | 0.085431 | 0.085431 | 0.085431 | 0.085431 | 0 | 0.005148 | 0.274171 | 2,141 | 49 | 76 | 43.693878 | 0.838481 | 0.009809 | 0 | 0.044444 | 0 | 0 | 0.028801 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.044444 | false | 0 | 0.155556 | 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 |
1991a8e764e5b069f7d5ddc4a0c7c4ac4d12c52b | 686 | py | Python | Python-Task2/Tuple.py | gaushikmr/codewayy-python | 1e0f1b4d97cf2232daca1145d43290457a3b6c02 | [
"CNRI-Python"
] | null | null | null | Python-Task2/Tuple.py | gaushikmr/codewayy-python | 1e0f1b4d97cf2232daca1145d43290457a3b6c02 | [
"CNRI-Python"
] | null | null | null | Python-Task2/Tuple.py | gaushikmr/codewayy-python | 1e0f1b4d97cf2232daca1145d43290457a3b6c02 | [
"CNRI-Python"
] | null | null | null | # Methods of Tuple in Python:
# Declaring tuple
tuple = (3, 4, 6, 8, 10, 1, 67)
# Code for printing the length of a tuple
tuple2 = ('Apple', 'Bannana', 'Kiwi')
print('length of tuple2 :', len(tuple2))
# Deleting the tuple
del tuple2
# Printing tuple till 2 index excluding 2
print('tuple[0:2]:', tuple[0:2])
# Disp... | 22.129032 | 54 | 0.698251 | 106 | 686 | 4.518868 | 0.462264 | 0.029228 | 0.029228 | 0.10856 | 0.187891 | 0.187891 | 0.187891 | 0.187891 | 0 | 0 | 0 | 0.04021 | 0.166181 | 686 | 30 | 55 | 22.866667 | 0.797203 | 0.460641 | 0 | 0 | 0 | 0 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
199b00e8047355bdcb54115b079de732b22daa95 | 213 | py | Python | source/2018/day_01/Python/puzzle_1.py | Belz/advent-of-code | 1e6daa7cf9c927161c7c265220d914f7a36b3ead | [
"MIT"
] | null | null | null | source/2018/day_01/Python/puzzle_1.py | Belz/advent-of-code | 1e6daa7cf9c927161c7c265220d914f7a36b3ead | [
"MIT"
] | null | null | null | source/2018/day_01/Python/puzzle_1.py | Belz/advent-of-code | 1e6daa7cf9c927161c7c265220d914f7a36b3ead | [
"MIT"
] | null | null | null | def solve(data):
result = 0
# Iterates through each value of the list and sums it to the result
for number in data:
result += number
# Returns result (total sum)
return result | 23.666667 | 71 | 0.619718 | 30 | 213 | 4.4 | 0.766667 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.328639 | 213 | 9 | 72 | 23.666667 | 0.916084 | 0.431925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a5e12640c91fa705aee11542da6298e2e908d8 | 3,499 | py | Python | run.py | reivhax/Pass-Locker | 11496c4d794e321a7dba3feaa2c1d06063f2327a | [
"MIT"
] | 1 | 2018-06-21T00:05:10.000Z | 2018-06-21T00:05:10.000Z | run.py | reivhax/Pass-Locker | 11496c4d794e321a7dba3feaa2c1d06063f2327a | [
"MIT"
] | null | null | null | run.py | reivhax/Pass-Locker | 11496c4d794e321a7dba3feaa2c1d06063f2327a | [
"MIT"
] | null | null | null | from program import Program
from prints import *
from getpass import getpass
from time import sleep
from os import urandom
from base64 import b64encode
passwlocker=Program()
import sys
#This is the in Terminal version of the program use gui.py for graphical version
def showcreds(username):
userobject=passwlocker.users... | 24.992857 | 80 | 0.705344 | 472 | 3,499 | 5.201271 | 0.28178 | 0.021996 | 0.04888 | 0.039104 | 0.213849 | 0.123014 | 0.093686 | 0.034216 | 0 | 0 | 0 | 0.019089 | 0.146613 | 3,499 | 140 | 81 | 24.992857 | 0.803081 | 0.028294 | 0 | 0.434783 | 0 | 0 | 0.194469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.202899 | 0.050725 | 0 | 0.115942 | 0.188406 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
19a8a52c475b314235ffe849fcb572d75588b263 | 1,776 | py | Python | sample/garuda_dir/django_contrib_contenttypes_rpc.py | dhilipsiva/garuda | a1b1fdcf08ca0a808459bb21ea0b58d9673af64d | [
"MIT"
] | 22 | 2018-07-21T06:00:04.000Z | 2020-12-02T03:23:11.000Z | sample/garuda_dir/django_contrib_contenttypes_rpc.py | chr1043086360/garuda | a1b1fdcf08ca0a808459bb21ea0b58d9673af64d | [
"MIT"
] | 10 | 2020-02-11T23:04:56.000Z | 2021-07-30T11:22:28.000Z | sample/garuda_dir/django_contrib_contenttypes_rpc.py | chr1043086360/garuda | a1b1fdcf08ca0a808459bb21ea0b58d9673af64d | [
"MIT"
] | 1 | 2019-11-20T01:14:12.000Z | 2019-11-20T01:14:12.000Z | # DO NOT EDIT THIS FILE MANUALLY
# THIS FILE IS AUTO-GENERATED
# MANUAL CHANGES WILL BE DISCARDED
# PLEASE READ GARUDA DOCS
from garuda_dir.garuda_pb2 import ContentType, Void # NOQA
from garuda_dir.django_contrib_contenttypes_crud import ( # NOQA
read_contenttype,
delete_contenttype,
create_contenttype,
... | 31.157895 | 66 | 0.657095 | 220 | 1,776 | 5.086364 | 0.363636 | 0.069705 | 0.091153 | 0.107239 | 0.159071 | 0.104558 | 0.071492 | 0 | 0 | 0 | 0 | 0.000749 | 0.247748 | 1,776 | 57 | 67 | 31.157895 | 0.836826 | 0.09009 | 0 | 0.139535 | 1 | 0 | 0.031095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.046512 | 0 | 0.372093 | 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 |
5fdbdb4a3c6a8f9df6d48bfed1805ab93f9f815b | 214 | py | Python | tests/utils/test_processes.py | luciferliu/xTools | 324ef1388be13ece0d952e3929eb685212d573f1 | [
"Apache-2.0"
] | 2 | 2020-09-02T13:46:06.000Z | 2020-10-11T16:11:02.000Z | tests/utils/test_processes.py | luciferliu/xTools | 324ef1388be13ece0d952e3929eb685212d573f1 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_processes.py | luciferliu/xTools | 324ef1388be13ece0d952e3929eb685212d573f1 | [
"Apache-2.0"
] | 4 | 2018-10-15T07:08:34.000Z | 2019-11-26T01:52:47.000Z | #coding: utf-8
import os
from xTool.utils import processes
def test_which():
values = processes.which('Lib', path=None)
for executable_path in values:
assert os.access(executable_path, os.X_OK)
| 17.833333 | 50 | 0.71028 | 32 | 214 | 4.625 | 0.71875 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.191589 | 214 | 11 | 51 | 19.454545 | 0.849711 | 0.060748 | 0 | 0 | 0 | 0 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5fe4f4fa3357baeccba2221d5c0486c956373e3e | 388 | py | Python | MaxRepeated.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 4 | 2020-08-18T05:29:38.000Z | 2021-03-13T19:01:10.000Z | MaxRepeated.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | null | null | null | MaxRepeated.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 1 | 2020-08-29T12:57:17.000Z | 2020-08-29T12:57:17.000Z | # Manas Dash
# 24th July 2020
# the usage of set and max function
# which number is repeated most number of time
numbers = [1, 3, 4, 6, 3, 7, 3, 8, 6, 5, 9, 5, 3, 6, 3, 2, 3]
max_repeated = max(set(numbers), key=numbers.count)
print(f"The number {max_repeated} is repeated maximum number of time in the given list")
... | 29.846154 | 88 | 0.701031 | 75 | 388 | 3.6 | 0.48 | 0.111111 | 0.133333 | 0.17037 | 0.318519 | 0.318519 | 0.318519 | 0.318519 | 0.318519 | 0.318519 | 0 | 0.077419 | 0.201031 | 388 | 12 | 89 | 32.333333 | 0.793548 | 0.438144 | 0 | 0 | 0 | 0 | 0.367925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fedc9d4abb02e9f3beac11350732bc8bbdbdbc9 | 811 | py | Python | nsp_project_app/migrations/0008_like.py | Priyansh863/e-backend | c8c1bb8a7c0de96febacfeec76249256c8df3303 | [
"bzip2-1.0.6"
] | null | null | null | nsp_project_app/migrations/0008_like.py | Priyansh863/e-backend | c8c1bb8a7c0de96febacfeec76249256c8df3303 | [
"bzip2-1.0.6"
] | null | null | null | nsp_project_app/migrations/0008_like.py | Priyansh863/e-backend | c8c1bb8a7c0de96febacfeec76249256c8df3303 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.5 on 2020-10-02 22:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nsp_project_app', '0007_delete_like'),
]
operations = [
migrations.CreateModel(
name='Like',
... | 33.791667 | 144 | 0.626387 | 94 | 811 | 5.255319 | 0.553191 | 0.064777 | 0.08502 | 0.133603 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0 | 0.03231 | 0.236745 | 811 | 23 | 145 | 35.26087 | 0.765751 | 0.055487 | 0 | 0 | 1 | 0 | 0.132199 | 0.032723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
5ff03c426a86ff809d1e1a21e992a2fafd160745 | 270 | py | Python | qatrack/api/contenttypes/urls.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/api/contenttypes/urls.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/api/contenttypes/urls.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | from django.conf.urls import include, url
from rest_framework import routers
from qatrack.api.contenttypes import views
router = routers.DefaultRouter()
router.register(r'contenttypes', views.ContentTypeViewSet)
urlpatterns = [
url(r'^', include(router.urls)),
]
| 22.5 | 58 | 0.777778 | 33 | 270 | 6.333333 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114815 | 270 | 11 | 59 | 24.545455 | 0.874477 | 0 | 0 | 0 | 0 | 0 | 0.048148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ff47f5eeedbb71fafe5a527d21b2eb15d88255e | 2,876 | py | Python | tests/test_map.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | 1 | 2020-07-31T01:31:52.000Z | 2020-07-31T01:31:52.000Z | tests/test_map.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | 12 | 2020-07-20T18:55:15.000Z | 2021-09-23T05:08:26.000Z | tests/test_map.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | null | null | null | """
Test the maximum a posteriori estimates
"""
import time
import numpy as np
from .test_model import prepare_dla_model
def test_DLA_MAP():
# test 1
dla_gp = prepare_dla_model(plate=5309, mjd=55929, fiber_id=362, z_qso=3.166)
tic = time.time()
max_dlas = 4
log_likelihoods_dla = dla_gp.log_mode... | 29.649485 | 87 | 0.605355 | 415 | 2,876 | 3.990361 | 0.226506 | 0.072464 | 0.050725 | 0.072464 | 0.676329 | 0.667271 | 0.602657 | 0.535024 | 0.535024 | 0.535024 | 0 | 0.20252 | 0.254868 | 2,876 | 96 | 88 | 29.958333 | 0.570229 | 0.070236 | 0 | 0.441176 | 0 | 0 | 0.018776 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.014706 | false | 0 | 0.044118 | 0 | 0.058824 | 0.029412 | 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 |
5ff4d454b20d2ed23a7f168869f0413769faecde | 7,348 | py | Python | features.py | kbroman/PyBroman | 3b88e8177bc9eb6a34be1a7d3c104750640b35a5 | [
"MIT"
] | 8 | 2018-03-16T22:22:15.000Z | 2019-04-24T03:26:00.000Z | features.py | kbroman/PyBroman | 3b88e8177bc9eb6a34be1a7d3c104750640b35a5 | [
"MIT"
] | null | null | null | features.py | kbroman/PyBroman | 3b88e8177bc9eb6a34be1a7d3c104750640b35a5 | [
"MIT"
] | 1 | 2018-03-17T09:05:35.000Z | 2018-03-17T09:05:35.000Z | #!/usr/local/bin/python
# various by python (v3.3) stuff while I learn the langugage
# (taking my features.rb script and porting it to python)
# Really useful to me:
# google course on python: https://developers.google.com/edu/python/
# software carpentry bootcamp: http://software-carpentry.org/v4/python/inde... | 25.873239 | 90 | 0.626837 | 1,364 | 7,348 | 3.360704 | 0.199413 | 0.034904 | 0.039267 | 0.026396 | 0.440663 | 0.325262 | 0.284686 | 0.257853 | 0.213787 | 0.191099 | 0 | 0.02891 | 0.162085 | 7,348 | 283 | 91 | 25.964664 | 0.715608 | 0.160452 | 0 | 0.207071 | 0 | 0.020202 | 0.289689 | 0.061702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005051 | false | 0 | 0.020202 | 0.005051 | 0.030303 | 0.414141 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ff59b00f8383f5a479a65be711185310fa4f26b | 2,012 | py | Python | src/simulations/set_generator_base.py | PrivacyAmp/cardinality_estimation_evaluation_framework | c6f16733f821bba99c1e5ca827025a063f5689ae | [
"Apache-2.0"
] | 20 | 2020-03-30T22:39:32.000Z | 2022-03-09T06:32:14.000Z | src/simulations/set_generator_base.py | OpenMeasurement/cardinality_estimation_evaluation_framework | c6f16733f821bba99c1e5ca827025a063f5689ae | [
"Apache-2.0"
] | 41 | 2020-05-01T01:09:38.000Z | 2021-10-15T17:53:31.000Z | src/simulations/set_generator_base.py | OpenMeasurement/cardinality_estimation_evaluation_framework | c6f16733f821bba99c1e5ca827025a063f5689ae | [
"Apache-2.0"
] | 8 | 2020-06-18T22:33:14.000Z | 2021-05-03T13:39:12.000Z | # Copyright 2020 The Private Cardinality Estimation Framework Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 29.15942 | 79 | 0.723161 | 279 | 2,012 | 5.050179 | 0.426523 | 0.034776 | 0.023421 | 0.022711 | 0.449965 | 0.449965 | 0.449965 | 0.449965 | 0.380412 | 0.380412 | 0 | 0.004994 | 0.203777 | 2,012 | 68 | 80 | 29.588235 | 0.874532 | 0.593936 | 0 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ff81e2e4c4c056229d53ef42923ecd94110c5ef | 477 | py | Python | gaia.py | bombbomb/gaia | e723050937de420c1e4e000241fb170a385a1813 | [
"MIT"
] | null | null | null | gaia.py | bombbomb/gaia | e723050937de420c1e4e000241fb170a385a1813 | [
"MIT"
] | null | null | null | gaia.py | bombbomb/gaia | e723050937de420c1e4e000241fb170a385a1813 | [
"MIT"
] | null | null | null | import json
import sys
from gaia.Gaia import Gaia
print("Gaia Awakens")
args = sys.argv
if len(args) == 1:
print("You must pass in a path")
exit()
code_path = args[1]
with open(code_path + '/gaia.json') as json_data:
gaia_config = json.load(json_data)
print(gaia_config)
gaia_config['code_path'] =... | 16.448276 | 49 | 0.685535 | 80 | 477 | 3.9125 | 0.3875 | 0.102236 | 0.063898 | 0.089457 | 0.172524 | 0.172524 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.186583 | 477 | 28 | 50 | 17.035714 | 0.801546 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.166667 | 0 | 0.166667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ffc99a73460c2d56d545a7cb2c7a814a8b3e5a4 | 35,325 | py | Python | azure-batch/azure/batch/models/__init__.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | null | null | null | azure-batch/azure/batch/models/__init__.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 1 | 2018-11-29T14:46:42.000Z | 2018-11-29T14:46:42.000Z | azure-batch/azure/batch/models/__init__.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 1 | 2018-08-28T14:36:47.000Z | 2018-08-28T14:36:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 48.926593 | 127 | 0.825195 | 3,213 | 35,325 | 8.694678 | 0.130096 | 0.064755 | 0.045246 | 0.005155 | 0.78304 | 0.645046 | 0.383233 | 0.230241 | 0.130871 | 0.081257 | 0 | 0.006614 | 0.1354 | 35,325 | 721 | 128 | 48.994452 | 0.908061 | 0.012795 | 0 | 0 | 0 | 0 | 0.145402 | 0.086168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.586742 | 0 | 0.586742 | 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 |
5ffe763156ec522d0fb206a9171161f51b83160c | 5,931 | py | Python | projects/MTCNN/MTCNN_tf-master-all_refer/MTCNN-Tensorflow-master/zmtcnn_qdw/prepare_data/gen_landmark_aug_12.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | projects/MTCNN/MTCNN_tf-master-all_refer/MTCNN-Tensorflow-master/zmtcnn_qdw/prepare_data/gen_landmark_aug_12.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | projects/MTCNN/MTCNN_tf-master-all_refer/MTCNN-Tensorflow-master/zmtcnn_qdw/prepare_data/gen_landmark_aug_12.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 10:59:15 2019
@author: QDW
"""
import os
import random
from os.path import join, exists
import cv2
import numpy as np
import numpy.random as npr
from utils import IoU
from Landmark_utils import rotate, flip
from BBox_utils import getDataFromTxt, BBox
... | 36.164634 | 73 | 0.481032 | 660 | 5,931 | 4.145455 | 0.318182 | 0.018275 | 0.01462 | 0.017544 | 0.094664 | 0.05848 | 0.035088 | 0 | 0 | 0 | 0 | 0.045872 | 0.411904 | 5,931 | 164 | 74 | 36.164634 | 0.738532 | 0 | 0 | 0.1 | 0 | 0 | 0.032482 | 0.010497 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0.009091 | 0.081818 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27062aad761bb1be4ff744f59a640d30aaf26aae | 991 | py | Python | app/baike_crawler.py | w940853815/weixin-robot | 73b7b447241c1a74a14b21c6c11fc652b30f7ebb | [
"Apache-2.0"
] | 12 | 2017-06-24T02:13:22.000Z | 2021-03-16T02:43:40.000Z | app/baike_crawler.py | w940853815/weixin-robot | 73b7b447241c1a74a14b21c6c11fc652b30f7ebb | [
"Apache-2.0"
] | 7 | 2017-04-08T07:45:19.000Z | 2020-01-06T05:50:30.000Z | app/baike_crawler.py | w940853815/weixin-robot | 73b7b447241c1a74a14b21c6c11fc652b30f7ebb | [
"Apache-2.0"
] | 1 | 2017-07-31T01:09:27.000Z | 2017-07-31T01:09:27.000Z | # -*- coding: utf-8 -*-
# coding=utf-8
__author__ = 'ruidong.wang@tsingdata.com'
import urllib
from bs4 import BeautifulSoup
def data_collect(url, soup):
data_want = {}
data_want['url'] = url
title_node = soup.find('dd', attrs = {'class' : 'lemmaWgt-lemmaTitle-title'}).find('h1')
data_want['title'] = ... | 30.030303 | 92 | 0.655903 | 127 | 991 | 4.905512 | 0.464567 | 0.064205 | 0.032103 | 0.057785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008728 | 0.190716 | 991 | 33 | 93 | 30.030303 | 0.76808 | 0.130172 | 0 | 0 | 0 | 0 | 0.184149 | 0.059441 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
270a608cffecb7e624b45aaf5361cb65ceb188a6 | 1,454 | py | Python | django_tpl_loader_component_test/service/management/commands/create_test_data.py | haricot/django-tpl-loader-component-test | ea477ae1c2ed48132c2b019ff1f95c09eb68c34e | [
"MIT"
] | null | null | null | django_tpl_loader_component_test/service/management/commands/create_test_data.py | haricot/django-tpl-loader-component-test | ea477ae1c2ed48132c2b019ff1f95c09eb68c34e | [
"MIT"
] | null | null | null | django_tpl_loader_component_test/service/management/commands/create_test_data.py | haricot/django-tpl-loader-component-test | ea477ae1c2ed48132c2b019ff1f95c09eb68c34e | [
"MIT"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
from ...models import *
import string
from random import randrange
logger = logging.getLogger('django_test_project.service_agent')
class Command(BaseCommand):
help = 'Populate the database with test data.'
def handle(self, *args, **opti... | 37.282051 | 184 | 0.681568 | 203 | 1,454 | 4.596059 | 0.428571 | 0.045016 | 0.051447 | 0.07717 | 0.072883 | 0.072883 | 0.072883 | 0.072883 | 0.072883 | 0.072883 | 0 | 0.031386 | 0.211142 | 1,454 | 38 | 185 | 38.263158 | 0.78204 | 0.013067 | 0 | 0 | 0 | 0 | 0.175279 | 0.063547 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
270d55adca82fd2daa3de9ad78590cdcbfa4b421 | 1,973 | py | Python | nautobot/extras/migrations/0011_fileattachment_fileproxy.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 384 | 2021-02-24T01:40:40.000Z | 2022-03-30T10:30:59.000Z | nautobot/extras/migrations/0011_fileattachment_fileproxy.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 1,067 | 2021-02-24T00:58:08.000Z | 2022-03-31T23:38:23.000Z | nautobot/extras/migrations/0011_fileattachment_fileproxy.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 128 | 2021-02-24T02:45:16.000Z | 2022-03-20T18:48:36.000Z | # Generated by Django 3.1.13 on 2021-07-16 21:44
from django.db import migrations, models
import nautobot.extras.models.models
import uuid
class Migration(migrations.Migration):
dependencies = [
("extras", "0010_change_cf_validation_max_min_field_to_bigint"),
]
operations = [
migrations... | 32.883333 | 106 | 0.477952 | 154 | 1,973 | 5.961039 | 0.506494 | 0.04902 | 0.058824 | 0.078431 | 0.254902 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0 | 0.025641 | 0.406994 | 1,973 | 59 | 107 | 33.440678 | 0.758974 | 0.023315 | 0 | 0.396226 | 1 | 0 | 0.153247 | 0.048831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.113208 | 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 |
2710121b94b8e4181bbd4a3f8cc3a8c1c2f095b7 | 344 | py | Python | server.py | sshh12/Aletheia | 51e908e437ad2fe6911d8d7ae8e704fbb962f3f6 | [
"MIT"
] | 1 | 2020-02-07T03:37:53.000Z | 2020-02-07T03:37:53.000Z | server.py | sshh12/Aletheia | 51e908e437ad2fe6911d8d7ae8e704fbb962f3f6 | [
"MIT"
] | 7 | 2021-03-09T23:05:16.000Z | 2022-02-26T20:12:59.000Z | server.py | sshh12/Aletheia | 51e908e437ad2fe6911d8d7ae8e704fbb962f3f6 | [
"MIT"
] | 2 | 2020-04-18T08:54:24.000Z | 2022-03-30T05:36:36.000Z | import os
from flask import Flask
BUILD_DIR = os.path.join(os.path.dirname(__file__), 'build')
app = Flask(__name__, static_url_path='', static_folder=BUILD_DIR)
@app.route('/')
def index():
return app.send_static_file('index.html')
if __name__ == "__main__":
app.run(host='0.0.0.0', port=os.environ.get('P... | 22.933333 | 74 | 0.700581 | 55 | 344 | 3.963636 | 0.581818 | 0.027523 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026403 | 0.119186 | 344 | 15 | 74 | 22.933333 | 0.693069 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 0 | 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 |
271a62785e11a958756d15129f65fe0a252aee1c | 1,567 | py | Python | backend/apps/users/views.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | backend/apps/users/views.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | backend/apps/users/views.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth import get_user_model
from djoser.views import UserViewSet as DjoserUserViewSet
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes
from rest_framework.generics import get_object_or_404
from rest_framework.permissions import IsAuthenticated
from ... | 34.065217 | 71 | 0.760051 | 192 | 1,567 | 5.984375 | 0.328125 | 0.034813 | 0.073977 | 0.036554 | 0.093995 | 0.093995 | 0.093995 | 0 | 0 | 0 | 0 | 0.009112 | 0.159541 | 1,567 | 45 | 72 | 34.822222 | 0.863326 | 0 | 0 | 0.055556 | 0 | 0 | 0.007658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.25 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
271f684ab7ae9ceb7558d12c5ed0501e3b0211cc | 4,721 | py | Python | lite/tests/unittest_py/pass/test_elementwise_scale_fuse_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/tests/unittest_py/pass/test_elementwise_scale_fuse_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/tests/unittest_py/pass/test_elementwise_scale_fuse_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 37.468254 | 125 | 0.619996 | 535 | 4,721 | 5.229907 | 0.362617 | 0.025018 | 0.045032 | 0.072909 | 0.215511 | 0.207291 | 0.049678 | 0.040029 | 0.040029 | 0.040029 | 0 | 0.012688 | 0.282144 | 4,721 | 125 | 126 | 37.768 | 0.812924 | 0.125821 | 0 | 0.117021 | 0 | 0 | 0.069553 | 0.018969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.06383 | 0.117021 | 0 | 0.234043 | 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 |
27254b035a0dd70fd126df82216a3681dfe5ca9b | 4,126 | py | Python | src/pyarsenal/GFS.py | aerorahul/python_lib | b0391a84ee5cdc838530d8e6e41be6d14435c4dd | [
"Apache-2.0"
] | null | null | null | src/pyarsenal/GFS.py | aerorahul/python_lib | b0391a84ee5cdc838530d8e6e41be6d14435c4dd | [
"Apache-2.0"
] | null | null | null | src/pyarsenal/GFS.py | aerorahul/python_lib | b0391a84ee5cdc838530d8e6e41be6d14435c4dd | [
"Apache-2.0"
] | null | null | null | # coding: utf-8 -*-
'''
GFS.py contains utility functions for GFS
'''
__all__ = ['get_akbk',
'get_pcoord',
'read_atcf']
import numpy as _np
import pandas as _pd
def get_akbk():
'''
Returns ak,bk for 64 level GFS model
vcoord is obtained from global_fcst.fd/gfsio_module.f
ak,bk ... | 42.536082 | 736 | 0.644692 | 603 | 4,126 | 4.323383 | 0.412935 | 0.061757 | 0.011507 | 0.004603 | 0.045263 | 0.039893 | 0 | 0 | 0 | 0 | 0 | 0.204135 | 0.167717 | 4,126 | 96 | 737 | 42.979167 | 0.555038 | 0.192196 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.222222 | 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 |
272755acb7e807399a4fd3cfb8c20d5f60da56f3 | 2,065 | py | Python | scripts/topics_cosine_test.py | lffloyd/reddit-topic-modelling | b34d7095cdd3ee66dfd95f8319f078449213e26f | [
"MIT"
] | 1 | 2022-03-15T03:52:50.000Z | 2022-03-15T03:52:50.000Z | scripts/topics_cosine_test.py | lffloyd/reddit-topic-modelling | b34d7095cdd3ee66dfd95f8319f078449213e26f | [
"MIT"
] | 15 | 2021-04-26T22:31:02.000Z | 2021-05-02T18:45:07.000Z | scripts/topics_cosine_test.py | lffloyd/reddit-topic-modelling | b34d7095cdd3ee66dfd95f8319f078449213e26f | [
"MIT"
] | null | null | null | from itertools import combinations
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
embeddings = {}
with open("scripts/etm_w2v_embedding.txt", "r") as file:
for line in file.readlines():
splitted = line.split()
word = splitted[0]
embeddings[word] = np.array([float(n... | 37.545455 | 116 | 0.677482 | 308 | 2,065 | 4.441558 | 0.233766 | 0.083333 | 0.032164 | 0.061404 | 0.144006 | 0.092105 | 0.092105 | 0.046784 | 0.046784 | 0 | 0 | 0.02465 | 0.135593 | 2,065 | 54 | 117 | 38.240741 | 0.741737 | 0.197094 | 0 | 0.055556 | 0 | 0.027778 | 0.35801 | 0.154733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27340fd2ae5af6e730daa82150f5d9312cfe8daf | 797 | py | Python | backend/addons/purchase_stock_picking_return_invoicing/__manifest__.py | maherjaballi/odoo-react-cicd | e99f0e3216094818d94e99df19da9626afe7f9d8 | [
"MIT"
] | null | null | null | backend/addons/purchase_stock_picking_return_invoicing/__manifest__.py | maherjaballi/odoo-react-cicd | e99f0e3216094818d94e99df19da9626afe7f9d8 | [
"MIT"
] | null | null | null | backend/addons/purchase_stock_picking_return_invoicing/__manifest__.py | maherjaballi/odoo-react-cicd | e99f0e3216094818d94e99df19da9626afe7f9d8 | [
"MIT"
] | null | null | null | # Copyright 2019 Eficent Business and IT Consulting Services
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Purchase Stock Picking Return Invoicing",
"summary": "Add an option to refund returned pickings",
"version": "12.0.1.0.1",... | 28.464286 | 63 | 0.601004 | 86 | 797 | 5.511628 | 0.77907 | 0.046414 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034711 | 0.240903 | 797 | 27 | 64 | 29.518519 | 0.74876 | 0.209536 | 0 | 0.130435 | 0 | 0 | 0.599042 | 0.084665 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27380a3b47ca89a0ddd7eeac3f7e6b9e33ee5ad1 | 11,901 | py | Python | output.py | ephracis/hermes | ee42c5e4200858a40636e1d528b28e7d4bcb553b | [
"MIT"
] | 3 | 2015-03-25T10:36:39.000Z | 2018-12-08T11:42:01.000Z | output.py | ephracis/hermes | ee42c5e4200858a40636e1d528b28e7d4bcb553b | [
"MIT"
] | 3 | 2015-03-22T19:38:59.000Z | 2015-04-01T20:38:42.000Z | output.py | ephracis/hermes | ee42c5e4200858a40636e1d528b28e7d4bcb553b | [
"MIT"
] | null | null | null | """ This file contains code for outputting results to both stdout and LaTeX files. """
import sys
import time
from stats import *
from filesystem import *
animation = ["-", "\\", "|", "/"]
animation_pos = 0
animation_last = time.time()
def animate():
""" Print animation. Note: this will overwrite the previous two ... | 34.59593 | 197 | 0.632888 | 1,782 | 11,901 | 4.159371 | 0.149832 | 0.066784 | 0.041824 | 0.019293 | 0.539126 | 0.515515 | 0.485159 | 0.455208 | 0.422828 | 0.358608 | 0 | 0.021672 | 0.150912 | 11,901 | 343 | 198 | 34.696793 | 0.711826 | 0.010167 | 0 | 0.378601 | 0 | 0.004115 | 0.263265 | 0.044718 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016461 | null | null | 0.193416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2739019c639e61b2f946d014eba5a395d9517cc2 | 1,468 | py | Python | Sublemon/snippets/python.snippets.py | lastsecondsave/sublemon | fe5bf3f776c2d0633a0e3aac477fee95174ce817 | [
"Unlicense"
] | 2 | 2019-07-01T08:47:01.000Z | 2021-07-12T14:43:17.000Z | Sublemon/snippets/python.snippets.py | lastsecondsave/sublemon | fe5bf3f776c2d0633a0e3aac477fee95174ce817 | [
"Unlicense"
] | null | null | null | Sublemon/snippets/python.snippets.py | lastsecondsave/sublemon | fe5bf3f776c2d0633a0e3aac477fee95174ce817 | [
"Unlicense"
] | null | null | null | from snippets import Icon, generate
snippets = {
"pl": "print($SEL0)",
"ss": ("self.x = x", "self.$1 = $1"),
"pld": ("pylint disable", "# pylint: disable="),
"main": ('if __name__ == "__main__"', 'if __name__ == "__main__":==>${0:main()}'),
"fi": ("from import", "from $1 import $0"),
"init": ("... | 22.584615 | 86 | 0.451635 | 143 | 1,468 | 4.426573 | 0.503497 | 0.015798 | 0.031596 | 0.044234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022044 | 0.320163 | 1,468 | 64 | 87 | 22.9375 | 0.612224 | 0 | 0 | 0.103448 | 1 | 0 | 0.378747 | 0.01703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.034483 | 0.051724 | 0.017241 | 0.086207 | 0.017241 | 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 |
273fa8207a5c1fa0b8d725cbc4cc3899b280f09e | 4,405 | py | Python | mpesa/calculations.py | IJaccojwang/bajeti | d2fd05368094d1b7d8629f0849ee72f2073d5085 | [
"MIT"
] | null | null | null | mpesa/calculations.py | IJaccojwang/bajeti | d2fd05368094d1b7d8629f0849ee72f2073d5085 | [
"MIT"
] | 4 | 2020-06-05T23:12:57.000Z | 2021-09-08T01:18:21.000Z | mpesa/calculations.py | IJaccojwang/bajeti | d2fd05368094d1b7d8629f0849ee72f2073d5085 | [
"MIT"
] | null | null | null | import tabula
import csv
def convert(conversionfile):
tabula.convert_into('.'+ conversionfile, "./media/statements/output.csv", pages='2', output_format="csv")
with open('./media/statements/output.csv') as in_file:
reader = csv.reader(in_file)
result = [[item for item in row if item != ''] f... | 26.859756 | 112 | 0.545289 | 563 | 4,405 | 4.238011 | 0.170515 | 0.063705 | 0.093881 | 0.086756 | 0.69824 | 0.69824 | 0.66974 | 0.608131 | 0.608131 | 0.604359 | 0 | 0.043943 | 0.256073 | 4,405 | 163 | 113 | 27.02454 | 0.684162 | 0.372304 | 0 | 0.093333 | 0 | 0 | 0.134757 | 0.072901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.026667 | 0 | 0.04 | 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 |
274cf06283a0a2bd1e52541c05a4b38428b8f0f7 | 879 | py | Python | intro-vietstack/tools/tagcloud.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 1 | 2016-11-29T09:35:50.000Z | 2016-11-29T09:35:50.000Z | intro-vietstack/tools/tagcloud.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 8 | 2016-09-23T01:25:12.000Z | 2016-11-14T04:02:16.000Z | intro-vietstack/tools/tagcloud.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 14 | 2016-09-22T01:46:57.000Z | 2019-09-05T05:42:11.000Z | #!/usr/bin/python
import os
import sys
import argparse
import askbot
def parse_args():
p = argparse.ArgumentParser()
p.add_argument('--endpoint', '-e',
default='https://ask.openstack.org/en/api/v1')
p.add_argument('--limit', '-l',
default=1000,
typ... | 20.928571 | 71 | 0.518771 | 111 | 879 | 3.990991 | 0.513514 | 0.060948 | 0.054176 | 0.090293 | 0.121896 | 0.121896 | 0.121896 | 0 | 0 | 0 | 0 | 0.015254 | 0.328783 | 879 | 41 | 72 | 21.439024 | 0.735593 | 0.018203 | 0 | 0 | 0 | 0 | 0.126744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
274f8fcbcece08ccf3f41e905b974cb02655a6ff | 1,102 | py | Python | rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/ApplyFunction.py | DLUTLiuFengyi/rheem-integration | 34c437d73761ab44b4c6b7dbd5cab91875f0933a | [
"Apache-2.0"
] | null | null | null | rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/ApplyFunction.py | DLUTLiuFengyi/rheem-integration | 34c437d73761ab44b4c6b7dbd5cab91875f0933a | [
"Apache-2.0"
] | null | null | null | rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/ApplyFunction.py | DLUTLiuFengyi/rheem-integration | 34c437d73761ab44b4c6b7dbd5cab91875f0933a | [
"Apache-2.0"
] | null | null | null | from graph.Visitor import Visitor
class ApplyFunction(Visitor):
def __init__(self, graph, results):
self.collection = results
self.graph = graph
# UDF can store results in ApplyFunction.collection whenever its requires.
# last_iter has the generated current value obtained in the previous... | 40.814815 | 114 | 0.653358 | 135 | 1,102 | 5.088889 | 0.348148 | 0.128093 | 0.058224 | 0.043668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001236 | 0.26588 | 1,102 | 27 | 115 | 40.814815 | 0.84796 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.0625 | 0.0625 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2754a346ba83c429a44f350fcadfe28800294126 | 3,853 | py | Python | apps/task/views.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 12 | 2021-11-16T07:20:22.000Z | 2022-02-17T17:25:45.000Z | apps/task/views.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 1 | 2021-07-02T09:57:44.000Z | 2021-08-07T12:02:59.000Z | apps/task/views.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 3 | 2021-09-17T08:22:02.000Z | 2021-12-16T06:22:30.000Z | from drf_spectacular.utils import extend_schema
from rest_framework import permissions
from django_celery_results.models import TaskResult
from rest_framework import status
from .serializers import TaskSerializer
from utils.drf_utils.custom_model_view_set import MyListRetrieveDestroyModelViewSet
from utils.drf_utils.c... | 35.348624 | 107 | 0.544251 | 371 | 3,853 | 5.477089 | 0.380054 | 0.03248 | 0.050197 | 0.025591 | 0.384843 | 0.318898 | 0.318898 | 0.270669 | 0.270669 | 0.270669 | 0 | 0.039132 | 0.330132 | 3,853 | 108 | 108 | 35.675926 | 0.74816 | 0.363613 | 0 | 0 | 0 | 0 | 0.018145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.194444 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2758f8e5959868e361d4d22ca678e8667c0f33db | 842 | py | Python | tests/unit/dataactbroker/test_exception_handler.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2019-06-22T21:53:16.000Z | 2019-06-22T21:53:16.000Z | tests/unit/dataactbroker/test_exception_handler.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 3 | 2021-08-22T11:47:45.000Z | 2022-03-29T22:06:49.000Z | tests/unit/dataactbroker/test_exception_handler.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2020-07-17T23:50:56.000Z | 2020-07-17T23:50:56.000Z | import json
from webargs import fields as webargs_fields
from webargs.flaskparser import use_kwargs
from dataactbroker import exception_handler
def test_exception_handler(test_app):
exception_handler.add_exception_handlers(test_app.application)
@test_app.application.route("/endpoint/")
@use_kwargs({'pa... | 33.68 | 76 | 0.669834 | 100 | 842 | 5.47 | 0.49 | 0.095064 | 0.065814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021341 | 0.220903 | 842 | 24 | 77 | 35.083333 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.175772 | 0.046318 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0.055556 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
275f110d61fdaac2a0527c6a91ae3387ccac4e3c | 1,372 | py | Python | wonderbits/WBHall.py | BigCircleLaw/wonderguy | d78a100784c414b9c3945c301d07c4e1b04aab8f | [
"MIT"
] | 1 | 2019-07-15T10:38:48.000Z | 2019-07-15T10:38:48.000Z | wonderbits/WBHall.py | BigCircleLaw/wonderguy | d78a100784c414b9c3945c301d07c4e1b04aab8f | [
"MIT"
] | 1 | 2019-09-11T02:33:14.000Z | 2019-09-11T02:33:14.000Z | wonderbits/WBHall.py | BigCircleLaw/wonderguy | d78a100784c414b9c3945c301d07c4e1b04aab8f | [
"MIT"
] | 1 | 2019-07-26T03:13:18.000Z | 2019-07-26T03:13:18.000Z | from .WBits import WBits
from .event import Event
def _format_str_type(x):
if isinstance(x, str):
x = str(x).replace('"', '\\"')
x = "\"" + x + "\""
return x
class Hall(WBits):
def __init__(self, index = 1):
WBits.__init__(self)
self.index = index
def set_o... | 24.070175 | 80 | 0.531341 | 146 | 1,372 | 4.80137 | 0.383562 | 0.064194 | 0.064194 | 0.059914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002188 | 0.333819 | 1,372 | 57 | 81 | 24.070175 | 0.76477 | 0.091837 | 0 | 0.066667 | 0 | 0 | 0.084295 | 0.041704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0.033333 | 0.466667 | 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 |
275f251f6010be4ea96224dbe5aaf0e6a2b720d9 | 1,163 | py | Python | processing_scripts/example_fit_from_JoG_article.py | jerabaul29/LoggerWavesInIce | ebe820b148fef166da35d8ac7da244327c282f50 | [
"MIT"
] | 2 | 2019-06-24T20:01:27.000Z | 2021-02-15T10:50:40.000Z | processing_scripts/example_fit_from_JoG_article.py | jerabaul29/LoggerWavesInIce | ebe820b148fef166da35d8ac7da244327c282f50 | [
"MIT"
] | 6 | 2019-10-09T10:37:11.000Z | 2020-08-12T21:41:44.000Z | processing_scripts/example_fit_from_JoG_article.py | jerabaul29/LoggerWavesInIce | ebe820b148fef166da35d8ac7da244327c282f50 | [
"MIT"
] | 1 | 2021-11-09T04:17:44.000Z | 2021-11-09T04:17:44.000Z | # with the machine fit
g = 9.81
def funcFitDecay(frq, nuFit):
return (nuFit**0.5) * ((2 * np.pi * frq)**(7. / 2.)) / (2**0.5) / (g**2)
# fit without taking into account uncertainty on spectra
viscosity, covariance = scipy.optimize.curve_fit(funcFitDecay, listFrequenciesForFit, listDampingForFit,p0=0.01,sigma=0.1... | 34.205882 | 122 | 0.727429 | 172 | 1,163 | 4.877907 | 0.453488 | 0.035757 | 0.01907 | 0.05006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031809 | 0.134996 | 1,163 | 33 | 123 | 35.242424 | 0.802187 | 0.260533 | 0 | 0 | 0 | 0 | 0.17585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
275fdbc7b7faff9a41caf049536bbd02584ec517 | 941 | py | Python | App_test.py | Kharaderahul/Flight-Fare-Prediction-App | ecd5c5ad7551b441f1c501fc2a79b0029b081e50 | [
"MIT"
] | null | null | null | App_test.py | Kharaderahul/Flight-Fare-Prediction-App | ecd5c5ad7551b441f1c501fc2a79b0029b081e50 | [
"MIT"
] | null | null | null | App_test.py | Kharaderahul/Flight-Fare-Prediction-App | ecd5c5ad7551b441f1c501fc2a79b0029b081e50 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/", method = ["Get"]) #app.route(rule, options)
def HomePage():
return render_template("index.html")
@app.route("/price", method = ["Post"]) # will be called when 'Get Price' is clicked
def prediction():
if request.method == ... | 31.366667 | 132 | 0.631243 | 116 | 941 | 4.982759 | 0.62931 | 0.096886 | 0.103806 | 0.129758 | 0.150519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015428 | 0.242295 | 941 | 29 | 133 | 32.448276 | 0.795231 | 0.265675 | 0 | 0 | 0 | 0 | 0.177584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | 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 |
27623ff76d964abed043e3f70eef96be5e234042 | 523 | py | Python | pykechain/__init__.py | KaczuH/pykechain | 2bc734ddf2df4926e7ad5612197e50fee6e24071 | [
"Apache-2.0"
] | 5 | 2017-05-03T12:19:51.000Z | 2021-07-07T11:55:50.000Z | pykechain/__init__.py | KaczuH/pykechain | 2bc734ddf2df4926e7ad5612197e50fee6e24071 | [
"Apache-2.0"
] | 593 | 2016-12-22T15:41:54.000Z | 2022-03-22T12:39:49.000Z | pykechain/__init__.py | KaczuH/pykechain | 2bc734ddf2df4926e7ad5612197e50fee6e24071 | [
"Apache-2.0"
] | 5 | 2017-03-13T17:36:28.000Z | 2021-06-24T09:37:55.000Z | """A python library to connect and interact with KE-chain."""
import sys
import six
from .__about__ import version
from .client import Client
from .helpers import get_project
__all__ = (
'Client', 'get_project', 'version'
)
if six.PY2 or (sys.version_info.major == 3 and sys.version_info.minor <= 4):
raise R... | 30.764706 | 107 | 0.690249 | 76 | 523 | 4.592105 | 0.618421 | 0.057307 | 0.080229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021531 | 0.200765 | 523 | 16 | 108 | 32.6875 | 0.813397 | 0.105163 | 0 | 0 | 0 | 0.090909 | 0.400433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2762c2cf4af514238f58a09023591f292e681895 | 2,581 | py | Python | tests/settings.py | danihodovic/django-allauth-ui | 49b2d183ef99484cdedac9d459961fcf7c343bd3 | [
"MIT"
] | 15 | 2022-02-04T15:29:53.000Z | 2022-03-17T12:09:58.000Z | tests/settings.py | danihodovic/django-allauth-ui | 49b2d183ef99484cdedac9d459961fcf7c343bd3 | [
"MIT"
] | 1 | 2022-02-17T04:07:27.000Z | 2022-02-17T04:36:22.000Z | tests/settings.py | danihodovic/django-allauth-ui | 49b2d183ef99484cdedac9d459961fcf7c343bd3 | [
"MIT"
] | 3 | 2022-02-04T16:52:41.000Z | 2022-02-10T12:15:07.000Z | from pathlib import Path
DEBUG = True
USE_TZ = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "very-secret"
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "db.sqlite3"}}
ROOT_URLCONF = "tests.urls"
DJANGO_APPS = [
"django.contrib.admin",
"djan... | 29 | 87 | 0.711352 | 252 | 2,581 | 7.075397 | 0.448413 | 0.094784 | 0.038138 | 0.034773 | 0.043746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006021 | 0.163503 | 2,581 | 88 | 88 | 29.329545 | 0.819824 | 0.024797 | 0 | 0.027027 | 0 | 0 | 0.561829 | 0.450497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013514 | 0 | 0.013514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27639a93881d560501b34079d81d4a151d745df1 | 1,564 | py | Python | data/python/073df7434997a888319ef7732dd84133_algorithm.py | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 5 | 2018-01-03T06:43:07.000Z | 2020-07-30T13:15:29.000Z | data/python/073df7434997a888319ef7732dd84133_algorithm.py | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | null | null | null | data/python/073df7434997a888319ef7732dd84133_algorithm.py | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 2 | 2019-11-04T02:54:49.000Z | 2020-04-24T17:50:46.000Z | import numpy as np
import controllers.bucket as bucket
import controllers.lifetimes as lifetimes
def main(numberOfStates, numberOfCarriers, totalTime, killRate, tau, test):
print 'starting algorithm'
N = numberOfStates
P = numberOfCarriers
E = np.floor(P)
H = np.floor(P)
empty = 0
electron = 0.5
hole = 1.5
e... | 25.639344 | 91 | 0.690537 | 210 | 1,564 | 5.142857 | 0.357143 | 0.009259 | 0.008333 | 0.007407 | 0.096296 | 0.096296 | 0.096296 | 0.096296 | 0 | 0 | 0 | 0.02454 | 0.16624 | 1,564 | 61 | 92 | 25.639344 | 0.803681 | 0.042199 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | 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 |
2763ce0817a09b609af307dbdce65d3cabac151c | 1,791 | py | Python | exemplo_lista.py | joao-barabba/Exercicios_Python | ceddb0c99ed6b8b2b749c00f227dfc4b95224a85 | [
"MIT"
] | null | null | null | exemplo_lista.py | joao-barabba/Exercicios_Python | ceddb0c99ed6b8b2b749c00f227dfc4b95224a85 | [
"MIT"
] | null | null | null | exemplo_lista.py | joao-barabba/Exercicios_Python | ceddb0c99ed6b8b2b749c00f227dfc4b95224a85 | [
"MIT"
] | null | null | null | ultimo=10
fila=list(range(1,ultimo+1))#Função Sequenciadora de 1 para ultimo +1
fila2=list(range(1,ultimo+1))
while True:# Sempre dará verdadeiro em loop e só sairá no break
print(f"Existem{len(fila)} clientes na fila\n")
print(f"Existem{len(fila2)} clientes na fila\n")
print(f"Fila atual: {fila}\n")
... | 39.8 | 70 | 0.520938 | 230 | 1,791 | 4.056522 | 0.269565 | 0.051447 | 0.032154 | 0.03537 | 0.723473 | 0.687031 | 0.610932 | 0.610932 | 0.610932 | 0.610932 | 0 | 0.021404 | 0.34785 | 1,791 | 44 | 71 | 40.704545 | 0.777397 | 0.05081 | 0 | 0.636364 | 0 | 0 | 0.318017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.340909 | 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 |
2765caefbae783614fc209e9cc73829323ac3f2f | 13,553 | py | Python | src/box.py | andrewowens/camo | 841e096e3a346f8ef3f6be8ea9548fc976c52eab | [
"MIT"
] | 7 | 2015-11-29T01:35:41.000Z | 2022-01-21T01:43:21.000Z | src/box.py | andrewowens/camo | 841e096e3a346f8ef3f6be8ea9548fc976c52eab | [
"MIT"
] | null | null | null | src/box.py | andrewowens/camo | 841e096e3a346f8ef3f6be8ea9548fc976c52eab | [
"MIT"
] | 5 | 2016-03-15T12:50:39.000Z | 2020-05-14T15:19:40.000Z | TEXSIZE = 256
import numpy as np, util as ut, mvg, scipy.io, dset, os, img as ig
na = np.newaxis
ALIAS_SAMPLES = 5
class Mesh:
def __init__(self, face_idx, mesh_pts, texsize = TEXSIZE):
if texsize is None:
texsize = 256
self.face_idx = np.asarray(face_idx)
self.nfaces = len(face_idx)
... | 39.51312 | 151 | 0.584446 | 2,219 | 13,553 | 3.452005 | 0.143308 | 0.034465 | 0.010444 | 0.006266 | 0.325326 | 0.248303 | 0.21436 | 0.179504 | 0.154961 | 0.120104 | 0 | 0.040789 | 0.233011 | 13,553 | 342 | 152 | 39.628655 | 0.696104 | 0.193315 | 0 | 0.082609 | 0 | 0 | 0.014598 | 0 | 0 | 0 | 0 | 0.002924 | 0.021739 | 0 | null | null | 0 | 0.004348 | null | null | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27674c97326b7aae52f087791fda5ff1cbbcd83e | 796 | py | Python | PerfectCRM/views.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | PerfectCRM/views.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | PerfectCRM/views.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Datetime: 2018/10/21
@Author: Zhang Yafei
"""
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
def acc_login(request):
error_msg = ''
if request.method == 'POST':
username = request.POST.get('username')
pass... | 27.448276 | 66 | 0.643216 | 92 | 796 | 5.5 | 0.445652 | 0.063241 | 0.055336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.223618 | 796 | 29 | 67 | 27.448276 | 0.804207 | 0.081658 | 0 | 0 | 0 | 0 | 0.117403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.210526 | 0.105263 | 0 | 0.368421 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27741239da0ad218834afde6e1dc03ec9dbea7b0 | 398 | py | Python | setup.py | joeladam518/mqtt-flask-app | 09f06a6dd92998ecdff8e385a65c1398c8010830 | [
"MIT"
] | null | null | null | setup.py | joeladam518/mqtt-flask-app | 09f06a6dd92998ecdff8e385a65c1398c8010830 | [
"MIT"
] | null | null | null | setup.py | joeladam518/mqtt-flask-app | 09f06a6dd92998ecdff8e385a65c1398c8010830 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'mqttflask_app',
version = '0.1',
packages = [ 'site' ],
install_requires = [
'wheel',
'uwsgi',
'flask',
'flask_restful',
'flask_httpauth',
'python_dotenv',
'simplejson',
'paho-mqtt',
],
l... | 19.9 | 59 | 0.527638 | 37 | 398 | 5.540541 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.336683 | 398 | 19 | 60 | 20.947368 | 0.768939 | 0 | 0 | 0 | 0 | 0 | 0.339196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2777873f0de3eb25250661574e607005335450cb | 1,383 | py | Python | tests/unit/test_base_adapter.py | norton120/snowshu | 3595972a2ab28350f0283c3703adc1ca4b26bec2 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_base_adapter.py | norton120/snowshu | 3595972a2ab28350f0283c3703adc1ca4b26bec2 | [
"Apache-2.0"
] | 28 | 2020-02-06T18:37:51.000Z | 2020-02-06T18:38:34.000Z | tests/unit/test_base_adapter.py | norton120/snowshu | 3595972a2ab28350f0283c3703adc1ca4b26bec2 | [
"Apache-2.0"
] | null | null | null | import pytest
from snowshu.adapters import BaseSQLAdapter
from tests.common import rand_string
from snowshu.core.models.credentials import Credentials, USER, PASSWORD, HOST, ACCOUNT, SCHEMA, DATABASE, ROLE
def rand_creds(args) -> Credentials:
kwargs = dict(zip(args, [rand_string(10) for _ in range(len(args))]))
... | 28.22449 | 110 | 0.715112 | 160 | 1,383 | 6.03125 | 0.33125 | 0.087047 | 0.099482 | 0.099482 | 0.241451 | 0.241451 | 0.198964 | 0.099482 | 0 | 0 | 0 | 0.001729 | 0.163413 | 1,383 | 48 | 111 | 28.8125 | 0.832325 | 0 | 0 | 0.137931 | 0 | 0.034483 | 0.07386 | 0.068067 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.103448 | false | 0.275862 | 0.137931 | 0 | 0.448276 | 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 |
277eb50076bf2b34bb511f4ebc8bd4bf6f90da11 | 3,210 | py | Python | src/estimator.py | banjodayo39/covid-19-estimator | 39e65f6cd25271a96d56b599e98bdb37976cf0b9 | [
"MIT"
] | null | null | null | src/estimator.py | banjodayo39/covid-19-estimator | 39e65f6cd25271a96d56b599e98bdb37976cf0b9 | [
"MIT"
] | null | null | null | src/estimator.py | banjodayo39/covid-19-estimator | 39e65f6cd25271a96d56b599e98bdb37976cf0b9 | [
"MIT"
] | null | null | null | import json
def estimator(data):
time = 0
infection_time = 0
impact_dollarsInFlight = 0
severeImpact_dollarsInFlight = 0
if data['periodType'] == "days":
time = data['timeToElapse']
infection_time = (int)(time/3)
elif data['periodType'] == "weeks":
time = data['timeToElapse'] * 7
infecti... | 43.972603 | 130 | 0.785047 | 231 | 3,210 | 10.632035 | 0.199134 | 0.088355 | 0.02443 | 0.02443 | 0.190147 | 0.120928 | 0.120928 | 0.05741 | 0.034202 | 0 | 0 | 0.01621 | 0.135202 | 3,210 | 73 | 131 | 43.972603 | 0.868516 | 0.010592 | 0 | 0.125 | 0 | 0 | 0.23763 | 0.166404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.053571 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27820bee3bba706d563907978d5efc5f887263e1 | 536 | py | Python | item/tonics.py | ahollyer/unicorn-rpg | 8797fb134227bcd6172e62d2f638e53df6e89d62 | [
"MIT"
] | null | null | null | item/tonics.py | ahollyer/unicorn-rpg | 8797fb134227bcd6172e62d2f638e53df6e89d62 | [
"MIT"
] | null | null | null | item/tonics.py | ahollyer/unicorn-rpg | 8797fb134227bcd6172e62d2f638e53df6e89d62 | [
"MIT"
] | null | null | null | from item.base import Item
class Tonic(Item):
def equip(self, hero):
print("{}'s health is {} out of {}.".format(
hero.name, hero.health, hero.max_health))
self.pause()
print("{} eats the {}.".format(
hero.name, self.name))
self.pause()
for i in rang... | 28.210526 | 56 | 0.514925 | 67 | 536 | 4.074627 | 0.432836 | 0.10989 | 0.153846 | 0.186813 | 0.391941 | 0.307692 | 0.307692 | 0.307692 | 0.307692 | 0.307692 | 0 | 0.002762 | 0.324627 | 536 | 18 | 57 | 29.777778 | 0.751381 | 0 | 0 | 0.333333 | 0 | 0 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27851ce38b82579d0d8d8fd04a08866beec71170 | 1,266 | py | Python | mycms___/mycms/decorators.py | Anioko/reusable-cms | 52e2a2f11a92c596bd13812d5fd14dffdcdcaa7f | [
"MIT"
] | null | null | null | mycms___/mycms/decorators.py | Anioko/reusable-cms | 52e2a2f11a92c596bd13812d5fd14dffdcdcaa7f | [
"MIT"
] | 122 | 2020-12-31T06:31:11.000Z | 2022-03-18T14:12:03.000Z | mycms___/webpack/decorators.py | Anioko/reusable-cms | 52e2a2f11a92c596bd13812d5fd14dffdcdcaa7f | [
"MIT"
] | null | null | null | from functools import wraps
from flask import flash, abort, redirect, url_for, request
from flask_login import current_user
from mycms.api.views import main_api
def admin_required(f):
def decorator(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if not current_user.is_authenti... | 29.44186 | 73 | 0.620063 | 151 | 1,266 | 5.013245 | 0.304636 | 0.036988 | 0.073976 | 0.071334 | 0.445178 | 0.379128 | 0.379128 | 0.379128 | 0.379128 | 0.379128 | 0 | 0.003337 | 0.289889 | 1,266 | 42 | 74 | 30.142857 | 0.83871 | 0 | 0 | 0.441176 | 0 | 0 | 0.030016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.117647 | 0 | 0.676471 | 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 |
2787d9a994f00a6410afab68a161b377cfdc4ea0 | 10,788 | py | Python | blebox_uniapi_slozo/products.py | slozo/blebox_uniapi | 6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb | [
"Apache-2.0"
] | null | null | null | blebox_uniapi_slozo/products.py | slozo/blebox_uniapi | 6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb | [
"Apache-2.0"
] | null | null | null | blebox_uniapi_slozo/products.py | slozo/blebox_uniapi | 6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb | [
"Apache-2.0"
] | null | null | null | from .box import Box
from .error import UnsupportedBoxResponse
class Products:
# TODO: convert to json?
CONFIG = {
"types": {
"airSensor": {
"api_path": "/api/air/state",
"api_level_range": [20180403, 20191112],
"air_qualities": [
... | 38.528571 | 88 | 0.341954 | 762 | 10,788 | 4.762467 | 0.199475 | 0.054009 | 0.060623 | 0.077156 | 0.400661 | 0.305043 | 0.28906 | 0.269771 | 0.252136 | 0.234224 | 0 | 0.051172 | 0.505469 | 10,788 | 279 | 89 | 38.666667 | 0.629053 | 0.031053 | 0 | 0.288973 | 0 | 0 | 0.258043 | 0.06463 | 0 | 0 | 0 | 0.003584 | 0 | 1 | 0.003802 | false | 0 | 0.007605 | 0 | 0.026616 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
278f4e7e9f23983ff931e15b5fd882572f253f89 | 21,191 | py | Python | src/pulitools/statsviewer/widget/mainwindow.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 35 | 2015-02-23T23:13:13.000Z | 2021-01-03T05:56:39.000Z | src/pulitools/statsviewer/widget/mainwindow.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 15 | 2015-01-12T12:58:29.000Z | 2016-03-30T13:10:19.000Z | src/pulitools/statsviewer/widget/mainwindow.py | mikrosimage/OpenRenderManagement | 6f9237a86cb8e4b206313f9c22424c8002fd5e4d | [
"BSD-3-Clause"
] | 20 | 2015-03-18T06:57:13.000Z | 2020-07-01T15:09:36.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'rsrc/ui/mainwindow.ui'
#
# Created: Tue May 6 19:08:29 2014
# by: PyQt4 UI code generator 4.6.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(sel... | 67.060127 | 162 | 0.738002 | 2,031 | 21,191 | 7.678976 | 0.134909 | 0.111182 | 0.085022 | 0.117722 | 0.464927 | 0.235381 | 0.12952 | 0.0411 | 0.0411 | 0.0411 | 0 | 0.013912 | 0.148601 | 21,191 | 315 | 163 | 67.273016 | 0.850515 | 0.010476 | 0 | 0.049669 | 1 | 0 | 0.083918 | 0.001193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006623 | false | 0 | 0.006623 | 0 | 0.016556 | 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 |
2790dadec04f55dfac9e8fa259edca750ab02504 | 2,666 | py | Python | bigml/tests/create_external_steps.py | pertinkoira/python | c486060f7f7c79ef9f48ced567f118ac7aae3f84 | [
"Apache-2.0"
] | null | null | null | bigml/tests/create_external_steps.py | pertinkoira/python | c486060f7f7c79ef9f48ced567f118ac7aae3f84 | [
"Apache-2.0"
] | 3 | 2022-03-29T17:54:19.000Z | 2022-03-29T17:54:42.000Z | bigml/tests/create_external_steps.py | pertinkoira/python | c486060f7f7c79ef9f48ced567f118ac7aae3f84 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2020-2022 BigML
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 36.027027 | 97 | 0.733683 | 381 | 2,666 | 4.976378 | 0.354331 | 0.188291 | 0.081224 | 0.047468 | 0.147679 | 0.119198 | 0.081224 | 0.081224 | 0 | 0 | 0 | 0.00764 | 0.165416 | 2,666 | 73 | 98 | 36.520548 | 0.844494 | 0.346587 | 0 | 0.052632 | 0 | 0 | 0.063991 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.131579 | false | 0 | 0.342105 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
27915e4d64b4de10263d7f857c6c1a9d681fef8a | 2,503 | py | Python | tests/util.py | inpe-cdsr/cdsr_pack | b0061aa258e9730bb60409aa1ba93d33af7ff79f | [
"MIT"
] | null | null | null | tests/util.py | inpe-cdsr/cdsr_pack | b0061aa258e9730bb60409aa1ba93d33af7ff79f | [
"MIT"
] | null | null | null | tests/util.py | inpe-cdsr/cdsr_pack | b0061aa258e9730bb60409aa1ba93d33af7ff79f | [
"MIT"
] | null | null | null | """Module with utility functions related to test cases."""
from unittest import TestCase
from src.cdsr_pack import CDSRBuilderException, CDSRDecoderException, \
build_collection, build_item, decode_path
class TestCDSRPack(TestCase):
"""Base class for creating test cases related to CDS... | 41.716667 | 92 | 0.626848 | 274 | 2,503 | 5.518248 | 0.273723 | 0.079365 | 0.095238 | 0.095238 | 0.550926 | 0.471561 | 0.371032 | 0.304233 | 0.224868 | 0.224868 | 0 | 0 | 0.29165 | 2,503 | 59 | 93 | 42.423729 | 0.852792 | 0.195366 | 0 | 0.3 | 0 | 0 | 0.192735 | 0.0111 | 0 | 0 | 0 | 0 | 0.433333 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27927c65cf269220498873eb3d49a673887fb87c | 3,498 | py | Python | src/numerical_iterations/generate_iters.py | bramkuijper/fecundity_vs_viability | 0b03bafe00530be173d1c8dec7539576acb6a1d8 | [
"CC-BY-4.0"
] | null | null | null | src/numerical_iterations/generate_iters.py | bramkuijper/fecundity_vs_viability | 0b03bafe00530be173d1c8dec7539576acb6a1d8 | [
"CC-BY-4.0"
] | null | null | null | src/numerical_iterations/generate_iters.py | bramkuijper/fecundity_vs_viability | 0b03bafe00530be173d1c8dec7539576acb6a1d8 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# generate parameter combinations for iterations
import os, re, sys, math, itertools, copy
import numpy as np
import pandas as pd
# auxiliary expand grid function
def expand_grid(data_dict):
for key, value in data_dict.items():
assert(type(value) is type([]))
# calculate t... | 25.347826 | 66 | 0.502001 | 448 | 3,498 | 3.796875 | 0.354911 | 0.020576 | 0.037625 | 0.02234 | 0.03057 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059889 | 0.38422 | 3,498 | 137 | 67 | 25.532847 | 0.729805 | 0.242424 | 0 | 0 | 1 | 0 | 0.018652 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.013158 | false | 0 | 0.039474 | 0 | 0.052632 | 0.026316 | 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 |
27966e6751bcda138a40ebdd64dc4c2ea41e6e42 | 366 | py | Python | programming-laboratory-I/rr3c/verificando.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/rr3c/verificando.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/rr3c/verificando.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Verificando se uma String é Substring de Outra String
def is_substring(str1, str2):
tamanho = len(str2)
for i in range(len(str1) - tamanho + 1):
s = ""
for j in range(tamanho):
s += str1[i + j]
if s == str2:
return True
return ... | 19.263158 | 65 | 0.661202 | 56 | 366 | 4.285714 | 0.660714 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059441 | 0.218579 | 366 | 18 | 66 | 20.333333 | 0.77972 | 0.327869 | 0 | 0 | 0 | 0 | 0.037344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27a43a7a06f12dd45dd26d4a6e67f78e03d8d35d | 1,452 | py | Python | gxwf/subcommands/invocations.py | bgruening/gxwf | a2ed481a86a6441a0af2f9a69c8d5ef14a32a0d6 | [
"MIT"
] | 4 | 2019-11-08T17:07:28.000Z | 2020-11-23T20:49:16.000Z | gxwf/subcommands/invocations.py | bgruening/gxwf | a2ed481a86a6441a0af2f9a69c8d5ef14a32a0d6 | [
"MIT"
] | 4 | 2019-11-11T23:39:34.000Z | 2020-03-15T19:22:28.000Z | gxwf/subcommands/invocations.py | bgruening/gxwf | a2ed481a86a6441a0af2f9a69c8d5ef14a32a0d6 | [
"MIT"
] | 3 | 2020-03-10T11:37:05.000Z | 2020-12-10T12:48:26.000Z | import click
import os
import yaml
import json
from bioblend import galaxy
from requests import ConnectionError as RequestsConnectionError
from bioblend import ConnectionError as BioblendConnectionError
from yaml import SafeLoader
from gxwf import utils
def invocations(id_):
gi, cnfg, aliases = utils._login()
... | 41.485714 | 176 | 0.67562 | 198 | 1,452 | 4.838384 | 0.520202 | 0.012526 | 0.050104 | 0.056367 | 0.079332 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006092 | 0.208678 | 1,452 | 34 | 177 | 42.705882 | 0.827676 | 0.210055 | 0 | 0 | 0 | 0 | 0.113835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.36 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
27ab08512d33a46516c14893acd1ad76b29aba84 | 344,681 | py | Python | amd64-linux/lib/python/sim_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/python/sim_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/python/sim_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z | import sys, os, time, string, types
if os.environ.has_key('SIMICS_PYCHECKER'):
os.environ['PYCHECKER'] = ('--no-shadowbuiltin --no-argsused'
+ ' --no-implicitreturns --no-shadow')
import pychecker.checker
from cli import *
from refmanual import *
from re import *
from string imp... | 36.225013 | 230 | 0.581544 | 44,937 | 344,681 | 4.320159 | 0.05165 | 0.002503 | 0.019862 | 0.021104 | 0.460813 | 0.385593 | 0.335802 | 0.299827 | 0.272063 | 0.255224 | 0 | 0.015484 | 0.282209 | 344,681 | 9,514 | 231 | 36.228821 | 0.769188 | 0.049394 | 0 | 0.366707 | 0 | 0.012949 | 0.352427 | 0.0499 | 0 | 0 | 0.001147 | 0.000105 | 0.002403 | 0 | null | null | 0.003204 | 0.003204 | null | null | 0.084101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27b245913868c75c100c728793bec149567e7267 | 547 | py | Python | products/migrations/0003_auto_20200326_1707.py | nitishpatel/django-ecommerce | 047e1f07cf99185f3d8ab2c06650641b3382bf65 | [
"MIT"
] | 1 | 2021-04-18T20:51:36.000Z | 2021-04-18T20:51:36.000Z | products/migrations/0003_auto_20200326_1707.py | nitishpatel/django-ecommerce | 047e1f07cf99185f3d8ab2c06650641b3382bf65 | [
"MIT"
] | 1 | 2020-06-06T15:28:59.000Z | 2020-06-06T15:28:59.000Z | products/migrations/0003_auto_20200326_1707.py | nitishpatel/django-ecommerce | 047e1f07cf99185f3d8ab2c06650641b3382bf65 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-26 11:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0002_product_image'),
]
operations = [
migrations.AddField(
model_name='product',
name='slug',
... | 23.782609 | 90 | 0.586837 | 54 | 547 | 5.851852 | 0.759259 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05641 | 0.28702 | 547 | 22 | 91 | 24.863636 | 0.753846 | 0.082267 | 0 | 0.125 | 1 | 0 | 0.106 | 0 | 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 |
27b3d605031eae0e4f6c1e3e5be2957f3cc06f30 | 8,997 | py | Python | sktime/distances/base/_base.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/distances/base/_base.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/distances/base/_base.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = ["chrisholder", "TonyBagnall"]
from abc import ABC, abstractmethod
from typing import Callable, NamedTuple, Set
import numpy as np
from sktime.distances.base._types import (
AlignmentPathReturn,
DistanceAlignmentPathCallable,
DistanceCallable,
)
class NumbaDistance(... | 33.199262 | 88 | 0.604424 | 1,094 | 8,997 | 4.8766 | 0.150823 | 0.07254 | 0.028116 | 0.038988 | 0.721087 | 0.710403 | 0.663168 | 0.659606 | 0.606748 | 0.582755 | 0 | 0.003944 | 0.323663 | 8,997 | 270 | 89 | 33.322222 | 0.872802 | 0.548738 | 0 | 0.421053 | 0 | 0 | 0.085479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.052632 | 0 | 0.289474 | 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 |
27bab81a847b4d1698f95b6a3dce274910d31882 | 3,273 | py | Python | Parser/ElementProcessors.py | shreyas/swalpa | 200c23a04e0a6a63b805705c9af15cec708b895a | [
"MIT"
] | null | null | null | Parser/ElementProcessors.py | shreyas/swalpa | 200c23a04e0a6a63b805705c9af15cec708b895a | [
"MIT"
] | null | null | null | Parser/ElementProcessors.py | shreyas/swalpa | 200c23a04e0a6a63b805705c9af15cec708b895a | [
"MIT"
] | null | null | null | # Copyright (c) 2016 Shreyas Kulkarni (shyran@gmail.com)
#
# 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,... | 34.452632 | 90 | 0.719829 | 410 | 3,273 | 5.692683 | 0.42439 | 0.037704 | 0.095973 | 0.041131 | 0.147386 | 0.077978 | 0.041131 | 0.041131 | 0 | 0 | 0 | 0.004637 | 0.209288 | 3,273 | 94 | 91 | 34.819149 | 0.897218 | 0.479682 | 0 | 0.390244 | 0 | 0 | 0.001248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0.02439 | 0.073171 | 0.02439 | 0.414634 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c025d50fcb9ae6e50bd9b8537f5e4055d28c1d | 7,694 | py | Python | oc-dvbobjects/DSMCC/BIOP/Message.py | hyungkyulee/dvbts-hbbtv | 1f2f0a9b248fce99144400fe3b8ec3486a119050 | [
"BSD-3-Clause"
] | 4 | 2020-05-09T10:03:03.000Z | 2021-09-27T09:17:54.000Z | opencaster/libs/dvbobjects/dvbobjects/DSMCC/BIOP/Message.py | hyungkyulee/dvbts-hbbtv | 1f2f0a9b248fce99144400fe3b8ec3486a119050 | [
"BSD-3-Clause"
] | 1 | 2017-12-14T23:03:55.000Z | 2017-12-14T23:03:55.000Z | opencaster/libs/dvbobjects/dvbobjects/DSMCC/BIOP/Message.py | hyungkyulee/dvbts-hbbtv | 1f2f0a9b248fce99144400fe3b8ec3486a119050 | [
"BSD-3-Clause"
] | 2 | 2017-12-14T22:24:31.000Z | 2021-02-26T14:54:59.000Z | # This file is part of the dvbobjects library.
#
# Copyright 2000-2001, GMD, Sankt Augustin
# -- German National Research Center for Information Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwar... | 31.925311 | 80 | 0.459449 | 645 | 7,694 | 5.351938 | 0.336434 | 0.024334 | 0.024334 | 0.02781 | 0.115006 | 0.070973 | 0.054751 | 0.054751 | 0.054751 | 0.054751 | 0 | 0.011605 | 0.406421 | 7,694 | 240 | 81 | 32.058333 | 0.744252 | 0.217962 | 0 | 0.34375 | 0 | 0 | 0.018649 | 0 | 0 | 0 | 0.004345 | 0 | 0.025 | 0 | null | null | 0 | 0.025 | 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 |
27c90fdc77240cfe251b9db4d791f290e4f9135b | 854 | py | Python | svc_kube_vision_opencvplus/extras/deluge/test/provenance_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 3 | 2018-06-22T07:55:51.000Z | 2021-06-21T19:18:16.000Z | svc_kube_vision_opencvplus/extras/deluge/test/provenance_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | null | null | null | svc_kube_vision_opencvplus/extras/deluge/test/provenance_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 1 | 2020-11-04T04:56:50.000Z | 2020-11-04T04:56:50.000Z | #!/usr/bin/python
from snap.pyglog import *
from snap.deluge import provenance
from snap.deluge import core
def test_PrintResourceProvenanceList():
#uri = 'maprfs://data/itergraph/tide_v12//sift//cbir/3cf541188f15713d6ebb2b9ff6badb8e//itergraph/0142f574ff8a1d0f2deaabb1622e84f8//phase002//merged_matches.pert'
uri... | 31.62963 | 163 | 0.772834 | 93 | 854 | 6.849462 | 0.494624 | 0.070644 | 0.102041 | 0.172684 | 0.390895 | 0.390895 | 0.390895 | 0.339089 | 0.216641 | 0 | 0 | 0.09247 | 0.113583 | 854 | 26 | 164 | 32.846154 | 0.749009 | 0.441452 | 0 | 0 | 0 | 0 | 0.241525 | 0.224576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0.2 | 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 |
27cce29e9230e450650739460d855ce6475982d9 | 1,733 | py | Python | postgresql-practice/postgres-sqlalchemy-core-practice.py | amgad01/relational-databases | 28042b61aa937a8d6cd243d011407d12c542098d | [
"MIT"
] | 1 | 2021-03-05T18:13:02.000Z | 2021-03-05T18:13:02.000Z | postgresql-practice/postgres-sqlalchemy-core-practice.py | amgad01/relational-databases | 28042b61aa937a8d6cd243d011407d12c542098d | [
"MIT"
] | null | null | null | postgresql-practice/postgres-sqlalchemy-core-practice.py | amgad01/relational-databases | 28042b61aa937a8d6cd243d011407d12c542098d | [
"MIT"
] | 1 | 2021-07-25T01:55:12.000Z | 2021-07-25T01:55:12.000Z | from sqlalchemy import create_engine
from sqlalchemy import Table, Column, String, MetaData
import os
password = os.environ.get('PASSWORD')
engine = create_engine(f'postgres://postgres:{password}@localhost/red30')
# start the engine and commit the changes by exiting
with engine.connect() as connection:
# load the ... | 40.302326 | 120 | 0.681477 | 208 | 1,733 | 5.480769 | 0.418269 | 0.078947 | 0.083333 | 0.042105 | 0.146491 | 0.081579 | 0.081579 | 0 | 0 | 0 | 0 | 0.034303 | 0.226197 | 1,733 | 42 | 121 | 41.261905 | 0.815809 | 0.096365 | 0 | 0 | 0 | 0 | 0.077714 | 0.029544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27d54ac3e4e6a951a5d349c7c99c288d9645dd8b | 413 | py | Python | singa_auto/admin/view/error_handlers.py | FeynmanDNA/singa-auto | e96982adc689335a323a5a32d03b23942e01d09f | [
"Apache-2.0"
] | 10 | 2020-04-28T16:54:59.000Z | 2021-12-07T02:37:16.000Z | singa_auto/admin/view/error_handlers.py | FeynmanDNA/singa-auto | e96982adc689335a323a5a32d03b23942e01d09f | [
"Apache-2.0"
] | 85 | 2020-04-15T22:47:21.000Z | 2021-03-08T09:42:39.000Z | singa_auto/admin/view/error_handlers.py | FeynmanDNA/singa-auto | e96982adc689335a323a5a32d03b23942e01d09f | [
"Apache-2.0"
] | 18 | 2020-04-10T12:13:17.000Z | 2022-03-21T09:18:34.000Z | import traceback
from flask import jsonify, Blueprint, g
from singa_auto.meta_store.meta_store import DuplicateModelNameError
errors_bp = Blueprint('errors', __name__)
@errors_bp.errorhandler(Exception)
def handle_error(error):
traceback.print_exc()
if type(error) == DuplicateModelNameError:
return j... | 27.533333 | 68 | 0.772397 | 47 | 413 | 6.531915 | 0.617021 | 0.058632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.133172 | 413 | 14 | 69 | 29.5 | 0.840782 | 0 | 0 | 0 | 0 | 0 | 0.089588 | 0.05569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27de1905f1e3cf83e6b87913e229dd6fae9ba3e2 | 2,495 | py | Python | tools/astgen.py | florimondmanca/fountain-lang | 7f573b844f264dec6a31c9ee1c988293e0aea6cb | [
"Apache-2.0"
] | null | null | null | tools/astgen.py | florimondmanca/fountain-lang | 7f573b844f264dec6a31c9ee1c988293e0aea6cb | [
"Apache-2.0"
] | 4 | 2021-10-01T16:46:04.000Z | 2021-10-02T14:01:45.000Z | tools/astgen.py | florimondmanca/fountain-lang | 7f573b844f264dec6a31c9ee1c988293e0aea6cb | [
"Apache-2.0"
] | null | null | null | """
Generate AST classes using metaprogramming.
"""
import argparse
import pathlib
def make_ast(groups: list[tuple[str, list[str]]]) -> str:
lines = [
"from dataclasses import dataclass",
"from typing import Any, Optional",
"",
"from .tokens import Token",
"",
]
f... | 28.033708 | 87 | 0.47014 | 235 | 2,495 | 4.902128 | 0.404255 | 0.036458 | 0.03125 | 0.041667 | 0.052083 | 0.052083 | 0 | 0 | 0 | 0 | 0 | 0.0013 | 0.383567 | 2,495 | 88 | 88 | 28.352273 | 0.747724 | 0.034068 | 0 | 0.191781 | 1 | 0 | 0.423397 | 0.019151 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.013699 | false | 0.027397 | 0.068493 | 0 | 0.09589 | 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 |
7e0810013ad534c159904fdfff2368886fe7097c | 288 | py | Python | djangocon/wsgi.py | chromakey/2016.djangocon.us | d3b82d0749312eecf7c8ac722147df016ee6a8df | [
"BSD-3-Clause"
] | 1 | 2021-01-03T00:59:02.000Z | 2021-01-03T00:59:02.000Z | djangocon/wsgi.py | chromakey/2016.djangocon.us | d3b82d0749312eecf7c8ac722147df016ee6a8df | [
"BSD-3-Clause"
] | 3 | 2018-03-20T13:52:55.000Z | 2018-03-20T13:53:30.000Z | djangocon/wsgi.py | chromakey/2016.djangocon.us | d3b82d0749312eecf7c8ac722147df016ee6a8df | [
"BSD-3-Clause"
] | 1 | 2019-05-28T01:39:17.000Z | 2019-05-28T01:39:17.000Z | import os
os.environ.setdefault("DEBUG", "0")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangocon.settings")
from django.core.wsgi import get_wsgi_application # noqa
from whitenoise.django import DjangoWhiteNoise # noqa
application = DjangoWhiteNoise(get_wsgi_application())
| 26.181818 | 69 | 0.805556 | 35 | 288 | 6.457143 | 0.514286 | 0.079646 | 0.168142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.09375 | 288 | 10 | 70 | 28.8 | 0.862069 | 0.03125 | 0 | 0 | 0 | 0 | 0.166667 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fd69c762bd9fc70a584db608fb39d08e182c6ba0 | 282 | py | Python | RequestDownloader.py | sdjmchattie/recipe-converter | 77f3675fa78de5af360c40e2f4251c7675e49543 | [
"Apache-2.0"
] | 3 | 2020-09-14T04:32:44.000Z | 2021-01-04T12:37:57.000Z | RequestDownloader.py | sdjmchattie/recipe-converter | 77f3675fa78de5af360c40e2f4251c7675e49543 | [
"Apache-2.0"
] | null | null | null | RequestDownloader.py | sdjmchattie/recipe-converter | 77f3675fa78de5af360c40e2f4251c7675e49543 | [
"Apache-2.0"
] | null | null | null | import requests
class RequestDownloader:
def __init__(self, url):
self.__url = url
self.__page = None
@property
def content(self):
if self.__page is None:
self.__page = requests.get(self.__url)
return self.__page.content
| 17.625 | 50 | 0.613475 | 33 | 282 | 4.757576 | 0.484848 | 0.203822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304965 | 282 | 15 | 51 | 18.8 | 0.80102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 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 |
fd70f677fbf1e92b17a412bd9e4255644b49ae38 | 5,455 | py | Python | nuzlockeai/scripts/ladder_run.py | VolundrAI/pokemon-nuzlocke-ai | 648f39cbe3b024d8ce0f5d83990c645d7215ebbb | [
"MIT"
] | 1 | 2022-02-04T07:11:05.000Z | 2022-02-04T07:11:05.000Z | nuzlockeai/scripts/ladder_run.py | VolundrAI/pokemon-nuzlocke-ai | 648f39cbe3b024d8ce0f5d83990c645d7215ebbb | [
"MIT"
] | null | null | null | nuzlockeai/scripts/ladder_run.py | VolundrAI/pokemon-nuzlocke-ai | 648f39cbe3b024d8ce0f5d83990c645d7215ebbb | [
"MIT"
] | null | null | null | from ..trainerai import GameAIPlayer, BestMovePlayer
from ..utils import PokeCache, build_random_team
from poke_env.player.random_player import RandomPlayer
from poke_env.server_configuration import ServerConfiguration
from poke_env.player_configuration import PlayerConfiguration
from poke_env.teambuilder.teambuilder i... | 47.025862 | 1,915 | 0.652796 | 580 | 5,455 | 6.005172 | 0.537931 | 0.012059 | 0.015791 | 0.015504 | 0.118863 | 0.09331 | 0.09331 | 0.082113 | 0.082113 | 0.082113 | 0 | 0.010687 | 0.193767 | 5,455 | 115 | 1,916 | 47.434783 | 0.781264 | 0 | 0 | 0.195652 | 0 | 0 | 0.359361 | 0.016719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032609 | 0.184783 | 0 | 0.217391 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd7ed8e0a071dd2ba7f426cbf64abeebb8825687 | 534 | py | Python | 2021/day6.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | 2021/day6.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | 2021/day6.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | from collections import deque
with open("day6.txt", "r") as f:
fish = list(map(int, f.readline().split(",")))
fish_ages = deque([0]*9)
for age in fish:
fish_ages[age] += 1
for _ in range(80):
new_fish = fish_ages[0]
fish_ages.rotate(-1)
fish_ages[6] += fish_ages[-1]
fish_ages[-1] = new_fish
... | 19.777778 | 50 | 0.623596 | 94 | 534 | 3.329787 | 0.361702 | 0.357827 | 0.115016 | 0.083067 | 0.492013 | 0.492013 | 0.492013 | 0.492013 | 0.492013 | 0.492013 | 0 | 0.053613 | 0.196629 | 534 | 26 | 51 | 20.538462 | 0.675991 | 0 | 0 | 0.444444 | 0 | 0 | 0.108614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.111111 | 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 |
fd7fa89d490c9c63f88904ae433dc932f05a0b0c | 1,109 | py | Python | hipchat/room.py | Khan/python-hipchat | dea111a3ae236c1895ac3e8d59b82b98bd0abc9b | [
"WTFPL"
] | 1 | 2019-04-23T21:50:08.000Z | 2019-04-23T21:50:08.000Z | hipchat/room.py | Khan/python-hipchat | dea111a3ae236c1895ac3e8d59b82b98bd0abc9b | [
"WTFPL"
] | null | null | null | hipchat/room.py | Khan/python-hipchat | dea111a3ae236c1895ac3e8d59b82b98bd0abc9b | [
"WTFPL"
] | 2 | 2019-02-14T08:13:33.000Z | 2019-04-23T21:47:48.000Z | from hipchat.connection import partial, call_hipchat, HipChatObject
class Room(HipChatObject):
sort = 'room'
class Message(HipChatObject):
sort = 'message'
class MessageSentStatus(HipChatObject):
sort = 'status'
def __init__(self, jsono):
self.jsono = jsono
self.status = jsono.get('... | 36.966667 | 138 | 0.617674 | 126 | 1,109 | 5.365079 | 0.293651 | 0.081361 | 0.133136 | 0.171598 | 0.368343 | 0.310651 | 0.310651 | 0.14497 | 0 | 0 | 0 | 0.004751 | 0.240757 | 1,109 | 29 | 139 | 38.241379 | 0.7981 | 0 | 0 | 0.181818 | 0 | 0 | 0.181244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.363636 | 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 |
fd80f5882bf19fe5f0db9b3682d11a280197039f | 2,110 | py | Python | api/server.py | osmlab/sf_building_height_import | 11bb0813cb8a85514683c95b4160230eb2a07e92 | [
"MIT"
] | 5 | 2016-10-26T22:41:01.000Z | 2018-07-03T23:51:30.000Z | api/server.py | bdon/sf_building_height_import | 11bb0813cb8a85514683c95b4160230eb2a07e92 | [
"MIT"
] | 30 | 2016-04-15T03:36:48.000Z | 2021-06-09T04:57:25.000Z | api/server.py | bdon/sf_building_height_import | 11bb0813cb8a85514683c95b4160230eb2a07e92 | [
"MIT"
] | 3 | 2016-11-28T05:27:17.000Z | 2016-12-10T08:25:02.000Z | from flask import Flask, request, Response, redirect
app = Flask(__name__)
import mercantile
import requests
import task
from io import BytesIO
from lxml import etree
import re
height_db = task.height_db()
@app.route("/api")
def status():
return "OK"
def bbox_from_import_url(url):
match = re.search("sfbuildinghe... | 31.492537 | 136 | 0.69763 | 339 | 2,110 | 4.179941 | 0.292035 | 0.00988 | 0.031052 | 0.038109 | 0.479181 | 0.437544 | 0.385321 | 0.385321 | 0.359915 | 0.359915 | 0 | 0.030172 | 0.120379 | 2,110 | 66 | 137 | 31.969697 | 0.733297 | 0.066825 | 0 | 0.290909 | 0 | 0.054545 | 0.224822 | 0.093591 | 0.036364 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163636 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fd871e1577bb70967ffb68851ae0532dad7da54d | 542 | py | Python | src/main/resources/pytz/zoneinfo/Africa/Mogadishu.py | TheEin/swagger-maven-plugin | cf93dce2d5c8d3534f4cf8c612b11e2d2313871b | [
"Apache-2.0"
] | 65 | 2015-11-14T13:46:01.000Z | 2021-08-14T05:54:04.000Z | lib/pytz/zoneinfo/Africa/Mogadishu.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 13 | 2016-03-31T20:00:17.000Z | 2021-08-20T14:52:31.000Z | lib/pytz/zoneinfo/Africa/Mogadishu.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 20 | 2015-03-18T08:41:37.000Z | 2020-12-18T02:58:30.000Z | '''tzinfo timezone information for Africa/Mogadishu.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Mogadishu(DstTzInfo):
'''Africa/Mogadishu timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/Mogadis... | 21.68 | 79 | 0.688192 | 82 | 542 | 4.463415 | 0.45122 | 0.122951 | 0.114754 | 0.163934 | 0.15847 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105727 | 0.162362 | 542 | 24 | 80 | 22.583333 | 0.700441 | 0.219557 | 0 | 0.125 | 0 | 0 | 0.06326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.4375 | 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 |
fd8c01d5e821197b30712b083b6d2044c123da83 | 279 | py | Python | toki/notes/urls.py | elnikej/django-keep-a-note | 7f895e41981ad1fb9d9d4bcff84bce647e4c806f | [
"MIT"
] | 17 | 2017-08-15T06:39:06.000Z | 2021-04-26T11:49:24.000Z | toki/notes/urls.py | elnikej/django-keep-a-note | 7f895e41981ad1fb9d9d4bcff84bce647e4c806f | [
"MIT"
] | 2 | 2017-08-15T06:42:36.000Z | 2018-07-25T05:16:02.000Z | toki/notes/urls.py | elnikej/django-keep-a-note | 7f895e41981ad1fb9d9d4bcff84bce647e4c806f | [
"MIT"
] | 9 | 2018-04-29T08:09:58.000Z | 2021-05-01T04:02:55.000Z | from django.conf.urls import include, url
from django.contrib import admin
from notes.views import index_view, add_note, add_tag
urlpatterns = [
url(r'^$', index_view, name='index'),
url(r'^addnote/', add_note, name='addnote'),
url(r'^addtag/', add_tag, name='addtag'),
] | 27.9 | 53 | 0.709677 | 43 | 279 | 4.465116 | 0.488372 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125448 | 279 | 10 | 54 | 27.9 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.132143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fd96a644ef312471eeadf662014c16f6cb8acaa1 | 7,472 | py | Python | pyccl/pk2d.py | timothydmorton/CCL | 46692a38afd249946ac004cec391f47fd7c34f63 | [
"BSD-3-Clause"
] | null | null | null | pyccl/pk2d.py | timothydmorton/CCL | 46692a38afd249946ac004cec391f47fd7c34f63 | [
"BSD-3-Clause"
] | 1 | 2020-07-28T12:22:35.000Z | 2020-07-28T12:22:35.000Z | pyccl/pk2d.py | timothydmorton/CCL | 46692a38afd249946ac004cec391f47fd7c34f63 | [
"BSD-3-Clause"
] | null | null | null | from . import ccllib as lib
from .pyutils import check
import numpy as np
class Pk2D(object):
"""A power spectrum class holding the information needed to reconstruct an
arbitrary function of wavenumber and scale factor.
Args:
pkfunc (:obj:`function`): a function returning a floating point
... | 49.157895 | 79 | 0.579631 | 1,032 | 7,472 | 4.111434 | 0.238372 | 0.058214 | 0.045251 | 0.025454 | 0.254773 | 0.212114 | 0.16592 | 0.128918 | 0.121141 | 0.103229 | 0 | 0.006212 | 0.353721 | 7,472 | 151 | 80 | 49.483444 | 0.872437 | 0.582843 | 0 | 0.118644 | 0 | 0 | 0.070346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.050847 | 0.050847 | 0 | 0.135593 | 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 |
fd98894e48c5274de68ecdce6a31e1b1392221aa | 8,081 | py | Python | helpers.py | ahmed-ghaf-404/Chess-Level-Guesser | d05db08b9fefade5c65c12bdc93615518ff6eda7 | [
"MIT"
] | null | null | null | helpers.py | ahmed-ghaf-404/Chess-Level-Guesser | d05db08b9fefade5c65c12bdc93615518ff6eda7 | [
"MIT"
] | null | null | null | helpers.py | ahmed-ghaf-404/Chess-Level-Guesser | d05db08b9fefade5c65c12bdc93615518ff6eda7 | [
"MIT"
] | null | null | null | '''
* @author Ahmed Alghafri
* @email alghaf.ahmd@gmail.com
* @create date 01-01-2022 17:03:09
* @modify date 01-01-2022 17:03:09
* @desc This code generates a dataset containing data of chess games played on lichess.org
'''
import pandas as pd
import time
from pandas.core.frame import DataFrame
import constants... | 40.813131 | 336 | 0.543373 | 962 | 8,081 | 4.474012 | 0.245322 | 0.043448 | 0.042286 | 0.051348 | 0.230716 | 0.201673 | 0.144981 | 0.015799 | 0 | 0 | 0 | 0.011036 | 0.338448 | 8,081 | 197 | 337 | 41.020305 | 0.794052 | 0.287836 | 0 | 0.074468 | 1 | 0 | 0.1531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0 | 0.085106 | 0 | 0.191489 | 0.06383 | 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 |
fda0d8bb82f18e5d92a93c249593e272ae30cc48 | 791 | py | Python | raspberry/test_pc_bluetooth.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 16 | 2015-04-04T15:26:01.000Z | 2019-10-15T16:13:03.000Z | raspberry/test_pc_bluetooth.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | null | null | null | raspberry/test_pc_bluetooth.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 7 | 2015-10-12T21:23:12.000Z | 2021-10-13T02:41:25.000Z | from bluetooth_communication import AndroidAPI, AndroidThread, AndroidExploreRunThread
from pc_communication import PcThread, PcExploreRunThread
from serial_stub import SerialAPIStub
__author__ = 'Danyang'
if __name__=="__main__":
print "Executing main flow"
serial_api = SerialAPIStub()
android_api = Andr... | 39.55 | 101 | 0.792668 | 92 | 791 | 6.336957 | 0.336957 | 0.102916 | 0.109777 | 0.06175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126422 | 791 | 20 | 102 | 39.55 | 0.843705 | 0 | 0 | 0 | 0 | 0 | 0.112374 | 0.026515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fda853dd5c5db46237014c2d91ace0ca58dd2c8b | 3,182 | py | Python | src/pyams_zmi/zmi/viewlet/header.py | Py-AMS/pyams-zmi | 0073d12062728efad3dc2b5cb40b0f75eacaaa1d | [
"ZPL-2.1"
] | null | null | null | src/pyams_zmi/zmi/viewlet/header.py | Py-AMS/pyams-zmi | 0073d12062728efad3dc2b5cb40b0f75eacaaa1d | [
"ZPL-2.1"
] | null | null | null | src/pyams_zmi/zmi/viewlet/header.py | Py-AMS/pyams-zmi | 0073d12062728efad3dc2b5cb40b0f75eacaaa1d | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2015-2020 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 39.283951 | 93 | 0.770585 | 360 | 3,182 | 6.658333 | 0.369444 | 0.037547 | 0.025031 | 0.027534 | 0.037547 | 0.037547 | 0.037547 | 0 | 0 | 0 | 0 | 0.004435 | 0.149591 | 3,182 | 80 | 94 | 39.775 | 0.881375 | 0.260214 | 0 | 0 | 0 | 0 | 0.063526 | 0.021175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.27907 | 0 | 0.604651 | 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 |
fda96c96878c348bcc6dff1c0f0d8ddd76cf1617 | 2,320 | py | Python | flask_server/localfile.py | ctwardy/python_ocr_tutorial | 5d06944f23c4bc73e4ffca7c8783fafdc9904dae | [
"MIT"
] | 4 | 2018-10-11T23:18:59.000Z | 2020-01-24T15:34:36.000Z | flask_server/localfile.py | ctwardy/python_ocr_tutorial | 5d06944f23c4bc73e4ffca7c8783fafdc9904dae | [
"MIT"
] | null | null | null | flask_server/localfile.py | ctwardy/python_ocr_tutorial | 5d06944f23c4bc73e4ffca7c8783fafdc9904dae | [
"MIT"
] | 3 | 2018-11-28T09:15:39.000Z | 2020-02-23T19:59:17.000Z | # -*- coding: utf-8 -*-
"""Extend requests.get() to handle local files.
Using ssokolow's response to:
https://stackoverflow.com/questions/10123929/python-requests-fetch-a-file-from-a-local-url
"""
import requests
import os, sys
if sys.version_info.major < 3:
from urllib import url2pathname
else:
... | 30.526316 | 98 | 0.613362 | 282 | 2,320 | 5.017731 | 0.478723 | 0.016961 | 0.038163 | 0.024028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022592 | 0.275 | 2,320 | 75 | 99 | 30.933333 | 0.818668 | 0.275431 | 0 | 0.071429 | 0 | 0 | 0.069202 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.071429 | false | 0.02381 | 0.095238 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdb02483e257055aef6c35969d81a12fe0eb3606 | 1,806 | py | Python | prettyqt/widgets/gesture.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/widgets/gesture.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/widgets/gesture.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from __future__ import annotations
from typing import Literal
from prettyqt import constants, core, widgets
from prettyqt.qt import QtWidgets
from prettyqt.utils import InvalidParamError, bidict
GESTURE_CANCEL_POLICY = bidict(
none=QtWidgets.QGesture.GestureCancelPolicy.CancelNone,
all_in_context=QtWidgets.... | 27.784615 | 77 | 0.692691 | 184 | 1,806 | 6.565217 | 0.326087 | 0.129139 | 0.188742 | 0.057119 | 0.048013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225914 | 1,806 | 64 | 78 | 28.21875 | 0.864092 | 0.174419 | 0 | 0 | 0 | 0 | 0.019202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.185185 | 0.037037 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdb09dc7d6ffa1002534964922daa0913646d750 | 847 | py | Python | packages/pyright-internal/src/tests/samples/genericTypes31.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | packages/pyright-internal/src/tests/samples/genericTypes31.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | packages/pyright-internal/src/tests/samples/genericTypes31.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | # This sample tests the type checker's "type var scoring" mechanism
# whereby it attempts to solve type variables with the simplest
# possible solution.
from typing import Union, List, TypeVar, Type
T = TypeVar("T")
def to_list1(obj_type: Type[T], obj: Union[List[T], T]) -> List[T]:
return []
def... | 27.322581 | 68 | 0.694215 | 136 | 847 | 4.213235 | 0.419118 | 0.034904 | 0.031414 | 0.041885 | 0.069808 | 0.069808 | 0 | 0 | 0 | 0 | 0 | 0.014749 | 0.199528 | 847 | 30 | 69 | 28.233333 | 0.830383 | 0.433294 | 0 | 0.181818 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
fdc2c61d78b9b57ab3531260ee05e247be72d051 | 592 | py | Python | old/python/network.py | JSeam2/IsoGraph | 96faf0b61ff9bf7f725cda055e89b26261338376 | [
"MIT"
] | null | null | null | old/python/network.py | JSeam2/IsoGraph | 96faf0b61ff9bf7f725cda055e89b26261338376 | [
"MIT"
] | null | null | null | old/python/network.py | JSeam2/IsoGraph | 96faf0b61ff9bf7f725cda055e89b26261338376 | [
"MIT"
] | null | null | null | import numpy as np
class Network(object):
def __init__(self, layers, input_size):
"""
Indicate the number of layers the network has
input size : if matrix is n x n, input_size is n
"""
self.layers = layers
self.input_size = input_size
# create randomized thetas for each layer
... | 21.925926 | 58 | 0.614865 | 80 | 592 | 4.4 | 0.575 | 0.153409 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.307432 | 592 | 26 | 59 | 22.769231 | 0.853659 | 0.170608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
fddb08ee63dadca54e50db4455426fe86b7d7562 | 1,262 | py | Python | src/main.py | AlsoSprachZarathushtra/PDF_Form_Recognition | 7dbc2a2d15071268dc7b08fbcdba61b531d7f1df | [
"Apache-2.0"
] | 19 | 2019-04-11T07:40:59.000Z | 2021-11-23T01:52:34.000Z | src/main.py | AlsoSprachZarathushtra/PDF_Form_Recognition | 7dbc2a2d15071268dc7b08fbcdba61b531d7f1df | [
"Apache-2.0"
] | null | null | null | src/main.py | AlsoSprachZarathushtra/PDF_Form_Recognition | 7dbc2a2d15071268dc7b08fbcdba61b531d7f1df | [
"Apache-2.0"
] | 6 | 2019-06-01T03:03:41.000Z | 2021-02-23T14:06:49.000Z | # -*- coding: utf-8 -*-
from form_recognition import formRecognition
from OCR import OCR
from preprocessor import select_imgs_with_form, correct_img_bias
from PIL import Image
from pdf2img import pdf2img
import cv2
import argparse
import logging
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, enc... | 26.291667 | 66 | 0.652139 | 163 | 1,262 | 4.840491 | 0.447853 | 0.035488 | 0.035488 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.245642 | 1,262 | 47 | 67 | 26.851064 | 0.822479 | 0.078447 | 0 | 0 | 0 | 0 | 0.040552 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.361111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fde0e8c3b8ce884382b8051585e14b517020bd02 | 9,514 | py | Python | generator/generate_tiles.py | kretep/pn-viewer | 7ac3acd030b9a70d29eea332c2ed39325f7996f6 | [
"BSD-3-Clause"
] | null | null | null | generator/generate_tiles.py | kretep/pn-viewer | 7ac3acd030b9a70d29eea332c2ed39325f7996f6 | [
"BSD-3-Clause"
] | null | null | null | generator/generate_tiles.py | kretep/pn-viewer | 7ac3acd030b9a70d29eea332c2ed39325f7996f6 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Peter Kok, Sharkwing
# All rights reserved.
# See COPYRIGHT.txt for details.
from PIL import Image
import sys
import json
import os
def main(args):
rel_path = args[1]
template_path = 'single_image_template.js'
if len(args) > 2:
template_path = args[2]
if os.path.s... | 38.518219 | 141 | 0.527328 | 968 | 9,514 | 5.053719 | 0.196281 | 0.019624 | 0.036795 | 0.017171 | 0.135732 | 0.112633 | 0.057645 | 0.028618 | 0.015944 | 0 | 0 | 0.012348 | 0.370086 | 9,514 | 246 | 142 | 38.674797 | 0.803938 | 0.086189 | 0 | 0.113514 | 0 | 0 | 0.075333 | 0.002852 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021622 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fde43318c500d5c4bf6e833b3ede43115dfca879 | 605 | py | Python | engram/tests/utils_test.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | engram/tests/utils_test.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | 36 | 2015-01-24T23:12:10.000Z | 2015-07-12T19:01:44.000Z | engram/tests/utils_test.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import unittest
import os
import sys
import requests
import utils_test
from multiprocessing import Process
import time
sys.path.append(os.path.abspath('engram'))
import engram
class EngramTestCase(unittest.TestCase):
def setUp(self):
self.process = Process(target = engram.cr... | 11.634615 | 74 | 0.704132 | 79 | 605 | 5.379747 | 0.620253 | 0.103529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.180165 | 605 | 51 | 75 | 11.862745 | 0.852823 | 0.034711 | 0 | 0 | 0 | 0 | 0.125214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.5 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.