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 |
|---|---|---|---|---|---|
nlp/topic_modeling.py | innaiivanova/chatbot | 0 | 131286 | <gh_stars>0
# Codecademy's topic modeling
# <NAME>
import nltk, re
from sherlock_holmes import bohemia_ch1, bohemia_ch2, bohemia_ch3, boscombe_ch1, boscombe_ch2, boscombe_ch3
from preprocessing import preprocess_text
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.decompositio... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
5920,
9567,
29915,
29879,
11261,
1904,
292,
13,
29937,
529,
5813,
29958,
13,
13,
5215,
302,
1896,
29895,
29892,
337,
13,
3166,
528,
261,
908,
29918,
5391,
4467,
1053,
1045,
8008,... |
slash/utils/python.py | bheesham/slash | 70 | 1609339 | from collections import OrderedDict
from types import TracebackType
import functools
import warnings
import inspect
import sys
import ast
import pickle
import logbook
from sentinels import NOTHING
PYPY = hasattr(sys, 'pypy_version_info')
_logger = logbook.Logger(__name__)
def check_duplicate_functions(path):
c... | [
1,
515,
16250,
1053,
8170,
287,
21533,
13,
3166,
4072,
1053,
29243,
1542,
13,
5215,
2090,
312,
8789,
13,
5215,
18116,
13,
5215,
16096,
13,
5215,
10876,
13,
5215,
8717,
13,
5215,
5839,
280,
13,
5215,
1480,
2909,
13,
13,
3166,
2665,
2... |
mean_fits.py | kafkaphoenix/data-driven-astro | 0 | 140804 | <filename>mean_fits.py
from astropy.io import fits
import numpy as np
# Write your mean_fits function here:
def mean_fits(files):
all_data = []
for k, file in enumerate(files):
if k == 0:
all_data = fits.getdata(file)
else:
data = fits.getdata(file)
all_data = all_data + data
all_... | [
1,
529,
9507,
29958,
12676,
29918,
29888,
1169,
29889,
2272,
13,
3166,
8717,
14441,
29889,
601,
1053,
23994,
13,
5215,
12655,
408,
7442,
13,
29937,
14350,
596,
2099,
29918,
29888,
1169,
740,
1244,
29901,
13,
1753,
2099,
29918,
29888,
1169... |
src/models/rankae.py | RowitZou/RankAE | 23 | 117624 | <filename>src/models/rankae.py<gh_stars>10-100
import copy
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.init import xavier_uniform_
from torch.nn.utils.rnn import pad_sequence
from models.decoder import TransformerDecoder
from models.encoder import Bert, TransformerEn... | [
1,
529,
9507,
29958,
4351,
29914,
9794,
29914,
661,
1335,
29872,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
3509,
13,
5215,
4036,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889... |
src/decisions/fridgedecision.py | jussike/kuappi | 0 | 185937 | from abstract import AbstractDecision
from common import TEMP
class FridgeDecision(AbstractDecision):
soft_hi_limit = 4.8
soft_low_limit = 3.3
hard_hi_limit = 7
hard_low_limit = 0
def get_decision(self, data, output_state=None):
temp = data[TEMP]
if temp > self.hard_hi_limit:
... | [
1,
515,
9846,
1053,
25513,
6185,
2459,
13,
3166,
3619,
1053,
17067,
3580,
13,
13,
1990,
383,
8605,
6185,
2459,
29898,
9118,
6185,
2459,
1125,
13,
1678,
4964,
29918,
2918,
29918,
13400,
353,
29871,
29946,
29889,
29947,
13,
1678,
4964,
29... |
Prediction.py | khayam-hafezi/CRNN-keras-persian | 0 | 3506 | <reponame>khayam-hafezi/CRNN-keras-persian
import cv2
import itertools, os, time
import numpy as np
from Model import get_Model
from parameter import letters
import argparse
from keras import backend as K
K.set_learning_phase(0)
Region = {"A": "서울 ", "B": "경기 ", "C": "인천 ", "D": "강원 ", "E": "충남 ", "F": "대전 ",
... | [
1,
529,
276,
1112,
420,
29958,
15339,
388,
314,
29899,
2350,
1725,
2526,
29914,
11341,
10262,
29899,
3946,
294,
29899,
6774,
713,
13,
5215,
13850,
29906,
13,
5215,
4256,
8504,
29892,
2897,
29892,
931,
13,
5215,
12655,
408,
7442,
13,
316... |
02_oop/01_classes_and_objects/08_access_modifiers_public.py | doanthanhnhan/learningPY | 1 | 99253 | <reponame>doanthanhnhan/learningPY
# Public Attributes
class Employee:
def __init__(self, ID, salary):
# all properties are public
self.ID = ID
self.salary = salary
def displayID(self):
print("ID:", self.ID)
Steve = Employee(3789, 2500)
Steve.displayID()
print(Steve.salary) | [
1,
529,
276,
1112,
420,
29958,
1867,
9716,
273,
3123,
5403,
29914,
21891,
20055,
13,
29937,
5236,
6212,
5026,
13,
1990,
24654,
29901,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
3553,
29892,
4497,
653,
1125,
13,
1678,
396,
599,
4426... |
django-rgd-3d/rgd_3d/models/__init__.py | ResonantGeoData/ResonantGeoData | 40 | 170766 | from .point_cloud import PointCloud, PointCloudMeta, PointCloudSpatial # noqa
| [
1,
515,
869,
3149,
29918,
9274,
1053,
8984,
20442,
29892,
8984,
20442,
19346,
29892,
8984,
20442,
29903,
5031,
616,
29871,
396,
694,
25621,
13,
2
] |
tests/testguid.py | grodansparadis/pyvscpws1 | 1 | 101575 | import sys
from ctypes import *
sys.path.append('../')
from vscp import *
# GUID conversion
gg = vscp.guid()
print("After creation:", gg.getAsString())
gg.setFromString("00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF")
print("guid = ", gg.getAsString())
gg.reverse()
print("reverse guid = ", gg.getAsString())
print... | [
1,
1053,
10876,
13,
3166,
274,
8768,
1053,
334,
13,
13,
9675,
29889,
2084,
29889,
4397,
877,
6995,
1495,
13,
3166,
325,
1557,
29886,
1053,
334,
13,
13,
29937,
402,
11150,
11301,
13,
1505,
353,
325,
1557,
29886,
29889,
2543,
333,
580,
... |
straxen/mongo_storage.py | ahiguera-mx/straxen | 0 | 133896 | <reponame>ahiguera-mx/straxen
import os
import tempfile
from datetime import datetime
from warnings import warn
import pytz
from strax import exporter, to_str_tuple
import gridfs
from tqdm import tqdm
from shutil import move
import hashlib
from pymongo.collection import Collection as pymongo_collection
impor... | [
1,
529,
276,
1112,
420,
29958,
801,
5526,
1572,
29899,
16838,
29914,
4151,
29916,
264,
13,
5215,
2897,
30004,
13,
5215,
5694,
1445,
30004,
13,
3166,
12865,
1053,
12865,
30004,
13,
3166,
18116,
1053,
29383,
30004,
13,
5215,
282,
3637,
29... |
skyhook/skyhook/middlewares/retry.py | wfgydbu/skyhook | 2 | 59477 | <filename>skyhook/skyhook/middlewares/retry.py
from scrapy.downloadermiddlewares.retry import RetryMiddleware
from scrapy.utils.response import response_status_message
class FeedBackRetryMiddleware(RetryMiddleware):
def process_response(self, request, response, spider):
if request.meta.get('dont_retry', F... | [
1,
529,
9507,
29958,
7912,
20849,
29914,
7912,
20849,
29914,
17662,
4495,
267,
29914,
276,
2202,
29889,
2272,
13,
3166,
24559,
2272,
29889,
10382,
837,
2632,
4495,
267,
29889,
276,
2202,
1053,
4649,
719,
25411,
2519,
13,
3166,
24559,
2272... |
river/migrations/0012_auto_20191113_1550.py | xuziheng1002/django-river | 0 | 17471 | <filename>river/migrations/0012_auto_20191113_1550.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-13 21:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('river... | [
1,
529,
9507,
29958,
3511,
29914,
26983,
800,
29914,
29900,
29900,
29896,
29906,
29918,
6921,
29918,
29906,
29900,
29896,
29929,
29896,
29896,
29896,
29941,
29918,
29896,
29945,
29945,
29900,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
... |
attackMain.py | saurabhK99/substitution-cipher | 0 | 16593 | from tkinter import *
from attack import *
#calls letter frequency attack
def attack(on, cipherTxt):
plainTxt = str()
attack = LetterFrequencyAttack(cipherTxt, on)
for i in range(10):
plainTxt = plainTxt + attack.attack() + '\n\n'
answer.config(text = plainTxt)
#defining main wi... | [
1,
515,
18883,
1639,
1053,
334,
13,
3166,
5337,
1053,
334,
13,
13,
29937,
29883,
4293,
5497,
10868,
5337,
29871,
13,
1753,
5337,
29898,
265,
29892,
4583,
8096,
29911,
486,
1125,
13,
1678,
8656,
29911,
486,
353,
851,
580,
13,
1678,
533... |
src/waldur_auth_saml2/utils.py | geant-multicloud/MCMS-mastermind | 26 | 34735 | <filename>src/waldur_auth_saml2/utils.py<gh_stars>10-100
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from djangosaml2.conf import get_config
from djangosaml2.utils import available_idps
from saml2.attribute_converter import ac_factory
from saml2.mdstore import InMemoryMetaData... | [
1,
529,
9507,
29958,
4351,
29914,
18370,
332,
29918,
5150,
29918,
29879,
8807,
29906,
29914,
13239,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3... |
MusicTager/components/dialog/auto_meatadata_dialog.py | Mai-icy/MusicTagger | 3 | 1601322 | <reponame>Mai-icy/MusicTagger<filename>MusicTager/components/dialog/auto_meatadata_dialog.py
#!/usr/bin/python
# -*- coding:utf-8 -*-
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from ui.ui_source.AutoMetadataDialog import Ui_AutoMetadataDialog
from components.mask_widget import ... | [
1,
529,
276,
1112,
420,
29958,
29924,
1794,
29899,
4245,
29914,
21238,
8176,
914,
29966,
9507,
29958,
21238,
29911,
1875,
29914,
14036,
29914,
15901,
29914,
6921,
29918,
1004,
271,
7221,
29918,
15901,
29889,
2272,
13,
29937,
14708,
4855,
29... |
package.py | OSS-Pipeline/rez-boost | 0 | 53097 | <reponame>OSS-Pipeline/rez-boost<filename>package.py
name = "boost"
version = "1.61.0"
authors = [
"<NAME>",
"<NAME>"
]
description = \
"""
Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such
as linear algebra, pseudorandom number genera... | [
1,
529,
276,
1112,
420,
29958,
29949,
1799,
29899,
29925,
23828,
29914,
15749,
29899,
17079,
29966,
9507,
29958,
5113,
29889,
2272,
13,
978,
353,
376,
17079,
29908,
13,
13,
3259,
353,
376,
29896,
29889,
29953,
29896,
29889,
29900,
29908,
... |
orbit_predictor/predictors/base.py | Juanlu001/orbit-predictor | 0 | 9794 | <gh_stars>0
# MIT License
#
# Copyright (c) 2017 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
341,
1806,
19245,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
168... |
pydov/util/hooks.py | TimFranken/pydov | 0 | 94603 | <gh_stars>0
# -*- coding: utf-8 -*-
"""Module implementing a simple hooks system to allow late-binding actions to
PyDOV events."""
import sys
import time
class AbstractHook(object):
"""Abstract base class for custom hook implementations.
Provides all available methods with a default implementation to do
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
7355,
16049,
263,
2560,
12422,
29879,
1788,
304,
2758,
5683,
29899,
19672,
8820,
304,
13,
... |
isobuilder/apptest.py | knight-ryu12/StarFoxAdventures | 22 | 132038 | <gh_stars>10-100
import os
import os.path
import sys
import inspect
import tempfile
from iso.gciso import GCISO
class AppTest:
"""Tests for this app."""
# TODO proper Python unit test framework
def __init__(self):
self.isoPath = None
self.filesPath = None
self.tempDir = None
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
13,
5215,
2897,
29889,
2084,
13,
5215,
10876,
13,
5215,
16096,
13,
5215,
5694,
1445,
13,
3166,
338,
29877,
29889,
29887,
3476,
29877,
1053,
... |
mesh/scale_test.py | melonwan/sphereHand | 53 | 52642 | # to test the gradient back-propagation
from __future__ import absolute_import, division, print_function
import torch
import pickle
import torch.nn as nn
import torch.nn.functional as F
import matplotlib.pyplot as plt
import numpy as np
import cv2
import torch.utils.data as data
from mesh.multiview_utility import Mutua... | [
1,
396,
304,
1243,
278,
16030,
1250,
29899,
7728,
351,
362,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
5215,
4842,
305,
13,
5215,
5839,
280,
13,
5215,
4842,
305,
29889,
15755,
... |
4- Convolutional Neural Networks/Week 1/cnn_utils.py | ansuini/deeplearning.ai-pytorch | 0 | 159621 | import h5py
import numpy as np
import torch
import cv2
from torch.utils.data import DataLoader, TensorDataset
def get_data(batch_size=64):
train_dataset = h5py.File('datasets/train_signs.h5', "r")
x_train = np.array(train_dataset["train_set_x"][:]) # your train set features
x_train = np.transpose(x_train,... | [
1,
1053,
298,
29945,
2272,
13,
5215,
12655,
408,
7442,
13,
5215,
4842,
305,
13,
5215,
13850,
29906,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
3630,
10036,
29892,
323,
6073,
16390,
24541,
13,
13,
13,
1753,
679,
29918,
1272,
... |
problems/p009.py | davisschenk/project-euler-python | 0 | 7486 | <gh_stars>0
from math import ceil, sqrt
from problem import Problem
from utils.math import gcd
class PythagoreanTriplet(Problem, name="Special Pythagorean triplet", expected=31875000):
@Problem.solution()
def brute_force(self, ts=1000):
for a in range(3, round((ts - 3) / 2)):
for b in ran... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
5844,
1053,
2257,
309,
29892,
18074,
2273,
13,
13,
3166,
1108,
1053,
11583,
13,
3166,
3667,
29879,
29889,
755,
1053,
330,
2252,
13,
13,
13,
1990,
349,
1541,
351,
487,
273,
29565... |
hw/a2fomu_build.py | elecbrick/a2fomu | 1 | 186027 | <reponame>elecbrick/a2fomu<gh_stars>1-10
#!/usr/bin/env python3
#
# a2fomu_build.py - Part of a2fomu - Copyright (c) 2020-2021 <NAME>
#
# This file contains a significant contribution from foboot-bitstream.py
# which wass made available under the Apache License, Version 2.0:
# http://www.apache.org/licenses/L... | [
1,
529,
276,
1112,
420,
29958,
6146,
29883,
1182,
860,
29914,
29874,
29906,
29888,
290,
29884,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
13,
... |
tests/test_pairwisevariationmphf.py | iqbal-lab-org/pangenome_variations | 0 | 163397 | from unittest import TestCase
from src.PairwiseVariationMPHF import PairwiseVariationMPHF
from src.PairwiseVariation import PairwiseVariation
class TestPairwiseVariationMPHF(TestCase):
def test___get_pairwise_variation_id_to_alleles_id(self):
mphf = PairwiseVariationMPHF()
pairwise_variation_1 = P... | [
1,
515,
443,
27958,
1053,
4321,
8259,
13,
13,
3166,
4765,
29889,
20547,
3538,
10444,
362,
3580,
29950,
29943,
1053,
349,
1466,
3538,
10444,
362,
3580,
29950,
29943,
13,
3166,
4765,
29889,
20547,
3538,
10444,
362,
1053,
349,
1466,
3538,
... |
users-backend/users/admin_api/schema.py | pythonitalia/pycon | 56 | 128189 | import strawberry
from pythonit_toolkit.api.extensions import SentryExtension
from users.admin_api.mutation import Mutation
from users.admin_api.query import Query
schema = strawberry.federation.Schema(
query=Query, mutation=Mutation, extensions=[SentryExtension]
)
| [
1,
1053,
380,
1610,
16344,
13,
3166,
3017,
277,
29918,
10154,
7354,
29889,
2754,
29889,
24299,
1053,
317,
8269,
17657,
13,
13,
3166,
4160,
29889,
6406,
29918,
2754,
29889,
6149,
362,
1053,
20749,
362,
13,
3166,
4160,
29889,
6406,
29918,
... |
app/main/routes.py | EeOneDown/spbu4u | 30 | 193947 | <filename>app/main/routes.py
from flask import render_template, current_app
from app.main import bp
from app.models import User
@bp.route("/")
@bp.route("/index")
def index():
from requests import get
url = "https://api.rasp.yandex.net/v3.0/copyright/"
params = {"apikey": current_app.config['YANDEX_API_... | [
1,
529,
9507,
29958,
932,
29914,
3396,
29914,
27894,
29889,
2272,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
1857,
29918,
932,
13,
13,
3166,
623,
29889,
3396,
1053,
289,
29886,
13,
3166,
623,
29889,
9794,
1053,
4911,
13,
13,
13,
... |
openmaps_auth/urls.py | radiant-maxar/openmaps-auth | 0 | 63882 | from django.conf import settings
from django.urls import include, path
from . import views
urlpatterns = [
path(f"{settings.BASE_PATH}callback", views.callback, name="callback"),
path(f"{settings.BASE_PATH}index", views.index, name="index"),
path(f"{settings.BASE_PATH}v0/auth/login", views.login, name="op... | [
1,
515,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
26045,
1053,
3160,
29892,
2224,
13,
13,
3166,
869,
1053,
8386,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
2224,
29898,
29888,
29908,
29912,
11027,
29889,
25416,
29918,
1... |
graphwalker/test/haltcond_test.py | spotify/python-graphwalker | 66 | 1612319 | <filename>graphwalker/test/haltcond_test.py
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Spotify AB
import unittest
from graphwalker import halting
class TestSeconds(unittest.TestCase):
def test_ctor_smoke(self):
self.assertFalse(halting.Seconds().start(None))
self.assertFalse(halting.Seconds(20)... | [
1,
529,
9507,
29958,
4262,
20919,
261,
29914,
1688,
29914,
10647,
1116,
29918,
1688,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
2... |
tomef/tools/export_results.py | unlikelymaths/tomef | 0 | 88226 | <reponame>unlikelymaths/tomef
#!/usr/bin/env python
# coding: utf-8
# # Export Results
# <div style="position: absolute; right:0;top:0"><a href="./tools.ipynb" style="text-decoration: none"> <font size="5">←</font></a>
# <a href="../evaluation.ipynb" style="text-decoration: none"> <font size="5">↑</font></a></div>
#
... | [
1,
529,
276,
1112,
420,
29958,
348,
21280,
755,
29879,
29914,
29873,
608,
29888,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
396,
1222,
637,
17212,
13,
29937,
529,
... |
prosumerPolicy/inputSetter.py | 0-k/prosumerpolicy | 6 | 144953 | <filename>prosumerPolicy/inputSetter.py
from __future__ import print_function
import logging
import numpy as np
from paths import *
from input import *
from pv import PV
from battery import Battery
totalPrices = import_Prices(path_Prices)
totalPvGen = import_PV(path_PvGen)
totalLoad = import_Load(path_Load)
class _... | [
1,
529,
9507,
29958,
771,
2083,
261,
15644,
29914,
2080,
22304,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
12183,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
10898,
1053,
334,
13,
3166,
1881,
1053,
... |
parte2/P3/testRLsol.py | manuelsousa7/ia-project | 0 | 144171 | <filename>parte2/P3/testRLsol.py
import numpy as np
from sklearn.externals import joblib
from RL import *
import RLsol
for test in [('fmdp1.pkl','traj1.pkl'), ('fmdp2.pkl','traj2.pkl')]:
print("Testing " + test[0])
# funcoes auxiliarres
fmdp = joblib.load(test[0])
# ficheiro com a trajectóri... | [
1,
529,
9507,
29958,
862,
371,
29906,
29914,
29925,
29941,
29914,
1688,
2241,
2929,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
3166,
2071,
19668,
29889,
735,
725,
1338,
1053,
4982,
1982,
13,
3166,
390,
29931,
1053,
334,
13,
5215,
390,... |
dataset/__init__.py | STomoya/animeface | 61 | 76330 |
from dataset.animeface import (
AnimeFace,
AnimeFaceCelebA,
AnimeFaceSR,
AnimeFaceXDoG,
AnimeFaceLabel,
AnimeFaceOneHot
)
from dataset.portrait import (
DanbooruPortrait,
DanbooruPortraitCelebA,
DanbooruPortraitSR,
DanbooruPortraitXDoG
)
from dataset.danbooru import (
Danb... | [
1,
29871,
13,
3166,
8783,
29889,
273,
603,
2161,
1053,
313,
13,
1678,
530,
603,
23360,
29892,
13,
1678,
530,
603,
23360,
29907,
6146,
29890,
29909,
29892,
13,
1678,
530,
603,
23360,
14098,
29892,
13,
1678,
530,
603,
23360,
29990,
6132,
... |
fasttask/models.py | huanjoyous/FasterRunner20190716 | 1 | 60960 | from django.db import models
# Create your models here.
from fastrunner.models import Project
from fastuser.models import BaseTable
class Schedule(BaseTable):
"""
定时任务信息表
"""
send_strategy = (
(1, "始终发送"),
(2, "仅失败发送"),
(3, "从不发送")
)
class Meta:
verbose_name ... | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
29937,
6204,
596,
4733,
1244,
29889,
13,
3166,
285,
7614,
348,
1089,
29889,
9794,
1053,
8010,
13,
3166,
5172,
1792,
29889,
9794,
1053,
7399,
3562,
13,
13,
13,
1990,
1102,
11272,
29898,
51... |
nailgun/nailgun/test/unit/test_utils.py | Zipfer/fuel-web | 0 | 173305 | # -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# 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,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
1678,
14187,
1266,
29871,
29906,
29900,
29896,
29941,
11612,
424,
275,
29892,
9266,
29889,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
... |
tests/conftest.py | glemaitre/hexrd | 27 | 95706 | import os
from pathlib import Path
import pytest
@pytest.fixture
def example_repo_path():
if 'HEXRD_EXAMPLE_REPO_PATH' not in os.environ:
pytest.fail('Environment varable HEXRD_EXAMPLE_REPO_PATH not set!')
repo_path = os.environ['HEXRD_EXAMPLE_REPO_PATH']
return Path(repo_path)
| [
1,
1053,
2897,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
11451,
1688,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
13,
1753,
1342,
29918,
20095,
29918,
2084,
7295,
13,
1678,
565,
525,
29950,
5746,
29934,
29928,
29918,
5746,
192... |
vale/__init__.py | pyccel/vale | 3 | 55953 | __version__ = 0.9
from .parser import *
from .syntax import *
| [
1,
4770,
3259,
1649,
353,
29871,
29900,
29889,
29929,
13,
13,
3166,
869,
16680,
29871,
1053,
334,
13,
3166,
869,
29562,
29871,
1053,
334,
13,
2
] |
TuRBO-Penicillin/turbo/turbo_m.py | HarryQL/TuRBO-Penicillin | 0 | 58401 | ###############################################################################
# Copyright (c) 2019 Uber Technologies, Inc. #
# #
# Licensed under the Uber Non-Commercial License (the "License"); #
... | [
1,
835,
13383,
13383,
13383,
13383,
7346,
4136,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
501,
495,
8364,
11763,
29892,
9266,
29889,
462,
462,
29871,
396,
13,
29937,
462,
462,
462,
462,
632,
396,
13,
... |
src/main.py | bhavanib/Music-Recommendation-System | 3 | 179551 | from SWIMMRS.src.TweetClassifier import Tokenizer, FeatureExtraction
from SWIMMRS.src.scraper.Datascraper import DataScraper
from SWIMMRS.src.scraper.OauthConnectionClient import OauthClient
userTweets_url = 'https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=2597834149&count=20'
def main():
oauth_ob... | [
1,
515,
317,
22119,
7428,
12445,
29889,
4351,
29889,
29911,
16668,
2385,
3709,
1053,
25159,
3950,
29892,
5169,
1535,
5647,
13857,
13,
3166,
317,
22119,
7428,
12445,
29889,
4351,
29889,
1557,
336,
546,
29889,
16390,
6151,
336,
546,
1053,
3... |
mod_ci/cron.py | T1duS/sample-platform | 1 | 162413 | #!/usr/bin/python
import sys
from os import path
# Need to append server root path to ensure we can import the necessary files.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
def cron():
from mod_ci.controllers import start_platform
from run import config, log
from database import cr... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
5215,
10876,
13,
3166,
2897,
1053,
2224,
13,
13,
29937,
20768,
304,
9773,
1923,
3876,
2224,
304,
9801,
591,
508,
1053,
278,
5181,
2066,
29889,
13,
9675,
29889,
2084,
29889,
4397,
29898,
2084... |
chargebee/models/site_migration_detail.py | koordinates/chargebee-python | 28 | 172046 | <filename>chargebee/models/site_migration_detail.py
import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError
class SiteMigrationDetail(Model):
fields = ["entity_id", "other_site_name", "entity_id_at_other_site", "migrated_at", "entity_type", \
"status"]
... | [
1,
529,
9507,
29958,
23367,
915,
29872,
29914,
9794,
29914,
2746,
29918,
29885,
16783,
29918,
16432,
29889,
2272,
13,
5215,
4390,
13,
3166,
8323,
915,
29872,
29889,
4299,
1053,
8125,
13,
3166,
8323,
915,
29872,
1053,
2009,
13,
3166,
8323,... |
memegen/memegen/routes/latest.py | flavienbwk/memegen | 3 | 74749 | from flask import Blueprint, render_template, current_app, make_response
from webargs import fields, flaskparser
from ._utils import route
REFRESH_SECONDS = 60
blueprint = Blueprint('latest-page', __name__)
@blueprint.route("/latest")
@flaskparser.use_kwargs({'nsfw': fields.Bool(missing=False)})
def get(nsfw):
... | [
1,
515,
29784,
1053,
10924,
2158,
29892,
4050,
29918,
6886,
29892,
1857,
29918,
932,
29892,
1207,
29918,
5327,
13,
3166,
1856,
5085,
1053,
4235,
29892,
29784,
16680,
13,
13,
3166,
869,
29918,
13239,
1053,
5782,
13,
13,
25866,
1525,
7068,
... |
dicomtrolley/core.py | michelkok/dicomtrolley | 0 | 43533 | <reponame>michelkok/dicomtrolley
"""Provides common base classes that allow different modules to talk to each other."""
from itertools import chain
from typing import Sequence
from pydantic.main import BaseModel
from pydicom.dataset import Dataset
from dicomtrolley.exceptions import DICOMTrolleyException
class DICO... | [
1,
529,
276,
1112,
420,
29958,
29885,
436,
295,
29895,
554,
29914,
27774,
290,
29873,
1467,
2330,
13,
15945,
29908,
1184,
29894,
2247,
3619,
2967,
4413,
393,
2758,
1422,
10585,
304,
5193,
304,
1269,
916,
1213,
15945,
13,
3166,
4256,
850... |
src/sqlite3_handler.py | simaoamorim/cnc_tooldb | 2 | 149467 | <reponame>simaoamorim/cnc_tooldb
#!/usr/bin/env python3
"""
Python module that handles the connection and actions to the local database
"""
import os.path
import sqlite3 as sql
class DB(object):
def __init__(self, dbname='database.db'):
"""Initialize the connection to the database and, if it doesn't exist... | [
1,
529,
276,
1112,
420,
29958,
29879,
2946,
29877,
314,
272,
326,
29914,
29883,
17608,
29918,
517,
1025,
29890,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
13,
11980,
3883,
393,
17766,
278,
3957,
322,
... |
git_vote_cog/issues.py | dbford/votecog | 0 | 110044 | from typing import Optional, Set
import github
from github.PullRequest import PullRequest
from git_vote_cog.util import wrap_async
class Issue:
def __init__(self, pr: Optional[PullRequest]):
# class variables def
self._pr: Optional[PullRequest] = None
self.id: int = -1
self.url: ... | [
1,
515,
19229,
1053,
28379,
29892,
3789,
13,
13,
5215,
18546,
13,
3166,
18546,
29889,
29925,
913,
3089,
1053,
349,
913,
3089,
13,
13,
3166,
6315,
29918,
15814,
29918,
29883,
468,
29889,
4422,
1053,
12244,
29918,
12674,
13,
13,
13,
1990,... |
tests/utils/frameworks/tensorflow_utils.py | matheusMoreno/BentoML | 0 | 195963 | import re
import string
import numpy as np
import tensorflow as tf
import tensorflow.keras as keras
def custom_activation(x):
return tf.nn.tanh(x) ** 2
class CustomLayer(keras.layers.Layer):
def __init__(self, units=32, **kwargs):
super(CustomLayer, self).__init__(**kwargs)
self.units = tf.... | [
1,
1053,
337,
13,
5215,
1347,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
5215,
26110,
29889,
3946,
294,
408,
13023,
294,
13,
13,
13,
1753,
2888,
29918,
11236,
362,
29898,
29916,
1125,
13,
1678,
736,
15886,
29889,... |
pixelpuncher/player/migrations/0020_auto_20160604_1602.py | ej2/pixelpuncher | 0 | 55356 | <reponame>ej2/pixelpuncher
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-06-04 16:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('player', '0019_avatarlayer_playerav... | [
1,
529,
276,
1112,
420,
29958,
10337,
29906,
29914,
29886,
15711,
29886,
3322,
261,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29929,
373,
29871... |
conpaas-services/scripts/manager/notify_git_push.py | bopopescu/conpaas-2 | 5 | 132476 | <filename>conpaas-services/scripts/manager/notify_git_push.py
#!/usr/bin/env python
import simplejson
from conpaas.core.https import client
def main():
client.conpaas_init_ssl_ctx('/etc/cpsmanager/certs', 'user')
method = 'git_push_hook'
manager_ip = '127.0.0.1'
res = client.jsonrpc_post(manager_ip,... | [
1,
529,
9507,
29958,
535,
3274,
294,
29899,
9916,
29914,
16713,
29914,
12847,
29914,
25140,
29918,
5559,
29918,
5910,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
2560,
3126,
13,
13,
3166,
378,
3274,
... |
src/pyon/container/test/test_procs.py | scionrep/scioncc_new | 2 | 164856 | <gh_stars>1-10
#!/usr/bin/env python
__author__ = '<NAME>'
from unittest import SkipTest
from mock import Mock, patch, ANY, sentinel, call
from nose.plugins.attrib import attr
from gevent.event import AsyncResult, Event
import gevent
from ion.agent.agent import ResourceAgent
from pyon.container.procs import ProcMana... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
1649,
8921,
1649,
353,
12801,
5813,
16299,
13,
13,
3166,
443,
27958,
1053,
4971,
666,
3057,
13,
3166,
11... |
boundaries/kml.py | MinnPost/represent-boundaries | 20 | 1607809 | <reponame>MinnPost/represent-boundaries
from __future__ import unicode_literals
from xml.sax.saxutils import escape
def generate_placemark(name, geom):
return "<Placemark><name>%s</name>%s</Placemark>" % (escape(name), geom.kml)
def generate_kml_document(placemarks):
return """<?xml version="1.0" encoding=... | [
1,
529,
276,
1112,
420,
29958,
29924,
2559,
6747,
29914,
276,
6338,
29899,
9917,
4314,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
4903,
29889,
29879,
1165,
29889,
29879,
1165,
13239,
1053,
10169,
13,... |
constants.py | tyukesz/Command-word-recognition-keras- | 3 | 159415 | VERBOSITY = 1
SAMPLE_RATE = 16000
DURATION_MS = 1000
FEATURES_COUNT = 64
DESIRED_SAMPLES = int(SAMPLE_RATE * DURATION_MS / 1000)
DROPOUT_RATE = 0.5
TESING_PERCENTAGE = 15
VALIDATION_PERCENTAGE = 15
VALIDATION_FREQUENCY = 10
SAVE_PERIOD = 10
EPOCHS = 100
BATCH_SIZE = 512
DATASET_URL = 'http://download.tensorflow.org/d... | [
1,
478,
1001,
29933,
3267,
11937,
353,
29871,
29896,
13,
8132,
3580,
1307,
29918,
29934,
3040,
353,
29871,
29896,
29953,
29900,
29900,
29900,
13,
29928,
4574,
8098,
29918,
4345,
353,
29871,
29896,
29900,
29900,
29900,
13,
16359,
1299,
11499... |
booktags/flaskapp/book/views.py | MagicSword/Booktags | 0 | 2498 | <reponame>MagicSword/Booktags
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
example.py
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: 2019 Miller
:license: BSD-3-Clause
"""
# Known bugs that can't be fixed here:
# - synopsis() cannot be prevented from clobbering e... | [
1,
529,
276,
1112,
420,
29958,
19095,
293,
29903,
1742,
29914,
10967,
11338,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908... |
src/token/__init__.py | mingz2013/py.script | 1 | 12169 | <gh_stars>1-10
# -*- coding:utf-8 -*-
"""
"""
__date__ = "14/12/2017"
__author__ = "zhaojm"
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
15945,
29908,
13,
1649,
1256,
1649,
353,
376,
29896,
29946,
29914,
... |
web-app/app/main/modules.py | sandbernar/anti-corona-crm | 0 | 48574 | <reponame>sandbernar/anti-corona-crm
from flask import request
import math
from wtforms import SelectField
from wtforms.validators import DataRequired
from flask_wtf import FlaskForm
class TableModule:
class WrongPageError(Exception):
pass
class WrongSortingParameterError(Exception):
pass
... | [
1,
529,
276,
1112,
420,
29958,
29879,
392,
5892,
279,
29914,
3656,
29899,
2616,
2681,
29899,
29883,
1758,
13,
3166,
29784,
1053,
2009,
13,
5215,
5844,
13,
3166,
281,
29873,
9514,
1053,
7605,
3073,
13,
3166,
281,
29873,
9514,
29889,
3084... |
solutions/problem_101.py | ksvr444/daily-coding-problem | 1,921 | 135529 | def is_prime(num, primes):
for prime in primes:
if prime == num:
return True
if not num % prime:
return False
return True
def get_primes(num):
limit = (num // 2) + 1
candidates = list()
primes = list()
for i in range(2, limit):
if is_prime(i, pr... | [
1,
822,
338,
29918,
10080,
29898,
1949,
29892,
544,
1355,
1125,
13,
1678,
363,
6019,
297,
544,
1355,
29901,
13,
4706,
565,
6019,
1275,
954,
29901,
13,
9651,
736,
5852,
13,
4706,
565,
451,
954,
1273,
6019,
29901,
13,
9651,
736,
7700,
... |
Linux_Android_Classification/Src/GridSearchCV/SVM/SVM_search.py | Syuukakou/DeepLook_into_Android-type_ELF | 0 | 1600741 | <reponame>Syuukakou/DeepLook_into_Android-type_ELF<gh_stars>0
from sklearn import svm
from Linux_Android_Classification.Src.data_process import get_firstN_rows_opcodes, data_process_opcodes
from Linux_Android_Classification.Src.common_libs import *
# from sklearn.ensemble import RandomForestClassifier
# from sklearn.tr... | [
1,
529,
276,
1112,
420,
29958,
29903,
29891,
29884,
2679,
557,
283,
29914,
2772,
1022,
14959,
29918,
8941,
29918,
8136,
29899,
1853,
29918,
6670,
29943,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
2071,
19668,
1053,
3731,
29885,... |
src/services/StudentAppServicer.py | comword/TCD20-DP-DeepModel | 0 | 185392 | <reponame>comword/TCD20-DP-DeepModel<filename>src/services/StudentAppServicer.py
import src.gen_proto.student_pb2_grpc as student_pb2__grpc
class StudentAppServicer(student_pb2__grpc.StudentAppServicer):
def __init__(self):
pass
def UpPredictResult(self, request, context):
pass
def GetExa... | [
1,
529,
276,
1112,
420,
29958,
510,
1742,
29914,
29911,
6530,
29906,
29900,
29899,
11191,
29899,
2772,
1022,
3195,
29966,
9507,
29958,
4351,
29914,
9916,
29914,
20791,
2052,
6889,
293,
261,
29889,
2272,
13,
5215,
4765,
29889,
1885,
29918,
... |
steps/make/haxe.py | flipcoder/siege-tools | 6 | 85378 | #!/usr/bin/env python
import os
import sgmake
from common import Status
from common import Support
from common import Settings
from common.Plugin import Plugin
import subprocess
from common import call
def make(project):
cmd = [ 'haxe', 'compile.hxml' ]
try:
call(cmd)
except subprocess.Called... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
2897,
13,
5215,
269,
29887,
5675,
13,
3166,
3619,
1053,
16034,
13,
3166,
3619,
1053,
18601,
13,
3166,
3619,
1053,
19215,
13,
3166,
3619,
29889,
16288,
1053,
1858,
3851,
13,
5215,... |
flying_desktop/__main__.py | roee30/flying_desktop | 1 | 127257 | """
Run the Flying Desktop application.
"""
import asyncio
import sys
import threading
import tkinter as tk
from .log import logging_setup
logging_setup()
from .utils import loop
from flying_desktop.app.main_window import AppWindow
def loop_worker(loop_: asyncio.AbstractEventLoop):
"""
Thread for running t... | [
1,
9995,
13,
6558,
278,
383,
5890,
2726,
6883,
2280,
29889,
13,
15945,
29908,
13,
5215,
408,
948,
3934,
13,
5215,
10876,
13,
5215,
3244,
292,
13,
5215,
18883,
1639,
408,
18883,
13,
13,
3166,
869,
1188,
1053,
12183,
29918,
14669,
13,
... |
fellowcrm/__init__.py | Fellow-Consulting-AG/fellowcrm | 0 | 145236 | from flask import Flask, render_template, request, session
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from flask_babel import Babel
import os
from .config import Develop... | [
1,
515,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
29892,
2009,
29892,
4867,
13,
3166,
29784,
29918,
2850,
284,
305,
6764,
1053,
3758,
2499,
305,
6764,
13,
3166,
29784,
29918,
12328,
4641,
1053,
350,
29883,
4641,
13,
3166,
29784,
... |
main_copy.py | Kevincj/TwitterCopyFollowing | 0 | 111744 | <gh_stars>0
from requests_oauthlib import OAuth1Session
import os
import json
import sys, traceback
import numpy as np
import time
import random
import threading
from datetime import datetime
import configparser
def getOAuth():
global account_name
def load_api_key_set():
config = configparser.ConfigPar... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
7274,
29918,
23106,
1982,
1053,
438,
6444,
29896,
7317,
13,
5215,
2897,
13,
5215,
4390,
13,
5215,
10876,
29892,
9637,
1627,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
5215,
... |
dataingest/main_pub_kafka.py | sodadata/soda-streaming | 22 | 118032 | <reponame>sodadata/soda-streaming<filename>dataingest/main_pub_kafka.py
from queue import Queue
import time
import os
from utils.io import CustomAvroKafkaPublisher
from utils.configurator import RestConfigurator
import logging
# Set proper logging
LOGLEVEL = os.environ.get('LOGLEVEL', 'DEBUG').upper()
logging.basicCo... | [
1,
529,
276,
1112,
420,
29958,
29879,
397,
7221,
29914,
29879,
8887,
29899,
5461,
292,
29966,
9507,
29958,
1272,
292,
342,
29914,
3396,
29918,
5467,
29918,
28510,
29889,
2272,
13,
3166,
9521,
1053,
5462,
434,
13,
5215,
931,
13,
5215,
28... |
custom_components/yahoofinance/__init__.py | Nag94/HomeAssistantConfig | 65 | 79755 | """
The Yahoo finance component.
https://github.com/iprak/yahoofinance
"""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Final, Union
from homeassistant.const import CONF_SCAN_INTERVAL
from homeassistant.core import HomeAssistant
from homeassistant.helpers impor... | [
1,
9995,
13,
1576,
612,
26779,
1436,
749,
4163,
29889,
13,
13,
991,
597,
3292,
29889,
510,
29914,
666,
4442,
29914,
29891,
29745,
974,
262,
749,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
12865... |
decimal to binary.py | Kshitijkrishnadas/haribol | 0 | 15737 | <gh_stars>0
a=''
n=int(input())
while n != 0:
a=str(n%2)+a
n//=2
print(a)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29874,
2433,
29915,
13,
29876,
29922,
524,
29898,
2080,
3101,
13,
8000,
302,
2804,
29871,
29900,
29901,
13,
1678,
263,
29922,
710,
29898,
29876,
29995,
29906,
7240,
29874,
13,
1678,
302,
... |
hangpy/tests/repositories/test_server_repository.py | luizfernandomeier/hangpy | 5 | 61447 | import unittest
from hangpy.repositories import ServerRepository
class TestServerRepository(unittest.TestCase):
def test_instantiate(self):
server_repository = FakeServerRepository()
self.assertIsNone(server_repository.get_servers())
self.assertIsNone(server_repository.add_server(None))
... | [
1,
1053,
443,
27958,
13,
3166,
13958,
2272,
29889,
276,
1066,
20106,
1053,
5656,
11481,
13,
13,
13,
1990,
4321,
6004,
11481,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
2611,
3656,
403,
29898,
1311,
1125,... |
tests/test_softmax.py | kcosta42/Multilayer_Perceptron | 1 | 190230 | <filename>tests/test_softmax.py
import numpy as np
import matplotlib.pyplot as plt
from libft.activations import ReLU, Softmax
from libft.layers import Dense, Input
from libft.losses import BinaryCrossentropy
from libft.metrics import BinaryAccuracy
from libft.models import Sequential
from libft.optimizers import SGD
... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
2695,
3317,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
3166,
4303,
615,
29889,
11236,
800,
1053,
830,
29931,
29965,
29892,
1105,
615,
... |
service/__init__.py | 2890841438/fast-index.py | 4 | 1393 | <filename>service/__init__.py
# -*- coding = utf-8 -*-
# @Time: 2020/9/4 18:52
# @Author: dimples_yj
# @File: __init__.py.py
# @Software: PyCharm
| [
1,
529,
9507,
29958,
5509,
29914,
1649,
2344,
26914,
2272,
13,
29937,
448,
29930,
29899,
14137,
353,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
2481,
29901,
29871,
29906,
29900,
29906,
29900,
29914,
29929,
29914,
29946,
29871,
... |
Source_Code/Python/ConductedTest/case_generator.py | fenglwh/instruments | 0 | 12927 | <gh_stars>0
import json
from labinstrument.SS.CMW500.CMW500_WIFI.CMW500_WIFI import *
if __name__ == '__main__':
new_config_name='emm'
new_config=CMW_WIFI(17).get_parameters()
config=json.load(open('config.txt'))
config[new_config_name]=new_config
json.dump(config,open('config.txt','w')) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4390,
13,
3166,
9775,
2611,
15461,
29889,
1799,
29889,
24494,
29956,
29945,
29900,
29900,
29889,
24494,
29956,
29945,
29900,
29900,
29918,
22119,
3738,
29889,
24494,
29956,
29945,
29900... |
gen-po-comm-invoice.py | tschutter/cctools | 0 | 158295 | #!/usr/bin/env python2
"""
Generates a Purchase Order / Commercial Invoice.
All known products are included. If you are never ordering a product
again, then just don't order it. Or use the --exclude-sku option.
"""
from __future__ import print_function
import ConfigParser
import argparse
import datetime
import ite... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
13,
15945,
29908,
13,
5631,
1078,
263,
349,
27574,
8170,
847,
422,
1050,
1455,
512,
14917,
29889,
13,
13,
3596,
2998,
9316,
526,
5134,
29889,
29871,
960,
366,
526,
2360,
20520,
... |
LeetCode-All-Solution/Python3/LC-0061-Rotate-List.py | YuweiYin/Algorithm_YuweiYin | 0 | 100693 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0061-Rotate-List.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-03-11
=======================================... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
9166,
9166,
9166,
9166,
29922,
13,
29992,
7653,
584,
29068,
29918,
29979,
21074,
29875,
299... |
app/health.py | statisticsnorway/bip-initializer | 3 | 1608701 | from fastapi import APIRouter
router = APIRouter()
@router.get("/health/alive")
async def alive():
return {"status": "I'm not dead!"}
@router.get("/health/ready")
async def ready():
return {"status": "Ready"}
| [
1,
515,
5172,
2754,
1053,
3450,
23971,
13,
13,
15140,
353,
3450,
23971,
580,
13,
13,
13,
29992,
15140,
29889,
657,
11974,
354,
4298,
29914,
284,
573,
1159,
13,
12674,
822,
18758,
7295,
13,
1678,
736,
8853,
4882,
1115,
376,
29902,
2991... |
robot.py | dragonrobotics/2018-PowerUp | 2 | 23314 | import wpilib
import constants
import swerve
import lift
import winch
import sys
from teleop import Teleop
from autonomous.baseline_simple import Autonomous
from sensors.imu import IMU
def log(src, msg):
try:
full_msg = "[{:.3f}] [{}] {}".format(
wpilib.Timer.getMatchTime(), str(src), str(msg)... | [
1,
1053,
19247,
15943,
13,
5215,
17727,
13,
5215,
269,
556,
345,
13,
5215,
13777,
13,
5215,
5401,
305,
13,
5215,
10876,
13,
3166,
4382,
459,
1053,
9699,
459,
13,
3166,
28273,
681,
29889,
6500,
5570,
29918,
12857,
1053,
5202,
4917,
681... |
python/mzcloud/models/historical_deployment_delta.py | MaterializeInc/cloud-sdks | 0 | 115646 | from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, cast
import attr
from ..models.historical_deployment_change import HistoricalDeploymentChange
from ..models.historical_deployment_metadata import HistoricalDeploymentMetadata
from ..types import UNSET, Unset
T = TypeVar("T", bound=... | [
1,
515,
19229,
1053,
3139,
29892,
29479,
5971,
29892,
360,
919,
29892,
2391,
29892,
28379,
29892,
3992,
5971,
29892,
12603,
552,
29892,
5167,
29892,
5167,
9037,
29892,
4320,
13,
13,
5215,
12421,
13,
13,
3166,
6317,
9794,
29889,
16211,
936... |
scripts/labtainer-instructor/bin/regresstest.py | jakuta-tech/Labtainers | 0 | 62472 | <gh_stars>0
#!/usr/bin/env python3
'''
This software was created by United States Government employees at
The Center for Cybersecurity and Cyber Operations (C3O)
at the Naval Postgraduate School NPS. Please note that within the
United States, copyright protection is not available for any works
created by United S... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
12008,
13,
4013,
7047,
471,
2825,
491,
3303,
3900,
10354,
22873,
472,
29871,
13,
1576,
7817,
363,
8045,
495,
8926,
322,
80... |
lambdata_robdbennett/__example_module__.py | RobDBennett/lambdata | 0 | 71585 | #!/usr/bin/env python
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import plot_confusion_matrix
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
3166,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
7945,
29918,
1688,
29918,
5451,
13,
3166,
2071,
19668,
29889,
2527,
10817,
10... |
tests/unit/test_plugin_type_manager.py | thijskramer/flake8 | 2,013 | 195654 | """Tests for flake8.plugins.manager.PluginTypeManager."""
from unittest import mock
import pytest
from flake8 import exceptions
from flake8.plugins import manager
TEST_NAMESPACE = "testing.plugin-type-manager"
def create_plugin_mock(raise_exception=False):
"""Create an auto-spec'd mock of a flake8 Plugin."""
... | [
1,
9995,
24376,
363,
17422,
446,
29947,
29889,
12800,
29889,
12847,
29889,
16288,
1542,
3260,
1213,
15945,
13,
3166,
443,
27958,
1053,
11187,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
17422,
446,
29947,
1053,
15283,
13,
3166,
17422,
446,
... |
web/index/migrations/0003_auto_20200407_1756.py | laozhudetui/LSpider | 311 | 70615 | <reponame>laozhudetui/LSpider<gh_stars>100-1000
# Generated by Django 3.0.1 on 2020-04-07 09:56
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('index', '0002_scantask_last_scan_time'),
]
ope... | [
1,
529,
276,
1112,
420,
29958,
433,
2112,
29882,
566,
300,
1481,
29914,
29931,
5592,
1241,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,... |
Hl7_Parser.py | AnaniSkywalker/HL7_Parser | 1 | 53455 | ## Author: <NAME>
import json
import io
import os
import re
from hl7apy.parser import parse_message
from hl7apy.exceptions import UnsupportedVersion
#receives the name of the file and reads the messages in the file
def readMessageFile(filename):
#read the file
message = open(filename, 'r').read()
print("St... | [
1,
444,
13361,
29901,
529,
5813,
29958,
13,
5215,
4390,
13,
5215,
12013,
13,
5215,
2897,
13,
5215,
337,
13,
3166,
298,
29880,
29955,
27580,
29889,
16680,
1053,
6088,
29918,
4906,
13,
3166,
298,
29880,
29955,
27580,
29889,
11739,
29879,
... |
modules/SOM_F1.[Scatter Changes in Temp and GDP Sulfate].py | YixuanZheng/Aerosol_Inequality_2019 | 3 | 107870 | <reponame>YixuanZheng/Aerosol_Inequality_2019
# -*- coding: utf-8 -*-
'''
This code generates Fig. S11
Country-level temperature changes and the associated GDP increment induced by anthropogenic SULFATE aerosols
by <NAME> (<EMAIL>)
'''
import _env
import numpy as np
import pandas as pd
import matplotlib.pyplot as... | [
1,
529,
276,
1112,
420,
29958,
29979,
861,
12323,
29999,
29882,
996,
29914,
29909,
9672,
324,
29918,
29902,
484,
29567,
29918,
29906,
29900,
29896,
29929,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
1... |
Research/encoders.py | ylzhang29/GAN-for-tabular-data | 272 | 194662 | from typing import List
import numpy as np
import pandas as pd
from category_encoders.backward_difference import BackwardDifferenceEncoder
from category_encoders.cat_boost import CatBoostEncoder
from category_encoders.helmert import HelmertEncoder
from category_encoders.james_stein import JamesSteinEncoder
from catego... | [
1,
515,
19229,
1053,
2391,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
3166,
7663,
29918,
3977,
397,
414,
29889,
1627,
1328,
29918,
29881,
17678,
1053,
7437,
1328,
29928,
17678,
8566,
6119,
13,
3166,
7663,
29918,
39... |
python算法/5.6如何对由大小写字母组成的字符数组排序.py | RobinYaoWenbin/Python-CommonCode | 12 | 134334 | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 12 19:36:03 2020
@author: Administrator
"""
"""
有一个由大小写字母组成的字符串,请对它进行重新组合,使得其中的所有小写字母排在大写字母的前面
(大写字母或小写字母之间不要求保持原来的次序)
"""
def SortStr(s):
i = 0 ; j = len(s) - 1
while i < j:
if s[i].isupper():
pass
else:
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
20399,
373,
15050,
26319,
29871,
29896,
29906,
29871,
29896,
29929,
29901,
29941,
29953,
29901,
29900,
29941,
29871,
29906,
29900,
2... |
transcendental-maps/program/processor.py | alexn11/complex-dynamics-progs | 3 | 155909 | #!/usr/bin/python
# todo: preview doesnt work
# TODO: new types: pixel (rgba)
# todo: legacy? e.g. compute image of points, computation illustration etc.
# todo: doesn't detect wrong number of args
# todo: set color
# todo: filled julia with the number of it
# todo: implement missing rect and arg and line complex
# to... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
29937,
10481,
29901,
25267,
19403,
664,
13,
29937,
14402,
29901,
716,
4072,
29901,
15526,
313,
11007,
2291,
29897,
13,
29937,
10481,
29901,
25000,
29973,
321,
29889,
29887,
29889,
10272,
196... |
scripts/lidar_constants.py | priyablue/lidar_navigation | 2 | 1606381 | <filename>scripts/lidar_constants.py
import os
import sys
__path = os.path.abspath(sys.modules[__name__].__file__)
__dirname = os.path.dirname(__path)
HTTP_TEMPLATE_DEFAULT = __dirname + "/html/plot-image.html"
HTTP_PORT_DEFAULT = 8080
HTTP_DELAY_SECS_DEFAULT = 0
HTTP_PORT = "http_port"
TEMPLATE_FILE = "template_fil... | [
1,
529,
9507,
29958,
16713,
29914,
29880,
333,
279,
29918,
3075,
1934,
29889,
2272,
13,
5215,
2897,
13,
13,
5215,
10876,
13,
13,
1649,
2084,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
9675,
29889,
7576,
29961,
1649,
978,
1649... |
tests/test_calculate_branch.py | ivergara/python-abc | 2 | 20073 | <reponame>ivergara/python-abc
import pytest
from tests import assert_source_returns_expected
BRANCH_CASES = [
# Call
('print("hello world")', 'b | print("hello world")'),
# Await
("await noop()", "b | await noop()"),
# Class instantiation
("Noop()", "b | Noop()"),
]
@pytest.mark.parametrize... | [
1,
529,
276,
1112,
420,
29958,
2147,
29887,
2518,
29914,
4691,
29899,
10736,
13,
5215,
11451,
1688,
13,
13,
3166,
6987,
1053,
4974,
29918,
4993,
29918,
18280,
29918,
9684,
13,
13,
13,
15176,
2190,
3210,
29918,
23487,
29903,
353,
518,
13... |
spinoff/actor/validate.py | eallik/spinoff | 6 | 59393 | import re
_VALID_IP_RE = '(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])'
_VALID_HOSTNAME_RE = '(?:(?:[a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*(?:[A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])'
_VALID_NODEID_RE = re.compile('(?:%s|%s):(?P<port>[0-9]+)$... | [
1,
1053,
337,
13,
13,
13,
29918,
26707,
29918,
5690,
29918,
1525,
353,
525,
10780,
5919,
29973,
10834,
29900,
29899,
29929,
29962,
29989,
29961,
29896,
29899,
29929,
3816,
29900,
29899,
29929,
29962,
29989,
29896,
29961,
29900,
29899,
29929,
... |
ProgramacaoFuncional/desafio_mdc.py | VictorMello1993/CursoPythonUdemy | 0 | 43511 | #Desafio MDC
def mdc(numeros):
pass
if __name__ == '__main__':
print(mdc([21, 7])) #7
print(mdc([125, 40])) #5
print(mdc([9, 564, 66, 3])) #3
print(mdc([55, 22])) #11
print(mdc([15, 150])) #15
print(mdc([7, 9])) #1 | [
1,
396,
4002,
2142,
601,
341,
12696,
13,
1753,
286,
13891,
29898,
8058,
359,
1125,
13,
1678,
1209,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1596,
29898,
3487,
29883,
4197,
29906,
29896,
29892,
298... |
haweb/libs/drf/api_views.py | edilio/tobeawebproperty | 0 | 54046 | <filename>haweb/libs/drf/api_views.py
from __future__ import unicode_literals
import warnings
from django.http import Http404
from django.conf import settings
from rest_framework import viewsets, mixins, status, serializers
from rest_framework.response import Response
from .error_responses import ErrorResponse
DE... | [
1,
529,
9507,
29958,
2350,
2676,
29914,
10254,
29914,
7707,
29888,
29914,
2754,
29918,
7406,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
18116,
13,
13,
3166,
9557,
29889,
1124,
1053,
9056... |
archived-stock-trading-bot-v1/yf_extender.py | Allcallofduty10/stock-trading-bot | 101 | 35857 | <reponame>Allcallofduty10/stock-trading-bot
import sys
from datetime import datetime
import yfinance as yf
def get_ticker_symbol(ticker: yf.Ticker) -> str:
try:
return ticker.get_info()['symbol']
except ImportError:
return ""
def get_stock_state(ticker: yf.Ticker) -> {}:
stock_info = ti... | [
1,
529,
276,
1112,
420,
29958,
3596,
1052,
417,
11512,
329,
29891,
29896,
29900,
29914,
17712,
29899,
509,
9382,
29899,
7451,
13,
5215,
10876,
13,
3166,
12865,
1053,
12865,
13,
13,
5215,
343,
4951,
749,
408,
343,
29888,
13,
13,
13,
17... |
regenerate_api.py | gregsmi/sample-metadata | 0 | 144522 | #!/usr/bin/env python3
# pylint: disable=logging-not-lazy,subprocess-popen-preexec-fn,consider-using-with
import argparse
import logging
import os
import re
import shutil
import signal
import subprocess
import tempfile
import time
from typing import List, Optional
import requests
MODULE_NAME = 'sample_metadata'
LOCAL... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
21027,
29899,
1333,
29899,
433,
1537,
29892,
1491,
5014,
29899,
29886,
3150,
29899,
1457,
4258,
29899,
9144,
29892,
3200,
1241,
29899,
47... |
main.py | duyvu1991/license-plate-detection- | 0 | 50268 | <reponame>duyvu1991/license-plate-detection-
from flask import Flask, render_template
from blueprints import *
app = Flask(__name__)
app.register_blueprint(home)
app.register_blueprint(upload_api)
if __name__ == '__main__':
app.run(debug = True, host='127.0.0.1', port=5001)
| [
1,
529,
276,
1112,
420,
29958,
700,
29891,
24845,
29896,
29929,
29929,
29896,
29914,
506,
1947,
29899,
2341,
29899,
29881,
2650,
428,
29899,
13,
3166,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
13,
3166,
7254,
2158,
29879,
1053,
3... |
evoTurb_python/CalcCohx.py | YC-SWE/evoTurb | 2 | 153273 | # -*- coding: utf-8 -*-
"""
CalcCohx
function: calculate the longitudinal coherence
------------------------------------------------------------------------------------
Usage
Cohx,ConfigParameters = CalcCohx(ConfigParameters)
-----------------------------------------------------------------------------------
In... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
7856,
29883,
29907,
1148,
29916,
30004,
13,
2220,
29901,
8147,
278,
25579,
979,
16165,
261,
663,
30004,
13,
2683,
2683,
2683,
26... |
core/utils/network/sms.py | vsilent/smarty-bot | 1 | 113412 | <filename>core/utils/network/sms.py
from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "AC32a3c49700934481addd5ce1659f04d2"
auth_token = ""
client = TwilioRestClient(account_sid, auth_token)
message = client.sms.messages.create(body="Jenny please?! I lo... | [
1,
529,
9507,
29958,
3221,
29914,
13239,
29914,
11618,
29914,
29879,
1516,
29889,
2272,
13,
3166,
3252,
14876,
29889,
5060,
1053,
8168,
14876,
15078,
4032,
13,
29937,
3575,
16535,
19732,
322,
13189,
25159,
515,
3252,
14876,
29889,
510,
2991... |
BBmap_scrapper/main.py | Cpt-Graby/web_scrapping | 0 | 72291 | import requests
from bs4 import BeautifulSoup
import random
import time
random.seed(60)
def get_page(url):
"""
Simple funtion that get the url with requests and return a bs4 object.
:param (str): The string of the url
:return: bs4 object
"""
try:
req = requests.get(url)
... | [
1,
1053,
7274,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
5215,
4036,
13,
5215,
931,
13,
13,
8172,
29889,
26776,
29898,
29953,
29900,
29897,
13,
13,
13,
1753,
679,
29918,
3488,
29898,
2271,
1125,
13,
1678,
9995,
13,
418,
12... |
stencils/diffterm/kernel.py | pengdada/vecscatter-artifact | 0 | 189790 | from st.expr import Index, ConstRef
from st.grid import Grid
# Declare indices
i = Index(0)
j = Index(1)
k = Index(2)
# Declare grid
ux = Grid("ux", 3)
vx = Grid("vx", 3)
wx = Grid("wx", 3)
uy = Grid("uy", 3)
vy = Grid("vy", 3)
wy = Grid("wy", 3)
uz = Grid("uz", 3)
vz = Grid("vz", 3)
wz = Grid("wz", 3)
q_1 = Grid(... | [
1,
515,
380,
29889,
13338,
1053,
11374,
29892,
5798,
5620,
13,
3166,
380,
29889,
7720,
1053,
11657,
13,
13,
29937,
3826,
8663,
16285,
13,
29875,
353,
11374,
29898,
29900,
29897,
13,
29926,
353,
11374,
29898,
29896,
29897,
13,
29895,
353,
... |
appr/commands/logout.py | sergeyberezansky/appr | 31 | 6418 | <filename>appr/commands/logout.py
from __future__ import absolute_import, division, print_function
from appr.auth import ApprAuth
from appr.commands.command_base import CommandBase, PackageSplit
class LogoutCmd(CommandBase):
name = 'logout'
help_message = "logout"
def __init__(self, options):
su... | [
1,
529,
9507,
29958,
932,
29878,
29914,
26381,
29914,
1188,
449,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
13,
3166,
623,
29878,
29889,
5150,
1053,
2401,
29878,
644... |
temboardui/plugins/pgconf/__init__.py | missmoiselle/temboard | 294 | 78124 | <filename>temboardui/plugins/pgconf/__init__.py
import logging
from os import path
import tornado.web
from tornado.escape import url_escape, url_unescape
from temboardui.web import (
Blueprint,
HTTPError,
Redirect,
TemplateRenderer,
)
PLUGIN_NAME = 'pgconf'
logger = logging.getLogger(__name__)
bluepr... | [
1,
529,
9507,
29958,
1356,
3377,
1481,
29914,
12800,
29914,
4061,
5527,
29914,
1649,
2344,
26914,
2272,
13,
5215,
12183,
13,
3166,
2897,
1053,
2224,
13,
5215,
10146,
912,
29889,
2676,
13,
3166,
10146,
912,
29889,
21587,
1053,
3142,
29918,... |
src/ros/spirit/src/helpers.py | masasin/spirit | 0 | 1606605 | # -*- coding: utf-8 -*-
"""
Helper functions and classes for general use.
"""
from __future__ import division
from functools import partial, update_wrapper
from time import localtime, strftime
import numpy as np
from numpy.linalg import norm
import rospy
from geometry_msgs.msg import Point, PoseStamped, Quaternion
f... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
10739,
3168,
322,
4413,
363,
2498,
671,
29889,
13,
13,
15945,
29908,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
2090,
3... |
train.py | Omrigan/shiny-language-learner | 2 | 166113 | <reponame>Omrigan/shiny-language-learner<gh_stars>1-10
import random
import telegram
import datetime
import study_settings
import copy
params = {}
langs = {
1: {'original': 'en',
'candidacies': 'ru'
},
2: {'original': 'ru',
'candidacies': 'en'
}
}
choose = 'Choose train type:... | [
1,
529,
276,
1112,
420,
29958,
5673,
8966,
273,
29914,
845,
4901,
29899,
11675,
29899,
1945,
1089,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
4036,
13,
5215,
4382,
1393,
13,
5215,
12865,
13,
5215,
6559,
... |
server.py | RaphaelOlivier/deepspeech.pytorch | 1 | 105056 | import logging
import os
from tempfile import NamedTemporaryFile
import hydra
import torch
from flask import Flask, request, jsonify
from hydra.core.config_store import ConfigStore
from deepspeech_pytorch.configs.inference_config import ServerConfig
from deepspeech_pytorch.inference import run_transcribe
from deepspe... | [
1,
1053,
12183,
13,
5215,
2897,
13,
3166,
5694,
1445,
1053,
405,
2795,
5776,
1971,
653,
2283,
13,
13,
5215,
27246,
336,
13,
5215,
4842,
305,
13,
3166,
29784,
1053,
2379,
1278,
29892,
2009,
29892,
4390,
1598,
13,
3166,
27246,
336,
2988... |
tests/prefect_vault_secrets/conftest.py | vcdi/prefect-vault-secrets | 1 | 110753 | import pytest
import tempfile
import os
from prefect.utilities import configuration
@pytest.fixture()
def server_api():
"""
backend settings don't seem to be getting respected. As a work-around
set export PREFECT__BACKEND=server where running the tests to enforce
use of the server endpoint
"""
... | [
1,
1053,
11451,
1688,
13,
5215,
5694,
1445,
13,
5215,
2897,
13,
13,
3166,
758,
3647,
29889,
4422,
1907,
1053,
5285,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
13,
1753,
1923,
29918,
2754,
7295,
13,
1678,
9995,
13,
1678,
... |
Comment/views.py | yqji/DJNeverDie | 0 | 73835 | <reponame>yqji/DJNeverDie
from django.shortcuts import render
from .models import Comment
def get_comments():
pass
| [
1,
529,
276,
1112,
420,
29958,
29891,
29939,
2397,
29914,
29928,
29967,
29940,
1310,
16334,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
13,
3166,
869,
9794,
1053,
461,
13,
13,
13,
1753,
679,
29918,
21032,
7295,
13,
1678,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.