content stringlengths 1 1.05M | input_ids listlengths 1 883k | ratio_char_token float64 1 22.9 | token_count int64 1 883k |
|---|---|---|---|
import os.path
import shutil
from data_parsers.json_parser import JsonParser
from data_parsers.xml_parser import XmlParser
from data_parsers.parser import ParserError
from packing_algorithms.ratcliff.texture_packer_ratcliff import TexturePackerRatcliff
from packing_algorithms.maxrects.texture_packer_maxrects import Te... | [
11748,
28686,
13,
6978,
198,
11748,
4423,
346,
198,
198,
6738,
1366,
62,
79,
945,
364,
13,
17752,
62,
48610,
1330,
449,
1559,
46677,
198,
6738,
1366,
62,
79,
945,
364,
13,
19875,
62,
48610,
1330,
1395,
4029,
46677,
198,
6738,
1366,
... | 3.173913 | 138 |
import json
import logging
import rethinkdb as r
from tornado import gen, escape
from myslice.db.activity import Event
from myslice.lib.util import myJSONEncoder
from myslice.web.rest import Api
logger = logging.getLogger('myslice.rest.confirm')
| [
11748,
33918,
198,
11748,
18931,
198,
11748,
36437,
9945,
355,
374,
198,
6738,
33718,
1330,
2429,
11,
6654,
198,
198,
6738,
616,
48369,
13,
9945,
13,
21797,
1330,
8558,
198,
6738,
616,
48369,
13,
8019,
13,
22602,
1330,
616,
40386,
27195... | 3.351351 | 74 |
import requests
| [
11748,
7007,
198
] | 5.333333 | 3 |
"""--- Day 1: Not Quite Lisp ---
Santa was hoping for a white Christmas, but his weather machine's "snow" function is powered by stars, and he's fresh out! To save Christmas, he needs you to collect fifty stars by December 25th.
Collect stars by helping Santa solve puzzles. Two puzzles will be made available on each d... | [
37811,
6329,
3596,
352,
25,
1892,
29051,
38593,
11420,
198,
42694,
373,
7725,
329,
257,
2330,
6786,
11,
475,
465,
6193,
4572,
338,
366,
82,
2197,
1,
2163,
318,
13232,
416,
5788,
11,
290,
339,
338,
4713,
503,
0,
1675,
3613,
6786,
11,... | 3.418891 | 487 |
# vim: expandtab tabstop=4 shiftwidth=4
from setuptools import setup
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), 'r') as f:
long_description = f.read()
setup(
name='ipylogging',
version... | [
2,
43907,
25,
4292,
8658,
7400,
11338,
28,
19,
6482,
10394,
28,
19,
198,
198,
6738,
900,
37623,
10141,
1330,
9058,
198,
198,
2,
1100,
262,
10154,
286,
534,
20832,
11682,
2393,
198,
6738,
28686,
1330,
3108,
198,
5661,
62,
34945,
796,
... | 2.786624 | 314 |
from babel import Locale
from flask import current_app as cur_app, request
from flask.ext.babel import Babel, get_locale
from functools import wraps
from popong_nlp.utils.translit import translit
__all__ = ['PopongBabel']
def assert_valid_locale(locale):
if not is_valid_locale(locale):
raise Inval... | [
6738,
9289,
417,
1330,
15181,
1000,
198,
6738,
42903,
1330,
1459,
62,
1324,
355,
1090,
62,
1324,
11,
2581,
198,
6738,
42903,
13,
2302,
13,
65,
9608,
1330,
50175,
11,
651,
62,
17946,
1000,
198,
6738,
1257,
310,
10141,
1330,
27521,
198,... | 2.648551 | 276 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
2,
220,
49962,
284,
262,
24843,
10442,
5693,
357,
1921,
37,
8,
739,
530,
198,
2,
220,
393,
517,
18920,
5964,
11704,
13,
220,
4091,
262,
28536,
2393,
198,
2,
220,
9387,
351,
428,
670,
329,
3224,
1321,
198,
2,
220,
5115,
6634,
9238,... | 3.002309 | 866 |
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import pickle
import configparser | [
6738,
384,
11925,
1505,
1330,
3992,
26230,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
13,
9019,
1330,
5313,
32103,
21321,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
1330,
2938,
62,
17561,
1756,
355,
13182,
... | 3.693548 | 62 |
import numpy as np
import heapq
| [
11748,
299,
32152,
355,
45941,
198,
11748,
24575,
80,
198
] | 3.2 | 10 |
""" The ffi for rpython, need to be imported for side effects
"""
from rpython.rtyper.lltypesystem import rffi
from rpython.rtyper.lltypesystem import lltype
from rpython.rtyper.tool import rffi_platform
from rpython.rtyper.extfunc import register_external
from pypy.module._minimal_curses import interp_curses
from rpy... | [
37811,
383,
277,
12463,
329,
374,
29412,
11,
761,
284,
307,
17392,
329,
1735,
3048,
198,
37811,
198,
198,
6738,
374,
29412,
13,
81,
774,
525,
13,
297,
19199,
6781,
1330,
374,
487,
72,
198,
6738,
374,
29412,
13,
81,
774,
525,
13,
2... | 2.229339 | 968 |
import calcpy
calcpy.calculcate() | [
11748,
42302,
9078,
198,
198,
9948,
66,
9078,
13,
9948,
3129,
66,
378,
3419
] | 2.428571 | 14 |
import RPi.GPIO as GPIO
import time
from mfrc522 import SimpleMFRC522
import importlib.util
spec = importlib.util.spec_from_file_location("conn", "lib/conn.py")
conn = importlib.util.module_from_spec(spec)
spec.loader.exec_module(conn)
conn.writeConn("cardreader", readCard)
| [
11748,
25812,
72,
13,
16960,
9399,
355,
50143,
198,
11748,
640,
198,
6738,
285,
69,
6015,
49542,
1330,
17427,
49800,
7397,
49542,
198,
11748,
1330,
8019,
13,
22602,
198,
16684,
796,
1330,
8019,
13,
22602,
13,
16684,
62,
6738,
62,
7753,
... | 2.926316 | 95 |
# -*- coding: utf-8 -*-
# Copyright (c) 2019, Silvio Peroni <essepuntato@gmail.com>
#
# 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 copies.
#
# THE SOFTWARE I... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
15069,
357,
66,
8,
13130,
11,
4243,
85,
952,
2448,
14651,
1279,
35270,
79,
2797,
5549,
31,
14816,
13,
785,
29,
198,
2,
198,
2,
2448,
3411,
284,
779,
11,
4866,
1... | 3.112805 | 328 |
'''Unit test package for latexipy.'''
| [
7061,
6,
26453,
1332,
5301,
329,
47038,
541,
88,
2637,
7061,
198
] | 3.166667 | 12 |
from enum import Enum
| [
6738,
33829,
1330,
2039,
388,
628
] | 3.833333 | 6 |
from src.lib.spaces.vector import Vector
| [
6738,
12351,
13,
8019,
13,
2777,
2114,
13,
31364,
1330,
20650,
628
] | 3.5 | 12 |
# Generated by Django 4.0.2 on 2022-02-02 19:01
import core.models
from django.db import migrations, models
import django.db.models.deletion
| [
2,
2980,
515,
416,
37770,
604,
13,
15,
13,
17,
319,
33160,
12,
2999,
12,
2999,
678,
25,
486,
198,
198,
11748,
4755,
13,
27530,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
198,
11748,
42625,
14208,
13,
9945,
13,
... | 2.918367 | 49 |
# -*- coding: utf-8 -*-
"""Top-level package for snake."""
__author__ = """Luca Parolari"""
__email__ = 'luca.parolari23@gmail.com'
__version__ = '0.2.2'
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
37811,
9126,
12,
5715,
5301,
329,
17522,
526,
15931,
198,
198,
834,
9800,
834,
796,
37227,
22946,
64,
2547,
349,
2743,
37811,
198,
834,
12888,
834,
796,
705,
75,
... | 2.294118 | 68 |
import pickle
import os
import sys
import pandas as pd
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings("ignore", message="Reloaded modules: <module_name>")
if __name__=='__main__':
train()
| [
11748,
2298,
293,
198,
11748,
28686,
198,
11748,
25064,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
1341,
35720,
13,
4164,
10466,
1330,
9922,
62,
26675,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,... | 3.25 | 88 |
from django.db import models
from django.db.models import CASCADE
| [
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
42625,
14208,
13,
9945,
13,
27530,
1330,
35106,
34,
19266,
628,
628
] | 3.285714 | 21 |
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
\file genCompileScript.py
\brief Python script to generate the compile script for unix systems.
\copyright Copyright (c) 2018 Visual Computing group of Ulm University,
Germany. See the LICENSE file at the... | [
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
39115,
6,
201,
198,
220,
220,
220,
3467,
7753,
2429,
7293,
576,
7391,
13,
9078,
201,
198,
201,
198,
220,
220,
22... | 2.213185 | 1,623 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import pandas as pd
import numpy as np
import pathlib
import pickle
from datetime import datetime, timezone
from emhass.retrieve_hass import retrieve_hass
from emhass.optimization import optimization
from emhass.forecast import forecast
from emhass.utils i... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
555,
715,
395,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
3108,
... | 2.634454 | 238 |
from django.conf import settings
from django.utils.functional import cached_property
import redis
from redis.sentinel import Sentinel
from redis.exceptions import ConnectionError, ResponseError
COUNTER_CACHE_KEY = 'experiments:participants:%s'
COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s'
| [
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
42625,
14208,
13,
26791,
13,
45124,
1330,
39986,
62,
26745,
198,
198,
11748,
2266,
271,
198,
6738,
2266,
271,
13,
34086,
20538,
1330,
26716,
198,
6738,
2266,
271,
13,
1069,
11755,
13... | 3.138298 | 94 |
import os
ENV_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
| [
11748,
28686,
198,
198,
1677,
53,
62,
10705,
2767,
62,
34720,
796,
28686,
13,
6978,
13,
22179,
7,
418,
13,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
828,
705,
19668,
11537,
628,
628
] | 2.352941 | 34 |
"""
Example of converting ResNet-50 PyTorch model
"""
import argparse
import os
import torch, torchvision
import numpy as np
from webdnn.backend import generate_descriptor, backend_names
from webdnn.frontend.pytorch import PyTorchConverter
from webdnn.util import console
if __name__ == "__main__":
main()
| [
37811,
198,
16281,
286,
23202,
1874,
7934,
12,
1120,
9485,
15884,
354,
2746,
198,
37811,
198,
198,
11748,
1822,
29572,
198,
11748,
28686,
198,
198,
11748,
28034,
11,
28034,
10178,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
3992,
... | 3.07767 | 103 |
from fileperms import Permission, Permissions
| [
6738,
2393,
525,
907,
1330,
2448,
3411,
11,
2448,
8481,
628
] | 4.272727 | 11 |
from my_sum import sum
| [
6738,
616,
62,
16345,
1330,
2160,
198
] | 3.285714 | 7 |
import pygame | [
11748,
12972,
6057
] | 4.333333 | 3 |
import urllib
import psycopg2
import psycopg2.extras
# Connect to a postgres database. Tweak some things.
| [
11748,
2956,
297,
571,
198,
198,
11748,
17331,
22163,
70,
17,
198,
11748,
17331,
22163,
70,
17,
13,
2302,
8847,
628,
198,
2,
8113,
284,
257,
1281,
34239,
6831,
13,
24205,
461,
617,
1243,
13,
198
] | 3.027778 | 36 |
from flask import redirect, render_template, request, session, url_for
from flask_login import login_required
from app import letter_jobs_client
from app.main import main
from app.utils import user_is_platform_admin
| [
6738,
42903,
1330,
18941,
11,
8543,
62,
28243,
11,
2581,
11,
6246,
11,
19016,
62,
1640,
198,
6738,
42903,
62,
38235,
1330,
17594,
62,
35827,
198,
198,
6738,
598,
1330,
3850,
62,
43863,
62,
16366,
198,
6738,
598,
13,
12417,
1330,
1388,... | 3.892857 | 56 |
"""
Adapting Euler method to handle 2nd order ODEs
Srayan Gangopadhyay
2020-05-16
"""
import numpy as np
import matplotlib.pyplot as plt
"""
y' = dy/dx
For a function of form y'' = f(x, y, y')
Define y' = v so y'' = v'
"""
# PARAMETERS
y0 = 1 # y(x=0) =
v0 = -2 # y'(x=0) =
delta = 0.01 # step size
end = 4 # x-... | [
37811,
198,
48003,
278,
412,
18173,
2446,
284,
5412,
362,
358,
1502,
440,
7206,
82,
198,
50,
2433,
272,
19228,
404,
324,
12114,
323,
198,
42334,
12,
2713,
12,
1433,
198,
37811,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603... | 2.093199 | 397 |
import cv2
import os
import glob
import numpy as np
| [
11748,
269,
85,
17,
198,
11748,
28686,
198,
11748,
15095,
198,
11748,
299,
32152,
355,
45941,
628,
220,
220,
220,
220
] | 2.714286 | 21 |
__author__ = 'florian'
import unittest
from occi.backend import ActionBackend, KindBackend
from sm.sm.backends import ServiceBackend
from mock import patch
from sm.sm.so_manager import SOManager
from occi.core_model import Kind
from occi.core_model import Resource
| [
834,
9800,
834,
796,
705,
2704,
22618,
6,
198,
198,
11748,
555,
715,
395,
198,
6738,
1609,
72,
13,
1891,
437,
1330,
7561,
7282,
437,
11,
14927,
7282,
437,
198,
6738,
895,
13,
5796,
13,
1891,
2412,
1330,
4809,
7282,
437,
198,
6738,
... | 3.308642 | 81 |
TESTPHRASE = 'Lorem ipsum'
# ANSI COLORS
# ====== FAMILY ===== #
end = '\33[0m'
bold = '\33[1m'
italic = '\33[3m'
underline = '\33[4m'
blink = '\33[5m'
blink2 = '\33[6m'
selected = '\33[7m'
# ====== COLOR ====== #
# greyscale
black = '\33[97m'
grey = '\33[90m'
grey2 = '\33[37m'
white = '\33[30m'
# less saturation
red ... | [
51,
6465,
11909,
49,
11159,
796,
705,
43,
29625,
220,
2419,
388,
6,
198,
198,
2,
3537,
11584,
20444,
20673,
198,
2,
29335,
28,
42129,
33340,
29335,
1303,
198,
437,
796,
705,
59,
2091,
58,
15,
76,
6,
198,
36575,
796,
705,
59,
2091,... | 2.051251 | 839 |
import sys
import os
from setuptools import setup
long_description = open("README.rst").read()
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Lang... | [
11748,
25064,
198,
11748,
28686,
198,
198,
6738,
900,
37623,
10141,
1330,
9058,
198,
198,
6511,
62,
11213,
796,
1280,
7203,
15675,
11682,
13,
81,
301,
11074,
961,
3419,
198,
198,
4871,
13350,
796,
685,
198,
220,
220,
220,
366,
41206,
... | 2.242226 | 611 |
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as func
from torchsupport.data.io import netwrite, to_device, make_differentiable
from torchsupport.training.energy import DenoisingScoreTraining
from torchsupport.training.samplers import AnnealedLangevin
| [
11748,
4738,
198,
198,
11748,
299,
32152,
355,
45941,
198,
198,
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
25439,
198,
198,
6738,
28034,
11284,
13,
7890,
13,
952,
1330,
2010,
... | 3.707317 | 82 |
import time
| [
11748,
640,
628
] | 4.333333 | 3 |
import os
import shutil
from ..utils import temporary_directory
| [
11748,
28686,
198,
11748,
4423,
346,
198,
198,
6738,
11485,
26791,
1330,
8584,
62,
34945,
628,
198
] | 3.941176 | 17 |
# ----------------------------------------------------------------------------
# Copyright (c) 2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | [
2,
16529,
10541,
198,
2,
15069,
357,
66,
8,
33448,
11,
1195,
40,
12789,
362,
2478,
1074,
13,
198,
2,
198,
2,
4307,
6169,
739,
262,
2846,
286,
262,
40499,
347,
10305,
13789,
13,
198,
2,
198,
2,
383,
1336,
5964,
318,
287,
262,
239... | 2.894886 | 352 |
from zero.side import SideInformation
from zero.chrono import Chrono
from collections import defaultdict
from itertools import product
import numpy as np
import pickle
import os.path
import logging
def compute_dcg(self, y_pred, y_true):
'''
Computes the discounted cumulative gain as stated in:
... | [
6738,
6632,
13,
1589,
1330,
12075,
21918,
198,
6738,
6632,
13,
11413,
78,
1330,
8750,
78,
198,
6738,
17268,
1330,
4277,
11600,
198,
6738,
340,
861,
10141,
1330,
1720,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2298,
293,
198,
11748... | 2.049107 | 896 |
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
"""
Copyright 2009-2015 Olivier Belanger
This file is part of pyo, a python module to help digital signal
processing script creation.
pyo is free software: you can redistribute it and/or modify
it under the t... | [
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
37811,
198,
15269,
3717,
12,
4626,
45674,
3944,
2564,
198,
198,
1212,
2393,
318,
636... | 2.909789 | 1,563 |
from napalm_yang import base
def model_to_dict(model, mode="", show_defaults=False):
"""
Given a model, return a representation of the model in a dict.
This is mostly useful to have a quick visual represenation of the model.
Args:
model (PybindBase): Model to transform.
mode (string... | [
6738,
25422,
38182,
62,
17859,
1330,
2779,
628,
198,
4299,
2746,
62,
1462,
62,
11600,
7,
19849,
11,
4235,
2625,
1600,
905,
62,
12286,
82,
28,
25101,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11259,
257,
2746,
11,
1441,
25... | 1.883505 | 2,043 |
from enum import IntEnum
from typing import List, Dict
| [
6738,
33829,
1330,
2558,
4834,
388,
198,
6738,
19720,
1330,
7343,
11,
360,
713,
198
] | 3.666667 | 15 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils import Choices
from model_utils.fields import AutoCreatedField, AutoLastModifiedField
from model_utils.models import StatusModel
from m... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
198,
11748,
4818,
8079,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
42625,
14208,
13,
... | 3.449541 | 109 |
import torch
import os
from torch import nn
from transformers import BertForTokenClassification,BertTokenizer,BertConfig;
cwd=os.getcwd()
| [
11748,
28034,
198,
11748,
28686,
198,
6738,
28034,
1330,
299,
77,
198,
6738,
6121,
364,
1330,
22108,
1890,
30642,
9487,
2649,
11,
33,
861,
30642,
7509,
11,
33,
861,
16934,
26,
198,
198,
66,
16993,
28,
418,
13,
1136,
66,
16993,
3419,
... | 3.155556 | 45 |
from .interpu import interpu
from .minmaxmean import minmaxmean
from .randomdeviates import random_deviates_1d, random_deviates_2d
from .rotation_matrix import rotation_matrix
from .smooth import smooth, smooth_sphere
from .fit_model import fit_model
from .histogram import HistogramSphere, Histogram, Histogram2d
name... | [
6738,
764,
3849,
19944,
1330,
987,
19944,
198,
6738,
764,
1084,
9806,
32604,
1330,
949,
9806,
32604,
198,
6738,
764,
25120,
7959,
32820,
1330,
4738,
62,
7959,
32820,
62,
16,
67,
11,
4738,
62,
7959,
32820,
62,
17,
67,
198,
6738,
764,
... | 3.120301 | 133 |
import logging
from typing import Any, Dict, List, Callable, Union
import pandas as pd
from dgraphpandas.config import get_from_config
from dgraphpandas.strategies.vertical import vertical_transform
logger = logging.getLogger(__name__)
def horizontal_transform(
frame: Union[str, pd.DataFrame],
conf... | [
11748,
18931,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
7343,
11,
4889,
540,
11,
4479,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
198,
6738,
288,
34960,
79,
392,
292,
13,
11250,
1330,
651,
62,
6738,
62,
11250,
198,
6738,
... | 2.609375 | 1,472 |
# Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
2,
15069,
13130,
3012,
11419,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
733... | 2.628483 | 323 |
# Create your views here.
from django.template import Template, context, RequestContext
from django.shortcuts import render_to_response, render, get_object_or_404, redirect, HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from remit_admin.forms import RateUpdateForm, Profile... | [
2,
13610,
534,
5009,
994,
13,
198,
6738,
42625,
14208,
13,
28243,
1330,
37350,
11,
4732,
11,
19390,
21947,
198,
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
62,
1462,
62,
26209,
11,
8543,
11,
651,
62,
15252,
62,
273,
62,
26429,
... | 2.312092 | 9,808 |
from ActiView import ActiveTwo
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
app = QtGui.QApplication([])
win = pg.GraphicsWindow()
win.setWindowTitle("Mimicking ActiView's EEG monitoring screen")
monitor = win.addPlot()
#we have so many curves that we will store them in an array
... | [
6738,
2191,
72,
7680,
1330,
14199,
7571,
198,
11748,
12972,
80,
25297,
1470,
355,
23241,
198,
6738,
12972,
80,
25297,
1470,
13,
48,
83,
1330,
33734,
14055,
11,
33734,
8205,
72,
198,
11748,
299,
32152,
355,
45941,
198,
198,
1324,
796,
... | 2.849057 | 265 |
import os
| [
11748,
28686,
198
] | 3.333333 | 3 |
import os
import logging
import numpy as np
import torch
from PIL import Image
#from torchsummary import summary
from thop import profile
__all__ = ['get_color_pallete', 'print_iou', 'set_img_color',
'show_prediction', 'show_colorful_images', 'save_colorful_images']
def save_colorful_images(predicti... | [
11748,
28686,
198,
11748,
18931,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28034,
198,
198,
6738,
350,
4146,
1330,
7412,
198,
2,
6738,
28034,
49736,
1330,
10638,
198,
6738,
294,
404,
1330,
7034,
198,
198,
834,
439,
834,
796,
37250... | 2.154906 | 4,209 |
from django.conf import settings
from django.utils.timezone import now
from .utils import intspace, set_param
| [
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
42625,
14208,
13,
26791,
13,
2435,
11340,
1330,
783,
198,
198,
6738,
764,
26791,
1330,
493,
13200,
11,
900,
62,
17143,
628
] | 3.612903 | 31 |
#!/usr/bin/env python
__author__ = "Sreenivas Bhattiprolu"
__license__ = "Feel free to copy, I appreciate if you acknowledge Python for Microscopists"
# https://www.youtube.com/watch?v=6P8YhJa2V6o
"""
Using Random walker to generate lables and then segment and finally cleanup using closing operation.
"""
import mat... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
834,
9800,
834,
796,
366,
50,
1361,
38630,
347,
11653,
541,
305,
2290,
1,
198,
834,
43085,
834,
796,
366,
35114,
1479,
284,
4866,
11,
314,
9144,
611,
345,
12127,
11361,
329,
4527,
14... | 2.54381 | 1,050 |
SUB_SECRET = 'secret'
SUB_MAIN = 'main'
| [
50,
10526,
62,
23683,
26087,
796,
705,
21078,
6,
198,
50,
10526,
62,
5673,
1268,
796,
705,
12417,
6,
198
] | 2 | 20 |
#!/usr/bin/env python
from termcolor import cprint
import argparse
import docker
DOCKER_CLIENT = docker.from_env()
if __name__ == '__main__':
main()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
6738,
3381,
8043,
1330,
269,
4798,
198,
11748,
1822,
29572,
198,
11748,
36253,
198,
35,
11290,
1137,
62,
5097,
28495,
796,
36253,
13,
6738,
62,
24330,
3419,
628,
628,
628,
198,
198,
36... | 2.758621 | 58 |
import random
import matplotlib.pyplot as plt
import numpy as np
#
fig = plt.figure(figsize=(10, 6))
ax1 = fig.add_subplot(1, 1, 1)
ax1.set_xlabel('Frame', fontsize=18)
ax1.set_ylabel('Overall Time Cost (s)', fontsize=18)
x = range(180)
y1 = []
y2 = []
for i in range(180):
y1.append(random.uniform(0.30, 0.32))... | [
11748,
4738,
198,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,
198,
2,
220,
198,
5647,
796,
458,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
718,
4008,
198,
897,
16,
796,
... | 2.161972 | 284 |
from typing import Dict
XRD_RRI: Dict[str, str] = {
"mainnet": "xrd_rr1qy5wfsfh",
"stokenet": "xrd_tr1qyf0x76s",
"betanet": "xrd_br1qy73gwac",
"localnet": ""
} | [
6738,
19720,
1330,
360,
713,
198,
198,
55,
35257,
62,
49,
7112,
25,
360,
713,
58,
2536,
11,
965,
60,
796,
1391,
198,
220,
220,
220,
366,
12417,
3262,
1298,
366,
87,
4372,
62,
21062,
16,
80,
88,
20,
86,
9501,
69,
71,
1600,
198,
... | 1.76 | 100 |
# These requirements were auto generated
# from software requirements specification (SRS)
# document by TestFlows v1.6.200716.1214830.
# Do not edit by hand but re-generate instead
# using 'tfs requirements generate' command.
from testflows.core import Requirement
RQ_SRS001_CU_LS = Requirement(
name='RQ.SRS001... | [
2,
2312,
5359,
547,
8295,
7560,
198,
2,
422,
3788,
5359,
20855,
357,
50,
6998,
8,
198,
2,
3188,
416,
6208,
7414,
1666,
410,
16,
13,
21,
13,
12726,
1433,
13,
1065,
18294,
1270,
13,
198,
2,
2141,
407,
4370,
416,
1021,
475,
302,
12... | 2.078582 | 649 |
import os
from flask import Flask
#import SQLAlchemy
from flaskr import db
| [
11748,
28686,
198,
198,
6738,
42903,
1330,
46947,
198,
198,
2,
11748,
16363,
2348,
26599,
198,
6738,
42903,
81,
1330,
20613,
628
] | 3.545455 | 22 |
from nlpatl.sampling.clustering.nearest_mean import NearestMeanSampling
from nlpatl.sampling.clustering.farthest import FarthestSampling
| [
6738,
299,
75,
8071,
75,
13,
37687,
11347,
13,
565,
436,
1586,
13,
710,
12423,
62,
32604,
1330,
3169,
12423,
5308,
272,
16305,
11347,
201,
198,
6738,
299,
75,
8071,
75,
13,
37687,
11347,
13,
565,
436,
1586,
13,
69,
433,
3634,
1330,
... | 2.78 | 50 |
import rdflib
import requests
from EvaMap.Metrics.metric import metric | [
11748,
374,
67,
2704,
571,
198,
11748,
7007,
198,
198,
6738,
32355,
13912,
13,
9171,
10466,
13,
4164,
1173,
1330,
18663
] | 3.380952 | 21 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
from zeeko._build_helpers import get_utils_extension_args, get_zmq_extension_args, _generate_cython_extensions, pxd, get_package_data
from astropy_helpers import setup_helpers
utilities = [pxd("..utils.rc"),
pxd("..utils.msg"),
... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
11748,
28686,
198,
198,
6738,
41271,
988,
78,
13557,
11249,
62,
16794,
364,
1330,
651,
62,
26791,
62,
2302,
300... | 2.44065 | 615 |
# -*- coding: utf-8 -*-
import logging
from django.db.models import get_model
from rest_framework import serializers
from networkapi.util.geral import get_app
from networkapi.util.serializers import DynamicFieldsModelSerializer
log = logging.getLogger(__name__)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
11748,
18931,
198,
198,
6738,
42625,
14208,
13,
9945,
13,
27530,
1330,
651,
62,
19849,
198,
6738,
1334,
62,
30604,
1330,
11389,
11341,
198,
198,
6738,
3127,
15042,
13,
2... | 3.216867 | 83 |
from src import db, BaseMixin
| [
6738,
12351,
1330,
20613,
11,
7308,
35608,
259,
628
] | 3.444444 | 9 |
# -*- coding: utf-8 -*-
"""
/***************************************************************************
UDTPlugin
In this file is where the LineMMC class is defined. The main function
of this class is to run the automation process that exports the geometries
and generates the metadata of a municipal line.
**********... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
14,
17174,
17174,
4557,
8162,
198,
471,
24544,
37233,
198,
198,
818,
428,
2393,
318,
810,
262,
6910,
44,
9655,
1398,
318,
5447,
13,
383,
1388,
2163,
198,
1... | 2.767677 | 297 |
"""
Module: Sentiment Analysis
Author: Hussain Ali Khan
Version: 1.0.0
Last Modified: 29/11/2018 (Thursday)
"""
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import pandas as pd
import re
import os
from emoji import UNICODE_EMOJI
import matplotlib.pyplot as plt
import seaborn as sns
def sav... | [
37811,
198,
26796,
25,
11352,
3681,
14691,
198,
13838,
25,
47677,
12104,
11356,
198,
14815,
25,
352,
13,
15,
13,
15,
198,
5956,
40499,
25,
2808,
14,
1157,
14,
7908,
357,
25381,
8,
198,
37811,
628,
198,
6738,
410,
5067,
31837,
3681,
... | 2.605749 | 487 |
"""
Modified code from https://github.com/nwojke/deep_sort
"""
import numpy as np
import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
import scipy.signal as signal
from scipy.ndimage.filters import gaussian_filter1d
| [
37811,
198,
5841,
1431,
2438,
422,
3740,
1378,
12567,
13,
785,
14,
47516,
13210,
365,
14,
22089,
62,
30619,
198,
37811,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
4866,
198,
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299... | 3.0625 | 80 |
import re
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import JsonResponse
from apps.users.models import User
| [
11748,
302,
198,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
1891,
2412,
1330,
9104,
7282,
437,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
19816,
1040,
1330,
23093,
37374,
35608,
259,
198,
6738,
42625,
14208,
13,
... | 3.413793 | 58 |
from django.conf.urls import url, patterns
from . import views
urlpatterns = patterns("",
)
| [
198,
6738,
42625,
14208,
13,
10414,
13,
6371,
82,
1330,
19016,
11,
7572,
198,
6738,
764,
1330,
5009,
198,
198,
6371,
33279,
82,
796,
7572,
7203,
1600,
198,
198,
8,
198
] | 3.064516 | 31 |
'''
'''
import sys, subprocess
sys.path.insert(0, '/nethome/asalomatov/projects/ppln')
import logProc
ntFlag = '-nt 10'
#interval_padding = '--interval_padding 0' # bed files padded with 100bp
interval_padding = '--interval_padding 200'
read_filter = '--read_filter BadCigar'
print '\nsys.args :', sys.argv[1:]
inb... | [
7061,
6,
198,
198,
7061,
6,
198,
11748,
25064,
11,
850,
14681,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
31051,
77,
2788,
462,
14,
292,
282,
296,
265,
709,
14,
42068,
14,
381,
18755,
11537,
198,
11748,
2604,
2964,
66,
198,
198,
... | 2.263862 | 523 |
# -*- coding: utf-8 -*-
import cv2
import numpy as np
import os
import pandas as pd
import math
from skimage import io
from skimage.transform import rescale
import skimage
import numba
from numba import prange
import time
from pathlib import Path
# MAX 35 IMG
## Create TXT FILE for loading
## Load all data
## l... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
628,
198,
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
10688,
198,
6738,
1341,
9060,
1330,
332... | 2.291525 | 590 |
#####################################################################
# #
# File: csvtoqbo.py #
# Developer: Paul Puey #
# Original Code by: Justin Leto #
# Forked from https://github.com/jleto/csvtoqbo #
# #
# main utility script file Python scrip... | [
29113,
29113,
4242,
2,
201,
198,
2,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
2,
201,
198,
2,
197,
8979,
25,
269,
21370,
1462,
80,
2127,
13,
9078,
197,
197,
197,
197,
197,
197,
197,
1... | 1.99318 | 2,346 |
import copy
import json
import os
from app.common import path
from app.common.projection import epsg_string_to_proj4
from app.common.test import BaseApiTest
from . import geofile, storage
| [
11748,
4866,
198,
11748,
33918,
198,
11748,
28686,
198,
198,
6738,
598,
13,
11321,
1330,
3108,
198,
6738,
598,
13,
11321,
13,
16302,
295,
1330,
304,
862,
70,
62,
8841,
62,
1462,
62,
1676,
73,
19,
198,
6738,
598,
13,
11321,
13,
9288,... | 3.142857 | 63 |
import os
import sys
| [
11748,
28686,
198,
11748,
25064,
198
] | 3.5 | 6 |
'''
Basic piTomation configuration options.
'''
from pydantic import BaseModel
from typing import Any, Optional, Union
from pydantic.class_validators import validator
__pdoc__ = {
"WithPlugins": None,
"configuration": None
}
__registry: dict[type, list[type]] = {}
'''Contains all @configuration class types,... | [
7061,
6,
198,
26416,
31028,
13787,
341,
8398,
3689,
13,
198,
7061,
6,
198,
198,
6738,
279,
5173,
5109,
1330,
7308,
17633,
198,
6738,
19720,
1330,
4377,
11,
32233,
11,
4479,
198,
198,
6738,
279,
5173,
5109,
13,
4871,
62,
12102,
2024,
... | 3.109635 | 301 |
default_app_config = 'danceschool.payments.paypal.apps.PaypalAppConfig'
| [
12286,
62,
1324,
62,
11250,
796,
705,
67,
1817,
1251,
13,
15577,
902,
13,
15577,
18596,
13,
18211,
13,
19197,
18596,
4677,
16934,
6,
198
] | 2.88 | 25 |
__version__ = "1.0.0b13"
| [
834,
9641,
834,
796,
366,
16,
13,
15,
13,
15,
65,
1485,
1,
198
] | 1.785714 | 14 |
"""Script to generate c++ header file of canbus constants."""
from __future__ import annotations
import argparse
import io
from enum import Enum
from typing import Type, Any
import sys
from opentrons_ot3_firmware.constants import (
MessageId,
FunctionCode,
NodeId,
)
def generate(output: io.StringIO) -> ... | [
37811,
7391,
284,
7716,
269,
4880,
13639,
2393,
286,
460,
10885,
38491,
526,
15931,
198,
6738,
11593,
37443,
834,
1330,
37647,
198,
11748,
1822,
29572,
198,
11748,
33245,
198,
6738,
33829,
1330,
2039,
388,
198,
6738,
19720,
1330,
5994,
11... | 2.540299 | 670 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
11,
15720,
602,
628
] | 2.891892 | 37 |
# Copyright 2018 Samuel Payne sam_payne@byu.edu
# 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 ... | [
2,
220,
220,
15069,
2864,
17100,
32788,
6072,
62,
15577,
710,
31,
1525,
84,
13,
15532,
198,
2,
220,
220,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
220,
220,
345,
743,
407,
779,
42... | 3.536885 | 244 |
#coding=utf-8
import numpy as np
# TODO: MULTISTEP
LR_POLICY_NUM = 7
LRUpdater.METHODS = [None] * LR_POLICY_NUM
LRUpdater.METHODS[LR_POLICY.FIXED] = LRUpdater.fixed
LRUpdater.METHODS[LR_POLICY.STEP] = LRUpdater.step
LRUpdater.METHODS[LR_POLICY.EXP] = LRUpdater.exp
LRUpdater.METHODS[LR_POLICY.INV] = LRUpdater.inv
LRUp... | [
2,
66,
7656,
28,
40477,
12,
23,
198,
11748,
299,
32152,
355,
45941,
198,
198,
2,
16926,
46,
25,
337,
16724,
8808,
8905,
198,
35972,
62,
45472,
2149,
56,
62,
41359,
796,
767,
198,
198,
35972,
4933,
67,
729,
13,
49273,
50,
796,
685,... | 2.048309 | 207 |
import git
from mlflow.tracking import MlflowClient
from .utils import scp_files
| [
11748,
17606,
198,
198,
6738,
285,
1652,
9319,
13,
36280,
1330,
337,
1652,
9319,
11792,
198,
198,
6738,
764,
26791,
1330,
629,
79,
62,
16624,
628
] | 3.230769 | 26 |
# coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
2,
19617,
28,
40477,
12,
23,
198,
2,
15069,
33448,
383,
3012,
4992,
46665,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
... | 2.563808 | 1,481 |
from tilequeue.queue import MessageHandle
import threading
| [
6738,
17763,
36560,
13,
36560,
1330,
16000,
37508,
198,
11748,
4704,
278,
628
] | 4.615385 | 13 |
import logging
from PyQt5.QtCore import QTimer
logger = logging.getLogger('logsmith')
| [
11748,
18931,
198,
198,
6738,
9485,
48,
83,
20,
13,
48,
83,
14055,
1330,
1195,
48801,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
10786,
6404,
21453,
11537,
628
] | 2.870968 | 31 |
from condensate.core.build import gpcore | [
6738,
1779,
641,
378,
13,
7295,
13,
11249,
1330,
27809,
7295
] | 3.636364 | 11 |
# -*- coding: utf-8 -*-
"""Sub-level package for Scanner, a metrical scanner in Urdu BioMeter."""
__author__ = """A. Sean Pue"""
__email__ = "a@seanpue.com"
from .scanner import * # noqa
from .ghazal import * # noqa
from .types import * # noqa
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
37811,
7004,
12,
5715,
5301,
329,
20937,
1008,
11,
257,
1138,
8143,
27474,
287,
8799,
646,
16024,
44,
2357,
526,
15931,
198,
198,
834,
9800,
834,
796,
37227,
32,
... | 2.525253 | 99 |
from canlib import canlib
num_channels = canlib.getNumberOfChannels()
print("Found %d channels" % num_channels)
for ch in range(0, num_channels):
chdata = canlib.ChannelData(ch)
print("%d. %s (%s / %s)" % (ch, chdata.device_name,
chdata.card_upc_no,
... | [
6738,
460,
8019,
1330,
460,
8019,
198,
198,
22510,
62,
354,
8961,
796,
460,
8019,
13,
1136,
15057,
5189,
1925,
8961,
3419,
198,
4798,
7203,
21077,
4064,
67,
9619,
1,
4064,
997,
62,
354,
8961,
8,
198,
1640,
442,
287,
2837,
7,
15,
1... | 1.977143 | 175 |
from abc import ABC, abstractmethod
from dataclasses import asdict, dataclass
from typing import Any
from triggers.env_trigger import DataPool, Triggerable
| [
6738,
450,
66,
1330,
9738,
11,
12531,
24396,
198,
6738,
4818,
330,
28958,
1330,
355,
11600,
11,
4818,
330,
31172,
198,
6738,
19720,
1330,
4377,
198,
198,
6738,
20022,
13,
24330,
62,
46284,
1330,
6060,
27201,
11,
24593,
540,
628
] | 3.95 | 40 |
"""PackageCompat type.
"""
from __future__ import annotations
import typing
from enum import Enum
| [
37811,
27813,
40073,
2099,
13,
198,
37811,
198,
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
11748,
19720,
198,
6738,
33829,
1330,
2039,
388,
628,
628
] | 3.923077 | 26 |
import os
import numpy as np
import matplotlib.pyplot as plt
import utils.io as io
from global_constants import misc_paths
if __name__=='__main__':
main() | [
11748,
28686,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
11748,
3384,
4487,
13,
952,
355,
33245,
198,
6738,
3298,
62,
9979,
1187,
1330,
12747,
62,
6978,
82,
628,
628,
19... | 2.810345 | 58 |
import sys
sys.path.append("../../")
from skimage.data import astronaut, camera
from sciwx.canvas import ICanvas
from sciapp.action import Tool
import wx
if __name__ == "__main__":
app = wx.App()
frame = wx.Frame(None)
canvas = ICanvas(frame, autofit=True)
canvas.set_img(camera())
canvas.set_too... | [
11748,
25064,
198,
198,
17597,
13,
6978,
13,
33295,
7203,
40720,
40720,
4943,
198,
6738,
1341,
9060,
13,
7890,
1330,
33779,
11,
4676,
198,
6738,
629,
14246,
87,
13,
5171,
11017,
1330,
314,
6090,
11017,
198,
6738,
629,
544,
381,
13,
26... | 2.534247 | 146 |
import os
from aif360.datasets import BinaryLabelDataset
from aif360.metrics import ClassificationMetric
import numpy as np
import argparse
import pandas as pd
import boto3
import botocore
import json
from flask import Flask, request, abort
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
def dataset_wrap... | [
11748,
28686,
198,
6738,
257,
361,
15277,
13,
19608,
292,
1039,
1330,
45755,
33986,
27354,
292,
316,
198,
6738,
257,
361,
15277,
13,
4164,
10466,
1330,
40984,
9171,
1173,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
1822,
29572,
198,
... | 2.304781 | 502 |
# Copyright (c) Niall Asher 2022
from os import remove, path, mkdir
from socialserver.util.output import console
from socialserver.util.config import config
from socialserver import application
from werkzeug.serving import make_server
from threading import Thread
application_thread = TestingServer(application)
| [
2,
220,
15069,
357,
66,
8,
11556,
439,
1081,
372,
33160,
198,
198,
6738,
28686,
1330,
4781,
11,
3108,
11,
33480,
15908,
198,
6738,
1919,
15388,
13,
22602,
13,
22915,
1330,
8624,
198,
6738,
1919,
15388,
13,
22602,
13,
11250,
1330,
4566... | 3.9875 | 80 |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-07-17 03:02
from __future__ import unicode_literals
from django.db import migrations, models
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
2980,
515,
416,
37770,
352,
13,
940,
13,
23,
319,
13130,
12,
2998,
12,
1558,
7643,
25,
2999,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
... | 2.736842 | 57 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#@created: 08.09.2011
#@author: Aleksey Komissarov
#@contact: ad3002@gmail.com
from PyExp import AbstractModel
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
201,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
2,
201,
198,
2,
31,
25598,
25,
8487,
13,
2931,
13,
9804,
201,
198,
2,
31,
9800,
25,
9300,
74,
4397,
323... | 2.287671 | 73 |
import os
from dotenv import load_dotenv
load_dotenv()
| [
11748,
28686,
198,
198,
6738,
16605,
24330,
1330,
3440,
62,
26518,
24330,
198,
198,
2220,
62,
26518,
24330,
3419,
628,
198
] | 2.809524 | 21 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-18 14:07
from __future__ import unicode_literals
from django.db import migrations
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
2,
2980,
515,
416,
37770,
352,
13,
1157,
13,
19,
319,
2864,
12,
3023,
12,
1507,
1478,
25,
2998,
201,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
... | 2.483871 | 62 |
# -*- coding: utf-8 -*-
#############################################################################
#
# Copyright Dragon Dollar Limited
# contact: contact@dragondollar.com
#
# This software is a collection of webservices designed to provide a secure
# and scalable framework to build e-commerce websites.
#
# This so... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
198,
2,
15069,
220,
2851,
29747,
15302,
198,
2,
2800,
25,
2800,
31,
7109,
363,
623,
13228,
13,
785,
198,
2,
198,
2,
770,
... | 4.206655 | 571 |