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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c99c563ea3f8b3d953eca4f13e3180d1d806d45 | 1,212 | py | Python | SentiWordNetforsentiment.py | dienhuynhphong/RAM-W | 3404112af4f60d3d6f963641f5f2cb3a3ecedf72 | [
"MIT"
] | 1 | 2020-01-10T11:17:09.000Z | 2020-01-10T11:17:09.000Z | SentiWordNetforsentiment.py | dienhuynhphong/RAM-W | 3404112af4f60d3d6f963641f5f2cb3a3ecedf72 | [
"MIT"
] | null | null | null | SentiWordNetforsentiment.py | dienhuynhphong/RAM-W | 3404112af4f60d3d6f963641f5f2cb3a3ecedf72 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
from nltk.corpus import stopwords
import codes
def ReadFileSentiWordNet(filename):
senti_word = []
senti_pos = []
senti_neg = []
file = codes.open(filename,'r','utf-8')
full_data = file.read().splitlines()
for... | 32.756757 | 87 | 0.593234 | 165 | 1,212 | 4.187879 | 0.478788 | 0.065123 | 0.060781 | 0.069465 | 0.11288 | 0.072359 | 0 | 0 | 0 | 0 | 0 | 0.013746 | 0.279703 | 1,212 | 36 | 88 | 33.666667 | 0.777778 | 0.14769 | 0 | 0 | 0 | 0 | 0.088979 | 0.022245 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c9da6a98fe2479e9be62859ac2eb55762f3569b | 5,642 | py | Python | dict/util.py | meyersbs/phonetta-cli | 444e0cc7c95aed1c8cb3a2acf29e2914feaa492b | [
"MIT"
] | null | null | null | dict/util.py | meyersbs/phonetta-cli | 444e0cc7c95aed1c8cb3a2acf29e2914feaa492b | [
"MIT"
] | 1 | 2016-08-29T19:31:52.000Z | 2016-08-29T19:31:52.000Z | dict/util.py | meyersbs/phonetta-cli | 444e0cc7c95aed1c8cb3a2acf29e2914feaa492b | [
"MIT"
] | null | null | null | #################################################################################
# @PROJECT: PhonTA - Phonetic Transcription Assistant #
# @VERSION: #
# @AUTHOR: Benjamin Meyers #
# @EMAIL: ben@lionlogic.org #
# @LICENSE: MIT #
############################################################... | 37.118421 | 125 | 0.552641 | 763 | 5,642 | 4.001311 | 0.31979 | 0.072388 | 0.027841 | 0.035375 | 0.204062 | 0.173272 | 0.173272 | 0.144448 | 0.144448 | 0.144448 | 0 | 0.092688 | 0.175824 | 5,642 | 151 | 126 | 37.364238 | 0.563871 | 0.04307 | 0 | 0.243902 | 0 | 0.01626 | 0.275827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01626 | 0.00813 | null | null | 0.056911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2ca5afeb7edcfab9676a023f1b9d0badaf58ac36 | 2,287 | py | Python | 139. Word Break.py | SreenathMopuri/LeetcodeProblemSolutionsInPython | 8268d55224e6865a5e423f2315d64d84a94bdac6 | [
"MIT"
] | null | null | null | 139. Word Break.py | SreenathMopuri/LeetcodeProblemSolutionsInPython | 8268d55224e6865a5e423f2315d64d84a94bdac6 | [
"MIT"
] | null | null | null | 139. Word Break.py | SreenathMopuri/LeetcodeProblemSolutionsInPython | 8268d55224e6865a5e423f2315d64d84a94bdac6 | [
"MIT"
] | null | null | null | #139. Word Break
"""
Leetcode link: https://leetcode.com/problems/word-break/
Solution:
for each prefix, if prefix is in dict and wordbreak(remaining str)=True, then
return True, cache result of wordbreak;
"""
Python
------
class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> bool:
dp = [Fal... | 30.092105 | 125 | 0.494534 | 291 | 2,287 | 3.886598 | 0.295533 | 0.013263 | 0.013263 | 0.035367 | 0.120248 | 0.070734 | 0.070734 | 0 | 0 | 0 | 0 | 0.014956 | 0.356799 | 2,287 | 75 | 126 | 30.493333 | 0.753909 | 0.006559 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ca6e4dcd1e5dcf3021b92008838ff0b0c1da4aa | 21,569 | py | Python | raspirobot.py | AndrewNatoli/AN-PonderBot | a81d9cc6ed1e79e0d58e0f3d25ea0226b186b296 | [
"MIT"
] | null | null | null | raspirobot.py | AndrewNatoli/AN-PonderBot | a81d9cc6ed1e79e0d58e0f3d25ea0226b186b296 | [
"MIT"
] | null | null | null | raspirobot.py | AndrewNatoli/AN-PonderBot | a81d9cc6ed1e79e0d58e0f3d25ea0226b186b296 | [
"MIT"
] | null | null | null | """
Contains logic for bump switches, sonar and motor control
"""
__author__ = 'andrew'
import os
import threading
import config
from rrb2 import *
from time import sleep
from enum import Enum
from random import randint
bacon = True
class RaspiRobot(threading.Thread):
class Incidents(Enum):
nothing ... | 44.289528 | 125 | 0.458482 | 1,983 | 21,569 | 4.930408 | 0.154312 | 0.022093 | 0.053186 | 0.07712 | 0.567659 | 0.493505 | 0.428761 | 0.387951 | 0.327196 | 0.282602 | 0 | 0.037551 | 0.475265 | 21,569 | 486 | 126 | 44.380658 | 0.826294 | 0.147527 | 0 | 0.570175 | 0 | 0 | 0.041389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002924 | 0.020468 | null | null | 0.081871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2caaf9b3d7072dd6a3ddf81fccc22ec2210eea51 | 7,221 | py | Python | qtoggleserver/mppsolar/commands/qpigs.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | 1 | 2021-11-30T01:04:37.000Z | 2021-11-30T01:04:37.000Z | qtoggleserver/mppsolar/commands/qpigs.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null | qtoggleserver/mppsolar/commands/qpigs.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null |
from .base import Command
class QPIGS(Command):
REQUEST_FMT = 'QPIGS'
RESPONSE_FMT = (
'{grid_voltage:f} '
'{grid_frequency:f} '
'{ac_output_voltage:f} '
'{ac_output_frequency:f} '
'{ac_output_apparent_power:f} '
'{ac_output_active_power:f} '
'{ac_outp... | 33.901408 | 106 | 0.5887 | 830 | 7,221 | 4.663855 | 0.10241 | 0.078533 | 0.0465 | 0.065099 | 0.663653 | 0.60527 | 0.531387 | 0.489796 | 0.489796 | 0.471971 | 0 | 0.001525 | 0.273508 | 7,221 | 212 | 107 | 34.061321 | 0.736371 | 0 | 0 | 0.537688 | 0 | 0 | 0.615789 | 0.327839 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005025 | 0 | 0.065327 | 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 |
2cab9a135f4a08773eb2f3d1204e8fae4e6fd58e | 173 | py | Python | stadistic_basic/calculoz.py | nathramk/stadistic_basic | 6512a3a75459fdd49f9cceacb2b1a97aa8ac1443 | [
"MIT"
] | null | null | null | stadistic_basic/calculoz.py | nathramk/stadistic_basic | 6512a3a75459fdd49f9cceacb2b1a97aa8ac1443 | [
"MIT"
] | null | null | null | stadistic_basic/calculoz.py | nathramk/stadistic_basic | 6512a3a75459fdd49f9cceacb2b1a97aa8ac1443 | [
"MIT"
] | null | null | null |
class CalculoZ():
def calcular_z(self, n1, n2, x, y, ux, uy, ox, oy):
arriba = (x-y)-(ux-uy)
abajo = (((ox)**2/(n1))+((oy)**2/(n2)))**0.5
z = arriba/abajo
return z | 24.714286 | 52 | 0.531792 | 33 | 173 | 2.757576 | 0.606061 | 0.043956 | 0.087912 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 0.184971 | 173 | 7 | 53 | 24.714286 | 0.588652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 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 |
2cb066f9fcd79364137157d2b433395f23d3614f | 1,046 | py | Python | elram/repository/commands.py | Bgeninatti/elram | dd72c1eb9329fda375c332f802e575af2364f4eb | [
"MIT"
] | null | null | null | elram/repository/commands.py | Bgeninatti/elram | dd72c1eb9329fda375c332f802e575af2364f4eb | [
"MIT"
] | null | null | null | elram/repository/commands.py | Bgeninatti/elram | dd72c1eb9329fda375c332f802e575af2364f4eb | [
"MIT"
] | null | null | null | import logging
from elram.config import load_config
from elram.repository.models import User, database, Event, Attendance, Account, Transaction
CONFIG = load_config()
logger = logging.getLogger('main')
def populate_db(data):
models_mapping = {
'users': User,
'accounts': Account,
}
for m... | 30.764706 | 91 | 0.669216 | 129 | 1,046 | 5.224806 | 0.410853 | 0.089021 | 0.065282 | 0.097923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221797 | 1,046 | 33 | 92 | 31.69697 | 0.82801 | 0 | 0 | 0 | 0 | 0 | 0.06979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.115385 | 0 | 0.230769 | 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 |
2cb4996fdcb2504581c341f6da47a7ce42410a93 | 2,960 | py | Python | django_teams/models.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | django_teams/models.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | django_teams/models.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | # This is where the models go!
from django.db import models
from django.urls import reverse
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
# Using the user: user = models.ForeignKey(settings.AUTH_USER_MODEL)
C... | 33.258427 | 114 | 0.673311 | 362 | 2,960 | 5.312155 | 0.298343 | 0.045762 | 0.029121 | 0.032761 | 0.24233 | 0.214249 | 0.214249 | 0.171607 | 0.171607 | 0.130005 | 0 | 0.008666 | 0.22027 | 2,960 | 88 | 115 | 33.636364 | 0.824523 | 0.032095 | 0 | 0.138462 | 0 | 0 | 0.05905 | 0.008036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.061538 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2cb4c56e5e03b1ea4927d72f1d2cb288b266629b | 1,909 | py | Python | tests/test_09_0_openpyxl.py | simkimsia/ug-read-write-excel-using-python | ac84ca5aac3a71700e8f63a64c5b9bdd58df5804 | [
"MIT"
] | 1 | 2018-03-31T07:39:08.000Z | 2018-03-31T07:39:08.000Z | tests/test_09_0_openpyxl.py | simkimsia/ug-read-write-excel-using-python | ac84ca5aac3a71700e8f63a64c5b9bdd58df5804 | [
"MIT"
] | 11 | 2018-03-01T07:47:06.000Z | 2018-03-23T06:29:04.000Z | tests/test_09_0_openpyxl.py | simkimsia/ug-read-write-excel-using-python | ac84ca5aac3a71700e8f63a64c5b9bdd58df5804 | [
"MIT"
] | 1 | 2018-02-28T15:05:22.000Z | 2018-02-28T15:05:22.000Z | from openpyxl.styles import colors, Font
from examples.c09_0_font_styles.openpyxl import index
from openpyxl import Workbook
from base_test_cases import ExcelTest
class TestOpenPyXLFontStyles(ExcelTest):
def test_font_color(self):
wb = Workbook()
ws = wb.active
a1 = ws['A1']
a1_fo... | 34.709091 | 79 | 0.640126 | 244 | 1,909 | 4.79918 | 0.237705 | 0.102477 | 0.159693 | 0.197267 | 0.333903 | 0.175064 | 0.125534 | 0.125534 | 0.125534 | 0.125534 | 0 | 0.036749 | 0.258774 | 1,909 | 54 | 80 | 35.351852 | 0.790813 | 0 | 0 | 0.244898 | 0 | 0 | 0.045574 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 1 | 0.061224 | false | 0 | 0.081633 | 0 | 0.163265 | 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 |
2cbbdf24663939d6ca9475cf1b25ac1cdd725ccf | 262 | py | Python | tests/test_database.py | reline/nolanbot | 2f46acb8d38363fbad70249a6d7df99c5feeb95c | [
"Apache-2.0"
] | 1 | 2021-05-28T08:16:20.000Z | 2021-05-28T08:16:20.000Z | tests/test_database.py | reline/nolanbot | 2f46acb8d38363fbad70249a6d7df99c5feeb95c | [
"Apache-2.0"
] | 4 | 2021-12-01T06:13:50.000Z | 2022-01-05T03:29:53.000Z | tests/test_database.py | reline/nolanbot | 2f46acb8d38363fbad70249a6d7df99c5feeb95c | [
"Apache-2.0"
] | 2 | 2021-05-24T21:54:34.000Z | 2021-12-01T03:28:19.000Z | import unittest
from database import Database
class TestDatabase(unittest.TestCase):
def test_smoke(self):
database = Database()
database.fetch_all_cars()
database.query_cars("miata")
if __name__ == '__main__':
unittest.main() | 20.153846 | 38 | 0.69084 | 29 | 262 | 5.827586 | 0.655172 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209924 | 262 | 13 | 39 | 20.153846 | 0.816425 | 0 | 0 | 0 | 0 | 0 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
2cbda0e104b69355967974f1e0368016680b2402 | 3,447 | py | Python | datablox_framework/datablox_framework/fileserver_wsgi.py | mpi-sws-rse/datablox | 93af071e5f8a68dc83df1700ed657bd64aca8849 | [
"Apache-2.0"
] | null | null | null | datablox_framework/datablox_framework/fileserver_wsgi.py | mpi-sws-rse/datablox | 93af071e5f8a68dc83df1700ed657bd64aca8849 | [
"Apache-2.0"
] | null | null | null | datablox_framework/datablox_framework/fileserver_wsgi.py | mpi-sws-rse/datablox | 93af071e5f8a68dc83df1700ed657bd64aca8849 | [
"Apache-2.0"
] | null | null | null |
"""this is a version of the fileserver that works with wsgi (eg. gunicorn)"""
import os
import os.path
import urllib
import urlparse
import sys
import logging
from random import choice, randint
import string
import fcntl
logger = logging.getLogger("gunicorn.error")
DEBUG=True
# if we're debugging stuff, we log stac... | 28.725 | 88 | 0.678271 | 507 | 3,447 | 4.475345 | 0.327416 | 0.015866 | 0.01234 | 0.031732 | 0.2803 | 0.180696 | 0.168356 | 0.141913 | 0.141913 | 0.141913 | 0 | 0.011355 | 0.208007 | 3,447 | 119 | 89 | 28.966387 | 0.81978 | 0.024949 | 0 | 0.202128 | 0 | 0 | 0.173714 | 0.008522 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | 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 |
2ccd8e6ef691488ecfa884f357f99a5b2723d172 | 1,058 | py | Python | app/apps/product/migrations/0001_initial.py | tonyguesswho/jumga | fdcfc437578d48489fea2d3ab2f7c8711b6b231c | [
"MIT"
] | null | null | null | app/apps/product/migrations/0001_initial.py | tonyguesswho/jumga | fdcfc437578d48489fea2d3ab2f7c8711b6b231c | [
"MIT"
] | null | null | null | app/apps/product/migrations/0001_initial.py | tonyguesswho/jumga | fdcfc437578d48489fea2d3ab2f7c8711b6b231c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-05 20:37
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('seller', '0003_auto_20210105_2035'),
]
operations = [
migrations.CreateMode... | 34.129032 | 114 | 0.60586 | 113 | 1,058 | 5.539823 | 0.619469 | 0.038339 | 0.044728 | 0.070288 | 0.089457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048408 | 0.258034 | 1,058 | 30 | 115 | 35.266667 | 0.749045 | 0.042533 | 0 | 0 | 1 | 0 | 0.102868 | 0.02275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 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 |
e2be5d1e292493f8ff6ce862623a46d198e64172 | 611 | py | Python | my_packages/DepthProjection/DepthProjectionModule.py | PlanNoa/video_super_resolution | 534e6e6b55d652c61306df4bc11e83a456855dd4 | [
"MIT"
] | 6 | 2020-05-25T08:17:34.000Z | 2021-08-17T20:22:12.000Z | my_packages/DepthProjection/DepthProjectionModule.py | PlanNoa/video_super_resolution | 534e6e6b55d652c61306df4bc11e83a456855dd4 | [
"MIT"
] | null | null | null | my_packages/DepthProjection/DepthProjectionModule.py | PlanNoa/video_super_resolution | 534e6e6b55d652c61306df4bc11e83a456855dd4 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from utils.tools import transpose1323
from my_packages.DepthProjection.models.HG_model import HGModel
class DepthProjectionModule(nn.Module):
def __init__(self):
super(DepthProjectionModule, self).__init__()
self.model = HGModel("my_packages/DepthProjection/pretr... | 33.944444 | 100 | 0.695581 | 79 | 611 | 5.202532 | 0.518987 | 0.065693 | 0.121655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.194763 | 611 | 18 | 101 | 33.944444 | 0.79878 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e2cd432d5f3a58f4dcc1510bb209682c4c792f8c | 1,068 | py | Python | Solutions/0012.intToRoman.py | lyhshang/LeetCode-Solutions | ecd4f193567bf87c9805f5ee871db9a7e1f3e9df | [
"Apache-2.0"
] | null | null | null | Solutions/0012.intToRoman.py | lyhshang/LeetCode-Solutions | ecd4f193567bf87c9805f5ee871db9a7e1f3e9df | [
"Apache-2.0"
] | null | null | null | Solutions/0012.intToRoman.py | lyhshang/LeetCode-Solutions | ecd4f193567bf87c9805f5ee871db9a7e1f3e9df | [
"Apache-2.0"
] | null | null | null | class Solution:
def intToRoman(self, num: int) -> str:
res = ""
s = ['I', 'V', 'X', 'L', 'C', 'D', 'M']
index = 0
while num > 0:
x = num % 10
if x < 5:
if x == 4:
temp = s[index] + s[index + 1]
else:
... | 28.105263 | 50 | 0.333333 | 104 | 1,068 | 3.346154 | 0.394231 | 0.12069 | 0.143678 | 0.063218 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051793 | 0.529963 | 1,068 | 37 | 51 | 28.864865 | 0.641434 | 0 | 0 | 0.2 | 0 | 0 | 0.031835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.085714 | 0.028571 | 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 |
e2cf9760967e2df35d5cef310a3ff37b69d0eea4 | 20,068 | py | Python | youtube_dl/extractor/showuptv.py | wesson09/youtube-dl | 9463b52a600662fe3b67c90f7fbf68ca709c5705 | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/showuptv.py | wesson09/youtube-dl | 9463b52a600662fe3b67c90f7fbf68ca709c5705 | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/showuptv.py | wesson09/youtube-dl | 9463b52a600662fe3b67c90f7fbf68ca709c5705 | [
"Unlicense"
] | 1 | 2021-09-23T11:03:21.000Z | 2021-09-23T11:03:21.000Z |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_HTTPError
from ..utils import (
dict_get,
ExtractorError,
int_or_none,
js_to_json,
parse_iso8601,
)
from ..downloader.external import (
WebSocketFD,
)
from threadi... | 47.107981 | 1,170 | 0.534682 | 1,972 | 20,068 | 5.337221 | 0.303245 | 0.00266 | 0.011116 | 0.009311 | 0.364181 | 0.31753 | 0.299287 | 0.286271 | 0.286271 | 0.272779 | 0 | 0.090671 | 0.29709 | 20,068 | 425 | 1,171 | 47.218824 | 0.655466 | 0.189605 | 0 | 0.349835 | 0 | 0.059406 | 0.385902 | 0.173631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049505 | false | 0.009901 | 0.029703 | 0.006601 | 0.108911 | 0.039604 | 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 |
e2d048f86f09d3fd0597ab05d33a74add8794869 | 4,239 | py | Python | md5_util.py | weiwei11/wind | 4322125ec7c66b33884b0886a98e52afdeda0ec9 | [
"MIT"
] | null | null | null | md5_util.py | weiwei11/wind | 4322125ec7c66b33884b0886a98e52afdeda0ec9 | [
"MIT"
] | null | null | null | md5_util.py | weiwei11/wind | 4322125ec7c66b33884b0886a98e52afdeda0ec9 | [
"MIT"
] | null | null | null | # Author: weiwei
import os
import glob
from hashlib import md5
def generate_str_md5(s: str, encoding='utf-8'):
"""
Generate md5 str for str object
:param s: str
:param encoding: str encoding, default is 'utf-8'
:return: md5 of str
>>> s = 'abcdefghijklmnopqrstuvwxyz'
>>> generate_str_md5... | 30.941606 | 112 | 0.679877 | 538 | 4,239 | 5.076208 | 0.189591 | 0.028561 | 0.052728 | 0.027462 | 0.40022 | 0.338704 | 0.178323 | 0.15855 | 0.138777 | 0.138777 | 0 | 0.115731 | 0.188724 | 4,239 | 136 | 113 | 31.169118 | 0.678395 | 0.553668 | 0 | 0 | 1 | 0 | 0.086795 | 0.024179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.102564 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2d425940c618c6c9a05aca9393cba0054a90f27 | 912 | py | Python | stograde/specs/file_options.py | StoDevX/stograde | 5b4cd58724e8e5218c7a7f2cc2d4f788e71a7931 | [
"MIT"
] | 7 | 2016-08-05T00:41:11.000Z | 2019-08-22T11:12:10.000Z | stograde/specs/file_options.py | StoDevX/cs251-toolkit | a40f358289d67cce7b24fd557230079fae830b7d | [
"MIT"
] | 145 | 2016-08-04T01:07:11.000Z | 2019-09-09T22:07:13.000Z | stograde/specs/file_options.py | stograde/stograde | 17d901a86ff80d20e9f7f798bd27375de34eccb7 | [
"MIT"
] | 3 | 2017-02-06T21:52:46.000Z | 2019-02-18T10:35:01.000Z | from dataclasses import dataclass
@dataclass
class FileOptions:
"""Represents options available for files in specs"""
compile_optional: bool = False
hide_contents: bool = False
optional: bool = False
timeout: int = 4
truncate_contents: int = 10000
truncate_output: int = 10000
web_file:... | 38 | 89 | 0.705044 | 110 | 912 | 5.672727 | 0.3 | 0.112179 | 0.054487 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015007 | 0.196272 | 912 | 23 | 90 | 39.652174 | 0.836289 | 0.051535 | 0 | 0 | 0 | 0 | 0.091967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e2d57166328d3fc3547b907cd9390af6977743ab | 599 | py | Python | tflitehub/manual_test.py | rsuderman/iree-samples | e7ba8e639c1bdd763793a6cf21930fb238607b3f | [
"Apache-2.0"
] | 12 | 2021-08-18T07:01:50.000Z | 2022-03-30T18:19:12.000Z | tflitehub/manual_test.py | rsuderman/iree-samples | e7ba8e639c1bdd763793a6cf21930fb238607b3f | [
"Apache-2.0"
] | 10 | 2021-09-29T01:23:47.000Z | 2022-03-25T21:59:04.000Z | tflitehub/manual_test.py | rsuderman/iree-samples | e7ba8e639c1bdd763793a6cf21930fb238607b3f | [
"Apache-2.0"
] | 12 | 2021-09-09T00:58:53.000Z | 2022-03-03T17:35:32.000Z | import absl.flags
import absl.testing
import test_util
absl.flags.DEFINE_string('model', None, 'model path to execute')
class ManualTest(test_util.TFLiteModelTest):
def __init__(self, *args, **kwargs):
super(ManualTest, self).__init__(absl.flags.FLAGS.model, *args, **kwargs)
def compare_results(self, iree_re... | 28.52381 | 82 | 0.75626 | 81 | 599 | 5.222222 | 0.432099 | 0.06383 | 0.089835 | 0.113475 | 0.146572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126878 | 599 | 20 | 83 | 29.95 | 0.808795 | 0 | 0 | 0 | 0 | 0 | 0.056856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2d96f5be3fe8c438808f6f6851f430135885eef | 318 | py | Python | Profile/migrations/0002_rename_name_profile.py | higornobrega/Cadastrar-formulario-sem-refrash | 061369c886f78c7d31b3806e6d64be32c5a404f7 | [
"Apache-2.0"
] | null | null | null | Profile/migrations/0002_rename_name_profile.py | higornobrega/Cadastrar-formulario-sem-refrash | 061369c886f78c7d31b3806e6d64be32c5a404f7 | [
"Apache-2.0"
] | null | null | null | Profile/migrations/0002_rename_name_profile.py | higornobrega/Cadastrar-formulario-sem-refrash | 061369c886f78c7d31b3806e6d64be32c5a404f7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-16 19:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Profile', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Name',
new_name='Profile',
),
]
| 17.666667 | 47 | 0.578616 | 34 | 318 | 5.323529 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085973 | 0.305031 | 318 | 17 | 48 | 18.705882 | 0.733032 | 0.141509 | 0 | 0 | 1 | 0 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2e53392d6663edf28a4c1c0f78e58afb02ca58d | 372 | py | Python | python/pyclaw/evolve/__init__.py | geoflows/geoclaw-4.x | c8879d25405017b38392aa3b1ea422ff3e3604ea | [
"BSD-3-Clause"
] | 2 | 2016-04-26T02:32:09.000Z | 2021-02-08T08:43:44.000Z | python/pyclaw/evolve/__init__.py | che-wenchao/D-Claw | 8ab5d971c9a7a7130e03a447a4b8642e292f4e88 | [
"BSD-3-Clause"
] | null | null | null | python/pyclaw/evolve/__init__.py | che-wenchao/D-Claw | 8ab5d971c9a7a7130e03a447a4b8642e292f4e88 | [
"BSD-3-Clause"
] | 2 | 2019-01-17T04:34:08.000Z | 2020-08-11T16:02:28.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
__init__.py
Created by Kyle Mandli on 2008-08-21.
Copyright (c) 2008 University of Washington. All rights reserved.
"""
# This __init__ script only imports common utilities, most of the import
# should be done depending on the solver needed
__all__ = ['ClawSolver1D','rp']... | 23.25 | 73 | 0.75 | 55 | 372 | 4.854545 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047923 | 0.158602 | 372 | 15 | 74 | 24.8 | 0.805112 | 0.728495 | 0 | 0 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
e2e539ae380a3ae1757eb58c9d202984c2e1b456 | 6,930 | py | Python | process.py | nrc/rustc-timing-scripts | daa7185547d2c8bd9dd4ae7d5f7038b9cd066ed8 | [
"MIT"
] | 2 | 2017-01-21T04:42:50.000Z | 2017-12-18T23:00:26.000Z | process.py | nrc/rustc-timing-scripts | daa7185547d2c8bd9dd4ae7d5f7038b9cd066ed8 | [
"MIT"
] | null | null | null | process.py | nrc/rustc-timing-scripts | daa7185547d2c8bd9dd4ae7d5f7038b9cd066ed8 | [
"MIT"
] | 5 | 2016-11-11T02:09:12.000Z | 2021-02-26T10:56:32.000Z | import json
import os
import re
import sys
VERBOSE = False
LL_RATIO = False
re_commit = re.compile("commit (.*)")
re_date = re.compile("Date: (.*)")
re_rustc = re.compile("rustc: .*/([\w\-_\.]*)")
re_time_and_mem = re.compile("( *)time: ([0-9\.]*); rss: ([0-9]*)MB\s*(.*)")
re_time = re.compile("( *)time: ([0-9\.]*)... | 31.216216 | 99 | 0.518038 | 913 | 6,930 | 3.733844 | 0.174151 | 0.053975 | 0.023467 | 0.030801 | 0.245233 | 0.188912 | 0.154884 | 0.154884 | 0.140804 | 0.123203 | 0 | 0.012085 | 0.34329 | 6,930 | 221 | 100 | 31.357466 | 0.736981 | 0.042857 | 0 | 0.182857 | 0 | 0 | 0.11366 | 0 | 0 | 0 | 0 | 0.004525 | 0.011429 | 0 | null | null | 0.011429 | 0.022857 | null | null | 0.022857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e2e883c60ff97c7620a5a18511806ab69abd2cb7 | 1,451 | py | Python | setup.py | pjdelport/django-timezone-utils | 9954f4748828561bf93282686c8893b0ee173669 | [
"MIT"
] | 1 | 2018-03-28T11:07:08.000Z | 2018-03-28T11:07:08.000Z | setup.py | pjdelport/django-timezone-utils | 9954f4748828561bf93282686c8893b0ee173669 | [
"MIT"
] | null | null | null | setup.py | pjdelport/django-timezone-utils | 9954f4748828561bf93282686c8893b0ee173669 | [
"MIT"
] | null | null | null | # coding: utf-8
from setuptools import setup
import os
version = __import__('timezone_utils').VERSION
setup(
name='django-timezone-utils',
version=version,
description='Time Zone Utilities for Django Models',
long_description=open(
os.path.join(
os.path.dirname(__file__),
... | 29.612245 | 67 | 0.595451 | 143 | 1,451 | 5.93007 | 0.587413 | 0.179245 | 0.235849 | 0.153302 | 0.063679 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014967 | 0.263267 | 1,451 | 48 | 68 | 30.229167 | 0.778297 | 0.008959 | 0 | 0.045455 | 0 | 0 | 0.520891 | 0.033426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 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 |
e2ea127bf91cb89aa4772743b9614cee1575040a | 354 | py | Python | create_number_text.py | sp1007/ViTacotron2 | a2ae38800d7e40ecd2ce526075d5ecad461382b0 | [
"BSD-3-Clause"
] | null | null | null | create_number_text.py | sp1007/ViTacotron2 | a2ae38800d7e40ecd2ce526075d5ecad461382b0 | [
"BSD-3-Clause"
] | null | null | null | create_number_text.py | sp1007/ViTacotron2 | a2ae38800d7e40ecd2ce526075d5ecad461382b0 | [
"BSD-3-Clause"
] | null | null | null | from tacotron2.text.vi_number_and_units import normalize_vi
from random import randrange
print("Start generate vietnamese number strings")
with open("training_data/vietnamese_number.txt", 'w', encoding='utf-8') as f:
for i in range(20000):
n = randrange(1000000000, 2000000000)
f.write(normalize_... | 29.5 | 78 | 0.720339 | 51 | 354 | 4.862745 | 0.745098 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090301 | 0.155367 | 354 | 12 | 79 | 29.5 | 0.73913 | 0 | 0 | 0 | 1 | 0 | 0.247887 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2eb9e16425dd68f198eb64037e6dc6ad8c656e1 | 4,269 | py | Python | ozpcenter/api/subscription/views.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 1 | 2018-10-05T17:03:01.000Z | 2018-10-05T17:03:01.000Z | ozpcenter/api/subscription/views.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 1 | 2017-01-06T19:20:32.000Z | 2017-01-06T19:20:32.000Z | ozpcenter/api/subscription/views.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 7 | 2016-12-16T15:42:05.000Z | 2020-09-05T01:11:27.000Z | """
Subscription Views
"""
import logging
from django.shortcuts import get_object_or_404
from rest_framework import filters
from rest_framework import status
from rest_framework import viewsets
from rest_framework.response import Response
from ozpcenter import errors
from ozpcenter import permissions
import ozpcenter... | 31.858209 | 91 | 0.68119 | 457 | 4,269 | 6.212254 | 0.271335 | 0.030997 | 0.028179 | 0.014794 | 0.382529 | 0.329694 | 0.278971 | 0.143713 | 0.114125 | 0.073265 | 0 | 0.010982 | 0.232139 | 4,269 | 133 | 92 | 32.097744 | 0.855095 | 0.394238 | 0 | 0.272727 | 0 | 0 | 0.027766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.227273 | 0 | 0.613636 | 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 |
e2ecd188f8f6894a87e06e057131ad62e06050c3 | 822 | py | Python | src/ling_409/tests/test_join.py | seanbethard/corpuswork | e5d9a91a7dbe107c15858c51bb70a53b2b512978 | [
"Apache-2.0"
] | null | null | null | src/ling_409/tests/test_join.py | seanbethard/corpuswork | e5d9a91a7dbe107c15858c51bb70a53b2b512978 | [
"Apache-2.0"
] | 1 | 2021-10-17T18:20:31.000Z | 2021-10-17T19:10:59.000Z | src/ling_409/tests/test_join.py | seanbethard/corpuswork | e5d9a91a7dbe107c15858c51bb70a53b2b512978 | [
"Apache-2.0"
] | null | null | null | import nltk
grammar = nltk.data.load('file:agree_join.fcfg',cache=False)
parser = nltk.parse.FeatureChartParser(grammar)
agreement_test_sentences = ['Mary sang and danced',
'Mary and John danced',
'Mary and John',
'Mary and John saw ... | 32.88 | 72 | 0.507299 | 93 | 822 | 4.419355 | 0.473118 | 0.068127 | 0.080292 | 0.082725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.407543 | 822 | 24 | 73 | 34.25 | 0.841889 | 0 | 0 | 0 | 0 | 0 | 0.287105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e2fb71c8870219f01d01dc2e89d0babe9a99ee0f | 361 | py | Python | adobe_analytics/exceptions.py | nickolasgryga/adobe_analytics | de6cc84d402da31066ebbebfb0888d615502c67d | [
"BSD-2-Clause"
] | 1 | 2021-07-27T00:14:35.000Z | 2021-07-27T00:14:35.000Z | adobe_analytics/exceptions.py | nickolasgryga/adobe_analytics | de6cc84d402da31066ebbebfb0888d615502c67d | [
"BSD-2-Clause"
] | null | null | null | adobe_analytics/exceptions.py | nickolasgryga/adobe_analytics | de6cc84d402da31066ebbebfb0888d615502c67d | [
"BSD-2-Clause"
] | 1 | 2020-04-19T10:51:20.000Z | 2020-04-19T10:51:20.000Z | class ApiError(Exception):
"""
Exception raised when user does not have appropriate credentials
Used for 301 & 401 HTTP Status codes
"""
def __init__(self, response):
if 'error_description' in response:
self.message = response['error_description']
else:
... | 30.083333 | 69 | 0.614958 | 38 | 361 | 5.684211 | 0.736842 | 0.148148 | 0.175926 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.301939 | 361 | 11 | 70 | 32.818182 | 0.833333 | 0.279778 | 0 | 0 | 0 | 0 | 0.171806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
e2fd5e1340b3888d07ad440a9d6eb084b13d73e6 | 3,049 | py | Python | gtp_monitor.py | decastromonteiro/GTPv1-Monitoring | 58fee5c529871da37011332d08655dc597909a50 | [
"MIT"
] | null | null | null | gtp_monitor.py | decastromonteiro/GTPv1-Monitoring | 58fee5c529871da37011332d08655dc597909a50 | [
"MIT"
] | null | null | null | gtp_monitor.py | decastromonteiro/GTPv1-Monitoring | 58fee5c529871da37011332d08655dc597909a50 | [
"MIT"
] | null | null | null | from scapy.all import *
from scapy.contrib import gtp
import random
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-l","--loop", help="Loop the script for x times", type=int)
parser.add_argument("-G", "--GGSN", help="Choose which GGSN to monitor", type=str)
args = parser.parse_args()
def main... | 32.094737 | 128 | 0.685799 | 447 | 3,049 | 4.50783 | 0.395973 | 0.047146 | 0.022333 | 0.009926 | 0.172705 | 0.122084 | 0.073449 | 0.043672 | 0.043672 | 0.043672 | 0 | 0.076863 | 0.16366 | 3,049 | 94 | 129 | 32.43617 | 0.713333 | 0.043949 | 0 | 0.042857 | 0 | 0 | 0.10989 | 0 | 0 | 0 | 0.009272 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2fe6493cb576144779d2b1204706b59fd236f0e | 1,668 | py | Python | trpgcreator/ui/dialogs/function.py | jacobcheatley/trpg-creator | 80fd3aa93fdcda9158d03bee69606c00d0bb48cf | [
"MIT"
] | null | null | null | trpgcreator/ui/dialogs/function.py | jacobcheatley/trpg-creator | 80fd3aa93fdcda9158d03bee69606c00d0bb48cf | [
"MIT"
] | null | null | null | trpgcreator/ui/dialogs/function.py | jacobcheatley/trpg-creator | 80fd3aa93fdcda9158d03bee69606c00d0bb48cf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_files/dialogs/function.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_FunctionDialog(object):
def setupUi(self, FunctionDi... | 42.769231 | 106 | 0.751199 | 147 | 1,668 | 8.496599 | 0.503401 | 0.134508 | 0.043235 | 0.04964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009957 | 0.157074 | 1,668 | 38 | 107 | 43.894737 | 0.878378 | 0.117506 | 0 | 0 | 1 | 0 | 0.079235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2ff49cab4ba360d0c6607d7de941f5cadcb1158 | 1,922 | py | Python | model/__init__.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | 5 | 2018-12-24T10:45:56.000Z | 2019-07-29T07:26:28.000Z | model/__init__.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | null | null | null | model/__init__.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | 2 | 2019-07-30T06:27:49.000Z | 2021-09-24T08:21:52.000Z | # -*- coding: utf-8 -*-
from pymongo import MongoClient
from config import settings
client = MongoClient(settings.MONGO.get('uri'))
models = client.get_database()
from .base import BaseModel
# Brand
brand = models.brands
brand.__class__ = BaseModel
# car_product
car_product = models.carproducts
car_product.__clas... | 20.446809 | 53 | 0.82154 | 238 | 1,922 | 6 | 0.273109 | 0.205882 | 0.083333 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000586 | 0.111863 | 1,922 | 94 | 54 | 20.446809 | 0.83597 | 0.14308 | 0 | 0 | 0 | 0 | 0.001846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 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 |
e2ffdb55e5faac68db8dc9249ff68a8a15c104ad | 4,680 | py | Python | pan15_compliant/temp/quick_read.py | ivan-bilan/author-profiling-pan-2016 | c1bde09cd6f7b42238138dd8d46f50b21e1df534 | [
"MIT"
] | 6 | 2019-02-22T01:46:05.000Z | 2019-07-31T19:43:02.000Z | pan15_compliant/temp/quick_read.py | ivan-bilan/author-profiling-pan-2016 | c1bde09cd6f7b42238138dd8d46f50b21e1df534 | [
"MIT"
] | null | null | null | pan15_compliant/temp/quick_read.py | ivan-bilan/author-profiling-pan-2016 | c1bde09cd6f7b42238138dd8d46f50b21e1df534 | [
"MIT"
] | 2 | 2019-07-31T19:48:34.000Z | 2020-02-01T20:25:54.000Z |
import glob
import ntpath
import re
import codecs
from nltk.tokenize import word_tokenize, sent_tokenize
from unidecode import unidecode
import pickle
import cPickle
from time import sleep
from xml.dom import minidom
from nltk.stem.porter import *
import treetaggerwrapper
from bs4 import BeautifulSoup
from itertools i... | 37.44 | 121 | 0.46047 | 427 | 4,680 | 4.831382 | 0.320843 | 0.081435 | 0.058168 | 0.063984 | 0.141057 | 0.050412 | 0 | 0 | 0 | 0 | 0 | 0.012874 | 0.48547 | 4,680 | 124 | 122 | 37.741935 | 0.843854 | 0.093162 | 0 | 0.2625 | 0 | 0 | 0.0808 | 0.009613 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.2125 | null | null | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
390084afaa3780d483212b8e82d376a462ed9922 | 5,426 | py | Python | list_ec2_publicly_accessible/check-ec2-publicly-exposed.py | trackit/audit-tools | c1ea0f8d8124dce432efc3c652920c5bfaacd3f4 | [
"MIT"
] | null | null | null | list_ec2_publicly_accessible/check-ec2-publicly-exposed.py | trackit/audit-tools | c1ea0f8d8124dce432efc3c652920c5bfaacd3f4 | [
"MIT"
] | null | null | null | list_ec2_publicly_accessible/check-ec2-publicly-exposed.py | trackit/audit-tools | c1ea0f8d8124dce432efc3c652920c5bfaacd3f4 | [
"MIT"
] | 1 | 2020-01-05T06:05:34.000Z | 2020-01-05T06:05:34.000Z | import boto3
import botocore
import csv
import pprint
import argparse
import ConfigParser
import os
import re
def get_ec2_name(tags):
for tag in tags:
if tag['Key'] == 'Name':
return tag['Value']
return 'NA'
def get_ec2_sg(sgs):
res = []
for sg in sgs:
res.append(sg['GroupI... | 34.56051 | 135 | 0.562477 | 616 | 5,426 | 4.782468 | 0.233766 | 0.016293 | 0.020367 | 0.01222 | 0.163612 | 0.053632 | 0.053632 | 0.031908 | 0.031908 | 0.031908 | 0 | 0.007779 | 0.312938 | 5,426 | 156 | 136 | 34.782051 | 0.782457 | 0 | 0 | 0.147887 | 0 | 0 | 0.138039 | 0.00387 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056338 | null | null | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39031f98bf1e83f3da283f2c97ca60f3dd94c627 | 819 | py | Python | py/py_0134_prime_pair_connection.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0134_prime_pair_connection.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0134_prime_pair_connection.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 134: Prime pair connection
# https://projecteuler.net/problem=134
#
# Consider the consecutive primes p1 = 19 and p2 = 23. It can be verified that
# 1219 is the smallest number such that the last digits are formed by p1
# whilst also being divisible by p2. In fact, with the exc... | 31.5 | 79 | 0.700855 | 143 | 819 | 3.965035 | 0.545455 | 0.089947 | 0.045855 | 0.056437 | 0.201058 | 0.201058 | 0.091711 | 0 | 0 | 0 | 0 | 0.080189 | 0.223443 | 819 | 25 | 80 | 32.76 | 0.806604 | 0.782662 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39052772f9dc0879f47403e4d0860a00960c45db | 593 | py | Python | main.py | justinhchae/gis_project | 86bec3e4950a477a8a2c2c246a2d2f9e4a388c83 | [
"MIT"
] | null | null | null | main.py | justinhchae/gis_project | 86bec3e4950a477a8a2c2c246a2d2f9e4a388c83 | [
"MIT"
] | null | null | null | main.py | justinhchae/gis_project | 86bec3e4950a477a8a2c2c246a2d2f9e4a388c83 | [
"MIT"
] | null | null | null | import geoplot as gplt
import geopandas as gpd
import matplotlib.pyplot as plt
import pandas as pd
from src import constants
# data from cook county open data and us census
township_boundaries = gpd.read_file(constants.TOWNSHIP_POLYGONS_GEOJSON)
zip_code_data = gpd.read_file(constants.TOWNSHIP_POINTS_GEOJSON)
# call... | 31.210526 | 85 | 0.806071 | 97 | 593 | 4.804124 | 0.536082 | 0.11588 | 0.04721 | 0.085837 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.129848 | 593 | 19 | 86 | 31.210526 | 0.901163 | 0.234401 | 0 | 0 | 0 | 0 | 0.160356 | 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 |
390eb54e9f537108363cb3bf13c024263949a6dd | 1,226 | py | Python | angel-ps/python/pyangel/ml/client/angel_client_factory.py | weien8899/angel | 829ce1a02e147d1f93b6375c2d07208ea31e53a2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-11-24T07:40:30.000Z | 2017-11-24T07:40:30.000Z | angel-ps/python/pyangel/ml/client/angel_client_factory.py | weien8899/angel | 829ce1a02e147d1f93b6375c2d07208ea31e53a2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | angel-ps/python/pyangel/ml/client/angel_client_factory.py | weien8899/angel | 829ce1a02e147d1f93b6375c2d07208ea31e53a2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-09-28T00:31:04.000Z | 2018-09-28T00:31:04.000Z | #
# Tencent is pleased to support the open source community by making Angel available.
#
# Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of ... | 39.548387 | 102 | 0.724307 | 168 | 1,226 | 5.27381 | 0.678571 | 0.056433 | 0.022573 | 0.036117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008256 | 0.209625 | 1,226 | 30 | 103 | 40.866667 | 0.906089 | 0.743067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 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 |
39161d79d61b03d8e57124d0ba23be924137f118 | 235 | py | Python | backend/app/models/client_model.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | backend/app/models/client_model.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | backend/app/models/client_model.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
User = get_user_model()
# Client model
class Client(models.Model):
name = models.CharField(max_length=120)
def _str_(self):
return self.name | 21.363636 | 46 | 0.740426 | 35 | 235 | 4.771429 | 0.6 | 0.11976 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0.174468 | 235 | 11 | 47 | 21.363636 | 0.845361 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 |
391674ca750ec8f64624e54aec9ad84db488f761 | 4,050 | py | Python | pinterest.py | raphaottoni/pinterest-crawler | 7127b9a6ba654a368b307056ede12470fd72d7d5 | [
"MIT"
] | 9 | 2015-09-01T07:57:32.000Z | 2019-04-21T11:58:56.000Z | pinterest.py | raphaottoni/pinterest-crawler | 7127b9a6ba654a368b307056ede12470fd72d7d5 | [
"MIT"
] | null | null | null | pinterest.py | raphaottoni/pinterest-crawler | 7127b9a6ba654a368b307056ede12470fd72d7d5 | [
"MIT"
] | 3 | 2016-02-12T06:46:06.000Z | 2018-12-27T15:43:18.000Z | import urllib2
import time
import random
import socket
import MySQLdb
from config import *
import os,re
class Pinterest:
#------inicializacao -------#
def __init__(self, verbose=0):
self.db = MySQLdb.connect(host,user,password,database)
self.cursor = self.db.cursor()
self. cursor.connection.autocommit(... | 33.75 | 148 | 0.577284 | 461 | 4,050 | 5.062907 | 0.251627 | 0.042845 | 0.043702 | 0.034276 | 0.609255 | 0.609255 | 0.596401 | 0.504284 | 0.430163 | 0.398458 | 0 | 0.012632 | 0.27679 | 4,050 | 119 | 149 | 34.033613 | 0.784227 | 0.039259 | 0 | 0.553398 | 0 | 0 | 0.234946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009709 | 0.067961 | null | null | 0.048544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3926ad832eeb47c85e1e5e88e0bb62222b9474f5 | 2,229 | py | Python | ml_code/GunshotDetection/eval_nolabel.py | ankitshah009/Daisy_Shooter_Localization | 55ebbc084e40ddc2072f24802a4b1e32cad84d9e | [
"Apache-2.0"
] | 18 | 2019-06-03T14:19:02.000Z | 2020-10-19T18:20:23.000Z | ml_code/GunshotDetection/eval_nolabel.py | ankitshah009/Daisy_Shooter_Localization | 55ebbc084e40ddc2072f24802a4b1e32cad84d9e | [
"Apache-2.0"
] | 1 | 2019-06-22T19:49:43.000Z | 2019-07-06T21:57:03.000Z | ml_code/GunshotDetection/eval_nolabel.py | ankitshah009/Daisy_Shooter_Localization | 55ebbc084e40ddc2072f24802a4b1e32cad84d9e | [
"Apache-2.0"
] | 7 | 2019-06-22T19:45:18.000Z | 2020-10-01T22:32:25.000Z | # coding=utf-8
# given downloaded annotation file from videoAnno(rename the filename first), the test file is filename+score+label, then compute the AP and precision and recall
# annotation will be transform first based on over-half overlapping of each filename(start and end time provided).
from ChunWai import *
import... | 26.855422 | 161 | 0.681472 | 337 | 2,229 | 4.462908 | 0.454006 | 0.055851 | 0.015957 | 0.007979 | 0.018617 | 0.018617 | 0 | 0 | 0 | 0 | 0 | 0.020997 | 0.145357 | 2,229 | 82 | 162 | 27.182927 | 0.768504 | 0.144908 | 0 | 0.096774 | 0 | 0 | 0.096519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080645 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
392ca31d476d2479d3be4832900b7d11b21d93f1 | 707 | py | Python | plenum/test/run_continuously.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | plenum/test/run_continuously.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | plenum/test/run_continuously.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | import traceback
import pytest
from plenum.test.testing_utils import setupTestLogging
setupTestLogging()
def run(test, stopOnFail=True, maxTimes=None):
count = 0
passes = 0
fails = 0
while maxTimes is None or count < maxTimes:
exitcode = pytest.main(test)
count += 1
if exitc... | 22.09375 | 77 | 0.595474 | 77 | 707 | 5.38961 | 0.571429 | 0.028916 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018443 | 0.30976 | 707 | 31 | 78 | 22.806452 | 0.831967 | 0 | 0 | 0 | 0 | 0 | 0.151344 | 0.063649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.173913 | 0.130435 | 0 | 0.173913 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
392d314d0e4d2d58ec9d3a5a164d62aefcba09bd | 1,494 | py | Python | bsmetadata/experiments/sample.py | chkla/metadata | db71133e64c08a254c2f024e3f2b102e7ed5237d | [
"Apache-2.0"
] | 13 | 2021-08-04T12:21:53.000Z | 2022-02-08T14:57:41.000Z | bsmetadata/experiments/sample.py | chkla/metadata | db71133e64c08a254c2f024e3f2b102e7ed5237d | [
"Apache-2.0"
] | 88 | 2021-08-03T11:39:48.000Z | 2022-03-21T08:44:22.000Z | bsmetadata/experiments/sample.py | chkla/metadata | db71133e64c08a254c2f024e3f2b102e7ed5237d | [
"Apache-2.0"
] | 9 | 2021-08-09T03:09:49.000Z | 2022-01-31T09:05:08.000Z | from dataclasses import dataclass
from datasets import load_dataset
from torch.utils.data import DataLoader
from transformers import PreTrainedTokenizerBase
from bsmetadata.input_pipeline import DataConfig
@dataclass
class DataCollatorForCLM:
tokenizer: PreTrainedTokenizerBase
pad_to_multiple_of: int = 16
... | 30.489796 | 60 | 0.67336 | 173 | 1,494 | 5.543353 | 0.473988 | 0.037539 | 0.040667 | 0.046924 | 0.177268 | 0.087591 | 0.087591 | 0.087591 | 0.087591 | 0 | 0 | 0.010629 | 0.244311 | 1,494 | 48 | 61 | 31.125 | 0.838795 | 0.068942 | 0 | 0.102564 | 0 | 0 | 0.053353 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
392df8ae17207c8dd557c9f4fa7215af73ac3e7e | 343 | py | Python | admin/migrations/0007_auto_20180304_2342.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 4 | 2019-07-19T17:39:04.000Z | 2022-03-22T21:02:15.000Z | admin/migrations/0007_auto_20180304_2342.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 53 | 2019-08-04T14:25:40.000Z | 2022-03-26T20:30:55.000Z | admin/migrations/0007_auto_20180304_2342.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 3 | 2020-03-09T07:11:03.000Z | 2020-09-11T01:22:50.000Z | # Generated by Django 2.0.2 on 2018-03-04 22:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("admin", "0006_auto_20180304_2334")]
operations = [
migrations.RenameField(
model_name="attendance", old_name="attendancestate", new_name="attendance_... | 22.866667 | 92 | 0.6793 | 40 | 343 | 5.65 | 0.8 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114391 | 0.209913 | 343 | 14 | 93 | 24.5 | 0.719557 | 0.131195 | 0 | 0 | 1 | 0 | 0.233108 | 0.077703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3934cdaf443c0d64bba814eb47a9faf4d5ae1a22 | 1,386 | py | Python | Puzzles/Easy/EquivalentResistanceCircuitBuilding.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | Puzzles/Easy/EquivalentResistanceCircuitBuilding.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | Puzzles/Easy/EquivalentResistanceCircuitBuilding.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
resdict = {}
for i in range(n):
inputs = input().split()
name = inputs[0]
r = int(inputs[1])
resdict[name] = r
circuit = input().split(' ')
print(circu... | 25.666667 | 67 | 0.473304 | 174 | 1,386 | 3.770115 | 0.350575 | 0.042683 | 0.079268 | 0.109756 | 0.365854 | 0.118902 | 0.118902 | 0.118902 | 0.118902 | 0.118902 | 0 | 0.033175 | 0.391053 | 1,386 | 53 | 68 | 26.150943 | 0.744076 | 0.1443 | 0 | 0.295455 | 1 | 0 | 0.004234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.045455 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39357970770b1229adb3057a56f69d6a0a5baa12 | 3,251 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/examples/collections/large_collection.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/examples/collections/large_collection.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/examples/collections/large_collection.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | """illlustrates techniques for dealing with very large collections"""
from sqlalchemy import *
meta = BoundMetaData('sqlite://', echo=True)
org_table = Table('organizations', meta,
Column('org_id', Integer, primary_key=True),
Column('org_name', String(50), nullable=False, key='name'),
mysql_engine='InnoD... | 37.367816 | 173 | 0.708397 | 446 | 3,251 | 5.06278 | 0.340807 | 0.022143 | 0.042516 | 0.058459 | 0.235164 | 0.163419 | 0.110275 | 0.081931 | 0.037201 | 0 | 0 | 0.002156 | 0.143956 | 3,251 | 86 | 174 | 37.802326 | 0.809199 | 0.233467 | 0 | 0.288462 | 0 | 0 | 0.205843 | 0.05622 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.019231 | null | null | 0.096154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
394079b6c9630137a55f232882bf0ab7871364a0 | 474 | py | Python | PYTHON/OTP_Generator.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | 1 | 2022-02-22T17:13:54.000Z | 2022-02-22T17:13:54.000Z | PYTHON/OTP_Generator.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | 11 | 2022-01-24T20:42:11.000Z | 2022-02-27T23:58:24.000Z | PYTHON/OTP_Generator.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | null | null | null | import random
import smtplib
sender="email@gmail.com"
rec=input("Enter a valid Email address :: ")
otp_ls=[]
for i in range(6):
otp_ls.append(str(random.randint(0,9)))
otp=""
otp="".join(otp_ls)
message=str(otp)
server=smtplib.SMTP("smtp.gmail.com",587)
server.starttls()
server.login(sender,"password")
server.sen... | 21.545455 | 50 | 0.71097 | 75 | 474 | 4.426667 | 0.586667 | 0.045181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01432 | 0.116034 | 474 | 22 | 51 | 21.545455 | 0.778043 | 0 | 0 | 0 | 0 | 0 | 0.248421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 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 |
39420070240b89f49ac9e74a944d07f8541941ce | 1,225 | py | Python | core/mod_user.py | zihochann/zihou | d7930138f945ecebec2dd4d5b47caf9ec786b7ac | [
"Apache-2.0"
] | null | null | null | core/mod_user.py | zihochann/zihou | d7930138f945ecebec2dd4d5b47caf9ec786b7ac | [
"Apache-2.0"
] | null | null | null | core/mod_user.py | zihochann/zihou | d7930138f945ecebec2dd4d5b47caf9ec786b7ac | [
"Apache-2.0"
] | null | null | null | import threading
from django.contrib import auth
from django.template import loader
from django.contrib.auth.models import User
def user_login(request, username, password):
# Try to authorized.
user_obj = auth.authenticate(username=username, password=password)
if user_obj is None:
# Fa... | 27.840909 | 71 | 0.644898 | 152 | 1,225 | 5.085526 | 0.368421 | 0.072445 | 0.043984 | 0.054334 | 0.204398 | 0.10608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257959 | 1,225 | 43 | 72 | 28.488372 | 0.850385 | 0.159184 | 0 | 0.153846 | 0 | 0 | 0.068507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.153846 | 0.038462 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39503d5ab76f201c30ce1c9645bb0e4118165356 | 8,066 | py | Python | mslib/msui/qt5/ui_remotesensing_dockwidget.py | iamansoni/MSS | 69bc8fc61ab277697ca691119f911382a63860c0 | [
"Apache-2.0"
] | 33 | 2020-12-04T04:29:28.000Z | 2022-03-05T17:11:49.000Z | mslib/msui/qt5/ui_remotesensing_dockwidget.py | iamansoni/MSS | 69bc8fc61ab277697ca691119f911382a63860c0 | [
"Apache-2.0"
] | 614 | 2020-12-06T16:54:44.000Z | 2022-03-31T07:41:02.000Z | mslib/msui/qt5/ui_remotesensing_dockwidget.py | iamansoni/MSS | 69bc8fc61ab277697ca691119f911382a63860c0 | [
"Apache-2.0"
] | 51 | 2020-12-04T15:10:46.000Z | 2022-03-20T02:02:11.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/ui_remotesensing_dockwidget.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_RemoteSensingDockWidget(object):
def setupUi(se... | 63.511811 | 185 | 0.757501 | 681 | 8,066 | 8.908957 | 0.236417 | 0.08571 | 0.024229 | 0.026372 | 0.197956 | 0.12807 | 0.107302 | 0.093292 | 0.064612 | 0.064612 | 0 | 0.018575 | 0.145673 | 8,066 | 126 | 186 | 64.015873 | 0.861849 | 0.024919 | 0 | 0.096491 | 1 | 0.008772 | 0.143312 | 0.055619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.008772 | 0 | 0.035088 | 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 |
1a327af1d83f544669a4f210cd9c30495e4be5d1 | 8,431 | py | Python | src/codeplag/algorithms/tests/test_featurebased.py | Artanias/code-plagiarism | 41e258c006fbaed524fd73b8e9a49795020deed3 | [
"MIT"
] | 2 | 2021-04-04T08:29:22.000Z | 2021-12-09T21:22:07.000Z | src/codeplag/algorithms/tests/test_featurebased.py | Artanias/code-plagiarism | 41e258c006fbaed524fd73b8e9a49795020deed3 | [
"MIT"
] | 57 | 2021-02-15T17:26:51.000Z | 2022-03-27T08:03:49.000Z | src/codeplag/algorithms/tests/test_featurebased.py | Artanias/code-plagiarism | 41e258c006fbaed524fd73b8e9a49795020deed3 | [
"MIT"
] | 2 | 2021-09-29T12:24:11.000Z | 2022-03-25T07:37:58.000Z | import unittest
import numpy as np
from codeplag.algorithms.featurebased import (
op_shift_metric, counter_metric,
get_children_indexes, struct_compare,
find_max_index, matrix_value,
add_not_counted
)
class TestFeaturebased(unittest.TestCase):
def test_counter_metric_normal(self):
exampl... | 39.397196 | 74 | 0.48381 | 1,078 | 8,431 | 3.665121 | 0.123377 | 0.216401 | 0.060744 | 0.012149 | 0.399393 | 0.313845 | 0.256138 | 0.232852 | 0.190332 | 0.181726 | 0 | 0.120452 | 0.328431 | 8,431 | 213 | 75 | 39.58216 | 0.577358 | 0.072115 | 0 | 0.147239 | 0 | 0 | 0.006678 | 0 | 0 | 0 | 0 | 0 | 0.325153 | 1 | 0.04908 | false | 0 | 0.018405 | 0 | 0.07362 | 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 |
1a33c34047258292fc807d0008191fa54ebf56f2 | 683 | py | Python | manage_battery.py | clean-code-craft-tcq-1/function-ext-python-Anjana-MU | 880dd57b2e4487ea73bb531e01974639ee52bfdd | [
"MIT"
] | null | null | null | manage_battery.py | clean-code-craft-tcq-1/function-ext-python-Anjana-MU | 880dd57b2e4487ea73bb531e01974639ee52bfdd | [
"MIT"
] | null | null | null | manage_battery.py | clean-code-craft-tcq-1/function-ext-python-Anjana-MU | 880dd57b2e4487ea73bb531e01974639ee52bfdd | [
"MIT"
] | null | null | null | from report_vitals import report_battery_vitals
from filter_values import filterOut_safe_vitals
from process_battery_data import process_data
from controller_actions import get_actions
def is_battery_ok(bms_attributes):
data = process_data(bms_attributes)
report_battery_vitals(data)
get_actions(data)... | 40.176471 | 146 | 0.765739 | 101 | 683 | 4.821782 | 0.475248 | 0.055441 | 0.067762 | 0.069815 | 0.11499 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.139092 | 683 | 16 | 147 | 42.6875 | 0.804422 | 0.114202 | 0 | 0 | 0 | 0 | 0.096186 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1a373cc887d600632ff4c6b60c05538cbc538057 | 9,183 | py | Python | neatbook/neatbook.py | Peter-32/neatbook | c14a08c12ae7f964f65790dbe1f64710015ea4ca | [
"MIT"
] | 1 | 2018-01-25T18:14:30.000Z | 2018-01-25T18:14:30.000Z | neatbook/neatbook.py | Peter-32/neatbook | c14a08c12ae7f964f65790dbe1f64710015ea4ca | [
"MIT"
] | null | null | null | neatbook/neatbook.py | Peter-32/neatbook | c14a08c12ae7f964f65790dbe1f64710015ea4ca | [
"MIT"
] | null | null | null | import sys
import os
import nbformat as nbf
import re
class Neatbook:
def __init__(self, ):
PROJECT_FILE = os.path.realpath(os.path.basename(sys.argv[0]))
PROJECT_PATH = re.match("(.*[/\\\])", PROJECT_FILE).group(1)
PROJECT_NAME = re.match(".*[/\\\]+([^/\\\]+)[/\\\]+$", PROJECT_PATH).group(... | 33.514599 | 146 | 0.641729 | 1,019 | 9,183 | 5.65947 | 0.214917 | 0.011271 | 0.018034 | 0.026704 | 0.298769 | 0.187446 | 0.129357 | 0.092596 | 0.092596 | 0.041269 | 0 | 0.009736 | 0.228248 | 9,183 | 273 | 147 | 33.637363 | 0.804007 | 0 | 0 | 0.15493 | 0 | 0.014085 | 0.836872 | 0.288468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004695 | false | 0 | 0.075117 | 0 | 0.093897 | 0.131455 | 0 | 0 | 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 |
1a417a39aec4e307b5788f20466897d8a07d5d83 | 534 | py | Python | backend/tests/run.py | Itisfilipe/feature-requets-flask-app | 9dd2f8d5b15907a1233807fad4d82ef62e3f23de | [
"MIT"
] | 2 | 2020-06-21T12:44:57.000Z | 2020-06-21T21:01:38.000Z | backend/tests/run.py | Itisfilipe/feature-requets-flask-app | 9dd2f8d5b15907a1233807fad4d82ef62e3f23de | [
"MIT"
] | null | null | null | backend/tests/run.py | Itisfilipe/feature-requets-flask-app | 9dd2f8d5b15907a1233807fad4d82ef62e3f23de | [
"MIT"
] | null | null | null | from coverage import coverage
import unittest
cov = coverage(branch=True, include=['app/*'])
cov.set_option('report:show_missing', True)
cov.erase()
cov.start()
from .client_test import ClientTestCase
from .features_test import FeatureTestCase
from .product_area_test import ProductAreaTestCase
if __name__ == '__mai... | 26.7 | 73 | 0.735955 | 67 | 534 | 5.656716 | 0.61194 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002141 | 0.125468 | 534 | 20 | 74 | 26.7 | 0.809422 | 0 | 0 | 0 | 0 | 0 | 0.128972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1a4af6cad74d57338f1e7326e6e3a3227771f7f7 | 700 | py | Python | data/GTSDB/ImageSets/train_test_split.py | aivsol/aivsol-TFFRCNN | 82a9ca81db5d35471f553ce82d33f51ecdac8faf | [
"MIT"
] | 1 | 2019-04-21T11:49:59.000Z | 2019-04-21T11:49:59.000Z | data/GTSDB/ImageSets/train_test_split.py | aivsol/aivsol-TFFRCNN | 82a9ca81db5d35471f553ce82d33f51ecdac8faf | [
"MIT"
] | null | null | null | data/GTSDB/ImageSets/train_test_split.py | aivsol/aivsol-TFFRCNN | 82a9ca81db5d35471f553ce82d33f51ecdac8faf | [
"MIT"
] | null | null | null | import sys
f = open('all.txt')
data = {}
for l in f:
t = l.split(";")[0]
if t in data:
data[t] += [l]
else:
data[t] = [l]
f.close()
train = dict(data.items()[0:380])
test = dict(data.items()[380:506])
'''
print ('\n'*10)
for k in sorted(train):
print k, ':', train[k]
print ('\n'*10)
f... | 17.5 | 44 | 0.528571 | 123 | 700 | 3.00813 | 0.292683 | 0.048649 | 0.081081 | 0.12973 | 0.243243 | 0.194595 | 0.108108 | 0 | 0 | 0 | 0 | 0.030593 | 0.252857 | 700 | 39 | 45 | 17.948718 | 0.676864 | 0.017143 | 0 | 0.115385 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a5bde00dd8bb51e439591c86ef0d4d1410e18f2 | 14,338 | py | Python | code/slash_commands/slash_help.py | Fiji05/AquaBot | 52541689d1baeb6dae4cbf21efd05c5dd4ab6eee | [
"Unlicense"
] | 2 | 2022-02-08T23:20:29.000Z | 2022-02-11T03:33:48.000Z | code/slash_commands/slash_help.py | Fiji05/AquaBot | 52541689d1baeb6dae4cbf21efd05c5dd4ab6eee | [
"Unlicense"
] | 1 | 2022-02-08T23:07:16.000Z | 2022-02-08T23:07:16.000Z | code/slash_commands/slash_help.py | Fiji05/AquaBot | 52541689d1baeb6dae4cbf21efd05c5dd4ab6eee | [
"Unlicense"
] | null | null | null | import discord
from discord.ext import commands
import re
from discord import app_commands
color = 0xc48aff
class HelpDropdown(discord.ui.Select):
def __init__(self):
options = [
discord.SelectOption(label='Economy', description='add, profile, shop, blackjack, slots, coinflip, leaderboard', e... | 76.673797 | 245 | 0.622053 | 1,843 | 14,338 | 4.798155 | 0.212154 | 0.047948 | 0.077915 | 0.101889 | 0.345471 | 0.332353 | 0.243243 | 0.187493 | 0.151193 | 0.135248 | 0 | 0.008846 | 0.227298 | 14,338 | 187 | 246 | 76.673797 | 0.787797 | 0 | 0 | 0.205128 | 0 | 0.224359 | 0.485808 | 0.006067 | 0 | 0 | 0.000558 | 0 | 0 | 1 | 0.019231 | false | 0.00641 | 0.038462 | 0 | 0.083333 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a5db5237de410d311cd0094aea5844830bb3ab4 | 544 | py | Python | manage.py | arctelix/pinimatic | a7d2495b25efbf9cf8f173276f1d4e67b000b32f | [
"BSD-2-Clause",
"Unlicense"
] | 12 | 2015-08-16T19:53:58.000Z | 2022-02-15T14:27:28.000Z | manage.py | arctelix/pinimatic | a7d2495b25efbf9cf8f173276f1d4e67b000b32f | [
"BSD-2-Clause",
"Unlicense"
] | null | null | null | manage.py | arctelix/pinimatic | a7d2495b25efbf9cf8f173276f1d4e67b000b32f | [
"BSD-2-Clause",
"Unlicense"
] | 1 | 2022-01-04T07:15:13.000Z | 2022-01-04T07:15:13.000Z | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
if 'RACK_ENV' in os.environ:
RACK_ENV = os.environ.get("RACK_ENV")
print 'RACK_ENV: ', RACK_ENV
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings."+RACK_ENV)
else:
print 'RACK_ENV not detected u... | 30.222222 | 85 | 0.709559 | 72 | 544 | 5.013889 | 0.444444 | 0.135734 | 0.049862 | 0.088643 | 0.288089 | 0.288089 | 0.288089 | 0.288089 | 0 | 0 | 0 | 0 | 0.1875 | 544 | 17 | 86 | 32 | 0.816742 | 0.036765 | 0 | 0 | 0 | 0 | 0.319312 | 0.133843 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a60362064940f6db59dda613a4f0cced864bf4e | 3,748 | py | Python | code/report/inspectParameters.py | matthijsvk/multimodalSR | 1f614fb4dfbb421247077b28e14fe29268951871 | [
"MIT"
] | 53 | 2017-04-18T10:06:20.000Z | 2021-12-29T21:26:07.000Z | code/report/inspectParameters.py | matthijsvk/multimodalSR | 1f614fb4dfbb421247077b28e14fe29268951871 | [
"MIT"
] | null | null | null | code/report/inspectParameters.py | matthijsvk/multimodalSR | 1f614fb4dfbb421247077b28e14fe29268951871 | [
"MIT"
] | 20 | 2017-05-03T03:27:09.000Z | 2022-03-24T07:07:45.000Z | import logging
import formatting
logger_inspectParameters = logging.getLogger('inspectParameters')
logger_inspectParameters.setLevel(logging.DEBUG)
FORMAT = '[$BOLD%(filename)s$RESET:%(lineno)d][%(levelname)-5s]: %(message)s '
formatter = logging.Formatter(formatting.formatter_message(FORMAT, False))
# create console... | 31.762712 | 123 | 0.734258 | 511 | 3,748 | 5.156556 | 0.289628 | 0.03074 | 0.015939 | 0.020493 | 0.336243 | 0.314611 | 0.278937 | 0.25389 | 0.25389 | 0.241366 | 0 | 0.04588 | 0.145144 | 3,748 | 117 | 124 | 32.034188 | 0.776529 | 0.141409 | 0 | 0.269231 | 0 | 0.012821 | 0.257509 | 0.143617 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a6086494efd98c1570749ebf52a9ed9b5dbed1e | 2,596 | py | Python | projects/ABD_Net/ABD_components/args.py | Yogurt2019/abd-deep-person-reid | 47c9b9499bffb937891a896f7b5ab7ce7a8f67c4 | [
"MIT"
] | null | null | null | projects/ABD_Net/ABD_components/args.py | Yogurt2019/abd-deep-person-reid | 47c9b9499bffb937891a896f7b5ab7ce7a8f67c4 | [
"MIT"
] | null | null | null | projects/ABD_Net/ABD_components/args.py | Yogurt2019/abd-deep-person-reid | 47c9b9499bffb937891a896f7b5ab7ce7a8f67c4 | [
"MIT"
] | null | null | null | import os
import argparse
def argument_parser():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# ************************************************************
# Branches Related
# ************************************************************
parser.add_arg... | 37.623188 | 120 | 0.573575 | 291 | 2,596 | 4.872852 | 0.202749 | 0.126939 | 0.191819 | 0.056417 | 0.263752 | 0.1622 | 0.1622 | 0.057828 | 0.057828 | 0 | 0 | 0.007755 | 0.155624 | 2,596 | 68 | 121 | 38.176471 | 0.639142 | 0.162943 | 0 | 0.066667 | 0 | 0 | 0.172605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 0.066667 | 0.222222 | 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 |
1a620fb3b68c9a35c59fa0e20653e57eb899a4f1 | 520 | py | Python | src/grass/functor.py | running-grass/grass-python | dabb31bbfb0f0efe088861cd28795d9fc3f6ffe7 | [
"MIT"
] | null | null | null | src/grass/functor.py | running-grass/grass-python | dabb31bbfb0f0efe088861cd28795d9fc3f6ffe7 | [
"MIT"
] | null | null | null | src/grass/functor.py | running-grass/grass-python | dabb31bbfb0f0efe088861cd28795d9fc3f6ffe7 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TypeVar, Callable, Generic
# from collections.abc import Callable
from grass.function import flip
A = TypeVar('A')
B = TypeVar('B')
C = TypeVar('C')
class Functor(ABC, Generic[A]):
'''函子'''
@abstractmethod
def fmap(self, f: Callable[[A], B]) -> Func... | 20 | 59 | 0.638462 | 72 | 520 | 4.611111 | 0.444444 | 0.018072 | 0.060241 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 520 | 25 | 60 | 20.8 | 0.813725 | 0.076923 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.1875 | 0 | 0.4375 | 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 |
1a668420032ee928aa6e1ba6f76b4ad5ad27b3bd | 1,177 | py | Python | testOneNN.py | agollapudi2019/ShallowMind | a907474d4ec366fe3761adc2cd3686e334547750 | [
"MIT"
] | 1 | 2021-05-28T01:16:39.000Z | 2021-05-28T01:16:39.000Z | testOneNN.py | iRT-CS/ShallowMind | a907474d4ec366fe3761adc2cd3686e334547750 | [
"MIT"
] | null | null | null | testOneNN.py | iRT-CS/ShallowMind | a907474d4ec366fe3761adc2cd3686e334547750 | [
"MIT"
] | null | null | null | from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.utils import to_categorical
from db import createDatasetsDocument, createNeuralNetsDocument, createExperimentsDocument
import GaussianBoundary as gb
import numpy as np
import keras
from testNN import test
from Utils import iterate... | 39.233333 | 92 | 0.762107 | 173 | 1,177 | 5.179191 | 0.520231 | 0.040179 | 0.040179 | 0.026786 | 0.122768 | 0.122768 | 0.122768 | 0.122768 | 0.122768 | 0.122768 | 0 | 0.055055 | 0.151232 | 1,177 | 29 | 93 | 40.586207 | 0.841842 | 0.394223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6875 | 0 | 0.6875 | 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 |
1a70a5ac619f5bf6e8349237a927505f14a6920e | 1,854 | py | Python | actions/utils.py | kabirivan/Ecommerce-Assistant-Jasmine | 77f72c604053decbb35eb3cf85cfebc08db8b8a5 | [
"MIT"
] | null | null | null | actions/utils.py | kabirivan/Ecommerce-Assistant-Jasmine | 77f72c604053decbb35eb3cf85cfebc08db8b8a5 | [
"MIT"
] | null | null | null | actions/utils.py | kabirivan/Ecommerce-Assistant-Jasmine | 77f72c604053decbb35eb3cf85cfebc08db8b8a5 | [
"MIT"
] | null | null | null | import logging
import os
import json
import smtplib
import traceback
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
logger = logging.getLogger(__name__)
email_username = os.getenv('EMAIL_USERNAME')
print('email... | 27.671642 | 113 | 0.70712 | 243 | 1,854 | 5.148148 | 0.415638 | 0.052758 | 0.020783 | 0.027178 | 0.030376 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007884 | 0.179072 | 1,854 | 66 | 114 | 28.090909 | 0.81406 | 0.071737 | 0 | 0 | 0 | 0 | 0.161816 | 0.033178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.083333 | 0.1875 | 0 | 0.291667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1a766cce0e7d4f81f37b66f4a3ec6bec7bbeb25c | 256 | py | Python | 13_commandline/code/hello_world_optparse.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | 13_commandline/code/hello_world_optparse.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | 13_commandline/code/hello_world_optparse.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import optparse
def main():
p = optparse.OptionParser()
p.add_option('--sysadmin', '-s', default="BOFH")
options, arguments = p.parse_args()
print 'Hello, %s' % options.sysadmin
if __name__ == '__main__':
main()
| 21.333333 | 52 | 0.636719 | 32 | 256 | 4.78125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 256 | 11 | 53 | 23.272727 | 0.735577 | 0.078125 | 0 | 0 | 0 | 0 | 0.140426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a7819373e65dd64fec02d852dc5a67386d356f6 | 579 | py | Python | app/segmentation/utils.py | zhiva-ai/Lung-Segmentation-API | 63f09668f6e0f13db98f3050c3106f79533a0ac2 | [
"MIT"
] | null | null | null | app/segmentation/utils.py | zhiva-ai/Lung-Segmentation-API | 63f09668f6e0f13db98f3050c3106f79533a0ac2 | [
"MIT"
] | null | null | null | app/segmentation/utils.py | zhiva-ai/Lung-Segmentation-API | 63f09668f6e0f13db98f3050c3106f79533a0ac2 | [
"MIT"
] | null | null | null | from pydicom import FileDataset
from typing import Tuple
def get_pixel_spacing_and_slice_thickness_in_centimeters(
instance: FileDataset,
) -> Tuple[float, float, float]:
"""
:param instance: example pydicom instance, one from the
:return:
"""
pixel_spacing_x, pixel_spacing_y = instance.PixelS... | 30.473684 | 87 | 0.770294 | 78 | 579 | 5.294872 | 0.358974 | 0.261501 | 0.125908 | 0.09201 | 0.145278 | 0.145278 | 0.145278 | 0.145278 | 0 | 0 | 0 | 0.012448 | 0.16753 | 579 | 18 | 88 | 32.166667 | 0.844398 | 0.110535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
1a791a126a1d1c1e3adc06bd75455351d86e06de | 981 | py | Python | make.py | ASquirrelsTail/serve-up | 9533ba82f5b4989434b3b20352d17a8131bb9619 | [
"MIT"
] | null | null | null | make.py | ASquirrelsTail/serve-up | 9533ba82f5b4989434b3b20352d17a8131bb9619 | [
"MIT"
] | 10 | 2021-03-30T14:05:21.000Z | 2022-03-12T00:41:15.000Z | make.py | ASquirrelsTail/serve-up | 9533ba82f5b4989434b3b20352d17a8131bb9619 | [
"MIT"
] | null | null | null | import os
from distutils.dir_util import copy_tree
# import PyInstaller.__main__
pyinst_args = [
'-c',
'serve_up.py',
'--name=ServeUp',
'--onefile',
'--hidden-import=whitenoise',
'--hidden-import=whitenoise.middleware',
'--hidden-import=visitors.admin',
'--hidden-import=tabl... | 30.65625 | 107 | 0.692151 | 127 | 981 | 5.094488 | 0.433071 | 0.111283 | 0.086553 | 0.049459 | 0.120556 | 0.064915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160041 | 981 | 31 | 108 | 31.645161 | 0.785194 | 0.168196 | 0 | 0 | 0 | 0 | 0.347436 | 0.224359 | 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 |
1a85dff4822265d51931da5ba96d3b6613afee5b | 2,223 | py | Python | dictionary/1_retrieve.py | fossabot/hotpot | 1e64d64cc3e798c9a8c12ee71bb5c9268f4db591 | [
"MIT"
] | 1 | 2021-11-13T11:22:10.000Z | 2021-11-13T11:22:10.000Z | dictionary/1_retrieve.py | fossabot/hotpot | 1e64d64cc3e798c9a8c12ee71bb5c9268f4db591 | [
"MIT"
] | 65 | 2020-10-29T18:50:18.000Z | 2022-03-25T10:17:51.000Z | dictionary/1_retrieve.py | fossabot/hotpot | 1e64d64cc3e798c9a8c12ee71bb5c9268f4db591 | [
"MIT"
] | 2 | 2020-10-29T18:03:31.000Z | 2021-10-07T12:00:20.000Z | import zipfile
from utils import download_from_url
# =================================
# Script purpose:
# Download and unzip all raw files
# =================================
# Word frequency calculations from Beijing Language and Culture University
download_from_url(
"http://bcc.blcu.edu.cn/downloads/resources... | 28.5 | 86 | 0.708052 | 322 | 2,223 | 4.661491 | 0.301242 | 0.060626 | 0.079947 | 0.079947 | 0.433045 | 0.295137 | 0.200533 | 0.145237 | 0.117255 | 0.105263 | 0 | 0.01422 | 0.11426 | 2,223 | 77 | 87 | 28.87013 | 0.748095 | 0.173189 | 0 | 0.346939 | 0 | 0.061224 | 0.572837 | 0.277656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.040816 | 0 | 0.040816 | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1a86595632e2802076d14fd21ef1b058230b761c | 614 | py | Python | src/logexception/exceptionhandler.py | nabeelraja/mip-python-training | 265a78149752228ecf59f02bed371d67e79784ac | [
"MIT"
] | null | null | null | src/logexception/exceptionhandler.py | nabeelraja/mip-python-training | 265a78149752228ecf59f02bed371d67e79784ac | [
"MIT"
] | null | null | null | src/logexception/exceptionhandler.py | nabeelraja/mip-python-training | 265a78149752228ecf59f02bed371d67e79784ac | [
"MIT"
] | null | null | null |
'''
Create exceptions based on your inputs. Please follow the tasks below.
- Capture and handle system exceptions
- Create custom user-based exceptions
'''
class CustomInputError(Exception):
def __init__(self, *args, **kwargs):
print("Going through my own CustomInputError")
# Exception.__init_... | 25.583333 | 87 | 0.716612 | 71 | 614 | 5.971831 | 0.647887 | 0.075472 | 0.07783 | 0.084906 | 0.108491 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192182 | 614 | 23 | 88 | 26.695652 | 0.854839 | 0.314332 | 0 | 0.222222 | 0 | 0 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a8a011553b2aad69fa087ea0d544107ab624e4e | 3,820 | py | Python | factory/tools/manual_glidein_submit.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | factory/tools/manual_glidein_submit.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | factory/tools/manual_glidein_submit.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | #!/usr/bin/env python
import os
import sys
import ConfigParser
STARTUP_DIR = sys.path[0]
sys.path.append(os.path.join(STARTUP_DIR,".."))
sys.path.append(os.path.join(STARTUP_DIR,"../../lib"))
from glideinwms.factory.glideFactoryCredentials import SubmitCredentials
from glideinwms.factory.glideFactoryLib import submi... | 42.444444 | 125 | 0.693717 | 478 | 3,820 | 5.292887 | 0.25523 | 0.035573 | 0.047036 | 0.085375 | 0.383004 | 0.102767 | 0.067984 | 0.026087 | 0 | 0 | 0 | 0.001301 | 0.195288 | 3,820 | 89 | 126 | 42.921348 | 0.821731 | 0.049476 | 0 | 0.030769 | 0 | 0 | 0.200552 | 0.005793 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015385 | 0.138462 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a8d1c3aab026b93569c625006a8a640f7801504 | 1,852 | py | Python | matrix.py | sumnerevans/math-utils | 4dcac3dc73d1bd9da00711732752e42cecf5a5de | [
"MIT"
] | null | null | null | matrix.py | sumnerevans/math-utils | 4dcac3dc73d1bd9da00711732752e42cecf5a5de | [
"MIT"
] | null | null | null | matrix.py | sumnerevans/math-utils | 4dcac3dc73d1bd9da00711732752e42cecf5a5de | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 Sumner Evans <sumner.evans98@gmail.com>
#
# Distributed under terms of the MIT license.
from fractions import Fraction
class Matrix:
def __init__(self, data=None):
self.data = data
def __getitem__(self, arg):
... | 26.084507 | 103 | 0.549136 | 256 | 1,852 | 3.871094 | 0.335938 | 0.177598 | 0.0555 | 0.036327 | 0.127144 | 0.040363 | 0 | 0 | 0 | 0 | 0 | 0.026005 | 0.314795 | 1,852 | 70 | 104 | 26.457143 | 0.754137 | 0.111231 | 0 | 0.073171 | 0 | 0 | 0.00672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.02439 | 0.073171 | 0.414634 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1a90d4563c3bb7ab52ce0e87c6a443d4c4c2d1ca | 1,132 | py | Python | bin/email_sender.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | bin/email_sender.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | bin/email_sender.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | import smtplib
import json
import keyring
from datetime import date
from email.message import EmailMessage
def send_emails(posts):
# get login and service from cfg
# then get pass from keyring
with open('config.json', 'r') as f:
config = json.load(f)
service = config["MAIL"]["service"]
lo... | 26.325581 | 95 | 0.613074 | 153 | 1,132 | 4.437909 | 0.45098 | 0.073638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.25 | 1,132 | 42 | 96 | 26.952381 | 0.796231 | 0.081272 | 0 | 0 | 0 | 0.033333 | 0.180676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.166667 | 0 | 0.2 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1a93b46eb16c221c8fd3d04bc45df49519a5e514 | 442 | py | Python | fluent.pygments/fluent/pygments/cli.py | shlomyb-di/python-fluent | 284507d5aed60a2d4bc9b4433ff7fef121529d6f | [
"Apache-2.0"
] | 155 | 2017-02-15T11:39:45.000Z | 2022-03-15T19:06:58.000Z | fluent.pygments/fluent/pygments/cli.py | shlomyb-di/python-fluent | 284507d5aed60a2d4bc9b4433ff7fef121529d6f | [
"Apache-2.0"
] | 113 | 2017-03-14T16:47:57.000Z | 2022-02-03T20:53:07.000Z | fluent.pygments/fluent/pygments/cli.py | shlomyb-di/python-fluent | 284507d5aed60a2d4bc9b4433ff7fef121529d6f | [
"Apache-2.0"
] | 18 | 2017-02-08T01:22:51.000Z | 2021-12-21T03:07:34.000Z | import argparse
import sys
from pygments import highlight
from pygments.formatters import Terminal256Formatter
from fluent.pygments.lexer import FluentLexer
def main():
parser = argparse.ArgumentParser()
parser.add_argument('path')
args = parser.parse_args()
with open(args.path) as fh:
code =... | 22.1 | 70 | 0.723982 | 51 | 442 | 6.078431 | 0.568627 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.176471 | 442 | 19 | 71 | 23.263158 | 0.835165 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1a943e92d039c39f4c281bd1c616e8be6f279ca5 | 1,936 | py | Python | arrow/users/migrations/0003_application_hierarchy.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | null | null | null | arrow/users/migrations/0003_application_hierarchy.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | null | null | null | arrow/users/migrations/0003_application_hierarchy.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | 3 | 2019-01-07T17:07:16.000Z | 2021-01-09T13:01:40.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-11-05 16:19
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_2017110... | 53.777778 | 372 | 0.58781 | 217 | 1,936 | 5.138249 | 0.460829 | 0.053812 | 0.064574 | 0.039462 | 0.511211 | 0.511211 | 0.511211 | 0.511211 | 0.511211 | 0.511211 | 0 | 0.033686 | 0.217975 | 1,936 | 35 | 373 | 55.314286 | 0.702774 | 0.035124 | 0 | 0.357143 | 1 | 0 | 0.27882 | 0.012332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a9b2ce4056f25302ac86e2956a26f2d7cc5f161 | 1,395 | py | Python | images/models.py | cebanauskes/ida_images | 708eb44274b28d53f9b0422fbf3711d85ac62a6b | [
"MIT"
] | null | null | null | images/models.py | cebanauskes/ida_images | 708eb44274b28d53f9b0422fbf3711d85ac62a6b | [
"MIT"
] | null | null | null | images/models.py | cebanauskes/ida_images | 708eb44274b28d53f9b0422fbf3711d85ac62a6b | [
"MIT"
] | null | null | null | import os
from urllib.request import urlretrieve
from django.db import models
from django.core.files import File
class Image(models.Model):
"""Модель Изображения
pub_date - поле с датой публикации изображения
url - поле с ссылкой на изображение, если оно загружено со стороннего ресурса
image - пол... | 31.704545 | 81 | 0.622939 | 166 | 1,395 | 5.144578 | 0.487952 | 0.023419 | 0.045667 | 0.059719 | 0.12178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000988 | 0.274552 | 1,395 | 44 | 82 | 31.704545 | 0.842885 | 0.222939 | 0 | 0.08 | 0 | 0 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0 | 0.56 | 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 |
1aa5395fa8f8bf02600ccd5518e4b2f3eff03eba | 988 | py | Python | timeline/urls.py | mikechumba/insta | 6cbf080559649dbde7f846b93ad5f0cece62b13e | [
"Unlicense"
] | null | null | null | timeline/urls.py | mikechumba/insta | 6cbf080559649dbde7f846b93ad5f0cece62b13e | [
"Unlicense"
] | 6 | 2020-06-05T20:58:52.000Z | 2022-03-11T23:48:29.000Z | timeline/urls.py | kenmutuma001/insta | 71c34e20f2fcb9f91e9a8ae79acbacbd524ed5e5 | [
"Unlicense"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path,include
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views
from .forms import LoginForm
urlpatterns = [
path('', views.index, name="home"),
path('register... | 42.956522 | 93 | 0.718623 | 139 | 988 | 4.992806 | 0.294964 | 0.072046 | 0.060519 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110324 | 988 | 23 | 94 | 42.956522 | 0.789534 | 0.012146 | 0 | 0 | 0 | 0 | 0.219487 | 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 |
1aad65e1b8df46785564568c331cac0688125e9c | 2,684 | py | Python | sited_py/lib/org_noear_siteder_dao_engine_sdVewModel_BookSdViewModel.py | wistn/sited_py | fbecf09f410bd2494a952383073956946d9df813 | [
"Apache-2.0"
] | null | null | null | sited_py/lib/org_noear_siteder_dao_engine_sdVewModel_BookSdViewModel.py | wistn/sited_py | fbecf09f410bd2494a952383073956946d9df813 | [
"Apache-2.0"
] | null | null | null | sited_py/lib/org_noear_siteder_dao_engine_sdVewModel_BookSdViewModel.py | wistn/sited_py | fbecf09f410bd2494a952383073956946d9df813 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
Author:wistn
since:2020-09-23
LastEditors:Do not edit
LastEditTime:2021-03-04
Description:
"""
from .org_noear_siteder_dao_engine_DdSource import DdSource
from .mytool import TextUtils
from .android_util_Log import Log
from .org_noear_siteder_viewModels_ViewModelBase import ViewModelBase
fro... | 31.952381 | 90 | 0.596498 | 290 | 2,684 | 5.37931 | 0.375862 | 0.053846 | 0.023077 | 0.036538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013001 | 0.283532 | 2,684 | 83 | 91 | 32.337349 | 0.798232 | 0.148286 | 0 | 0.101695 | 1 | 0 | 0.031718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135593 | false | 0.033898 | 0.101695 | 0.016949 | 0.338983 | 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 |
1aaed5ee3426ce823012b905eeb818087be9ed79 | 907 | py | Python | Python/tangshi.py | jmworsley/TangShi | 94bba0d19d8524b239a813175ab818f1fcc6767f | [
"Apache-2.0"
] | 1 | 2017-04-04T07:54:57.000Z | 2017-04-04T07:54:57.000Z | Python/tangshi.py | jmworsley/TangShi | 94bba0d19d8524b239a813175ab818f1fcc6767f | [
"Apache-2.0"
] | null | null | null | Python/tangshi.py | jmworsley/TangShi | 94bba0d19d8524b239a813175ab818f1fcc6767f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import re
import codecs
ping = re.compile(u'.平')
shang = re.compile(u'上聲')
ru = re.compile(u'入')
qu = re.compile(u'去')
mydict = { }
# f = open("../Data/TangRhymesMap.csv")
f = codecs.open("../Data/TangRhymesMap.csv", "r", "utf-8")
for line in f:
line = line.rs... | 21.595238 | 58 | 0.554576 | 133 | 907 | 3.781955 | 0.338346 | 0.095427 | 0.079523 | 0.151093 | 0.290258 | 0.115308 | 0.115308 | 0.115308 | 0.115308 | 0.115308 | 0 | 0.007225 | 0.237045 | 907 | 41 | 59 | 22.121951 | 0.719653 | 0.144432 | 0 | 0.137931 | 0 | 0 | 0.12987 | 0.061039 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ab363fc54a7bd7d652dfd91947a59929ea22986 | 5,563 | py | Python | pycrostates/utils/utils.py | mscheltienne/pycrostates | be87adf69c94b2b179064f337acd8a49d01c305d | [
"BSD-3-Clause"
] | 1 | 2021-12-14T09:58:57.000Z | 2021-12-14T09:58:57.000Z | pycrostates/utils/utils.py | mscheltienne/pycrostates | be87adf69c94b2b179064f337acd8a49d01c305d | [
"BSD-3-Clause"
] | null | null | null | pycrostates/utils/utils.py | mscheltienne/pycrostates | be87adf69c94b2b179064f337acd8a49d01c305d | [
"BSD-3-Clause"
] | null | null | null | """Utils functions."""
from copy import deepcopy
import mne
import numpy as np
from ._logs import logger
# TODO: Add test for this. Also compare speed with latest version of numpy.
# Also compared speed with a numba implementation.
def _corr_vectors(A, B, axis=0):
# based on:
# https://github.com/wmvanvlie... | 36.598684 | 78 | 0.63455 | 813 | 5,563 | 4.212792 | 0.258303 | 0.011679 | 0.023358 | 0.032701 | 0.418978 | 0.387153 | 0.30219 | 0.19854 | 0.162336 | 0.141898 | 0 | 0.01016 | 0.256876 | 5,563 | 151 | 79 | 36.84106 | 0.818336 | 0.227575 | 0 | 0.207921 | 0 | 0 | 0.195517 | 0 | 0 | 0 | 0 | 0.013245 | 0.009901 | 1 | 0.029703 | false | 0 | 0.039604 | 0 | 0.089109 | 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 |
1aba1e9e9b7b20a13495abab8d8c20207ea25773 | 1,297 | py | Python | users/migrations/0005_auto_20200811_0450.py | Emmanuel-9/Instagram | 8fa388bc8879e45b5a86184ce9a37bde62fc52b5 | [
"Unlicense"
] | null | null | null | users/migrations/0005_auto_20200811_0450.py | Emmanuel-9/Instagram | 8fa388bc8879e45b5a86184ce9a37bde62fc52b5 | [
"Unlicense"
] | null | null | null | users/migrations/0005_auto_20200811_0450.py | Emmanuel-9/Instagram | 8fa388bc8879e45b5a86184ce9a37bde62fc52b5 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-08-11 01:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
m... | 32.425 | 121 | 0.643022 | 144 | 1,297 | 5.625 | 0.388889 | 0.049383 | 0.069136 | 0.108642 | 0.460494 | 0.460494 | 0.414815 | 0.323457 | 0.323457 | 0.323457 | 0 | 0.032553 | 0.242097 | 1,297 | 39 | 122 | 33.25641 | 0.791455 | 0.050887 | 0 | 0.46875 | 1 | 0 | 0.079805 | 0.01873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 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 |
1abe0a33741c0fbf2b13353bc783e7106e91ec31 | 3,480 | py | Python | recipes/Python/577611_edit_dictionary_values_possibly_restrained/recipe-577611.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577611_edit_dictionary_values_possibly_restrained/recipe-577611.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577611_edit_dictionary_values_possibly_restrained/recipe-577611.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | """
DICTIONNARY INTERFACE FOR EDITING VALUES
creates labels/edits/menubutton widgets in a TkFrame to edit dictionary values
use: apply(frame,dict,position)
"""
import Tkinter as tk
def cbMenu(controlV,value,btn= None):
controlV.set(str(value))
if not (btn== None):
btn.config(text= str(value))
def upd... | 29.491525 | 110 | 0.535345 | 495 | 3,480 | 3.743434 | 0.278788 | 0.030221 | 0.010793 | 0.041015 | 0.254722 | 0.254722 | 0.22612 | 0.195899 | 0.179709 | 0.158662 | 0 | 0.019608 | 0.281897 | 3,480 | 117 | 111 | 29.74359 | 0.721889 | 0.059483 | 0 | 0.194805 | 0 | 0 | 0.05016 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0 | null | null | 0 | 0.012987 | null | null | 0.168831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1abf95e6b7b8155e82794c0bb9f62fa7ce74f6e2 | 783 | py | Python | main.py | LucasRibeiroRJBR/Modelo_Conexao_Python_Oracle | df3d54b19c73d74e08eea533bf25fad79bd24b18 | [
"MIT"
] | 1 | 2021-09-20T00:10:00.000Z | 2021-09-20T00:10:00.000Z | main.py | LucasRibeiroRJBR/Modelo_Conexao_Python_Oracle | df3d54b19c73d74e08eea533bf25fad79bd24b18 | [
"MIT"
] | null | null | null | main.py | LucasRibeiroRJBR/Modelo_Conexao_Python_Oracle | df3d54b19c73d74e08eea533bf25fad79bd24b18 | [
"MIT"
] | null | null | null | import cx_Oracle, os
try:
connection = cx_Oracle.connect(
user='PY',
password='123456',
dsn='localhost:1521/XE',
encoding='UTF-8'
)
print(connection.version)
while True:
id = input('\nDigite o ID do aluno (0 para sair) -> ')
os.system('cls')
if ... | 23.727273 | 83 | 0.449553 | 99 | 783 | 3.535354 | 0.575758 | 0.085714 | 0.091429 | 0.077143 | 0.14 | 0.14 | 0.097143 | 0 | 0 | 0 | 0 | 0.078995 | 0.288633 | 783 | 32 | 84 | 24.46875 | 0.549372 | 0 | 0 | 0.16 | 0 | 0.04 | 0.368286 | 0.21867 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.12 | 0.04 | 0 | 0.04 | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ac22d8ad802954f9320b9a34d36844ed9201920 | 750 | py | Python | src/djanban/apps/dev_environment/migrations/0003_auto_20160925_1811.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 33 | 2017-06-14T18:04:25.000Z | 2021-06-15T07:07:56.000Z | src/djanban/apps/dev_environment/migrations/0003_auto_20160925_1811.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 1 | 2017-05-10T08:45:55.000Z | 2017-05-10T08:45:55.000Z | src/djanban/apps/dev_environment/migrations/0003_auto_20160925_1811.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 8 | 2017-08-27T11:14:25.000Z | 2021-03-03T12:11:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-25 16:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('boards', '0028_auto_20160925_1809'),
('members', '0008_auto_20160923_2056'),
('dev_env... | 28.846154 | 99 | 0.62 | 71 | 750 | 6.28169 | 0.746479 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111888 | 0.237333 | 750 | 25 | 100 | 30 | 0.667832 | 0.088 | 0 | 0.222222 | 1 | 0 | 0.315712 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ac8847b700e069310e03ab407c8d00ed2196a75 | 15,357 | py | Python | StinoStarter.py | huangxuantao/MyStino | 7421d4bb2620716a0ed5c9d695e5f2727ea68aee | [
"MIT"
] | 2 | 2015-03-05T00:16:47.000Z | 2015-07-31T05:43:54.000Z | StinoStarter.py | huangxuantao/MyStino | 7421d4bb2620716a0ed5c9d695e5f2727ea68aee | [
"MIT"
] | null | null | null | StinoStarter.py | huangxuantao/MyStino | 7421d4bb2620716a0ed5c9d695e5f2727ea68aee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# Documents
#
"""
Documents
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import re
import sublime
import sublime_plugin
st_version = int(sublime.versi... | 33.384783 | 77 | 0.663215 | 1,822 | 15,357 | 5.319429 | 0.132821 | 0.057676 | 0.042303 | 0.098741 | 0.507738 | 0.439744 | 0.336154 | 0.307573 | 0.274763 | 0.196141 | 0 | 0.002902 | 0.237091 | 15,357 | 459 | 78 | 33.457516 | 0.824343 | 0.003972 | 0 | 0.297872 | 0 | 0 | 0.057315 | 0.006805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206687 | false | 0.00304 | 0.036474 | 0.006079 | 0.428571 | 0.00304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1accb5103e52534c38495db9947e3f336e9ec46f | 630 | py | Python | demos/python/sdk_wireless_camera_control/docs/conf.py | hoehnp/OpenGoPro | 9ca32a12d3fb4b28e14c220c1d1be51d11109f6b | [
"MIT"
] | null | null | null | demos/python/sdk_wireless_camera_control/docs/conf.py | hoehnp/OpenGoPro | 9ca32a12d3fb4b28e14c220c1d1be51d11109f6b | [
"MIT"
] | null | null | null | demos/python/sdk_wireless_camera_control/docs/conf.py | hoehnp/OpenGoPro | 9ca32a12d3fb4b28e14c220c1d1be51d11109f6b | [
"MIT"
] | null | null | null | # conf.py/Open GoPro, Version 1.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Tue May 18 22:08:50 UTC 2021
project = "Open GoPro Python SDK"
copyright = "2020, GoPro Inc."
author = "Tim Camise"
version = "0.5.8"
release = "0.5.8"
templates_path = ["_templates"]
s... | 27.391304 | 94 | 0.701587 | 88 | 630 | 4.852273 | 0.693182 | 0.042155 | 0.014052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052434 | 0.152381 | 630 | 23 | 95 | 27.391304 | 0.747191 | 0.250794 | 0 | 0 | 1 | 0 | 0.429787 | 0.104255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46b7c30b7c888973b2f4691570edee73a931a781 | 2,207 | py | Python | Institute/database_handler.py | harshraj22/smallProjects | b31e9173c60abb778a1c196609757704ec9c3750 | [
"MIT"
] | 2 | 2019-11-18T14:13:57.000Z | 2020-11-08T06:50:32.000Z | Institute/database_handler.py | harshraj22/smallProjects | b31e9173c60abb778a1c196609757704ec9c3750 | [
"MIT"
] | 16 | 2019-11-12T13:08:01.000Z | 2022-02-27T10:51:28.000Z | Institute/database_handler.py | harshraj22/smallProjects | b31e9173c60abb778a1c196609757704ec9c3750 | [
"MIT"
] | null | null | null | import json
INSTITUTION_TEMPLATE = '''
{
"Institution":{
"Students":{
},
"Teachers":{
},
"Quizzes":{
"DataStructures":{
},
"Algorithms":{
},
"MachineLearning":{
}
}
}
}
'''
class DatabaseHandler:
def __init__(self):
# add a try catch block if the... | 29.039474 | 83 | 0.646579 | 278 | 2,207 | 4.967626 | 0.280576 | 0.112962 | 0.147719 | 0.162201 | 0.486604 | 0.43302 | 0.373642 | 0.258508 | 0.258508 | 0.258508 | 0 | 0.001794 | 0.242411 | 2,207 | 75 | 84 | 29.426667 | 0.824163 | 0.225646 | 0 | 0.12766 | 0 | 0 | 0.237319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.021277 | 0.042553 | 0.340426 | 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 |
46b88379bcc51ae7eaf16248c1c6bdbeb9952612 | 2,393 | py | Python | scripts/proppr-helpers/pronghorn-wrapper.py | TeamCohen/ProPPR | 2e0d978f96c2377ef3d26b80c17f38d2804f496c | [
"Apache-2.0"
] | 138 | 2015-01-15T00:04:37.000Z | 2021-12-26T18:35:48.000Z | scripts/proppr-helpers/pronghorn-wrapper.py | TeamCohen/ProPPR | 2e0d978f96c2377ef3d26b80c17f38d2804f496c | [
"Apache-2.0"
] | 7 | 2015-09-01T16:58:27.000Z | 2018-06-11T21:51:11.000Z | scripts/proppr-helpers/pronghorn-wrapper.py | TeamCohen/ProPPR | 2e0d978f96c2377ef3d26b80c17f38d2804f496c | [
"Apache-2.0"
] | 52 | 2015-02-04T16:03:45.000Z | 2020-04-22T06:38:25.000Z | import sys
import os
import shutil
import getopt
import logging
import subprocess
import util as u
def makebackup(f):
bi=1
backup = "%s.%d" % (f,bi)
#backup_parent = "./"
#if f[0] == "/": backup_parent=""
#if f.rfind("/") > 0: backup_parent += f[:f.rfind("/")]
while os.path.isfile(backup):#back... | 33.236111 | 148 | 0.603845 | 291 | 2,393 | 4.917526 | 0.388316 | 0.033543 | 0.041929 | 0.013976 | 0.261356 | 0.230608 | 0.230608 | 0.138365 | 0.138365 | 0.138365 | 0 | 0.01084 | 0.229001 | 2,393 | 71 | 149 | 33.704225 | 0.76477 | 0.17593 | 0 | 0.038462 | 0 | 0 | 0.156362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.134615 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46bc6e486b324317d1fd874bd6626e10cda2eade | 3,412 | py | Python | pc-containers-get-filtered-CSV-export.py | antoinesylvia/pc-toolbox | a3c1d78edde05ab1a964c5cebe3d6be56c711be6 | [
"MIT"
] | 2 | 2020-10-23T18:18:54.000Z | 2021-07-14T18:13:03.000Z | pc-containers-get-filtered-CSV-export.py | ethrlrnr/pc-toolbox | 0d2da6ba7e97aa44ef6f98efe359d73b233e0e96 | [
"MIT"
] | null | null | null | pc-containers-get-filtered-CSV-export.py | ethrlrnr/pc-toolbox | 0d2da6ba7e97aa44ef6f98efe359d73b233e0e96 | [
"MIT"
] | 1 | 2021-05-28T14:17:34.000Z | 2021-05-28T14:17:34.000Z | from __future__ import print_function
import os
from pprint import pprint
try:
input = raw_input
except NameError:
pass
import argparse
import pc_lib_api
import pc_lib_general
import json
import pandas
from datetime import datetime, date, time
from pathlib import Path
# --Execution Block-- #
# --Parse comman... | 35.541667 | 138 | 0.713951 | 478 | 3,412 | 4.903766 | 0.353556 | 0.03413 | 0.025597 | 0.032423 | 0.19198 | 0.168089 | 0.168089 | 0.139932 | 0.139932 | 0.139932 | 0 | 0.001401 | 0.163247 | 3,412 | 95 | 139 | 35.915789 | 0.819615 | 0.059203 | 0 | 0.175676 | 0 | 0.054054 | 0.388176 | 0.056616 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.135135 | 0 | 0.135135 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46bf93d742e3fd8d1c472785198ccc5801418eee | 1,720 | py | Python | python/DynamicProgramming.py/LargestSquare1Matrix.py | sinderpl/CodingExamples | 9bc59a0345589bf51fc74fe9ad527e9498b9b5c9 | [
"MIT"
] | null | null | null | python/DynamicProgramming.py/LargestSquare1Matrix.py | sinderpl/CodingExamples | 9bc59a0345589bf51fc74fe9ad527e9498b9b5c9 | [
"MIT"
] | null | null | null | python/DynamicProgramming.py/LargestSquare1Matrix.py | sinderpl/CodingExamples | 9bc59a0345589bf51fc74fe9ad527e9498b9b5c9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 30 15:49:24 2021
@author: alann
"""
arr = [[1,1,0,1,0],
[0,1,1,1,0],
[1,1,1,1,0],
[0,1,1,1,1]]
def largestSquare(arr ) -> int:
if len(arr) < 1 or len(arr[0]) < 1:
return 0
largest = 0
cache = [[0 for i in range(len(arr[0]))] for j in range(len(a... | 24.571429 | 108 | 0.488953 | 268 | 1,720 | 3.13806 | 0.197761 | 0.042806 | 0.035672 | 0.028537 | 0.667063 | 0.631391 | 0.631391 | 0.558859 | 0.456599 | 0.337693 | 0 | 0.071043 | 0.353488 | 1,720 | 70 | 109 | 24.571429 | 0.685252 | 0.043023 | 0 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0 | 0 | 0.139535 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46c953784ca4ba26f748a7c3fc7ea60f189876c1 | 474 | py | Python | froide/foirequest/migrations/0026_deliverystatus_retry_count.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | froide/foirequest/migrations/0026_deliverystatus_retry_count.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | froide/foirequest/migrations/0026_deliverystatus_retry_count.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-19 10:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('foirequest', '0025_foimessage_original'),
]
operations = [
migrations.AddF... | 22.571429 | 57 | 0.635021 | 49 | 474 | 5.959184 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064972 | 0.253165 | 474 | 20 | 58 | 23.7 | 0.759887 | 0.14557 | 0 | 0 | 1 | 0 | 0.146766 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46cc8483e131fefaccf80a5ffc6a68c9a76142b5 | 251 | py | Python | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex048 #.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex048 #.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex048 #.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | s = 0
for i in range(1, 500+1, 2):
m = i + 3
s += m
print(s)
# imprime 63250 na tela
'''
soma = 0
for c in range(1, 501, 2)
if c%3 == 0:
soma = soma + c
print('A soma de todos os valores solicitados é {}'.format(soma)
''' | 16.733333 | 72 | 0.521912 | 48 | 251 | 2.729167 | 0.583333 | 0.061069 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123529 | 0.322709 | 251 | 15 | 73 | 16.733333 | 0.647059 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
46d232d9ec4651128819068a85e667ebb5fd8527 | 4,400 | py | Python | 0-notes/job-search/SamplesDSAlgos/data_structures/datastructures-linkedlist_singly.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | 0-notes/job-search/SamplesDSAlgos/data_structures/datastructures-linkedlist_singly.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | 0-notes/job-search/SamplesDSAlgos/data_structures/datastructures-linkedlist_singly.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null |
"""
What is the difference between an array and a linked list?
Arrays use memory differently.
Arrays store and index elements contiguously.
Each element of linked list is stored in a node.
Each node has reference or pointer to next node.
Linked lists describe lists of things in recursive fashio... | 36.666667 | 95 | 0.625909 | 673 | 4,400 | 4.014859 | 0.265973 | 0.03849 | 0.016654 | 0.022206 | 0.162842 | 0.086603 | 0.061806 | 0.061806 | 0.024426 | 0.024426 | 0 | 0.003985 | 0.315682 | 4,400 | 120 | 96 | 36.666667 | 0.893391 | 0.316136 | 0 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46d5b06ceda47f513d516829376ac4dfe8a2e200 | 2,156 | py | Python | soteria/executor.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | 2 | 2019-03-25T10:57:04.000Z | 2022-02-16T13:44:05.000Z | soteria/executor.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | null | null | null | soteria/executor.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | 1 | 2022-02-16T13:44:16.000Z | 2022-02-16T13:44:16.000Z | from datetime import datetime
from shutil import copy2, copytree
import os
import errno
import subprocess
import re
from soteria.exceptions import BoogieParseError, BoogieTypeError, BoogieVerificationError, BoogieUnknownError
from soteria.debug_support.debugger import Debugger
##TODO : refactor this class
class Execu... | 40.679245 | 119 | 0.642857 | 251 | 2,156 | 5.374502 | 0.370518 | 0.041512 | 0.048184 | 0.032617 | 0.134915 | 0.04596 | 0 | 0 | 0 | 0 | 0 | 0.006203 | 0.252319 | 2,156 | 52 | 120 | 41.461538 | 0.830645 | 0.017625 | 0 | 0 | 0 | 0 | 0.113475 | 0.012766 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.409091 | 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 |
46dbb5e5a78152b7ac51446b9c0ae539686bb449 | 10,451 | py | Python | tests/run_hook_test.py | SeaOfOcean/EasyParallelLibrary | 93baaa851f5ce078b1c55032a27398a588ca4107 | [
"Apache-2.0"
] | 100 | 2022-02-23T08:54:35.000Z | 2022-03-31T04:02:38.000Z | tests/run_hook_test.py | chenyang472043503/EasyParallelLibrary | cd2873fe04c86c62e55418129ba2f1dc83d222b4 | [
"Apache-2.0"
] | null | null | null | tests/run_hook_test.py | chenyang472043503/EasyParallelLibrary | cd2873fe04c86c62e55418129ba2f1dc83d222b4 | [
"Apache-2.0"
] | 22 | 2022-02-23T09:02:01.000Z | 2022-03-18T03:24:00.000Z | # Copyright 2021 Alibaba Group Holding Limited. 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 ... | 41.804 | 93 | 0.655057 | 1,260 | 10,451 | 5.170635 | 0.173016 | 0.064467 | 0.113738 | 0.155641 | 0.657559 | 0.653262 | 0.616577 | 0.616577 | 0.6066 | 0.6066 | 0 | 0.02644 | 0.229165 | 10,451 | 249 | 94 | 41.971888 | 0.782274 | 0.108602 | 0 | 0.60396 | 0 | 0 | 0.284437 | 0.255035 | 0 | 0 | 0 | 0 | 0.138614 | 1 | 0.009901 | false | 0 | 0.059406 | 0.00495 | 0.079208 | 0.004951 | 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 |
46e4c61625ed6f1577f0848727252c8440b8dfae | 2,541 | py | Python | tests/bugs/core_5676_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_5676_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_5676_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_5676
# title: Consider equivalence classes for index navigation
# decription:
# Confirmed inefficiense on:
# 3.0.3.32837
# 4.0.0.800
# Checked on:
# 3.0.3.32852: OK, ... | 31.37037 | 108 | 0.674931 | 410 | 2,541 | 3.902439 | 0.229268 | 0.096875 | 0.155 | 0.05 | 0.54625 | 0.5425 | 0.5425 | 0.50875 | 0.4675 | 0.4675 | 0 | 0.041369 | 0.229437 | 2,541 | 80 | 109 | 31.7625 | 0.775792 | 0.191657 | 0 | 0.511111 | 0 | 0.022222 | 0.760688 | 0.04914 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46e9e1e146b2f0b0a2ded8216df7949ffeee9c90 | 2,185 | py | Python | src/pywriter/model/chapter.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | 1 | 2020-09-04T08:20:38.000Z | 2020-09-04T08:20:38.000Z | src/pywriter/model/chapter.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | 19 | 2020-01-04T10:43:27.000Z | 2022-03-30T19:03:44.000Z | src/pywriter/model/chapter.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | null | null | null | """Provide a class for yWriter chapter representation.
Copyright (c) 2021 Peter Triesberger
For further information see https://github.com/peter88213/PyWriter
Published under the MIT License (https://opensource.org/licenses/mit-license.php)
"""
class Chapter():
"""yWriter chapter representation.
# ... | 26.975309 | 82 | 0.549657 | 234 | 2,185 | 5.098291 | 0.465812 | 0.026823 | 0.036882 | 0.042749 | 0.105616 | 0.050293 | 0 | 0 | 0 | 0 | 0 | 0.014968 | 0.357895 | 2,185 | 80 | 83 | 27.3125 | 0.835353 | 0.536384 | 0 | 0 | 0 | 0 | 0.018328 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46f552dc371d4aa9d94aa19cc87a66a4710f0e4c | 963 | py | Python | fabfile.py | khamidou/kite | c049faf8522c8346c22c70f2a35a35db6b4a155d | [
"BSD-3-Clause"
] | 136 | 2015-01-06T01:14:35.000Z | 2022-01-20T17:04:52.000Z | fabfile.py | khamidou/kite | c049faf8522c8346c22c70f2a35a35db6b4a155d | [
"BSD-3-Clause"
] | 3 | 2016-01-14T21:37:10.000Z | 2019-04-17T02:44:08.000Z | fabfile.py | khamidou/kite | c049faf8522c8346c22c70f2a35a35db6b4a155d | [
"BSD-3-Clause"
] | 38 | 2015-02-28T14:12:26.000Z | 2021-01-17T21:01:02.000Z | # fabfile for update and deploy
# it's necessary to specify an host
from fabric.api import *
from fabric.contrib.project import rsync_project
from fabric.contrib.files import upload_template
from setup_config import *
PACKAGES = ('rsync', 'puppet')
def update_sources():
rsync_project("~", "../kite", exclude=[".gi... | 28.323529 | 230 | 0.685358 | 134 | 963 | 4.791045 | 0.470149 | 0.049844 | 0.05296 | 0.05296 | 0.190031 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.156802 | 963 | 33 | 231 | 29.181818 | 0.788177 | 0.065421 | 0 | 0 | 0 | 0.047619 | 0.408277 | 0.204698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.190476 | 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 |
2000631acb60a8da05e874d3aa4b37ceab2d695d | 595 | py | Python | utils/sort_data_by_cumulus.py | CONABIO/Sipecam-Kobo-a-Zendro | 59eae83ac64348021c78d5014bbfd6920a134019 | [
"Apache-2.0"
] | null | null | null | utils/sort_data_by_cumulus.py | CONABIO/Sipecam-Kobo-a-Zendro | 59eae83ac64348021c78d5014bbfd6920a134019 | [
"Apache-2.0"
] | null | null | null | utils/sort_data_by_cumulus.py | CONABIO/Sipecam-Kobo-a-Zendro | 59eae83ac64348021c78d5014bbfd6920a134019 | [
"Apache-2.0"
] | null | null | null | def sort_data_by_cumulus(data):
"""
Sort data by submitted_by field, which holds
the cumulus number (or id),
Parameters:
data (list): A list containing the report
data.
Returns:
(dict): A dict containg the data sorted by the
cumulus ... | 24.791667 | 56 | 0.517647 | 73 | 595 | 4.082192 | 0.424658 | 0.201342 | 0.110738 | 0.151007 | 0.147651 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.381513 | 595 | 24 | 57 | 24.791667 | 0.809783 | 0.408403 | 0 | 0.222222 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
2000854c13ae53e871afb86e48367aad66242ecd | 4,204 | py | Python | parseTestSet.py | franneck94/Variable-Neighborhood-Search-FLP | 891cea0be1c3250cd9990eb35ef5701cb20bf964 | [
"MIT"
] | 1 | 2019-10-05T08:26:52.000Z | 2019-10-05T08:26:52.000Z | parseTestSet.py | franneck94/Variable-Neighborhood-Search-FLP | 891cea0be1c3250cd9990eb35ef5701cb20bf964 | [
"MIT"
] | 1 | 2018-05-28T09:54:53.000Z | 2018-05-28T09:54:53.000Z | parseTestSet.py | franneck94/Variable-Neighborhood-Search-FLP | 891cea0be1c3250cd9990eb35ef5701cb20bf964 | [
"MIT"
] | 2 | 2019-10-05T08:26:59.000Z | 2020-05-02T09:21:54.000Z | import os
import errno
import itertools
directory = 'C:/Users/Jan/Dropbox/Bachelorarbeit/Programm/Testdaten/Raw DataSet/'
# listdir = [file for file in os.listdir(directory) if file not in ['capa.txt', 'capb.txt', 'capc.txt']]
# for d in listdir:
# print('Opening dir: ', directory+'/'+d)
# with open(directory... | 38.925926 | 124 | 0.495956 | 542 | 4,204 | 3.749077 | 0.182657 | 0.049213 | 0.044291 | 0.047244 | 0.71063 | 0.71063 | 0.625 | 0.602362 | 0.552165 | 0.449803 | 0 | 0.014947 | 0.331589 | 4,204 | 108 | 125 | 38.925926 | 0.708185 | 0.509753 | 0 | 0.06383 | 0 | 0 | 0.105473 | 0.055721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0.042553 | 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 |
2002bbb9c56413f96551b0bab99a9ddca857b82e | 16,696 | py | Python | lib/python/pySitools2_idoc.py | HELIO-HFC/SPoCA | b78426425e3bcc7aa55769dbead1681f30994e51 | [
"MIT"
] | 2 | 2019-03-29T15:42:02.000Z | 2019-09-02T13:56:26.000Z | lib/python/pySitools2_idoc.py | HELIO-HFC/SPoCA | b78426425e3bcc7aa55769dbead1681f30994e51 | [
"MIT"
] | null | null | null | lib/python/pySitools2_idoc.py | HELIO-HFC/SPoCA | b78426425e3bcc7aa55769dbead1681f30994e51 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This is a generic python Sitools2 tool
The code defines several classes SitoolsInstance, Field, Query, Dataset and Project
@author: Pablo ALINGERY for IAS 28-08-2012
"""
__version__ = "0.9"
__license__ = "GPL"
__author__ ="Pablo ALINGERY"
__credit__=["Pablo ALINGERY", "Elie SOUBRIE"]
__main... | 39.657957 | 188 | 0.696634 | 2,382 | 16,696 | 4.740974 | 0.15827 | 0.013637 | 0.002922 | 0.010626 | 0.383689 | 0.322678 | 0.296555 | 0.24254 | 0.206854 | 0.164881 | 0 | 0.011901 | 0.159559 | 16,696 | 420 | 189 | 39.752381 | 0.792902 | 0.093256 | 0 | 0.393491 | 0 | 0.035503 | 0.244113 | 0.02837 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026627 | null | null | 0.065089 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2008621af4aa4ec4e7a02b3dc3015e8423de584a | 964 | py | Python | gui/snd.py | celephicus/tadtas-joystick | daa655da6d299be6642ed11e78ab8fce464c8434 | [
"MIT"
] | null | null | null | gui/snd.py | celephicus/tadtas-joystick | daa655da6d299be6642ed11e78ab8fce464c8434 | [
"MIT"
] | null | null | null | gui/snd.py | celephicus/tadtas-joystick | daa655da6d299be6642ed11e78ab8fce464c8434 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import numpy as np
import sounddevice as sd
start_idx = 0
f1, f2 = 261.5, 261.5*2
finc =
amplitude = 0.4
device = None # Seems to use speaker as a default.
samplerate = sd.query_devices(device, 'output')['default_samplerate']
def mk_samples(t, f):
a = amplitude if f != 500 else ... | 22.952381 | 92 | 0.653527 | 163 | 964 | 3.797546 | 0.453988 | 0.024233 | 0.03231 | 0.022617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055058 | 0.189834 | 964 | 41 | 93 | 23.512195 | 0.737516 | 0.058091 | 0 | 0 | 0 | 0 | 0.032044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20104f8862a6a8f55e2e143cd7ebe9aa4c12cf96 | 2,499 | py | Python | process.py | fgassert/grace-processing | fe31765211596e83ce5c2e3ad060ea08c87ac4e1 | [
"MIT"
] | null | null | null | process.py | fgassert/grace-processing | fe31765211596e83ce5c2e3ad060ea08c87ac4e1 | [
"MIT"
] | null | null | null | process.py | fgassert/grace-processing | fe31765211596e83ce5c2e3ad060ea08c87ac4e1 | [
"MIT"
] | 1 | 2018-09-21T10:45:40.000Z | 2018-09-21T10:45:40.000Z | #!/usr/bin/env python
import numpy as np
import netCDF4 as nc
import scipy.stats as stats
import rasterio as rio
from rasterio import Affine as A
NETCDFS=['jpl.nc','csr.nc','gfz.nc']
SCALER='scaler.nc'
SLOPE='slope.csv'
R2='r2.csv'
P='p.csv'
ERR='err.csv'
OUT='grace.tif'
def main():
# load and average netcdfs
... | 28.724138 | 75 | 0.593838 | 384 | 2,499 | 3.742188 | 0.302083 | 0.055672 | 0.038274 | 0.069589 | 0.180237 | 0.102296 | 0.06263 | 0.06263 | 0.06263 | 0 | 0 | 0.031909 | 0.260104 | 2,499 | 86 | 76 | 29.05814 | 0.745268 | 0.068027 | 0 | 0.028986 | 0 | 0 | 0.070629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.101449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2011242134058a04c918ce8f1446c54701a874ab | 137 | py | Python | HW5_LeNet/src/config.py | Citing/CV-Course | f3e062347fa1cea85ca57181c90f23ad577c0e8c | [
"MIT"
] | 4 | 2019-12-14T11:21:54.000Z | 2021-01-15T13:55:35.000Z | HW5_LeNet/src/config.py | Citing/CV-Course | f3e062347fa1cea85ca57181c90f23ad577c0e8c | [
"MIT"
] | null | null | null | HW5_LeNet/src/config.py | Citing/CV-Course | f3e062347fa1cea85ca57181c90f23ad577c0e8c | [
"MIT"
] | 2 | 2020-11-26T13:04:08.000Z | 2020-12-02T01:14:53.000Z | datasetDir = '../dataset/'
model = '../model/lenet'
modelDir = '../model/'
epochs = 20
batchSize = 128
rate = 0.001
mu = 0
sigma = 0.1
| 12.454545 | 26 | 0.605839 | 19 | 137 | 4.368421 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.189781 | 137 | 10 | 27 | 13.7 | 0.63964 | 0 | 0 | 0 | 0 | 0 | 0.248175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
201d425af620794e41012477cffbd2e27ed92d2e | 362 | py | Python | blog/migrations/0010_auto_20200309_1619.py | thecodeblogs/django-tcp-blog | 1b00f6b97faa594348ed8326d45b8446087214f1 | [
"MIT"
] | 1 | 2021-01-21T21:05:35.000Z | 2021-01-21T21:05:35.000Z | blog/migrations/0010_auto_20200309_1619.py | thecodeblogs/django-tcb-blog | 1b00f6b97faa594348ed8326d45b8446087214f1 | [
"MIT"
] | null | null | null | blog/migrations/0010_auto_20200309_1619.py | thecodeblogs/django-tcb-blog | 1b00f6b97faa594348ed8326d45b8446087214f1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-09 16:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20200309_1619'),
]
operations = [
migrations.RenameField('Comment', 'entry', 'entry_envelope'),
migrations.RenameField('En... | 22.625 | 69 | 0.657459 | 39 | 362 | 6 | 0.769231 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108014 | 0.207182 | 362 | 15 | 70 | 24.133333 | 0.707317 | 0.124309 | 0 | 0 | 1 | 0 | 0.250794 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20200ed04143e2ca5f51022d612a0dce1bf3b0b7 | 646 | py | Python | Server/app/views/v1/mixed/post/faq.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 27 | 2018-01-14T08:07:18.000Z | 2020-01-20T14:21:17.000Z | Server/app/views/v1/mixed/post/faq.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 50 | 2018-02-12T12:51:33.000Z | 2018-08-28T00:48:31.000Z | Server/app/views/v1/mixed/post/faq.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 10 | 2018-03-31T16:30:32.000Z | 2021-03-02T10:30:31.000Z |
from flask import Blueprint
from flask_restful import Api
from app.views.v1 import auth_required
from app.models.post import FAQModel
from app.views.v1.mixed.post import PostAPIResource
api = Api(Blueprint('faq-api', __name__))
@api.resource('/faq')
class FAQList(PostAPIResource):
@auth_required
def... | 19 | 59 | 0.660991 | 84 | 646 | 4.880952 | 0.404762 | 0.05122 | 0.058537 | 0.068293 | 0.180488 | 0.180488 | 0 | 0 | 0 | 0 | 0 | 0.00404 | 0.233746 | 646 | 33 | 60 | 19.575758 | 0.824242 | 0.03096 | 0 | 0.125 | 0 | 0 | 0.043253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.6875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
20214db57c89259344d9a7e0f069af7fa4239898 | 21,226 | py | Python | Code/photometry_functions.py | MichaelDAlbrow/pyDIA | 1dc5725651de41f94bf863d4932756edd9561670 | [
"MIT"
] | 10 | 2017-07-07T01:42:11.000Z | 2020-01-26T07:26:21.000Z | Code/photometry_functions.py | MichaelDAlbrow/pyDIA | 1dc5725651de41f94bf863d4932756edd9561670 | [
"MIT"
] | 2 | 2017-02-03T21:15:59.000Z | 2017-02-16T18:14:30.000Z | Code/photometry_functions.py | MichaelDAlbrow/pyDIA | 1dc5725651de41f94bf863d4932756edd9561670 | [
"MIT"
] | 2 | 2018-04-08T13:55:41.000Z | 2019-01-14T13:42:37.000Z | import sys
import os
import numpy as np
from astropy.io import fits
from pyraf import iraf
from io_functions import read_fits_file, write_image
from image_functions import compute_saturated_pixel_mask, subtract_sky
def transform_coeffs(deg,dx,xx,yy):
a = np.zeros((deg+1,deg+1))
nterms = (deg+1)*(deg+2)/2
... | 38.522686 | 144 | 0.528691 | 2,901 | 21,226 | 3.772492 | 0.128921 | 0.046601 | 0.021747 | 0.023026 | 0.495431 | 0.437317 | 0.397844 | 0.344755 | 0.315698 | 0.305099 | 0 | 0.033892 | 0.317488 | 21,226 | 550 | 145 | 38.592727 | 0.721543 | 0.02676 | 0 | 0.273782 | 0 | 0 | 0.09372 | 0.005524 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016241 | null | null | 0.060325 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2027b5613633fe6d30e1185fa72ead32552ca7e9 | 1,560 | py | Python | private_files/views.py | vilamatica/django-private-files | ad786565b014f95a76020d593a59c43e95e35d1f | [
"BSD-3-Clause"
] | 4 | 2018-08-03T14:51:18.000Z | 2021-08-13T03:12:42.000Z | private_files/views.py | vilamatica/django-private-files | ad786565b014f95a76020d593a59c43e95e35d1f | [
"BSD-3-Clause"
] | 2 | 2018-11-21T11:30:24.000Z | 2018-11-21T11:44:18.000Z | private_files/views.py | vilamatica/django-private-files | ad786565b014f95a76020d593a59c43e95e35d1f | [
"BSD-3-Clause"
] | 2 | 2018-10-02T09:44:20.000Z | 2018-11-22T23:53:44.000Z | try:
from urllib.parse import unquote
except ImportError:
from urllib import unquote
from django.conf import settings
from django.http import Http404
from django.core.exceptions import PermissionDenied
from django.apps import apps
from django.shortcuts import get_object_or_404
from django.core.cache import cac... | 37.142857 | 105 | 0.735256 | 210 | 1,560 | 5.285714 | 0.314286 | 0.072072 | 0.076577 | 0.045946 | 0.135135 | 0.135135 | 0.135135 | 0.135135 | 0.075676 | 0 | 0 | 0.011556 | 0.167949 | 1,560 | 41 | 106 | 38.04878 | 0.843606 | 0 | 0 | 0.228571 | 0 | 0 | 0.071795 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.371429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.