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 |
|---|---|---|---|---|---|
BPNetWork/NeuralNetwork/demo_mnist.py | Keneyr/MachineLearningMethods | 1 | 82134 | import NeuralNetwork as NN
import numpy as np
import matplotlib.pyplot as plt
import tools
def train(path_to_datas, save_model_path):
# 读取MNIST数据集
train_datas, labels = tools.load_mnist(path_to_datas, 'train')
print("The total numbers of datas : ", len(train_datas))
train_labels = np.zeros((labels.shap... | [
1,
1053,
2448,
3631,
13724,
408,
405,
29940,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
8492,
13,
13,
1753,
7945,
29898,
2084,
29918,
517,
29918,
14538,
29892,
4078,
29918,
4299,
29918,
2084,
1... |
codewof/utils/errors/VertoConversionError.py | taskmaker1/codewof | 3 | 102947 | <filename>codewof/utils/errors/VertoConversionError.py
"""Custom error for Verto error."""
from .Error import Error
ERROR_MESSAGE = "\nConversion failed with error: \"{message}\"\n"
ERROR_MESSAGE_CODE_PART = "{line_number:<6}{line}\n"
class VertoConversionError(Error):
"""Custom error for Verto errors."""
... | [
1,
529,
9507,
29958,
401,
827,
29888,
29914,
13239,
29914,
12523,
29914,
6565,
517,
1168,
3259,
2392,
29889,
2272,
13,
15945,
29908,
7281,
1059,
363,
1798,
517,
1059,
1213,
15945,
13,
13,
3166,
869,
2392,
1053,
4829,
13,
13,
11432,
2991... |
examples/04_krige_geometric.py | ehxan139/PyKrige | 280 | 98955 | # -*- coding: utf-8 -*-
"""
Geometric example
=================
A small example script showing the usage of the 'geographic' coordinates type
for ordinary kriging on a sphere.
"""
from pykrige.ok import OrdinaryKriging
import numpy as np
from matplotlib import pyplot as plt
# Make this example reproducible:
np.rand... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
7999,
14066,
1342,
13,
9166,
29922,
13,
13,
29909,
2319,
1342,
2471,
6445,
278,
8744,
310,
278,
525,
479,
12122,
29915,
10350,
1134,
... |
app/core/utils/to_json.py | JordanDekker/ContainR | 0 | 51646 | <filename>app/core/utils/to_json.py
import pandas as pd
import numpy as np
import collections
import json
import math
from statistics import median
def seq_length_to_json(df):
"""Convert sequence length distribution to JSON object.
Args:
df: DataFrame containing a subset of sequence length.
... | [
1,
529,
9507,
29958,
932,
29914,
3221,
29914,
13239,
29914,
517,
29918,
3126,
29889,
2272,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
16250,
13,
5215,
4390,
13,
5215,
5844,
13,
3166,
13964,
1053,
19194,
13,
13,
... |
src/zope/app/publisher/xmlrpc/metaconfigure.py | zopefoundation/zope.app.publisher | 1 | 66356 | <filename>src/zope/app/publisher/xmlrpc/metaconfigure.py
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A... | [
1,
529,
9507,
29958,
4351,
29914,
29920,
2300,
29914,
932,
29914,
23679,
261,
29914,
3134,
29878,
6739,
29914,
7299,
17591,
29889,
2272,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,... |
Cura/Uranium/UM/Scene/Scene.py | TIAO-JI-FU/3d-printing-with-moveo-1 | 0 | 128974 | <filename>Cura/Uranium/UM/Scene/Scene.py
# Copyright (c) 2018 <NAME>.
# Uranium is released under the terms of the LGPLv3 or higher.
import functools # For partial to update files that were changed.
import os.path # To watch files for changes.
import threading
from typing import Callable, List, Optional, Set
from P... | [
1,
529,
9507,
29958,
29907,
2002,
29914,
29965,
661,
1974,
29914,
5005,
29914,
23472,
29914,
23472,
29889,
2272,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
529,
5813,
15513,
13,
29937,
501,
661,
1974,
338,... |
rlkit/samplers/data_collector/path_collector.py | YashBit/generalized-hindsight | 0 | 116661 | <reponame>YashBit/generalized-hindsight<filename>rlkit/samplers/data_collector/path_collector.py
import numpy as np
from collections import deque, OrderedDict
from rlkit.core import logger
from rlkit.core.eval_util import create_stats_ordered_dict
from rlkit.samplers.rollout_functions import diayn_multitask_rollout_wit... | [
1,
529,
276,
1112,
420,
29958,
29979,
1161,
21591,
29914,
17492,
1891,
29899,
29882,
12772,
523,
29966,
9507,
29958,
2096,
7354,
29914,
13445,
572,
414,
29914,
1272,
29918,
15914,
272,
29914,
2084,
29918,
15914,
272,
29889,
2272,
13,
5215,
... |
blyaml/validators.py | Brainlabs-Digital/Brainlabs-YAML-Generator | 0 | 30236 | import re
from datetime import datetime
from PyInquirer import Validator, ValidationError
from prompt_toolkit.document import Document
# This file contains functions used for validation and Validator classes that use them.
# Validators are used by questions.
def non_empty(document: Document) -> bool:
if not doc... | [
1,
1053,
337,
13,
3166,
12865,
1053,
12865,
13,
13,
3166,
10772,
797,
339,
381,
261,
1053,
15758,
1061,
29892,
15758,
362,
2392,
13,
3166,
9508,
29918,
10154,
7354,
29889,
3225,
1053,
10854,
13,
13,
29937,
910,
934,
3743,
3168,
1304,
... |
tutorial/third_example/topwords.py | xldrx/mapreduce_examples | 2 | 76889 | #! /usr/bin/env python -u
# coding=utf-8
__author__ = 'xl'
import sys
from operator import add
from pyspark import SparkContext
import re
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: wordcount <input> <output>")
exit(-1)
sc = SparkContext(appName="PythonWordCount")
com... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
448,
29884,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
13,
1649,
8921,
1649,
353,
525,
15524,
29915,
13,
13,
5215,
10876,
13,
3166,
5455,
1053,
788,
13,
13,
3166,
282,
95... |
tests/test_column_category.py | BBVA/python-etl | 20 | 159739 | <reponame>BBVA/python-etl<filename>tests/test_column_category.py
# Copyright 2017 BBVA
#
# 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
#
# U... | [
1,
529,
276,
1112,
420,
29958,
14388,
20449,
29914,
4691,
29899,
300,
29880,
29966,
9507,
29958,
21150,
29914,
1688,
29918,
4914,
29918,
7320,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
29449,
20449,
13,
29937,
... |
segviz/render.py | shuohan/segviz | 0 | 97118 | import numpy as np
from PIL import Image
from scipy.ndimage.morphology import binary_erosion
from improc3d import quantile_scale, calc_bbox3d
from .utils import MIN_UINT8, MAX_UINT8
from .utils import assign_colors, compose_image_and_labels
class ImageRenderer:
"""Renders slices from a 3D image using PIL.
N... | [
1,
1053,
12655,
408,
7442,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
4560,
2272,
29889,
299,
3027,
29889,
29885,
5676,
3002,
1053,
7581,
29918,
9672,
291,
13,
3166,
4857,
29883,
29941,
29881,
1053,
4323,
488,
29918,
7052,
29892,
22235,
... |
asyncpushbullet/websocket_server.py | rharder/pushbullet.py | 12 | 37476 | #!/usr/bin/env python3
"""
Easy to use Websocket Server.
Source: https://github.com/rharder/handy
June 2018 - Updated for aiohttp v3.3
August 2018 - Updated for Python 3.7, made WebServer support multiple routes on one port
"""
import asyncio
import logging
import weakref
from functools import partial
from typing imp... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
13,
29923,
8995,
304,
671,
2563,
11514,
5656,
29889,
13,
13,
4435,
29901,
2045,
597,
3292,
29889,
510,
29914,
29878,
6800,
261,
29914,
3179,
29891,
13,
13,
29967,
... |
tests/sample_app/urls.py | dreipol/meta-tagger | 3 | 22123 | <filename>tests/sample_app/urls.py
# -*- coding: utf-8 -*-
from django.conf.urls import url
from tests.sample_app.views import NewsArticleDetailView
urlpatterns = [
url(r'^(?P<pk>\d+)/$', NewsArticleDetailView.as_view(), name='news-article-detail'),
]
| [
1,
529,
9507,
29958,
21150,
29914,
11249,
29918,
932,
29914,
26045,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
6987,
2988... |
django_parler_graphql/fields.py | goooodmafia/django-parler-graphql | 0 | 177346 | <reponame>goooodmafia/django-parler-graphql
import graphene
from django_parler_graphql.enums import LanguageCodeEnum
from django_parler_graphql.resolvers import resolver
class TranslatedInstanceFields(graphene.Field):
def __init__(self, translated_model_type, resolver=resolver):
super().__init__(
... | [
1,
529,
276,
1112,
420,
29958,
1484,
29877,
2092,
655,
29888,
423,
29914,
14095,
29899,
862,
1358,
29899,
4262,
1519,
13,
5215,
3983,
1600,
13,
13,
3166,
9557,
29918,
862,
1358,
29918,
4262,
1519,
29889,
264,
6762,
1053,
17088,
3399,
16... |
djangoForum/forum/views.py | AlexxHr/django-forum | 0 | 107965 | from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.shortcuts import get_object_or_404, render
from django.urls import reverse_lazy
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateVie... | [
1,
515,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
28084,
1144,
1053,
19130,
19347,
29924,
861,
262,
29892,
4911,
7129,
267,
3057,
29924,
861,
262,
13,
13,
3166,... |
lib/build.py | hexa-one/mainline-builder | 0 | 86375 | import os
from .check_type import KERNEL_VER_INPUT
from .definition_script import *
from .get_url import *
def buildmain():
os.chdir('../../catalog')
if os.path.exists(KERNEL_VER_INPUT):
os.remove((KERNEL_VER_INPUT) + '/install.sh')
os.remove((KERNEL_VER_INPUT) + '/README.md')
os.rmdir... | [
1,
1053,
2897,
13,
3166,
869,
3198,
29918,
1853,
1053,
476,
1001,
29940,
6670,
29918,
5348,
29918,
1177,
12336,
13,
3166,
869,
16553,
29918,
2154,
1053,
334,
13,
3166,
869,
657,
29918,
2271,
1053,
334,
13,
13,
1753,
2048,
3396,
7295,
... |
setup.py | parthe/scikit-rmt | 8 | 164092 | <reponame>parthe/scikit-rmt
# encoding: utf-8
import os
import sys
from setuptools import find_packages, setup
VERSION = '0.1.4'
with open("README.md", "r") as f:
LONG_DESCRIPTION = f.read()
with open("requirements.txt", "r") as f:
REQUIREMENTS = f.read().split('\n')
setup(
name='scikit-rmt',
auth... | [
1,
529,
276,
1112,
420,
29958,
1595,
354,
29914,
26167,
7354,
29899,
1758,
29873,
13,
29937,
8025,
29901,
23616,
29899,
29947,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
13... |
dali/utils/throttled.py | JonathanRaiman/dali-cython-stub | 7 | 1602614 | <filename>dali/utils/throttled.py
import time
class Throttled(object):
def __init__(self, min_time_since_last_run_s=5):
"""Used for simple throttled execution.
Here's a simple example:
@Throttled(1)
def lol(i):
print('epoch %d' % (i,), flush=True)
... | [
1,
529,
9507,
29958,
29881,
2606,
29914,
13239,
29914,
386,
26970,
839,
29889,
2272,
13,
5215,
931,
13,
13,
13,
13,
13,
1990,
498,
26970,
839,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1375,
29918,
2230,
29918,
... |
theano/typed_list/basic.py | MarcCote/Theano | 95 | 197077 | from __future__ import absolute_import, print_function, division
import numpy
from .type import TypedListType
import theano
from theano.gof import Apply, Constant, Op, Variable
from theano.tensor.type_other import SliceType
from theano import tensor as T
from theano.compile.debugmode import _lessbroken_deepcopy
cla... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
1596,
29918,
2220,
29892,
8542,
13,
13,
5215,
12655,
13,
13,
3166,
869,
1853,
1053,
14213,
287,
1293,
1542,
13,
5215,
278,
1562,
13,
3166,
278,
1562,
29889,
29887,
974,
... |
sauronlab/core/__init__.py | dmyersturnbull/sauronlab | 0 | 193689 | """
Contains the lowest-level code in Sauronlab.
This package cannot not depend on any other packages in Sauronlab.
"""
from __future__ import annotations
import time
from datetime import datetime
from pathlib import Path
from loguru import logger
# noinspection PyProtectedMember
from loguru._logger import Logger
f... | [
1,
9995,
13,
21409,
278,
19604,
29899,
5563,
775,
297,
5701,
332,
265,
8205,
29889,
13,
4013,
3577,
2609,
451,
8839,
373,
738,
916,
9741,
297,
5701,
332,
265,
8205,
29889,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,... |
src/config/config.py | Badmuts/hsleiden-ipsenh-sensor | 0 | 58559 | <gh_stars>0
class Config(object):
_instance = None
def __new__(self):
if not self._instance:
self._instance = super(Config, self).__new__(self)
return self._instance
def setConfig(self, config):
self.config = config
def get(self, key):
return self.config[ke... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1990,
12782,
29898,
3318,
1125,
13,
1678,
903,
8758,
353,
6213,
13,
13,
1678,
822,
4770,
1482,
12035,
1311,
1125,
13,
4706,
565,
451,
1583,
3032,
8758,
29901,
13,
9651,
1583,
3032,
87... |
data_processing/models.py | flyingdutchman23/step-detector | 0 | 120290 | import os
import glob
import csv
import pandas as pd
import numpy as np
from collections import deque
from itertools import chain
from utils import rotate_quat, rotate_cross_product
class Sensor(object):
def __init__(self, name, fieldnames, data):
self.name = name
self.fieldnames = fieldnames
... | [
1,
1053,
2897,
13,
5215,
13149,
13,
5215,
11799,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
3166,
16250,
1053,
316,
802,
13,
3166,
4256,
8504,
1053,
9704,
13,
3166,
3667,
29879,
1053,
16734,
29918,
339,
271,
29892,
1... |
scripts/rpc/cmd_parser.py | 5cs/spdk | 2,107 | 35991 | <filename>scripts/rpc/cmd_parser.py<gh_stars>1000+
args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries',
'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client']
def strip_globals(kwargs):
for arg in args_global:
kwargs.pop(arg, None)
def remove_nul... | [
1,
529,
9507,
29958,
16713,
29914,
29878,
6739,
29914,
9006,
29918,
16680,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
5085,
29918,
10945,
353,
6024,
2974,
29918,
10030,
742,
525,
637,
742,
525... |
ucloud/helpers/utils.py | yangyimincn/ucloud-sdk-python3 | 1 | 59969 | import random
import base64
import typing
_lowercase = "abcdefghijklmnopqrstuvwxyz"
_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
_numbers = "0123456789"
_specials = "_"
def gen_password(
n: int,
lower_letters: str = _lowercase,
upper_letters: str = _uppercase,
number_letters: str = _numbers,
special... | [
1,
1053,
4036,
13,
5215,
2967,
29953,
29946,
13,
5215,
19229,
13,
13,
29918,
13609,
4878,
353,
376,
10736,
1753,
12443,
823,
6321,
23521,
459,
29939,
29878,
303,
4090,
29893,
20230,
29908,
13,
29918,
21064,
4878,
353,
376,
19658,
24405,
... |
app.py | nathan-verghis/PlagueDoctors | 0 | 138451 | import psycopg2
conn = psycopg2.connect(
database='vital-cat-208.defaultdb',
user='asap_verg',
password='<PASSWORD>@',
sslmode='require',
sslrootcert='certs/ca.crt',
sslkey='certs/client.maxroach.key',
sslcert='certs/client.maxroach.crt',
port=26257,
host='free-tier.gcp-us-central1.... | [
1,
1053,
6529,
29891,
9708,
29887,
29906,
13,
13,
13082,
353,
6529,
29891,
9708,
29887,
29906,
29889,
6915,
29898,
13,
1678,
2566,
2433,
29894,
2410,
29899,
4117,
29899,
29906,
29900,
29947,
29889,
4381,
2585,
742,
13,
1678,
1404,
2433,
2... |
pyLegoMario/LEGO_MARIO_DATA.py | Jackomatrus/pyLegoMario | 0 | 86974 | <gh_stars>0
import json
from pathlib import Path
# hex to ground colors
# color messages are always shape (hexadecimal): 08004501ffffxx00 (where xx is the color code)
HEX_TO_COLOR_TILE = {
0x0c: "Purple",
0x13: "White",
0x15: "Red",
0x17: "Blue",
0x18: "Yellow",
0x1a: "Black",
0x25: "Green",... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4390,
13,
3166,
2224,
1982,
1053,
10802,
13,
29937,
15090,
304,
5962,
11955,
13,
29937,
2927,
7191,
526,
2337,
8267,
313,
20970,
1943,
29883,
3039,
1125,
29871,
29900,
29947,
29900,... |
setup.py | tikazyq/google-analytics-api-wrapper | 6 | 160183 | <filename>setup.py<gh_stars>1-10
from distutils.core import setup
setup(
name='google-analytics-api-wrapper',
version='0.1.4',
packages=['analytics_query'],
url='https://github.com/tikazyq/google-analytics-api-wrapper',
download_url='https://github.com/tikazyq/google-analytics-api-wrapper/tarball/m... | [
1,
529,
9507,
29958,
14669,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
1320,
13239,
29889,
3221,
1053,
6230,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
3608,
29899,
7054,
22026,
29899,
2754,
... |
src/hbcomp/app.py | zgoda/hbcomp | 0 | 36657 | import os
from logging.config import dictConfig
from typing import Optional
from flask import render_template, request, send_from_directory
from flask_babel import get_locale, lazy_gettext as _
from werkzeug.utils import ImportStringError
from .auth import auth_bp
from .comp import comp_bp
from .ext import babel, csr... | [
1,
1053,
2897,
13,
3166,
12183,
29889,
2917,
1053,
9657,
3991,
13,
3166,
19229,
1053,
28379,
13,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
2009,
29892,
3638,
29918,
3166,
29918,
12322,
13,
3166,
29784,
29918,
28727,
1053,
679,
2991... |
src/sample_mnist.py | entaku/kusarigama | 0 | 65698 | __author__ = 'team-entaku'
import sys
import cv2
import numpy as np
import math
import matplotlib.pyplot as plt
import scipy.cluster.vq
import scipy.spatial.distance as distance
from chainer import computational_graph as c
from matplotlib.pyplot import show
from scipy.cluster.hierarchy import linkage, dendrogram, fclus... | [
1,
4770,
8921,
1649,
353,
525,
14318,
29899,
296,
16774,
29915,
13,
5215,
10876,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
5844,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
4560,
2272,
29889,
19594,
298... |
catalyst/dl/experiment/config.py | baajur/catalyst | 0 | 129448 | <gh_stars>0
from typing import Any, Callable, Dict, List, Mapping, Union
from collections import OrderedDict
from copy import deepcopy
import torch
from torch import nn
from torch.utils.data import DataLoader # noqa F401
from catalyst.core import IExperiment
from catalyst.data import Augmentor, AugmentorCompose
from... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
3139,
29892,
8251,
519,
29892,
360,
919,
29892,
2391,
29892,
341,
20304,
29892,
7761,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
3509,
1053,
6483,
8552,
13,
1... |
restaurant/schema.py | miguel550/restaurant | 0 | 54652 | import graphene
import dishes.schema
class Query(dishes.schema.Query, graphene.ObjectType):
pass
class Mutations(graphene.ObjectType):
create_category = dishes.schema.CreateCategory.Field()
edit_category = dishes.schema.EditCategory.Field()
delete_category = dishes.schema.DeleteCategory.F... | [
1,
1053,
3983,
1600,
30004,
13,
5215,
270,
17006,
29889,
11010,
30004,
13,
30004,
13,
30004,
13,
1990,
13641,
29898,
29881,
17006,
29889,
11010,
29889,
3010,
29892,
3983,
1600,
29889,
2061,
1542,
1125,
30004,
13,
1678,
1209,
30004,
13,
30... |
exercise4-8.py | raygomez/python-exercise-4 | 0 | 79391 | from __future__ import print_function
__author__ = 'ragomez'
def prepend_this_is(f):
def _(args):
args = 'This is {}'.format(args)
return f(args)
return _
def append_exclamation(f):
def _(args):
args = '{}!'.format(args)
return f(args)
return _
@prepend_this_is
@app... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
1649,
8921,
1649,
353,
525,
1431,
608,
29920,
29915,
13,
13,
13,
1753,
8273,
355,
29918,
1366,
29918,
275,
29898,
29888,
1125,
13,
1678,
822,
903,
29898,
5085,
1125,
13,
47... |
shaping.py | kotikkonstantin/convasr | 17 | 27247 | <filename>shaping.py
import functools
import typing
import torch
# equal to 1T
class _T(torch.Tensor):
pass
class BY(torch.Tensor):
pass
class T(torch.Tensor):
pass
class B(torch.Tensor):
pass
class S(torch.Tensor):
pass
class BCT(torch.Tensor):
pass
class CT(torch.Tensor):
pass
class BCt(torch.Tensor):
... | [
1,
529,
9507,
29958,
845,
21430,
29889,
2272,
13,
5215,
2090,
312,
8789,
13,
5215,
19229,
13,
5215,
4842,
305,
13,
13,
29937,
5186,
304,
29871,
29896,
29911,
13,
1990,
903,
29911,
29898,
7345,
305,
29889,
29911,
6073,
1125,
13,
12,
33... |
molecule/resources/tests/repo-42/test_repo_42.py | nvaatstra/pdns_recursor-ansible | 0 | 133443 | <filename>molecule/resources/tests/repo-42/test_repo_42.py
debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
def test_repo_file(host):
f = None
if host.system_info.distribution.lower() in debian_os:
f = host.file('/etc/apt/sources.list.d/powerdns-rec-42.list')
if host.system_info.di... | [
1,
529,
9507,
29958,
29885,
1772,
29883,
1297,
29914,
13237,
29914,
21150,
29914,
20095,
29899,
29946,
29906,
29914,
1688,
29918,
20095,
29918,
29946,
29906,
29889,
2272,
13,
13,
16529,
713,
29918,
359,
353,
6024,
16529,
713,
742,
525,
8767... |
facetouch/views.py | facetouch/face-I-fy | 0 | 155951 | from django.http import JsonResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
import json
from facetouch.models import Event, Section, Item, Image
from datetime import datetime
from django.views.generic import TemplateView
@csrf_exempt
def create_event(request):
if ... | [
1,
515,
9557,
29889,
1124,
1053,
14355,
5103,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
3166,
9557,
29889,
7406,
29889,
19557,
4097,
29889,
2395,
9600,
1053,
5939,
9600,
29918,
735,
3456,
13,
5215,
4390,
13,
3166,
4024,
... |
asciimatics/renderers/kaleidoscope.py | fakegit/asciimatics | 1 | 177620 | # -*- coding: utf-8 -*-
"""
This module implements a kaeldioscope effect renderer.
"""
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
from math import sin, cos, pi, atan2
from asciimatics.re... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
4013,
3883,
10703,
263,
13560,
2495,
2363,
4338,
2779,
4050,
261,
29889,
13,
15945,
29908,
13,
3166,
4770,
29888,
9130,
1649,
1053,
854... |
src/pynwb/ndx_icephys_meta/io/icephys.py | oruebel/ndx-icephys-meta | 6 | 27023 | <reponame>oruebel/ndx-icephys-meta
"""
Module with ObjectMapper classes for the icephys-meta Container classes/neurodata_types
"""
from pynwb import register_map
from pynwb.io.file import NWBFileMap
from hdmf.common.io.table import DynamicTableMap
from ndx_icephys_meta.icephys import ICEphysFile, AlignedDynamicTable
... | [
1,
529,
276,
1112,
420,
29958,
272,
434,
6596,
29914,
299,
29916,
29899,
625,
14017,
29899,
7299,
13,
15945,
29908,
13,
7355,
411,
4669,
19968,
4413,
363,
278,
14890,
14017,
29899,
7299,
21679,
4413,
29914,
484,
2192,
1272,
29918,
8768,
... |
tests/test_serializers.py | rojoca/django-rest-framework-jwt | 0 | 199939 | <gh_stars>0
import unittest
from distutils.version import StrictVersion
import django
from django.http import HttpRequest
from django.test import TestCase
from django.test.utils import override_settings
import rest_framework
from rest_framework.request import Request
from rest_framework_jwt.compat import get_user_m... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
443,
27958,
13,
3166,
1320,
13239,
29889,
3259,
1053,
3767,
919,
6594,
13,
13,
5215,
9557,
13,
3166,
9557,
29889,
1124,
1053,
9056,
3089,
13,
3166,
9557,
29889,
1688,
1053,
4321,
... |
mars/tensor/reduction/nanmean.py | haijohn/mars | 1 | 199462 | <filename>mars/tensor/reduction/nanmean.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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
#
# ... | [
1,
529,
9507,
29958,
29885,
1503,
29914,
20158,
29914,
9313,
428,
29914,
13707,
12676,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
... |
cash-donations.py | davidciani/taxtools | 0 | 41151 | #!/usr/bin/env python
import argparse
import logging
from csv import DictReader
from datetime import date, datetime
from pathlib import Path
logger = logging.getLogger(__name__)
header = """V042
ATaxTool Donations 0.4
D{date:%Y-%m-%d}
^
"""
record_layout_1 = """TD
N280
C1
L1
${amount:0.2f}
X{payee} ({ein})
^
"""
r... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
3166,
11799,
1053,
360,
919,
6982,
13,
3166,
12865,
1053,
2635,
29892,
12865,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
21707,
353,
12183,
... |
src/hodge.py | Idate96/Mimetic-Fem | 0 | 78486 | <reponame>Idate96/Mimetic-Fem<filename>src/hodge.py
from function_space import FunctionSpace, DualSpace
import numpy as np
from numpy.linalg import inv
from mesh import CrazyMesh
from forms import Form, AbstractForm
from coboundaries import d
from inner_product import inner
import matplotlib.pyplot as plt
def pfun(x,... | [
1,
529,
276,
1112,
420,
29958,
1204,
403,
29929,
29953,
29914,
29924,
326,
7492,
29899,
29943,
331,
29966,
9507,
29958,
4351,
29914,
29882,
17979,
29889,
2272,
13,
3166,
740,
29918,
3493,
1053,
6680,
14936,
29892,
360,
950,
14936,
13,
521... |
morea-module-status.py | dport96/scripts | 1 | 170503 | <filename>morea-module-status.py<gh_stars>1-10
#!/usr/bin/python
from time import sleep
import curses
import curses.panel
import glob
import os
import subprocess
import re
# Helper function to print markers
def marker(value):
if value == 0:
return "-"
elif value == 1:
return "X"
else:
return " "
# ... | [
1,
529,
9507,
29958,
5514,
29874,
29899,
5453,
29899,
4882,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
3166,
931,
1053,
8709,
13,
13,
5215,
18580,
... |
bitmovin/resources/models/manifests/hls/hls_manifest.py | migutw42/bitmovin-python | 44 | 116743 | from ..abstract_manifest import AbstractManifest
from bitmovin.resources.enums.hls_version import HlsVersion
class HlsManifest(AbstractManifest):
def __init__(self, manifest_name, outputs, name=None, description=None, id_=None, custom_data=None,
hls_media_playlist_version=None, hls_master_playli... | [
1,
515,
6317,
16595,
29918,
29135,
1053,
25513,
2517,
7004,
13,
3166,
2586,
13529,
262,
29889,
13237,
29889,
264,
6762,
29889,
29882,
3137,
29918,
3259,
1053,
379,
3137,
6594,
13,
13,
13,
1990,
379,
3137,
2517,
7004,
29898,
9118,
2517,
... |
tools/setup_helpers/rocm.py | DavidKo3/mctorch | 1 | 135463 | <gh_stars>1-10
from .env import check_env_flag
# Check if ROCM is enabled
USE_ROCM = check_env_flag('USE_ROCM')
ROCM_HOME = "/opt/rocm"
ROCM_VERSION = ""
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
869,
6272,
1053,
1423,
29918,
6272,
29918,
15581,
13,
29937,
5399,
565,
16641,
24494,
338,
9615,
13,
17171,
29918,
1672,
24494,
353,
1423,
29918,
6272,
29918,
1... |
jionlp/algorithm/summary/__init__.py | ji3g4m6zo6/JioNLP | 1,063 | 137437 | <reponame>ji3g4m6zo6/JioNLP
# -*- coding=utf-8 -*-
# library: jionlp
# author: dongrixinyu
# license: Apache License 2.0
# Email: <EMAIL>
# github: https://github.com/dongrixinyu/JioNLP
# description: Preprocessing tool for Chinese NLP
from .extract_summary import ChineseSummaryExtractor
extract_summary = ChineseSu... | [
1,
529,
276,
1112,
420,
29958,
2397,
29941,
29887,
29946,
29885,
29953,
2502,
29953,
29914,
29967,
601,
29940,
13208,
13,
29937,
448,
29930,
29899,
14137,
29922,
9420,
29899,
29947,
448,
29930,
29899,
13,
29937,
3489,
29901,
432,
291,
22833... |
_py2tmp/ir1/free_variables.py | google/tmppy | 27 | 1605920 | <reponame>google/tmppy
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
1,
529,
276,
1112,
420,
29958,
3608,
29914,
18276,
23717,
13,
29937,
29871,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
5087,
9266,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
2989... |
cvxpy/reductions/flip_objective.py | hashstat/cvxpy | 3,285 | 148764 | """
Copyright 2017 <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
distrib... | [
1,
9995,
13,
11882,
1266,
29871,
29906,
29900,
29896,
29955,
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,... |
test_seg_patch.py | Aryan98/lcprediction | 0 | 139888 | <filename>test_seg_patch.py
import string
import sys
import lasagne as nn
import numpy as np
import theano
import buffering
import pathfinder
import utils
from configuration import config, set_configuration
from utils_plots import plot_slice_3d_3
import utils_lung
import logger
theano.config.warn_float64 = 'raise'
if... | [
1,
529,
9507,
29958,
1688,
29918,
10199,
29918,
5041,
29889,
2272,
13,
5215,
1347,
13,
5215,
10876,
13,
5215,
1869,
5889,
408,
302,
29876,
13,
5215,
12655,
408,
7442,
13,
5215,
278,
1562,
13,
5215,
6835,
292,
13,
5215,
2224,
2886,
261... |
production_system/models.py | rameshgopalakrishnan/v_excel_inventory | 0 | 87006 | from django.db import models
from people.models import Customer, InternalUser
from service_and_process.models import MasterService, MasterProduct, MasterProcess
class Order(models.Model):
amount = models.DecimalField(max_digits=7, decimal_places=2)
customer_id = models.ForeignKey(Customer)
expected_time... | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
3166,
2305,
29889,
9794,
1053,
21886,
29892,
512,
1890,
2659,
13,
3166,
2669,
29918,
392,
29918,
5014,
29889,
9794,
1053,
9082,
3170,
29892,
9082,
7566,
29892,
9082,
7032,
13,
13,
13,
1990,... |
website/message/views.py | m3alamin/message-system | 1 | 99037 | from django.shortcuts import render, redirect
from .models import Message, Reply, Reader
from .forms import MessageForm, ReplyForm
from pprint import pprint
from django.contrib.auth.models import User
from datetime import datetime
# Create your views here.
def index(request):
if request.user.is_authenticated:
... | [
1,
515,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
29892,
6684,
13,
3166,
869,
9794,
1053,
7777,
29892,
10088,
368,
29892,
830,
1664,
13,
3166,
869,
9514,
1053,
7777,
2500,
29892,
10088,
368,
2500,
13,
3166,
282,
2158,
1053,
282,
2158... |
tests/optims/distributed_adamw_test.py | AswinRetnakumar/Machina | 302 | 522 | import os
import unittest
import torch
import torch.distributed as dist
from torch.multiprocessing import Process
import torch.nn as nn
from machina.optims import DistributedAdamW
def init_processes(rank, world_size,
function, backend='tcp'):
os.environ['MASTER_ADDR'] = '127.0.0.1'
os.env... | [
1,
1053,
2897,
13,
5215,
443,
27958,
13,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
5721,
7541,
408,
1320,
13,
3166,
4842,
305,
29889,
18056,
307,
985,
292,
1053,
10554,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
... |
snakeoil/migrations/0001_initial.py | wbcsmarteezgithub/django-snakeoil | 1 | 34092 | # Generated by Django 2.2 on 2020-03-30 15:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SeoUrl',
fields=[
('head_title', models.CharF... | [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29941,
29900,
29871,
29896,
29945,
29901,
29900,
29941,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
... |
orthoexon/tests/test_util.py | jessicalettes/orthoexon | 0 | 3559 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_orthoexon
----------------------------------
Tests for `orthoexon` module.
"""
import os
import pytest
@pytest.fixture
def exon_id_with_quotes():
return "'ENSE00001229068.1'"
@pytest.fixture
def exon_id():
return "ENSE00001229068.1"
def test_separate_... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
13,
1688,
29918,
2072,
29877,
735,
265,
13,
2683,
2683,
489,
13,
13,
24376,
363,
4... |
Python/powx-n.py | xtt129/LeetCode | 2 | 87459 | <gh_stars>1-10
# Time: O(logn)
# Space: O(logn)
#
# Implement pow(x, n).
#
class Solution:
# @param x, a float
# @param n, a integer
# @return a float
def pow(self, x, n):
if n < 0:
return 1 / self.powRecu(x, -n)
return self.powRecu(x, n)
def powRecu(self... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
5974,
29901,
29871,
438,
29898,
1188,
29876,
29897,
13,
29937,
14121,
29901,
438,
29898,
1188,
29876,
29897,
13,
29937,
29871,
13,
29937,
1954,
2037,
4764,
29898... |
scheduler/migrations/0025_auto_20181227_0749.py | janton42/reservationator | 1 | 81318 | # Generated by Django 2.1.3 on 2018-12-27 15:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scheduler', '0024_auto_20181227_0744'),
]
operations = [
migrations.AlterField(
model_name='cho... | [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29896,
29889,
29941,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29896,
29906,
29899,
29906,
29955,
29871,
29896,
29945,
29901,
29946,
29929,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
installSynApps/IO/config_writer.py | oksanagit/installSynApps | 0 | 77866 | """Class that is responsible for writing Install Configurations
Converts datamodel objects back into text files
"""
import datetime
import os
import errno
import shutil
from installSynApps.DataModel import *
from installSynApps.IO import logger as LOG
class ConfigWriter:
"""Class that is responsible for writing... | [
1,
9995,
2385,
393,
338,
14040,
363,
5007,
16052,
12782,
332,
800,
13,
13,
1168,
369,
1372,
1418,
314,
27224,
3618,
1250,
964,
1426,
2066,
13,
15945,
29908,
13,
13,
13,
5215,
12865,
13,
5215,
2897,
13,
5215,
4589,
1217,
13,
5215,
52... |
utils/italic_utils.py | Brickster/pretty-markdown | 0 | 165789 | <reponame>Brickster/pretty-markdown
import re
VALID_CHARACTERS = ['*', "_"]
def convert_italics(text, character='_'):
"""Converts any italics implementation to use the specified character.
If no character is given, an underscore (_) is used.
"""
assert character in VALID_CHARACTERS, 'character must... | [
1,
529,
276,
1112,
420,
29958,
29933,
9131,
2475,
29914,
1457,
4349,
29899,
3502,
3204,
13,
5215,
337,
13,
13,
26707,
29918,
11282,
17923,
23598,
353,
6024,
29930,
742,
11119,
3108,
13,
13,
13,
1753,
3588,
29918,
2410,
1199,
29898,
726,... |
64-minimum-path-sum.py | Iciclelz/leetcode | 0 | 140692 | import math
import queue
class Solution:
def vertices(self):
return [(x, y) for y in range(len(self.grid[0])) for x in range(len(self.grid))]
def adjacent(self, u):
l = list()
if u[0] + 1 < len(self.grid):
l.append((u[0] + 1, u[1]))
if u[1] + 1 < len(self.grid[0])... | [
1,
1053,
5844,
13,
5215,
9521,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
13791,
29898,
1311,
1125,
13,
4706,
736,
17288,
29916,
29892,
343,
29897,
363,
343,
297,
3464,
29898,
2435,
29898,
1311,
29889,
7720,
29961,
29900,
12622,
363,
92... |
users/roles.py | Zimodra/yamdb_final | 0 | 30235 | from django.db import models
class Roles(models.TextChoices):
USER = 'user', 'User'
MODERATOR = 'moderator', 'Moderator'
ADMIN = 'admin', 'Admin'
| [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
13,
1990,
390,
6544,
29898,
9794,
29889,
1626,
15954,
1575,
1125,
13,
1678,
3148,
1001,
353,
525,
1792,
742,
525,
2659,
29915,
13,
1678,
16999,
8032,
1299,
1955,
353,
525,
1545,
261,
1061... |
POP1/worksheets/recursion/ex02/test_ex02.py | silvafj/BBK-MSCCS-2017-18 | 1 | 120799 | import pytest
from power import power
def test_one():
assert power(2,-3) == 0.125
def test_two():
assert power(2,1) == 2
def test_three():
assert power(2,2) == 4
def test_four():
assert power(2,3) == 8
def test_five():
assert power(2,4) == 16
def test_six():
assert power(2,9) == 512
def test_seven():
ass... | [
1,
1053,
11451,
1688,
13,
13,
3166,
3081,
1053,
3081,
13,
13,
1753,
1243,
29918,
650,
7295,
13,
12,
9294,
3081,
29898,
29906,
6653,
29941,
29897,
1275,
29871,
29900,
29889,
29896,
29906,
29945,
13,
13,
1753,
1243,
29918,
10184,
7295,
13... |
infoblox_netmri/api/broker/v3_6_0/sdn_network_broker.py | IngmarVG-IB/infoblox-netmri | 0 | 91165 | <reponame>IngmarVG-IB/infoblox-netmri
from ..broker import Broker
class SdnNetworkBroker(Broker):
controller = "sdn_networks"
def index(self, **kwargs):
"""Lists the available sdn networks. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the v... | [
1,
529,
276,
1112,
420,
29958,
797,
29887,
3034,
29963,
29954,
29899,
8979,
29914,
7192,
711,
417,
29916,
29899,
1212,
29885,
374,
13,
3166,
6317,
6729,
3946,
1053,
4358,
3946,
13,
13,
1990,
317,
5200,
13724,
29857,
3946,
29898,
29857,
... |
baseline/eval_sent.py | parallelcrawl/DataCollection | 8 | 31240 | <gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from strip_language_from_uri import LanguageStripper
import urlparse
correct, wrong = [], []
def strip_uri(uri, language_stripper):
parsed_uri = urlparse.urlparse(uri)
matched_language = language_stripper.match(parsed_uri.path)
if n... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
10876,
13,
3166,
17820... |
tensorflow_probability/python/bijectors/glow.py | PavanKishore21/probability | 2 | 135473 | <reponame>PavanKishore21/probability
# Copyright 2020 The TensorFlow Probability 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
#
... | [
1,
529,
276,
1112,
420,
29958,
29925,
29080,
29968,
728,
487,
29906,
29896,
29914,
22795,
3097,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
450,
323,
6073,
17907,
1019,
29890,
3097,
13189,
943,
29889,
13,
29937,
13,
29937,
... |
idfy_sdk/services/signature/models/redirect_settings.py | idfy-io/idfy-sdk-python | 0 | 107258 | <gh_stars>0
# coding: utf-8
"""
Idfy.Signature
Sign contracts, declarations, forms and other documents using digital signatures. ## Last update Last build date for this endpoint: 18.03.2019
"""
import pprint
import re
from typing import List, Dict
from datetime import datetime as datetime
class Redir... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
306,
2176,
29891,
29889,
10140,
1535,
13,
13,
1678,
9954,
8078,
29879,
29892,
28721,
29892,
7190,
322,
916,
10701... |
tests/test_statebus.py | invisible-college/tightrope | 1 | 29656 | // Test calls to statebus server
var bus = require('statebus/server')();
bus.ws_client("/*", "ws://aws.local-box.org:45678");
x = bus.fetch("/paul/code");
console.log(JSON.stringify(x));
if (!x.written) {
console.log("No member .written found, setting it now");
x.written = "here it is";
}
save(x);
| [
1,
849,
4321,
5717,
304,
2106,
8262,
1923,
13,
1707,
3593,
353,
1996,
877,
3859,
8262,
29914,
2974,
1495,
890,
13,
8262,
29889,
5652,
29918,
4645,
703,
5515,
613,
376,
5652,
597,
10467,
29889,
2997,
29899,
1884,
29889,
990,
29901,
29946... |
Project/app/views.py | geminateCoder/Character-Archive-Website | 0 | 80943 | from flask import render_template, flash, redirect, session, url_for, request, g
from flask.ext.login import login_user, logout_user, current_user, login_required
from app import app, db, lm, oid
from .forms import LoginForm, EditForm, RegisterForm, CreateC
from .models import User, UserSettings, Character
from datetim... | [
1,
515,
29784,
1053,
4050,
29918,
6886,
29892,
11013,
29892,
6684,
29892,
4867,
29892,
3142,
29918,
1454,
29892,
2009,
29892,
330,
13,
3166,
29784,
29889,
1062,
29889,
7507,
1053,
6464,
29918,
1792,
29892,
1480,
449,
29918,
1792,
29892,
185... |
pywaterkotte/test_ecotouch.py | chboland/pywaterkotte | 3 | 64013 | from pywaterkotte.ecotouch import (Ecotouch, EcotouchTag, InvalidResponseException, StatusException)
import responses
import pytest
from datetime import datetime
HOSTNAME = 'hostname'
@pytest.fixture
def wp_instance():
return Ecotouch(HOSTNAME)
# Helper functions
def prepare_response(action, body):
response... | [
1,
515,
282,
5693,
1008,
29895,
14360,
29889,
687,
327,
3222,
1053,
313,
29923,
26235,
3222,
29892,
382,
26235,
3222,
8176,
29892,
21403,
5103,
2451,
29892,
16034,
2451,
29897,
13,
5215,
20890,
13,
5215,
11451,
1688,
13,
3166,
12865,
1053... |
pycdb/__init__.py | moriyoshi/wozozo-cdb | 1 | 135807 | from ._pycdb import CDB, CDBMake
| [
1,
515,
869,
29918,
2272,
2252,
29890,
1053,
315,
4051,
29892,
315,
4051,
9984,
13,
13,
2
] |
test/fisheries_test_io.py | phargogh/invest-natcap.invest-3 | 0 | 40061 | <reponame>phargogh/invest-natcap.invest-3
import unittest
import os
import pprint
from numpy import testing
import numpy as np
import invest_natcap.fisheries.fisheries_io as fisheries_io
from invest_natcap.fisheries.fisheries_io import MissingParameter
data_directory = './invest-data/test/data/fisheries'
pp = pprin... | [
1,
529,
276,
1112,
420,
29958,
561,
1191,
468,
29882,
29914,
262,
10147,
29899,
8924,
5030,
29889,
262,
10147,
29899,
29941,
13,
5215,
443,
27958,
13,
5215,
2897,
13,
5215,
282,
2158,
13,
13,
3166,
12655,
1053,
6724,
13,
5215,
12655,
... |
registration/migrations/0019_child_unique_child.py | screw-pack/hazel | 0 | 148626 | # Generated by Django 3.2.4 on 2021-07-21 13:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registration', '0018_child_category'),
]
operations = [
migrations.AddConstraint(
model_name='child',
constraint=mod... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29946,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29955,
29899,
29906,
29896,
29871,
29896,
29941,
29901,
29946,
29896,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
utils/convert.py | loyelee/doubanAutoProject | 1 | 162805 | # -*- coding: utf-8 -*-
"""
Created on 2019/8/27
@author: LoyeLee
"""
# 容错最大的有色判断
MAX_RGB_VALUE = 20
# 噪点大小
MAX_NOISY_COUNT = 25
# RGBA白色定义
WHITE_COLOR = (255, 255, 255, 255)
# RGBA黑色定义
BLACK_COLOR = (0, 0, 0, 255)
def print_char_pic(width, height, s_data):
"""
画出字符图, 空格为白色, 点为黑色
"""
_pic_str = ''
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
29871,
29906,
29900,
29896,
29929,
29914,
29947,
29914,
29906,
29955,
29871,
13,
13,
29992,
8921,
29901,
4309,
4099,
3226,
29... |
api/models.py | shrionit/invoicegen_backend | 0 | 173356 | from hashlib import blake2s
from django.utils import timezone
def today():
return timezone.localtime(timezone.now())
def generalCode(length):
code = blake2s(digest_size=length // 2)
code.update(bytes(f"{today()}", "utf-8"))
return f"MT{code.hexdigest()}".upper()
| [
1,
515,
6608,
1982,
1053,
12995,
446,
29906,
29879,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
13,
13,
1753,
9826,
7295,
13,
1678,
736,
29431,
29889,
2997,
2230,
29898,
2230,
8028,
29889,
3707,
3101,
13,
13,
13,
1753,
2498,
3399,
... |
baaz/ChunkTreeInformationExtractor.py | sobhe/openie | 23 | 94494 | # coding: utf8
from __future__ import print_function
from itertools import product
from nltk.tree import Tree
class ChunkTreeInformationExtractor():
def __init__(self):
self.arg = lambda chunk: ' '.join([word for word, tag in chunk.leaves()])
def extract(self, chunked_tree):
""" extracts information from chu... | [
1,
396,
14137,
29901,
23616,
29947,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
3166,
4256,
8504,
1053,
3234,
13,
3166,
302,
1896,
29895,
29889,
8336,
1053,
15472,
13,
13,
13,
1990,
678,
2960,
9643,
20350,
5647,
... |
train.py | eculiat/ImageClassifier | 0 | 74050 | import matplotlib.pyplot as plt
import numpy as np
import time
import torch
from torch import nn
from torch import tensor
from torch import optim
import torch.nn.functional as F
from torch.autograd import Variable
from torchvision import datasets, transforms
import torchvision.models as models
import argpars... | [
1,
1053,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
931,
30004,
13,
5215,
4842,
305,
30004,
13,
3166,
4842,
305,
1053,
302,
29876,
30004,
13,
3166,
4842,
305,
1053,
12489,
30004,
13,
3166,
... |
lilac/__init__.py | mba811/lilac | 1 | 46836 | <filename>lilac/__init__.py
# coding=utf8
#
# OOO$QHHHQ$$$$$$$$$QQQHHHHNHHHNNNNNNNNNNN
# OO$$QHHNHQ$$$$$O$$$QQQHHHNNHHHNNNNNNMNNN
# $$$QQHHHH$$$OOO$$$$QQQQHHHHHHHNHNNNMNNNN
# HHQQQHHH--:!OOO$$$QQQQQQQHHHHHNNNNNNNNNN
# NNNHQHQ-;-:-:O$$$$$QQQ$QQQQHHHHNNNNNNNNN
# NMNHHQ;-;----:$$$$$$$:::OQHHHHHNNNNHHNNN
# NNNHH;;;-----:C$... | [
1,
529,
9507,
29958,
29880,
309,
562,
29914,
1649,
2344,
26914,
2272,
13,
29937,
14137,
29922,
9420,
29947,
13,
29937,
13,
29937,
438,
29949,
29949,
29938,
29984,
27590,
29950,
29984,
3997,
3997,
3997,
3997,
29938,
29984,
29984,
29984,
2759... |
examples/utils/interaction.py | epuzanov/pivy | 29 | 18475 | import sys
from PySide2.QtWidgets import QApplication
from PySide2.QtGui import QColor
from pivy import quarter, coin, graphics, utils
class ConnectionMarker(graphics.Marker):
def __init__(self, points):
super(ConnectionMarker, self).__init__(points, True)
class ConnectionPolygon(graphics.Polygon):
s... | [
1,
1053,
10876,
13,
3166,
10772,
23908,
29906,
29889,
17303,
8801,
29879,
1053,
660,
4873,
13,
3166,
10772,
23908,
29906,
29889,
17303,
28707,
1053,
660,
3306,
13,
3166,
282,
440,
29891,
1053,
12616,
29892,
19480,
29892,
18533,
29892,
3667,... |
src/simulator/services/resources/atlas.py | ed741/PathBench | 46 | 2040 | from typing import Dict, List
from simulator.services.resources.directory import Directory
from simulator.services.services import Services
class Atlas(Directory):
def __init__(self, services: Services, name: str, parent: str, create: bool = False) -> None:
super().__init__(services, name, parent, create... | [
1,
515,
19229,
1053,
360,
919,
29892,
2391,
13,
13,
3166,
1027,
9183,
29889,
9916,
29889,
13237,
29889,
12322,
1053,
18862,
13,
3166,
1027,
9183,
29889,
9916,
29889,
9916,
1053,
15538,
13,
13,
13,
1990,
27076,
29898,
9882,
1125,
13,
167... |
4.13/demo/reqresp/urls.py | 1179069501/- | 0 | 140042 | from django.urls import re_path
from .import views
urlpatterns = [
re_path(r'^query/$',views.queryfunc),
# re_path(r'^weather/([a-z]+)/(\d{4})/$',views.routerfunc),
re_path(r'^weather/(?P<city>[a-z]+)/(?P<year>\d{4})/$',views.routerfunc1),
re_path(r'^form/$',views.formfunc),
]
| [
1,
515,
9557,
29889,
26045,
1053,
337,
29918,
2084,
13,
3166,
869,
5215,
8386,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
337,
29918,
2084,
29898,
29878,
29915,
29985,
1972,
13346,
742,
7406,
29889,
1972,
9891,
511,
13,
1678,
396,
... |
salika/urls/city_urls.py | BarisSari/django_crud | 0 | 1606708 | from django.conf.urls import url
from ..views import (CityListView, CityCreateView, CityDetailView,
CityUpdateView, CityDeleteView)
from django.contrib.auth.decorators import login_required
urlpatterns = [
url(r'^create/$', # NOQA
login_required(CityCreateView.as_view()),
nam... | [
1,
515,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
6317,
7406,
1053,
313,
16885,
15660,
29892,
4412,
4391,
1043,
29892,
4412,
16570,
1043,
29892,
13,
462,
268,
4412,
6422,
1043,
29892,
4412,
12498,
1043,
29897,
13,
3166,
9557,... |
simba/ROI_directionality_to_other_animals.py | justinshenk/simba | 1 | 158718 | <filename>simba/ROI_directionality_to_other_animals.py
from __future__ import division
import os
from _datetime import datetime
import pandas as pd
import numpy as np
from configparser import ConfigParser, NoOptionError, NoSectionError
import glob
import cv2
from pylab import cm
from simba.rw_dfs import *
fro... | [
1,
529,
9507,
29958,
3601,
2291,
29914,
1672,
29902,
29918,
20845,
2877,
29918,
517,
29918,
1228,
29918,
11576,
1338,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
30004,
13,
5215,
2897,
30004,
13,
3166,
903,
12673,
1053,
12... |
ltrc/inicio/views.py | iscenigmax/ltrc-registry | 0 | 84407 | <reponame>iscenigmax/ltrc-registry<gh_stars>0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
def inicio(request, id=None):
# return render(request, 'w2r.html', {'id':id})
return render(request, 'inicio.html', {}) | [
1,
529,
276,
1112,
420,
29958,
275,
10278,
2934,
29916,
29914,
29880,
509,
29883,
29899,
1727,
6020,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,... |
app/files/Archive/calweek - alt.py | aiakobou/Wochenplanung | 0 | 171682 | <filename>app/files/Archive/calweek - alt.py
#!/usr/bin/env python
'''Berechnung der Kalenderwoche'''
__author__ = '<NAME>'
__version__ = '1.0'
__email__ = '<EMAIL>'
import datetime
def calweek():
while True:
KWalternativ = input('KW eingeben oder Enter für folgende KW: ')
if len(KWalternativ) ... | [
1,
529,
9507,
29958,
932,
29914,
5325,
29914,
13197,
573,
29914,
1052,
18448,
448,
5272,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
12008,
29933,
406,
3049,
686,
589,
9172,
1581,
827,
1173,
12008,
13,
1... |
Code/ViloSky/ViloSkyApp/migrations/0002_auto_20210323_1149.py | andrewwu531/Student_Enquiry_AI_Chatbot | 0 | 162188 | # Generated by Django 3.1.4 on 2021-03-23 11:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ViloSkyApp', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='RadioButtonsAdminInput',
new_name='... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29946,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29941,
29899,
29906,
29941,
29871,
29896,
29896,
29901,
29946,
29929,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
python/OSGridConverter/base.py | EdwardBetts/OSGridConverter | 6 | 1601111 | '''
Created on 27 Jul 2017
@author: julianporter
'''
import traceback
from numbers import Number
import logging
class OSGridError(Exception):
def __init__(self,message,inner=None):
super(OSGridError,self).__init__()
self.message='OSGridConverter error: {}'.format(message)
self.inner=i... | [
1,
14550,
13,
20399,
373,
29871,
29906,
29955,
2739,
29871,
29906,
29900,
29896,
29955,
13,
13,
29992,
8921,
29901,
5757,
713,
18505,
13,
12008,
13,
5215,
9637,
1627,
13,
3166,
3694,
1053,
9681,
13,
5215,
12183,
13,
13,
1990,
6570,
5756... |
algorithmic-toolbox/w4/majority_element/majority_element.py | macsz/coursera-data-structures-and-algorithms | 0 | 78634 | <reponame>macsz/coursera-data-structures-and-algorithms
# Uses python3
import sys
b_print = False
def mprint(*args, **kwargs):
if b_print:
print(*args)
def get_majority_element(a, left, right):
m = {}
for elem in a:
mprint('*'*10, elem, '*'*10)
try:
m[str(elem)] += 1
... | [
1,
529,
276,
1112,
420,
29958,
8628,
3616,
29914,
29883,
473,
643,
29874,
29899,
1272,
29899,
4984,
1973,
29899,
392,
29899,
9564,
12404,
13,
29937,
10783,
267,
3017,
29941,
13,
5215,
10876,
13,
13,
29890,
29918,
2158,
353,
7700,
13,
13... |
meus_modulos/mensagem.py | danielle8farias/Exercicios-Python-3 | 0 | 60151 | ########
# autora: <EMAIL>
# repositório: https://github.com/danielle8farias
# Descrição: Funções para:
# ler e criar um cabeçalho;
# criar um rodapé;
# criar linha;
# ler e validar resposta se deseja continuar
# validar recebimento de uma string formada apenas por let... | [
1,
835,
4136,
29937,
13,
29937,
1120,
2207,
29901,
529,
26862,
6227,
29958,
29871,
13,
29937,
17573,
277,
29980,
5378,
29901,
2045,
597,
3292,
29889,
510,
29914,
18386,
11381,
29947,
29888,
20225,
13,
29937,
20355,
2340,
29901,
13811,
5616,... |
compsocsite/polls/migrations/0005_auto_20160502_0301.py | ReedyChen/opra | 8 | 123442 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-02 08:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0004_auto_20160501_1622'),
]
operations = ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29929,
29889,
29945,
373,
29871,
29906,
29900,
29896,
29953,
29899,
29900,
29945,
29899,
29900,
29906,
298... |
viseron/watchdog/thread_watchdog.py | magicmonkey/viseron | 0 | 37520 | <filename>viseron/watchdog/thread_watchdog.py
"""Watchdog for long-running threads."""
import datetime
import logging
import threading
from typing import Callable, Dict, List, Optional
from viseron.watchdog import WatchDog
LOGGER = logging.getLogger(__name__)
class RestartableThread(threading.Thread):
"""Thread... | [
1,
529,
9507,
29958,
1730,
261,
265,
29914,
12344,
26169,
29914,
7097,
29918,
12344,
26169,
29889,
2272,
13,
15945,
29908,
24709,
26169,
363,
1472,
29899,
21094,
9717,
1213,
15945,
13,
5215,
12865,
13,
5215,
12183,
13,
5215,
3244,
292,
13... |
delete_unneeded.py | DamianS6/different-programs | 0 | 156307 | <reponame>DamianS6/different-programs<filename>delete_unneeded.py
#!/usr/bin/env python3
"""A program that looks for files larger than given size (100MB by default)."""
import os
def delete_unneeded(folder, size='100MB'):
sizes = {
'kb': 1024,
'mb': 1048576,
'gb': 1073741824,
}
num_size = sizes[size[-2:].lo... | [
1,
529,
276,
1112,
420,
29958,
29928,
314,
713,
29903,
29953,
29914,
29881,
15622,
29899,
8860,
29879,
29966,
9507,
29958,
8143,
29918,
348,
484,
19226,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
... |
bot/game.py | thequeenofspades/AlphaGOLADZero | 1 | 20757 | from sys import stdin, stdout, stderr
import traceback
import time
from player import Player
from field.field import Field
class Game:
def __init__(self):
self.time_per_move = -1
self.timebank = -1
self.last_update = None
self.max_rounds = -1
self.round = 0
self.pl... | [
1,
515,
10876,
1053,
3659,
262,
29892,
27591,
29892,
380,
20405,
13,
5215,
9637,
1627,
13,
5215,
931,
13,
13,
3166,
4847,
1053,
14574,
13,
3166,
1746,
29889,
2671,
1053,
8989,
13,
13,
1990,
8448,
29901,
13,
1678,
822,
4770,
2344,
1203... |
classroom/management/commands/create_issues.py | pizzapanther/codacation | 0 | 98403 | import logging
from django.core.management.base import BaseCommand, CommandError
from classroom.tasks import create_issues
class Command (BaseCommand):
help = 'Create Github Issues for Assignment'
def add_arguments(self, parser):
parser.add_argument('ass_id', nargs='+', type=int)
def handle(self, *args,... | [
1,
1053,
12183,
13,
13,
3166,
9557,
29889,
3221,
29889,
21895,
29889,
3188,
1053,
7399,
6255,
29892,
10516,
2392,
13,
3166,
770,
8345,
29889,
20673,
1053,
1653,
29918,
12175,
13,
13,
1990,
10516,
313,
5160,
6255,
1125,
13,
29871,
1371,
... |
bayarea_urbansim/data_regeneration/counties/ala.py | ual/DOE-repo-deliverable | 0 | 76344 | import numpy as np
import pandas as pd
from spandex import TableLoader, TableFrame
from spandex.io import df_to_db
import urbansim.sim.simulation as sim
import utils
loader = TableLoader()
staging = loader.tables.staging
## Assumptions.
# Use codes were classified manually because the assessor classifications
# ... | [
1,
1053,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
3166,
10638,
1390,
1053,
6137,
10036,
29892,
6137,
4308,
13,
3166,
10638,
1390,
29889,
601,
1053,
4489,
29918,
517,
29918,
2585,
13,
5215,
23499,
550,
326,
29889,
3601,
29889,
... |
Project4/views_templates.py | sockduct/Udacity-FSND | 0 | 67140 | <filename>Project4/views_templates.py<gh_stars>0
#!/usr/bin/env python
# -*- coding: ascii -*-
###################################################################################################
#
# Python version(s) used/tested:
# * Python 2.7.12-32 on Ubuntu 16.04.2 LTS
# * Python 2.7.13-32 on Windows 7
# * Python 3.... | [
1,
529,
9507,
29958,
7653,
29946,
29914,
7406,
29918,
20943,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
408,
18869,
448,
299... |
tnasnet.py | deepak7376/tNASnet | 1 | 110015 | <reponame>deepak7376/tNASnet
# -*- coding: utf-8 -*-
"""tNASnet.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1yl3flXhYBNmjQ2bXVZcXZmhHfHXoSWHB
"""
import pandas as pd
#read the file
df = pd.read_csv("/Users/deepak/Documents/OpenSource/tNASnet/d... | [
1,
529,
276,
1112,
420,
29958,
24535,
557,
29955,
29941,
29955,
29953,
29914,
29873,
29940,
3289,
1212,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
29873,
29940,
3289,
1212,
29889,
6... |
setup.py | aaren/pharminv | 12 | 32986 | <gh_stars>10-100
import subprocess
from setuptools import setup, Extension
try:
pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],
stdout=subprocess.PIPE)
readme = pandoc.communicate()[0].decode()
except OSError:
with open('README.md') as f:
readme = f... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
1014,
5014,
13,
13,
3166,
731,
21245,
8789,
1053,
6230,
29892,
7338,
2673,
13,
13,
2202,
29901,
13,
1678,
282,
392,
542,
353,
1014,
5014,
29889,... |
chronos/docker/chronos/main.py | guadaltech/kubernetes-containers-tools | 6 | 44836 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# By: <NAME> (Tedezed)
# Source: https://github.com/Tedezed
# Mail: <EMAIL>
from sys import argv
from copy import deepcopy
from chronos import *
from module_control import *
debug = True
def argument_to_dic(list):
dic = {}
for z in list:
dic[z[0]] = z[1]
... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
2648,
29901,
529,
5813,
29958,
313,
29911,
2742,
24688,
29897,
13,
29937,
7562,
29901,
2045,... |
_solved/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 1 | 35045 | <reponame>jorisvandenbossche/ICES-python-data
# Optional solution with tidy data representation (providing x and y)
monthly_victim_counts_melt = monthly_victim_counts.reset_index().melt(
id_vars="datetime", var_name="victim_type", value_name="count"
)
sns.relplot(
data=monthly_victim_counts_melt,
x="dateti... | [
1,
529,
276,
1112,
420,
29958,
3418,
275,
29894,
7257,
27737,
5955,
29914,
2965,
2890,
29899,
4691,
29899,
1272,
13,
29937,
28379,
1650,
411,
10668,
29891,
848,
8954,
313,
16123,
4821,
921,
322,
343,
29897,
13,
10874,
368,
29918,
29894,
... |
klien.py | amirsayonara/SYR-Python-Voice-Talk | 0 | 67455 | <reponame>amirsayonara/SYR-Python-Voice-Talk
import socket, threading, pyaudio
class Klien:
def __init__(self, ip, port, nama_channel):
self.ip = ip
self.port = port
self.channel = nama_channel
self._tersambung = 0
def sambungkan(self):
if self._tersambung: retu... | [
1,
529,
276,
1112,
420,
29958,
314,
12935,
388,
265,
2518,
29914,
14816,
29934,
29899,
11980,
29899,
29963,
29877,
625,
29899,
29911,
2235,
13,
5215,
9909,
29892,
3244,
292,
29892,
282,
3761,
2881,
13,
13,
1990,
476,
492,
264,
29901,
13... |
core/views.py | DjangoBoston/django-mulsite | 0 | 45815 |
from django.contrib.sites.models import Site
from django.contrib.auth import get_user_model
from django.contrib.sites.shortcuts import get_current_site
from rest_framework import viewsets
from core.models import SiteUser
from core import sites
from core.serializers import SiteUserSerializer, SiteSerializer, UserSeri... | [
1,
29871,
13,
3166,
9557,
29889,
21570,
29889,
16315,
29889,
9794,
1053,
10781,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
3166,
9557,
29889,
21570,
29889,
16315,
29889,
12759,
7582,
29879,
1053,
679... |
DjangoTry/testDJ/main/migrations/0001_initial.py | PavelKoksharov/QR-BOOK | 0 | 189489 | # Generated by Django 4.0.1 on 2022-01-17 21:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
('Id', models.AutoField(pr... | [
1,
396,
3251,
630,
491,
15337,
29871,
29946,
29889,
29900,
29889,
29896,
373,
29871,
29906,
29900,
29906,
29906,
29899,
29900,
29896,
29899,
29896,
29955,
29871,
29906,
29896,
29901,
29945,
29953,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.