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 |
|---|---|---|---|---|---|
notebooks/deliver/bawe_rnn_train.py | grchristensen/avpd | 0 | 56205 | from datetime import datetime
import os
from os.path import join
import pandas as pd
from pathlib import Path
import pickle
import spacy
import sys
import torch
from torch import optim
from torch.nn import Embedding, LSTM
from torch.nn.functional import mse_loss
from torch.utils.data import TensorDataset
from torch.uti... | [
1,
515,
12865,
1053,
12865,
13,
5215,
2897,
13,
3166,
2897,
29889,
2084,
1053,
5988,
13,
5215,
11701,
408,
10518,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
5839,
280,
13,
5215,
805,
4135,
13,
5215,
10876,
13,
5215,
4842,
305,
13,
... |
cogs/report.py | fennr/Samuro-HotsBot | 1 | 108166 | <reponame>fennr/Samuro-HotsBot
import discord
from discord import Embed
from discord.ext import commands
from discord.ext.commands import command, Cog, errors
from discord_components import DiscordComponents, Button, ButtonStyle, Select, SelectOption
from discord_slash.context import ComponentContext, MenuContext
from ... | [
1,
529,
276,
1112,
420,
29958,
29888,
2108,
29878,
29914,
22966,
2192,
29899,
29950,
1862,
29933,
327,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
1053,
2812,
2580,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
3166,
2313,
536,
29889,... |
src/bepasty/storage/__init__.py | Emojigit/bepasty-server | 123 | 171712 | import importlib
def create_storage(app):
"""
Load specified storage and return the object.
"""
if 'STORAGE' not in app.config:
raise Exception("Missing STORAGE config key")
storage = importlib.import_module('.' + app.config['STORAGE'], __name__)
return storage.create_storage(app)
| [
1,
1053,
1053,
1982,
13,
13,
13,
1753,
1653,
29918,
12925,
29898,
932,
1125,
13,
1678,
9995,
13,
1678,
16012,
6790,
8635,
322,
736,
278,
1203,
29889,
13,
1678,
9995,
13,
1678,
565,
525,
1254,
1955,
10461,
29915,
451,
297,
623,
29889,
... |
scripts/parse_groot-report.py | alexmsalmeida/amr-profiler | 2 | 93844 | <reponame>alexmsalmeida/amr-profiler
#!/usr/bin/env python
import sys
import os
if len(sys.argv) < 2:
print("usage: script.py res_classes.tsv groot.report")
sys.exit(1)
bla = ["CTX", "TEM", "OXA", "SHV", "OXY", "LEN",
"MIR", "DHA", "CMY", "PDC", "OKP", "CBL"]
arg = {"AGL": "Aminoglycoside", "MLS": "... | [
1,
529,
276,
1112,
420,
29958,
744,
29916,
1516,
284,
1004,
1458,
29914,
314,
29878,
29899,
771,
1777,
261,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
13,
361,
7431,
29898,
9675,
2... |
codes/nlper/modules/modeling_outputs.py | zhaoxiongjun/NLPer-Arsenal | 1 | 170959 | <reponame>zhaoxiongjun/NLPer-Arsenal<gh_stars>1-10
from collections import OrderedDict
import torch
class ModelOutput(OrderedDict):
"""修改自transformers.file_utils.ModelOutput,允许下标、索引、属性访问,根据创建时的顺序决定
>>> t = ModelOutput(lr=1e-5)
>>> t.update(n_epochs=2)
>>> t
>>> ModelOutput([('lr', 1e-05), ('n_epo... | [
1,
529,
276,
1112,
420,
29958,
29920,
2350,
2251,
291,
29887,
29926,
348,
29914,
25103,
5894,
29899,
1433,
4881,
284,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
5215,
48... |
paww/augmentation.py | SauravMaheshkar/paww | 0 | 145217 | <filename>paww/augmentation.py<gh_stars>0
from typing import Any
import albumentations as A
from albumentations.pytorch import ToTensorV2
__all__ = ["get_transforms"]
def get_transforms(cfg: dict, data: str) -> Any:
if data == "train":
return A.Compose(
[
A.RandomResizedCrop... | [
1,
529,
9507,
29958,
29886,
1450,
29893,
29914,
2987,
358,
362,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
3139,
13,
13,
5215,
27234,
942,
800,
408,
319,
13,
3166,
27234,
942,
800,
29889,
2272,
734... |
src/python/dxpy/toolkit_version.py | Vidium-LLC/dx-toolkit | 0 | 1612159 | <filename>src/python/dxpy/toolkit_version.py
version = '0.303.0'
| [
1,
529,
9507,
29958,
4351,
29914,
4691,
29914,
8235,
2272,
29914,
10154,
7354,
29918,
3259,
29889,
2272,
13,
3259,
353,
525,
29900,
29889,
29941,
29900,
29941,
29889,
29900,
29915,
13,
2
] |
members/urls.py | Moha369/vector | 0 | 100484 |
from django.contrib import admin
from django.urls import path
from . import views
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth import views as auth_views
urlpatterns = [
path('', views.h... | [
1,
29871,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
9557,
29889,
26045,
1053,
2224,
13,
3166,
869,
1053,
8386,
13,
3166,
9557,
29889,
5527,
29889,
26045,
29889,
7959,
1053,
2294,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
31... |
blitzdb/fields/integer.py | marcinguy/blitzdb3 | 252 | 42277 | <gh_stars>100-1000
from .base import BaseField
class IntegerField(BaseField):
pass
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
3166,
869,
3188,
1053,
7399,
3073,
13,
13,
13,
1990,
8102,
3073,
29898,
5160,
3073,
1125,
13,
1678,
1209,
13,
2
] |
tests/unit_tests/test_UpdatedSynDataset_specified_target_with_background.py | liyu711/SUAS | 0 | 181356 | <gh_stars>0
"""
Running Successfully
import unittest
import math
from PIL import Image
from SyntheticDataset2.ImageCreator.specified_target_with_background import SpecifiedTargetWithBackground
class SpecifiedTargetWithBackgroundTestCase(unittest.TestCase):
def setUp(self):
self.path_to_background = "test... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
27795,
21397,
3730,
13,
13,
5215,
443,
27958,
13,
5215,
5844,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
10829,
386,
7492,
16390,
24541,
29906,
29889,
2940,
9832,
1061... |
tests/test_django_url_check.py | jambonsw/django-url-checks | 5 | 109633 | <filename>tests/test_django_url_check.py
"""Tests for django-url-check"""
import url_checks
def test_version():
"""Check that package has a version"""
assert hasattr(url_checks, "__version__")
assert isinstance(url_checks.__version__, str)
def test_default_app():
"""Check that package has a default ... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
14095,
29918,
2271,
29918,
3198,
29889,
2272,
13,
15945,
29908,
24376,
363,
9557,
29899,
2271,
29899,
3198,
15945,
29908,
13,
5215,
3142,
29918,
3198,
29879,
13,
13,
13,
1753,
1243,
29918,
3... |
controllers/json_types.py | OSevangelist/vsf-odoo | 84 | 1616938 | <gh_stars>10-100
import urllib.parse
class JSONTypes():
@staticmethod
def productJSON(name, item_id, code, price, attribute_line_ids, variants, configurable_children, size_attribute_name, color_attribute_name, host_odoo):
# Configurable options
configurable_options_array = []
for vari... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
3142,
1982,
29889,
5510,
13,
13,
1990,
4663,
10562,
7295,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
3234,
7249,
29898,
978,
29892,
2944,
299... |
roomtools/checks.py | entchen66/sinbad3.1 | 0 | 135269 | from typing import TYPE_CHECKING
from redbot.core import commands
if TYPE_CHECKING:
from . import RoomTools
def tmpc_active():
async def check(ctx: commands.Context):
if not ctx.guild:
return False
cog = ctx.bot.get_cog("RoomTools")
if TYPE_CHECKING:
assert is... | [
1,
515,
19229,
1053,
323,
6959,
29918,
3210,
16658,
4214,
13,
3166,
337,
2585,
327,
29889,
3221,
1053,
8260,
13,
13,
13,
361,
323,
6959,
29918,
3210,
16658,
4214,
29901,
13,
1678,
515,
869,
1053,
25114,
24183,
13,
13,
13,
1753,
13128,... |
recipes/LibriMix/prepare_data.py | anonymspeechbrain/speechbrain | 0 | 65899 | <reponame>anonymspeechbrain/speechbrain<gh_stars>0
"""
The functions to create the .csv files for LibriMix
Author
* Anonymous
"""
import os
import csv
def prepare_librimix(
datapath,
savepath,
n_spks=2,
skip_prep=False,
librimix_addnoise=False,
fs=8000,
):
"""
Prepare .csv files fo... | [
1,
529,
276,
1112,
420,
29958,
273,
4735,
5965,
5309,
2634,
262,
29914,
5965,
5309,
2634,
262,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
1576,
3168,
304,
1653,
278,
869,
7638,
2066,
363,
8153,
374,
29924,
861,
... |
bert/training/trainer.py | 292916808/MolCloze | 0 | 59441 | <gh_stars>0
# !/usr/bin/env python
# -*- coding: utf-8 -*-
# author: chinshin
# datetime: 2020/4/20 15:41
import sys
import tqdm
import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from .optim_schedule import Scheduleoptim
from bert.model import MolBertLM, MolBertDis, Line... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
1738,
29914,
4855,
29914,
2109,
29914,
6272,
3017,
30004,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
29937,
4148,
29901,
521,
262,... |
pymongoimport/restart.py | jdrumgoole/pymongodbimport | 1 | 109788 | """
Created on 30 Jul 2017
@author: jdrumgoole
"""
import socket
import sys
from datetime import datetime
from enum import Enum
import pymongo
from pymongoimport.canonical_path import Canonical_Path
class Restart_State(Enum):
undefined = 0
start = 1
inprogress = 2
finish = 3
class Restarter(objec... | [
1,
9995,
13,
20399,
373,
29871,
29941,
29900,
2739,
29871,
29906,
29900,
29896,
29955,
13,
13,
29992,
8921,
29901,
432,
29881,
5848,
1484,
1772,
13,
15945,
29908,
13,
5215,
9909,
13,
5215,
10876,
13,
3166,
12865,
1053,
12865,
13,
3166,
... |
neutron/services/logapi/drivers/manager.py | knodir/neutron | 0 | 79977 | <reponame>knodir/neutron
# Copyright (c) 2017 Fujitsu Limited
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | [
1,
529,
276,
1112,
420,
29958,
3959,
397,
381,
29914,
17821,
1617,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
383,
8016,
1169,
29884,
28873,
13,
29937,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
2993... |
extensions/rules/checked_proof_test.py | VictoriaRoux/oppia | 3 | 111448 | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. 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 requi... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
450,
438,
407,
423,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
... |
1.-MapReduce Spark/B-Datos Meteorologicos/Meteorologico_3.py | gorco/sgdi-lab | 0 | 34123 | # coding=utf-8
# Este fichero generado para la asignatura SGDI
# Practica 1 MapReduce Y Spark, Ejercicio B.3
# Autores: <NAME> y <NAME>
# <NAME> y <NAME> declaramos que esta solución es fruto exclusivamente de nuestro
# trabajo personal. No hemos sido ayudados por ninguna otra persona ni hemos obtenido la solución de... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
13,
29937,
12723,
285,
436,
1489,
1176,
912,
1702,
425,
408,
647,
7969,
317,
29954,
4571,
13,
29937,
29124,
983,
29871,
29896,
7315,
29934,
6085,
346,
612,
20814,
29892,
26087,
6269,
11088,
... |
venv/Scripts/ex096.py | SamuelNunesDev/starting_point_in_python | 0 | 111947 | <filename>venv/Scripts/ex096.py
def area(l, c):
return f'A área do terreno {l}x{c} é de {l * c:.2f} m²'
print(area(float(input('Qual a largura do terreno? ')), float(input('Qual o comprimento do terreno? '))))
| [
1,
529,
9507,
29958,
854,
29894,
29914,
4081,
29879,
29914,
735,
29900,
29929,
29953,
29889,
2272,
13,
1753,
4038,
29898,
29880,
29892,
274,
1125,
13,
1678,
736,
285,
29915,
29909,
17335,
437,
1935,
26155,
426,
29880,
29913,
29916,
29912,
... |
excut/feedback/rulebased_deduction/deduction_engine_extended.py | mhmgad/ExCut | 5 | 3975 | """
This module contains the rule-based inference (rulebased_deduction engine)
"""
import itertools
from collections import defaultdict
from itertools import chain
from excut.explanations_mining.descriptions import dump_explanations_to_file
from excut.explanations_mining.descriptions_new import Description2, Atom, loa... | [
1,
9995,
13,
4013,
3883,
3743,
278,
5751,
29899,
6707,
27262,
313,
7491,
6707,
29918,
29881,
6085,
428,
6012,
29897,
13,
15945,
29908,
13,
5215,
4256,
8504,
13,
3166,
16250,
1053,
2322,
8977,
13,
3166,
4256,
8504,
1053,
9704,
13,
13,
... |
measurement/tests.py | sigurdsa/angelika-api | 2 | 187703 | <filename>measurement/tests.py
from test.testcase import AngelikaAPITestCase
from patient.models import Patient
from measurement.models import Measurement
from threshold_value.models import ThresholdValue
from alarm.models import Alarm
import time
class PostMeasurementTests(AngelikaAPITestCase):
def create_and_au... | [
1,
529,
9507,
29958,
26658,
358,
29914,
21150,
29889,
2272,
13,
3166,
1243,
29889,
1688,
4878,
1053,
17323,
4106,
3301,
1806,
342,
8259,
13,
3166,
16500,
29889,
9794,
1053,
4121,
993,
13,
3166,
20039,
29889,
9794,
1053,
2191,
3745,
358,
... |
setup.py | mattpatey/text2qrcode | 1 | 14854 | <reponame>mattpatey/text2qrcode
from setuptools import (
find_packages,
setup,
)
setup(
name="text2qrcode",
version="1.0-a1",
description="Render a QR code image from input text",
author="<NAME>",
packages=find_packages(),
install_requires=["qrcode", "pillow"],
entry_points={
... | [
1,
529,
276,
1112,
420,
29958,
29885,
1131,
29886,
403,
29891,
29914,
726,
29906,
29939,
29878,
401,
13,
3166,
731,
21245,
8789,
1053,
313,
13,
1678,
1284,
29918,
8318,
29892,
13,
1678,
6230,
29892,
13,
1678,
1723,
13,
13,
14669,
29898,... |
microsoft_auth/migrations/0002_fix_microsoft_id_length.py | etrimbymchd/django_microsoft_auth | 115 | 1611790 | # Generated by Django 2.1.7 on 2019-02-28 20:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("microsoft_auth", "0001_initial")]
operations = [
migrations.AlterField(
model_name="microsoftaccount",
name="microsoft_id",
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29896,
29889,
29955,
373,
29871,
29906,
29900,
29896,
29929,
29899,
29900,
29906,
29899,
29906,
29947,
29871,
29906,
29900,
29901,
29941,
29900,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
sqlmat/utils.py | haobtc/sqlmat | 0 | 7362 | from typing import Tuple, List, Optional
import json
import sys
import os
import shlex
import asyncio
import argparse
import logging
import tempfile
from urllib.parse import urlparse
logger = logging.getLogger(__name__)
def find_sqlmat_json() -> Optional[dict]:
json_path = os.getenv('SQLMAT_JSON_PATH')
if jso... | [
1,
515,
19229,
1053,
12603,
552,
29892,
2391,
29892,
28379,
13,
5215,
4390,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
528,
2506,
13,
5215,
408,
948,
3934,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
5215,
5694,
1445,
13,
3166,
3142,
... |
cartbox/cart/management/commands/update_or_create_cats_and_prods.py | bayersglassey/cartbox | 0 | 100249 |
from django.core.management.base import BaseCommand, CommandError
from cart.default_data import update_or_create_cats_and_prods
class Command(BaseCommand):
help = (
"Updates or creates the default set of Product and "
"Category objects.")
def handle(self, *args, **options):
update_... | [
1,
29871,
13,
3166,
9557,
29889,
3221,
29889,
21895,
29889,
3188,
1053,
7399,
6255,
29892,
10516,
2392,
13,
13,
3166,
7774,
29889,
4381,
29918,
1272,
1053,
2767,
29918,
272,
29918,
3258,
29918,
29883,
1446,
29918,
392,
29918,
771,
6289,
1... |
lib/spack/spack/cmd/style.py | mt-empty/spack | 2 | 68467 | <reponame>mt-empty/spack
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from __future__ import print_function
import argparse
import os
import re
import sys
import lln... | [
1,
529,
276,
1112,
420,
29958,
4378,
29899,
6310,
29914,
1028,
547,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29941,
29899,
29906,
29900,
29906,
29896,
19520,
22469,
5514,
3086,
14223,
29892,
365,
12182,
322,
916,
13,
29937,
1706,... |
PLC/PlcValidator.py | dangxuanvuong98/pineapples_harvester | 0 | 64164 | '''
File này gồm 2 hàm kiểm tra tọa độ trước khi gửi qua serial
'''
# kiểm tra tọa độ có hợp lệ không
def plc1CoordinateValidator(raw_x, raw_y, raw_z):
#y = int(raw_y)-59-21, -59 (mép ngoài) là khoảng cách từ camera đến khung, 21 từ khung đến trục thân xilanh trục y
#231 khoảng cách hai mép trong, 59 từ cam đến... | [
1,
14550,
13,
2283,
302,
30001,
29891,
330,
30926,
29885,
29871,
29906,
298,
30001,
29885,
8506,
31957,
29885,
1020,
260,
30975,
29874,
29871,
30128,
30902,
534,
30416,
31280,
29883,
413,
2918,
330,
228,
190,
176,
29875,
439,
29874,
7797,
... |
Algorithms/sway_discrete.py | Ginfung/sway | 0 | 58261 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2016, <NAME> <<EMAIL>>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software with... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29953,
29892,
529,
5813,
29958,
3532,
... |
2016/day01/day01-pt1.py | mcbor/advent_of_code_2016 | 1 | 167824 | #!/usr/bin/env python3
# Advent of Code 2016 - Day 1
# Using turtle graphics to find the location of Easter Bunny HQ.
# It's slow, but draws pretty maps.
import sys
import turtle
if len(sys.argv) < 2:
print("Usage: {} puzzle.txt".format(sys.argv[0]))
sys.exit(1)
with open(sys.argv[1]) as f:
# init turtle... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
21255,
310,
5920,
29871,
29906,
29900,
29896,
29953,
448,
8373,
29871,
29896,
13,
29937,
5293,
260,
4227,
280,
18533,
304,
1284,
278,
4423,
310,
382,
1901,
27105,
1460,
379... |
tests/test_naivetrack_methods.py | erasmus-center-for-biomics/Nimbus | 4 | 79013 | #!/bin/env python
import StringIO
import unittest
import naivetrack
import naivetrack.utils
class TestNaivetrackSummaries(unittest.TestCase):
def setUp(self):
# we will use a global chromosome list
self.chromosome_list = []
self.file = StringIO.StringIO("""#
#
chr1\t2\tT\t2\t10\t50
\tG\t... | [
1,
18787,
2109,
29914,
6272,
3017,
13,
13,
5215,
1714,
5971,
13,
5215,
443,
27958,
13,
5215,
1055,
440,
300,
22282,
13,
5215,
1055,
440,
300,
22282,
29889,
13239,
13,
13,
13,
1990,
4321,
13695,
440,
300,
22282,
11139,
3034,
583,
29898... |
util/sessions.py | MaiRachlevsky/Inspyre | 1 | 1618044 | def set_ret_path(session, path):
"""Set the return path in session `session` to `path`"""
session['ret_path'] = path
def clear_ret_path(session):
"""Clear return path in session `session` if it exists"""
if 'ret_path' in session:
del session['ret_path']
def use_ret_path(session):
"""Retu... | [
1,
822,
731,
29918,
2267,
29918,
2084,
29898,
7924,
29892,
2224,
1125,
13,
1678,
9995,
2697,
278,
736,
2224,
297,
4867,
421,
7924,
29952,
304,
421,
2084,
29952,
15945,
29908,
13,
1678,
4867,
1839,
2267,
29918,
2084,
2033,
353,
2224,
13,... |
homeassistant/components/watttime/sensor.py | DoctorU/core | 1 | 129733 | <gh_stars>1-10
"""Support for WattTime sensors."""
from __future__ import annotations
from typing import TYPE_CHECKING
from homeassistant.components.sensor import (
STATE_CLASS_MEASUREMENT,
SensorEntity,
SensorEntityDescription,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.con... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
14039,
363,
399,
1131,
2481,
4771,
943,
1213,
15945,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
19229,
1053,
323,
6959,
29918,
3210,
... |
myenv/lib/python2.7/site-packages/tests/tests.py | dkumarlinux/saleor | 0 | 82080 | """versatileimagefield tests."""
from __future__ import division
from __future__ import unicode_literals
from functools import reduce
import math
import operator
import os
from shutil import rmtree
from django import VERSION as DJANGO_VERSION
from django.conf import settings
from django.contrib.auth.models import Use... | [
1,
9995,
874,
24285,
3027,
2671,
6987,
1213,
15945,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
5215,
5844,
13,
5215,... |
BitTornado/ConnChoice.py | weedy/BitTornado | 0 | 80142 | <filename>BitTornado/ConnChoice.py
connChoices = (
{'name': 'automatic',
'rate': {'min': 0, 'max': 5000, 'def': 0},
'conn': {'min': 0, 'max': 100, 'def': 0},
'automatic': 1},
{'name': 'unlimited',
'rate': {'min': 0, 'max': 5000, 'def': 0, 'div': 50},
'conn': {'min': 4, 'max': 100, 'de... | [
1,
529,
9507,
29958,
21591,
29911,
1398,
912,
29914,
1168,
29876,
29620,
29889,
2272,
13,
13082,
15954,
1575,
353,
313,
13,
1678,
11117,
978,
2396,
525,
17405,
2454,
742,
13,
268,
525,
10492,
2396,
11117,
1195,
2396,
29871,
29900,
29892,
... |
opwen_email_server/constants/sync.py | kulado/mailserver | 15 | 148628 | from typing_extensions import Final # noqa: F401
EMAILS_FILE = 'emails.jsonl' # type: Final
USERS_FILE = 'zzusers.jsonl' # type: Final
| [
1,
515,
19229,
29918,
24299,
1053,
9550,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29896,
13,
13,
26862,
6227,
29903,
29918,
7724,
353,
525,
331,
2234,
29889,
3126,
29880,
29915,
29871,
396,
1134,
29901,
9550,
13,
11889,
29903,
29... |
api/routes/upload/input.py | atsuchiy11/api-fastapi-video | 0 | 139114 | from boto3.dynamodb.conditions import Key, Attr
from api.util import get_today_string
def query():
"""input get upload status from DynamoDB"""
return dict(
IndexName="GSI-1-SK",
KeyConditionExpression=Key("indexKey").eq("Status"),
# FilterExpression=Attr("SK").begins_with("2021-12-16"... | [
1,
515,
289,
3747,
29941,
29889,
29881,
2926,
10396,
29889,
1116,
2187,
1053,
7670,
29892,
2180,
509,
13,
3166,
7882,
29889,
4422,
1053,
679,
29918,
27765,
29918,
1807,
13,
13,
13,
1753,
2346,
7295,
13,
1678,
9995,
2080,
679,
6441,
4660... |
image-editor/data_editor/image/image_view.py | flegac/deep-experiments | 0 | 43012 | <reponame>flegac/deep-experiments
import tkinter as tk
import rx.operators as ops
from PIL import ImageTk, Image
from rx.subject import Subject
from data_editor.image.view_controller import ViewController
from data_toolbox.data.data_source import DataSource
from data_toolbox.image.buffer_factory import ImageFactory
... | [
1,
529,
276,
1112,
420,
29958,
29888,
1397,
562,
29914,
24535,
29899,
735,
546,
7862,
13,
5215,
18883,
1639,
408,
18883,
13,
13,
5215,
364,
29916,
29889,
3372,
4097,
408,
288,
567,
13,
3166,
349,
6227,
1053,
7084,
29911,
29895,
29892,
... |
tests/master/test_master.py | bk-mtg/piwheels | 0 | 12606 | <reponame>bk-mtg/piwheels
# The piwheels project
# Copyright (c) 2017 <NAME> <https://github.com/bennuttall>
# Copyright (c) 2017 <NAME> <<EMAIL>>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistribu... | [
1,
529,
276,
1112,
420,
29958,
29890,
29895,
29899,
4378,
29887,
29914,
1631,
29893,
354,
1379,
13,
29937,
450,
2930,
29893,
354,
1379,
2060,
13,
29937,
259,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29... |
main.py | i-m-pulse/export-google-drive-files | 0 | 74146 | <reponame>i-m-pulse/export-google-drive-files<filename>main.py
from gdrive import gdrive
from config import Config
#Instantiate an object
foo = gdrive(Config)
## Authenticating
# Get inital code to access token
code = foo.getCode()
#Access the access_token and refresh_token
foo.writeToken(code)
# Get f... | [
1,
529,
276,
1112,
420,
29958,
29875,
29899,
29885,
29899,
29886,
19994,
29914,
15843,
29899,
3608,
29899,
21594,
29899,
5325,
29966,
9507,
29958,
3396,
29889,
2272,
13,
3166,
330,
21594,
1053,
330,
21594,
30004,
13,
3166,
2295,
1053,
12782... |
backend/kesaseteli/applications/services.py | iivoraitahila/yjdh | 0 | 138733 | <reponame>iivoraitahila/yjdh<gh_stars>0
from applications.models import Application, SummerVoucher
def update_summer_vouchers_using_api_data(
summer_vouchers_data: list, instance: Application
) -> None:
existing_summer_voucher_ids = []
for summer_voucher_data in summer_vouchers_data:
summer_vouch... | [
1,
529,
276,
1112,
420,
29958,
29875,
440,
272,
1249,
801,
4233,
29914,
17472,
12744,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
8324,
29889,
9794,
1053,
8427,
29892,
13329,
29963,
3222,
261,
13,
13,
13,
1753,
2767,
29918,
... |
latex/parser.py | omnidan/python-latex | 7 | 103724 | <reponame>omnidan/python-latex
from __future__ import print_function
__author__ = '<NAME>'
__copyright__ = "Copyright 2013, <NAME>"
__credits__ = ["<NAME>"]
__license__ = "BSD"
__version__ = "0.1.0"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Prototype"
from .document import LatexDocument
from .line... | [
1,
529,
276,
1112,
420,
29958,
290,
29876,
29219,
29914,
4691,
29899,
25694,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
1649,
8921,
1649,
353,
12801,
5813,
16299,
13,
1649,
8552,
1266,
1649,
353,
376,
11882,
1266,
2... |
skills/alexa_handler/connector.py | oserikov/dream | 34 | 125434 | <gh_stars>10-100
#!/usr/bin/env python
import time
import asyncio
import logging
from typing import Callable, Dict
import sentry_sdk
from os import getenv
logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO)
logger = logging.getLogger(__name__)
sentry_sdk.init(getenv... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
931,
13,
5215,
408,
948,
3934,
13,
5215,
12183,
13,
3166,
19229,
1053,
8251,
519,
29892,
... |
experiment/exp/00_data_traversal/run.py | neonkitchen/disent | 0 | 79927 | <filename>experiment/exp/00_data_traversal/run.py<gh_stars>0
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# MIT License
#
# Copyright (c) 2021 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation f... | [
1,
529,
9507,
29958,
735,
15362,
29914,
4548,
29914,
29900,
29900,
29918,
1272,
29918,
3018,
874,
284,
29914,
3389,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29871,
3695,
29922,
30022,
29922,
30022,
29922,
30022,
... |
docs/podstawy/przyklady/ocenyfun.py | damiankarol7/python101 | 44 | 26441 | <filename>docs/podstawy/przyklady/ocenyfun.py
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Moduł ocenyfun zawiera funkcje wykorzystywane w pliku 05_oceny_03.py
"""
import math # zaimportuj moduł matematyczny
def drukuj(co, kom="Sekwencja zawiera: "):
print(kom)
for i in co:
print(i, end=... | [
1,
529,
9507,
29958,
2640,
29914,
15334,
14665,
29891,
29914,
558,
1537,
6321,
3714,
29914,
542,
15274,
7692,
29889,
2272,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616... |
old/unitesting.py | jverbraeken/dtw-test | 0 | 92946 | <filename>old/unitesting.py
#! /usr/bin/env python
import sys
sys.path.append("..")
sys.path.append(".")
import time
import dtw
from data.syntheticdata import *
ok = True
print "Please wait a few minutes..."
n=10
querydataset = [randomwalk(n) for i in range(100)]
trainingdataset = [randomwalk(n) for i in range(100... | [
1,
529,
9507,
29958,
1025,
29914,
5441,
342,
292,
29889,
2272,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
4397,
703,
636,
1159,
13,
9675,
29889,
2084,
29889,
4397,
17350,
... |
bili_kits/api/user.py | LonelySteve/Bili-Kits | 0 | 49295 | <gh_stars>0
from . import _BASE_WEB_INTERFACE,_BASE_API_BILIBILI_COM_X,_BASE_API_BILIBILI_COM,_BASE_API_BILIBILI_COM_X_V2
CARD="%s/card" % _BASE_WEB_INTERFACE
NAV="%s/nav" % _BASE_WEB_INTERFACE
RELATION_STAT="%s/relation/stat" % _BASE_API_BILIBILI_COM_X
FAV_FOLDER="%s/fav/folder" % _BASE_API_BILIBILI_COM_X_V2 | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
1053,
903,
25416,
29918,
8851,
29933,
29918,
23845,
29943,
11538,
29892,
29918,
25416,
29918,
8787,
29918,
12809,
5265,
12809,
5265,
29918,
19795,
29918,
29990,
29892,
29918,
25416... |
src/perceptron.py | clark3493/machine_learning | 0 | 1604953 | <reponame>clark3493/machine_learning
import numpy as np
class Perceptron(object):
def __init__(self,
eta=0.01,
n_iter=50,
random_state=1):
self.eta = eta
"""
Learning rate (between 0.0 and 1.0)
:type eta: float
"""
... | [
1,
529,
276,
1112,
420,
29958,
695,
935,
29941,
29946,
29929,
29941,
29914,
23523,
29918,
21891,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1990,
2431,
1547,
1617,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
... |
lndtap/common/middlewares.py | kgritesh/lightening-tap | 0 | 175908 | # -*- coding: utf-8 -*-
import logging
from lndtap.config import config
from lndtap.lnrpc.client import Client
async def context_middleware(request):
cert = await config.read_lnd_cert()
macaroon = await config.read_macaroon() if config.LND_MACROON_ENABLED else None
request["context"] = {
"config... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
12183,
13,
13,
3166,
301,
299,
29873,
481,
29889,
2917,
1053,
2295,
13,
3166,
301,
299,
29873,
481,
29889,
3083,
29878,
6739,
29889,
4645,
1053,
... |
tests/unit/roottree/data/create_sample_chain.py | shane-breeze/AlphaTwirl | 0 | 125987 | <filename>tests/unit/roottree/data/create_sample_chain.py
#!/usr/bin/env python
# <NAME> <<EMAIL>>
import array
import ROOT
##__________________________________________________________________||
def main():
file_name = 'sample_chain_01.root'
content_list = [
[10, 20, 30],
[24, 5]
]
cr... | [
1,
529,
9507,
29958,
21150,
29914,
5441,
29914,
307,
1501,
929,
29914,
1272,
29914,
3258,
29918,
11249,
29918,
14153,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
529,
5813,
29958,
3532,
26862,
6227,
6778,... |
googlecode-issues-exporter/generate_user_map.py | ballschin52/support-tools | 41 | 14533 | <filename>googlecode-issues-exporter/generate_user_map.py
# Copyright 2014 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/licen... | [
1,
529,
9507,
29958,
3608,
401,
29899,
12175,
29899,
735,
18505,
29914,
17158,
29918,
1792,
29918,
1958,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
5087,
9266,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
1... |
src/single_pendulum.py | dpopchev/Computation_python | 0 | 20917 | #!/usr/bin/env python3
# do not hesitate to debug
import pdb
# python computation modules and visualization
import numpy as np
import sympy as sy
import scipy as sp
import matplotlib.pyplot as plt
from sympy import Q as syQ
sy.init_printing(use_latex=True,forecolor="White")
def Lyapunov_stability_test_linear(ev):
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
437,
451,
19066,
10388,
304,
4744,
13,
5215,
282,
2585,
13,
13,
29937,
3017,
16287,
10585,
322,
7604,
2133,
13,
5215,
12655,
408,
7442,
13,
5215,
5016,
2272,
408,
9878,
... |
lecture09/btree/fingersearchtree.py | vaibhavminde/Deep-Learning-MITOCW | 12 | 174199 | """
Augmented B-Tree: Insertion
---------------------------
This folder contains an implementation of an augmented B-tree.
For this implementation, the tree only stores data in its leaf
nodes. Each node also has level-set pointers defined here which
access the left and right siblings of each node (or None if they do no... | [
1,
9995,
13,
29909,
688,
358,
287,
350,
29899,
9643,
29901,
24505,
291,
13,
2683,
1378,
5634,
13,
4013,
4138,
3743,
385,
5314,
310,
385,
18765,
287,
350,
29899,
8336,
29889,
13,
2831,
445,
5314,
29892,
278,
5447,
871,
14422,
848,
297,... |
babysploit/wpseku/lib/printer.py | kevinsegal/BabySploit | 0 | 47317 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# WPSeku - Wordpress Security Scanner
# by <NAME> (m4ll0k)
from lib.colors import *
def decode(string):
return string.encode('utf-8')
def plus(string):
print("{}[ + ]{} {}{}{}".format(
GREEN%1,RESET,GREEN%0,string,RESET))
def test(string):
print("{}[ * ]{} {}{... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
399,
7024,
1416,
29884,
448,
10803,
2139,
14223,
23412,
29871,
13,
29937,
491,
... |
tellurium/optimization/__init__.py | stanleygu/tellurium | 0 | 170718 | <filename>tellurium/optimization/__init__.py
from DiffEvolution import DiffEvolution
| [
1,
529,
9507,
29958,
29873,
514,
332,
1974,
29914,
20640,
2133,
29914,
1649,
2344,
26914,
2272,
13,
3166,
360,
2593,
29923,
4068,
1053,
360,
2593,
29923,
4068,
13,
2
] |
LeetCode/Python3/BinaryTree/331. Verify Preorder Serialization of a Binary Tree.py | WatsonWangZh/CodingPractice | 11 | 158407 | <gh_stars>10-100
# One way to serialize a binary tree is to use pre-order traversal.
# When we encounter a non-null node, we record the node's value. If it is a null node,
# we record using a sentinel value such as #.
# _9_
# / \
# 3 2
# / \ / \
# 4 1 # 6
# / \ / \ / \
# # # # # # #
# F... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
3118,
982,
304,
28755,
263,
7581,
5447,
338,
304,
671,
758,
29899,
2098,
13310,
284,
29889,
29871,
13,
29937,
1932,
591,
11735,
263,
1661,
29899,... |
src/typeDefs/lineFlowSumm.py | nagasudhirpulla/wrldc_scada_mumbai_dashboard | 0 | 14051 | <filename>src/typeDefs/lineFlowSumm.py
from typing import TypedDict
class ILineFlowSumm(TypedDict):
inst: dict
maxFlow: dict
maxTime: dict
| [
1,
529,
9507,
29958,
4351,
29914,
1853,
3206,
29879,
29914,
1220,
17907,
11139,
29885,
29889,
2272,
13,
3166,
19229,
1053,
14213,
287,
21533,
13,
13,
13,
1990,
306,
3542,
17907,
11139,
29885,
29898,
24933,
287,
21533,
1125,
13,
1678,
832,... |
blipy/Postmasters/__AI.py | liviaalmeida/blipy | 0 | 1611827 | from blipy.Http import Postmaster
INTENTS = '/intentions'
class AIPostmaster(Postmaster):
def __init__(self, authorization):
super().__init__(authorization, 'ai')
def getIntent(self, intentId):
return super().Get(f'{INTENTS}/{intentId}?deep=true')
def getIntents(self):
return super().GetAll(f'{INTENTS}')
... | [
1,
515,
289,
492,
2272,
29889,
5506,
1053,
4918,
6207,
13,
13,
10192,
3919,
29903,
353,
8207,
14029,
1080,
29915,
13,
13,
1990,
319,
5690,
520,
6207,
29898,
6747,
6207,
1125,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
28733,
1125,
... |
tests/sms/integration/test_reschedule_and_update_cases.py | infobip-community/infobip-api-python-sdk | 0 | 174403 | from pytest_cases import parametrize
from tests.conftest import get_expected_put_headers
from tests.sms.conftest import (
GenerateRescheduleSMSMessagesFactory,
GenerateUpdateScheduledSMSMessagesStatusFactory,
get_reschedule_sms_messages_query_parameters,
get_scheduled_sms_messages_response,
get_sms... | [
1,
515,
11451,
1688,
29918,
11436,
1053,
25011,
374,
911,
13,
13,
3166,
6987,
29889,
535,
615,
342,
1053,
679,
29918,
9684,
29918,
649,
29918,
13662,
13,
3166,
6987,
29889,
29879,
1516,
29889,
535,
615,
342,
1053,
313,
13,
1678,
3251,
... |
app/controller/admin/journal_entry_controller.py | JunFuruya/Ratsnake | 0 | 72819 | # -*- coding: UTF-8 -*-
from app.controller.base_controller import BaseController
from app.validator.journal_entry_validator import JournalEntryValidator
from app.service.journal_entry_service import JournalEntryService
from app.entity.journal_entry_entity import JournalEntryEntity
'''
Journal Entry Controller Contro... | [
1,
396,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
623,
29889,
8299,
29889,
3188,
29918,
8299,
1053,
7399,
2956,
13,
3166,
623,
29889,
3084,
1061,
29889,
29926,
4659,
29918,
8269,
29918,
3084,
1... |
polymorphic/polymorphic_model.py | fusionbox/django_polymorphic | 0 | 77114 | # -*- coding: utf-8 -*-
"""
Seamless Polymorphic Inheritance for Django Models
==================================================
Please see README.rst and DOCS.rst for further information.
Or on the Web:
http://chrisglass.github.com/django_polymorphic/
http://github.com/chrisglass/django_polymorphic
Copyright:
This... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
2008,
314,
2222,
2043,
962,
5676,
293,
512,
27069,
749,
363,
15337,
3382,
1379,
13,
9166,
9166,
9166,
1360,
13,
13,
12148,
1074,
5195... |
sbpl_perception/src/scripts/tools/fat_dataset/lib/pair_matching/data_pair.py | Tacha-S/perception | 17 | 52628 | <reponame>Tacha-S/perception<gh_stars>10-100
# --------------------------------------------------------
# Deep Iterative Matching Network
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Written by <NAME>, <NAME>
# --------------------------------------------------------
from __future__ import print_... | [
1,
529,
276,
1112,
420,
29958,
29911,
496,
29874,
29899,
29903,
29914,
546,
1441,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
448,
2683,
2683,
2683,
26589,
13,
29937,
21784,
20504,
1230,
14514... |
Codewars/8kyu/return-negative/Python/test.py | RevansChen/online-judge | 7 | 138749 | # Python - 3.6.0
Test.assert_equals(make_negative(42), -42)
| [
1,
396,
5132,
448,
29871,
29941,
29889,
29953,
29889,
29900,
13,
13,
3057,
29889,
9294,
29918,
10954,
29898,
5675,
29918,
22198,
29898,
29946,
29906,
511,
448,
29946,
29906,
29897,
13,
2
] |
src/natural/preprocess.py | snemvalts/line-chart-captioning | 0 | 92317 | <gh_stars>0
from os import listdir
from os.path import isfile, join
import csv
import pathlib
import re
from shutil import copyfile
broken_images = ["50", "71", "85", "95", "115", "159",
"237", "298", "345", "354", "455", "475", "510", "517",
"554", "609", "700", "748", "750", "815", "845", "868",
"875", "911", "928"... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
2897,
1053,
1051,
3972,
13,
3166,
2897,
29889,
2084,
1053,
338,
1445,
29892,
5988,
13,
5215,
11799,
13,
5215,
2224,
1982,
13,
5215,
337,
13,
3166,
528,
4422,
1053,
3509,
1445,
1... |
Algorithm.Python/stubs/QuantConnect/Indicators/__CandlestickPatterns_1.py | gaoxiaojun/Lean | 2 | 41933 | from .__CandlestickPatterns_2 import *
import typing
import QuantConnect.Indicators.CandlestickPatterns
import datetime
class DojiStar(QuantConnect.Indicators.CandlestickPatterns.CandlestickPattern, System.IComparable, QuantConnect.Indicators.IIndicator[IBaseDataBar], QuantConnect.Indicators.IIndicator, System.IComp... | [
1,
515,
869,
1649,
29907,
392,
29880,
342,
860,
17144,
29879,
29918,
29906,
1053,
334,
13,
5215,
19229,
13,
5215,
22746,
17918,
29889,
2568,
293,
4097,
29889,
29907,
392,
29880,
342,
860,
17144,
29879,
13,
5215,
12865,
13,
13,
13,
13,
... |
dependency/libgit/pygit2-0.21.4/pygit2/blame.py | RangHo/pini-engine | 0 | 140483 | # -*- coding: utf-8 -*-
#
# Copyright 2010-2014 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
# as published by the Free Software Foundation.
#
# In addition to the permissions in the GNU General Public Li... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29900,
29899,
29906,
29900,
29896,
29946,
450,
19484,
277,
29906,
17737,
29560,
13,
29937,
13,
2... |
examples/context_eddystone_beacon.py | ddunmire/python-bleson | 103 | 116460 | #!/usr/bin/env python3
import sys
from time import sleep
from bleson import get_provider, EddystoneBeacon
# Get the wait time from the first script argument or default it to 10 seconds
WAIT_TIME = int(sys.argv[1]) if len(sys.argv)>1 else 10
with EddystoneBeacon(get_provider().get_adapter(), 'https://www.bluetooth.co... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
10876,
13,
3166,
931,
1053,
8709,
13,
3166,
289,
793,
265,
1053,
679,
29918,
18121,
29892,
20861,
858,
650,
3629,
23074,
13,
13,
29937,
3617,
278,
4480,
931,
515,
27... |
pytorchrl/agent/env/env_wrappers.py | PyTorchRL/pytorchrl | 20 | 53119 | import gym
from gym.spaces.box import Box
class TransposeImagesIfRequired(gym.ObservationWrapper):
"""
When environment observations are images, this wrapper transposes
the axis. It is useful when the images have shape (W,H,C), as they can be
transposed "on the fly" to (C,W,H) for PyTorch convolutions... | [
1,
1053,
330,
962,
13,
3166,
330,
962,
29889,
22854,
29889,
1884,
1053,
11773,
13,
13,
13,
1990,
4103,
4220,
20163,
3644,
19347,
29898,
29887,
962,
29889,
6039,
2140,
362,
15646,
1125,
13,
1678,
9995,
13,
1678,
1932,
5177,
13917,
526,
... |
Ex25.py | CarlosDouradoPGR/PythonBR-EstruturasDecs | 0 | 21429 | print('Interrogando um suspeito: ')
pg1 = str(input("Telefonou para a vítma?(S/N)\n").upper().strip())
pg2 = str(input('Esteve no local do crime?(S/N)\n').upper().strip())
pg3 = str(input('Mora perto da vítma?(S/N)\n').upper().strip())
pg4 = str(input('Devia para a vítma?(S/N)\n').upper().strip())
pg5 = str(input('Já t... | [
1,
1596,
877,
4074,
9102,
1743,
1922,
2858,
412,
2049,
29901,
25710,
13,
4061,
29896,
353,
851,
29898,
2080,
703,
29911,
6146,
18753,
283,
1702,
263,
325,
2468,
655,
26889,
29903,
29914,
29940,
2144,
29876,
2564,
21064,
2141,
17010,
3101,... |
examples/python/00-list-devices.py | vishal-prgmr/tiscamera | 0 | 13564 | #!/usr/bin/env python3
# Copyright 2017 The Imaging Source Europe GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
450,
1954,
6751,
7562,
4092,
18156,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
2990... |
edg/SchematicStubGenerator.py | tengisd/PolymorphicBlocks | 0 | 1601803 | <gh_stars>0
from typing import List, Tuple, Dict, Set
from edg_core import TransformUtil
from electronics_model import Netlist
import zlib # for a deterministic hash
import os
def _schematic_instantiation(name: str, type_name: str) -> str:
return f"""
$Sheet
S 0 0 0 0
U {name}
F0 "{name}" 0
F1 "{type_name}.sch" 0... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
2391,
29892,
12603,
552,
29892,
360,
919,
29892,
3789,
13,
3166,
1226,
29887,
29918,
3221,
1053,
4103,
689,
7270,
13,
3166,
11966,
1199,
29918,
4299,
1053,
12670,
1761,... |
setup.py | practicalci/nuitka-setuptools | 0 | 116487 | import os
import sys
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
install_requires = ['nuitka>=0.6<0.7', ]
PY2 = sys.version_info[0] == 2
if PY2:
install_requires.append('pathlib2')
setup(
name='nuitka_setuptoo... | [
1,
1053,
2897,
13,
5215,
10876,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
2541,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
525,
16310,
2303,
29889,
29878,
303,
8785,
... |
holoviews/tests/plotting/bokeh/test_geomplot.py | TheoMathurin/holoviews | 864 | 66576 | from unittest import SkipTest
from holoviews.core import NdOverlay
from holoviews.core.util import pd
from holoviews.element import Segments
from .test_plot import TestBokehPlot, bokeh_renderer
try:
from bokeh.models import FactorRange
except:
pass
class TestSegmentPlot(TestBokehPlot):
def test_segmen... | [
1,
515,
443,
27958,
1053,
4971,
666,
3057,
13,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
1053,
405,
29881,
3563,
8387,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
4422,
1053,
10518,
13,
3166,
8753,
586,
646,
29879,
29889,
... |
Ch_0_RandomWalker.py | LeeDaeil/NaturalCode | 0 | 98905 | """
Title : Random Walker 구현
"""
# import Part ----------------------------------------------------------------------------------------------------------
import numpy as np
from random import randint
import sys
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
# -----------------------... | [
1,
9995,
13,
7030,
584,
16968,
19512,
29871,
31231,
31680,
13,
13,
15945,
29908,
13,
29937,
1053,
3455,
448,
2683,
2683,
2683,
2683,
2683,
2683,
1378,
29899,
13,
5215,
12655,
408,
7442,
13,
3166,
4036,
1053,
20088,
524,
13,
5215,
10876,... |
script.py | LionKettyUD/video-subtitle-merger | 0 | 149358 | from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
class Script(object):
START_TEXT = """
Hey {}
I am Telegram Most Powerful Subtitle Muxer Bot
I can Mux Any Srt or Txt File in File or Video
Use Help Command to Know How to Use me
Made With 💕 By @Tellybots_4u
"""
HELP_TEXT = """
Reco... | [
1,
515,
11451,
307,
1393,
29889,
8768,
1053,
512,
1220,
2558,
3377,
9802,
786,
29892,
512,
1220,
2558,
3377,
3125,
13,
13,
1990,
14415,
29898,
3318,
1125,
13,
13,
13,
13,
1678,
6850,
8322,
29918,
16975,
353,
9995,
13,
29950,
1032,
657... |
sts/train.py | LostCow/KLUE | 18 | 9237 | <filename>sts/train.py
import argparse
import numpy as np
import os
import torch
from transformers import AutoTokenizer, AutoConfig, Trainer, TrainingArguments
from model import RobertaForStsRegression
from dataset import KlueStsWithSentenceMaskDataset
from utils import read_json, seed_everything
from metric import c... | [
1,
529,
9507,
29958,
303,
29879,
29914,
14968,
29889,
2272,
13,
5215,
1852,
5510,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
2897,
13,
5215,
4842,
305,
13,
3166,
4327,
414,
1053,
11133,
6066,
3950,
29892,
11133,
3991,
29892,
3201,
4983,
... |
markupwiki/views.py | jamesturk/django-markupwiki | 1 | 141036 | from difflib import HtmlDiff
from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.http import HttpResponseForbidden
from django.conf import settings
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required, user_passes_test
from ... | [
1,
515,
2923,
1982,
1053,
24726,
26023,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
679,
29918,
3318,
29918,
272,
29918,
29946,
29900,
29946,
29892,
4050,
29918,
517,
29918,
5327,
29892,
6684,
13,
3166,
9557,
29889,
1124,
1053,
9056,
... |
pykasso/abrechnung.py | pekh/pykasso | 0 | 67297 | <gh_stars>0
from collections import defaultdict
from dataclasses import dataclass
from datetime import date, datetime
from decimal import Decimal
from typing import Dict, List
@dataclass(eq=True, frozen=True)
class Mitglied:
name: str
vorname: str
anrede: str = 'Hallo'
strasse: str = ''
plz: str ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
13,
3166,
16250,
1053,
2322,
8977,
13,
3166,
848,
13203,
1053,
848,
1990,
13,
3166,
12865,
1053,
2635,
29892,
12865,
13,
3166,
13677,
1053,
3826,
3039,
13,
3166,
19229,
1053,
360,
919,
... |
marginal_finder/__init__.py | pjamesjoyce/marginal-finder | 0 | 191712 | <gh_stars>0
from .market_finder import * | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
28549,
29918,
2886,
261,
1053,
334,
2
] |
drawIns.py | Tesla2fox/rescuePathPlanning | 0 | 188701 | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 21:43:14 2018
@author: robot
"""
import plotly.plotly as py
import plotly.graph_objs as go
import plotly
import random
import numpy as np
import copy as cp
import copy
import readCfg.read_cfg as rd
from IPython.display import HTML,display
import colorlover as cl
impo... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
2598,
8378,
29871,
29896,
29896,
29871,
29906,
29896,
29901,
29946,
29941,
29901,
29896,
29946,
29871,
29906,
29900,
29896,
299... |
docs/getFields.py | bhavin-vadgama/bibtex | 4 | 1617849 | <reponame>bhavin-vadgama/bibtex
"""
{
"created_on": "16 Sep 2018, Sun",
"scrap_url": "http://bib-it.sourceforge.net/help/fieldsAndEntryTypes.php#article"
}
"""
import json
import requests
from bs4 import BeautifulSoup
def get_fields(s):
fields = s.strip().strip('.') # "Required fields: author, title, note"
fields... | [
1,
529,
276,
1112,
420,
29958,
29890,
8708,
262,
29899,
29894,
328,
29887,
3304,
29914,
18508,
4776,
13,
15945,
29908,
13,
29912,
13,
12,
29908,
11600,
29918,
265,
1115,
376,
29896,
29953,
29639,
29871,
29906,
29900,
29896,
29947,
29892,
... |
lorasim/loraDirP3.py | LoRa-mesh-TEAM-SODAQ/LoRaMeshSIM | 0 | 137923 | <reponame>LoRa-mesh-TEAM-SODAQ/LoRaMeshSIM<filename>lorasim/loraDirP3.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
LoRaSim 0.2.1: simulate collisions in LoRa
Copyright © 2016 <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
This work is licensed under the Creative Commons Attribution 4.0
International License... | [
1,
529,
276,
1112,
420,
29958,
3410,
29934,
29874,
29899,
4467,
29882,
29899,
4330,
5194,
29899,
6156,
7698,
29984,
29914,
3410,
29934,
29874,
29924,
12094,
5425,
29924,
29966,
9507,
29958,
5095,
294,
326,
29914,
29880,
2207,
9170,
29925,
2... |
cc_backend_lib/models/prediction.py | prio-data/cc_backend_lib | 0 | 1610586 |
import datetime
from typing import List,Dict,Union,Any, Optional
from pydantic import BaseModel
from geojson_pydantic import features
from . import scales
class PredictionProperties(BaseModel):
intensity: int
confidence: int
author: int
country: int
date: datetime.date
casualties: scales.Casua... | [
1,
29871,
13,
5215,
12865,
13,
3166,
19229,
1053,
2391,
29892,
21533,
29892,
19986,
29892,
10773,
29892,
28379,
13,
3166,
282,
2941,
7716,
1053,
7399,
3195,
13,
3166,
1737,
29877,
3126,
29918,
2272,
29881,
7716,
1053,
5680,
13,
3166,
869,... |
setup.py | ebinzacharias/ads_COVID-19 | 0 | 81180 | <filename>setup.py
from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='An applied Data Science project on anaylzing the COVID-19 data.',
author='<NAME>',
license='MIT',
)
| [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
4351,
742,
13,
1678,
9741,
29922,
2886,
29918,
8318,
3285,
13,
1678,
1873,
2433,
2990... |
corpora_toolbox/utils/io.py | laurahzdz/corpora_toolbox | 0 | 21792 | import codecs
import os
# Function to save a string into a file
def save_string_in_file(string_text, file_name):
with codecs.open(file_name, "w", "utf-8") as f:
f.write(string_text)
f.close()
# Function to read all files in a dir with a specific extension
def read_files_in_dir_ext(dir_route, exten... | [
1,
1053,
775,
2395,
13,
5215,
2897,
13,
13,
29937,
6680,
304,
4078,
263,
1347,
964,
263,
934,
13,
1753,
4078,
29918,
1807,
29918,
262,
29918,
1445,
29898,
1807,
29918,
726,
29892,
934,
29918,
978,
1125,
13,
1678,
411,
775,
2395,
29889... |
minidump/streams/CommentStreamA.py | lucasg/minidump | 1 | 144016 | <reponame>lucasg/minidump
#!/usr/bin/env python3
#
# Author:
# <NAME> (@skelsec)
#
class CommentStreamA:
def __init__(self):
self.data = None
@staticmethod
def parse(dir, buff):
csa = CommentStreamA()
buff.seek(dir.Location.Rva)
csa.data = buff.read(dir.Location.DataSize).decode()
return csa
def __st... | [
1,
529,
276,
1112,
420,
29958,
29880,
1682,
294,
29887,
29914,
1195,
333,
3427,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
13,
29937,
13361,
29901,
13,
29937,
29871,
529,
5813,
29958,
20164,
808,
2870,
29883... |
Section_7/word_count_repo/src/word_count.py | PacktPublishing/Software-Engineering-with-Python-3.x | 1 | 37378 | from project_utils import dict_to_file, get_word_count
if __name__ == "__main__":
inp_filename = 'sample.txt'
out_filename = 'count.csv'
print("Reading file ", inp_filename)
word_dict = get_word_count(inp_filename)
print("Output from get_word_count is")
print(word_dict)
print("W... | [
1,
515,
2060,
29918,
13239,
1053,
9657,
29918,
517,
29918,
1445,
29892,
679,
29918,
1742,
29918,
2798,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
12,
13,
1678,
297,
29886,
29918,
9507,
353,
525,
11249,
29... |
PythonTestCase/run.py | TarsCloud/TarsDemo | 7 | 185586 | #!/usr/bin/python3
# coding: utf-8
from Projects.PHP import PHPServant
from Projects.GoLang import GoLangServant
from Projects.NodeJs import NodeJsServant
from Projects.Java import JavaServant
from Projects.Cpp import CppServant
import threading as td
import time
import optparse
import sys
import importlib
importlib.... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
3166,
8010,
29879,
29889,
17130,
1053,
5048,
6889,
424,
13,
3166,
8010,
29879,
29889,
8120,
29931,
574,
1053,
2921,
29931,
574,
6889,
4... |
release/scripts/presets/camera/Samsung_Galaxy_S4.py | rbabari/blender | 365 | 50315 | <reponame>rbabari/blender
import bpy
bpy.context.camera.sensor_width = 4.8
bpy.context.camera.sensor_height = 3.6
bpy.context.camera.lens = 4.20
bpy.context.camera.sensor_fit = 'HORIZONTAL'
| [
1,
529,
276,
1112,
420,
29958,
6050,
370,
1306,
29914,
2204,
1581,
13,
5215,
289,
2272,
13,
29890,
2272,
29889,
4703,
29889,
26065,
29889,
29879,
6073,
29918,
2103,
353,
29871,
29946,
29889,
29947,
13,
29890,
2272,
29889,
4703,
29889,
260... |
rec/urls.py | danielpine/tankonline | 0 | 99311 | <filename>rec/urls.py
# -*-coding:utf-8 -*-
from . import testdb
from . import views
from django.urls import path
from django.conf.urls import url
urlpatterns = [
path('', views.index, name='index'),
url(r'^websocket/', views.websocket_test),
url(r'^tank/', views.tank),
url(r'^snake/', views.snake),
] | [
1,
529,
9507,
29958,
3757,
29914,
26045,
29889,
2272,
13,
29937,
448,
29930,
29899,
29883,
3689,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
3166,
869,
1053,
1243,
2585,
13,
3166,
869,
1053,
8386,
13,
3166,
9557,
29889,
26045,
1053,... |
webexteamssdk/api/messages.py | coreGreenberet/webexteamssdk | 0 | 129093 | <filename>webexteamssdk/api/messages.py<gh_stars>0
# -*- coding: utf-8 -*-
"""Webex Teams Messages API wrapper.
Copyright (c) 2016-2019 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... | [
1,
529,
9507,
29958,
2676,
735,
14318,
893,
8181,
29914,
2754,
29914,
19158,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
36... |
getPrices.py | divir94/News-Analytics | 0 | 1600518 | <filename>getPrices.py
'''
Created on Jun 2, 2014
@author: vidurjoshi
'''
from pandas.io import parsers
from datetime import datetime
def make_url(ticker_symbol,start_date, end_date):
print ticker_symbol
base_url = "http://ichart.finance.yahoo.com/table.csv?s="
a = start_date
b = end_date
dt_u... | [
1,
529,
9507,
29958,
657,
4040,
1575,
29889,
2272,
13,
12008,
13,
20399,
373,
8378,
29871,
29906,
29892,
29871,
29906,
29900,
29896,
29946,
13,
13,
29992,
8921,
29901,
7840,
332,
14736,
2918,
13,
12008,
13,
13,
13,
3166,
11701,
29889,
6... |
src/compas_ui/objects/networkobject.py | BlockResearchGroup/compas_ui | 0 | 25292 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from functools import reduce
from operator import mul
from compas.geometry import Point
from compas.geometry import Scale
from compas.geometry import Translation
from compas.geometry import Rotation
from compa... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
3166,
5455,
1053,
15065... |
teamcat_service/doraemon/business/testjob/codecommitlogservice.py | zhangyin2088/Teamcat | 6 | 1617958 | #coding=utf-8
#encoding=utf-8
'''
Created on 2014-12-17
@author: Devuser
'''
from dataaccess.testjob.dal_testjob import DAL_TestJob
from dataaccess.testjob.dal_testproject import DAL_TestProject
from dataaccess.testjob.dal_testsubmition import DAL_TestSubmition
from gatesidelib.svnhelper import SvnHelper
from gateside... | [
1,
396,
29883,
3689,
29922,
9420,
29899,
29947,
13,
29937,
22331,
29922,
9420,
29899,
29947,
13,
12008,
13,
20399,
373,
29871,
29906,
29900,
29896,
29946,
29899,
29896,
29906,
29899,
29896,
29955,
13,
13,
29992,
8921,
29901,
9481,
1792,
13,... |
dawn/prepare_dawn_bs.py | McCrearyD/imagenet18 | 716 | 144268 | <reponame>McCrearyD/imagenet18<filename>dawn/prepare_dawn_bs.py
#!/usr/bin/env python
#
# Prepares DAWN TSV file from TensorBoard events url
import sys, os, re
from dateutil import parser
events_url = 'https://s3.amazonaws.com/yaroslavvb/logs/release-sixteen.04.events'
import os
import glob
import numpy as np
import... | [
1,
529,
276,
1112,
420,
29958,
27297,
9832,
653,
29928,
29914,
326,
5370,
300,
29896,
29947,
29966,
9507,
29958,
25516,
29914,
19125,
29918,
25516,
29918,
5824,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,... |
ai/get_cannabis_data/get_data_ma_draft.py | cannlytics/cannlytics-ai | 2 | 167977 | """
Title | Project
Author: <NAME>
Contact: <<EMAIL>>
Created:
Updated:
License: MIT License <https://github.com/cannlytics/cannlytics-ai/blob/main/LICENSE>
"""
# Initialize a Socrata client.
# app_token = os.environ.get('APP_TOKEN', None)
# client = Socrata('opendata.mass-cannabis-control.com', app_token)
# # Ge... | [
1,
9995,
13,
7030,
891,
8010,
13,
13,
13720,
29901,
529,
5813,
29958,
13,
13443,
29901,
3532,
26862,
6227,
6778,
13,
20399,
29901,
29871,
13,
29248,
29901,
29871,
13,
29931,
293,
1947,
29901,
341,
1806,
19245,
529,
991,
597,
3292,
29889... |
tests/test_streamlit.py | raahoolkumeriya/whatsapp-chat-streamlit | 4 | 123486 | import time
from seleniumbase import BaseCase
import cv2
class ComponentsTest(BaseCase):
def test_basic(self):
# open the app and take a screenshot
self.open(
"https://share.streamlit.io/raahoolkumeriya/\
whatsapp-chat-streamlit/main/app.py")
time.sleep(10) #... | [
1,
1053,
931,
13,
3166,
18866,
3188,
1053,
7399,
8259,
13,
5215,
13850,
29906,
13,
13,
13,
1990,
422,
9340,
3057,
29898,
5160,
8259,
1125,
13,
1678,
822,
1243,
29918,
16121,
29898,
1311,
1125,
13,
13,
4706,
396,
1722,
278,
623,
322,
... |
surround/django/context_cache.py | sniegu/django-surround | 1 | 50505 | from functools import wraps
from contextlib import contextmanager
from threading import local
thread_local = local()
from surround.django.logging import setupModuleLogger
setupModuleLogger(globals())
class LocalCacheBackend(object):
def __init__(self):
self.backend = {}
def get(self, key):
r... | [
1,
515,
2090,
312,
8789,
1053,
11463,
567,
13,
3166,
3030,
1982,
1053,
3030,
12847,
13,
3166,
3244,
292,
1053,
1887,
13,
13,
7097,
29918,
2997,
353,
1887,
580,
13,
13,
3166,
8388,
618,
29889,
14095,
29889,
21027,
1053,
6230,
7355,
163... |
Source/Tools/BindTool/writer.py | ssinai1/rbfx | 441 | 28841 | <filename>Source/Tools/BindTool/writer.py<gh_stars>100-1000
class InterfaceWriter(object):
def __init__(self, output_path):
self._output_path_template = output_path + '/_{key}_{subsystem}.i'
self._fp = {
'pre': {},
'post': {},
}
def _write(self, key, subsystem, ... | [
1,
529,
9507,
29958,
4435,
29914,
24183,
29914,
15708,
12229,
29914,
13236,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
13,
1990,
25796,
10507,
29898,
3318,
1125,
13,
1678,
... |
formats/Empty_Tokens.py | jimbro1000/cas2bas | 2 | 199557 | from formats.Utility import invert_dictionary
KEYWORD = 0
FUNCTION = 1
MAXIMUM_KEYWORD = 0x80
MAXIMUM_FUNCTION = 0x80
MAXIMUM_TOKEN_LENGTH = 7
FUNCTION_OFFSET = 0xff00
EXPECTING_LINE_NUMBER = 1
EXPECTING_INITIAL_WHITE_SPACE = 2
EXPECTING_TOKEN = 3
EXPECTING_LITERAL_OR_WHITE_SPACE = 4
EXPECTING_STRING_LITERAL = 5
EXPEC... | [
1,
515,
21971,
29889,
7270,
537,
1053,
21292,
29918,
27126,
13,
13,
10818,
17013,
353,
29871,
29900,
13,
29943,
28700,
353,
29871,
29896,
13,
12648,
7833,
5005,
29918,
10818,
17013,
353,
29871,
29900,
29916,
29947,
29900,
13,
12648,
7833,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.