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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1c6e577cca14c05f444d256994b2a34cf07160c | 21,020 | py | Python | xml2ddl/xml2ddl/PostgreSQLInterface.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | xml2ddl/xml2ddl/PostgreSQLInterface.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | xml2ddl/xml2ddl/PostgreSQLInterface.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | #! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
from downloadCommon import DownloadCommon, getSeqName
from DdlCommonInterface import DdlCommonInterface
import re
class PgDownloader(DownloadCommon):
""" Silly me, I didn't know about INFORMATION_SCHEMA """
def __init__(self):
self.strDbms = 'postgre... | 39.585687 | 193 | 0.580875 | 2,218 | 21,020 | 5.427412 | 0.207845 | 0.039874 | 0.03248 | 0.027413 | 0.534723 | 0.462203 | 0.446918 | 0.428227 | 0.399734 | 0.367669 | 0 | 0.005951 | 0.312464 | 21,020 | 530 | 194 | 39.660377 | 0.827014 | 0.079496 | 0 | 0.432 | 0 | 0.018667 | 0.321603 | 0.021664 | 0.002667 | 0 | 0.00066 | 0.001887 | 0 | 0 | null | null | 0.002667 | 0.010667 | null | null | 0.008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d1ca1296ebde8d00e21cee930e90bb111d249984 | 758 | py | Python | corehq/apps/reports/filters/search.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/reports/filters/search.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/reports/filters/search.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from django.utils.translation import ugettext_lazy
from corehq.apps.reports.filters.base import BaseReportFilter
class SearchFilter(BaseReportFilter):
slug = "search_query"
template = "reports/filters/search.html"
label = ugettext_lazy("Search")
# bubble help, should use ugettext_lazy
search_help... | 30.32 | 64 | 0.699208 | 90 | 758 | 5.611111 | 0.422222 | 0.178218 | 0.106931 | 0.083168 | 0.122772 | 0.122772 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217678 | 758 | 24 | 65 | 31.583333 | 0.851602 | 0.105541 | 0 | 0 | 0 | 0 | 0.164444 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.647059 | 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 |
d1cd320dbe491dadd4ad9959b5538bc9a11c3637 | 5,120 | py | Python | secret.py | VegetableCat/qqzone | a2eea60ad990e2416dee8701c73fce62c9178be8 | [
"MIT"
] | 3 | 2017-02-28T05:46:31.000Z | 2017-08-01T00:33:32.000Z | secret.py | VegetableCat/qqzone | a2eea60ad990e2416dee8701c73fce62c9178be8 | [
"MIT"
] | null | null | null | secret.py | VegetableCat/qqzone | a2eea60ad990e2416dee8701c73fce62c9178be8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding:utf-8
import json
import requests
import os
import time
import sys
import argparse
reload(sys)
sys.setdefaultencoding('utf-8')
def loadCookie():
cwd = os.getcwd()
filename='cookie.txt'
cookiefile = os.path.join(cwd,filename)
if not os.path.exists(cookiefile):
p... | 29.94152 | 165 | 0.563867 | 648 | 5,120 | 4.388889 | 0.359568 | 0.028481 | 0.005274 | 0.023207 | 0.090717 | 0.063994 | 0.027426 | 0.027426 | 0.027426 | 0.027426 | 0 | 0.028426 | 0.27168 | 5,120 | 170 | 166 | 30.117647 | 0.734245 | 0.029688 | 0 | 0.09375 | 0 | 0.015625 | 0.226411 | 0.02379 | 0 | 0 | 0.002016 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.085938 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d1ceb53a599a1e16786e1e57240921fb8d0c4005 | 2,936 | py | Python | momiji/cogs/MomijiCommands.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | 16 | 2019-02-12T17:16:03.000Z | 2021-07-16T05:36:06.000Z | momiji/cogs/MomijiCommands.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | null | null | null | momiji/cogs/MomijiCommands.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | 5 | 2019-12-07T10:34:36.000Z | 2021-03-05T12:21:53.000Z | from momiji.modules import permissions
from discord.ext import commands
class MomijiCommands(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="bridge", brief="Bridge the channel")
@commands.check(permissions.is_admin)
@commands.check(permissions.is_not_ignored)
... | 49.762712 | 114 | 0.656676 | 396 | 2,936 | 4.747475 | 0.257576 | 0.081915 | 0.095745 | 0.111702 | 0.528191 | 0.464362 | 0.426064 | 0.409574 | 0.370213 | 0.370213 | 0 | 0 | 0.218665 | 2,936 | 58 | 115 | 50.62069 | 0.819529 | 0.03406 | 0 | 0.102564 | 0 | 0 | 0.3012 | 0.0188 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.128205 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d1d239dbb83a8b15f489e8cd5dbbcf274128b81e | 2,276 | py | Python | tests/test_structs.py | avivazran/UnrealEnginePython | 758ad1e5b3a871442d00bdc3144e246fa443098f | [
"MIT"
] | 2,350 | 2016-08-08T17:00:16.000Z | 2022-03-31T22:37:15.000Z | tests/test_structs.py | avivazran/UnrealEnginePython | 758ad1e5b3a871442d00bdc3144e246fa443098f | [
"MIT"
] | 820 | 2016-08-08T16:35:26.000Z | 2022-03-24T05:09:51.000Z | tests/test_structs.py | avivazran/UnrealEnginePython | 758ad1e5b3a871442d00bdc3144e246fa443098f | [
"MIT"
] | 658 | 2016-08-10T16:26:24.000Z | 2022-03-30T02:42:22.000Z | import unittest
import unreal_engine as ue
from unreal_engine.structs import ColorMaterialInput, Key
from unreal_engine.structs import StaticMeshSourceModel, MeshBuildSettings
class TestStructs(unittest.TestCase):
def test_new_struct(self):
material_input = ColorMaterialInput()
self.assertTrue('M... | 37.933333 | 87 | 0.732425 | 249 | 2,276 | 6.506024 | 0.220884 | 0.157407 | 0.156173 | 0.103704 | 0.454321 | 0.230864 | 0.12716 | 0.058025 | 0 | 0 | 0 | 0.02043 | 0.182777 | 2,276 | 59 | 88 | 38.576271 | 0.850538 | 0 | 0 | 0.090909 | 0 | 0 | 0.009239 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.136364 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1d2bced8ed42153e75ca19219fbc798d53e3427 | 2,982 | py | Python | converse/models.py | iivvoo/converse-server | 5cc8449a5ae045d5adb757f595d85d117fb8428d | [
"0BSD"
] | null | null | null | converse/models.py | iivvoo/converse-server | 5cc8449a5ae045d5adb757f595d85d117fb8428d | [
"0BSD"
] | 2 | 2016-04-23T11:11:15.000Z | 2016-04-24T10:27:16.000Z | converse/models.py | iivvoo/converse-server | 5cc8449a5ae045d5adb757f595d85d117fb8428d | [
"0BSD"
] | null | null | null | import datetime
import io
"""
Base models. Can get backend specific deratives
"""
from .avatar import AvatarFactory
avatarfactory = AvatarFactory()
class Event:
CONNECT = 0
DISCONNECT = 1
CREATE_CHANNEL = 10
CHANNEL_MESSAGE = 11
USERJOIN = 12
USERPART = 13
NICKCHANGE = 14
def _... | 22.421053 | 77 | 0.577129 | 350 | 2,982 | 4.677143 | 0.331429 | 0.04887 | 0.047037 | 0.027489 | 0.138668 | 0.078192 | 0.078192 | 0.078192 | 0.078192 | 0.078192 | 0 | 0.011736 | 0.314219 | 2,982 | 132 | 78 | 22.590909 | 0.788753 | 0.068075 | 0 | 0.233333 | 0 | 0 | 0.017446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.033333 | 0.022222 | 0.522222 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d1d566749e8c415b7ff28e905487c7eed6657474 | 1,410 | py | Python | image_encoding_tests.py | everettknudsen/BME547FinalProject | 9747e059703f4ba2e934a569eb8c865dc3c33a16 | [
"MIT"
] | 3 | 2019-04-12T18:10:29.000Z | 2019-04-28T06:03:12.000Z | image_encoding_tests.py | everettknudsen/BME547FinalProject | 9747e059703f4ba2e934a569eb8c865dc3c33a16 | [
"MIT"
] | 38 | 2019-04-10T18:22:52.000Z | 2019-05-01T01:01:58.000Z | image_encoding_tests.py | everettknudsen/BME547FinalProject | 9747e059703f4ba2e934a569eb8c865dc3c33a16 | [
"MIT"
] | 1 | 2019-08-08T14:10:37.000Z | 2019-08-08T14:10:37.000Z | import base64
import io
from matplotlib import pyplot as plt
import matplotlib.image as mpimg
import sys
from PIL import Image
import numpy as np
from skimage import io as im
def encode_image_as_b64(img_NParray):
"""
A function which takes an image as a np array
and encdes it into a base64 string which ca... | 29.375 | 63 | 0.712057 | 222 | 1,410 | 4.328829 | 0.405405 | 0.037461 | 0.037461 | 0.033299 | 0.03538 | 0.03538 | 0 | 0 | 0 | 0 | 0 | 0.033065 | 0.206383 | 1,410 | 47 | 64 | 30 | 0.825737 | 0.341844 | 0 | 0 | 0 | 0 | 0.080139 | 0.045296 | 0 | 0 | 0 | 0 | 0 | 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 |
d1d5c4248dc98ceb78d1d3d12f2b463f38fb1d21 | 899 | py | Python | IVTa/2014/BURMISTROV_V_D/task4_45.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | IVTa/2014/BURMISTROV_V_D/task4_45.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | IVTa/2014/BURMISTROV_V_D/task4_45.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | # Задача 4. Вариант 45.
# Напишите программу, которая выводит имя, под которым скрывается Борис Николаевич Кампов. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех... | 47.315789 | 445 | 0.775306 | 114 | 899 | 6.061404 | 0.72807 | 0.026049 | 0.047757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024772 | 0.14683 | 899 | 18 | 446 | 49.944444 | 0.876141 | 0.546162 | 0 | 0 | 0 | 0 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d1e483110a88ac09d7ba1644a21359caf4a4edeb | 3,274 | py | Python | s_core/migrations/0001_initial.py | jrbenriquez/sarimuson2 | cdaedb130bd7b3ef065e4503228cc1610ae43fda | [
"MIT"
] | null | null | null | s_core/migrations/0001_initial.py | jrbenriquez/sarimuson2 | cdaedb130bd7b3ef065e4503228cc1610ae43fda | [
"MIT"
] | null | null | null | s_core/migrations/0001_initial.py | jrbenriquez/sarimuson2 | cdaedb130bd7b3ef065e4503228cc1610ae43fda | [
"MIT"
] | null | null | null | # Generated by Django 3.0.10 on 2020-10-17 15:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('s_inventory', '0001_initial'),
migrations.swappable_dependency... | 49.606061 | 149 | 0.601405 | 344 | 3,274 | 5.534884 | 0.293605 | 0.029412 | 0.044118 | 0.069328 | 0.644433 | 0.644433 | 0.56355 | 0.520483 | 0.520483 | 0.495273 | 0 | 0.017623 | 0.254734 | 3,274 | 65 | 150 | 50.369231 | 0.762705 | 0.01405 | 0 | 0.465517 | 1 | 0 | 0.126162 | 0.013949 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.12069 | 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 |
d1e8b74e42ef5a99602ce3a7883a288a33eced3c | 12,017 | py | Python | FINN/transforms/transformations.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | null | null | null | FINN/transforms/transformations.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | null | null | null | FINN/transforms/transformations.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | 1 | 2021-03-18T01:43:29.000Z | 2021-03-18T01:43:29.000Z | # Copyright (c) 2018, Xilinx
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | 38.028481 | 88 | 0.63743 | 1,495 | 12,017 | 5.080936 | 0.281605 | 0.021722 | 0.015798 | 0.022512 | 0.275013 | 0.223144 | 0.198526 | 0.198526 | 0.192733 | 0.192733 | 0 | 0.008052 | 0.276608 | 12,017 | 315 | 89 | 38.149206 | 0.865754 | 0.384955 | 0 | 0.538462 | 0 | 0 | 0.099207 | 0 | 0 | 0 | 0 | 0.003175 | 0.004525 | 1 | 0.063348 | false | 0.090498 | 0.0181 | 0 | 0.144796 | 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 |
d1eb366938f7ef51c5f9b534f3e9a823c48c3790 | 446 | py | Python | OOPS/Inheritance/MultipleInheritance.py | prathimacode-hub/PythonScripts | e80d472705315b55ae61205c4606c46dcbf62cfc | [
"MIT"
] | 5 | 2020-11-24T12:32:11.000Z | 2020-12-08T18:14:25.000Z | OOPS/Inheritance/MultipleInheritance.py | prathimacode-hub/PythonScripts | e80d472705315b55ae61205c4606c46dcbf62cfc | [
"MIT"
] | 1 | 2021-02-28T10:07:10.000Z | 2021-02-28T10:07:10.000Z | OOPS/Inheritance/MultipleInheritance.py | prathimacode-hub/PythonScripts | e80d472705315b55ae61205c4606c46dcbf62cfc | [
"MIT"
] | 8 | 2020-11-24T09:48:02.000Z | 2021-05-28T15:10:12.000Z | class A:
def f1(self):
print("F1 is working")
def f2(self):
print("F2 is working")
class B():
def f3(self):
print("F3 is working")
def f4(self):
print("F4 is working")
class C(A,B): #Multiple Inheriatance
def f5(self):
print("F5 is working")
a1=A()
a1.... | 14.387097 | 42 | 0.538117 | 74 | 446 | 3.243243 | 0.324324 | 0.1875 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082019 | 0.289238 | 446 | 31 | 43 | 14.387097 | 0.675079 | 0.168161 | 0 | 0 | 0 | 0 | 0.176152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0 | 0.363636 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d1ec268cee1c72559869f6d45b849391385c035c | 871 | py | Python | scripts/pfctl_ipdb_reinit.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | scripts/pfctl_ipdb_reinit.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | scripts/pfctl_ipdb_reinit.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import logging
import subprocess
from sqlalchemy import func, and_, or_, not_
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')
##logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', ... | 23.540541 | 124 | 0.698048 | 126 | 871 | 4.619048 | 0.492063 | 0.04811 | 0.079038 | 0.103093 | 0.154639 | 0.154639 | 0.154639 | 0.154639 | 0.154639 | 0.154639 | 0 | 0 | 0.156142 | 871 | 36 | 125 | 24.194444 | 0.791837 | 0.163031 | 0 | 0 | 0 | 0 | 0.122392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d1ef930c19ff3a1f6a1490673308d60cc074bc21 | 3,576 | py | Python | nlr/utils/loggers.py | john-james-sf/nlr | 57dc67aadb5cfd0c8f0181ddf672c606a865e45b | [
"BSD-3-Clause"
] | null | null | null | nlr/utils/loggers.py | john-james-sf/nlr | 57dc67aadb5cfd0c8f0181ddf672c606a865e45b | [
"BSD-3-Clause"
] | null | null | null | nlr/utils/loggers.py | john-james-sf/nlr | 57dc67aadb5cfd0c8f0181ddf672c606a865e45b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ======================================================================================================================== #
# Project : Natural Language Recommendation #
# Version : 0.1.0 ... | 62.736842 | 124 | 0.295861 | 217 | 3,576 | 4.797235 | 0.562212 | 0.067243 | 0.0317 | 0.03074 | 0.036503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018831 | 0.435682 | 3,576 | 56 | 125 | 63.857143 | 0.497027 | 0.738255 | 0 | 0.2 | 0 | 0 | 0.048698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1f3a92a4960e8ea44452d70c208a8de3ef1b6e3 | 6,645 | py | Python | prouter/handlers/files.py | datadvance/pRouter | 40a1c4fbe680b552eca577b31f08f7befc62f8bd | [
"MIT"
] | 8 | 2017-09-07T14:41:47.000Z | 2019-10-26T23:54:48.000Z | prouter/handlers/files.py | datadvance/pRouter | 40a1c4fbe680b552eca577b31f08f7befc62f8bd | [
"MIT"
] | null | null | null | prouter/handlers/files.py | datadvance/pRouter | 40a1c4fbe680b552eca577b31f08f7befc62f8bd | [
"MIT"
] | null | null | null | #
# coding: utf-8
# Copyright (c) 2018 DATADVANCE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge,... | 36.916667 | 77 | 0.652822 | 772 | 6,645 | 5.423575 | 0.281088 | 0.028421 | 0.048483 | 0.025794 | 0.433485 | 0.395749 | 0.381419 | 0.357774 | 0.357774 | 0.330069 | 0 | 0.002901 | 0.27374 | 6,645 | 179 | 78 | 37.122905 | 0.864691 | 0.232506 | 0 | 0.393162 | 0 | 0 | 0.078343 | 0.004922 | 0 | 0 | 0 | 0.011173 | 0 | 1 | 0 | false | 0.008547 | 0.025641 | 0 | 0.068376 | 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 |
060163d34957b21f38144f3cbcf75e359f3fda45 | 3,696 | py | Python | src/systemidentification/canonical_plots.py | Carreau/phd-dissertation | f283cf3819af019027a4e017141ec51029a0e46c | [
"CC-BY-3.0"
] | null | null | null | src/systemidentification/canonical_plots.py | Carreau/phd-dissertation | f283cf3819af019027a4e017141ec51029a0e46c | [
"CC-BY-3.0"
] | 1 | 2015-01-23T10:18:16.000Z | 2015-01-23T10:18:16.000Z | src/systemidentification/canonical_plots.py | Carreau/phd-dissertation | f283cf3819af019027a4e017141ec51029a0e46c | [
"CC-BY-3.0"
] | null | null | null | import sys
sys.path.append('..')
from load_paths import read
import cPickle
import numpy as np
import matplotlib.pyplot as plt
from dtk import bicycle, control
from canonicalbicycleid import canonical_bicycle_id as cbi
goldenRatio = (1. + np.sqrt(5.)) / 2.
params = {'axes.labelsize': 10,
'axes.grid': False,... | 34.222222 | 76 | 0.70184 | 563 | 3,696 | 4.502664 | 0.298401 | 0.010256 | 0.160947 | 0.16568 | 0.500197 | 0.435503 | 0.412623 | 0.31716 | 0.31716 | 0.16568 | 0 | 0.028554 | 0.137716 | 3,696 | 107 | 77 | 34.542056 | 0.766865 | 0.093074 | 0 | 0.202532 | 0 | 0 | 0.217066 | 0.179042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088608 | 0 | 0.088608 | 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 |
06037d72b84e67917228120be8947f0d966a0b8e | 510 | py | Python | dw/generate/routes.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | dw/generate/routes.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | dw/generate/routes.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | from flask import render_template, url_for, jsonify
from dw.models import Name
from dw.generate import bp
@bp.route('/diceware')
def diceware():
names = Name.query.all()
return render_template('generate/diceware.html', names=names)
@bp.route('/lists')
def get_data():
names = Name.query.all()
dwLists =... | 26.842105 | 65 | 0.664706 | 71 | 510 | 4.71831 | 0.43662 | 0.083582 | 0.083582 | 0.101493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 510 | 19 | 66 | 26.842105 | 0.821078 | 0 | 0 | 0.125 | 1 | 0 | 0.072407 | 0.043053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06049327e4e8380df728e43ad26da54e749827a4 | 3,558 | py | Python | app.py | kairanaquazi/loginpage- | 164a3456da16e5deeafb716219c8b56ff73f05dd | [
"Apache-2.0"
] | null | null | null | app.py | kairanaquazi/loginpage- | 164a3456da16e5deeafb716219c8b56ff73f05dd | [
"Apache-2.0"
] | null | null | null | app.py | kairanaquazi/loginpage- | 164a3456da16e5deeafb716219c8b56ff73f05dd | [
"Apache-2.0"
] | null | null | null | from flask import *
from flask_bootstrap import *
from flask_moment import Moment
from datetime import datetime
from flask_mail import *
import os
localpass = "admin"
app = Flask(__name__)
Bootstrap(app)
Moment(app)
print('no yeet')
app.config['SECRET_KEY'] = "SomeSecretText"
users = {"kairan.quazi@gmail.com": {'first_... | 25.597122 | 116 | 0.643058 | 419 | 3,558 | 5.329356 | 0.300716 | 0.035826 | 0.071652 | 0.030452 | 0.148231 | 0.135244 | 0.103896 | 0.103896 | 0.103896 | 0.049261 | 0 | 0.015045 | 0.19674 | 3,558 | 138 | 117 | 25.782609 | 0.76627 | 0.003373 | 0 | 0.12 | 0 | 0 | 0.247743 | 0.037528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13 | false | 0.15 | 0.06 | 0.06 | 0.35 | 0.03 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0604ab62262604d4fd46a83a6b7fbfd8bdf6bbbd | 593 | py | Python | mybot.py | VeggieVampire/AI-Shell | 4ef62e4c83b44908a1e6f2bd93e469d5580793ca | [
"BSD-2-Clause"
] | null | null | null | mybot.py | VeggieVampire/AI-Shell | 4ef62e4c83b44908a1e6f2bd93e469d5580793ca | [
"BSD-2-Clause"
] | null | null | null | mybot.py | VeggieVampire/AI-Shell | 4ef62e4c83b44908a1e6f2bd93e469d5580793ca | [
"BSD-2-Clause"
] | null | null | null | import aiml
import commands
import subprocess
#import ~/I2C-1602-LCD/print.py
k = aiml.Kernel()
# load the aiml file
k.learn("aiml/*.aiml")
# set a constant
k.setBotPredicate("name", "Hal9k")
while True:
input = raw_input("You: ")
response = k.respond(input)
# print out on the shell
print "Hal9k... | 24.708333 | 88 | 0.659359 | 89 | 593 | 4.382022 | 0.595506 | 0.053846 | 0.076923 | 0.076923 | 0.087179 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055215 | 0.175379 | 593 | 23 | 89 | 25.782609 | 0.742331 | 0.438449 | 0 | 0 | 0 | 0 | 0.166154 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06053a45daddd44b632c8a380766df053ced7b57 | 1,028 | py | Python | extensions/manakin/src/sockets/incoming.py | GabeCordo/python_node_tor | 8d06dda51d8472c84fb1f9a8d00128bc376d59ca | [
"MIT"
] | 1 | 2021-01-19T02:41:54.000Z | 2021-01-19T02:41:54.000Z | extensions/manakin/src/sockets/incoming.py | GabeCordo/python_node_tor | 8d06dda51d8472c84fb1f9a8d00128bc376d59ca | [
"MIT"
] | null | null | null | extensions/manakin/src/sockets/incoming.py | GabeCordo/python_node_tor | 8d06dda51d8472c84fb1f9a8d00128bc376d59ca | [
"MIT"
] | 1 | 2021-01-14T02:44:45.000Z | 2021-01-14T02:44:45.000Z | #####################################
# Python Imports
#####################################
from quickscmp.bitstream import basic
from sys import path
#####################################
# Manakin Imports
#####################################
path.append('../')
from chaching import fileHandler
##########... | 23.906977 | 76 | 0.54572 | 98 | 1,028 | 5.683673 | 0.663265 | 0.05386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002356 | 0.174125 | 1,028 | 43 | 77 | 23.906977 | 0.65371 | 0.288911 | 0 | 0 | 0 | 0 | 0.008147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.2 | 0 | 0.266667 | 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 |
06149e1b966e063a95cef2685a75980abe739dd3 | 3,354 | py | Python | mzito/activities/models.py | kipkemei/pawa | ae1f4005ad275dab65ef9fad4e81cf577cc90d88 | [
"MIT"
] | null | null | null | mzito/activities/models.py | kipkemei/pawa | ae1f4005ad275dab65ef9fad4e81cf577cc90d88 | [
"MIT"
] | null | null | null | mzito/activities/models.py | kipkemei/pawa | ae1f4005ad275dab65ef9fad4e81cf577cc90d88 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.html import escape
from django.contrib import admin
class Activity(models.Model):
FAVORITE = 'F'
LIKE = 'L'
UP_V... | 34.22449 | 129 | 0.605247 | 388 | 3,354 | 5.010309 | 0.270619 | 0.046296 | 0.04321 | 0.055556 | 0.421296 | 0.421296 | 0.377058 | 0.3143 | 0.3143 | 0.253086 | 0 | 0.011419 | 0.268933 | 3,354 | 97 | 130 | 34.57732 | 0.781403 | 0.009541 | 0 | 0.243902 | 0 | 0.036585 | 0.119349 | 0.023508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.073171 | 0.012195 | 0.52439 | 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 |
ae0482f0d7d5c481475051db8efbb823ac2b28f0 | 3,061 | py | Python | scripts/upload-and-comment.py | turner-renderer/renderer | e56229ee88cff895e45929b5fddd03967df94660 | [
"Apache-2.0"
] | null | null | null | scripts/upload-and-comment.py | turner-renderer/renderer | e56229ee88cff895e45929b5fddd03967df94660 | [
"Apache-2.0"
] | 31 | 2017-01-25T07:32:41.000Z | 2017-06-14T20:51:24.000Z | scripts/upload-and-comment.py | turner-renderer/turner | e56229ee88cff895e45929b5fddd03967df94660 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import argparse
import b2.api
import json
import os
import requests
def upload_images(bucket, image_files):
"""
Uploads all images to B2 bucket.
:param image_files paths to images
:return: yields files infos.
"""
for image_file in image_files:
target_name = os.pa... | 32.56383 | 79 | 0.665795 | 418 | 3,061 | 4.705742 | 0.342105 | 0.025419 | 0.032537 | 0.030503 | 0.137265 | 0.092527 | 0.027453 | 0 | 0 | 0 | 0 | 0.008425 | 0.224436 | 3,061 | 93 | 80 | 32.913978 | 0.820135 | 0.041163 | 0 | 0.038462 | 0 | 0 | 0.205095 | 0.01943 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096154 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae070450fe19067dcd63c637ae606ee233154259 | 42,978 | py | Python | tools/Weaver.py | rshariffdeen/PatchWeave | e41da9e506be8497da2ec9acacd327b8c942f7c8 | [
"MIT"
] | 5 | 2021-02-23T00:50:21.000Z | 2022-03-22T21:23:39.000Z | tools/Weaver.py | rshariffdeen/PatchWeave | e41da9e506be8497da2ec9acacd327b8c942f7c8 | [
"MIT"
] | null | null | null | tools/Weaver.py | rshariffdeen/PatchWeave | e41da9e506be8497da2ec9acacd327b8c942f7c8 | [
"MIT"
] | 1 | 2019-08-14T08:50:48.000Z | 2019-08-14T08:50:48.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
from common.Utilities import execute_command, backup_file, show_partial_diff, get_code, error_exit
from common import Definitions, Values
import phases.Concolic
from ast import ASTGenerator
from phases import Trace
import Mapper
import Identifier
im... | 56.401575 | 127 | 0.536321 | 4,646 | 42,978 | 4.47331 | 0.054886 | 0.050522 | 0.018525 | 0.008084 | 0.75148 | 0.715056 | 0.664726 | 0.627676 | 0.613242 | 0.599047 | 0 | 0.002155 | 0.395365 | 42,978 | 761 | 128 | 56.47569 | 0.797622 | 0.072107 | 0 | 0.585 | 0 | 0 | 0.046932 | 0 | 0 | 0 | 0 | 0.001314 | 0 | 1 | 0.015 | false | 0 | 0.035 | 0 | 0.066667 | 0.005 | 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 |
ae0f7ec5ffdb4fbc10a933c076a23c093ea21267 | 441 | py | Python | people/migrations/0007_personpage_state_province.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 1 | 2021-02-05T19:50:13.000Z | 2021-02-05T19:50:13.000Z | people/migrations/0007_personpage_state_province.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 59 | 2020-06-17T22:21:51.000Z | 2022-02-10T05:00:01.000Z | people/migrations/0007_personpage_state_province.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 2 | 2020-07-01T14:11:09.000Z | 2020-08-10T17:27:26.000Z | # Generated by Django 2.2.5 on 2020-03-30 21:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0006_auto_20180607_1804'),
]
operations = [
migrations.AddField(
model_name='personpage',
name='state_prov... | 23.210526 | 96 | 0.62585 | 50 | 441 | 5.38 | 0.8 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101227 | 0.260771 | 441 | 18 | 97 | 24.5 | 0.723926 | 0.102041 | 0 | 0 | 1 | 0 | 0.177665 | 0.058376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae132c0927344f73f2b399001a910548ab8250cb | 940 | py | Python | stopWordRemoval.py | Mudasir-IIIT-Bangalore/Emotion-based-Gender-Prediction-in-OSNs | 39edd249e4197cc4941dd3d96357d7afa2af5612 | [
"BSD-2-Clause"
] | 1 | 2022-01-31T12:13:52.000Z | 2022-01-31T12:13:52.000Z | stopWordRemoval.py | Mudasir-IIIT-Bangalore/Emotion-based-Gender-Prediction-in-OSNs | 39edd249e4197cc4941dd3d96357d7afa2af5612 | [
"BSD-2-Clause"
] | null | null | null | stopWordRemoval.py | Mudasir-IIIT-Bangalore/Emotion-based-Gender-Prediction-in-OSNs | 39edd249e4197cc4941dd3d96357d7afa2af5612 | [
"BSD-2-Clause"
] | null | null | null | import nltk
from nltk.tokenize import word_tokenize,sent_tokenize
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
import pprint
posts = open("C:/Users/mudasirw/Desktop/RESEARCH @N T N U -JULY 2019/GENDER PREDICTION/python scripts/textAnalysis/female_post_content.txt", 'r')
txt1=posts.read(... | 21.860465 | 146 | 0.657447 | 123 | 940 | 4.902439 | 0.439024 | 0.059701 | 0.046434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008783 | 0.152128 | 940 | 43 | 147 | 21.860465 | 0.747804 | 0.018085 | 0 | 0 | 0 | 0.066667 | 0.301158 | 0.150579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae20b1896443d683e6b4feccf2b3edd8b70f86c1 | 4,280 | py | Python | config.py | Forcepoint/fp-bd-dim-ingress-stix-taxii | efc36a8790457a824c2643c833af0b7e0c119f99 | [
"Apache-2.0"
] | 1 | 2021-02-17T20:29:55.000Z | 2021-02-17T20:29:55.000Z | config.py | Forcepoint/fp-bd-dim-ingress-stix-taxii | efc36a8790457a824c2643c833af0b7e0c119f99 | [
"Apache-2.0"
] | null | null | null | config.py | Forcepoint/fp-bd-dim-ingress-stix-taxii | efc36a8790457a824c2643c833af0b7e0c119f99 | [
"Apache-2.0"
] | null | null | null | import yaml
import uuid
import os.path
from os import path
class Interval:
data = {}
def load(self):
# Load in config file details
try:
with open('config/update_interval.yaml') as config:
self.data = yaml.load(config, Loader=yaml.FullLoader)
except FileNotF... | 38.214286 | 118 | 0.512617 | 470 | 4,280 | 4.521277 | 0.2 | 0.045176 | 0.039529 | 0.035294 | 0.352 | 0.299294 | 0.251294 | 0.225882 | 0.165647 | 0.165647 | 0 | 0.013828 | 0.357944 | 4,280 | 111 | 119 | 38.558559 | 0.759461 | 0.031308 | 0 | 0.264368 | 0 | 0 | 0.135417 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114943 | false | 0.057471 | 0.045977 | 0.022989 | 0.275862 | 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 |
ae2e5ca4255143f3930fa14649202ac06caf08ef | 7,158 | py | Python | carrot/vector_graphic.py | mzguntalan/vegetable | 17f19bcab3f73169cd9ff743e7c4c68d3b26de0b | [
"MIT"
] | 1 | 2022-03-22T07:27:45.000Z | 2022-03-22T07:27:45.000Z | carrot/vector_graphic.py | mzguntalan/vegetable | 17f19bcab3f73169cd9ff743e7c4c68d3b26de0b | [
"MIT"
] | null | null | null | carrot/vector_graphic.py | mzguntalan/vegetable | 17f19bcab3f73169cd9ff743e7c4c68d3b26de0b | [
"MIT"
] | null | null | null | from functools import reduce
from itertools import tee, count, repeat
from typing import Tuple, Optional, Callable, Iterator
import operator
class VectorGraphic:
def __init__(
self,
start_point: Tuple[float, float],
end_point: Tuple[float, float],
f_t: Optional[Callable[[float], Tu... | 35.79 | 88 | 0.639145 | 902 | 7,158 | 4.626386 | 0.121951 | 0.058231 | 0.077642 | 0.161754 | 0.525521 | 0.421519 | 0.334292 | 0.265756 | 0.215433 | 0.173257 | 0 | 0.009847 | 0.276474 | 7,158 | 199 | 89 | 35.969849 | 0.795907 | 0 | 0 | 0.213018 | 0 | 0 | 0.016206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100592 | false | 0.005917 | 0.023669 | 0.047337 | 0.236686 | 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 |
ae35ed4cfd223fe3efd07fddc7e2fbe0a5327a01 | 519 | py | Python | src/dietpdf/item/PDFItem.py | Zigazou/dietpdf | 4608ea2d9d54861d4d894b725a60895e0bdc131a | [
"MIT"
] | 6 | 2022-02-07T06:17:41.000Z | 2022-02-15T17:29:16.000Z | src/dietpdf/item/PDFItem.py | Zigazou/dietpdf | 4608ea2d9d54861d4d894b725a60895e0bdc131a | [
"MIT"
] | 2 | 2022-02-08T10:00:08.000Z | 2022-02-08T12:59:42.000Z | src/dietpdf/item/PDFItem.py | Zigazou/dietpdf | 4608ea2d9d54861d4d894b725a60895e0bdc131a | [
"MIT"
] | null | null | null | __author__ = "Frédéric BISSON"
__copyright__ = "Copyright 2022, Frédéric BISSON"
__credits__ = ["Frédéric BISSON"]
__license__ = "mit"
__maintainer__ = "Frédéric BISSON"
__email__ = "zigazou@protonmail.com"
"""Base class for any PDF item that might be encountered in a PDF file.
"""
from ..token.PDFToken import PDFTok... | 27.315789 | 75 | 0.726397 | 69 | 519 | 5.115942 | 0.57971 | 0.15864 | 0.067989 | 0.084986 | 0.305949 | 0.305949 | 0.305949 | 0.305949 | 0.305949 | 0.305949 | 0 | 0.009479 | 0.186898 | 519 | 19 | 76 | 27.315789 | 0.827014 | 0.263969 | 0 | 0 | 0 | 0 | 0.349481 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae368a3905fa4f6ed61916d9ab66a13083ed944c | 2,266 | py | Python | PiCN/Layers/RepositoryLayer/Repository/SimpleFileSystemRepository.py | tairun/PiCN | be73b23caef8bac726e340668e34ed194efe8485 | [
"BSD-3-Clause"
] | null | null | null | PiCN/Layers/RepositoryLayer/Repository/SimpleFileSystemRepository.py | tairun/PiCN | be73b23caef8bac726e340668e34ed194efe8485 | [
"BSD-3-Clause"
] | 5 | 2020-07-15T09:01:42.000Z | 2020-09-28T08:45:21.000Z | PiCN/Layers/RepositoryLayer/Repository/SimpleFileSystemRepository.py | tairun/PiCN | be73b23caef8bac726e340668e34ed194efe8485 | [
"BSD-3-Clause"
] | null | null | null | """A Simple File System Repository"""
import os.path
from multiprocessing import Manager
from PiCN.Layers.RepositoryLayer.Repository import BaseRepository
from PiCN.Packets import Content, Name
from PiCN.Logger import Logger
class SimpleFileSystemRepository(BaseRepository):
"""A Simple File System ... | 41.2 | 168 | 0.642101 | 249 | 2,266 | 5.654618 | 0.301205 | 0.089489 | 0.036932 | 0.024148 | 0.455966 | 0.417614 | 0.367898 | 0.367898 | 0.367898 | 0.367898 | 0 | 0.001199 | 0.263901 | 2,266 | 54 | 169 | 41.962963 | 0.842926 | 0.099294 | 0 | 0.465116 | 0 | 0 | 0.002533 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.418605 | 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 |
ae37a9cb703ecbd2e978d30995cf6dbaa07e3b54 | 687 | py | Python | Programming_Assignment_4/proj4/sample.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | 1 | 2017-11-18T15:34:59.000Z | 2017-11-18T15:34:59.000Z | Programming_Assignment_4/proj4/sample.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | null | null | null | Programming_Assignment_4/proj4/sample.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | null | null | null | from oracle import *
import sys
#if len(sys.argv) < 2:
# print "Usage: python sample.py <filename>"
# sys.exit(-1)
#f = open(sys.argv[1])
#data = f.read()
#f.close()
m1 = "I, the server, h"
m2 = "ereby agree that"
m3 = " I will pay $100"
m4 = " to this student"
Oracle_Connect()
data1 = m1+m2;
tag1 = Mac(data... | 15.613636 | 47 | 0.633188 | 115 | 687 | 3.765217 | 0.530435 | 0.032333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058288 | 0.200873 | 687 | 43 | 48 | 15.976744 | 0.730419 | 0.186317 | 0 | 0 | 0 | 0 | 0.220615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ae386e3dc0dc159ed3aded9b6bde2d4c980b1d40 | 4,226 | py | Python | app/revisioner/tests/e2e/e2e_index_rebuild_new_column.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 53 | 2020-07-01T23:11:59.000Z | 2022-03-31T19:10:28.000Z | app/revisioner/tests/e2e/e2e_index_rebuild_new_column.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 5 | 2020-11-25T19:48:57.000Z | 2022-02-27T23:50:18.000Z | app/revisioner/tests/e2e/e2e_index_rebuild_new_column.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 5 | 2020-08-29T16:43:59.000Z | 2022-01-17T19:05:30.000Z | """
Drop an index (`app`.`orderdetails_pkey`) and re-create it with additional columns.
"""
from app.revisioner.tests.e2e import inspected
from app.revisioner.tests.test_e2e import mutate_inspected
preload_fixtures = ['datastore']
inspected_tables = mutate_inspected(inspected.tables_and_views, [])
inspected_indexes... | 31.774436 | 147 | 0.506389 | 372 | 4,226 | 5.551075 | 0.33871 | 0.034867 | 0.084746 | 0.063923 | 0.336562 | 0.302663 | 0.217918 | 0.106538 | 0.106538 | 0.106538 | 0 | 0.020059 | 0.362991 | 4,226 | 132 | 148 | 32.015152 | 0.747028 | 0.034785 | 0 | 0.213115 | 0 | 0 | 0.343896 | 0.006141 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0 | false | 0.057377 | 0.016393 | 0 | 0.016393 | 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 |
ae46de5b56d9c7aa3087c11f3eee9bb7d2c500cb | 1,096 | py | Python | fscognitive/core/cognitive/cognitive.py | anhhoangiot/people_recognition_pi | 92ceaebdef775a42023760360689d473662cb361 | [
"MIT"
] | null | null | null | fscognitive/core/cognitive/cognitive.py | anhhoangiot/people_recognition_pi | 92ceaebdef775a42023760360689d473662cb361 | [
"MIT"
] | null | null | null | fscognitive/core/cognitive/cognitive.py | anhhoangiot/people_recognition_pi | 92ceaebdef775a42023760360689d473662cb361 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2016-10-08
# @Author : Anh Hoang (anhhoang.work.mail@gmail.com)
# @Project : FSCognitive
# @Version : 1.0
import cognitive_face
import abc
import json
from commons import Utilities
class Cognitive(object):
def __init__(self):
super(Cognitive, se... | 26.095238 | 71 | 0.645073 | 134 | 1,096 | 5.126866 | 0.552239 | 0.069869 | 0.058224 | 0.064047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013301 | 0.245438 | 1,096 | 41 | 72 | 26.731707 | 0.817412 | 0.140511 | 0 | 0.16 | 0 | 0 | 0.020507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ae5518553073ceb07b25083c43b61553c33947dc | 10,121 | py | Python | evalution/composes/matrix/dense_matrix.py | esantus/evalution2 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2017-12-06T21:46:26.000Z | 2017-12-06T21:46:26.000Z | evalution/composes/matrix/dense_matrix.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 5 | 2020-03-24T15:27:40.000Z | 2021-06-01T21:47:18.000Z | evalution/composes/matrix/dense_matrix.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2018-02-15T17:13:02.000Z | 2018-02-15T17:13:02.000Z | '''
Created on Sep 17, 2012
@author: Georgiana Dinu, Pham The Nghia
'''
import numpy as np
from warnings import warn
from scipy.sparse import issparse
from composes.utils.num_utils import is_numeric
from composes.matrix.matrix import Matrix
class DenseMatrix(Matrix):
'''
classdocs
'''
def __init__(s... | 27.881543 | 80 | 0.572078 | 1,240 | 10,121 | 4.569355 | 0.18629 | 0.046947 | 0.027003 | 0.025415 | 0.371514 | 0.340099 | 0.32192 | 0.304977 | 0.286622 | 0.253618 | 0 | 0.008001 | 0.345519 | 10,121 | 362 | 81 | 27.958564 | 0.847373 | 0.413299 | 0 | 0.254545 | 0 | 0 | 0.043165 | 0 | 0 | 0 | 0 | 0.008287 | 0.054545 | 1 | 0.218182 | false | 0 | 0.054545 | 0.009091 | 0.472727 | 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 |
ae5c2875b02c2e8693117bda3f452f4ce5a85915 | 1,728 | py | Python | examples/analysis/friends_who_dont_follow.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 80 | 2016-05-15T17:35:22.000Z | 2022-01-07T20:31:07.000Z | examples/analysis/friends_who_dont_follow.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 24 | 2016-05-15T17:27:35.000Z | 2016-07-25T23:29:00.000Z | examples/analysis/friends_who_dont_follow.py | rlugojr/twitter-pandas | 82f706f43e8f6484a64be0b3a1a3b489802430db | [
"BSD-3-Clause"
] | 21 | 2016-05-23T20:14:04.000Z | 2020-05-09T16:42:38.000Z | from twitterpandas import TwitterPandas
from examples.keys import TWITTER_OAUTH_SECRET, TWITTER_OAUTH_TOKEN, TWITTER_CONSUMER_SECRET, TWITTER_CONSUMER_KEY
__author__ = 'willmcginnis'
def friendship_option():
# get our own user id
user_id = tp.api_id
# use it to find all of our own friends (people we fol... | 33.230769 | 114 | 0.670718 | 266 | 1,728 | 4.154135 | 0.334586 | 0.032579 | 0.043439 | 0.045249 | 0.524887 | 0.524887 | 0.524887 | 0.524887 | 0.524887 | 0.524887 | 0 | 0.011791 | 0.214699 | 1,728 | 51 | 115 | 33.882353 | 0.802506 | 0.244792 | 0 | 0.296296 | 0 | 0 | 0.159319 | 0.034029 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae5dd5ace9e205929ff32b198ad8c64f59f947bc | 804 | py | Python | backend/projects/migrations/0009_auto_20220212_1850.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 4 | 2021-10-06T19:09:12.000Z | 2022-03-28T12:14:42.000Z | backend/projects/migrations/0009_auto_20220212_1850.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 2 | 2021-11-30T16:07:05.000Z | 2022-02-17T23:57:00.000Z | backend/projects/migrations/0009_auto_20220212_1850.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2022-02-12 18:50
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("projects", "0008_alter_work_status"),
]
operations = [
migrations.AlterField(
model_name="proj... | 27.724138 | 114 | 0.570896 | 79 | 804 | 5.708861 | 0.607595 | 0.053215 | 0.062084 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044326 | 0.298507 | 804 | 28 | 115 | 28.714286 | 0.755319 | 0.057214 | 0 | 0.272727 | 1 | 0 | 0.165344 | 0.029101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
ae619cac38a3dd9e24046baa3a1c642563a53749 | 4,879 | py | Python | longboard_train_NewArchitecture.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-04-27T19:55:29.000Z | 2020-04-27T19:55:29.000Z | longboard_train_NewArchitecture.py | PatrickJReed/Longboard2 | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-02-26T18:06:09.000Z | 2020-02-26T18:06:09.000Z | longboard_train_NewArchitecture.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | null | null | null | #!/home/ubuntu/miniconda2/bin/python
from __future__ import print_function
import glob, os, gc, sys
import os.path
import csv
import numpy as np
np.random.seed(1337) # for reproducibility
from time import time
from subprocess import (call, Popen, PIPE)
from itertools import product
from IPython.display import display... | 39.991803 | 220 | 0.76737 | 679 | 4,879 | 5.325479 | 0.273932 | 0.053097 | 0.038717 | 0.05531 | 0.364215 | 0.336283 | 0.32135 | 0.32135 | 0.320796 | 0.284292 | 0 | 0.028479 | 0.114778 | 4,879 | 121 | 221 | 40.322314 | 0.808752 | 0.145317 | 0 | 0.114943 | 0 | 0 | 0.079403 | 0.040664 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.448276 | 0 | 0.448276 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae62624c38f566239237f73b7f283a75c5574681 | 1,370 | py | Python | examples/show_live.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | 4 | 2021-01-30T12:26:58.000Z | 2021-11-04T15:26:21.000Z | examples/show_live.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | 2 | 2020-03-12T15:24:04.000Z | 2021-06-30T10:53:32.000Z | examples/show_live.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | 4 | 2020-02-13T10:19:01.000Z | 2021-06-18T18:52:55.000Z | """
Demonstrates how to perform live view of difference data, video, and fft of
dual-frame video.
Visualization takes place during the iteration over the iterator contructed
with the play function. Note that you can use the video for further processing
(correlation analysis)
"""
from conf import SHAPE, NFRAMES, BACK... | 31.860465 | 101 | 0.759124 | 208 | 1,370 | 4.9375 | 0.528846 | 0.035054 | 0.023369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012898 | 0.151095 | 1,370 | 42 | 102 | 32.619048 | 0.870163 | 0.505109 | 0 | 0 | 0 | 0 | 0.046899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae69b2fda9b1cfbaee46a9df8da0b5a4539cd15f | 2,000 | py | Python | 04Cuarto/Desarrollo_de_aplicaciones_de_internet_DAI/Practica2_semanas_5-6-7/src/restaurantes/forms.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 2 | 2017-02-20T09:26:42.000Z | 2021-11-21T21:56:35.000Z | 04Cuarto/Desarrollo_de_aplicaciones_de_internet_DAI/Practica2_semanas_5-6-7/src/restaurantes/forms.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 1 | 2016-10-06T16:59:39.000Z | 2017-09-21T08:04:51.000Z | 04Cuarto/Desarrollo_de_aplicaciones_de_internet_DAI/Practica2_semanas_5-6-7/src/restaurantes/forms.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 4 | 2016-10-06T16:41:01.000Z | 2019-11-21T12:37:20.000Z | # Info from this
# https://stackoverflow.com/questions/12303478/how-to-customize-user-profile-when-using-django-allauth/12308807#12308807
# http://notesbyanerd.com/2015/12/19/joint-login-and-signup-django-allauth-view/
from django import forms
from allauth.account.forms import LoginForm, SignupForm
class MyLoginForm(L... | 50 | 132 | 0.682 | 234 | 2,000 | 5.688034 | 0.333333 | 0.075131 | 0.094666 | 0.141999 | 0.516153 | 0.516153 | 0.323065 | 0.289256 | 0.214125 | 0.099174 | 0 | 0.036311 | 0.1325 | 2,000 | 40 | 133 | 50 | 0.730836 | 0.1055 | 0 | 0.142857 | 0 | 0 | 0.173669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.107143 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae6c97dff39cbd7291e9fe361f0b616830c02249 | 406 | py | Python | dq0/sdk/cli/utils/uuid.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | 2 | 2020-09-16T09:28:00.000Z | 2021-03-18T21:26:29.000Z | dq0/sdk/cli/utils/uuid.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | 22 | 2020-04-15T10:19:33.000Z | 2022-03-12T00:20:57.000Z | dq0/sdk/cli/utils/uuid.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
"""Utils package contains helper functions for the SDK API
Copyright 2020, Gradient Zero
All rights reserved
"""
from uuid import UUID
def is_valid_uuid(uuid_to_test, version=4):
"""Check if uuid_to_test is a valid UUID."""
try:
uuid_obj = UUID(uuid_to_test, version=version)
... | 21.368421 | 58 | 0.692118 | 61 | 406 | 4.409836 | 0.639344 | 0.089219 | 0.148699 | 0.104089 | 0.156134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.211823 | 406 | 18 | 59 | 22.555556 | 0.821875 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
ae71bfec8a820e3ea9bbd74c902349701f2cbb02 | 5,355 | py | Python | bin/selenium-server-standalone-2.53.0/mx4j/tools/jython/jmxUtils.py | surya-surendranath/NZDiaryShop | 53664568c1e47a95ae41fbe11c1f1f45edcc7eb8 | [
"MIT"
] | 1 | 2016-07-22T11:54:49.000Z | 2016-07-22T11:54:49.000Z | bin/selenium-server-standalone-2.53.0/mx4j/tools/jython/jmxUtils.py | surya-surendranath/NZDiaryShop | 53664568c1e47a95ae41fbe11c1f1f45edcc7eb8 | [
"MIT"
] | null | null | null | bin/selenium-server-standalone-2.53.0/mx4j/tools/jython/jmxUtils.py | surya-surendranath/NZDiaryShop | 53664568c1e47a95ae41fbe11c1f1f45edcc7eb8 | [
"MIT"
] | null | null | null | """ Copyright (C) MX4J.
All rights reserved.
This software is distributed under the terms of the MX4J License version 1.0.
See the terms of the MX4J License in the documentation provided with this software.
author <a href="mailto:tibu@users.sourceforge.net">Carlos Quiroz</a>
version $Revision: 1.1 $
... | 37.1875 | 96 | 0.655836 | 657 | 5,355 | 5.270928 | 0.287671 | 0.08663 | 0.054866 | 0.04678 | 0.285879 | 0.195784 | 0.141496 | 0.141496 | 0.141496 | 0.141496 | 0 | 0.001994 | 0.250794 | 5,355 | 143 | 97 | 37.447552 | 0.861167 | 0.292063 | 0 | 0 | 0 | 0 | 0.087007 | 0.057425 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.012821 | 0.141026 | 0.038462 | 0.512821 | 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 |
ae79d1bea439a0ed84e0cdac88c2990a1778369d | 937 | py | Python | Haa.py | 1234borkowskip/WD151280 | 273d8a5b655e60eed1195125420462e1e11161cf | [
"MIT"
] | null | null | null | Haa.py | 1234borkowskip/WD151280 | 273d8a5b655e60eed1195125420462e1e11161cf | [
"MIT"
] | null | null | null | Haa.py | 1234borkowskip/WD151280 | 273d8a5b655e60eed1195125420462e1e11161cf | [
"MIT"
] | null | null | null | import numpy as np
data = np.genfromtxt('jajka1.csv', delimiter=";", dtype=('|U16'))
data2 = np.array([[s.replace(',', '.') for s in line] for line in data])
suma = 0
x = 0
for i in range(1, 17):
for j in range(1, 9):
if data2[i][j] == "":
data2[i][j] = 0
suma += data2[i][j].astype(np.... | 26.771429 | 89 | 0.501601 | 157 | 937 | 2.993631 | 0.299363 | 0.102128 | 0.119149 | 0.165957 | 0.397872 | 0.397872 | 0.22766 | 0.153191 | 0.153191 | 0.153191 | 0 | 0.073025 | 0.283885 | 937 | 35 | 90 | 26.771429 | 0.627422 | 0 | 0 | 0.125 | 0 | 0 | 0.051173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0.0625 | 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 |
ae7ba964649bc4f00c997607ec48e602cc65b55f | 4,774 | py | Python | vinesF/forms.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | 1 | 2019-02-12T08:39:11.000Z | 2019-02-12T08:39:11.000Z | vinesF/forms.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | 3 | 2021-06-10T20:20:54.000Z | 2022-03-11T23:21:32.000Z | vinesF/forms.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | null | null | null | from django import forms
from vinesF.models import videoID
from models import video
from models import users
from models import UserProfile
from models import viewcounter
from models import Hitbck2bck
from models import minihit
from models import emails
from django.forms.models import fields_for_model
from django.util... | 43.009009 | 130 | 0.608923 | 493 | 4,774 | 5.789047 | 0.25355 | 0.068676 | 0.063069 | 0.07253 | 0.452698 | 0.401892 | 0.342327 | 0.310792 | 0.229152 | 0.185704 | 0 | 0.006374 | 0.14558 | 4,774 | 110 | 131 | 43.4 | 0.693307 | 0.127566 | 0 | 0.257143 | 0 | 0 | 0.100537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0.214286 | 0.285714 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae857176f399fe5eb2fd977b35ce1ae94a587707 | 14,301 | py | Python | _build/jupyter_execute/labs/CL5-Functions.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | _build/jupyter_execute/labs/CL5-Functions.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | _build/jupyter_execute/labs/CL5-Functions.py | COGS18/COGS18.github.io | aace51b206e5bf13775478b940812295998f16cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # CL5: Functions
#
# Welcome to the fifth coding lab!
#
# Part I is more abstract - thinking about algorithms and functions, and sketching out some pseudocode. After that, we'll move to more practice with writing functions in Part II and finish with a return to debugging in th... | 28.949393 | 316 | 0.677225 | 2,245 | 14,301 | 4.267261 | 0.246771 | 0.0119 | 0.005846 | 0.008768 | 0.206576 | 0.174948 | 0.152923 | 0.124322 | 0.10428 | 0.098643 | 0 | 0.012966 | 0.239564 | 14,301 | 493 | 317 | 29.008114 | 0.867954 | 0.745752 | 0 | 0.244444 | 0 | 0 | 0.063764 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | null | null | 0.033333 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae8df9d3eed105b43d9356c2a477f4033eea17cf | 372 | py | Python | utils/run_system_cmd.py | cryptowebsite/backup_script | d85e212c5915e4a3bbca0397ead3426d20506613 | [
"MIT"
] | null | null | null | utils/run_system_cmd.py | cryptowebsite/backup_script | d85e212c5915e4a3bbca0397ead3426d20506613 | [
"MIT"
] | null | null | null | utils/run_system_cmd.py | cryptowebsite/backup_script | d85e212c5915e4a3bbca0397ead3426d20506613 | [
"MIT"
] | null | null | null | import subprocess
import config
from utils.utils import write_log
from utils.send_mail import send_mail
def run_system_cmd(cmd, desc):
if subprocess.call(cmd, shell=True) != 0:
subprocess.call(config.COMMAND_START, shell=True)
msg = f'An error occurred while {desc}'
send_mail(msg, 'error')... | 26.571429 | 57 | 0.693548 | 54 | 372 | 4.62963 | 0.555556 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.215054 | 372 | 13 | 58 | 28.615385 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.094086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 |
ae9465c42f3c901ad42f2151b475a2d1ce0a40d1 | 2,219 | py | Python | python-spider/first_scrapy/first_scrapy/pipelines.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-spider/first_scrapy/first_scrapy/pipelines.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-spider/first_scrapy/first_scrapy/pipelines.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | # -*- coding: utf-8 -*-
from scrapy.exceptions import DropItem
# class TextPipeline(object):
#
# def process_item(self, item, spider):
# if item['text']:
# return item
# else:
# return DropItem('Missing Text')
import pymongo
class MongoPipeline(object):
def __init__(... | 29.197368 | 101 | 0.592609 | 260 | 2,219 | 4.896154 | 0.25 | 0.062844 | 0.098979 | 0.090338 | 0.234093 | 0.221524 | 0.069128 | 0.069128 | 0 | 0 | 0 | 0.001252 | 0.279856 | 2,219 | 76 | 102 | 29.197368 | 0.795369 | 0.089229 | 0 | 0.230769 | 0 | 0 | 0.060109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.076923 | 0.057692 | 0.038462 | 0.365385 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae977a7af6e185e90d9a899cc1478db4e82c02b6 | 258 | py | Python | Aula03/01_Repeticao_while.py | MateusPeschke/CursoPython | 238a554dd2aaf68470502bd1b01e135cf33e6776 | [
"MIT"
] | null | null | null | Aula03/01_Repeticao_while.py | MateusPeschke/CursoPython | 238a554dd2aaf68470502bd1b01e135cf33e6776 | [
"MIT"
] | null | null | null | Aula03/01_Repeticao_while.py | MateusPeschke/CursoPython | 238a554dd2aaf68470502bd1b01e135cf33e6776 | [
"MIT"
] | null | null | null | a = 0
while a <= 10:
print(a)
a = a + 1
if True:
pass
# Operadores de comparação
# Retorna verdadeiro (True) e falso (False)
# igualdade (==)
# atribuição (=)
# diferenciação (!=)
# marioridade (>)
# maior e igual (>=)
# menor e igual (<=)
| 12.285714 | 43 | 0.573643 | 32 | 258 | 4.625 | 0.75 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.25969 | 258 | 20 | 44 | 12.9 | 0.753927 | 0.655039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae9c0a0d0c95d4c0e3d42a68fd21ece29874eccb | 529 | py | Python | SMS_18/main/migrations/0027_auto_20180220_2000.py | bitsacm/SMS-18 | 7284e657f9b21e7604fe79c7a4c42e599cf0f92b | [
"MIT"
] | 8 | 2018-02-24T22:32:39.000Z | 2022-03-18T18:28:41.000Z | SMS_18/main/migrations/0027_auto_20180220_2000.py | bitsacm/SMS-18 | 7284e657f9b21e7604fe79c7a4c42e599cf0f92b | [
"MIT"
] | 3 | 2020-06-06T00:41:08.000Z | 2021-06-10T22:34:45.000Z | SMS_18/main/migrations/0027_auto_20180220_2000.py | vishal-deoleya/SMS-18 | 3a6caa1602e8aac3213adafa3052d228c0e4c3df | [
"MIT"
] | 3 | 2019-01-16T09:20:44.000Z | 2019-01-22T07:05:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-20 14:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0026_merge_20180220_1847'),
]
operations = [
migrations.AlterField(
... | 25.190476 | 123 | 0.614367 | 57 | 529 | 5.508772 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086634 | 0.236295 | 529 | 20 | 124 | 26.45 | 0.690594 | 0.124764 | 0 | 0 | 1 | 0 | 0.171739 | 0.052174 | 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 |
882ed8a87368ceaf745963f51dc421431b14b469 | 1,209 | py | Python | microotp/storage.py | gdassori/microotp | 3ff221ce766caa647b41419b7e5c36f925224365 | [
"PSF-2.0"
] | 17 | 2017-04-26T00:13:52.000Z | 2022-01-14T11:34:04.000Z | microotp/storage.py | gdassori/microotp | 3ff221ce766caa647b41419b7e5c36f925224365 | [
"PSF-2.0"
] | 3 | 2017-04-25T18:49:42.000Z | 2017-04-25T20:22:54.000Z | microotp/storage.py | gdassori/microotp | 3ff221ce766caa647b41419b7e5c36f925224365 | [
"PSF-2.0"
] | 2 | 2017-08-22T09:14:39.000Z | 2018-10-02T13:36:25.000Z | # MicroPython One Time Password Generator
# Copyright (C) 2016 Guido Dassori <guido.dassori@gmail.com>
# MIT License
from gc import collect
class Storage():
# TODO use json only in setup mode, store binary data
def __init__(self, file):
self.file = file
self._intent_prefix = '~'
def get_o... | 27.477273 | 61 | 0.561621 | 150 | 1,209 | 4.446667 | 0.433333 | 0.071964 | 0.071964 | 0.047976 | 0.14093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005044 | 0.344086 | 1,209 | 44 | 62 | 27.477273 | 0.836066 | 0.133995 | 0 | 0.142857 | 0 | 0 | 0.017258 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.114286 | false | 0 | 0.171429 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8833b32ca0d2a63e6f83886fe8853fbe29763d6e | 5,038 | py | Python | Application.py | Robert565/Hella-WebHook | 2699b0e61b97c865afe74249f98b915ba868fe8a | [
"MIT"
] | 5 | 2022-01-19T13:41:43.000Z | 2022-01-28T12:59:11.000Z | Application.py | RobertMeow/Hella-WebHook | 2699b0e61b97c865afe74249f98b915ba868fe8a | [
"MIT"
] | null | null | null | Application.py | RobertMeow/Hella-WebHook | 2699b0e61b97c865afe74249f98b915ba868fe8a | [
"MIT"
] | 1 | 2022-01-28T12:33:42.000Z | 2022-01-28T12:33:42.000Z | import os
import sys
import time
import logging
for module in ['vk_api', 'flask']:
if module not in sys.modules:
os.system('python3 -m pip install {} --user'.format(module))
from vk_api.longpoll import VkLongPoll
from vk_api.exceptions import Captcha, ApiError, AuthError
from vk_api import VkApi
from fla... | 40.304 | 164 | 0.616514 | 581 | 5,038 | 5.213425 | 0.27883 | 0.059426 | 0.112909 | 0.079234 | 0.415979 | 0.346649 | 0.346649 | 0.314955 | 0.264774 | 0.264774 | 0 | 0.00609 | 0.217745 | 5,038 | 124 | 165 | 40.629032 | 0.762497 | 0.068877 | 0 | 0.336735 | 0 | 0 | 0.141577 | 0.02163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.102041 | 0.010204 | 0.540816 | 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 |
8836c79a62df9609bb1c4211476da567176a33a1 | 8,132 | py | Python | webcontrol.py | SebastiaanPasterkamp/raspicar | bd1cdf60d536bf020ea351381382131f713e3a02 | [
"MIT"
] | null | null | null | webcontrol.py | SebastiaanPasterkamp/raspicar | bd1cdf60d536bf020ea351381382131f713e3a02 | [
"MIT"
] | null | null | null | webcontrol.py | SebastiaanPasterkamp/raspicar | bd1cdf60d536bf020ea351381382131f713e3a02 | [
"MIT"
] | null | null | null | #!/bin/env python
# Based on https://github.com/Nakiami/MultithreadedSimpleHTTPServer
try:
import sys
from modules.camera import VideoCamera, VisualOdometry
from modules.vehicle import Car
import json
from datetime import datetime
import time
import numpy as np
import cv2
import os
# Python 2.x
from socketserver impor... | 33.056911 | 84 | 0.457821 | 764 | 8,132 | 4.772251 | 0.307592 | 0.041141 | 0.024959 | 0.028799 | 0.195008 | 0.171421 | 0.168129 | 0.168129 | 0.168129 | 0.168129 | 0 | 0.02512 | 0.437039 | 8,132 | 245 | 85 | 33.191837 | 0.771298 | 0.027054 | 0 | 0.197044 | 0 | 0 | 0.057313 | 0.012146 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004926 | 0.08867 | null | null | 0.019704 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
884e12ae38d1c38d378fe3db3ba6d56872047fa9 | 772 | py | Python | archive_download_service/cli/validators.py | alena-kono/images-grabber | 81b4c7e57405752368653396e2d43bcbc1de1c54 | [
"MIT"
] | null | null | null | archive_download_service/cli/validators.py | alena-kono/images-grabber | 81b4c7e57405752368653396e2d43bcbc1de1c54 | [
"MIT"
] | null | null | null | archive_download_service/cli/validators.py | alena-kono/images-grabber | 81b4c7e57405752368653396e2d43bcbc1de1c54 | [
"MIT"
] | null | null | null | import argparse
import os
from typing import NoReturn, Union
def validate_path(path: str) -> Union[str, NoReturn]:
if not os.path.exists(path):
msg = "{0} does not exist.".format(path)
raise argparse.ArgumentError(message=msg, argument=None)
return path
def validate_delay(
delay_secs... | 30.88 | 70 | 0.681347 | 103 | 772 | 4.990291 | 0.368932 | 0.122568 | 0.151751 | 0.192607 | 0.361868 | 0.361868 | 0.361868 | 0.361868 | 0.245136 | 0.245136 | 0 | 0.008237 | 0.213731 | 772 | 24 | 71 | 32.166667 | 0.83855 | 0 | 0 | 0.15 | 0 | 0 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 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 |
8859508cafa02dac1b23bc9e3efc85e14b82f2b4 | 3,471 | py | Python | nip24/error.py | nip24pl/nip24-python-client | fbb53edfb401322ff94806b85729eb821362d801 | [
"Apache-2.0"
] | null | null | null | nip24/error.py | nip24pl/nip24-python-client | fbb53edfb401322ff94806b85729eb821362d801 | [
"Apache-2.0"
] | null | null | null | nip24/error.py | nip24pl/nip24-python-client | fbb53edfb401322ff94806b85729eb821362d801 | [
"Apache-2.0"
] | null | null | null | #
# -*- coding: utf-8 -*-
#
# Copyright 2015-2020 NETCAT (www.netcat.pl)
#
# 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 a... | 25.522059 | 77 | 0.645059 | 471 | 3,471 | 4.518047 | 0.569002 | 0.028195 | 0.046992 | 0.021617 | 0.06297 | 0.06297 | 0.06297 | 0.031015 | 0 | 0 | 0 | 0.076487 | 0.288101 | 3,471 | 135 | 78 | 25.711111 | 0.784703 | 0.237107 | 0 | 0 | 0 | 0 | 0.145874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0 | 0 | 0.851064 | 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 |
885d9fd588bab2bd00b13f46fe03fdde52cb07a6 | 926 | py | Python | introduction_to_machine_learning_with_python/2.3/ridge_regression.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | introduction_to_machine_learning_with_python/2.3/ridge_regression.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | introduction_to_machine_learning_with_python/2.3/ridge_regression.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('MacOSX')
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import mglearn
X, y = mglearn.datasets.load_extended_boston()
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
from sklearn.li... | 28.9375 | 73 | 0.760259 | 151 | 926 | 4.483444 | 0.364238 | 0.044313 | 0.053176 | 0.059084 | 0.239291 | 0.067947 | 0 | 0 | 0 | 0 | 0 | 0.026284 | 0.096112 | 926 | 31 | 74 | 29.870968 | 0.782557 | 0 | 0 | 0 | 0 | 0 | 0.113391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 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 |
886180a33e564f2f41272c357ae2774f13164cbd | 803 | py | Python | tests/test_user_model.py | nosarthur/cloud-harness | 8c4377860d35b94a89833b5700f374427b090b67 | [
"MIT"
] | null | null | null | tests/test_user_model.py | nosarthur/cloud-harness | 8c4377860d35b94a89833b5700f374427b090b67 | [
"MIT"
] | 32 | 2017-06-29T03:05:26.000Z | 2021-04-30T20:36:37.000Z | tests/test_user_model.py | nosarthur/cloud-harness | 8c4377860d35b94a89833b5700f374427b090b67 | [
"MIT"
] | null | null | null | import pytest
from app.models import User
class TestUserModel:
def test_password_setter(self):
u = User('test', 'a@b.com', password='cat')
assert u.password_hash
def test_no_password_getter(self):
u = User('test', 'a@b.com', password='cat')
with pytest.raises(AttributeError):... | 26.766667 | 51 | 0.625156 | 106 | 803 | 4.613208 | 0.396226 | 0.05726 | 0.07362 | 0.079755 | 0.206544 | 0.206544 | 0.206544 | 0.206544 | 0.206544 | 0.147239 | 0 | 0.001639 | 0.240349 | 803 | 29 | 52 | 27.689655 | 0.8 | 0 | 0 | 0.136364 | 0 | 0 | 0.085928 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.181818 | false | 0.454545 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
886bfbd51f54318abda96f8eefc115b2c9372828 | 517 | py | Python | python/linguagem-de-programacao/funcao-sem-retorno-com-parametro/exercicio_6.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | 1 | 2022-03-19T22:50:12.000Z | 2022-03-19T22:50:12.000Z | python/linguagem-de-programacao/funcao-sem-retorno-com-parametro/exercicio_6.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | null | null | null | python/linguagem-de-programacao/funcao-sem-retorno-com-parametro/exercicio_6.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | null | null | null | # 6. (Função sem retorno com parâmetro) Faça uma função/método para a partir de um valor inicial e um valor final realizar o acumulo desse valores e apresentar o resultado. Não use vetor. Aqui deverá ocorrer para as duas variáveis, PASSAGEM DE PARÂMETRO POR VALOR.
def somar(a, b):
soma = a
while a < b:
a = a +... | 32.3125 | 264 | 0.676983 | 85 | 517 | 4.117647 | 0.623529 | 0.04 | 0.08 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.2147 | 517 | 16 | 265 | 32.3125 | 0.847291 | 0.50677 | 0 | 0 | 0 | 0 | 0.232283 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
887abb635419034db43a7e6ac7a4d1afcfade62a | 4,470 | py | Python | HashTable/tests.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | 1 | 2021-12-14T19:57:28.000Z | 2021-12-14T19:57:28.000Z | HashTable/tests.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | HashTable/tests.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | import unittest
from hash_table import Entry, HashTable
class TestHashTable(unittest.TestCase):
def test_entry_init(self):
entry = Entry('key', 0, 0)
self.assertEqual(entry.key, 'key')
self.assertEqual(entry.value, 0)
self.assertEqual(entry.hash, 0)
def test_entry_eq(self):
... | 32.391304 | 67 | 0.593736 | 522 | 4,470 | 4.994253 | 0.122605 | 0.178366 | 0.107403 | 0.088224 | 0.60069 | 0.556578 | 0.552359 | 0.420407 | 0.403529 | 0.403529 | 0 | 0.028736 | 0.260403 | 4,470 | 137 | 68 | 32.627737 | 0.759831 | 0 | 0 | 0.482456 | 0 | 0 | 0.054362 | 0 | 0 | 0 | 0 | 0 | 0.429825 | 1 | 0.122807 | false | 0 | 0.017544 | 0 | 0.149123 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
887c480fe53b69e2625f8078cdefbd8e50f46fe8 | 1,948 | py | Python | examples/contract/conversion.py | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T02:50:50.000Z | 2019-05-10T02:50:50.000Z | examples/contract/conversion.py | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2020-10-28T03:44:51.000Z | 2021-01-18T19:49:33.000Z | examples/contract/conversion.py | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T14:02:47.000Z | 2020-04-17T16:01:54.000Z | # An example with two different producers and one consumer to test the contracts on links
# --- include the following 4 lines each time ---
import os
import imp
import networkx as nx
wf = imp.load_source('workflow', os.environ['DECAF_PREFIX'] + '/python/workflow.py')
# path to .so module for dataflow callback funct... | 33.016949 | 142 | 0.705852 | 275 | 1,948 | 4.938182 | 0.436364 | 0.014728 | 0.006627 | 0.029455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034158 | 0.128337 | 1,948 | 58 | 143 | 33.586207 | 0.765607 | 0.288501 | 0 | 0 | 0 | 0 | 0.282799 | 0.026239 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
888335a773bc582f0067fa6008d3b0a79238361b | 1,676 | py | Python | retiolum/scripts/adv_graphgen/tinc_graphs/Availability.py | makefu/painload | 9bf3a190d158bbda66a4c80e5ac3d818dd1217fa | [
"WTFPL"
] | 9 | 2018-12-03T12:54:40.000Z | 2021-02-25T22:47:24.000Z | retiolum/scripts/adv_graphgen/tinc_graphs/Availability.py | makefu/painload | 9bf3a190d158bbda66a4c80e5ac3d818dd1217fa | [
"WTFPL"
] | 1 | 2021-09-11T18:11:55.000Z | 2021-09-11T18:11:55.000Z | retiolum/scripts/adv_graphgen/tinc_graphs/Availability.py | makefu/painload | 9bf3a190d158bbda66a4c80e5ac3d818dd1217fa | [
"WTFPL"
] | 2 | 2016-04-02T17:18:33.000Z | 2017-03-30T12:38:16.000Z | #!/usr/bin/python
# TODO: Rewrite this shitty piece of software ...
# -*- coding: utf8 -*-
import sys,json,os
""" TODO: Refactoring needed to pull the edges out of the node structures again,
it should be easier to handle both structures"""
DUMP_FILE = os.environ.get("AVAILABILITY_FILE","tinc-availability.json")
hostpa... | 27.032258 | 109 | 0.671241 | 237 | 1,676 | 4.616034 | 0.455696 | 0.036563 | 0.016453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003799 | 0.214797 | 1,676 | 61 | 110 | 27.47541 | 0.827508 | 0.227327 | 0 | 0.047619 | 0 | 0 | 0.16129 | 0.040105 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.071429 | false | 0.02381 | 0.047619 | 0.02381 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88882ee18e24f1f344321a2f3d167a3175cb89cf | 1,616 | py | Python | hassio/utils/__init__.py | InfernoEmbedded/hassio | a401bf0bb8d81d76924254d5b8c9c493ad343468 | [
"Apache-2.0"
] | null | null | null | hassio/utils/__init__.py | InfernoEmbedded/hassio | a401bf0bb8d81d76924254d5b8c9c493ad343468 | [
"Apache-2.0"
] | null | null | null | hassio/utils/__init__.py | InfernoEmbedded/hassio | a401bf0bb8d81d76924254d5b8c9c493ad343468 | [
"Apache-2.0"
] | null | null | null | """Tools file for Hass.io."""
from datetime import datetime
import hashlib
import logging
import re
import uuid
_LOGGER = logging.getLogger(__name__)
RE_STRING = re.compile(r"\x1b(\[.*?[@-~]|\].*?(\x07|\x1b\\))")
def convert_to_ascii(raw):
"""Convert binary to ascii and remove colors."""
return RE_STRING.sub... | 26.933333 | 77 | 0.610767 | 197 | 1,616 | 4.791878 | 0.461929 | 0.042373 | 0.050847 | 0.044492 | 0.057203 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006762 | 0.267946 | 1,616 | 59 | 78 | 27.389831 | 0.791209 | 0.16151 | 0 | 0 | 0 | 0 | 0.063251 | 0.028022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.151515 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
888c3613edc90030fe88c0231bc00b4c99abffe3 | 1,130 | py | Python | metrics/size.py | anon-paper-submissions-1982/shrinkbench | fd42c6701ab45473fad95b4dd99bb17356b8c82d | [
"MIT"
] | null | null | null | metrics/size.py | anon-paper-submissions-1982/shrinkbench | fd42c6701ab45473fad95b4dd99bb17356b8c82d | [
"MIT"
] | null | null | null | metrics/size.py | anon-paper-submissions-1982/shrinkbench | fd42c6701ab45473fad95b4dd99bb17356b8c82d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Model size metrics
"""
import numpy as np
from . import nonzero, dtype2bits
# TODO refactor into one function and have bitsize as flag
def model_size(model):
total_params = 0
nonzero_params = 0
for tensor in model.parameters():
if True:
total_params += np... | 23.541667 | 82 | 0.652212 | 142 | 1,130 | 5.06338 | 0.401408 | 0.122392 | 0.058414 | 0.047288 | 0.336579 | 0.336579 | 0.258693 | 0.158554 | 0.158554 | 0.158554 | 0 | 0.010393 | 0.233628 | 1,130 | 47 | 83 | 24.042553 | 0.819861 | 0.132743 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8892d6987d841ad7b1bbfee8d63e0067ec5e71e2 | 3,555 | py | Python | siteAnnotation.py | paul-shannon/annotatedMap | f4181c970886561950f8e1242fd18e9f08b5c6ba | [
"MIT"
] | null | null | null | siteAnnotation.py | paul-shannon/annotatedMap | f4181c970886561950f8e1242fd18e9f08b5c6ba | [
"MIT"
] | null | null | null | siteAnnotation.py | paul-shannon/annotatedMap | f4181c970886561950f8e1242fd18e9f08b5c6ba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# SiteAnnotation.py: a class to capture, and render into HTML, text, photos and video describing
# a location on a google map
#
#------------------------------------------------------------------------------------------------------------------------
import yaml
from yattag import *
import pd... | 31.460177 | 121 | 0.564557 | 361 | 3,555 | 5.548476 | 0.351801 | 0.049925 | 0.069895 | 0.015976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00341 | 0.257665 | 3,555 | 112 | 122 | 31.741071 | 0.755589 | 0.178622 | 0 | 0.068966 | 0 | 0 | 0.103686 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.137931 | false | 0 | 0.045977 | 0.114943 | 0.367816 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
889b1b2f56047e3d239002eda52ef20594dc52ca | 487 | py | Python | src/pickhost/party/migrations/0002_member_latlng.py | amfarrell/findhost | c418ae88a7f551bfe4366d3aaa74831ae3dcaeb7 | [
"MIT"
] | null | null | null | src/pickhost/party/migrations/0002_member_latlng.py | amfarrell/findhost | c418ae88a7f551bfe4366d3aaa74831ae3dcaeb7 | [
"MIT"
] | null | null | null | src/pickhost/party/migrations/0002_member_latlng.py | amfarrell/findhost | c418ae88a7f551bfe4366d3aaa74831ae3dcaeb7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-06 04:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('party', '0001_initial'),
]
operations = [
migrations.AddField(
m... | 22.136364 | 66 | 0.601643 | 54 | 487 | 5.259259 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070822 | 0.275154 | 487 | 21 | 67 | 23.190476 | 0.733711 | 0.137577 | 0 | 0 | 1 | 0 | 0.076739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
889d144c33f50fd68902ded8301bccd203d0e8b1 | 863 | py | Python | code/utils/soundfeedback.py | dmytrov/stochasticcontrol | a289d5c0953c4a328b2177f51168588248c00f2c | [
"MIT"
] | null | null | null | code/utils/soundfeedback.py | dmytrov/stochasticcontrol | a289d5c0953c4a328b2177f51168588248c00f2c | [
"MIT"
] | null | null | null | code/utils/soundfeedback.py | dmytrov/stochasticcontrol | a289d5c0953c4a328b2177f51168588248c00f2c | [
"MIT"
] | null | null | null | import os
import time
import psychopy.sound as pps
import numpy as np
module_path = os.path.dirname(os.path.abspath(__file__))
sounds_path = os.path.join(module_path, "../resources/sounds/")
dorbell = pps.Sound(value=os.path.join(sounds_path, "dorbell.wav"))
air_horn = pps.Sound(value=os.path.join(sounds_path, "air_h... | 33.192308 | 71 | 0.73117 | 141 | 863 | 4.333333 | 0.297872 | 0.0982 | 0.130933 | 0.171849 | 0.378069 | 0.378069 | 0.378069 | 0.378069 | 0 | 0 | 0 | 0.003846 | 0.096176 | 863 | 25 | 72 | 34.52 | 0.779487 | 0 | 0 | 0 | 0 | 0 | 0.110209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.315789 | 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 |
88a8a55b11f055bbc3b4f3ee764a40f32d366ee0 | 8,412 | py | Python | tests/test_query.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | tests/test_query.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | tests/test_query.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | import inspect
import sys
from operator import methodcaller
import pytest
from gentools import py2_compatible, return_
import snug
try:
import urllib.request as urllib
except ImportError:
import urllib2 as urllib
py3 = pytest.mark.skipif(sys.version_info < (3, ), reason='python 3+ only')
class MockClient... | 29.310105 | 75 | 0.593676 | 940 | 8,412 | 5.169149 | 0.13617 | 0.054332 | 0.067915 | 0.037045 | 0.755505 | 0.711052 | 0.649722 | 0.641902 | 0.623791 | 0.577691 | 0 | 0.016842 | 0.28709 | 8,412 | 286 | 76 | 29.412587 | 0.793397 | 0.002496 | 0 | 0.591346 | 0 | 0 | 0.073549 | 0.014066 | 0 | 0 | 0 | 0 | 0.182692 | 1 | 0.158654 | false | 0.009615 | 0.081731 | 0.019231 | 0.322115 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88aa759389ce1795be64f3c7381e4947155309a3 | 4,974 | py | Python | Python_Scripts/JadeToVerilog.py | ELBe7ery/Beta-Processor | eed3595d789665f7f7d5443e712924534b3cc599 | [
"MIT"
] | 1 | 2017-03-09T11:44:58.000Z | 2017-03-09T11:44:58.000Z | Python_Scripts/JadeToVerilog.py | ELBe7ery/BETA-processor | eed3595d789665f7f7d5443e712924534b3cc599 | [
"MIT"
] | null | null | null | Python_Scripts/JadeToVerilog.py | ELBe7ery/BETA-processor | eed3595d789665f7f7d5443e712924534b3cc599 | [
"MIT"
] | null | null | null | ##############################################################################
#Engineer: Abdelrahman ElBehery
#Last Revision: 14-2-2017
##############################################################################
##############################################################################
#HOW TO USE
# 1-Copy Ja... | 41.45 | 127 | 0.453961 | 569 | 4,974 | 3.957821 | 0.235501 | 0.031083 | 0.021314 | 0.026643 | 0.249556 | 0.213144 | 0.162078 | 0.078153 | 0.066607 | 0.066607 | 0 | 0.016522 | 0.282067 | 4,974 | 119 | 128 | 41.798319 | 0.614114 | 0.118014 | 0 | 0.186813 | 0 | 0 | 0.165366 | 0.005286 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0 | null | null | 0.098901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88b60090ad799a485d6a42bee36f28e5a0937858 | 646 | py | Python | src/things/urls.py | danmharris/WoT-Client | 2746ba0f3d18279fc75964e15a9f48ab11e59ab5 | [
"MIT"
] | null | null | null | src/things/urls.py | danmharris/WoT-Client | 2746ba0f3d18279fc75964e15a9f48ab11e59ab5 | [
"MIT"
] | 2 | 2019-06-11T10:12:18.000Z | 2019-06-11T10:13:16.000Z | src/things/urls.py | danmharris/WoT-Client | 2746ba0f3d18279fc75964e15a9f48ab11e59ab5 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.thing_list, name='thing_list'),
path('<thing_id>', views.thing_single_properties, name='thing_single_properties'),
path('<thing_id>/actions', views.thing_single_actions, name='thing_single_actions'),
path('<thing_id>/event... | 46.142857 | 91 | 0.749226 | 87 | 646 | 5.195402 | 0.206897 | 0.292035 | 0.146018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097523 | 646 | 13 | 92 | 49.692308 | 0.7753 | 0 | 0 | 0 | 0 | 0 | 0.354489 | 0.068111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
88b6115f5b3cb94bf01d26e6bdf83eb100c40b1f | 1,411 | py | Python | per/migrations/0017_nicedocument.py | batpad/go-api | 6c187396fddae9ebcb923540824c86c40f8254bb | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | per/migrations/0017_nicedocument.py | IFRCGo/go-api | 6acd84df479f0cf46553029ababa1e7753f86550 | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | per/migrations/0017_nicedocument.py | batpad/go-api | 6c187396fddae9ebcb923540824c86c40f8254bb | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.0.12 on 2019-07-15 11:17
import api.storage
from django.db import migrations, models
import django.db.models.deletion
import enumfields.fields
import per.models
class Migration(migrations.Migration):
dependencies = [
('api', '0020_auto_20190703_0614'),
('per', '0016_auto_... | 39.194444 | 165 | 0.617293 | 150 | 1,411 | 5.646667 | 0.54 | 0.028335 | 0.033058 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048964 | 0.247342 | 1,411 | 35 | 166 | 40.314286 | 0.748588 | 0.032601 | 0 | 0 | 1 | 0 | 0.165077 | 0.033749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.275862 | 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 |
88b69f43667436d979f5ef471259ee33f893d9e5 | 6,492 | py | Python | tools/parse-queue.py | PoPETsMonetor/shadow-plugin-tor | 2b761fbeacb906d7eb35b5ef7c2410109d29a3c5 | [
"BSD-3-Clause"
] | null | null | null | tools/parse-queue.py | PoPETsMonetor/shadow-plugin-tor | 2b761fbeacb906d7eb35b5ef7c2410109d29a3c5 | [
"BSD-3-Clause"
] | null | null | null | tools/parse-queue.py | PoPETsMonetor/shadow-plugin-tor | 2b761fbeacb906d7eb35b5ef7c2410109d29a3c5 | [
"BSD-3-Clause"
] | null | null | null | # Tool to parse a debug logged ideal file in order to observe the
# queue length over time of an individual circuit
import sys, argparse, os, os.path
import cPickle, gzip
import matplotlib; matplotlib.use('Agg') # for systems without X11
import pylab
from itertools import cycle
from matplotlib.backends.backend_pdf imp... | 39.345455 | 857 | 0.61337 | 857 | 6,492 | 4.595099 | 0.365228 | 0.018283 | 0.021331 | 0.004063 | 0.111986 | 0.053834 | 0.043677 | 0.00711 | 0.00711 | 0.00711 | 0 | 0.017868 | 0.241374 | 6,492 | 164 | 858 | 39.585366 | 0.781726 | 0.045441 | 0 | 0.033898 | 0 | 0.016949 | 0.341144 | 0.031997 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008475 | 0.050847 | null | null | 0.042373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88b6c5f2f66d1245f039e9573ea4e283a0ba5e2b | 2,853 | py | Python | webapp/main.py | Krasnikov05/hn_tools | f473dba8a7284e22e1a4b29020de6ec0c037c0f8 | [
"MIT"
] | null | null | null | webapp/main.py | Krasnikov05/hn_tools | f473dba8a7284e22e1a4b29020de6ec0c037c0f8 | [
"MIT"
] | null | null | null | webapp/main.py | Krasnikov05/hn_tools | f473dba8a7284e22e1a4b29020de6ec0c037c0f8 | [
"MIT"
] | null | null | null | #!python3
import os
import re
import json
import subprocess
from flask import Flask
from flask.helpers import send_file
import library
import video_queue
QUEUE = None
if __name__ == "__main__":
QUEUE = video_queue.VideoQueue()
app = Flask(__name__)
@app.route("/")
def index():
return app.send_static_fi... | 18.647059 | 69 | 0.661059 | 378 | 2,853 | 4.812169 | 0.171958 | 0.08796 | 0.114898 | 0.121495 | 0.271578 | 0.145135 | 0.036284 | 0 | 0 | 0 | 0 | 0.003783 | 0.166141 | 2,853 | 152 | 70 | 18.769737 | 0.760824 | 0.002804 | 0 | 0.2 | 0 | 0 | 0.199015 | 0.141702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.08 | 0.04 | 0.51 | 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 |
31f9cf72bc2fc19803b5360f71036f0aad389178 | 663 | py | Python | adampy/core.py | adammenges/adampy | ba52a785aa0488f83b68ea330b007c6463be87ca | [
"Apache-2.0"
] | 1 | 2020-04-03T17:32:11.000Z | 2020-04-03T17:32:11.000Z | adampy/core.py | adammenges/adampy | ba52a785aa0488f83b68ea330b007c6463be87ca | [
"Apache-2.0"
] | 3 | 2021-05-20T12:52:09.000Z | 2022-02-26T06:31:19.000Z | adampy/core.py | adammenges/adampy | ba52a785aa0488f83b68ea330b007c6463be87ca | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = ['say_hello', 'csv_to_list_of_dict']
# Cell
def say_hello(to):
"Say hello to somebody"
return f'Hello {to}!'
# Cell
def csv_to_list_of_dict(variables_file):
import csv
"Function to convert a csv file to ... | 34.894737 | 120 | 0.717949 | 103 | 663 | 4.417476 | 0.524272 | 0.052747 | 0.03956 | 0.048352 | 0.158242 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003752 | 0.196078 | 663 | 19 | 121 | 34.894737 | 0.849906 | 0.351433 | 0 | 0 | 1 | 0 | 0.36971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31fb591bad5cbba4ad1194a71b69503ef2297634 | 379 | py | Python | pycharts/fields/series_field.py | jpmfribeiro/PyCharts | e1b52ba11adbb8fa884116019e2321bc769adfba | [
"MIT"
] | null | null | null | pycharts/fields/series_field.py | jpmfribeiro/PyCharts | e1b52ba11adbb8fa884116019e2321bc769adfba | [
"MIT"
] | null | null | null | pycharts/fields/series_field.py | jpmfribeiro/PyCharts | e1b52ba11adbb8fa884116019e2321bc769adfba | [
"MIT"
] | null | null | null |
class SeriesField(object):
def __init__(self):
self.series = []
def add_serie(self, serie):
self.series.append(serie)
def to_javascript(self):
jsc = "series: ["
for s in self.series:
jsc += s.to_javascript() + "," # the last comma is accepted by javascript... | 21.055556 | 107 | 0.556728 | 46 | 379 | 4.434783 | 0.565217 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327177 | 379 | 17 | 108 | 22.294118 | 0.8 | 0.155673 | 0 | 0 | 0 | 0 | 0.034921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31fe22b008005e2b0e4adef801617b79a50a13f0 | 9,173 | py | Python | scripts/upload_image_to_ecr.py | jaustinpage/silver-spork | b8813166fec9339c4ed52106a2349fe7bff28b73 | [
"MIT"
] | null | null | null | scripts/upload_image_to_ecr.py | jaustinpage/silver-spork | b8813166fec9339c4ed52106a2349fe7bff28b73 | [
"MIT"
] | 8 | 2022-02-15T23:38:22.000Z | 2022-02-24T20:24:54.000Z | scripts/upload_image_to_ecr.py | jaustinpage/silver-spork | b8813166fec9339c4ed52106a2349fe7bff28b73 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import base64
import json
import logging
import os
import time
import arrow
import boto3
import click
import docker
from botocore.exceptions import ClientError
from git import Repo
class EcrImageScanTimeout(Exception):
pass
class EcrGetImageIdTimeout(Exception):
pass
class Multipl... | 32.644128 | 119 | 0.606563 | 1,073 | 9,173 | 4.932898 | 0.189189 | 0.025128 | 0.020782 | 0.024939 | 0.346873 | 0.264878 | 0.188929 | 0.167391 | 0.120914 | 0.114869 | 0 | 0.007998 | 0.291181 | 9,173 | 280 | 120 | 32.760714 | 0.80606 | 0.018206 | 0 | 0.313364 | 0 | 0.004608 | 0.098044 | 0.019787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105991 | false | 0.059908 | 0.050691 | 0.009217 | 0.24424 | 0.018433 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee0479a0c6fcc5d6a2d6c9e9ad08fbfb19a4a547 | 237 | py | Python | exercices/28.py | DegrangeM/alien-python | e0ef81bc87795a27536ce35a5117aabae78f95de | [
"MIT"
] | 4 | 2021-09-17T20:09:33.000Z | 2021-11-18T08:52:48.000Z | exercices/28.py | DegrangeM/alien-python | e0ef81bc87795a27536ce35a5117aabae78f95de | [
"MIT"
] | null | null | null | exercices/28.py | DegrangeM/alien-python | e0ef81bc87795a27536ce35a5117aabae78f95de | [
"MIT"
] | null | null | null | from libs.alien import *
a = 5
b = 2
droite(5)
if a < b :
haut()
gauche()
for loop in range(4) :
haut()
bas(3)
droite()
if a > b :
bas()
droite()
for loop in range(4) :
bas()
haut(3)
ss() | 11.85 | 26 | 0.468354 | 38 | 237 | 2.921053 | 0.526316 | 0.054054 | 0.072072 | 0.252252 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.379747 | 237 | 20 | 27 | 11.85 | 0.707483 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
ee04fb54585d5b0e03abf0bbfc5190762af69192 | 4,681 | py | Python | src/fswAlgorithms/attGuidance/celestialTwoBodyPoint/_UnitTest/Support/results_celestialTwoBodyPoint.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | src/fswAlgorithms/attGuidance/celestialTwoBodyPoint/_UnitTest/Support/results_celestialTwoBodyPoint.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | src/fswAlgorithms/attGuidance/celestialTwoBodyPoint/_UnitTest/Support/results_celestialTwoBodyPoint.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | ''' '''
'''
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all c... | 28.717791 | 103 | 0.671651 | 827 | 4,681 | 3.58283 | 0.233374 | 0.037125 | 0.027 | 0.018225 | 0.205535 | 0.138373 | 0.095511 | 0.071549 | 0.071549 | 0.058724 | 0 | 0.060386 | 0.204016 | 4,681 | 162 | 104 | 28.895062 | 0.734836 | 0.055116 | 0 | 0.042105 | 0 | 0 | 0.010626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063158 | null | null | 0.042105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee0d32c127b30ec93386c97aef074520922aa66c | 435 | py | Python | Assignment-3/checkPrimeNum.py | HembramBeta777/Python-Programming | 827611b0613d9d953d13fb04ea9b5c5ac3c510f2 | [
"BSD-3-Clause"
] | 2 | 2020-09-01T04:58:16.000Z | 2021-01-30T03:45:52.000Z | Assignment-3/checkPrimeNum.py | HembramBeta777/Python-Programming | 827611b0613d9d953d13fb04ea9b5c5ac3c510f2 | [
"BSD-3-Clause"
] | null | null | null | Assignment-3/checkPrimeNum.py | HembramBeta777/Python-Programming | 827611b0613d9d953d13fb04ea9b5c5ac3c510f2 | [
"BSD-3-Clause"
] | null | null | null | # To check a number is prime or not
num = int(input("Enter a number: "))
check = 0
if(num>=0):
for i in range(1,num+1):
if( (num % i) == 0 ):
check=check+1
if(check==2):
print(num,"is a prime number.")
else:
... | 19.772727 | 63 | 0.434483 | 57 | 435 | 3.315789 | 0.421053 | 0.074074 | 0.10582 | 0.169312 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0.406897 | 435 | 21 | 64 | 20.714286 | 0.705426 | 0.075862 | 0 | 0.166667 | 0 | 0 | 0.267196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
ee0da88b659f6407fc4a73762894a12b721a9efa | 869 | py | Python | tests/test_datagen.py | MaksimEkin/pyDNTNK | e6cb106a71a3d06fe0ba584005473cc26fcda2ad | [
"BSD-3-Clause"
] | 3 | 2021-06-21T07:29:29.000Z | 2021-07-23T02:51:41.000Z | tests/test_datagen.py | Namita-Kharat/pyDNTNK | cc9fb8accbdefc16f2b7c093b47ff102ae5c3d6b | [
"BSD-3-Clause"
] | null | null | null | tests/test_datagen.py | Namita-Kharat/pyDNTNK | cc9fb8accbdefc16f2b7c093b47ff102ae5c3d6b | [
"BSD-3-Clause"
] | 4 | 2021-06-21T07:29:18.000Z | 2021-12-08T21:44:07.000Z | '''Generate data first here'''
import sys
from pyDNTNK.TN_data_generator import *
from pyDNMFk.utils import *
import dask.array as da
#@pytest.mark.mpi
def test_datagen():
args = parse()
args.dim = [10,10,10,10]
args.k_grid = [2,2,2,2]
args.p_grid = [2,1,1,1]
args.fpath = '../data/array.zarr'
ar... | 27.15625 | 87 | 0.652474 | 136 | 869 | 4 | 0.426471 | 0.051471 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025496 | 0.187572 | 869 | 31 | 88 | 28.032258 | 0.745042 | 0.047181 | 0 | 0 | 1 | 0 | 0.043702 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.083333 | false | 0 | 0.166667 | 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 |
ee1154935e34abe831344333c0ee5803d9880357 | 601 | py | Python | tests/test_lambdata_pt5_primefactorx01.py | ErikSeguinte/lambdata-pt5-unit1 | 46454fed74354e0a83796ef07e0c7922ee0ca518 | [
"MIT"
] | null | null | null | tests/test_lambdata_pt5_primefactorx01.py | ErikSeguinte/lambdata-pt5-unit1 | 46454fed74354e0a83796ef07e0c7922ee0ca518 | [
"MIT"
] | null | null | null | tests/test_lambdata_pt5_primefactorx01.py | ErikSeguinte/lambdata-pt5-unit1 | 46454fed74354e0a83796ef07e0c7922ee0ca518 | [
"MIT"
] | null | null | null | import unittest
import pandas as pd
from lambdata_pt5_primefactorx01.lambdata_pt5_primefactorx01 import Helper
from lambdata_pt5_primefactorx01 import __version__
def test_version():
assert __version__ == "0.1.0"
class TestLambdata(unittest.TestCase):
def test_state_names(self):
states = pd.Series(... | 24.04 | 74 | 0.702163 | 72 | 601 | 5.472222 | 0.555556 | 0.083756 | 0.190355 | 0.147208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024742 | 0.193012 | 601 | 24 | 75 | 25.041667 | 0.787629 | 0 | 0 | 0 | 0 | 0 | 0.076539 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.466667 | 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 |
ee1205068770ada41f57be8456880fd615870054 | 1,435 | py | Python | freedm/transport/exceptions.py | wandth/free.dm-Common | c3b7353e9211f0c99c4b761ef891f0cb53a7d18b | [
"MIT"
] | 1 | 2020-01-02T02:39:42.000Z | 2020-01-02T02:39:42.000Z | freedm/transport/exceptions.py | wandth/free.dm | c3b7353e9211f0c99c4b761ef891f0cb53a7d18b | [
"MIT"
] | 13 | 2017-11-04T15:54:39.000Z | 2019-02-11T12:01:29.000Z | freedm/transport/exceptions.py | wandth/free.dm-Common | c3b7353e9211f0c99c4b761ef891f0cb53a7d18b | [
"MIT"
] | null | null | null | '''
This module defines module related custom exceptions based on
the freedmBaseException
@author: Thomas Wanderer
'''
# Imports
from freedm.utils.exceptions import freedmBaseException
class freedmSocketCreation(freedmBaseException):
'''
Gets thrown when the transport module cannot create a socket
'''
... | 28.7 | 90 | 0.71777 | 145 | 1,435 | 7.103448 | 0.386207 | 0.133981 | 0.168932 | 0.192233 | 0.308738 | 0.308738 | 0.221359 | 0.221359 | 0 | 0 | 0 | 0 | 0.206969 | 1,435 | 50 | 91 | 28.7 | 0.905097 | 0.360976 | 0 | 0 | 0 | 0 | 0.343902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee1bcd622dec69f6895a2665cbc9f367d02f5f62 | 40,288 | py | Python | SpecGenGUI.py | kkummer/RixsToolBox | 48e220035697c9a85eaa3fe79307593aa5558065 | [
"MIT"
] | 4 | 2020-06-06T10:37:22.000Z | 2021-12-14T11:50:09.000Z | SpecGenGUI.py | kkummer/RixsToolBox | 48e220035697c9a85eaa3fe79307593aa5558065 | [
"MIT"
] | 5 | 2019-04-27T16:06:23.000Z | 2020-12-09T20:34:47.000Z | SpecGenGUI.py | kkummer/RixsToolBox | 48e220035697c9a85eaa3fe79307593aa5558065 | [
"MIT"
] | 2 | 2016-11-07T19:26:25.000Z | 2018-06-15T09:55:29.000Z | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#/*##########################################################################
# Copyright (C) 2016 K. Kummer, A. Tamborino, European Synchrotron Radiation
# Facility
#
# This file is part of the ID32 RIXSToolBox developed at the ESRF by the ID32
# staff and the ESR... | 43.554595 | 206 | 0.660321 | 3,554 | 40,288 | 7.278278 | 0.156162 | 0.030154 | 0.010051 | 0.020373 | 0.195268 | 0.156609 | 0.125488 | 0.110604 | 0.110604 | 0.106816 | 0 | 0.010833 | 0.246178 | 40,288 | 924 | 207 | 43.601732 | 0.840896 | 0.058727 | 0 | 0.124633 | 0 | 0 | 0.034687 | 0.001468 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014663 | null | null | 0.004399 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee283d67019fd0e5637c9c6b6a274a3bd377a5ce | 1,443 | py | Python | morse-stf/unittest/test_shift.py | alipay/Antchain-MPC | f6916465e1da5722ca7efadc4eeaca13ec229707 | [
"Apache-2.0"
] | 33 | 2021-11-23T09:04:03.000Z | 2022-03-14T07:56:31.000Z | morse-stf/unittest/test_shift.py | qizhi-zhang/Antchain-MPC | f551170f68b0baff328e6594484e9832230fe719 | [
"Apache-2.0"
] | null | null | null | morse-stf/unittest/test_shift.py | qizhi-zhang/Antchain-MPC | f551170f68b0baff328e6594484e9832230fe719 | [
"Apache-2.0"
] | 6 | 2021-11-25T12:38:41.000Z | 2022-02-23T03:29:51.000Z | #!/usr/bin/env python
# coding=utf-8
"""
Ant Group
Copyright (c) 2004-2020 All Rights Reserved.
------------------------------------------------------
File Name : test_shift
Author : Qizhi Zhang
Email: qizhi.zqz@antgroup.com
Create Time : 2020-12-02 09:45
Description : description what the main ... | 33.55814 | 89 | 0.642412 | 209 | 1,443 | 4.330144 | 0.583732 | 0.035359 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044992 | 0.183645 | 1,443 | 42 | 90 | 34.357143 | 0.72326 | 0.237699 | 0 | 0 | 0 | 0 | 0.048826 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.125 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee2d4229b72d5688d83bb08b03588acf8b8a0d94 | 773 | py | Python | db_put.py | agmsmith/haiku-dropbox-client-v2 | 8ad2ce36889e4fef1fd3f0ec30a0fb43f2952317 | [
"MIT"
] | null | null | null | db_put.py | agmsmith/haiku-dropbox-client-v2 | 8ad2ce36889e4fef1fd3f0ec30a0fb43f2952317 | [
"MIT"
] | null | null | null | db_put.py | agmsmith/haiku-dropbox-client-v2 | 8ad2ce36889e4fef1fd3f0ec30a0fb43f2952317 | [
"MIT"
] | null | null | null | import sys
from cli_client import APP_KEY, APP_SECRET, DropboxTerm
def main(src,dest,parent_rev=None):
if APP_KEY == '' or APP_SECRET == '':
exit("You need to set your APP_KEY and APP_SECRET!")
term = DropboxTerm(APP_KEY, APP_SECRET)
if(parent_rev != None):
metadata = term.do_put(src,dest,... | 33.608696 | 69 | 0.623545 | 120 | 773 | 3.816667 | 0.4 | 0.106987 | 0.039301 | 0.065502 | 0.30131 | 0.30131 | 0.087336 | 0 | 0 | 0 | 0 | 0.011457 | 0.209573 | 773 | 22 | 70 | 35.136364 | 0.738134 | 0 | 0 | 0.105263 | 0 | 0 | 0.163001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee317f639428c8960d11d4588f1c3e78b2a685b3 | 216 | py | Python | BOJ14709.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ14709.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ14709.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | n=int(input());f=True
if n!=3: f=False
a=set()
for _ in range(n):
b,c=map(int,input().split())
a.add(b);a.add(c)
if a!={1,3,4}:
f=False
print((f) and 'Wa-pa-pa-pa-pa-pa-pow!' or 'Woof-meow-tweet-squeek')
| 21.6 | 67 | 0.578704 | 50 | 216 | 2.48 | 0.6 | 0.129032 | 0.145161 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.143519 | 216 | 9 | 68 | 24 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee34552233d812a402f89c481fb8cb331239ba42 | 8,699 | py | Python | sarafan/peering/client.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | 2 | 2021-02-07T17:08:32.000Z | 2022-01-21T06:39:50.000Z | sarafan/peering/client.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | 2 | 2021-02-07T15:22:57.000Z | 2021-02-07T15:24:49.000Z | sarafan/peering/client.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | null | null | null | import asyncio
import logging
from dataclasses import dataclass, field
from typing import Callable, Coroutine, List, Optional
from urllib.parse import urljoin
import aiohttp
from aiohttp import ClientResponseError, StreamReader
from aiohttp.client import ClientSession, ClientTimeout
from aiohttp_socks import ProxyConn... | 32.580524 | 119 | 0.616738 | 1,001 | 8,699 | 5.250749 | 0.234765 | 0.025875 | 0.03653 | 0.022831 | 0.204909 | 0.174277 | 0.138508 | 0.09551 | 0.080289 | 0.080289 | 0 | 0.005987 | 0.289574 | 8,699 | 266 | 120 | 32.703008 | 0.844175 | 0.067939 | 0 | 0.116129 | 0 | 0 | 0.100853 | 0.003442 | 0 | 0 | 0 | 0.011278 | 0 | 1 | 0.03871 | false | 0.03871 | 0.070968 | 0.012903 | 0.309677 | 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 |
ee3b6651e52180fccfdf999c51040fdcd12305f4 | 21,986 | py | Python | actstream/views.py | affan2/django-activity-stream | c6f4a9836de912cf3c58048b3c7e2fcb6bcfdc60 | [
"BSD-3-Clause"
] | null | null | null | actstream/views.py | affan2/django-activity-stream | c6f4a9836de912cf3c58048b3c7e2fcb6bcfdc60 | [
"BSD-3-Clause"
] | null | null | null | actstream/views.py | affan2/django-activity-stream | c6f4a9836de912cf3c58048b3c7e2fcb6bcfdc60 | [
"BSD-3-Clause"
] | 1 | 2020-01-08T09:05:17.000Z | 2020-01-08T09:05:17.000Z | import json
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, VariableDoesNotExist
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.c... | 44.596349 | 323 | 0.700264 | 2,634 | 21,986 | 5.536826 | 0.106682 | 0.039221 | 0.029416 | 0.027839 | 0.61924 | 0.568294 | 0.504183 | 0.456459 | 0.424643 | 0.403867 | 0 | 0.006985 | 0.205585 | 21,986 | 492 | 324 | 44.686992 | 0.828009 | 0.018512 | 0 | 0.41018 | 0 | 0 | 0.079744 | 0.030917 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086826 | 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 |
ee3bc6a00d65921f6d240f4672e1ee2a5a9504ac | 1,745 | py | Python | rewolucja/website/admin.py | hyperxpizza/rewolucjacompl | 8fc62ace4cb1454208737385fb4fa91e01ced927 | [
"MIT"
] | 2 | 2020-07-06T19:53:23.000Z | 2021-01-10T09:32:55.000Z | rewolucja/website/admin.py | hyperxpizza/rewolucjacompl | 8fc62ace4cb1454208737385fb4fa91e01ced927 | [
"MIT"
] | 12 | 2020-03-03T10:22:19.000Z | 2022-03-12T00:50:55.000Z | rewolucja/website/admin.py | hyperxpizza/rewolucjacompl | 8fc62ace4cb1454208737385fb4fa91e01ced927 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django_summernote.admin import SummernoteModelAdmin
from .models import Post, Subscriber, Newsletter, ProductOptions, ProductImage, Product, Order, OrderItem, ArtItem
from image_cropping import ImageCroppingMixin
def send_newsletter(modeladmin, request, queryset):
for newslett... | 34.9 | 116 | 0.757593 | 183 | 1,745 | 7.098361 | 0.409836 | 0.04157 | 0.078522 | 0.04157 | 0.033872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001309 | 0.124355 | 1,745 | 50 | 117 | 34.9 | 0.848822 | 0 | 0 | 0.051282 | 0 | 0 | 0.114548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.025641 | 0.102564 | 0 | 0.74359 | 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 |
ee3d6cbfa4061f002615f7729af4d460ec716a70 | 5,204 | py | Python | dining_room/models/analysis.py | GT-RAIL/isolation_cyoa | f83e143fa5c4f011a80d5ca963bd722d4222f478 | [
"MIT"
] | 1 | 2021-08-18T20:59:45.000Z | 2021-08-18T20:59:45.000Z | dining_room/models/analysis.py | GT-RAIL/isolation_cyoa | f83e143fa5c4f011a80d5ca963bd722d4222f478 | [
"MIT"
] | 8 | 2021-03-19T11:59:35.000Z | 2022-02-27T10:42:43.000Z | dining_room/models/analysis.py | GT-RAIL/isolation_cyoa | f83e143fa5c4f011a80d5ca963bd722d4222f478 | [
"MIT"
] | null | null | null | # Models required for data analysis. These should never be populated in prod on
# heroku
from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
import multiselectfield
from .. import constants
from .domain import State, T... | 37.985401 | 123 | 0.707917 | 699 | 5,204 | 5.101574 | 0.267525 | 0.027762 | 0.032249 | 0.024678 | 0.370724 | 0.283511 | 0.195738 | 0.124509 | 0.115536 | 0.093102 | 0 | 0.002211 | 0.217717 | 5,204 | 136 | 124 | 38.264706 | 0.873741 | 0.20907 | 0 | 0.174419 | 0 | 0 | 0.035528 | 0.005217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127907 | false | 0 | 0.093023 | 0.05814 | 0.651163 | 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 |
ee3f24102fa98b84b4373eff410f8a32b4ba7702 | 488 | py | Python | gmail_fisher/config.py | vnepomuceno/gmail-fisher | 6bdcc686ff729e113eb1ce04d134ebc4147ea4d0 | [
"MIT"
] | null | null | null | gmail_fisher/config.py | vnepomuceno/gmail-fisher | 6bdcc686ff729e113eb1ce04d134ebc4147ea4d0 | [
"MIT"
] | 41 | 2021-12-08T22:24:27.000Z | 2022-03-30T22:32:23.000Z | gmail_fisher/config.py | vnepomuceno/gmail-fisher | 6bdcc686ff729e113eb1ce04d134ebc4147ea4d0 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Final
# LOGGING
LOG_LEVEL: Final[str] = "INFO"
LOG_FORMAT: Final[
str
] = "%(asctime)s [%(name)s] (%(threadName)s) <%(levelname)s> %(message)s"
# GMAIL GATEWAY
GMAIL_READ_ONLY_SCOPE: Final[str] = "https://www.googleapis.com/auth/gmail.readonly"
LIST_MESSAGES_MAX_RESULTS... | 24.4 | 84 | 0.721311 | 71 | 488 | 4.774648 | 0.591549 | 0.070796 | 0.076696 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016317 | 0.120902 | 488 | 19 | 85 | 25.684211 | 0.773893 | 0.079918 | 0 | 0 | 0 | 0.090909 | 0.290541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee4040965114e37dab4e2d530824e177bf3f6fcc | 1,011 | py | Python | day11/flask_day5/flask_session_demo/app.py | gaohj/wh1904js | a3af38f8311f79eb9f2e08a3de16dd1e02c40714 | [
"Apache-2.0"
] | null | null | null | day11/flask_day5/flask_session_demo/app.py | gaohj/wh1904js | a3af38f8311f79eb9f2e08a3de16dd1e02c40714 | [
"Apache-2.0"
] | null | null | null | day11/flask_day5/flask_session_demo/app.py | gaohj/wh1904js | a3af38f8311f79eb9f2e08a3de16dd1e02c40714 | [
"Apache-2.0"
] | null | null | null | from flask import Flask,session,request
import os
from datetime import timedelta
app = Flask(__name__)
app.config['SECRET_KEY'] = os.urandom(24)
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7)
#session.permanent = True 默认31天
#如果修改 设置PERMANENT_SESSION_LIFETIME 后面就是指定过期时间
@app.route('/')
def hello_world()... | 24.071429 | 60 | 0.682493 | 120 | 1,011 | 5.533333 | 0.433333 | 0.036145 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019324 | 0.181009 | 1,011 | 41 | 61 | 24.658537 | 0.782609 | 0.099901 | 0 | 0 | 0 | 0 | 0.202867 | 0.028666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.066667 | 0.1 | 0 | 0.333333 | 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 |
ee48436c60a5877970258f407f9b69ebc8ea1a0c | 1,592 | py | Python | fake_users.py | Mohamed-Kaizen/django_playground | 0ca623041857f15c06bd2f9c8edcd2b54b4c4897 | [
"MIT"
] | null | null | null | fake_users.py | Mohamed-Kaizen/django_playground | 0ca623041857f15c06bd2f9c8edcd2b54b4c4897 | [
"MIT"
] | 3 | 2021-06-08T21:15:15.000Z | 2022-03-12T00:35:49.000Z | fake_users.py | Mohamed-Kaizen/django_playground | 0ca623041857f15c06bd2f9c8edcd2b54b4c4897 | [
"MIT"
] | null | null | null | """ creating fake user for test"""
import os
import secrets
import django
import factory
from django.contrib.auth import get_user_model
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_playground.settings",)
django.setup()
user = get_user_model()
class UserFactory(factory.Factory):
"""
Using facto... | 24.492308 | 78 | 0.623116 | 178 | 1,592 | 5.426966 | 0.393258 | 0.074534 | 0.124224 | 0.068323 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00254 | 0.258166 | 1,592 | 64 | 79 | 24.875 | 0.815411 | 0.069095 | 0 | 0 | 0 | 0 | 0.080169 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.128205 | 0 | 0.358974 | 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 |
ee4fff0d15d245f1fca23d13e900a8862484856d | 560 | py | Python | test/lmp/infer/_top_1/test_gen.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | test/lmp/infer/_top_1/test_gen.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | test/lmp/infer/_top_1/test_gen.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | """Test top-1 generation with dummy model.
Test target:
- :py:meth:`lmp.infer.Top1Infer.gen`.
"""
from lmp.infer import Top1Infer
from lmp.model import BaseModel
from lmp.tknzr import BaseTknzr
def test_gen(gen_max_non_sp_tk_model: BaseModel, max_non_sp_tk: str, max_seq_len: int, tknzr: BaseTknzr) -> None:
"""Onl... | 26.666667 | 113 | 0.753571 | 96 | 560 | 4.0625 | 0.364583 | 0.092308 | 0.123077 | 0.153846 | 0.130769 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0.010267 | 0.130357 | 560 | 20 | 114 | 28 | 0.790554 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee5083e573114706d1d295e30f7cde44eb4e7787 | 2,819 | py | Python | frontends/PyCDE/src/pycde/system.py | Mechachleopteryx/circt | 1e8c931e20b1c6ea42564706e101ee25631c199a | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/src/pycde/system.py | Mechachleopteryx/circt | 1e8c931e20b1c6ea42564706e101ee25631c199a | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/src/pycde/system.py | Mechachleopteryx/circt | 1e8c931e20b1c6ea42564706e101ee25631c199a | [
"Apache-2.0"
] | null | null | null | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
from .pycde_types import types
from .module import ModuleDefinition
import mlir
import mlir.ir
import mlir.passmanage... | 29.364583 | 80 | 0.63746 | 374 | 2,819 | 4.695187 | 0.358289 | 0.04385 | 0.059226 | 0.047836 | 0.145216 | 0.037585 | 0.037585 | 0 | 0 | 0 | 0 | 0.00377 | 0.247251 | 2,819 | 95 | 81 | 29.673684 | 0.823751 | 0.132316 | 0 | 0.115942 | 0 | 0 | 0.064834 | 0.041034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0.15942 | 0.173913 | 0.014493 | 0.405797 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee53d216f1d2008c2361f51c84ce2515ca654313 | 398 | py | Python | myblog/branch/migrations/0004_bill_number_peoplr.py | HkangHero/Student-information | 8bc91756d807bcf29506ae379785d9da1e981de0 | [
"Apache-2.0"
] | null | null | null | myblog/branch/migrations/0004_bill_number_peoplr.py | HkangHero/Student-information | 8bc91756d807bcf29506ae379785d9da1e981de0 | [
"Apache-2.0"
] | null | null | null | myblog/branch/migrations/0004_bill_number_peoplr.py | HkangHero/Student-information | 8bc91756d807bcf29506ae379785d9da1e981de0 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.5 on 2019-03-02 03:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('branch', '0003_auto_20190301_2035'),
]
operations = [
migrations.AddField(
model_name='bill',
name='number_peoplr',
... | 20.947368 | 60 | 0.603015 | 45 | 398 | 5.2 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.281407 | 398 | 18 | 61 | 22.111111 | 0.702797 | 0.113065 | 0 | 0 | 1 | 0 | 0.131054 | 0.065527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee540a48e1c2f2ad8a401fa7e92de9a27fe230c6 | 2,092 | py | Python | client.py | noctilukkas/PyTradeFinanceChallenge | e1333418efea9ffea78ef76e56b94455d7f49594 | [
"MIT"
] | null | null | null | client.py | noctilukkas/PyTradeFinanceChallenge | e1333418efea9ffea78ef76e56b94455d7f49594 | [
"MIT"
] | null | null | null | client.py | noctilukkas/PyTradeFinanceChallenge | e1333418efea9ffea78ef76e56b94455d7f49594 | [
"MIT"
] | null | null | null | """trader client"""
# Python Standard library
import sys
import logging
# ThirdParty Libs
import pyRofex
class TraderClient:
"""
Trader Client Class
"""
ACCOUNT = "REM5029"
def __init__(self, user, password):
self.user = user
self.password = password
self.account = self.A... | 31.69697 | 81 | 0.567878 | 211 | 2,092 | 5.507109 | 0.379147 | 0.075732 | 0.055077 | 0.034423 | 0.118761 | 0.075732 | 0 | 0 | 0 | 0 | 0 | 0.004944 | 0.323136 | 2,092 | 65 | 82 | 32.184615 | 0.815678 | 0.08652 | 0 | 0.097561 | 0 | 0 | 0.130108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.073171 | 0.073171 | 0 | 0.317073 | 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 |
ee5449fe0ee12ad71392b77b1d1cdf80ca052828 | 1,402 | py | Python | utils/mention.py | DenverCoder1/jct-discord-bot | e4b1df71d96a4127be27e40c9aa41dbb50c3379c | [
"MIT"
] | 10 | 2021-01-06T13:25:13.000Z | 2022-03-01T13:16:46.000Z | utils/mention.py | DenverCoder1/jct-discord-bot | e4b1df71d96a4127be27e40c9aa41dbb50c3379c | [
"MIT"
] | 124 | 2021-01-06T13:29:55.000Z | 2022-03-25T14:18:59.000Z | utils/mention.py | DenverCoder1/jct-discord-bot | e4b1df71d96a4127be27e40c9aa41dbb50c3379c | [
"MIT"
] | 3 | 2021-01-08T10:27:34.000Z | 2021-03-04T14:49:36.000Z | import re
from typing import Iterable, Optional, Tuple
def decode_mention(mention: str) -> Tuple[Optional[str], Optional[int]]:
"""returns whether mention is a member mention or a channel mention (or neither) as well as the id of the mentioned object"""
match = re.search(r"<(#|@)!?(\d+)>", mention)
if match is Non... | 37.891892 | 126 | 0.743224 | 208 | 1,402 | 4.865385 | 0.25 | 0.096838 | 0.059289 | 0.062253 | 0.428854 | 0.428854 | 0.428854 | 0.428854 | 0.428854 | 0.428854 | 0 | 0.001654 | 0.13766 | 1,402 | 37 | 127 | 37.891892 | 0.835401 | 0.194722 | 0 | 0.090909 | 0 | 0 | 0.043088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.681818 | 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 |
ee566fbe3e4aa70ca97739144db0bc13229bf18e | 1,124 | py | Python | zcrmsdk/src/com/zoho/crm/api/dc/data_center.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | zcrmsdk/src/com/zoho/crm/api/dc/data_center.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | zcrmsdk/src/com/zoho/crm/api/dc/data_center.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | from abc import abstractmethod, ABC
class DataCenter(ABC):
"""
This class represents the properties of Zoho CRM DataCenter
"""
@abstractmethod
def get_iam_url(self):
"""
The method to get the accounts URL.
:return: A str representing the accounts URL.
"""
... | 24.977778 | 80 | 0.596085 | 133 | 1,124 | 4.879699 | 0.300752 | 0.123267 | 0.160247 | 0.146379 | 0.335901 | 0.292758 | 0.172573 | 0 | 0 | 0 | 0 | 0 | 0.342527 | 1,124 | 44 | 81 | 25.545455 | 0.878214 | 0.419039 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0.066667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ee703bf0c422bfdb0ea3d3c5b1c1837d555d9694 | 1,343 | py | Python | Arduino data sender.py | AbhinavOraon/Motion-activated-camra-With-Telegram | 9e4cf3141607623eecb83c34c6c5c937f8a2f7ec | [
"MIT"
] | null | null | null | Arduino data sender.py | AbhinavOraon/Motion-activated-camra-With-Telegram | 9e4cf3141607623eecb83c34c6c5c937f8a2f7ec | [
"MIT"
] | null | null | null | Arduino data sender.py | AbhinavOraon/Motion-activated-camra-With-Telegram | 9e4cf3141607623eecb83c34c6c5c937f8a2f7ec | [
"MIT"
] | null | null | null |
import serial
import time
port=serial.Serial("COM12",115200)
count=0
while True:
line = port.readline() #read data line by line
if line:
string = line.decode() # convert the byte string to a unicode string ... | 63.952381 | 745 | 0.172748 | 55 | 1,343 | 4.218182 | 0.581818 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.795979 | 1,343 | 21 | 746 | 63.952381 | 0.80292 | 0.739389 | 0 | 0 | 0 | 0 | 0.02454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 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 |
ee710847b9c36f9d37201ab4bfa4ae5dddf94657 | 1,774 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/branding/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/branding/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/branding/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Model used by Video module for Branding configuration.
Includes:
BrandingInfoConfig: A ConfigurationModel for managing how Video Module will
use Branding.
"""
import json
from config_models.models import ConfigurationModel
from django.core.exceptions import ValidationError
from django.db.models impo... | 25.710145 | 115 | 0.633596 | 190 | 1,774 | 5.868421 | 0.510526 | 0.056502 | 0.026906 | 0.032287 | 0.093274 | 0.093274 | 0.093274 | 0.093274 | 0.093274 | 0 | 0 | 0.00234 | 0.277339 | 1,774 | 68 | 116 | 26.088235 | 0.867395 | 0.450958 | 0 | 0.181818 | 0 | 0 | 0.104389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee77b2db88e4a6e81d0c01be50377675f98a1925 | 834 | py | Python | cfg_template.py | raubana/TwitchJackboxBot | ec78f3d9d0e89320d9691571fb729b61efa5100d | [
"WTFPL"
] | 2 | 2016-05-06T14:17:24.000Z | 2016-05-06T15:08:55.000Z | cfg_template.py | raubana/TwitchJackboxBot | ec78f3d9d0e89320d9691571fb729b61efa5100d | [
"WTFPL"
] | 2 | 2016-05-06T11:04:05.000Z | 2016-06-05T00:07:59.000Z | cfg_template.py | raubana/TwitchJackboxBot | ec78f3d9d0e89320d9691571fb729b61efa5100d | [
"WTFPL"
] | 3 | 2016-05-05T21:04:50.000Z | 2020-03-18T19:38:58.000Z | import re
# Be sure to rename this file to "cfg.py" and to fill in the
# missing information below before running this project.
# You should use a different account than your main one for
# the bot, just in case it gets banned (hasn't happened yet
# to me, but it's a possible risk).
# One way to get your oauth code ... | 39.714286 | 80 | 0.61271 | 133 | 834 | 3.81203 | 0.646617 | 0.015779 | 0.017751 | 0.023669 | 0.015779 | 0.015779 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.268585 | 834 | 21 | 81 | 39.714286 | 0.814754 | 0.585132 | 0 | 0 | 0 | 0 | 0.236527 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.111111 | 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 |
ee7a09eca67af2ba6d4483b37d52952f0604419b | 1,505 | py | Python | python/binary_search.py | dilwong/algorithms | eb7b4d2435d6197a673ff845ef0f6a9920f869d4 | [
"MIT"
] | null | null | null | python/binary_search.py | dilwong/algorithms | eb7b4d2435d6197a673ff845ef0f6a9920f869d4 | [
"MIT"
] | null | null | null | python/binary_search.py | dilwong/algorithms | eb7b4d2435d6197a673ff845ef0f6a9920f869d4 | [
"MIT"
] | null | null | null | from typing import List, Optional, Tuple, TypeVar
import random
from . import testing
from .testing import generate_random_list
T = TypeVar('T')
# Assume ls is sorted
def binary_search(ls: List[T], item: T, partition_idxs: Optional[Tuple[int, int]] = None) -> Optional[int]:
if len(ls) == 0:
return None
... | 35 | 107 | 0.647176 | 210 | 1,505 | 4.5 | 0.257143 | 0.10582 | 0.118519 | 0.07619 | 0.283598 | 0.232804 | 0.232804 | 0.160847 | 0.080423 | 0 | 0 | 0.012017 | 0.225914 | 1,505 | 43 | 108 | 35 | 0.799142 | 0.025914 | 0 | 0.230769 | 1 | 0 | 0.088115 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.051282 | false | 0.025641 | 0.102564 | 0 | 0.282051 | 0.102564 | 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 |
ee7e99e5ecf461eb33190f04ee8fe09268a7c9b3 | 699 | py | Python | Tools/bootloader/genBin.py | edgeimpulse/example-standalone-inferencing-ecm3532 | 6f008f9449d019ba9149ed6dfa28a184922b06c9 | [
"Apache-2.0"
] | 3 | 2020-07-29T07:19:44.000Z | 2021-08-09T06:58:55.000Z | Tools/bootloader/genBin.py | edgeimpulse/example-standalone-inferencing-ecm3532 | 6f008f9449d019ba9149ed6dfa28a184922b06c9 | [
"Apache-2.0"
] | 3 | 2021-03-19T16:09:31.000Z | 2022-01-13T03:39:32.000Z | Tools/bootloader/genBin.py | edgeimpulse/example-standalone-inferencing-ecm3532 | 6f008f9449d019ba9149ed6dfa28a184922b06c9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import binascii
import os
import serial.tools.list_ports
import glob
import inquirer
# #print(sys.argv[1])
application_loc = sys.argv[1]
output_loc = sys.argv[1]
temp_file = os.path.dirname(os.path.abspath(sys.argv[1]))+"/crc.bin"
# output_file = os.path.dirname(os.path.a... | 24.103448 | 88 | 0.69671 | 113 | 699 | 4.19469 | 0.460177 | 0.088608 | 0.101266 | 0.101266 | 0.204641 | 0.204641 | 0.160338 | 0.160338 | 0.160338 | 0.160338 | 0 | 0.023102 | 0.133047 | 699 | 29 | 89 | 24.103448 | 0.759076 | 0.320458 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c987d77652d0b140a78e103ab56b785b3a1e434d | 837 | py | Python | conanfile.py | dbacchet/entt | a8718fedd382bbfe873eb64fe9142d5a71e2fbd8 | [
"MIT"
] | 6,792 | 2017-03-27T19:05:19.000Z | 2022-03-31T20:21:26.000Z | conanfile.py | dbacchet/entt | a8718fedd382bbfe873eb64fe9142d5a71e2fbd8 | [
"MIT"
] | 764 | 2017-05-22T18:48:53.000Z | 2022-03-31T22:04:27.000Z | conanfile.py | dbacchet/entt | a8718fedd382bbfe873eb64fe9142d5a71e2fbd8 | [
"MIT"
] | 811 | 2017-03-27T19:52:48.000Z | 2022-03-30T11:32:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile
class EnttConan(ConanFile):
name = "entt"
description = "Gaming meets modern C++ - a fast and reliable entity-component system (ECS) and much more "
topics = ("conan," "entt", "gaming", "entity", "ecs")
url = "https://github.co... | 29.892857 | 110 | 0.626045 | 106 | 837 | 4.849057 | 0.669811 | 0.058366 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001531 | 0.219833 | 837 | 27 | 111 | 31 | 0.785605 | 0.050179 | 0 | 0 | 0 | 0 | 0.295082 | 0.031526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.