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 |
|---|---|---|---|---|---|
uproot/const.py | guiguem/uproot | 0 | 25113 | #!/usr/bin/env python
# Copyright (c) 2017, DIANA-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
29892,
22471,
2190,
29909,
29899,
9606,
29925,
13,
29937,
2178,
10462,
21676,
29889,
13,
29937,
29871,
13,
299... |
checkmate/contrib/plugins/git/commands/update_stats.py | marcinguy/checkmate-ce | 80 | 146862 | <reponame>marcinguy/checkmate-ce<gh_stars>10-100
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from collections import defaultdict
from checkmate.management.commands.base import BaseCommand
from ..models import GitBranch
logger = logging.getLogger(__name__)
class Command(BaseCommand... | [
1,
529,
276,
1112,
420,
29958,
3034,
3277,
8631,
29914,
3198,
25046,
29899,
346,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
2... |
dataset.py | dimitreOliveira/RecsysChallenge_Spotify | 3 | 63064 | import pandas as pd
def build_columns():
columns = ['pid']
for i in range(1, 501):
columns.append('trackuri_%s' % i)
return columns
def build_output(df_list, id_cloumn, song_column):
output = pd.DataFrame(columns=build_columns())
for df in df_list:
output = output.append(format_... | [
1,
1053,
11701,
408,
10518,
13,
13,
13,
1753,
2048,
29918,
13099,
7295,
13,
1678,
4341,
353,
6024,
5935,
2033,
13,
1678,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29945,
29900,
29896,
1125,
13,
4706,
4341,
29889,
4397,
877,
11294... |
CodeInterview/[cutz]compression_str.py | cutz-j/AlgorithmStudy | 3 | 151029 | <reponame>cutz-j/AlgorithmStudy
from collections import defaultdict
def solve(s):
hash_dict = defaultdict(int)
for i in range(len(s)):
hash_dict[s[i]] += 1
return | [
1,
529,
276,
1112,
420,
29958,
29883,
7427,
29899,
29926,
29914,
22461,
4540,
855,
566,
29891,
13,
3166,
16250,
1053,
2322,
8977,
13,
13,
1753,
4505,
29898,
29879,
1125,
13,
1678,
6608,
29918,
8977,
353,
2322,
8977,
29898,
524,
29897,
1... |
pandas_tricks.py | wingwingz/code_snippets | 0 | 107580 | <filename>pandas_tricks.py<gh_stars>0
def fuzzy_merge(df_1, df_2, key1, key2, threshold=90, limit=2):
"""
:param df_1: the left table to join
:param df_2: the right table to join
:param key1: key column of the left table
:param key2: key column of the right table
:param threshold: how close the ... | [
1,
529,
9507,
29958,
15112,
29918,
509,
7358,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
1753,
285,
3365,
1537,
29918,
14634,
29898,
2176,
29918,
29896,
29892,
4489,
29918,
29906,
29892,
1820,
29896,
29892,
1820,
29906,
... |
distiller/data/jobs.py | 18F/FAC-Distiller- | 2 | 108834 |
"""
Use apscheduler to run a daily job to refresh the source tables.
"""
import random
import sys
import time
import pytz
from apscheduler.schedulers.background import BackgroundScheduler
from django.conf import settings
from django_apscheduler.jobstores import (
DjangoJobStore, register_events, register_job
)
... | [
1,
29871,
13,
15945,
29908,
13,
11403,
263,
567,
305,
14952,
304,
1065,
263,
14218,
4982,
304,
11086,
278,
2752,
6131,
29889,
13,
15945,
29908,
13,
13,
5215,
4036,
13,
5215,
10876,
13,
5215,
931,
13,
13,
5215,
282,
3637,
29920,
13,
... |
teaparty/helpers.py | idooo/teaparty | 0 | 80577 | from time import time
def cache(function):
memo = {}
time_to_cache = 60
def wrapper(*args):
if args in memo and time() < memo[args]['time'] + time_to_cache:
return memo[args]['record']
else:
rv = function(*args)
memo[args] = {
'record': r... | [
1,
515,
931,
1053,
931,
13,
13,
1753,
7090,
29898,
2220,
1125,
13,
1678,
2626,
29877,
353,
6571,
13,
1678,
931,
29918,
517,
29918,
8173,
353,
29871,
29953,
29900,
13,
13,
1678,
822,
14476,
10456,
5085,
1125,
13,
4706,
565,
6389,
297,
... |
tests/test_atise.py | tkg-framework/TKG-framework | 0 | 16403 | <reponame>tkg-framework/TKG-framework<filename>tests/test_atise.py<gh_stars>0
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.functional as F
from torch.nn.init import xavier_normal_
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.pat... | [
1,
529,
276,
1112,
420,
29958,
29873,
9415,
29899,
4468,
29914,
29911,
29968,
29954,
29899,
4468,
29966,
9507,
29958,
21150,
29914,
1688,
29918,
271,
895,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4842,
305,
13,
... |
backend/kaos_backend/util/docker.py | aalhour/kaos | 98 | 105164 | import boto3
from kaos_backend.constants import DOCKER_REGISTRY, REGION, CLOUD_PROVIDER
def get_login_command():
if CLOUD_PROVIDER == 'AWS':
# ecr = boto3.client('ecr', region_name=REGION)
#
# raw_auth_data = ecr.get_authorization_token()['authorizationData'][0]['authorizationToken']
... | [
1,
1053,
289,
3747,
29941,
13,
13,
3166,
13560,
359,
29918,
27852,
29889,
3075,
1934,
1053,
11662,
7077,
1001,
29918,
18166,
9047,
13207,
29892,
5195,
29954,
2725,
29892,
315,
3927,
15789,
29918,
8618,
13044,
1001,
13,
13,
13,
1753,
679,
... |
contrib/workflow/src/main.py | gonicus/clacks | 2 | 141941 | <filename>contrib/workflow/src/main.py
#!/usr/bin/env python
import os.path
import MySQLdb
from sqlalchemy import *
from sqlalchemy.orm import clear_mappers
__author__="janw"
__date__ ="$21.05.2010 16:55:13$"
from SpiffWorkflow.Storage import XmlReader
from SpiffWorkflow.Server ... | [
1,
529,
9507,
29958,
21570,
29914,
1287,
1731,
29914,
4351,
29914,
3396,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
2897,
29889,
2084,
13,
5215,
9254,
2585,
13,
3166,
4576,
284,
305,
6764,
462,
41... |
aiida_wien2k/calculations/x_sgroup.py | rubel75/aiida-wien2k | 1 | 197418 | from aiida.common import datastructures
from aiida.engine import CalcJob
from aiida.orm import SinglefileData, Dict, RemoteData, Code, StructureData
import os
import ase.io
def _cli_options(parameters):
"""Return command line options for parameters dictionary.
:param dict parameters: dictionary with command l... | [
1,
515,
7468,
1458,
29889,
9435,
1053,
6155,
509,
5313,
1973,
13,
3166,
7468,
1458,
29889,
10599,
1053,
3037,
29883,
11947,
13,
3166,
7468,
1458,
29889,
555,
1053,
16740,
1445,
1469,
29892,
360,
919,
29892,
5240,
866,
1469,
29892,
5920,
... |
lyapunov_reachability/common/gradient.py | 62subinh/deeprl_safety_specification | 3 | 154209 | import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
def flat_grad(grads):
grad_flatten = []
for grad in grads:
grad_flatten.append(grad.view(-1))
grad_flatten = torch.cat(grad_flatten)
return grad_flatten
def flat_hessian(hessians):
hessians_flatten = []
... | [
1,
1053,
4842,
305,
13,
13,
10141,
353,
4842,
305,
29889,
10141,
703,
29883,
6191,
29908,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
580,
1683,
376,
21970,
1159,
13,
13,
1753,
12151,
29918,
5105,
29898,
5105,
29879,
1... |
framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py | tomped01/gfxreconstruct | 0 | 27746 | <filename>framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py
#!/usr/bin/python3 -i
#
# Copyright (c) 2020 LunarG, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# de... | [
1,
529,
9507,
29958,
4468,
29914,
13525,
29914,
29894,
352,
11052,
29918,
4738,
4097,
29914,
29894,
352,
11052,
29918,
20275,
9223,
29918,
10314,
29918,
25978,
261,
29918,
2587,
29918,
27959,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
... |
sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/key_vault_client_enums.py | mccoyp/azure-keyvault-7.3-preview | 0 | 82890 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
2178,
10462,
21676,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
1806,
19245,
... |
boilerplate_app/tasks.py | taher-systango/DjangoUnboxed | 68 | 187728 | <gh_stars>10-100
from celery import shared_task
@shared_task
def add(a, b):
return (a+b)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
6432,
708,
1053,
7258,
29918,
7662,
13,
13,
13,
29992,
12366,
29918,
7662,
13,
1753,
788,
29898,
29874,
29892,
289,
1125,
13,
1678,
736,
313,
29... |
model/Encoder.py | ECCV7129/ECCV2022_submission_7129 | 1 | 173176 | from torch import nn
import torch
from model.Swin import SwinTransformer3D
import copy
class swin_encoder(nn.Module):
def __init__(self , device , drop , checkpoint_encoder):
super().__init__()
checkpoint = checkpoint_encoder
self.device=device
self.label= 'demo/label_map_k400.txt'
... | [
1,
515,
4842,
305,
1053,
302,
29876,
13,
5215,
4842,
305,
13,
3166,
1904,
29889,
29903,
5080,
1053,
3925,
262,
13372,
261,
29941,
29928,
13,
5215,
3509,
13,
1990,
2381,
262,
29918,
3977,
6119,
29898,
15755,
29889,
7355,
1125,
13,
1678,
... |
module_pie_chart.py | barnett617/python_analysis | 2 | 129135 | <gh_stars>1-10
# -*-coding:utf-8-*-
# 饼状图
from matplotlib import pyplot as plt
import data_source
# 数据源
mobile_176xxxx4617 = data_source.mobile_176xxxx4617
mobile_155xxxx9617 = data_source.mobile_155xxxx9617
mobile_173xxxx9636 = data_source.mobile_173xxxx9636
mobile_176xxxx4617_sum = 0
mobile_155xxxx9617_sum = 0
mob... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
29883,
3689,
29901,
9420,
29899,
29947,
29899,
29930,
29899,
13,
29937,
29871,
236,
168,
191,
31531,
30861,
13,
13,
3166,
22889,
1053,
11451,
... |
Questions/Chief in Chains/solution.py | leander-dsouza/Abhyudaya_2020 | 1 | 59058 | <filename>Questions/Chief in Chains/solution.py<gh_stars>1-10
class Solution(object):
def reconstructQueue(self, people):
people.sort(key=lambda x: (-x[0], x[1]))
output = []
for p in people:
output.insert(p[1], p)
return output
m = int(input())
k = Solution()
a... | [
1,
529,
9507,
29958,
2182,
2297,
29914,
1451,
2575,
297,
678,
2708,
29914,
2929,
918,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1990,
24380,
29898,
3318,
1125,
13,
13,
13,
1678,
822,
337,
11433,
... |
development/testsite/blog/migrations/0002_auto_20190126_1538.py | iggy12345/django_blog | 0 | 150287 | <filename>development/testsite/blog/migrations/0002_auto_20190126_1538.py
# Generated by Django 2.1.5 on 2019-01-26 21:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0001_initial'),
('blog', '0001_in... | [
1,
529,
9507,
29958,
25431,
29914,
1688,
2746,
29914,
7312,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29906,
29918,
6921,
29918,
29906,
29900,
29896,
29929,
29900,
29896,
29906,
29953,
29918,
29896,
29945,
29941,
29947,
29889,
2272,
13,
... |
unshorten/models.py | bitmazk/django-unshorten | 3 | 1610630 | <filename>unshorten/models.py
"""Models for the ``unshorten`` app."""
from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class APICallHistoryBase(models.Model):
"""
Stores the amount of API calls per user per... | [
1,
529,
9507,
29958,
348,
12759,
264,
29914,
9794,
29889,
2272,
13,
15945,
29908,
23785,
363,
278,
4954,
348,
12759,
264,
16159,
623,
1213,
15945,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
316... |
proxyclient/tools/reboot.py | EricRabil/m1n1 | 1,604 | 54289 | <filename>proxyclient/tools/reboot.py<gh_stars>1000+
#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
import sys, pathlib
sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
from m1n1.setup import *
p.reboot()
| [
1,
529,
9507,
29958,
14701,
4645,
29914,
8504,
29914,
276,
4777,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
10937,
29928,
... |
docs/archive/slash/docking-example/scripts/euler2rotmat.py | sjdv1982/seamless | 15 | 126438 | import sys, os
from read_struc import read_struc
from math import sin, cos
import numpy as np
def euler2rotmat(phi,ssi,rot):
cs=cos(ssi)
cp=cos(phi)
ss=sin(ssi)
sp=sin(phi)
cscp=cs*cp
cssp=cs*sp
sscp=ss*cp
sssp=ss*sp
crot=cos(rot)
srot=sin(rot)
r1 = crot * cscp + srot * sp
... | [
1,
1053,
10876,
29892,
2897,
13,
3166,
1303,
29918,
10582,
29883,
1053,
1303,
29918,
10582,
29883,
13,
3166,
5844,
1053,
4457,
29892,
6776,
13,
5215,
12655,
408,
7442,
13,
13,
1753,
321,
8584,
29906,
5450,
2922,
29898,
2876,
29892,
893,
... |
pyasyncserver/pipes/__init__.py | agratoth/pyasyncserver | 0 | 179455 | from .pipe import Pipe
from .http_pipe import HTTPPipe
from .nats_pipe import NATSPipe
from .directions import PipeDirections
from .helpers import PipePool | [
1,
515,
869,
17760,
1053,
7362,
412,
13,
3166,
869,
1124,
29918,
17760,
1053,
7331,
12197,
412,
13,
3166,
869,
27479,
29918,
17760,
1053,
26038,
5550,
15705,
13,
3166,
869,
20146,
1953,
1053,
7362,
412,
29928,
533,
1953,
13,
13,
3166,
... |
su4/path_util.py | njuwelkin/su4 | 0 | 48855 | <filename>su4/path_util.py
import os, sys
def addModulePath(file):
utils_path = os.path.dirname(os.path.abspath(file)) + "/../utils"
sys.path.append(utils_path)
| [
1,
529,
9507,
29958,
2146,
29946,
29914,
2084,
29918,
4422,
29889,
2272,
13,
5215,
2897,
29892,
10876,
13,
13,
1753,
788,
7355,
2605,
29898,
1445,
1125,
13,
1678,
3667,
29879,
29918,
2084,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,... |
python/tk_houdini_flipbook/create_slate.py | nfa-vfxim/tk-houdini-flipbook | 3 | 1611916 | <filename>python/tk_houdini_flipbook/create_slate.py<gh_stars>1-10
# MIT License
# Copyright (c) 2020 Netherlands Film Academy
# 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 restri... | [
1,
529,
9507,
29958,
4691,
29914,
11178,
29918,
29882,
2736,
2172,
29918,
29888,
3466,
2909,
29914,
3258,
29918,
2536,
403,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
341,
1806,
19245,
13,
13,... |
f_highboost.py | shsandro/high-boost-filter | 1 | 151713 | <filename>f_highboost.py
import scipy.fftpack as fp
from scipy import signal
import numpy as np
import numpy.fft
import cv2
import matplotlib.pylab as pylab
# carrega a imagem
img = cv2.imread(input("Digite o caminho para a imagem de entrada: "))[:, :, 0]
# lê o valor de D
D = int(input("Digite o valor de D para o k... | [
1,
529,
9507,
29958,
29888,
29918,
9812,
17079,
29889,
2272,
13,
5215,
4560,
2272,
29889,
600,
29873,
4058,
408,
285,
29886,
13,
3166,
4560,
2272,
1053,
7182,
13,
5215,
12655,
408,
7442,
13,
5215,
12655,
29889,
600,
29873,
13,
5215,
138... |
src/common/status.py | THUKElab/Video2Description | 152 | 191806 | from enum import Enum
class ModelWeightsStatus(Enum):
NO_INFO = 0
SUCCESS = 1
MODEL_NOT_FOUND = 2
WIP = 3 | [
1,
515,
14115,
1053,
1174,
398,
13,
13,
1990,
8125,
4806,
5861,
5709,
29898,
16854,
1125,
13,
1678,
11698,
29918,
11690,
308,
353,
29871,
29900,
13,
1678,
20134,
26925,
308,
353,
29871,
29896,
13,
1678,
16999,
2287,
29931,
29918,
12256,
... |
EstruturaDeDecisao/18 terminar.py | TheCarvalho/atividades-wikipython | 0 | 94659 |
# ex18 - Faça um Programa que peça uma data no formato dd/mm/aaaa e determine se a mesma é uma data válida.
| [
1,
29871,
13,
29937,
429,
29896,
29947,
448,
7748,
4277,
1922,
7835,
29874,
712,
1236,
4277,
3672,
848,
694,
883,
1219,
24488,
29914,
4317,
29914,
27137,
321,
8161,
409,
263,
4883,
655,
904,
3672,
848,
12196,
1458,
29889,
13,
2
] |
tests.py | Airead/pysha3 | 30 | 95699 | <reponame>Airead/pysha3
from __future__ import print_function
import hashlib
import hmac
import os
import sys
import unittest
import sha3
if sys.version_info[0] == 3:
fromhex = bytes.fromhex
def tobyte(b):
return bytes([b])
def asunicode(s):
return s
else:
def fromhex(s):
r... | [
1,
529,
276,
1112,
420,
29958,
29909,
533,
328,
29914,
2272,
17051,
29941,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
6608,
1982,
13,
5215,
298,
8628,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
443,
2795... |
synthetic/functions.py | wchen459/MO-PaDGAN-Optimization | 3 | 95912 | """
Test functions
Author(s): <NAME> (<EMAIL>)
"""
import numpy as np
import tensorflow as tf
class Function(object):
def __init__(self):
pass
def evaluate(self, data):
x = tf.placeholder(tf.float32, shape=[None, self.dim])
y = self.equation(x)
with tf.Session() as... | [
1,
9995,
29871,
13,
3057,
3168,
13,
13,
13720,
29898,
29879,
1125,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
13,
13,
1990,
6680,
29898,
3318,
1... |
src/skyciv/classes/model/components/materials/materials.py | skyciv/skyciv-pip | 4 | 114916 | <reponame>skyciv/skyciv-pip<gh_stars>1-10
from skyciv.classes.model.components._base_class.model_collection_component import ModelCollectionComponent
from skyciv.classes.model.components.materials.default_materials import default_materials
from skyciv.classes.model.components.materials.material import Material
from sky... | [
1,
529,
276,
1112,
420,
29958,
7912,
29883,
440,
29914,
7912,
29883,
440,
29899,
13096,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
2071,
11078,
440,
29889,
13203,
29889,
4299,
29889,
14036,
3032,
3188,
2991... |
src/pypytranspy/transformations/fstring_to_format_transformer.py | expobrain/pypytranspy | 4 | 85775 | import ast
from pypytranspy.transformations.base_transformer import BaseTransformer
class FStringToFormatTransformer(BaseTransformer):
minimum_version = [3, 6]
def pre_JoinedStr(self):
# Collect string and args for format()
str_value = ""
str_args = []
for value in self.cur... | [
1,
1053,
8717,
13,
13,
3166,
282,
1478,
29891,
3286,
2272,
29889,
9067,
800,
29889,
3188,
29918,
9067,
261,
1053,
7399,
13372,
261,
13,
13,
13,
1990,
383,
1231,
1762,
5809,
13372,
261,
29898,
5160,
13372,
261,
1125,
13,
13,
1678,
9212... |
examples/python/cpu/numpy/example_11.py | kant/ocean-tensor-package | 27 | 1604315 | <gh_stars>10-100
import pyOcean_cpu as ocean
import numpy as np
import pyOceanNumpy
a = ocean.tensor([5])
s = ocean.tensor([], ocean.float)
s.fill(3);
a.fill([[False]]); print(a)
a.fill([(1,)]); print(a)
a.fill([2.0]); print(a)
a.fill(s); print(a)
a.fill([s]); print(a)
s = np.asarray(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
11451,
29949,
11956,
29918,
21970,
408,
23474,
13,
5215,
12655,
408,
7442,
13,
5215,
11451,
29949,
11956,
8009,
2272,
13,
13,
29874,
353,
23474,
2... |
matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 13 | 4270 | <reponame>gottaegbert/penter
"""
============
Dollar Ticks
============
Use a `~.ticker.FormatStrFormatter` to prepend dollar signs on y axis labels.
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
# Fixing random state for reproducibility
np.random.seed(19680801)
fig, ax = ... | [
1,
529,
276,
1112,
420,
29958,
7085,
941,
387,
2151,
29914,
29886,
5893,
13,
15945,
29908,
13,
4936,
2751,
13,
29928,
26810,
323,
7358,
13,
4936,
2751,
13,
13,
11403,
263,
421,
30022,
29889,
29873,
6541,
29889,
5809,
5015,
18522,
29952,... |
src/lumigo_tracer/parsing_utils.py | anniyanvr/python_tracer | 47 | 95777 | import json
import re
import urllib.parse
from typing import Tuple, Dict, Union, List, Any, Optional
from lumigo_tracer.libs import xmltodict
import functools
import itertools
from collections.abc import Iterable
from lumigo_tracer.lumigo_utils import Configuration, get_logger
def safe_get(d: Union[dict, list], key... | [
1,
1053,
4390,
13,
5215,
337,
13,
5215,
3142,
1982,
29889,
5510,
13,
3166,
19229,
1053,
12603,
552,
29892,
360,
919,
29892,
7761,
29892,
2391,
29892,
3139,
29892,
28379,
13,
13,
3166,
19703,
5973,
29918,
29873,
945,
261,
29889,
10254,
1... |
nasws/cnn/search_space/monodepth/params/search-decoder-v1/resnext101_wsl.py | kcyu2014/nas-landmarkreg | 8 | 1600843 | <reponame>kcyu2014/nas-landmarkreg<filename>nasws/cnn/search_space/monodepth/params/search-decoder-v1/resnext101_wsl.py
from monodepth.models import MidasNet, MidasNetSearch
from monodepth.optim.optimizer import MGDA, GDA
import torch
import torch.optim as optim
from monodepth.validation import Validation
from monodept... | [
1,
529,
276,
1112,
420,
29958,
29895,
1270,
29884,
29906,
29900,
29896,
29946,
29914,
22911,
29899,
1049,
3502,
1727,
29966,
9507,
29958,
22911,
5652,
29914,
29883,
15755,
29914,
4478,
29918,
3493,
29914,
3712,
356,
29886,
386,
29914,
7529,
... |
RecoPPS/Local/python/ctppsDiamondLocalReconstruction_cff.py | ckamtsikis/cmssw | 852 | 39143 | <gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
# reco hit production
from RecoPPS.Local.ctppsDiamondRecHits_cfi import ctppsDiamondRecHits
# local track fitting
from RecoPPS.Local.ctppsDiamondLocalTracks_cfi import ctppsDiamondLocalTracks
ctppsDiamondLocalReconstructionTask = cms.Task(
ctppsDiamondR... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
5215,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
29937,
337,
1111,
7124,
5802,
13,
3166,
3599,
29877,
29925... |
identityholder.py | BenNordick/HiLoop | 1 | 46626 | <filename>identityholder.py<gh_stars>1-10
class IdentityHolder:
"""
Wraps an object so that it can be quickly compared by object identity rather than value.
Also provides a total order based on object address.
This is frequently useful for sets representing cycles: set value equality is O(n) but object... | [
1,
529,
9507,
29958,
22350,
7694,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1990,
27486,
11439,
29901,
13,
1678,
9995,
13,
1678,
399,
336,
567,
385,
1203,
577,
393,
372,
508,
367,
9098,
9401,
49... |
src/bert.py | emerging-welfare/random_sampling-vs-keyword_filtering | 0 | 83376 | <reponame>emerging-welfare/random_sampling-vs-keyword_filtering
from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler
from torch.autograd import Variable
from sklearn.metrics import classification_report, confusion_matrix, f1_score
from transformers import *
from torch import nn
impor... | [
1,
529,
276,
1112,
420,
29958,
25154,
3460,
29899,
29893,
761,
598,
29914,
8172,
29918,
13445,
10335,
29899,
4270,
29899,
26766,
29918,
4572,
292,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
323,
6073,
16390,
24541,
29892,
3630,
... |
tests/read_config.py | tyxio/txpy-azurehelper | 0 | 26494 | import logging.config
import os
import yaml
__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
def read_logging_config():
with open(os.path.join(__location__, 'logging.cfg'), 'r') as stream:
try:
logging_config = yaml.safe_load(stream)
logg... | [
1,
1053,
12183,
29889,
2917,
13,
5215,
2897,
13,
13,
5215,
343,
8807,
13,
13,
1649,
5479,
1649,
353,
2897,
29889,
2084,
29889,
6370,
2084,
29898,
13,
1678,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
29883,
9970,
3285,
2897,... |
application.py | meverg/goal_model_generator | 1 | 173126 | <filename>application.py<gh_stars>1-10
from flask import Flask, request, render_template
import US2SMT
import Parser
import en_core_web_md
nlp = en_core_web_md.load()
print('model loaded')
app = Flask(__name__)
@app.after_request
def set_response_headers(response):
response.headers['Cache-Control'] = 'no-cache, no... | [
1,
529,
9507,
29958,
6214,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
29784,
1053,
2379,
1278,
29892,
2009,
29892,
4050,
29918,
6886,
13,
5215,
3148,
29906,
29903,
11490,
13,
5215,
1459,
643,
... |
preql/__main__.py | erezsh/Preql | 522 | 81734 | <reponame>erezsh/Preql
import json
import argparse
from pathlib import Path
from itertools import chain
import time
from . import Preql, __version__, Signal
from . import settings
parser = argparse.ArgumentParser(description='Preql command-line interface (aka REPL)')
parser.add_argument('-i', '--interactive', action=... | [
1,
529,
276,
1112,
420,
29958,
406,
29920,
845,
29914,
6572,
1519,
13,
5215,
4390,
13,
5215,
1852,
5510,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
4256,
8504,
1053,
9704,
13,
5215,
931,
13,
13,
3166,
869,
1053,
4721,
1519,
29892,
... |
utils/visualizer.py | darsh169/Representation-Learning-for-Information-Extraction | 53 | 62686 | <reponame>darsh169/Representation-Learning-for-Information-Extraction
import json
import cv2
def tesseract_ocr(image_path, ocr_path):
image = cv2.imread(image_path.as_posix())
with open(ocr_path, 'r') as f:
ocr_data = json.load(f)
empty_index = [i for i, ele in enumerate(ocr_data['text']) if ele... | [
1,
529,
276,
1112,
420,
29958,
16702,
845,
29896,
29953,
29929,
29914,
1123,
26081,
29899,
29931,
799,
1076,
29899,
1454,
29899,
20350,
29899,
5647,
13857,
13,
5215,
4390,
13,
5215,
13850,
29906,
13,
13,
1753,
260,
16136,
627,
29918,
8415... |
train/ip.py | VCG/gp | 0 | 19753 | <reponame>VCG/gp<gh_stars>0
import cPickle as pickle
import os; import sys; sys.path.append('..')
import gp
import gp.nets as nets
PATCH_PATH = ('iplb')
X_train, y_train, X_test, y_test = gp.Patch.load_rgb(PATCH_PATH)
X_train = X_train[:,:-1,:,:]
X_test = X_test[:,:-1,:,:]
cnn = nets.RGNetPlus()
cnn = cnn.fit(X_tra... | [
1,
529,
276,
1112,
420,
29958,
8257,
29954,
29914,
29887,
29886,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
274,
29925,
860,
280,
408,
5839,
280,
13,
5215,
2897,
29936,
1053,
10876,
29936,
10876,
29889,
2084,
29889,
4397,
877... |
src/simple_email/consts.py | deeso/simple-email | 0 | 177708 | <gh_stars>0
SMTP_SERVICE_BLOCK = 'smtp-service'
SMTP_HOST = 'smtp_host'
SMTP_PORT = 'smtp_port'
SMTP_USERNAME = 'smtp_username'
SMTP_PASSWORD = '<PASSWORD>'
SMTP_USE_TLS = 'smtp_use_tls'
SMTP_LEVEL = 'smtp_level'
SMTP_DEFAULT_VALUES = {
SMTP_HOST: '127.0.0.1',
SMTP_PORT: '25',
SMTP_USERNAME: None,
SMTP... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
17061,
3557,
29918,
6304,
19059,
29918,
29933,
21339,
353,
525,
3844,
9392,
29899,
5509,
29915,
13,
17061,
3557,
29918,
20832,
353,
525,
3844,
9392,
29918,
3069,
29915,
13,
17061,
3557,
2... |
Python_LEVEL_TWO/Part6_regular_expressions.py | chernyshov-dev/WebDev | 4 | 150961 | import re
patterns = ["term1", "term2"]
text = "This is a string with term1, not the other"
split_term = "@"
email = "<EMAIL>"
# for pattern in patterns:
# print("I'm searching for: " + pattern)
#
# if re.search(pattern, text):
# print("MATCH!")
# else:
# print("NO MATCH!")
print(re.spli... | [
1,
1053,
337,
13,
13,
11037,
29879,
353,
6796,
8489,
29896,
613,
376,
8489,
29906,
3108,
13,
13,
726,
353,
376,
4013,
338,
263,
1347,
411,
1840,
29896,
29892,
451,
278,
916,
29908,
13,
5451,
29918,
8489,
353,
376,
5507,
13,
5269,
35... |
MLplatform/core/migrations/0004_auto_20210410_1339.py | mihai011/Docker-Django-Posgres-Celery-Rabbitmq | 0 | 1615688 | # Generated by Django 3.1 on 2021-04-10 13:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20210323_1406'),
]
operations = [
migrations.RenameField(
model_name='email',
old_name='message',
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29946,
29899,
29896,
29900,
29871,
29896,
29941,
29901,
29941,
29929,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
13,
13,... |
floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | 0 | 177865 | <reponame>muzudho/e-gov-vote-kifuwarabe-player-client<filename>floodgate/server_state_machine/layer2_decoration_event/tell.py
from app import app
from floodgate.server_state_machine.layer1_transition_map.tell import TellState as _TransitionState
def create():
"""ステート生成"""
return _DecoratedState()
class _Dec... | [
1,
529,
276,
1112,
420,
29958,
2589,
29920,
566,
1251,
29914,
29872,
29899,
13513,
29899,
15814,
29899,
29895,
361,
29884,
4495,
4302,
29899,
9106,
29899,
4645,
29966,
9507,
29958,
29888,
417,
397,
17062,
29914,
2974,
29918,
3859,
29918,
23... |
yoti_python_sandbox/doc_scan/task/sandbox_text_extraction_task.py | getyoti/yoti-python-sdk-sandbox | 0 | 96861 | import base64
from yoti_python_sdk.utils import YotiSerializable
from yoti_python_sandbox.doc_scan.document_filter import ( # noqa: F401
SandboxDocumentFilter,
)
from yoti_python_sandbox.doc_scan.task.sandbox_text_extraction_recommendation import ( # noqa: F401
SandboxTextDataExtractionRecommendation,
)
cl... | [
1,
1053,
2967,
29953,
29946,
13,
13,
3166,
343,
15297,
29918,
4691,
29918,
15348,
29889,
13239,
1053,
612,
15297,
9125,
13902,
13,
3166,
343,
15297,
29918,
4691,
29918,
29879,
26738,
29889,
1514,
29918,
16192,
29889,
3225,
29918,
4572,
1053... |
tests/utilities/test_tasks.py | elenapalesis/prefect | 0 | 194204 | import inspect
import pytest
from prefect.core import Flow, Task
from prefect.engine.flow_runner import FlowRunner
from prefect.engine.signals import PAUSE
from prefect.engine.state import Paused, Resume
from prefect.utilities import tasks
class TestTaskDecorator:
def test_task_decorator_can_be_used_without_cal... | [
1,
1053,
16096,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
758,
3647,
29889,
3221,
1053,
22787,
29892,
9330,
13,
3166,
758,
3647,
29889,
10599,
29889,
1731,
29918,
27492,
1053,
22787,
16802,
13,
3166,
758,
3647,
29889,
10599,
29889,
4530,
... |
pyNastran/op2/op2.py | als0052/pyNastran | 0 | 185521 | <reponame>als0052/pyNastran
#!/usr/bin/env python3
# Filename: op2.py
"""
Defines the main OP2 class. Defines:
- read_op2(op2_filename=None, combine=True, subcases=None,
exclude_results=None, include_results=None,
log=None, debug=True, debug_file=None, build_dataframe=False,
skip... | [
1,
529,
276,
1112,
420,
29958,
1338,
29900,
29900,
29945,
29906,
29914,
2272,
29940,
7614,
273,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
2514,
3871,
29901,
1015,
29906,
29889,
2272,
13,
13,
15945,
29908,
1... |
spamresponsibly.py | velo223/Velo-s-Spam-Scripts | 0 | 89287 | <reponame>velo223/Velo-s-Spam-Scripts<filename>spamresponsibly.py
val = int(input(print("Enter a number: ")))
option = {
"n":"Nae nigga nae \n", "c":"Uohhhhhh :sob::sob::sob: \n",
"i":"I am living in your walls, oomfie. \n"
}
userinput = input("Choose your poison: [N]iggas, [C]unny, [I]solation")
with... | [
1,
529,
276,
1112,
420,
29958,
955,
29877,
29906,
29906,
29941,
29914,
29963,
7078,
29899,
29879,
29899,
5592,
314,
29899,
4081,
29879,
29966,
9507,
29958,
1028,
314,
26679,
14981,
29889,
2272,
13,
791,
353,
938,
29898,
2080,
29898,
2158,
... |
utils/__init__.py | jaobernardi/roboscovid-redacted | 0 | 58177 | <filename>utils/__init__.py
from .parsing import parse_string
from .tokens import token
from .users import getUsers, getPlaces
from .flags import flag_define, value_assign | [
1,
529,
9507,
29958,
13239,
29914,
1649,
2344,
26914,
2272,
13,
3166,
869,
862,
2976,
1053,
6088,
29918,
1807,
13,
3166,
869,
517,
12360,
1053,
5993,
13,
3166,
869,
7193,
1053,
679,
5959,
29892,
679,
29925,
6048,
13,
3166,
869,
15764,
... |
main.py | b-com/ACUITEE | 3 | 1612198 | # main.py – Software ACUITEE
# Copyright 2021 b<>com. All rights reserved.
# This software is licensed under the Apache License, Version 2.0.
# 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... | [
1,
396,
1667,
29889,
2272,
785,
18540,
14614,
29965,
9094,
29923,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
289,
25299,
510,
29889,
2178,
10462,
21676,
29889,
13,
29937,
910,
7047,
338,
7794,
21144,
1090,
278,
13380,
19245,... |
app/main/schema/http_status_schema.py | abhishek9sharma/nyctaxiserver | 0 | 114798 | <filename>app/main/schema/http_status_schema.py
from flask_restplus import Namespace, fields
class HTTPStatus:
""" Schema for showing messages related to various HTTP Statuses """
ns = Namespace('httpstatus', 'Schema for displaying http status')
statusschema = ns.model('httpstatus', {
... | [
1,
529,
9507,
29958,
932,
29914,
3396,
29914,
11010,
29914,
1124,
29918,
4882,
29918,
11010,
29889,
2272,
13,
3166,
29784,
29918,
5060,
11242,
1053,
14706,
3535,
29892,
4235,
13,
13,
1990,
7331,
5709,
29901,
13,
1678,
9995,
1102,
2603,
36... |
python/overlapintegrals/overlapintegrals.py | berquist/overlapintegrals | 1 | 111156 | <filename>python/overlapintegrals/overlapintegrals.py
from functools import reduce
from math import exp, floor, pi
from typing import Tuple, Union
from scipy.special import binom as binomial
Number = Union[int, float]
def dist2(
xa: Number, ya: Number, za: Number, xb: Number, yb: Number, zb: Number
) -> float:... | [
1,
529,
9507,
29958,
4691,
29914,
957,
6984,
14146,
1338,
29914,
957,
6984,
14146,
1338,
29889,
2272,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
3166,
5844,
1053,
1518,
29892,
11904,
29892,
2930,
13,
3166,
19229,
1053,
12603,
552,
29892,... |
2018/09/sol/bike.py | lfrommelt/monty | 0 | 103983 | """
This module contains the definitions for Bike and its subclasses Bicycle and
Motorbike.
"""
class Bike:
"""
Class defining a bike that can be ridden and have its gear changed.
Attributes:
seats: number of seats the bike has
gears: number of gears the bike has
"""
def __init__... | [
1,
9995,
13,
4013,
3883,
3743,
278,
15848,
363,
3457,
446,
322,
967,
1014,
13203,
350,
4245,
2841,
322,
13,
29924,
327,
272,
5365,
446,
29889,
13,
15945,
29908,
13,
13,
13,
1990,
3457,
446,
29901,
13,
1678,
9995,
13,
1678,
4134,
161... |
rps/examples/Finite_Time_Barriers/main.py | mohitsrinivasan/Barrier_MotionPlanning | 10 | 193436 | import rps.robotarium as robotarium
from rps.utilities import *
from rps.utilities.barrier_certificates import *
from rps.utilities.controllers import *
from rps.utilities.transformations import *
from reachGoal import reachGoal
from matplotlib import patches
import numpy as np
import time
N = 1
initial_conditions = n... | [
1,
1053,
364,
567,
29889,
307,
7451,
22826,
408,
19964,
22826,
13,
3166,
364,
567,
29889,
4422,
1907,
1053,
334,
13,
3166,
364,
567,
29889,
4422,
1907,
29889,
1646,
4336,
29918,
6327,
928,
1078,
1053,
334,
13,
3166,
364,
567,
29889,
4... |
hknlib/election/groups.py | awang193/hknlib | 0 | 1616533 | from __future__ import (division, absolute_import, print_function,
unicode_literals)
from googleapiclient.discovery import build
from .settings import SPREADSHEET_ID
def add_user_to_group(credentials, user, groupKey):
#add USER to a mail list GROUP
service = build('admin', 'directory_... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
313,
4563,
2459,
29892,
8380,
29918,
5215,
29892,
1596,
29918,
2220,
29892,
13,
462,
4706,
29104,
29918,
20889,
1338,
29897,
13,
13,
3166,
5386,
481,
293,
1593,
29889,
2218,
11911,
29891,
1053,
2048,... |
src/google/appengine/datastore/datastore_query.py | myelin/appengine-python-standard | 0 | 7689 | <reponame>myelin/appengine-python-standard<gh_stars>0
#!/usr/bin/env python
#
# Copyright 2007 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | [
1,
529,
276,
1112,
420,
29958,
1357,
24446,
29914,
932,
10599,
29899,
4691,
29899,
15770,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,... |
hw1/0711529_hw1.py | KJ-black/Introduction-to-Operating-Systems | 0 | 77150 | <reponame>KJ-black/Introduction-to-Operating-Systems
"""
Date: 2021/01/02
Describe: OS hw1
Auther: <NAME>
ID: 0711529
"""
import time # to calculate the running time
## for task1
import hashlib
## for task2
from bs4 import BeautifulSoup
import requests
## multithreading
import threading
import qu... | [
1,
529,
276,
1112,
420,
29958,
29968,
29967,
29899,
8517,
29914,
25898,
29899,
517,
29899,
7094,
1218,
29899,
3924,
29879,
13,
15945,
19451,
13,
2539,
29901,
29871,
29906,
29900,
29906,
29896,
29914,
29900,
29896,
29914,
29900,
29906,
30004,
... |
torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py | alchemy315/NoPFS | 0 | 22305 | import argparse
import os
import sys
sys.path.append(os.environ['CI_SITE_CONFIG'])
import ci_site_config
import run
import common
parser = argparse.ArgumentParser()
parser.add_argument("--prov", help="core provider", choices=["psm2", "verbs", \
"tcp", "udp", "sockets", "shm"])
parser.add_argument... | [
1,
1053,
1852,
5510,
13,
5215,
2897,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
4397,
29898,
359,
29889,
21813,
1839,
8426,
29918,
29903,
9094,
29918,
25903,
11287,
13,
5215,
4583,
29918,
2746,
29918,
2917,
13,
5215,
1065,
13,
5215,
... |
pywren_ibm_cloud/libs/cloudpickle/__init__.py | gerardparis/pywren-ibm-cloud | 0 | 52417 | import pickle
from pywren_ibm_cloud.libs.cloudpickle.cloudpickle import *
__version__ = '1.2.2'
| [
1,
1053,
5839,
280,
13,
13,
13,
3166,
282,
5693,
1267,
29918,
29690,
29918,
9274,
29889,
10254,
29889,
9274,
23945,
280,
29889,
9274,
23945,
280,
1053,
334,
13,
13,
13,
1649,
3259,
1649,
353,
525,
29896,
29889,
29906,
29889,
29906,
2991... |
pyeccodes/defs/grib2/template_3_63_def.py | ecmwf/pyeccodes | 7 | 95750 | import pyeccodes.accessors as _
def load(h):
h.add(_.Transient('biFourierMakeTemplate', 0))
h.add(_.Label('BiFourier coefficients'))
h.add(_.Constant('biFourierCoefficients', 1))
h.add(_.Codetable('spectralType', 1, "3.6.table", _.Get('masterDir'), _.Get('localDir')))
h.alias('spectralDataReprese... | [
1,
1053,
282,
4099,
617,
2631,
29889,
5943,
943,
408,
903,
13,
13,
13,
1753,
2254,
29898,
29882,
1125,
13,
13,
1678,
298,
29889,
1202,
29898,
5396,
4300,
993,
877,
5365,
29943,
283,
4336,
9984,
6733,
742,
29871,
29900,
876,
13,
1678,
... |
server.py | yenyuuuuu/esys_hw3 | 0 | 80803 | <reponame>yenyuuuuu/esys_hw3
import socket
import json
import matplotlib.pyplot as plt
import numpy as np
HOST = '192.168.50.254' # Standard loopback interface address (localhost) 192.168.50.254
PORT = 3000 # Port to listen on (non-privileged ports are > 1023)
# use ggplot style for more sophisticated... | [
1,
529,
276,
1112,
420,
29958,
11771,
29891,
29884,
29884,
29884,
29884,
29884,
29914,
267,
952,
29918,
26828,
29941,
13,
5215,
9909,
30004,
13,
5215,
4390,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
12655,
40... |
examples/apprtc/apprtc.py | nickaknudson/aiortc | 1 | 169141 | <filename>examples/apprtc/apprtc.py
import argparse
import asyncio
import json
import logging
import os
import random
import time
import aiohttp
import cv2
import websockets
from aiortc import (AudioStreamTrack, RTCPeerConnection, RTCSessionDescription,
VideoStreamTrack)
from aiortc.contrib.media i... | [
1,
529,
9507,
29958,
19057,
29914,
932,
2273,
29883,
29914,
932,
2273,
29883,
29889,
2272,
13,
5215,
1852,
5510,
13,
5215,
408,
948,
3934,
13,
5215,
4390,
13,
5215,
12183,
13,
5215,
2897,
13,
5215,
4036,
13,
5215,
931,
13,
13,
5215,
... |
good_spot/places/migrations/0040_actualpopulartimes.py | jasmine92122/NightClubBackend | 0 | 119636 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-30 13:02
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
29889,
29955,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29900,
29896,
29899,
29941,
299... |
schedule/views.py | AndrewSaltz/Lab_Schedule | 0 | 25454 | from django.shortcuts import render
import datetime
from datetime import date
import calendar
from schedule.models import Event, period_choices, cart_choice
from django.views.generic import UpdateView, TemplateView, ListView
from schedule.forms import ReservationForm
from django.http import HttpResponseRedirect, HttpRe... | [
1,
515,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
5215,
12865,
13,
3166,
12865,
1053,
2635,
13,
5215,
17684,
13,
3166,
20410,
29889,
9794,
1053,
6864,
29892,
3785,
29918,
1859,
1575,
29892,
7774,
29918,
16957,
13,
3166,
9557,
29889... |
MindSPONGE/mindsponge/md/cybertron/cutoff.py | mindspore-ai/mindscience | 3 | 71618 | # ============================================================================
# Copyright 2021 The AIMM team at Shenzhen Bay Laboratory & Peking University
#
# People: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>,
# <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
#
# This code is a part of Cybertron-Code package.
#
# The Cyb... | [
1,
396,
1275,
9166,
9166,
9166,
9166,
4936,
1360,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
450,
319,
29902,
7428,
3815,
472,
1383,
4666,
3169,
6211,
16715,
7606,
669,
349,
1416,
292,
3014,
13,
29937,
13,
29937,
11647,
... |
variation/validators/single_nucleotide_variation_base.py | GenomicMedLab/varlex | 0 | 180505 | """The module for Single Nucleotide Variation Validation."""
from .validator import Validator
import logging
logger = logging.getLogger('variation')
logger.setLevel(logging.DEBUG)
class SingleNucleotideVariationBase(Validator):
"""The Single Nucleotide Variation Validator Base class."""
def silent_mutation_... | [
1,
9995,
1576,
3883,
363,
16740,
405,
1682,
280,
327,
680,
9586,
362,
15758,
362,
1213,
15945,
13,
3166,
869,
3084,
1061,
1053,
15758,
1061,
13,
5215,
12183,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
877,
5927,
362,
1495,
13,
2170... |
world_of_warships/war_gaming.py | MaT1g3R/YasenBaka | 6 | 78376 | <reponame>MaT1g3R/YasenBaka<gh_stars>1-10
from typing import Optional
from wowspy import Region, WowsAsync
async def __get_id(coro, logger, key):
try:
resp = await coro
except Exception as e:
logger.warn(str(e))
else:
data = resp.get('data', None)
if not data:
... | [
1,
529,
276,
1112,
420,
29958,
21870,
29911,
29896,
29887,
29941,
29934,
29914,
29979,
294,
264,
29933,
8245,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
19229,
1053,
28379,
13,
13,
3166,
281,
340,
1028,
2... |
tests/test_pvaapi.py | sasaki77/pvarpc2web | 0 | 178505 | <reponame>sasaki77/pvarpc2web
from .context import pvarpc2web
from .context import config
from .context import pvaapi
class PvaRpcTimeoutConfig(config.DefaultConfig):
PVA_RPC_TIMEOUT = 3
def test_set_timeout():
app = pvarpc2web.create_app(PvaRpcTimeoutConfig)
assert pvaapi.timeout == 3
| [
1,
529,
276,
1112,
420,
29958,
29879,
294,
9940,
29955,
29955,
29914,
29886,
1707,
6739,
29906,
2676,
13,
3166,
869,
4703,
1053,
282,
1707,
6739,
29906,
2676,
13,
3166,
869,
4703,
1053,
2295,
13,
3166,
869,
4703,
1053,
282,
1564,
2754,
... |
kungfucms/apps/account/models.py | kungfusoft/kungfucms | 0 | 75410 | <gh_stars>0
from django.core.mail import send_mail
from django.utils.translation import ugettext as _
from django.utils import timezone
from django.db import models
from django.contrib.auth.models import UserManager, PermissionsMixin
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.va... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
3221,
29889,
2549,
1053,
3638,
29918,
2549,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
408,
903,
13,
3166,
9557,
29889,
13239,
1053,
29431,
... |
game/views/tests/test_monthly_scoreboard.py | dimadk24/english-fight-api | 0 | 115215 | from datetime import timedelta
from django.utils import timezone
from rest_framework.response import Response
from game.models import AppUser, Game
url = "/api/monthly_scoreboard"
def get_response(api_client) -> Response:
return api_client.get(url)
def test_when_no_users(api_client):
AppUser.objects.all(... | [
1,
515,
12865,
1053,
5335,
287,
2554,
13,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
3166,
1791,
29918,
4468,
29889,
5327,
1053,
13291,
13,
13,
3166,
3748,
29889,
9794,
1053,
2401,
2659,
29892,
8448,
13,
13,
2271,
353,
5591,
2754,
... |
main.py | NMme/CrusaderAIManager | 0 | 84678 | import kivy
kivy.require('1.0.6') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.label import Label
import os
import shutil
import json
import codecs
class MyApp(App):
def build(self):
self.root = "/home/Games/Crusader-HDUP/CrusaderAIManager"
self.ai_shorts =... | [
1,
1053,
413,
440,
29891,
13,
29895,
440,
29891,
29889,
12277,
877,
29896,
29889,
29900,
29889,
29953,
1495,
396,
5191,
411,
596,
1857,
413,
440,
29891,
1873,
1738,
13,
3166,
413,
440,
29891,
29889,
932,
1053,
2401,
13,
3166,
413,
440,
... |
util/mccLog.py | ccchooko/webControlClient | 0 | 11661 | <gh_stars>0
#-*-coding:utf8-*-
import logging
from datetime import datetime
class mccLog(object):
def __init__(self):
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
filename= datetime.now(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29899,
29930,
29899,
29883,
3689,
29901,
9420,
29947,
29899,
29930,
29899,
13,
5215,
12183,
13,
3166,
12865,
1053,
12865,
13,
13,
1990,
286,
617,
3403,
29898,
3318,
1125,
13,
1678,... |
reo/migrations/0112_auto_20210713_0037.py | NREL/REopt_API | 7 | 30123 | # Generated by Django 3.1.12 on 2021-07-13 00:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0111_auto_20210708_2144'),
]
operations = [
migrations.RenameField(
model_name='sitemodel',
old_name='year_one_emiss... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29896,
29906,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29955,
29899,
29896,
29941,
29871,
29900,
29900,
29901,
29941,
29955,
13,
13,
3166,
9557,
29889,
2585,
1053,... |
PycharmProjects/PythonExercicios/ex045.py | RodrigoMASRamos/Projects.py | 0 | 38648 | # Exercício Python #045 - GAME: <NAME> e Tesoura
#
# Crie um programa que faça o computador jogar JOKENPÔ com você.
# Aprenda a arrumar as cores nas respostas!
from random import choice
from random import randint # Maneira utilizada na resolução deste exercício
from time import sleep
print('\033[1;31mATENÇÃO! ESTE ... | [
1,
396,
1222,
6269,
24394,
5132,
396,
29900,
29946,
29945,
448,
402,
25797,
29901,
529,
5813,
29958,
321,
323,
267,
283,
336,
13,
29937,
13,
29937,
315,
2546,
1922,
16914,
712,
2258,
4277,
288,
2912,
3136,
16812,
279,
435,
8949,
1430,
... |
rqalpha/mod/rqalpha_mod_fxdayu_source/data_source/mongo.py | quantModel/Rqalpha-myquant-learning | 44 | 115690 | # encoding: utf-8
from datetime import date, datetime, time
import motor.motor_asyncio
import numpy as np
import pandas as pd
from dateutil.relativedelta import relativedelta
from rqalpha.const import INSTRUMENT_TYPE
from rqalpha.model.instrument import Instrument
from rqalpha.utils.datetime_func import convert_date_t... | [
1,
396,
8025,
29901,
23616,
29899,
29947,
13,
3166,
12865,
1053,
2635,
29892,
12865,
29892,
931,
13,
13,
5215,
10992,
29889,
14817,
272,
29918,
294,
948,
3934,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
3166,
2635,
442... |
telluric/constants.py | FlorianPignol/telluric | 81 | 47397 | """Useful constants.
"""
from rasterio.crs import CRS
WGS84_SRID = 4326
#: WGS84 CRS.
WGS84_CRS = CRS.from_epsg(WGS84_SRID)
WEB_MERCATOR_SRID = 3857
#: Web Mercator CRS.
WEB_MERCATOR_CRS = CRS.from_epsg(WEB_MERCATOR_SRID)
# Best widely used, equal area projection according to
# http://icaci.org/documents/ICC_procee... | [
1,
9995,
11403,
1319,
17727,
29889,
13,
13,
15945,
29908,
13,
3166,
364,
1901,
601,
29889,
29883,
2288,
1053,
315,
12445,
13,
13,
29956,
10749,
29947,
29946,
29918,
14098,
1367,
353,
29871,
29946,
29941,
29906,
29953,
13,
29937,
29901,
39... |
algorithm4.py | guoqing-tang/algorithm | 1 | 73007 | # * -- utf-8 -- * # python3
# Author: Tang Time:2018/4/17
'''简述:要求输入某年某月某日 提问:求判断输入日期是当年中的第几天?'''
year = int(input('请输入年份:'))
month = int(input('请输入月份:'))
day = int(input('请输入日期:'))
if day >31:
print ('请正确输入')
if month > 12:
print('请正确输入')
list1 = [31,59,90,130,151,181,212,243,273,304,334]
if (year % 4) ... | [
1,
396,
334,
1192,
23616,
29899,
29947,
1192,
334,
1678,
396,
3017,
29941,
13,
29937,
13361,
29901,
27378,
259,
5974,
29901,
29906,
29900,
29896,
29947,
29914,
29946,
29914,
29896,
29955,
13,
13,
13,
12008,
234,
177,
131,
235,
194,
179,
... |
tests/test_decast.py | interesaaat/onnxconverter-common | 83 | 67159 | import unittest
from onnx import helper
from onnx import onnx_pb as onnx_proto
from onnxconverter_common.decast import decast
class DecastTestCase(unittest.TestCase):
def test_decast(self):
nodes = []
nodes[0:] = [helper.make_node('Identity', ['input1'], ['identity1'])]
nodes[1:] = [help... | [
1,
1053,
443,
27958,
13,
13,
3166,
373,
23818,
1053,
16876,
13,
3166,
373,
23818,
1053,
373,
23818,
29918,
24381,
408,
373,
23818,
29918,
17529,
13,
3166,
373,
23818,
535,
13549,
29918,
9435,
29889,
311,
4384,
1053,
1602,
579,
13,
13,
... |
2021/examples-in-class-2021-10-08/three_five_fifteen.py | ati-ozgur/course-python | 1 | 135079 |
for index in range(1,101):
# if index % 15 == 0:
# print("fifteen")
if index % 3 == 0 and index % 5 == 0 :
print("fifteen")
elif index % 3 == 0:
print("three")
elif index % 5 == 0:
print("five")
else:
print(index)
| [
1,
29871,
13,
1454,
2380,
297,
3464,
29898,
29896,
29892,
29896,
29900,
29896,
1125,
13,
29937,
1678,
565,
2380,
1273,
29871,
29896,
29945,
1275,
29871,
29900,
29901,
13,
29937,
4706,
1596,
703,
28491,
9404,
1159,
13,
1678,
565,
2380,
127... |
certbot_dns_cfproxy/__init__.py | ProfFan/certbot-dns-cfproxy | 2 | 13262 | <filename>certbot_dns_cfproxy/__init__.py
"""
The `~certbot_dns_cfproxy.dns_cfproxy` plugin automates the process of
completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and
subsequently removing, TXT records using the CFProxy API.
Examples
--------
.. code-block:: bash
:caption: To acquire a ... | [
1,
529,
9507,
29958,
6327,
7451,
29918,
29881,
1983,
29918,
6854,
14701,
29914,
1649,
2344,
26914,
2272,
13,
15945,
29908,
13,
1576,
421,
30022,
6327,
7451,
29918,
29881,
1983,
29918,
6854,
14701,
29889,
29881,
1983,
29918,
6854,
14701,
299... |
recognitionFace/train.py | factzero/pytorch_jaguarface_examples | 2 | 167262 | # -*- coding: UTF-8 -*-
import os
import argparse
import cv2
import time
import torch
import torch.optim as optim
from tqdm import tqdm
from config.config import cfg
from core.resnet import resnet18
from core.metrics import Arcface
from utils.data_gen import get_train_loader
parser = argparse.ArgumentParser(descripti... | [
1,
396,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
13,
5215,
2897,
13,
5215,
1852,
5510,
13,
5215,
13850,
29906,
13,
5215,
931,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13,
3166,
... |
lib2/tiktok.py | offdhymaz/wa | 37 | 175509 | from requests import Session
from bs4 import BeautifulSoup
import re
class tiktok:
def __init__(self) -> None:
self.request = Session()
self.url = "https://ssstik.io"
self.html = self.request.get(self.url).text
self.key = BeautifulSoup(self.html, "html.parser").find_all("... | [
1,
515,
7274,
1053,
16441,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
5215,
337,
13,
13,
1990,
260,
638,
17082,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29897,
1599,
6213,
29901,
13,
4706,
1583,
29889,
3827,
353,
16441,... |
nterm.py | KorfLab/qalpha | 0 | 130968 | <reponame>KorfLab/qalpha
import os
import sys
for genome in os.listdir(sys.argv[1]):
print(f'{sys.argv[1]}/{genome}')
ma = []
with open(f'{sys.argv[1]}/{genome}') as fp:
for line in fp.readlines():
if not line.startswith('>'):
ma.append(line.rstrip())
slen = len(ma[0])
for seq in ma: print(seq[:120])
pr... | [
1,
529,
276,
1112,
420,
29958,
29968,
4877,
28632,
29914,
29939,
2312,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
1454,
2531,
608,
297,
2897,
29889,
1761,
3972,
29898,
9675,
29889,
19218,
29961,
29896,
29962,
1125,
13,
12,
2158,
29898,
29... |
src/Hero.py | Astayonix/SailorMoonRPG | 0 | 1601901 | <filename>src/Hero.py
#!/usr/bin/python
class Hero(object):
def __init__(self, Name):
self.name = Name
| [
1,
529,
9507,
29958,
4351,
29914,
29950,
1489,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
13,
1990,
22167,
29898,
3318,
1125,
13,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4408,
1125,
13,
4706,
1583,
298... |
ooi_harvester/utils/parser.py | ooi-data/ooi_harvester | 4 | 37507 | import os
import datetime
import math
import traceback
from typing import List
import requests
from loguru import logger
from lxml import etree
from siphon.catalog import TDSCatalog
from dask.utils import memory_repr
import numpy as np
from dateutil import parser
from ooi_harvester.settings import harvest_settings
... | [
1,
1053,
2897,
13,
5215,
12865,
13,
5215,
5844,
13,
5215,
9637,
1627,
13,
3166,
19229,
1053,
2391,
13,
13,
5215,
7274,
13,
3166,
1480,
20144,
1053,
17927,
13,
3166,
301,
3134,
1053,
634,
929,
13,
3166,
1354,
17607,
29889,
28045,
1053,... |
torchqf/model/factor_model.py | simaki/torchqf | 7 | 167082 | from typing import TypeVar
import torch
from torch import Tensor
from torch.nn import Module
T = TypeVar("T")
class FactorModel(Module):
"""Factor model.
Attributes:
beta (Tensor): Created after `fit`.
Shape:
- input: :math:`(*, A, T)`
:math:`A` is the number of assets.
... | [
1,
515,
19229,
1053,
5167,
9037,
13,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
1053,
323,
6073,
13,
3166,
4842,
305,
29889,
15755,
1053,
15591,
13,
13,
29911,
353,
5167,
9037,
703,
29911,
1159,
13,
13,
13,
1990,
383,
7168,
3195,
298... |
setup.py | Mahima-ai/ALEPython | 107 | 58516 | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
required = f.read().splitlines()
setup(
name="alepython",
description="Python Accumulated Local Effects (ALE) package.",
author="<... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
13,
13,
2541,
1722,
703,
16310,
2303,
29889,
3487,
1159,
408,
285,
29901,
13,
1678,
1... |
t3f/batch_ops.py | KhrulkovV/t3f | 1 | 31564 | <gh_stars>1-10
import tensorflow as tf
from t3f.tensor_train_base import TensorTrainBase
from t3f.tensor_train_batch import TensorTrainBatch
from t3f import ops
def concat_along_batch_dim(tt_list):
"""Concat all TensorTrainBatch objects along batch dimension.
Args:
tt_list: a list of TensorTrainBatch object... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
26110,
408,
15886,
13,
13,
3166,
260,
29941,
29888,
29889,
20158,
29918,
14968,
29918,
3188,
1053,
323,
6073,
5323,
262,
5160,
13,
3166,
260,
29941,
29888,
2988... |
account/admin.py | RichardLeeH/invoce_sys | 0 | 8968 | <gh_stars>0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from account.models import Profile
admin.site.site_header = 'invoc... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
21570,
1053,
... |
1.n_gram.py | Muraru-taketa/100_knocks | 0 | 165976 | #N_gram.py
#owakatiの分かち書きをする。uni=1,bi=2 tri=3
'''どうやったら分かち書きになるか
今日は眠いをbigramに手動ですると
今日、日は、は眠、眠い
今で始まって日で終わる感じで定義する。'''
def n_gram(txt, n):
#n=n_garmのn
result = []
for i in range(0, len(txt) - n + 1):#例:今日という単語からn個(2)-で+1すると日から始まる
result.append(txt[i:i + n])
#iで始まってi+n(nは指定分割個数的なやつ)
retu... | [
1,
396,
29940,
29918,
1393,
29889,
2272,
30004,
13,
29937,
340,
557,
2219,
30199,
30748,
30412,
30644,
30854,
30538,
30396,
30427,
30332,
30267,
3909,
29922,
29896,
29892,
5365,
29922,
29906,
3367,
29922,
29941,
30004,
13,
12008,
31250,
30465... |
examples/chem_equil.py | bjodah/symneqsys | 1 | 126346 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
"""
Example of a 4 dimensional root finidng problem (chemical
acid/base equilbria)
"""
from sympy import pprint
from symneqsys import SimpleNEQSys, Problem
from symneqsys.minpack import MINPACK_Solver
class ChemSys(Simpl... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
29892,
1596,
29918,
2220,
13,
13,
15945,
29908,
13,
140... |
bfgame/components/shield.py | ChrisLR/BasicDungeonRL | 3 | 42257 | <reponame>ChrisLR/BasicDungeonRL
from core.components import Component, listing
@listing.register
class Shield(Component):
NAME = "shield"
__slots__ = ["armor_class_melee", "armor_class_missile"]
def __init__(self, armor_class_melee, armor_class_missile):
super().__init__()
self.armor_cla... | [
1,
529,
276,
1112,
420,
29958,
11626,
275,
29519,
29914,
16616,
29928,
19440,
265,
2241,
13,
3166,
7136,
29889,
14036,
1053,
15924,
29892,
18028,
13,
13,
13,
29992,
1761,
292,
29889,
9573,
13,
1990,
1383,
969,
29898,
5308,
1125,
13,
167... |
src/nise/metadata/config.py | kurtp-ni/nimi-python | 88 | 94005 | # -*- coding: utf-8 -*-
# This file is generated from NI Switch Executive API metadata version 21.0.0d1
config = {
'api_version': '21.0.0d1',
'c_function_prefix': 'niSE_',
'close_function': 'CloseSession',
'context_manager_name': {
},
'custom_types': [
],
'driver_name': 'NI Switch Execut... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
910,
934,
338,
5759,
515,
405,
29902,
28176,
28841,
3450,
15562,
1873,
29871,
29906,
29896,
29889,
29900,
29889,
29900,
29881,
29896,
13,
2917,
353,... |
convert.py | Resist4263/span-aste-1 | 0 | 22540 | <filename>convert.py<gh_stars>0
from gensim.scripts.glove2word2vec import glove2word2vec
(count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt") | [
1,
529,
9507,
29958,
13441,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
26943,
326,
29889,
16713,
29889,
29887,
417,
345,
29906,
1742,
29906,
2003,
1053,
15482,
345,
29906,
1742,
29906,
2003,
13,
13,
29898,
2798,
... |
zhiliao/blog/__init__.py | gladgod/zhiliao | 0 | 135462 | """
Provides a blogging app with posts, keywords, categories and comments.
Posts can be listed by month, keyword, category or author.
"""
from __future__ import unicode_literals
from zhiliao import __version__
| [
1,
9995,
13,
1184,
29894,
2247,
263,
12618,
3460,
623,
411,
11803,
29892,
29361,
29892,
13997,
322,
6589,
29889,
13,
6747,
29879,
508,
367,
9904,
491,
4098,
29892,
13553,
29892,
7663,
470,
4148,
29889,
13,
15945,
29908,
13,
3166,
4770,
... |
wavefront_api_client/models/customer_preferences.py | mdennehy/python-client | 0 | 71969 | # coding: utf-8
"""
Wavefront REST API
<p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
399,
1351,
8862,
16759,
3450,
13,
13,
1678,
529,
29886,
29958,
1576,
399,
1351,
8862,
16759,
3450,
28936,
366,
304,
16254,
411,
399,
1351,
8862,
12424,
773,
3918... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.