max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
listlengths
7
549k
models/fs_networks.py
RaghavaDhanya/SimSwap
2
1615664
<filename>models/fs_networks.py """ Copyright (C) 2019 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import torch import torch.nn as nn class InstanceNorm(nn.Module): def __init__(self, epsilon=1e-8): ...
[ 1, 529, 9507, 29958, 9794, 29914, 5847, 29918, 11618, 29879, 29889, 2272, 13, 15945, 29908, 13, 11882, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29929, 405, 13044, 10764, 15025, 29889, 29871, 2178, 10462, 21676, 29889, 13, 29931, ...
tests/test_7_gaps.py
alienzj/genomepy
0
88320
from tempfile import NamedTemporaryFile from genomepy.utils import generate_gap_bed def test_gaps(): infa = "tests/data/gap.fa" outbed = "tests/data/gap.bed" tmp = NamedTemporaryFile().name generate_gap_bed(infa, tmp) result = open(tmp).read() expect = open(outbed).read() assert result ...
[ 1, 515, 5694, 1445, 1053, 405, 2795, 5776, 1971, 653, 2283, 13, 3166, 2531, 608, 2272, 29889, 13239, 1053, 5706, 29918, 29887, 481, 29918, 2580, 13, 13, 13, 1753, 1243, 29918, 29887, 2547, 7295, 13, 1678, 3041, 29874, 353, 376, 21150, ...
HLTtSNE.py
wonpoint4/MuonHLTML
0
161702
<gh_stars>0 import sys import numpy as np import pandas as pd from HLTIO import IO from HLTIO import preprocess from HLTvis import vis from sklearn.manifold import TSNE from pathlib import Path def doTSNE(seed,seedname,filename): checkfile = Path('data/t-sne_'+filename+'_'+seedname+'.csv') try: checkfi...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 10876, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 379, 5850, 5971, 1053, 10663, 13, 3166, 379, 5850, 5971, 1053, 758, 5014, 13, 3166, 379, 5850, 1730, 10...
examples/pylab_examples/set_and_get.py
pierre-haessig/matplotlib
1
194375
<reponame>pierre-haessig/matplotlib<gh_stars>1-10 """ MATLAB and pylab allow you to use setp and get to set and get object properties, as well as to do introspection on the object set To set the linestyle of a line to be dashed, you can do >>> line, = plot([1,2,3]) >>> setp(line, linestyle='--') ...
[ 1, 529, 276, 1112, 420, 29958, 29886, 6349, 29899, 2350, 404, 335, 29914, 2922, 17357, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 13, 29924, 1299, 24461, 322, 282, 2904, 370, 2758, 366, 304, ...
cogs/botbrain/error.py
noaione/naoTimes
5
156641
<filename>cogs/botbrain/error.py<gh_stars>1-10 from __future__ import annotations try: from sentry_sdk import push_scope except ImportError: pass import io import logging import traceback from dataclasses import dataclass from typing import TYPE_CHECKING import aiohttp import arrow import discord from discor...
[ 1, 529, 9507, 29958, 29883, 12099, 29914, 7451, 2634, 262, 29914, 2704, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 25495, 13, 13, 2202, 29901, 13, 1678, 515, 26...
myia/debug/traceback.py
strint/myia
222
98389
<reponame>strint/myia """Tools to print a traceback for an error in Myia.""" import ast import sys import warnings import prettyprinter as pp from colorama import Fore, Style from ..abstract import Reference, data, format_abstract, pretty_struct from ..ir import ANFNode, Graph from ..parser import Location, MyiaDisc...
[ 1, 529, 276, 1112, 420, 29958, 710, 524, 29914, 1357, 423, 13, 15945, 29908, 24183, 304, 1596, 263, 9637, 1627, 363, 385, 1059, 297, 1619, 423, 1213, 15945, 13, 13, 5215, 8717, 13, 5215, 10876, 13, 5215, 18116, 13, 13, 5215, 5051, 5...
project3/rearrange_digits.py
qiyangjie/Udacity-Data-Structures-Algorithm-Projects
0
169978
def sort_a_little_bit(items, begin_index, end_index): left_index = begin_index pivot_index = end_index pivot_value = items[pivot_index] while pivot_index != left_index: item = items[left_index] if item <= pivot_value: left_index += 1 continue items[left_...
[ 1, 822, 2656, 29918, 29874, 29918, 29880, 1992, 29918, 2966, 29898, 7076, 29892, 3380, 29918, 2248, 29892, 1095, 29918, 2248, 1125, 13, 1678, 2175, 29918, 2248, 353, 3380, 29918, 2248, 13, 1678, 24438, 29918, 2248, 353, 1095, 29918, 2248, ...
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
0
4900
<filename>coding patterns/two pointers/sortedarr_square.py """ [E] Given a sorted array, create a new array containing squares of all the number of the input array in the sorted order. Input: [-2, -1, 0, 2, 3] Output: [0, 1, 4, 4, 9] """ # Time: O(N) Space: O(n) def make_squares(arr): n = len(arr) squares =...
[ 1, 529, 9507, 29958, 29883, 3689, 15038, 29914, 10184, 12589, 29914, 24582, 2749, 29918, 17619, 29889, 2272, 13, 13, 13, 13, 15945, 29908, 13, 13, 29961, 29923, 29962, 11221, 263, 12705, 1409, 29892, 1653, 263, 716, 1409, 6943, 25256, 310...
src/cogs/moderation.py
Arslee-Develop/openmod
5
64647
<filename>src/cogs/moderation.py import asyncio from typing import NoReturn import discord from discord import Member, User from discord.ext import commands from discord.ext.commands import Bot, Context, Greedy from discord_components import Button, ButtonStyle, DiscordComponents from cogs.utils import Config, Logger...
[ 1, 529, 9507, 29958, 4351, 29914, 29883, 12099, 29914, 1545, 261, 362, 29889, 2272, 13, 5215, 408, 948, 3934, 13, 3166, 19229, 1053, 1939, 11609, 13, 13, 5215, 2313, 536, 13, 3166, 2313, 536, 1053, 19495, 29892, 4911, 13, 3166, 2313, ...
trunk/ncore/paginations.py
zhaojiejoe/django-friendly-response
0
169724
<gh_stars>0 from rest_framework import pagination from ncore.response import JsonResponse from ncore.ret_codes import Codes, gen_msg_from_code class CustomerPagination(pagination.PageNumberPagination): page_size_query_param = 'limit' def get_paginated_response(self, data): return JsonResponse(**gen_m...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 1791, 29918, 4468, 1053, 10203, 3381, 13, 3166, 302, 3221, 29889, 5327, 1053, 14355, 5103, 13, 3166, 302, 3221, 29889, 2267, 29918, 18137, 1053, 315, 2631, 29892, 2531, 29918, 7645,...
Dragon/python/dragon/vm/torch/ops/modules/control_flow.py
awesome-archive/Dragon
0
110347
<filename>Dragon/python/dragon/vm/torch/ops/modules/control_flow.py # ------------------------------------------------------------ # Copyright (c) 2017-present, SeetaTech, Co.,Ltd. # # Licensed under the BSD 2-Clause License. # You should have received a copy of the BSD 2-Clause License # along with the software. If no...
[ 1, 529, 9507, 29958, 23978, 265, 29914, 4691, 29914, 20515, 265, 29914, 6925, 29914, 7345, 305, 29914, 3554, 29914, 7576, 29914, 6451, 29918, 1731, 29889, 2272, 13, 29937, 448, 2683, 2683, 2683, 1378, 5634, 13, 29937, 14187, 1266, 313, 29...
video_server/views/auth.py
jgeneaguilar/video_server
0
121283
<filename>video_server/views/auth.py from pyramid.view import view_config from pyramid.httpexceptions import HTTPBadRequest, HTTPNotFound from ..models import User from ..services import encoding def _authenticate_user(request): username = request.json_body.get("username") password = request.json_body.get("p...
[ 1, 529, 9507, 29958, 9641, 29918, 2974, 29914, 7406, 29914, 5150, 29889, 2272, 13, 3166, 11451, 2572, 333, 29889, 1493, 1053, 1776, 29918, 2917, 13, 3166, 11451, 2572, 333, 29889, 691, 412, 29916, 1441, 29879, 1053, 7331, 22050, 3089, 298...
bot_tokens.py
vetu11/QuienVienebot
2
94865
<reponame>vetu11/QuienVienebot BOT_TOKEN = "" PAYMENT_PROVIDER_TOKEN = None
[ 1, 529, 276, 1112, 420, 29958, 5990, 29884, 29896, 29896, 29914, 2182, 819, 29963, 819, 774, 327, 13, 29933, 2891, 29918, 4986, 29968, 1430, 353, 5124, 13, 7228, 29979, 13780, 29918, 8618, 13044, 1001, 29918, 4986, 29968, 1430, 353, 6213,...
Test/final/V5_face_CC/models_balance/resnet.py
WangWenhao0716/ISC-Track1-Submission
46
1617756
from __future__ import absolute_import from torch import nn from torch.nn import functional as F from torch.nn import init import torchvision import torch import random from .gem import GeneralizedMeanPoolingP __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] class Wavebl...
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 13, 3166, 4842, 305, 1053, 302, 29876, 13, 3166, 4842, 305, 29889, 15755, 1053, 13303, 408, 383, 13, 3166, 4842, 305, 29889, 15755, 1053, 2069, 13, 5215, 4842, 305, 4924, 1...
solutions/167.two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
wangsongiam/leetcode
3
180153
class Solution: def twoSum(self, numbers, target): """ :type numbers: List[int] :type target: int :rtype: List[int] """ l = 0 r = len(numbers) - 1 while l < r: sum = numbers[l] + numbers[r] if sum < target: l +=...
[ 1, 770, 24380, 29901, 13, 1678, 822, 1023, 11139, 29898, 1311, 29892, 3694, 29892, 3646, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 3694, 29901, 2391, 29961, 524, 29962, 13, 4706, 584, 1853, 3646, 29901, 938, 13, 4706, 584, 29878, 1853,...
tests/test_runners/test_ctest.py
Songmu/cli
0
164206
from pathlib import Path import responses # type: ignore import json import gzip import os from launchable.utils.session import read_session from tests.cli_test_case import CliTestCase from unittest import mock class CTestTest(CliTestCase): test_files_dir = Path(__file__).parent.joinpath( '../data/ctest/...
[ 1, 515, 2224, 1982, 1053, 10802, 13, 5215, 20890, 29871, 396, 1134, 29901, 11455, 13, 5215, 4390, 13, 5215, 330, 7554, 13, 5215, 2897, 13, 3166, 6826, 519, 29889, 13239, 29889, 7924, 1053, 1303, 29918, 7924, 13, 3166, 6987, 29889, 11303...
scripts/create_video.py
olds/moab_tools
0
169289
<gh_stars>0 from config import IMAGE_LOCATIONS import datetime yesterday = datetime.date.today() - datetime.timedelta(days = 1) for location in IMAGE_LOCATIONS: location.create_video(date=str(yesterday))
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 2295, 1053, 306, 1529, 1692, 29918, 16652, 8098, 29903, 13, 5215, 12865, 13, 13, 29891, 18358, 353, 12865, 29889, 1256, 29889, 27765, 580, 448, 12865, 29889, 9346, 287, 2554, 29898,...
apps/product/admin.py
LleidaHack/comlab
3
1614944
<reponame>LleidaHack/comlab<gh_stars>1-10 from django.contrib import admin from apps.product.models import Product, Tag # Register your models here. class ProductAdmin(admin.ModelAdmin): list_display = ("tag", "name",) admin.site.register(Product, ProductAdmin) admin.site.register(Tag)
[ 1, 529, 276, 1112, 420, 29958, 29931, 280, 1458, 29950, 547, 29914, 510, 8205, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 21570, 1053, 4113, 13, 3166, 11446, 29889, 4704, 29889, 9794, 1053, 1...
polling_stations/apps/data_collection/management/commands/import_derby.py
dantagg/UK-Polling-Stations
0
134714
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000015" addresses_name = "parl.2019-12-12/Version 1/Democracy_Club__12December2019derby.tsv" stations_name = "parl.2019-12-12/Version 1/Democracy_Club__12D...
[ 1, 515, 848, 29918, 10855, 29889, 21895, 29889, 26381, 1053, 7399, 29990, 2139, 29928, 331, 25804, 6821, 431, 29907, 4501, 24192, 9555, 13, 13, 13, 1990, 10516, 29898, 5160, 29990, 2139, 29928, 331, 25804, 6821, 431, 29907, 4501, 24192, 9...
syncstream/webtools.py
cainmagi/sync-stream
0
91230
<filename>syncstream/webtools.py #!python # -*- coding: UTF-8 -*- ''' ################################################################ # Tools used for web connections and services. # @ Sync-stream # Produced by # <NAME> @ <EMAIL>, # <EMAIL>. # Requirements: (Pay attention to version) # python 3.6+ # f...
[ 1, 529, 9507, 29958, 16593, 5461, 29914, 2676, 8504, 29889, 2272, 13, 29937, 29991, 4691, 13, 29937, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 12008, 13, 13383, 13383, 13383, 13383, 13, 29937, 27564, 1304,...
src/spark/context.py
dmitryshendryk/streaming_pipeline
0
190508
<filename>src/spark/context.py import logging import pyspark import os from pyspark import SparkConf from pyspark import SparkContext, SQLContext from pyspark.sql import SparkSession import pyspark from pyspark import SparkConf, SparkContext from pyspark.sql.window import Window from pyspark.sql.functions import expl...
[ 1, 529, 9507, 29958, 4351, 29914, 12597, 29914, 4703, 29889, 2272, 13, 5215, 12183, 13, 5215, 282, 952, 6378, 13, 5215, 2897, 13, 3166, 282, 952, 6378, 1053, 20814, 16376, 13, 13, 3166, 282, 952, 6378, 1053, 20814, 2677, 29892, 3758, ...
ppci/lang/sexpr.py
windelbouwman/ppci
161
67725
<reponame>windelbouwman/ppci<filename>ppci/lang/sexpr.py """ Functionality to tokenize and parse S-expressions. """ import io from .common import SourceLocation from .tools.handlexer import HandLexerBase from .tools.recursivedescent import RecursiveDescentParser __all__ = ("parse_sexpr",) def tokenize_sexpr(text):...
[ 1, 529, 276, 1112, 420, 29958, 14800, 295, 29890, 7100, 1171, 29914, 407, 455, 29966, 9507, 29958, 407, 455, 29914, 3893, 29914, 14167, 558, 29889, 2272, 13, 15945, 29908, 6680, 2877, 304, 5993, 675, 322, 6088, 317, 29899, 17073, 1080, ...
api/views.py
bcunhasa/nutriodonto
0
96142
<reponame>bcunhasa/nutriodonto from rest_framework import generics, permissions, status from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.authtoken.models import Token from rest_framework.response import Response from api.serializers import * from administracao.models import * from gerenci...
[ 1, 529, 276, 1112, 420, 29958, 12328, 348, 5349, 29874, 29914, 21305, 374, 397, 10268, 13, 3166, 1791, 29918, 4468, 1053, 1176, 1199, 29892, 11239, 29892, 4660, 13, 3166, 1791, 29918, 4468, 29889, 1300, 400, 4476, 29889, 7406, 1053, 4250,...
test/util_test.py
sbienkow/eg
1,389
44966
import json import os from eg import config from eg import substitute from eg import util from mock import Mock from mock import patch PATH_UNSQUEEZED_FILE = os.path.join( 'test', 'assets', 'pwd_unsqueezed.md' ) PATH_SQUEEZED_FILE = os.path.join( 'test', 'assets', 'pwd_squeezed.md' ) def _cr...
[ 1, 1053, 4390, 13, 5215, 2897, 13, 13, 3166, 8087, 1053, 2295, 13, 3166, 8087, 1053, 23764, 13, 3166, 8087, 1053, 3667, 13, 3166, 11187, 1053, 26297, 13, 3166, 11187, 1053, 13261, 13, 13, 10145, 29918, 29965, 3059, 11144, 29923, 29999, ...
PyOpenGL-3.0.2/OpenGL/raw/GL/NV/video_capture.py
frederica07/Dragon_Programming_Process
0
150519
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p, constants as _cs, arrays from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_NV_video_capture' def _f( function ): return _p.createFunction( function,_p.GL,'GL_NV_video_capture',False) _p.unpack_constants( ""...
[ 1, 14550, 6147, 468, 759, 630, 491, 679, 29918, 3820, 29918, 24299, 2471, 29892, 437, 451, 3863, 29991, 12008, 13, 3166, 29508, 1053, 7481, 408, 903, 29886, 29892, 17727, 408, 903, 2395, 29892, 7049, 13, 3166, 29508, 29889, 7239, 1053, ...
plugin/core/protocol.py
litezzzout/LSP
1
135888
from .typing import Any, Dict, Iterable, List, Mapping, Optional, TypedDict, Union from .url import filename_to_uri import os import sublime TextDocumentSyncKindNone = 0 TextDocumentSyncKindFull = 1 TextDocumentSyncKindIncremental = 2 class DiagnosticSeverity: Error = 1 Warning = 2 Information = 3 H...
[ 1, 515, 869, 1017, 15702, 1053, 3139, 29892, 360, 919, 29892, 20504, 519, 29892, 2391, 29892, 341, 20304, 29892, 28379, 29892, 14213, 287, 21533, 29892, 7761, 13, 3166, 869, 2271, 1053, 10422, 29918, 517, 29918, 5338, 13, 5215, 2897, 13, ...
integration.py
robtucker/pyspark-tooling
0
103887
import os from pyspark_tooling.emr import EMR from pyspark_tooling.timestamp import format_timestamp, utcnow class IntegrationTest: def __init__(self): self.bucket = os.environ["INTEGRATION_TEST_BUCKET"] self.folder = f"landing_timestamp={format_timestamp(utcnow())}" self.s3_path = f"s3://...
[ 1, 1053, 2897, 13, 3166, 282, 952, 6378, 29918, 10154, 292, 29889, 331, 29878, 1053, 382, 21055, 13, 3166, 282, 952, 6378, 29918, 10154, 292, 29889, 16394, 1053, 3402, 29918, 16394, 29892, 3477, 29883, 3707, 13, 13, 13, 1990, 17100, 362...
demos/websocketproxy/wsproxy.py
AutonomyLab/drums
0
59517
# -*- coding: utf-8 -*- __version__ = "0.1.0" version_info = tuple([int(num) for num in __version__.split('.')]) import os import gevent import zmq.green as zmq from geventwebsocket.handler import WebSocketHandler import paste.urlparser import msgpack import json def main(): '''Set up zmq context and greenlets ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 1649, 3259, 1649, 353, 376, 29900, 29889, 29896, 29889, 29900, 29908, 13, 3259, 29918, 3888, 353, 18761, 4197, 524, 29898, 1949, 29897, 363, 954, 297...
extgen/capi.py
maedoc/inducer-f2py
57
171823
<filename>extgen/capi.py from __future__ import absolute_import import numpy implementation = dict() typedefs = dict() macros = dict() typedefs['npy_unicode'] = dict(\ code = 'typedef struct { Py_UNICODE* data; Py_ssize_t size; } npy_unicode;') typedefs['npy_string'] = dict(\ code = 'typedef struct { char* d...
[ 1, 529, 9507, 29958, 1062, 1885, 29914, 29883, 2754, 29889, 2272, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 13, 5215, 12655, 13, 13, 21382, 353, 9657, 580, 13, 1017, 9795, 1389, 29879, 353, 9657, 580, 13, 8628, 1...
raiden/tests/unit/transfer/mediated_transfer/test_mediation_fee.py
tirkarthi/raiden
2,101
84183
<reponame>tirkarthi/raiden from fractions import Fraction from typing import Tuple import pytest from hypothesis import HealthCheck, assume, example, given, settings from hypothesis.strategies import integers from raiden.tests.unit.transfer.test_channel import make_hash_time_lock_state from raiden.tests.utils import ...
[ 1, 529, 276, 1112, 420, 29958, 29873, 381, 5689, 386, 29875, 29914, 336, 3615, 13, 3166, 5227, 1953, 1053, 7347, 428, 13, 3166, 19229, 1053, 12603, 552, 13, 13, 5215, 11451, 1688, 13, 3166, 20051, 1053, 15202, 5596, 29892, 5251, 29892, ...
2019/day-10/day-10.py
MatthieuMichon/advent-of-code
1
165454
#!/usr/bin/env python """Advent of Code Programming Puzzles 2019 Edition - Day 10 Puzzle Solution in Python """ import argparse import cmath import logging import os import sys from typing import Iterator log = logging.getLogger(__name__) # Common Methods ---------------------------------------------------------...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 3253, 794, 310, 5920, 7835, 4056, 349, 18813, 793, 13, 13, 29906, 29900, 29896, 29929, 17138, 448, 8373, 29871, 29896, 29900, 13, 29925, 18813, 280, 24380, 297, 5132, ...
scripts/version.py
danabens/sagemaker-experiments
88
193274
import re # a subset of PEP 440 _VERSION_REGEX = re.compile( r""" ^\s* v? (?P<major>\d+) (?:\.(?P<minor>\d+))? (?:\.(?P<patch>\d+))? \s*$ """, re.VERBOSE | re.IGNORECASE, ) class Version: """ Represents a major.minor.patch version string """ def __init__(self, major,...
[ 1, 1053, 337, 13, 13, 13, 29937, 263, 11306, 310, 349, 15488, 29871, 29946, 29946, 29900, 13, 29918, 16358, 29918, 1525, 1692, 29990, 353, 337, 29889, 12198, 29898, 13, 1678, 364, 15945, 29908, 13, 268, 3823, 29879, 29930, 13, 1678, 325...
pysimpleframe/interface/display/tables/NavigationTable.py
OriDevTeam/PySimpleFrame
0
32500
<reponame>OriDevTeam/PySimpleFrame #!/usr/bin/env python # -*- coding: utf-8 -*- """ Name: TOFILL\n Description: TOFILL """ """PySimpleFrame Author: <NAME> License: Check LICENSE file """ ## System imports ## ## Library imports ## import termtables from colorama import Fore, Back, Style ## Application ...
[ 1, 529, 276, 1112, 420, 29958, 15988, 16618, 19409, 29914, 19737, 15427, 4308, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 29908,...
apps/user/admin.py
OpenAdaptronik/Rattler
2
182219
""" License MIT License Copyright (c) 2017 OpenAdaptronik 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,...
[ 1, 9995, 19245, 13, 26349, 19245, 13, 13, 11882, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 4673, 29909, 1388, 415, 1617, 638, 13, 13, 27293, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304, 738, 2022, 4017, ...
bot/exts/evergreen/recommend_game.py
htudu/seasonalbot
0
194450
<gh_stars>0 import json import logging from pathlib import Path from random import shuffle import discord from discord.ext import commands log = logging.getLogger(__name__) game_recs = [] # Populate the list `game_recs` with resource files for rec_path in Path("bot/resources/evergreen/game_recs").glob("*.json"): ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 4390, 13, 5215, 12183, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 4036, 1053, 528, 21897, 13, 13, 5215, 2313, 536, 13, 3166, 2313, 536, 29889, 1062, 1053, 8260, 13, 13, 1188, ...
alchemy/train/no_deps/metrics.py
edu-gp/annotation_tool
2
88488
<filename>alchemy/train/no_deps/metrics.py import pandas as pd from sklearn.metrics import ( confusion_matrix, precision_recall_fscore_support, roc_auc_score, average_precision_score, ) from .paths import _get_config_fname, _get_exported_data_fname from .utils import _prepare_data class InferenceMetr...
[ 1, 529, 9507, 29958, 284, 305, 6764, 29914, 14968, 29914, 1217, 29918, 311, 567, 29914, 2527, 10817, 29889, 2272, 13, 5215, 11701, 408, 10518, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 313, 13, 1678, 14679, 29918, 5344, 29892, 13, ...
modules/dbnd/src/dbnd/_vendor/croniter/tests/base.py
ipattarapong/dbnd
224
120446
try: import unittest2 as unittest except ImportError: import unittest class TestCase(unittest.TestCase): ''' We use this base class for all the tests in this package. If necessary, we can put common utility or setup code in here. ''' # vim:set ft=python:
[ 1, 1018, 29901, 13, 1678, 1053, 443, 27958, 29906, 408, 443, 27958, 13, 19499, 16032, 2392, 29901, 13, 1678, 1053, 443, 27958, 13, 13, 13, 1990, 4321, 8259, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 14550, 13, 1678, 1334, ...
tests/bool/boolop.py
chrivers/pyjaco
38
88045
A = [1, 2, 3, 4, 5, 6] B = [1, 2, 3, 4, 5, 6] C = [1, 2, 3, 4, 5, 6] for a in A: for b in B: for c in C: if a > b > c: print ">", (a, b, c) if a < b < c: print ">", (a, b, c) if a >= b >= c: print ">=", (a, b, c) ...
[ 1, 319, 353, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 29933, 353, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, ...
Unlearning/correlation_verification.py
cleverhans-lab/unrolling-sgd
3
77023
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import copy import torchvision import torchvision.transforms as transforms import numpy as np from PyHessian.pyhessian import hessian # Hessian computation from ResNet_CIFAR10 import * fro...
[ 1, 1053, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 5215, 4842, 305, 29889, 1627, 1975, 29889, 29883, ...
tests/python/pants_test/cache/test_artifact_cache.py
lahosken/pants
1
133311
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import uni...
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29946, 349, 1934, 2060, 17737, 29560, 313, 4149, 8707, 29911, 3960, 29933, 2692, 24125, 29889, 3487, 467, 13, 29937, 10413, 21144, 1090, 278, 1338...
src/tensorrt_demos/utils/ssd_classes.py
MickaelCormier/IW276WS20-P10
1
64914
<filename>src/tensorrt_demos/utils/ssd_classes.py """ssd_classes.py This file was modified from: http://github.com/AastaNV/TRT_object_detection/blob/master/coco.py """ COCO_CLASSES_LIST = [ 'background', # was 'unlabeled' 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 't...
[ 1, 529, 9507, 29958, 4351, 29914, 20158, 2273, 29918, 2310, 359, 29914, 13239, 29914, 893, 29881, 29918, 13203, 29889, 2272, 13, 15945, 29908, 893, 29881, 29918, 13203, 29889, 2272, 13, 13, 4013, 934, 471, 9120, 515, 29901, 13, 1124, 597,...
pwn/ezrop_revenge/solve.py
vidner/codepwnda-ctf
6
177670
<gh_stars>1-10 #!/usr/bin/env python from pwn import * context.terminal = ['tmux', 'split-window', '-h'] context.log_level = ['debug', 'info', 'warn'][1] BINARY = './chall' HOST = '172.16.17.32' PORT = 17005 # 0x08057bd2: mov dword ptr [edx], eax; ret; # 0x0806ee8b: pop edx; ret; # 0x080ab5ca: pop eax; ret; # 0x0806...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 3166, 282, 1233, 1053, 334, 13, 13, 4703, 29889, 8489, 979, 353, 6024, 18276, 1314, 742, 525, 5451, 29899, 7...
pyhacks/Logger.py
barakt11/pyhacks
0
120901
<filename>pyhacks/Logger.py import queue import threading from .constants import * def verifyKey(item, keyName): if type(keyName)!=str: raise Exception("Key type excpected to be str but got {}".format(type(keyName))) if keyName in item: return True else: raise Exception("Key {} doesn't exist in item: {}".form...
[ 1, 529, 9507, 29958, 2272, 29882, 26514, 29914, 16363, 29889, 2272, 13, 5215, 9521, 13, 5215, 3244, 292, 13, 3166, 869, 3075, 1934, 1053, 334, 13, 13, 1753, 11539, 2558, 29898, 667, 29892, 1820, 1170, 1125, 13, 12, 361, 1134, 29898, 1...
rcj_soccer/views/results.py
rcjaustralia/rcj-soccer-platform
1
190824
<filename>rcj_soccer/views/results.py from flask import render_template from rcj_soccer.base import app from rcj_soccer.models import SoccerGame, Team, League from rcj_soccer.views.auth import template from rcj_soccer.views.competition import get_competition @app.route("/<competition>", methods=["GET", "POST"]) def ...
[ 1, 529, 9507, 29958, 2214, 29926, 29918, 29879, 11953, 29914, 7406, 29914, 9902, 29889, 2272, 13, 3166, 29784, 1053, 4050, 29918, 6886, 13, 13, 3166, 364, 29883, 29926, 29918, 29879, 11953, 29889, 3188, 1053, 623, 13, 3166, 364, 29883, 29...
main.py
cristi2019255/GeneticAlgorithm
0
143070
<reponame>cristi2019255/GeneticAlgorithm from GeneticAlgorithm.BitArrayGenome import BitArrayGenome from GeneticAlgorithm.Fitness import FITNESS_FUNCTIONS, CO from GeneticAlgorithm.utils import find_crossover_fitness_correlation, find_optimal_population_size, test_ga GENOME_CONFIG = {'type': BitArrayGenome, 'size': 40...
[ 1, 529, 276, 1112, 420, 29958, 29883, 2021, 29875, 29906, 29900, 29896, 29929, 29906, 29945, 29945, 29914, 15462, 7492, 22461, 4540, 13, 3166, 5739, 7492, 22461, 4540, 29889, 21591, 2588, 15462, 608, 1053, 18531, 2588, 15462, 608, 13, 3166,...
setup.py
dhruvdcoder/allennlp-wandb
0
9938
<reponame>dhruvdcoder/allennlp-wandb from setuptools import setup, find_packages install_requires = [ "allennlp>=0.9.0", "wandb==0.8.15", ] setup( name='allennlp_wandb', version='0.0.1', description='Utilities to use allennlp with wandb', packages=find_packages( exclude=["*.tests", "*....
[ 1, 529, 276, 1112, 420, 29958, 12744, 582, 29894, 13891, 6119, 29914, 497, 2108, 22833, 29899, 18622, 29890, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 13, 6252, 29918, 276, 339, 2658, 353, 518, 13, 1678, 376,...
backend/kesaseteli/applications/api/v1/views.py
jannetasa/yjdh
0
26522
from django.core import exceptions from django.http import FileResponse from django.utils.text import format_lazy from django.utils.translation import gettext_lazy as _ from rest_framework import status from rest_framework.decorators import action from rest_framework.exceptions import ValidationError from rest_framewor...
[ 1, 515, 9557, 29889, 3221, 1053, 15283, 13, 3166, 9557, 29889, 1124, 1053, 3497, 5103, 13, 3166, 9557, 29889, 13239, 29889, 726, 1053, 3402, 29918, 433, 1537, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 679, 726, 29918, 433, ...
src/gam/gapi/reports.py
GAM-team/GAM
102
34599
import calendar import datetime import re import sys from dateutil.relativedelta import relativedelta import gam from gam.var import * from gam import controlflow from gam import display from gam import gapi from gam import utils from gam.gapi.directory import orgunits as gapi_directory_orgunits def build(): re...
[ 1, 1053, 17684, 13, 5215, 12865, 13, 5215, 337, 13, 5215, 10876, 13, 13, 3166, 2635, 4422, 29889, 2674, 1926, 287, 2554, 1053, 14215, 287, 2554, 13, 13, 5215, 24988, 13, 3166, 24988, 29889, 1707, 1053, 334, 13, 3166, 24988, 1053, 2761...
tests/models/test_hrnet_forward.py
mintusf/land_cover_segmentation
2
169144
<filename>tests/models/test_hrnet_forward.py import torch from torchvision.transforms import Compose from dataset import PatchDataset, get_transform from models import get_model from utils.io_utils import load_yaml def test_deeplab_forward(test_config): test_config.defrost() test_config.MODEL.TYPE = "hrnet" ...
[ 1, 529, 9507, 29958, 21150, 29914, 9794, 29914, 1688, 29918, 1092, 1212, 29918, 11333, 29889, 2272, 13, 5215, 4842, 305, 13, 3166, 4842, 305, 4924, 29889, 9067, 29879, 1053, 3831, 852, 13, 13, 3166, 8783, 1053, 349, 905, 16390, 24541, 2...
tests/test_encryption.py
IABTechLab/uid2-client-python
1
78212
# Copyright (c) 2021 The Trade Desk, Inc # # 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 the following discl...
[ 1, 396, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29896, 450, 27226, 2726, 29895, 29892, 9266, 13, 29937, 13, 29937, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 13, 29937, 21733, 29892, ...
api/alembic/versions/2710366d3d68_add_domain_s_ip.py
dodobox-s-team/dodobox-ext
0
45709
"""Add domain's ip Revision ID: 2710366d3d68 Revises: 43b883c483b4 Create Date: 2021-12-22 03:19:46.487228 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '2<PASSWORD>' down_revision = '43b883c483b4' branch_labels = None depends_on = None def upgrade(): ...
[ 1, 9995, 2528, 5354, 29915, 29879, 10377, 13, 13, 1123, 4924, 3553, 29901, 29871, 29906, 29955, 29896, 29900, 29941, 29953, 29953, 29881, 29941, 29881, 29953, 29947, 13, 1123, 1730, 267, 29901, 29871, 29946, 29941, 29890, 29947, 29947, 29941,...
heatlib/units.py
ondrolexa/heat
2
71545
################################################# # Unit helpers # ################################################# class Length(float): unit2m = dict(mm=0.001, cm=0.01, dm=0.1, m=1, km=1000) def __new__(cls, val, unit): return float.__new__(cls, val) def __init...
[ 1, 835, 13383, 13383, 7346, 4136, 2277, 13, 29937, 9651, 13223, 1371, 414, 462, 539, 396, 13, 13383, 13383, 13383, 29937, 13, 13, 13, 1990, 365, 1477, 29898, 7411, 1125, 13, 1678, 5190, 29906, 29885, 353, 9657, 29898, 4317, 29922, 29900...
tests/test_remote.py
epenet/samsung-tv-ws-api
0
7351
<gh_stars>0 """Tests for remote module.""" from unittest.mock import Mock, call, patch from samsungtvws.remote import SamsungTVWS def test_send_key(connection: Mock) -> None: """Ensure simple data can be parsed.""" open_response = ( '{"data": {"token": <PASSWORD>}, "event": "ms.channel.connect", "fro...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 24376, 363, 7592, 3883, 1213, 15945, 13, 3166, 443, 27958, 29889, 17640, 1053, 26297, 29892, 1246, 29892, 13261, 13, 13, 3166, 269, 28935, 12427, 5652, 29889, 16674, 1053, 3...
velbus/modules/vmbin.py
gitd8400/python-velbus
0
187003
<reponame>gitd8400/python-velbus<gh_stars>0 """ :author: <NAME> <<EMAIL> """ import velbus class VMB6INModule(velbus.Module): """ Velbus input module with 6 channels """ def __init__(self, module_type, module_name, module_address, controller): velbus.Module.__init__(self, module_type, module_na...
[ 1, 529, 276, 1112, 420, 29958, 5559, 29881, 29947, 29946, 29900, 29900, 29914, 4691, 29899, 955, 8262, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 29901, 8921, 29901, 529, 5813, 29958, 3532, 26862, 6227, 29958, 13, ...
public/static/console/worksheets/macros/upload_worksheet_data.py
mindthegrow/cannlytics
7
1617621
""" Upload Worksheet Data | Cannlytics Console Author: <NAME> <<EMAIL>> Created: 7/18/2021 Updated: 7/18/2021 License: MIT License <https://opensource.org/licenses/MIT> """ import xlwings as xw def upload_worksheet_data(): """A function called from Excel to import data by ID from Firestore into the Excel wor...
[ 1, 9995, 13, 17553, 5244, 9855, 3630, 891, 315, 812, 368, 29873, 1199, 9405, 13, 13, 13720, 29901, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 20399, 29901, 29871, 29955, 29914, 29896, 29947, 29914, 29906, 29900, 29906, 29896, 13, 2924...
infrastructure/meta/mk-ssh-keys.py
GovanifY/ctf-re
0
106909
<reponame>GovanifY/ctf-re #!/usr/bin/env python3 # import os import click from plumbum import local import json import pathlib SUPPORTED_KEY_TYPES = ["ed25519", "ecdsa", "rsa"] def write_ssh_key(username: str, out_path: str, key_type: str, debug: bool): if key_type == "ed25519": command = f"-t ed25519 -N...
[ 1, 529, 276, 1112, 420, 29958, 29954, 10471, 361, 29979, 29914, 312, 29888, 29899, 276, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 13, 5215, 2897, 13, 5215, 2828, 13, 3166, 715, 398, 2404, 1053, 1887, 13, ...
src/python/pants/core/goals/check_test.py
yoav-orca/pants
1,806
884
<reponame>yoav-orca/pants # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABCMeta, abstractmethod from pathlib import Path from textwrap import dedent from typing import ClassVar, Iterable, List, Optional, Tuple, Type f...
[ 1, 529, 276, 1112, 420, 29958, 9029, 485, 29899, 272, 1113, 29914, 29886, 1934, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 349, 1934, 2060, 17737, 29560, 313, 4149, 8707, 29911, 3960, 29933, 2692, 24125, 29889, 3487, 467, ...
Sych/ext/youtubeSearch.py
CNajm/SYCH-WhatsApp
6
74634
from bs4 import BeautifulSoup import urllib.request def SearchVid(search): response = urllib.request.urlopen('https://www.youtube.com/results?search_query='+search.replace(" ", "%20")) soup = BeautifulSoup(response, 'lxml') divs = soup.find_all("div", { "class" : "yt-lockup-content"}) vids = [] f...
[ 1, 515, 24512, 29946, 1053, 25685, 29903, 1132, 13, 5215, 3142, 1982, 29889, 3827, 13, 13, 1753, 11856, 29963, 333, 29898, 4478, 1125, 13, 1678, 2933, 353, 3142, 1982, 29889, 3827, 29889, 332, 417, 2238, 877, 991, 597, 1636, 29889, 1956...
tests/utils/test_classproperty.py
koskotG/ebonite
270
70768
<reponame>koskotG/ebonite from ebonite.utils.classproperty import classproperty class MyClass: @classproperty def prop1(self): return 'a' @classproperty @classmethod def prop2(self): return 'b' def test_classproperty__get(): assert MyClass.prop1 == 'a' assert MyClass.pro...
[ 1, 529, 276, 1112, 420, 29958, 29895, 359, 29895, 327, 29954, 29914, 774, 265, 568, 13, 3166, 321, 6718, 568, 29889, 13239, 29889, 1990, 6799, 1053, 770, 6799, 13, 13, 13, 1990, 28603, 29901, 13, 1678, 732, 1990, 6799, 13, 1678, 822, ...
taskwiki/store.py
wolass/taskwiki
465
173730
<gh_stars>100-1000 from tasklib import TaskWarrior from taskwiki import errors class WarriorStore(object): """ Stores all instances of TaskWarrior objects. """ def __init__(self, default_rc, default_data, extra_warrior_defs): default_kwargs = dict( data_location=default_data, ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 3166, 3414, 1982, 1053, 9330, 29956, 279, 13479, 13, 13, 3166, 3414, 4594, 1053, 4436, 13, 13, 13, 1990, 3362, 13479, 9044, 29898, 3318, ...
examples/client_no_auth.py
bittsi/napalm-logs
0
196997
#!/usr/bin/env python ''' napalm-logs client, without authentication. Listens to the napalm-logs server started using the following settings: napalm-logs --publish-address 127.0.0.0.1 --publish-port 49017 --transport zmq --disable-security This client example listens to messages p...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 12008, 13, 8971, 17120, 29899, 20756, 3132, 29892, 1728, 10760, 29889, 13, 13, 1293, 575, 304, 278, 9709, 17120, 29899, 20756, 1923, 4687, 773, 278, 1494, 6055, 29901, 13, 13, 8971, 17...
spikes/how_to_test/sut/app/routes.py
jamoroch/maybe
0
89035
from flask import render_template, flash, redirect, url_for from app import app from app.forms import LoginForm @app.route('/') @app.route('/index') def index(): user = {'username':'Juan'} return render_template('index.html', user = user) @app.route('/login', methods = ['GET', 'POST']) def login(): form = Login...
[ 1, 515, 29784, 1053, 4050, 29918, 6886, 29892, 11013, 29892, 6684, 29892, 3142, 29918, 1454, 13, 3166, 623, 1053, 623, 13, 3166, 623, 29889, 9514, 1053, 19130, 2500, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 29992, 932, 29889, 13134,...
core-python/Core_Python/loop/ForElse.py
theumang100/tutorials-1
9
127911
n = int (input('Enter a number for prime number series : ')) for i in range(2,n): for j in range(2,i): if i % j == 0: print(i,"is not a prime number because",j,"*",i//j,"=",i) break else: print(i,"is a prime number")
[ 1, 302, 353, 938, 313, 2080, 877, 10399, 263, 1353, 363, 6019, 1353, 3652, 584, 525, 876, 13, 1454, 474, 297, 3464, 29898, 29906, 29892, 29876, 1125, 13, 1678, 363, 432, 297, 3464, 29898, 29906, 29892, 29875, 1125, 13, 4706, 565, 474,...
src/grammar_learner/grammar_checker.py
vsbogd/language-learning
21
1605427
<gh_stars>10-100 # language-learning/src/preprocessing.py # parses cleanup & filtering # 190412 from collections import OrderedDict from .read_files import check_ull from .preprocessing import read_files, parse_ull def _compare_lg_dicts_(**kwargs): """ compares test and reference Link Grammar .dict files :p...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 4086, 29899, 21891, 29914, 4351, 29914, 1457, 19170, 29889, 2272, 29871, 396, 610, 29879, 267, 5941, 786, 669, 21166, 29871, 396, 29871, 29896, 299...
mcpython/common/block/ISlab.py
mcpython4-coding/core
2
2724
<filename>mcpython/common/block/ISlab.py """ mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original ...
[ 1, 529, 9507, 29958, 14047, 4691, 29914, 9435, 29914, 1271, 29914, 3235, 8205, 29889, 2272, 13, 15945, 29908, 13, 14047, 4691, 448, 263, 7903, 17293, 17432, 3971, 297, 3017, 7794, 9223, 1090, 278, 341, 1806, 29899, 506, 663, 29871, 13, ...
hwtLib/tests/serialization/tmpVar_test.py
optical-o/hwtLib
0
164100
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.code import connect from hwt.interfaces.std import VectSignal from hwt.synthesizer.unit import Unit from hwtLib.examples.base_serialization_TC import BaseSerializationTC class TmpVarExample(Unit): def _declr(self): self.a = VectSignal(32) se...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 298, 14554, 29889, 401, 1053, 4511, 13, 3166, 298, 14554, 29889, 1639, 8726, 29889, 4...
app/appauth/views.py
twatchy/cito_engine
0
1603598
"""Copyright 2014 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
[ 1, 9995, 11882, 1266, 29871, 29906, 29900, 29896, 29946, 529, 5813, 29958, 13, 13, 29931, 293, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 6293, 1122, 451, 671, 445...
tests/test_fold.py
hawkfish/textform
4
57743
<gh_stars>1-10 import unittest from context import * class TestFold(unittest.TestCase): def assert_fold(self, nfolded=2, ngroups=1, nkeys=1, nrows=1): folded = tuple([f"Fold {f+1}" for f in range(nfolded*ngroups)]) keys = [f"Key {k+1}" for k in range(nkeys)] inputs = [k for k in keys] ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 443, 27958, 13, 3166, 3030, 1053, 334, 13, 13, 1990, 4321, 29943, 1025, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 4974, 29918, 8771, 2989...
apps/jobs/models/jobs.py
rainydaygit/testtcloudserver
349
157528
from library.api.db import EntityModel, db class JobsRecord(EntityModel): ACTIVE = 0 DISABLE = 1 job_id = db.Column(db.String(100)) # Job id result = db.Column(db.String(1000)) # Job 结果 log = db.Column(db.Text) # Job log
[ 1, 515, 3489, 29889, 2754, 29889, 2585, 1053, 14945, 3195, 29892, 4833, 13, 13, 13, 1990, 17163, 29879, 9182, 29898, 6691, 3195, 1125, 13, 1678, 319, 1783, 18474, 353, 29871, 29900, 13, 1678, 28657, 6181, 353, 29871, 29896, 13, 13, 1678...
text/_geometry/boxing/ratios/padding.py
jedhsu/text
0
115406
from ._ratio import BoxRatio class PaddingBoxRatio( BoxRatio, ): pass
[ 1, 515, 869, 29918, 3605, 601, 1053, 11773, 29934, 20819, 13, 13, 13, 1990, 349, 4676, 3313, 29934, 20819, 29898, 13, 1678, 11773, 29934, 20819, 29892, 13, 1125, 13, 1678, 1209, 13, 2 ]
hacking/imgur-image-scraping-spider/pipelines.py
Dilmuratjan/MyProject
2
65220
import scrapy from scrapy.contrib.pipeline.images import ImagesPipeline ITEM_PIPELINES = {'imgur.pipelines.ImgurPipeline': 1} class ImgurPipeline(ImagesPipeline): def set_filename(self, response): #add a regex here to check the title is valid for a filename. return 'full/{0}.jpg'.format(response.meta['...
[ 1, 1053, 24559, 2272, 30004, 13, 3166, 24559, 2272, 29889, 21570, 29889, 13096, 5570, 29889, 8346, 1053, 1954, 1179, 29925, 23828, 30004, 13, 30004, 13, 9094, 29924, 29918, 2227, 4162, 23714, 2890, 353, 11117, 3320, 29889, 13096, 24210, 298...
tasks/request-confirm-refund.py
smes112108/line-pay
0
106915
<gh_stars>0 # -*- coding: utf-8 -*- """ LINE Pay API SDK for Python use example Request -> Confirm -> Refund """ import logging import uuid import os from os.path import join, dirname from dotenv import load_dotenv from flask import Flask, request, abort, render_template, redirect from linepay import LinePayApi # d...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 29908, 13, 18521, 14617, 3450, 12967, 363, 5132, 671, 1342, 13, 13, 3089, 1599, 10811, 3568,...
Bonsai_Buckaroo/code.py
gamblor21/Adafruit_Learning_System_Guides
665
1611188
<filename>Bonsai_Buckaroo/code.py import time import board import digitalio import analogio from adafruit_clue import clue # Turn off the NeoPixel clue.pixel.fill(0) # Motor setup motor = digitalio.DigitalInOut(board.P2) motor.direction = digitalio.Direction.OUTPUT # Soil sense setup analog = analogio.AnalogIn(board...
[ 1, 529, 9507, 29958, 29933, 787, 1794, 29918, 29933, 2707, 279, 3634, 29914, 401, 29889, 2272, 13, 5215, 931, 13, 5215, 7613, 13, 5215, 13436, 601, 13, 5215, 15690, 601, 13, 3166, 594, 2142, 9216, 29918, 695, 434, 1053, 23960, 13, 13,...
magichour/api/dist/sample/driver_EventEval.py
Lab41/magichour
34
170755
sc.addPyFile('magichour.zip') from magichour.api.dist.events.eventEval import event_eval_rdd from magichour.api.local.util.namedtuples import DistributedLogLine logLineURI = 'hdfs://namenode/magichour/tbird.500.templateEvalRDD' rddlogLines = sc.pickleFile(logLineURI) eventDefURI = 'hdfs://namenode/magichour/tbird.5...
[ 1, 885, 29889, 1202, 19737, 2283, 877, 11082, 436, 473, 29889, 7554, 1495, 13, 3166, 2320, 436, 473, 29889, 2754, 29889, 5721, 29889, 13604, 29889, 3696, 29923, 791, 1053, 1741, 29918, 14513, 29918, 29878, 1289, 13, 3166, 2320, 436, 473, ...
AcademicDealerBackend/accounts/urls.py
Acciente717/AcademicDealerBackend
5
128597
<reponame>Acciente717/AcademicDealerBackend<gh_stars>1-10 from django.urls import include, path from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from . import views urlpatterns = [ path('', include('django.contrib.auth.urls')), path('signup/', views.SignUp.as_view()...
[ 1, 529, 276, 1112, 420, 29958, 10644, 27381, 29955, 29896, 29955, 29914, 29909, 9431, 293, 2772, 18362, 5841, 355, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 26045, 1053, 3160, 29892, 2224, 13,...
xos/synchronizer/pull_steps/test_pull_olts.py
iecedge/olt-service
0
23962
# Copyright 2017-present Open Networking Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29955, 29899, 6338, 4673, 8527, 292, 10606, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, ...
python/xpath-helper/tests/test_filter.py
jrebecchi/xpath-helper
14
112066
from xpath_helper import xh, filter def test_and_operator(html_doc): h1_path = xh.get_element_by_tag("h1", filter.and_operator( filter.value_contains("motherfudging"), filter.value_contains("website"))) elements = html_doc.xpath(str(h1_path)) assert len(elements) != 0 assert "The " in elements...
[ 1, 515, 921, 2084, 29918, 20907, 1053, 921, 29882, 29892, 4175, 13, 13, 1753, 1243, 29918, 392, 29918, 6891, 29898, 1420, 29918, 1514, 1125, 13, 1678, 298, 29896, 29918, 2084, 353, 921, 29882, 29889, 657, 29918, 5029, 29918, 1609, 29918, ...
apps/accounts/api/v1/serializers/password.py
jimialex/django-wise-template-mysql
2
102019
# -*- coding: utf-8 -*- from rest_framework import serializers from rest_framework.exceptions import ValidationError from rest_framework.serializers import Serializer from apps.accounts import response_codes from apps.accounts.api.v1.serializers.login import UsernameOrEmailSerializer from apps.accounts.models import ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 1791, 29918, 4468, 1053, 7797, 19427, 13, 3166, 1791, 29918, 4468, 29889, 11739, 29879, 1053, 15758, 362, 2392, 13, 3166, 1791, 29918, 4468, 29...
Chapter01/03 Saving image using lossy and lossless compression.py
PCJimmmy/OpenCV-3-Computer-Vision-with-Python-Cookbook
1
74212
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import cv2 parser = argparse.ArgumentParser() parser.add_argument('--path', default='../data/Lena.png', help='Image path.') parser.add_argument('--out_png', default='../data/Lena_compressed.png', help='Output image path for lossless re...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 5215, 1852, 5510, 13, 5215, 13850, 29906, 13, 13, 16680, 353, 1852, 5510, 29889, 15730, 117...
scripts/token_adder.py
jamestiotio/hostelhunt
0
182657
# Initial automation setup script to add tokens from text files to Firestore # Created by <NAME> (2019) # Import libraries from google.cloud import firestore import credentials # Establish Firestore Client connection db = firestore.Client() # Parse data from text files and store as dictionaries def pars...
[ 1, 396, 17250, 3345, 362, 6230, 2471, 304, 788, 18897, 515, 1426, 2066, 304, 14152, 22818, 30004, 13, 29937, 6760, 630, 491, 529, 5813, 29958, 313, 29906, 29900, 29896, 29929, 8443, 13, 30004, 13, 29937, 16032, 9562, 30004, 13, 3166, 53...
tests/fields/test_int64.py
Pr0Ger/protobuf3
9
164357
<filename>tests/fields/test_int64.py from unittest import TestCase from protobuf3.fields.int64 import Int64Field from protobuf3.message import Message class TestInt64Field(TestCase): def setUp(self): class Int64TestMessage(Message): a = Int64Field(field_number=1) self.msg_cls = Int64T...
[ 1, 529, 9507, 29958, 21150, 29914, 9621, 29914, 1688, 29918, 524, 29953, 29946, 29889, 2272, 13, 3166, 443, 27958, 1053, 4321, 8259, 13, 3166, 17814, 9721, 29941, 29889, 9621, 29889, 524, 29953, 29946, 1053, 3159, 29953, 29946, 3073, 13, ...
SADemo/SA_API.py
YueJZSensorsData/FirstDemo
0
181262
import requests import json def login(): data = {"username": "admin", "password": "<PASSWORD>" } headers = {'Content-Type': 'application/json'} ## headers中添加上content-type这个参数,指定为json格式 response = requests.post(url='https://test-hechun.cloud.sensorsdata.cn/api/auth/login?project=...
[ 1, 1053, 7274, 13, 5215, 4390, 13, 13, 13, 13, 1753, 6464, 7295, 13, 1678, 848, 353, 8853, 6786, 1115, 376, 6406, 613, 13, 9651, 376, 5630, 1115, 9872, 25711, 17013, 11903, 13, 9651, 500, 13, 13, 1678, 9066, 353, 11117, 3916, 29899,...
Estrutura_Decisao/pair_or_odd.py
M3nin0/supreme-broccoli
0
22481
<reponame>M3nin0/supreme-broccoli<filename>Estrutura_Decisao/pair_or_odd.py num = int(input("Insira um numero para descobrir se este é par ou impar: ")) if num % 2 == 0: print("Este numero é par") else: print("Este numero é impar")
[ 1, 529, 276, 1112, 420, 29958, 29924, 29941, 29876, 262, 29900, 29914, 12587, 10291, 29899, 6729, 617, 5079, 29966, 9507, 29958, 29923, 710, 329, 2002, 29918, 6185, 275, 6241, 29914, 18784, 29918, 272, 29918, 22861, 29889, 2272, 13, 1949, ...
kitti_object.py
fnozarian/kitti_object_vis
0
125722
<gh_stars>0 """ Helper class and functions for loading KITTI objects Author: <NAME> Date: September 2017 """ from __future__ import print_function import os import sys import numpy as np import cv2.cv2 as cv2 import kitti_util as utils from kitti_util import Object3d import argparse import tqdm from pathlib import Pa...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 6162, 546, 770, 322, 3168, 363, 8363, 476, 1806, 24301, 3618, 13, 13, 13720, 29901, 529, 5813, 29958, 13, 2539, 29901, 3839, 29871, 29906, 29900, 29896, 29955, 13, 15945, ...
parse_file.py
agp96/-Music-Mood-Classification-Audioset-2
0
121887
<gh_stars>0 # Copyright (C) 2017 DataArt # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29955, 3630, 9986, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, ...
toolchain/riscv/MSYS/python/Lib/test/test_threadedtempfile.py
zhiqiang-hu/bl_iot_sdk
207
195979
<reponame>zhiqiang-hu/bl_iot_sdk """ Create and delete FILES_PER_THREAD temp files (via tempfile.TemporaryFile) in each of NUM_THREADS threads, recording the number of successes and failures. A failure is a bug in tempfile, and may be due to: + Trying to create more than one tempfile with the same name. + Tryin...
[ 1, 529, 276, 1112, 420, 29958, 29920, 2918, 26461, 574, 29899, 6905, 29914, 2204, 29918, 24414, 29918, 15348, 13, 15945, 19451, 13, 4391, 322, 5217, 9338, 17101, 29918, 13171, 29918, 4690, 16310, 5694, 2066, 313, 6071, 5694, 1445, 29889, ...
beamer/config.py
beamer-bridge/beamer
2
131010
from dataclasses import dataclass from pathlib import Path from typing import Optional from eth_account.signers.local import LocalAccount from beamer.contracts import DeploymentInfo from beamer.typing import URL @dataclass class Config: account: LocalAccount deployment_info: DeploymentInfo l1_rpc_url: U...
[ 1, 515, 848, 13203, 1053, 848, 1990, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 11314, 29918, 10149, 29889, 4530, 414, 29889, 2997, 1053, 9959, 10601, 13, 13, 3166, 367, 4183, 29889, 1285, 1461, 29879...
misc/python_sealog/event_aux_data.py
WHOIGit/ndsf-sealog-server
4
62203
#!/usr/bin/env python3 ''' FILE: event_aux_data.py DESCRIPTION: This script contains the wrapper functions for the sealog- server event_aux_data routes. BUGS: NOTES: AUTHOR: <NAME> COMPANY: OceanDataTools.org VERSION: 0.1 CREATED: 2021-01-01 REVISION: LICENSE INFO: This co...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 12008, 13, 7724, 29901, 965, 1741, 29918, 2993, 29918, 1272, 29889, 2272, 13, 13, 2287, 7187, 24290, 2725, 29901, 1678, 910, 2471, 3743, 278, 14476, 3168, 363, 278, 409, 27330, ...
rest_framework_security/brute_force_protection/views.py
RubenEu/django-rest-framework-security
0
194858
<reponame>RubenEu/django-rest-framework-security<filename>rest_framework_security/brute_force_protection/views.py<gh_stars>0 from functools import wraps from rest_framework import generics, views from rest_framework.exceptions import ValidationError, PermissionDenied from rest_framework.response import Response from ...
[ 1, 529, 276, 1112, 420, 29958, 29934, 21341, 29923, 29884, 29914, 14095, 29899, 5060, 29899, 4468, 29899, 8926, 29966, 9507, 29958, 5060, 29918, 4468, 29918, 8926, 29914, 1182, 1082, 29918, 10118, 29918, 14676, 428, 29914, 7406, 29889, 2272, ...
signing_today_client/models/robot_id_instantiate_roles_mapping.py
signingtoday/signingtoday-sdk-python
0
68846
<gh_stars>0 # coding: utf-8 """ Signing Today Web *Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: se...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 13, 1678, 9954, 292, 20628, 2563, 13, 13, 1678, 334, 10140, 292, 20628, 29930, 338, 278, 4922, 15918, 9954, 1535, 22510, ...
codeforces/contests/610/3.py
harry-7/mycodes
1
171274
""" Author:harry7 """ def form(s): temp="" for i in s: if i=="+": temp+="*" else: temp+="+" return temp #from time import time #START=time() ans=["++","+*"] b=1 n=input() for b in range(1,n): temp=[] for i in ans: temp+=[i+i,i+form(i)] ans=temp if n==0: print "+" else: for i in ans: ...
[ 1, 9995, 29871, 13, 1678, 13361, 29901, 8222, 719, 29955, 13, 13, 15945, 29908, 13, 13, 1753, 883, 29898, 29879, 1125, 13, 12, 7382, 13776, 13, 12, 1454, 474, 297, 269, 29901, 13, 12, 12, 361, 474, 26359, 29974, 1115, 13, 12, 12, ...
Ex0023/ex0023.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
0
199243
<reponame>Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo n = int(input('Informe um número: ')) print('Analisando o número: {}'.format(n)) u = n // 1 % 10 d = n // 10 % 10 c = n // 100 % 10 m = n // 1000 % 10 print('Unidade: {}\nDezena: {}\nCentena: {}\nMilhar: {}'.format(u, d, c, m))
[ 1, 529, 276, 1112, 420, 29958, 29934, 397, 29878, 5973, 29899, 13448, 14642, 29899, 26729, 1564, 29914, 1252, 6269, 19382, 11980, 23902, 578, 331, 15167, 13, 29876, 353, 938, 29898, 2080, 877, 797, 689, 29872, 1922, 13831, 29901, 525, 876...
aiohappybase/connection.py
python-happybase/aiohappybase
14
55374
""" AIOHappyBase connection module. """ import os import logging from typing import AnyStr, List, Dict, Any from thriftpy2.contrib.aio.transport import ( TAsyncBufferedTransportFactory, TAsyncFramedTransportFactory, ) from thriftpy2.contrib.aio.protocol import ( TAsyncBinaryProtocolFactory, TAsyncComp...
[ 1, 9995, 13, 29909, 5971, 29950, 14862, 5160, 3957, 3883, 29889, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 5215, 12183, 13, 3166, 19229, 1053, 3139, 5015, 29892, 2391, 29892, 360, 919, 29892, 3139, 13, 13, 3166, 1468, 2027, 2272, 29906,...
server/tests/steps/sql_translator/test_filter.py
davinov/weaverbird
54
14542
import pytest from weaverbird.backends.sql_translator.metadata import SqlQueryMetadataManager from weaverbird.backends.sql_translator.steps import translate_filter from weaverbird.backends.sql_translator.types import SQLQuery from weaverbird.pipeline.conditions import ComparisonCondition from weaverbird.pipeline.steps...
[ 1, 1053, 11451, 1688, 13, 13, 3166, 591, 12483, 18513, 29889, 1627, 1975, 29889, 2850, 29918, 3286, 29880, 1061, 29889, 19635, 1053, 13093, 3010, 18417, 3260, 13, 3166, 591, 12483, 18513, 29889, 1627, 1975, 29889, 2850, 29918, 3286, 29880, ...
orchestra/todos/auth.py
code-review-doctor/orchestra
444
106525
<reponame>code-review-doctor/orchestra from rest_framework import permissions from orchestra.models import Worker from orchestra.models import Todo from orchestra.models import TodoQA class IsAssociatedWithTodosProject(permissions.BasePermission): """ Ensures that a user's worker is accoiated with the todo's...
[ 1, 529, 276, 1112, 420, 29958, 401, 29899, 27828, 29899, 1867, 2801, 29914, 272, 15554, 13, 3166, 1791, 29918, 4468, 1053, 11239, 13, 13, 3166, 470, 15554, 29889, 9794, 1053, 5244, 261, 13, 3166, 470, 15554, 29889, 9794, 1053, 7561, 298...
supervisor/dbus/network/connection.py
peddamat/home-assistant-supervisor-test
1
12851
"""Connection object for Network Manager.""" from ipaddress import ip_address, ip_interface from typing import Optional from ...const import ATTR_ADDRESS, ATTR_PREFIX from ...utils.gdbus import DBus from ..const import ( DBUS_ATTR_ADDRESS_DATA, DBUS_ATTR_CONNECTION, DBUS_ATTR_GATEWAY, DBUS_ATTR_ID, ...
[ 1, 9995, 5350, 1203, 363, 8527, 15629, 1213, 15945, 13, 3166, 10377, 7328, 1053, 10377, 29918, 7328, 29892, 10377, 29918, 13248, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 2023, 3075, 1053, 15531, 5659, 29918, 17744, 26785, 29892, 15531, ...
Sensors/boot.py
leviner/MicrocontrollerKits
0
181085
<gh_stars>0 # This file is executed on every boot (including wake-boot from deepsleep) # code block from original boot.py on STM32 Micropython v1.13 #import machine #import pyb #pyb.country('US') # ISO 3166-1 Alpha-2 code, eg US, GB, DE, AU ##pyb.main('main.py') # main script to run after this one ##pyb.usb_mode('VCP+...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 910, 934, 338, 8283, 373, 1432, 6579, 313, 18271, 281, 1296, 29899, 4777, 515, 316, 8961, 5436, 29897, 13, 13, 29937, 775, 2908, 515, 2441, 6579, 29889, 2272, 373, 6850, 29924, ...
tides-server/pkg/controller/monitor.py
ji-it/CloudTides
3
148932
<gh_stars>1-10 import psycopg2 import os from config import BASE_DIR, DATABASES, FULL_HOSTNAME import requests import json def main(): db = DATABASES['default']['NAME'] user = DATABASES['default']['USER'] password = DATABASES['default']['PASSWORD'] host = DATABASES['default']['HOST'] port = DATABAS...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 6529, 29891, 9708, 29887, 29906, 13, 5215, 2897, 13, 3166, 2295, 1053, 350, 8127, 29918, 9464, 29892, 27640, 27982, 29903, 29892, 383, 3299, 29918, 20832, 5813, ...
wyzecam/iotc.py
kingrollsdice/wyzecam
0
71290
from typing import Dict, Iterator, Optional, Tuple, Union import enum import pathlib import time import warnings from ctypes import CDLL, c_int from wyzecam.api_models import WyzeAccount, WyzeCamera try: import av import av.video.frame except ImportError: av = None try: import cv2 except ImportError...
[ 1, 515, 19229, 1053, 360, 919, 29892, 20504, 1061, 29892, 28379, 29892, 12603, 552, 29892, 7761, 13, 13, 5215, 14115, 13, 5215, 2224, 1982, 13, 5215, 931, 13, 5215, 18116, 13, 3166, 274, 8768, 1053, 7307, 2208, 29892, 274, 29918, 524, ...
app.py
joshswe/simpleArticleManagementSystem
0
61984
<reponame>joshswe/simpleArticleManagementSystem from flask import Flask, render_template, flash, redirect, url_for, session, logging, request #from data import Articles from flask_mysqldb import MySQL from passlib.hash import sha256_crypt from functools import wraps from formclass import RegisterForm, ArticleForm #Cr...
[ 1, 529, 276, 1112, 420, 29958, 14736, 9499, 705, 29914, 12857, 9986, 2512, 27107, 3924, 13, 3166, 29784, 1053, 2379, 1278, 29892, 4050, 29918, 6886, 29892, 11013, 29892, 6684, 29892, 3142, 29918, 1454, 29892, 4867, 29892, 12183, 29892, 2009...