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 |
|---|---|---|---|---|---|
text/ko_dictionary.py | mozzihozzi/Custom-Speech-Synthesis-Service-using-Multi-speaker-tacotron | 3 | 77205 | etc_dictionary = {
'2 30대': '이삼십대',
'20~30대': '이삼십대',
'20, 30대': '이십대 삼십대',
'1+1': '원플러스원',
'3에서 6개월인': '3개월에서 육개월인',
}
english_dictionary = {
'Devsisters': '데브시스터즈',
'track': '트랙',
# krbook
'LA': '엘에이',
'LG': '엘지',
... | [
1,
2992,
29918,
27126,
353,
3336,
13,
4706,
525,
29906,
29871,
29941,
29900,
30890,
2396,
525,
30393,
239,
133,
191,
239,
142,
176,
30890,
23592,
13,
4706,
525,
29906,
29900,
30022,
29941,
29900,
30890,
2396,
525,
30393,
239,
133,
191,
... |
main.py | alextremblay962/Hydropinic_System | 0 | 39004 | import serial
import json
import io
import time
ser = serial.Serial("COM24" , 9600, timeout=2)
topic = "hydro/light1"
payload = 1
#data = json.dumps({"topic":topic,"payload":payload})
data = "{\"topic\":\"hydro/light1\",\"payload\":1}"
data = data.encode()
print(data)
ser.write(b'A')
hello = ser.readline()#.dec... | [
1,
1053,
7797,
13,
5215,
4390,
13,
5215,
12013,
13,
5215,
29871,
931,
13,
13,
643,
353,
7797,
29889,
9125,
703,
19795,
29906,
29946,
29908,
1919,
29871,
29929,
29953,
29900,
29900,
29892,
11815,
29922,
29906,
29897,
13,
13,
13010,
353,
... |
LintCode/BinarySearch/20191115_binary_search.py | Fabriceli/MachingLearning | 0 | 72340 | <filename>LintCode/BinarySearch/20191115_binary_search.py
# -*-coding:utf-8 -*-
#Reference:**********************************************
# @Time : 2019-11-15 11:14
# @Author : <NAME>
# @File : 20191115_binary_search.py
# @User : liyihao
# @Software : PyCharm
# @Description: default module binary search
#... | [
1,
529,
9507,
29958,
29931,
524,
3399,
29914,
25196,
7974,
29914,
29906,
29900,
29896,
29929,
29896,
29896,
29896,
29945,
29918,
19541,
29918,
4478,
29889,
2272,
13,
29937,
448,
29930,
29899,
29883,
3689,
29901,
9420,
29899,
29947,
448,
29930... |
examples/run_midi.py | lucystrauss/genki-wave | 17 | 186473 | """
This script is adopted from [here](https://github.com/atizo/pygame/blob/master/examples/midi.py)
# MacOS and Windows
Connecting the wave ring as a midi device via bluetooth should work out-of-the-box on Windows and MacOS.
# Linux
On Linux you might need to re-install `BlueZ` with support for midi as follows.
Ins... | [
1,
9995,
13,
4013,
2471,
338,
16356,
515,
518,
4150,
850,
991,
597,
3292,
29889,
510,
29914,
271,
11411,
29914,
2272,
11802,
29914,
10054,
29914,
6207,
29914,
19057,
29914,
6563,
29875,
29889,
2272,
29897,
13,
13,
29937,
4326,
3267,
322,
... |
yang_et_al/run_tasks.py | wagner-group/geoadex | 4 | 25287 | import os
import logging
import json
from nnattack.variables import auto_var, get_file_name
from params import (
compare_attacks,
compare_defense,
#compare_nns,
nn_k1_robustness,
nn_k3_robustness,
nn_k1_approx_robustness_figs,
dt_robustness_figs,
rf_robustness_figs,
nn_k1_robustn... | [
1,
1053,
2897,
13,
5215,
12183,
13,
5215,
4390,
13,
13,
3166,
302,
29876,
1131,
547,
29889,
20897,
1053,
4469,
29918,
1707,
29892,
679,
29918,
1445,
29918,
978,
13,
13,
3166,
8636,
1053,
313,
13,
1678,
7252,
29918,
1131,
26514,
29892,
... |
docs/examples/lmgtfy_bot.py | AidanWelch/praw | 1 | 196334 | from urllib.parse import quote_plus
import praw
QUESTIONS = ["what is", "who is", "what are"]
REPLY_TEMPLATE = "[Let me google that for you](https://lmgtfy.com/?q={})"
def main():
reddit = praw.Reddit(
user_agent="LMGTFY (by u/USERNAME)",
client_id="CLIENT_ID",
client_secret="CLIENT_SECR... | [
1,
515,
3142,
1982,
29889,
5510,
1053,
14978,
29918,
11242,
13,
13,
5215,
20467,
13,
13,
14130,
27946,
353,
6796,
5816,
338,
613,
376,
15970,
338,
613,
376,
5816,
526,
3108,
13,
1525,
7390,
29979,
29918,
4330,
3580,
29931,
3040,
353,
... |
timm/models/visformer.py | merskiZ/pytorch-image-models | 1 | 68658 | <reponame>merskiZ/pytorch-image-models
""" Visformer
Paper: Visformer: The Vision-friendly Transformer - https://arxiv.org/abs/2104.12533
From original at https://github.com/danczs/Visformer
"""
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
from timm.data import IMAGE... | [
1,
529,
276,
1112,
420,
29958,
13269,
1984,
29999,
29914,
2272,
7345,
305,
29899,
3027,
29899,
9794,
13,
15945,
29908,
5741,
24784,
13,
13,
29925,
7202,
29901,
5741,
24784,
29901,
450,
478,
2459,
29899,
18326,
368,
4103,
24784,
448,
2045,... |
texar/losses/pg_losses.py | Holmeswww/Text_Infilling | 25 | 68212 | #
"""
Various loss functions for policy gradients.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from texar.losses.losses_utils import mask_and_reduce
from texar.utils.shapes import get_rank
# pylint: disable=too-many-argumen... | [
1,
396,
13,
15945,
29908,
13,
10444,
681,
6410,
3168,
363,
8898,
4656,
10070,
29889,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
4770,
29888,... |
pythonTeste/aula14.py | VanessaCML/python | 0 | 127127 | <gh_stars>0
n = 1
par = impar = 0
while n != 0:
n = int(input('Digite um número: '))
if n != 0:
if n % 2 == 0:
par += 1
else:
impar += 1
print(f'Tem {par} número(s) par(es) e {impar} número(s) ímpar(es).')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29876,
353,
29871,
29896,
13,
862,
353,
527,
862,
353,
29871,
29900,
13,
8000,
302,
2804,
29871,
29900,
29901,
13,
1678,
302,
353,
938,
29898,
2080,
877,
14991,
568,
1922,
13831,
29901,... |
tests/unit/plugins/modules/test_panos_op.py | mrichardson03/mrichardson03.panos | 4 | 1603788 | # Copyright 2020 Palo Alto Networks, Inc
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
3793,
29877,
838,
517,
8527,
29879,
29892,
9266,
13,
29937,
13,
29937,
20894,
2333,
304,
671,
29892,
3509,
29892,
6623,
29892,
322,
29914,
272,
1320,
2666,
445,
7047,
363,
738,
13,
... |
tests/settings.py | sunlightlabs/waterfall | 1 | 81124 | <reponame>sunlightlabs/waterfall
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = True
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
INSTALLED_APPS = (
'tests',
)
DATABASES = {
'default': {
'ENGINE': 'django.db... | [
1,
529,
276,
1112,
420,
29958,
11445,
4366,
29880,
6897,
29914,
13405,
11950,
13,
5215,
2897,
13,
13,
25416,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
876,
13,
13,
18525,
... |
models/Update.py | sonhamin/parallel_fedlearning | 0 | 1606334 | <reponame>sonhamin/parallel_fedlearning<filename>models/Update.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python version: 3.6
import torch
from torch import nn, autograd
from torch.utils.data import DataLoader, Dataset
import numpy as np
import random
#from sklearn import metrics
from os import fork
from thre... | [
1,
529,
276,
1112,
420,
29958,
1100,
3391,
262,
29914,
23482,
29918,
29888,
287,
21891,
29966,
9507,
29958,
9794,
29914,
6422,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
... |
echoclient.py | JosunLP/OSZ_chat_ITS | 1 | 70903 | import socket
import sys
import threading
from datetime import datetime
from helper import MessageParser
from helper import const
from model import Message
HOST = const.HOST
PORT = const.PORT
CURSOR_UP_ONE = '\x1b[1A'
ERASE_LINE = '\x1b[2K'
def message_listener(s: socket):
try:
while True:
d... | [
1,
1053,
9909,
13,
5215,
10876,
13,
5215,
3244,
292,
13,
3166,
12865,
1053,
12865,
13,
13,
3166,
16876,
1053,
7777,
11726,
13,
3166,
16876,
1053,
1040,
13,
3166,
1904,
1053,
7777,
13,
13,
20832,
353,
1040,
29889,
20832,
13,
15082,
353... |
jp.atcoder/abc123/abc123_d/8669197.py | kagemeka/atcoder-submissions | 1 | 90679 | import sys
import numpy as np
INF = 10 ** 18
def main():
x, y, z, K = map(int, sys.stdin.readline().split())
abc = np.array(sys.stdin.read().split(), dtype=np.int64)
a = np.append(abc[:x], INF)
b = np.append(abc[x:x + y], INF)
c = np.append(abc[x + y:x + y+ z], INF)
a = np.sort(a)... | [
1,
1053,
10876,
30004,
13,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
30004,
13,
24065,
353,
29871,
29896,
29900,
3579,
29871,
29896,
29947,
30004,
13,
30004,
13,
1753,
1667,
7295,
30004,
13,
1678,
921,
29892,
343,
29892,
503,
29892,
... |
example.py | vins9100/code-refiney-bq | 0 | 1615994 | def add(a, b):
return a+b
def substract(a,b):
return a*b
def divide(a,b):
return a/b
| [
1,
822,
788,
29898,
29874,
29892,
289,
1125,
13,
29871,
736,
263,
29974,
29890,
13,
13,
1753,
1014,
4440,
29898,
29874,
29892,
29890,
1125,
13,
29871,
736,
263,
29930,
29890,
13,
13,
1753,
16429,
29898,
29874,
29892,
29890,
1125,
13,
29... |
tests/unit/i18n/test_init.py | matt-land/warehouse | 2 | 80120 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | [
1,
396,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
11... |
fair/forcing/ozone_tr.py | znicholls/FAIR | 1 | 1377 | <reponame>znicholls/FAIR<filename>fair/forcing/ozone_tr.py
from __future__ import division
import numpy as np
from ..constants import molwt
def regress(emissions,
beta=np.array([2.8249e-4, 1.0695e-4, -9.3604e-4, 99.7831e-4])):
"""Calculates tropospheric ozone forcing from precursor emissions.
In... | [
1,
529,
276,
1112,
420,
29958,
3749,
436,
3028,
29879,
29914,
4519,
8193,
29966,
9507,
29958,
29888,
1466,
29914,
1454,
3277,
29914,
2112,
650,
29918,
509,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
13,
5215,
12655,
... |
unit_tests/fields/Field.py | jaredlunde/cargo-orm | 3 | 82206 | #!/usr/bin/python3 -S
# -*- coding: utf-8 -*-
import unittest
import pickle
import copy
from cargo import aliased, Model
from cargo.fields import Field
from unit_tests import configure
class Tc(object):
def __init__(self, field):
self.field = field
class FieldModel(Model):
field = Field()
class... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
448,
29903,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
443,
27958,
13,
5215,
5839,
280,
13,
5215,
3509,
13,
13,
3166,
17040,
1053,
14430,
... |
Python/Tests/TestData/DebuggerProject/EnumChildTestV3.py | nanshuiyu/pytools | 0 | 179959 | d1 = {42: 100}
d2 = {'abc': 'fob'}
d3 = {1e1000: d1}
s = set([frozenset([2,3,4])])
class C(object):
abc = 42
def f(self): pass
cinst = C()
class C2(object):
abc = 42
def __init__(self):
self.oar = 100
self.self = self
def __repr__(self):
return 'myrepr'
... | [
1,
270,
29896,
353,
426,
29946,
29906,
29901,
29871,
29896,
29900,
29900,
8117,
13,
29881,
29906,
353,
11117,
10736,
2396,
525,
29888,
711,
29915,
8117,
13,
29881,
29941,
353,
426,
29896,
29872,
29896,
29900,
29900,
29900,
29901,
270,
29896... |
CursoGame/game.py | eStev4m/Game_in_Python | 0 | 165192 | <gh_stars>0
import pygame
from pygame.locals import *
from sys import exit
pygame.init()
largura = 640
altura = 480
x = largura / 2
y = 0
tela = pygame.display.set_mode((largura, altura))
pygame.display.set_caption('Curso de Game no Python')
relogio = pygame.time.Clock()
while True:
relogio.tick(30)
tela.fi... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
22028,
13,
3166,
22028,
29889,
2997,
29879,
1053,
334,
13,
3166,
10876,
1053,
6876,
13,
13,
2272,
11802,
29889,
2344,
580,
13,
13,
27489,
2002,
353,
29871,
29953,
29946,
29900,
13... |
DSA_Cracker/Array/Python/Q6.py | OPENSOURCE-CORPORATION/Coding-Problems | 1 | 1604991 | # Problem Link : Check Sheet link below
# Excel-Sheet Link : https://drive.google.com/file/d/1L3EOLDMs-Fx2XoKclkCg1OVymDGh6psP/view?usp=sharing
# Youtube Video Link :
# Q> Find Union and Intersections of 2 Arrays
# Fundamental / Naive Approach
def Solution_1(Array_1, Array_2): # Time: O(m*n), Space: O(0)
Union ... | [
1,
396,
11583,
6645,
584,
5399,
2296,
300,
1544,
2400,
13,
29937,
11388,
29899,
10654,
6645,
29871,
584,
2045,
597,
21594,
29889,
3608,
29889,
510,
29914,
1445,
29914,
29881,
29914,
29896,
29931,
29941,
29923,
5607,
23560,
29879,
29899,
299... |
rest_framework_auth0/models.py | robindebois/djangorestframework-auth0 | 107 | 25111 | # Just to keep things like ./manage.py test happy
from django.contrib.auth.models import AbstractUser
# class Group(models.Model):
# """
# Groups are a generic way of categorizing users to apply permissions, or
# some other label, to those users. A user can belong to any number of
# groups.
# A use... | [
1,
396,
3387,
304,
3013,
2712,
763,
11431,
1171,
482,
29889,
2272,
1243,
9796,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
25513,
2659,
13,
13,
29937,
770,
6431,
29898,
9794,
29889,
3195,
1125,
13,
29937,
268,
9995,
13... |
RDS/circle3_central_services/research_manager/src/api/User/__init__.py | Sciebo-RDS/Sciebo-RDS | 10 | 17978 | from .user import * | [
1,
515,
869,
1792,
1053,
334,
29871,
2
] |
tests/integration/cartography/intel/azure/test_compute.py | Cloudanix/cartography | 0 | 109094 | from cartography.intel.azure import compute
from tests.data.azure.compute import DESCRIBE_DISKS
from tests.data.azure.compute import DESCRIBE_SNAPSHOTS
from tests.data.azure.compute import DESCRIBE_VM_DATA_DISKS
from tests.data.azure.compute import DESCRIBE_VMAVAILABLESIZES
from tests.data.azure.compute import DESCRIBE... | [
1,
515,
7774,
5275,
29889,
524,
295,
29889,
17688,
1053,
10272,
13,
3166,
6987,
29889,
1272,
29889,
17688,
29889,
26017,
1053,
23050,
3960,
15349,
29918,
23711,
17557,
13,
3166,
6987,
29889,
1272,
29889,
17688,
29889,
26017,
1053,
23050,
39... |
test/webapi/controllers/test_time_series.py | dzelge/xcube | 0 | 33955 | import unittest
import numpy as np
from xcube.webapi.controllers.time_series import get_time_series_info, get_time_series_for_point, \
get_time_series_for_geometry, get_time_series_for_geometry_collection
from ..helpers import new_test_service_context
class TimeSeriesControllerTest(unittest.TestCase):
def ... | [
1,
1053,
443,
27958,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
921,
29883,
4003,
29889,
2676,
2754,
29889,
1285,
11897,
29889,
2230,
29918,
13757,
1053,
679,
29918,
2230,
29918,
13757,
29918,
3888,
29892,
679,
29918,
2230,
29918,
1375... |
models/__init__.py | dapengchen123/hfsoftmax | 1 | 9025 | from .resnet import *
from .hynet import *
from .classifier import Classifier, HFClassifier, HNSWClassifier
from .ext_layers import ParameterClient
samplerClassifier = {
'hf': HFClassifier,
'hnsw': HNSWClassifier,
}
| [
1,
515,
869,
690,
1212,
1053,
334,
13,
3166,
869,
29882,
948,
300,
1053,
334,
13,
3166,
869,
1990,
3709,
1053,
4134,
3709,
29892,
379,
29943,
2385,
3709,
29892,
379,
3059,
29956,
2385,
3709,
13,
3166,
869,
1062,
29918,
29277,
1053,
24... |
ocrd_typegroups_classifier/typegroups_classifier.py | mathpresso/printed-vs-handwritten | 16 | 147982 | import _io
import torch
import pickle
from torchvision import transforms
from PIL import Image
from ocrd_typegroups_classifier.data.classmap import ClassMap
from ocrd_typegroups_classifier.data.classmap import IndexRemap
class TypegroupsClassifier:
""" Class wrapping type group information and a classifier.
... | [
1,
1053,
903,
601,
13,
5215,
4842,
305,
13,
5215,
5839,
280,
13,
3166,
4842,
305,
4924,
1053,
4327,
29879,
13,
3166,
349,
6227,
1053,
7084,
13,
13,
3166,
12954,
5499,
29918,
22449,
4872,
4410,
29918,
1990,
3709,
29889,
1272,
29889,
19... |
generator/template/form.py | hrl/Protoend | 3 | 173834 | <gh_stars>1-10
import re
import tornado.locale
from tornado.escape import _unicode
from tornado.util import unicode_type
import wtforms.form
class WTFormsTornadoTranslationWarpper(object):
def __init__(self, locale_code):
self.locale = tornado.locale.get(locale_code)
def gettext(self, string):
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
337,
13,
13,
5215,
10146,
912,
29889,
23337,
13,
13,
3166,
10146,
912,
29889,
21587,
1053,
903,
2523,
356,
13,
3166,
10146,
912,
29889,
4422,
1053,
29104,
299... |
tests/test_incidents.py | deadmau6/IncidentReport | 0 | 62484 | <filename>tests/test_incidents.py<gh_stars>0
from fastapi.testclient import TestClient
from ..main import app
client = TestClient(app)
# Tests for GET query_incident_by_id
#################################
def test_query_incident_valid_id():
valid_number = 'F01705150090'
response = client.get(f"/incident/{va... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
3742,
16719,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
5172,
2754,
29889,
1688,
4645,
1053,
4321,
4032,
13,
3166,
6317,
3396,
1053,
623,
13,
13,
4645,
353,
4321,
... |
erika/frontend/widgets/scrolled_window.py | Muges/erika | 12 | 160803 | <filename>erika/frontend/widgets/scrolled_window.py<gh_stars>10-100
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Muges
# Copyright (C) 2015 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | [
1,
529,
9507,
29958,
261,
4106,
29914,
8862,
355,
29914,
8030,
29879,
29914,
1557,
24476,
29918,
7165,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
... |
desertbot/modules/commands/RSS.py | Tantusar/DesertBot | 0 | 194259 | import datetime
import dateutil.parser as dparser
import feedparser
from zope.interface import implementer
from twisted.plugin import IPlugin
from desertbot.message import IRCMessage
from desertbot.moduleinterface import IModule
from desertbot.modules.commandinterface import admin, BotCommand
from desertbot.response i... | [
1,
1053,
12865,
13,
5215,
2635,
4422,
29889,
16680,
408,
270,
16680,
13,
5215,
8343,
16680,
13,
3166,
503,
2300,
29889,
13248,
1053,
2334,
261,
13,
3166,
3252,
12652,
29889,
8582,
1053,
306,
16288,
13,
13,
3166,
18197,
7451,
29889,
4906... |
doubanMovieTop250/main.py | HaoLiangPao/pythonWebCrawler | 0 | 93791 | <gh_stars>0
# -*- codeing = utf-8 -*-
# @Time : 2021-12-18 4:43 a.m.
# @Author : <NAME>
# @File : main.py
# @Software: PyCharm
import doubanMovieTop250.dataCollection as dataCollection
import doubanMovieTop250.dataStorage as dataStorage
def main():
baseUrl = "https://movie.douban.com/top250?start="
# Save da... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
775,
292,
353,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
2481,
584,
29871,
29906,
29900,
29906,
29896,
29899,
29896,
29906,
29899,
29896,
29947,
2987... |
backend/dataset/validate/kafkawrapper/consumer.py | ishudahiya2001/ULCA-IN-ulca-Public | 0 | 1609673 | import json
import logging
import random
import string
from logging.config import dictConfig
from service.parallel import ParallelValidate
from service.asr import ASRValidate
from service.ocr import OCRValidate
from service.monolingual import MonolingualValidate
from service.asr_unlabeled import ASRUnlabeledValidate
f... | [
1,
1053,
4390,
13,
5215,
12183,
13,
5215,
4036,
13,
5215,
1347,
13,
3166,
12183,
29889,
2917,
1053,
9657,
3991,
13,
13,
3166,
2669,
29889,
23482,
1053,
1459,
6553,
7211,
403,
13,
3166,
2669,
29889,
294,
29878,
1053,
3339,
29934,
7211,
... |
mboot/connection/usb.py | robin-nitrokey/pyMBoot | 4 | 114542 | # Copyright (c) 2017 <NAME>
#
# SPDX-License-Identifier: BSD-3-Clause
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
import os
import logging
import collections
from time import time
f... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
3238,
13,
29937,
30004,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
350,
7230,
29899,
29941,
29899,
20216,
1509,
30004,
... |
Rakesh/code.py | rakeshjm24/ga-learner-dst-repo | 0 | 1600407 | <filename>Rakesh/code.py
# --------------
# Importing header files
import numpy as np
import warnings
warnings.filterwarnings('ignore')
#New record
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#Reading file
data = np.genfromtxt(path, delimiter=",", skip_header=1)
print("\nData: \n\n", data)
#Code starts... | [
1,
529,
9507,
29958,
29934,
6926,
29882,
29914,
401,
29889,
2272,
13,
29937,
448,
9072,
29899,
13,
29937,
16032,
292,
4839,
2066,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
18116,
30004,
13,
30004,
13,
25442,
886,
29889,
4572,
... |
2020/day5.py | natedileas/advent-of-code | 0 | 172665 | <reponame>natedileas/advent-of-code
def boarding_pass_row(seq):
assert len(seq) == 7
# FBFBBFF
seqb = seq.replace('F', '0').replace('B', '1')
return int(seqb, 2)
def boarding_pass_col(seq):
assert len(seq) == 3
seqb = seq.replace('R', '1').replace('L', '0')
return int(seqb, 2)
def row_id(seq):
row, col =... | [
1,
529,
276,
1112,
420,
29958,
29876,
630,
488,
294,
29914,
328,
794,
29899,
974,
29899,
401,
13,
13,
1753,
7613,
292,
29918,
3364,
29918,
798,
29898,
11762,
1125,
13,
12,
9294,
7431,
29898,
11762,
29897,
1275,
29871,
29955,
13,
13,
1... |
training/def/tr3.py | Evgesha3425/lessons2 | 1 | 177742 | """
Создайте лямбда-функцию по следующему описанию:
Введите строку с клавиатуры. Удалите из нее все буквы алфавита, идущие после буквы "и".
Подсказка: воспользуйтесь генератором. Вы можете сравнивать буквы как числа. Чем дальше
буква в алфавите, тем она "больше".
"""
my_string = input("Введите строку: ")
new_string = ... | [
1,
9995,
13,
30008,
29904,
8728,
29977,
730,
29871,
1225,
16001,
840,
29899,
30011,
13937,
13603,
733,
19139,
11957,
1805,
614,
7832,
7506,
29901,
13,
30012,
1521,
956,
730,
2091,
576,
1382,
531,
9955,
21252,
15934,
29889,
2014,
840,
644,... |
migrations/versions/a684c982c890_.py | very-meanly/vc | 0 | 156224 | """empty message
Revision ID: a684c982c890
Revises: <PASSWORD>
Create Date: 2021-10-16 18:12:03.996294
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a684c982c890'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | [
1,
9995,
6310,
2643,
13,
13,
1123,
4924,
3553,
29901,
263,
29953,
29947,
29946,
29883,
29929,
29947,
29906,
29883,
29947,
29929,
29900,
13,
1123,
1730,
267,
29901,
529,
25711,
17013,
29958,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29906,... |
graphio/queries/query_parameters.py | JTaeger/graphio | 0 | 33831 | <gh_stars>0
def params_create_rels_unwind_from_objects(relationships, property_identifier=None):
"""
Format Relationship properties into a one level dictionary matching the query generated in
`query_create_rels_from_list`. This is necessary because you cannot access nested dictionairies
in the UNWIND qu... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1753,
8636,
29918,
3258,
29918,
2674,
29879,
29918,
348,
14800,
29918,
3166,
29918,
12650,
29898,
2674,
800,
14587,
29892,
2875,
29918,
25378,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
... |
Transforms/Transfer_Learning/TL_Poke_Controller/tl_poke_controller_worker.py | Heron-Repositories/Transfer-Learning-In-Animals | 0 | 94725 | <reponame>Heron-Repositories/Transfer-Learning-In-Animals<filename>Transforms/Transfer_Learning/TL_Poke_Controller/tl_poke_controller_worker.py
import sys
from os import path
current_dir = path.dirname(path.abspath(__file__))
while path.split(current_dir)[-1] != r'Heron':
current_dir = path.dirname(current_dir)
s... | [
1,
529,
276,
1112,
420,
29958,
18650,
265,
29899,
10913,
20106,
29914,
4300,
571,
29899,
29931,
799,
1076,
29899,
797,
29899,
21645,
1338,
29966,
9507,
29958,
4300,
9514,
29914,
4300,
571,
29918,
29931,
799,
1076,
29914,
14632,
29918,
29925... |
utility.py | ying-wen/pmln | 1 | 18355 | from __future__ import print_function
import numpy as np
import pandas as pd
from sklearn import metrics
class Options(object):
"""Options used by the model."""
def __init__(self):
# Model options.
# Embedding dimension.
self.embedding_size = 32
# The initial learning rate.
... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
3166,
2071,
19668,
1053,
21556,
13,
13,
1990,
25186,
29898,
3318,
1125,
13,
1678,
9995,
5856,
1304,
491,
29871,
278,
... |
CeptServer.py | bildschirmtext/twistedUlm | 4 | 187957 | # -*- coding: utf-8 -*-
###############################################################################
# This file is part of twistedUlm.
#
# 2010, <NAME> <<EMAIL>>
#
# twistedUlm is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
1678,
910,
934,
338,
760,
310,
3252,
12652,
29965,
21457,
29889,
13,
29937,
13,
29937... |
main.py | felipedavi/MyBrowserProject | 1 | 67410 | <reponame>felipedavi/MyBrowserProject
# -*- coding: utf-8 -*-
__author__ = "<NAME>"
__license__ = "MIT"
"""home.py: Navegador Open Source """
from PyQt5.QtWidgets import QApplication, QMainWindow,QToolButton, QLineEdit, QMessageBox
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtCore import QUrl, QSiz... | [
1,
529,
276,
1112,
420,
29958,
13287,
666,
287,
17345,
29914,
3421,
21537,
7653,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
1649,
8921,
1649,
353,
9872,
5813,
11903,
13,
1649,
506,
1947,
1649,
... |
podium_api/types/user.py | autosportlabs/podium-api | 1 | 157482 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class PodiumUser(object):
"""
Object that represents a particular User.
**Attributes:**
**user_id** (int): User id
**uri** (string): URI for the User.
**username** (string): The User's username.
**description** ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
30004,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
30004,
13,
1990,
8594,
1974,
2659,
29898,
3318,
1125,
30004,
13,
1678,
9995,
30004,
13,
... |
tests/model/library/api/test_casestep_resource.py | Mozilla-GitHub-Standards/2a028a7541b867ed4d376d6d9a172a6885fe44030078c12a2b9428efabf22ab7 | 0 | 31114 | <reponame>Mozilla-GitHub-Standards/2a028a7541b867ed4d376d6d9a172a6885fe44030078c12a2b9428efabf22ab7
"""
Tests for CaseStepResource api.
"""
from tests.case.api.crud import ApiCrudCases
import logging
mozlogger = logging.getLogger('moztrap.test')
class CaseStepResourceTest(ApiCrudCases):
@property
def fact... | [
1,
529,
276,
1112,
420,
29958,
29924,
2112,
2911,
29899,
28712,
16046,
29899,
11042,
3163,
29914,
29906,
29874,
29900,
29906,
29947,
29874,
29955,
29945,
29946,
29896,
29890,
29947,
29953,
29955,
287,
29946,
29881,
29941,
29955,
29953,
29881,
... |
split.py | ghukill/bookscanner | 0 | 56640 | <reponame>ghukill/bookscanner<gh_stars>0
# split
import cv2
from distutils.version import StrictVersion
import imutils
import logging
import matplotlib as plt
import numpy as np
from PIL import Image
import os
# setup logger
logging.basicConfig(level=logging.DEBUG)
# parso shims
logging.getLogger('parso.python.diff'... | [
1,
529,
276,
1112,
420,
29958,
12443,
2679,
453,
29914,
2909,
1557,
7310,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
6219,
13,
13,
5215,
13850,
29906,
13,
3166,
1320,
13239,
29889,
3259,
1053,
3767,
919,
6594,
13,
5215,
52... |
Exercicios_entregar/Tarefa_lista2_ex3.py | joao-barabba/Exercicios_Python | 0 | 199480 | <reponame>joao-barabba/Exercicios_Python
n1=int(input('Digite o primeiro valor: '))
n2=int(input('Digite o segundo valor: '))
o=(input('Digite o operador para conta: '))
if o=='+':
r=n1+n2
print(f'O resultado da conta é {r:,}')
elif o=='-':
r=n1-n2
print(f'O resultado da conta é {r:,}')
elif o=='*':
... | [
1,
529,
276,
1112,
420,
29958,
2212,
6241,
29899,
1646,
370,
2291,
29914,
1252,
6269,
19382,
29918,
11980,
13,
29876,
29896,
29922,
524,
29898,
2080,
877,
14991,
568,
288,
19695,
16497,
29901,
525,
876,
13,
29876,
29906,
29922,
524,
29898... |
michiru/modules/seenbot.py | moeIO/michiru | 1 | 61981 | # Seenbot module.
from datetime import datetime
import json
from michiru import db, personalities
from michiru.modules import command, hook
_ = personalities.localize
## Module information.
__name__ = 'seenbot'
__author__ = 'Shiz'
__license__ = 'WTFPL'
__desc__ = 'Tells when someone was last seen.'
## Database stu... | [
1,
396,
922,
264,
7451,
3883,
29889,
13,
3166,
12865,
1053,
12865,
13,
5215,
4390,
13,
13,
3166,
21488,
381,
29884,
1053,
4833,
29892,
7333,
1907,
13,
3166,
21488,
381,
29884,
29889,
7576,
1053,
1899,
29892,
12422,
13,
29918,
353,
7333,... |
preprocessing/preprocess_davis.py | linjieyangsc/video_seg | 169 | 156059 | <filename>preprocessing/preprocess_davis.py
import os
import sys
from PIL import Image
from sets import Set
import numpy as np
import cv2
data_dir = sys.argv[1]
anno_dir = os.path.join(data_dir, 'Annotations/480p/')
save_dir = os.path.join(data_dir, 'Annotations/480p_split/')
save_dir_all = os.path.join(data_dir, 'Anno... | [
1,
529,
9507,
29958,
1457,
19170,
29914,
1457,
5014,
29918,
29881,
485,
275,
29889,
2272,
13,
5215,
2897,
13,
5215,
10876,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
6166,
1053,
3789,
13,
5215,
12655,
408,
7442,
13,
5215,
13850,
29906,
... |
magic_agent/tests/test.py | vypivshiy/magic-agent | 0 | 1617228 | import re
import unittest
from magic_agent.crawlers import Request
from magic_agent.crawlers.parsers import RE_CHROMIUM, RE_WEBKIT
from magic_agent.core.mobile_keys import SAMSUNG
from magic_agent.core.base_device import MobileDevice
from magic_agent.core.utils import sattolo_shuffle
from magic_agent.core.base import R... | [
1,
1053,
337,
13,
5215,
443,
27958,
13,
3166,
15709,
29918,
14748,
29889,
29883,
1610,
9306,
1053,
10729,
13,
3166,
15709,
29918,
14748,
29889,
29883,
1610,
9306,
29889,
862,
4253,
1053,
5195,
29918,
3210,
3491,
29902,
5005,
29892,
5195,
... |
vendas/urls.py | rauanisanfelice/espetaria | 0 | 87292 | from django.contrib import admin
from django.urls import path, include
from django.contrib.auth import views as auth_views
from .views import *
urlpatterns = [
path('', index.as_view(), name='lancamento'),
# MESAS
path('mesa-list/', MesaList.as_view(), name='mesa_list'),
path('mesa-new/', MesaNew... | [
1,
515,
9557,
29889,
21570,
1053,
4113,
13,
3166,
9557,
29889,
26045,
1053,
2224,
29892,
3160,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
8386,
408,
4817,
29918,
7406,
13,
13,
3166,
869,
7406,
1053,
334,
13,
13,
2271,
11037,
29879... |
indra/sources/geneways/processor.py | zebulon2/indra | 136 | 151473 | """
This module provides an input processor for information extracted using the
Geneways software suite, converting extraction data in Geneways format into
INDRA statements.
See publication:
Rzhetsky, Andrey, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> et al. "GeneWays: a system for extracting,
analyzing, visualizi... | [
1,
9995,
13,
4013,
3883,
8128,
385,
1881,
21433,
363,
2472,
23892,
773,
278,
13,
15462,
809,
1036,
7047,
9460,
29892,
17415,
4805,
428,
848,
297,
5739,
809,
1036,
3402,
964,
13,
22255,
4717,
9506,
29889,
13,
13,
13393,
17745,
29901,
1... |
grid-dataset/training_data.py | tuantran1810/lips-image-generation | 1 | 199343 | <gh_stars>1-10
import os
import cv2
import pickle
import numpy as np
from scipy.io import wavfile
from pathlib import Path
import librosa
class TrainingDataConverter:
def __init__(
self,
videoRootFolder,
audioRootFolder,
videoExt,
audioExt,
ou... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
5215,
13850,
29906,
13,
5215,
5839,
280,
13,
5215,
12655,
408,
7442,
13,
3166,
4560,
2272,
29889,
601,
1053,
281,
485,
1445,
13,
3166,
2224,
1982,
... |
vegaapiclient/generated/data_node/api/v1/trading_data_pb2_grpc.py | vegaprotocol/sdk-python | 1 | 1604191 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from ...api.v1 import trading_data_pb2 as data__node_dot_api_dot_v1_dot_trading__data__pb2
class TradingDataServiceStub(object):
"""Missing associated docu... | [
1,
396,
3251,
630,
491,
278,
330,
29934,
9026,
5132,
9608,
6516,
7079,
29889,
11662,
6058,
11488,
29991,
13,
15945,
29908,
4032,
322,
1923,
4413,
6590,
304,
17814,
9721,
29899,
12119,
5786,
1213,
15945,
13,
5215,
867,
6739,
13,
13,
3166... |
EHR_statistic_app/apps.py | HurleyJames/Visualization-EHRs | 1 | 190198 | <gh_stars>1-10
from django.apps import AppConfig
class EhrStatisticAppConfig(AppConfig):
name = 'EHR_statistic_app'
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
13371,
1053,
2401,
3991,
30004,
13,
30004,
13,
30004,
13,
1990,
29245,
9513,
4695,
2052,
3991,
29898,
2052,
3991,
1125,
30004,
13,
1678,
1024,
353,... |
adaptnlp/callback.py | chsafouane/adaptnlp | 410 | 79550 | <filename>adaptnlp/callback.py<gh_stars>100-1000
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_callback.ipynb (unless otherwise specified).
__all__ = ['GatherInputsCallback', 'SetInputsCallback', 'GeneratorCallback']
# Cell
from fastcore.basics import store_attr
from fastcore.meta import delegates
from fastai.c... | [
1,
529,
9507,
29958,
1114,
415,
12938,
29886,
29914,
14035,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
26524,
29949,
24647,
1001,
3040,
29928,
29991,
11662,
6058,
114... |
spyderlib/utils/debug.py | MarlaJahari/Marve | 1 | 26211 | # -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 <NAME>
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Debug utilities"""
import inspect
import traceback
import time
def log_time(fd):
timestr = "Logging time: %s" % time.ctime(time.time())
print >>f... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
29937,
30004,
13,
29937,
14187,
1266,
29871,
30211,
29871,
29906,
29900,
29900,
29929,
29899,
29906,
29900,
29896,
29900,
529,
5813,
3238,
13,
29937,
... |
configs/__init__.py | mutalisk999/bibi | 1,037 | 89323 | <filename>configs/__init__.py
# -*- coding: utf-8 -*-
from .config import BaseConfig, DevConfig, TestConfig, get_config
| [
1,
529,
9507,
29958,
2917,
29879,
29914,
1649,
2344,
26914,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
869,
2917,
1053,
7399,
3991,
29892,
9481,
3991,
29892,
4321,
3991,
29892,
... |
RLBotPack/blind_and_deaf/hover.py | L0laapk3/RLBotPack | 13 | 78016 | <gh_stars>10-100
from rlutilities.simulation import Game, Input, Car
from rlutilities.linear_algebra import vec3, normalize, look_at, norm
from rlutilities.mechanics import AerialTurn
class Hover:
"""
PD controller for hovering in the air.
This was also used in the Airshow :)
"""
P = 2... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
364,
29880,
4422,
1907,
29889,
3601,
2785,
1053,
8448,
29892,
10567,
29892,
1704,
30004,
13,
3166,
364,
29880,
4422,
1907,
29889,
10660,
29918,
1574... |
isa.py | schwaaweb/aimlds1_11-NLP | 0 | 84062 | <reponame>schwaaweb/aimlds1_11-NLP<gh_stars>0
#!/usr/bin/env python
# Income Share Agreement
min = 50000.0
max = 88235.3
max_pay = 30000.0
max_income = 2117647.06
monthly_increment = (max - min)/23
print('\n24 months maximum payment with a minimum of $50,000 annual income')
print('Maximum income for 24 month repa... | [
1,
529,
276,
1112,
420,
29958,
816,
2766,
29874,
2676,
29914,
29874,
326,
430,
29879,
29896,
29918,
29896,
29896,
29899,
29940,
13208,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,... |
setup.py | ooreilly/mydocstring | 13 | 3455 | <filename>setup.py
from setuptools import setup
setup(name='mydocstring',
version='0.2.7',
description="""A tool for extracting and converting Google-style docstrings to
plain-text, markdown, and JSON.""",
url='http://github.com/ooreilly/mydocstring',
author="<NAME>",
license='MIT'... | [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
29871,
13,
14669,
29898,
978,
2433,
1357,
1514,
1807,
742,
13,
418,
1873,
2433,
29900,
29889,
29906,
29889,
29955,
742,
13,
418,
6139,
13776,
29908,
29... |
PAST3/i.py | nishio/atcoder | 1 | 94259 | <reponame>nishio/atcoder
if 1:
N = int(input())
Q = int(input())
queries = []
for i in range(Q):
queries.append([int(x) for x in input().split()])
else:
N = 100000
queries = [
[2, 1, 2],
[4, 1, 2]
] * 10000
queries.append([4, 1, 2])
Q = len(queries)
isTransp... | [
1,
529,
276,
1112,
420,
29958,
29876,
728,
601,
29914,
271,
29883,
6119,
13,
361,
29871,
29896,
29901,
13,
1678,
405,
353,
938,
29898,
2080,
3101,
13,
1678,
660,
353,
938,
29898,
2080,
3101,
13,
1678,
9365,
353,
5159,
13,
1678,
363,
... |
freq_month.py | martengooz/github-scraper | 1 | 148255 | import numpy
import json
import time
import datetime
from dateutil.relativedelta import *
import dateutil
import dateutil.parser
from scipy.stats.stats import pearsonr
import matplotlib.pyplot as plt
import scipy
from operator import truediv
with open('repos') as data_file:
data = json.load(data_file)
popularityli... | [
1,
1053,
12655,
13,
5215,
4390,
13,
5215,
931,
13,
5215,
12865,
13,
3166,
2635,
4422,
29889,
2674,
1926,
287,
2554,
1053,
334,
13,
5215,
2635,
4422,
13,
5215,
2635,
4422,
29889,
16680,
13,
3166,
4560,
2272,
29889,
16202,
29889,
16202,
... |
saifooler/classifiers/image_net_classifier.py | sailab-code/SAIFooler | 0 | 12217 | from saifooler.classifiers.classifier import Classifier
import torch
import json
import os
class ImageNetClassifier(Classifier):
def __init__(self, model, *args, **kwargs):
super().__init__(model, *args, **kwargs)
self.std = torch.tensor([0.229, 0.224, 0.225], device=self.device)
self.mea... | [
1,
515,
872,
361,
1507,
261,
29889,
1990,
14903,
29889,
1990,
3709,
1053,
4134,
3709,
13,
13,
5215,
4842,
305,
13,
5215,
4390,
13,
5215,
2897,
13,
13,
13,
1990,
7084,
6779,
2385,
3709,
29898,
2385,
3709,
1125,
13,
1678,
822,
4770,
2... |
SimPEG/EM/Static/SIP/__init__.py | rolandhill/simpeg | 3 | 164048 | <gh_stars>1-10
from .ProblemSIP import Problem3D_CC, Problem3D_N
from .ProblemSIP_2D import Problem2D_CC, Problem2D_N
from .SurveySIP import Survey, Data, from_dc_to_sip_survey
from . import SrcSIP as Src
from . import RxSIP as Rx
from .Run import run_inversion, spectral_ip_mappings
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
869,
26604,
5425,
29925,
1053,
11583,
29941,
29928,
29918,
4174,
29892,
11583,
29941,
29928,
29918,
29940,
13,
3166,
869,
26604,
5425,
29925,
29918,
29906,
29928,
... |
creer/input.py | JeffreyStrahm/Creer | 0 | 140015 | <gh_stars>0
import glob
def validate(inputs):
validated_inputs = []
for input_dir in inputs:
dirs = glob.glob(input_dir)
if not dirs:
raise Exception("No directories matching {}".format(input_dir))
validated_inputs.extend(dirs)
for validated_input in validated_inputs:
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
13149,
13,
13,
1753,
12725,
29898,
2080,
29879,
1125,
13,
1678,
2854,
630,
29918,
2080,
29879,
353,
5159,
13,
1678,
363,
1881,
29918,
3972,
297,
10970,
29901,
13,
4706,
4516,
2987... |
zict/zip.py | phobson/zict | 0 | 7730 | try:
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
import zipfile
class Zip(MutableMapping):
"""Mutable Mapping interface to a Zip file
Keys must be strings, values must be bytes
Parameters
----------
filename: string
mode: stri... | [
1,
1018,
29901,
13,
1678,
515,
16250,
29889,
10736,
1053,
341,
9246,
15845,
13,
19499,
16032,
2392,
29901,
13,
1678,
515,
16250,
1053,
341,
9246,
15845,
13,
5215,
14319,
1445,
13,
13,
13,
1990,
796,
666,
29898,
15211,
15845,
1125,
13,
... |
blockchain/web3.py | joelwembo/expert-python-dts-algorithms | 0 | 71573 | # Block development using web3
""" >>> from web3 import Web3
# IPCProvider:
>>> w3 = Web3(Web3.IPCProvider('./path/to/geth.ipc'))
# HTTPProvider:
>>> w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:8545'))
# WebsocketProvider:
>>> w3 = Web3(Web3.WebsocketProvider('ws://127.0.0.1:8546'))
>>> w3.isConnected()
True """... | [
1,
396,
15658,
5849,
773,
1856,
29941,
13,
13,
15945,
29908,
8653,
515,
1856,
29941,
1053,
2563,
29941,
13,
13,
29937,
5641,
29907,
6980,
29901,
13,
6778,
29958,
281,
29941,
353,
2563,
29941,
29898,
3609,
29941,
29889,
5690,
29907,
6980,
... |
tas/__main__.py | lispsil/tas | 1 | 29981 | import os
import signal
import atexit
import json
import time
from pathlib import Path
import subprocess
import argparse
import pprint
from distutils.util import strtobool
children_pid = []
@atexit.register
def kill_child():
for child_pid in children_pid:
os.kill(child_pid, signal.SIGTERM)
cmd_parser = ... | [
1,
1053,
2897,
13,
5215,
7182,
13,
5215,
263,
4776,
277,
13,
5215,
4390,
13,
5215,
931,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
1014,
5014,
13,
5215,
1852,
5510,
13,
5215,
282,
2158,
13,
3166,
1320,
13239,
29889,
4422,
1053,
85... |
projects/tests/test_migrations.py | 18F/projects | 9 | 103310 | from unittest import SkipTest
from django.apps import apps
from django.test import TransactionTestCase
from django.db.migrations.executor import MigrationExecutor
from django.db import connection
from django.conf import settings
from test_without_migrations.management.commands.test import DisableMigrations
class Migr... | [
1,
515,
443,
27958,
1053,
4971,
666,
3057,
13,
3166,
9557,
29889,
13371,
1053,
11446,
13,
3166,
9557,
29889,
1688,
1053,
4103,
2467,
3057,
8259,
13,
3166,
9557,
29889,
2585,
29889,
26983,
800,
29889,
4258,
3406,
1053,
341,
16783,
13366,
... |
firmwire/vendor/mtk/mtkdb/parse_mdb.py | j4s0n/FirmWire | 0 | 172381 | <reponame>j4s0n/FirmWire<filename>firmwire/vendor/mtk/mtkdb/parse_mdb.py
## Copyright (c) 2022, Team FirmWire
## SPDX-License-Identifier: BSD-3-Clause
import struct
import lzma
import logging
log = logging.getLogger(__name__)
def reads32(f):
x = f.read(4)
return struct.unpack("<i", x)[0]
def read32(f):
... | [
1,
529,
276,
1112,
420,
29958,
29926,
29946,
29879,
29900,
29876,
29914,
29943,
3568,
29956,
533,
29966,
9507,
29958,
29888,
3568,
22376,
29914,
19167,
29914,
4378,
29895,
29914,
4378,
29895,
2585,
29914,
5510,
29918,
29885,
2585,
29889,
2272... |
Constants.py | micv-dev/DeepKubeGPUCluster | 2 | 18419 | DEFAULT_KUBE_VERSION=1.14
KUBE_VERSION="kubeVersion"
USER_ID="userId"
DEFAULT_USER_ID=1
CLUSTER_NAME="clusterName"
CLUSTER_MASTER_IP="masterHostIP"
CLUSTER_WORKER_IP_LIST="workerIPList"
FRAMEWORK_TYPE= "frameworkType"
FRAMEWORK_VERSION="frameworkVersion"
FRAMEWORK_RESOURCES="frameworkResources"
FRAMEWORK_VOLUME_SIZE= ... | [
1,
22236,
29918,
29968,
7466,
29923,
29918,
16358,
29922,
29896,
29889,
29896,
29946,
13,
29968,
7466,
29923,
29918,
16358,
543,
29895,
4003,
6594,
29908,
13,
13,
11889,
29918,
1367,
543,
29721,
29908,
13,
23397,
29918,
11889,
29918,
1367,
... |
currency/__init__.py | p4l1ly/currency | 0 | 40280 | # -*- coding: utf-8 -*-
from .fetcher import from_all
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
869,
9155,
261,
1053,
515,
29918,
497,
13,
2
] |
packaging/create_msi.py | physimals/quantiphyse | 9 | 137225 | """
Create an MSI package using the WIX toolset
We adopt the rule of 'one file per component' as suggested although this requires thousands
of components. Generation of GUIDs is accomplished by using the Python UUID library to generate
the ID based on a hash of the file path. This should ensure that the GUIDs are spe... | [
1,
9995,
13,
4391,
385,
341,
5425,
3577,
773,
278,
399,
6415,
5780,
842,
13,
13,
4806,
9332,
278,
5751,
310,
525,
650,
934,
639,
4163,
29915,
408,
7829,
5998,
445,
6858,
17202,
13,
974,
7117,
29889,
28203,
310,
402,
11150,
29879,
33... |
lecturegen_old.py | ucsb-cs-course-repos/tools | 0 | 163170 | #!/usr/bin/env python3
import argparse
import pytest
import datetime
import dateutil
from dateutil.parser import parse
import os
legal_days_of_week="MTWRF"
def mkdir_p(newdir):
"""works the way a good mkdir should :)
- already exists, silently complete
- regular file in the way, raise an exceptio... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
1852,
5510,
13,
5215,
11451,
1688,
13,
5215,
12865,
13,
5215,
2635,
4422,
13,
3166,
2635,
4422,
29889,
16680,
1053,
6088,
13,
5215,
2897,
13,
13,
12018,
29918,
16700,
... |
mailer/settings.py | mvpoland/django-mailer | 0 | 128645 | <reponame>mvpoland/django-mailer
from django.conf import settings
""" Add here dictionary of extra headers pushed forward to django's EmailMultiAlternatives and EmailMessage.
Example:
to activate click and open action for e-mails sent by Mandrillapp you'll need to define this as follows:
MAIL_EXTRA_HEADERS ... | [
1,
529,
276,
1112,
420,
29958,
29324,
3733,
392,
29914,
14095,
29899,
2549,
261,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
13,
13,
15945,
29908,
3462,
1244,
8600,
310,
4805,
9066,
18760,
6375,
304,
9557,
29915,
29879,
22608,
15329,
2... |
dito/highgui.py | dhaase-de/dito | 0 | 189847 | import abc
import copy
import cv2
import dito.visual
class Slider(abc.ABC):
def __init__(self, window_name, name, initial_raw_value, max_raw_value):
assert max_raw_value > 0
assert 0 <= initial_raw_value <= max_raw_value
self.window_name = window_name
if self.window_name is None... | [
1,
1053,
25638,
13,
5215,
3509,
13,
13,
5215,
13850,
29906,
13,
13,
5215,
270,
2049,
29889,
20119,
13,
13,
13,
1990,
14866,
1241,
29898,
10736,
29889,
19658,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3474,
29918,
978,
29892,
... |
tests/plugins/test_brittv.py | fuglede/streamlink | 0 | 38153 | <gh_stars>0
import unittest
from streamlink.plugins.brittv import BritTV
class TestPluginBritTV(unittest.TestCase):
def test_can_handle_url(self):
should_match = [
'http://brittv.co.uk/watch/?channel=1',
]
for url in should_match:
self.assertTrue(BritTV.can_handle_... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
443,
27958,
13,
13,
3166,
4840,
2324,
29889,
12800,
29889,
29890,
12123,
29894,
1053,
3230,
8050,
13,
13,
13,
1990,
4321,
16288,
29933,
768,
8050,
29898,
348,
27958,
29889,
3057,
... |
ponyexpress/models/__init__.py | TelekomCloud/pony-express | 0 | 66895 | from ponyexpress.models.repository import Repository
from ponyexpress.models.repo_history import RepoHistory
from ponyexpress.models.package import Package
from ponyexpress.models.package_history import PackageHistory
from ponyexpress.models.node import Node
| [
1,
515,
282,
2592,
17073,
29889,
9794,
29889,
19033,
1053,
830,
7036,
13,
3166,
282,
2592,
17073,
29889,
9794,
29889,
20095,
29918,
18434,
1053,
830,
1129,
20570,
13,
3166,
282,
2592,
17073,
29889,
9794,
29889,
5113,
1053,
22029,
13,
3166... |
krogon/maybe.py | enamrik/krogon | 1 | 8606 | from typing import Callable, TypeVar, Union, Tuple
from krogon.infix import Infix
A = TypeVar('A')
B = TypeVar('B')
E = TypeVar('E')
Maybe = Union[Tuple['just', A], Tuple['nothing']]
def just(value=None):
return "just", value
def nothing():
return "nothing", None
def from_value(value) -> Maybe[B]:
r... | [
1,
515,
19229,
1053,
8251,
519,
29892,
5167,
9037,
29892,
7761,
29892,
12603,
552,
13,
3166,
413,
9102,
265,
29889,
262,
5878,
1053,
512,
5878,
13,
13,
29909,
353,
5167,
9037,
877,
29909,
1495,
13,
29933,
353,
5167,
9037,
877,
29933,
... |
crontab_module/crons/update_predicted_location_crontab.py | openmaker-eu/watchtower | 2 | 181067 | <reponame>openmaker-eu/watchtower<gh_stars>1-10
import sys
from decouple import config
sys.path.insert(0, config("ROOT_DIR"))
from predict_location.update_field_db import update_field_db as up_db
database_names = ["audience_test", "events"]
field_names = ["location", "place"]
for ind in range(len(database_names)):
... | [
1,
529,
276,
1112,
420,
29958,
3150,
28107,
29899,
12932,
29914,
12344,
29873,
1680,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10876,
13,
3166,
1602,
283,
552,
1053,
2295,
13,
9675,
29889,
2084,
29889,
7... |
aiovault/client.py | johnnoone/aiovault | 1 | 31299 | from . import v1
from .request import Request
from .util import task, extract_id
class Vault(v1.SysEndpoint):
def __init__(self, addr, token=None, cert=None, verify=True):
token = extract_id(token)
self.req_handler = Request(addr, 'v1', token=token,
cert=cert, v... | [
1,
515,
869,
1053,
325,
29896,
13,
3166,
869,
3827,
1053,
10729,
13,
3166,
869,
4422,
1053,
3414,
29892,
6597,
29918,
333,
13,
13,
13,
1990,
478,
1292,
29898,
29894,
29896,
29889,
29903,
952,
25602,
1125,
13,
13,
1678,
822,
4770,
2344... |
6.py | rowanG077/automated_reasoning | 0 | 102177 | <reponame>rowanG077/automated_reasoning
from z3 import *
from copy import deepcopy
import sys
num_stores = 1
num_villages = 4
route_costs_list = [
[-1, 15, -1, 15, -1],
[15, -1, 17, 12, -1],
[-1, 17, -1, 10, 20],
[15, 12, 10, -1, 20],
[-1, -1, 20, 20, -1],
]
assignment_b = False
capacities = [
... | [
1,
529,
276,
1112,
420,
29958,
798,
273,
29954,
29900,
29955,
29955,
29914,
17405,
630,
29918,
23147,
292,
13,
3166,
503,
29941,
1053,
334,
13,
3166,
3509,
1053,
6483,
8552,
13,
5215,
10876,
13,
13,
1949,
29918,
303,
2361,
353,
29871,
... |
src/devel/___blocks/___block_base.py | jakub-vesely/hugo | 0 | 163488 | # Copyright (c) 2022 <NAME>
# This software is published under MIT license. Full text of the license is available at https://opensource.org/licenses/MIT
from ___basal.___logging import Logging
from ___blocks.___block_types import BlockTypes
import machine
import time
from micropython import const
_power_save_comman... | [
1,
396,
29871,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29906,
529,
5813,
29958,
13,
29937,
29871,
910,
7047,
338,
6369,
1090,
341,
1806,
19405,
29889,
14846,
1426,
310,
278,
19405,
338,
3625,
472,
2045,
597,
22156,
116... |
python/src/year2020/day22.py | Farbfetzen/Advent_of_Code | 4 | 192002 | <reponame>Farbfetzen/Advent_of_Code
# https://adventofcode.com/2020/day/22
from collections import deque
from copy import deepcopy
from itertools import islice
from src.util.types import Data, Solution
def prepare_data(data: str) -> list[deque[int]]:
return [deque([int(card) for card in deck.splitlines()[1:]])
... | [
1,
529,
276,
1112,
420,
29958,
29943,
279,
1635,
300,
2256,
29914,
3253,
794,
29918,
974,
29918,
3399,
13,
29937,
2045,
597,
328,
794,
974,
401,
29889,
510,
29914,
29906,
29900,
29906,
29900,
29914,
3250,
29914,
29906,
29906,
13,
13,
31... |
superset/views/extract_db_info.py | charvigupta/apachesuperset_ed | 0 | 174282 | <gh_stars>0
import sqlite3
## path to .db
connection = sqlite3.connect("/home/charvi/.superset/superset.db")
def sql_table_fetch(con):
datasource_dict = {}
database_dict = {}
cursorObj = con.cursor()
cursorObj.execute('SELECT * FROM tables')
rows = cursorObj.fetchall()
for row in rows:
db_val = str(list(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
21120,
29941,
13,
13,
13,
2277,
2224,
304,
869,
2585,
13,
9965,
353,
21120,
29941,
29889,
6915,
11974,
5184,
29914,
3090,
1403,
6294,
12587,
24197,
29914,
12587,
24197,
29889,
2585,... |
cinder/tests/unit/scheduler/test_capacity_weigher.py | helenwalsh/cinder | 571 | 64668 | # Copyright 2011-2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29896,
29899,
29906,
29900,
29896,
29906,
4673,
7264,
10606,
13,
29937,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
... |
method_of_moments/__init__.py | AlbertFarkhutdinov/method_of_moments | 0 | 59454 | <reponame>AlbertFarkhutdinov/method_of_moments
"""
This package allows you to work with probability distributions
with a specified mean values and variances.
"""
from .continuous import Beta, GenNBD, Norm
from .discrete import Bernoulli, GPD, HGD, NBD, Poisson, QGD, ZiNBD
| [
1,
529,
276,
1112,
420,
29958,
2499,
2151,
29943,
935,
29882,
329,
24581,
586,
29914,
5696,
29918,
974,
29918,
29885,
290,
1237,
13,
15945,
29908,
13,
4013,
3577,
6511,
366,
304,
664,
411,
6976,
18822,
13,
2541,
263,
6790,
2099,
1819,
... |
Lista_Simplesmente_Encadeada/Lista_Encadeada/OO/controlador_contas.py | BeatrizSilva-Dev/Algoritmos-e-Estruturas-de-Dados | 0 | 125941 |
from OO import bd_contas, menu
def iniciar():
print('ACESSO CAIXA ELETRONICO')
agencia = input('DIGITE AGENCIA')
num_conta = input('DIGITE A CONTA')
conta = bd_contas.buscar_contas(agencia, num_conta)
if conta is not None:
while True:
menu.caixa_eletronico()
op = i... | [
1,
29871,
13,
3166,
438,
29949,
1053,
289,
29881,
29918,
1285,
294,
29892,
6143,
13,
13,
13,
1753,
21855,
279,
7295,
13,
1678,
1596,
877,
11538,
1799,
29949,
12766,
6415,
29909,
382,
1307,
5659,
1164,
2965,
29949,
1495,
13,
1678,
946,
... |
analysis/FlatfieldCalibration.py | Borlaff/EuclidVisibleInstrument | 5 | 155900 | """
Flat Field Calibration
======================
This simple script can be used to study the number of flat fields required to meet the VIS calibration requirements.
The following requirements related to the flat field calibration has been taken from GDPRD.
R-GDP-CAL-054:
The contribution of the residuals of VIS fl... | [
1,
9995,
13,
29943,
5066,
8989,
3037,
26218,
13,
9166,
2751,
1360,
13,
13,
4013,
2560,
2471,
508,
367,
1304,
304,
6559,
278,
1353,
310,
12151,
4235,
3734,
304,
5870,
278,
478,
3235,
1208,
26218,
11780,
29889,
13,
13,
1576,
1494,
11780... |
tests/test_rqscheduler.py | dymaxionlabs/nb_workflows | 4 | 96104 | <reponame>dymaxionlabs/nb_workflows
from labfunctions.conf.server_settings import settings
from labfunctions.control_plane import rqscheduler
def test_rqscheduler_run(mocker):
mocker.patch(
"labfunctions.control_plane.rqscheduler.Scheduler.run", return_value=None
)
rqscheduler.run(settings.RQ_REDI... | [
1,
529,
276,
1112,
420,
29958,
4518,
3317,
291,
29880,
6897,
29914,
9877,
29918,
1287,
1731,
29879,
13,
3166,
9775,
12171,
29889,
5527,
29889,
2974,
29918,
11027,
1053,
6055,
13,
3166,
9775,
12171,
29889,
6451,
29918,
22116,
1053,
364,
29... |
getch.py | salt-die/Snippets | 3 | 153122 | <filename>getch.py
import sys
from io import BytesIO
if sys.platform.startswith('linux'):
import fcntl
import os
import termios
import tty
def getch(block=True):
fd = sys.stdin.fileno()
settings = termios.tcgetattr(fd)
flags = fcntl.fcntl(fd, fcntl.F_GETFL)
try:
... | [
1,
529,
9507,
29958,
657,
305,
29889,
2272,
13,
5215,
10876,
13,
3166,
12013,
1053,
2648,
2167,
5971,
13,
13,
13,
361,
10876,
29889,
12120,
29889,
27382,
2541,
877,
9389,
29374,
13,
1678,
1053,
285,
20047,
29880,
13,
1678,
1053,
2897,
... |
purpleair_connector/main.py | tetradsensors/gcp-functions | 0 | 118590 | from google.cloud import bigquery, storage
import json
import pandas as pd
import time
import requests
import os
import datetime
import geojson
import numpy as np
from matplotlib.path import Path
from time import sleep
import yaml
UPDATE_MINS = 60
gs_client = storage.Client()
env = None
_area_params = None
# Downloa... | [
1,
515,
5386,
29889,
9274,
1053,
4802,
1972,
29892,
8635,
13,
5215,
4390,
13,
5215,
11701,
408,
10518,
13,
5215,
931,
13,
5215,
7274,
13,
5215,
2897,
13,
5215,
12865,
13,
5215,
1737,
29877,
3126,
13,
5215,
12655,
408,
7442,
29871,
13,... |
examples/gradient_damagex.py | TTitscher/fenics-constitutive | 0 | 69247 | """
Implicit gradient-enhanced damage model in dolfinx
==================================================
For the theory and the constitutive model, please refer to the dolfin version :ref:`gdm-label`.
Here, you see the "quadrature" approach working in dolfinx without the need of `LocalProject`.
"""
from gdm_constit... | [
1,
9995,
13,
24192,
4019,
16030,
29899,
264,
29308,
18658,
1904,
297,
270,
4369,
14668,
13,
9166,
9166,
9166,
1360,
13,
13,
2831,
278,
6368,
322,
278,
20016,
11067,
1904,
29892,
3113,
2737,
304,
278,
270,
4369,
262,
1873,
584,
999,
18... |
draft/migrations/0001_initial.py | zffgithub/genshin-bp | 0 | 57951 | # Generated by Django 3.0.4 on 2020-04-17 23:13
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Champion',
fields=[
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29946,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29946,
29899,
29896,
29955,
29871,
29906,
29941,
29901,
29896,
29941,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
src/compat_func.py | rangell/icff | 0 | 68351 | <gh_stars>0
import copy
import numpy as np
from sparse_dot_mkl import dot_product_mkl
from utils import MIN_FLOAT
from IPython import embed
#def raw_overlap(node, constraint, num_points):
def raw_overlap(raw_reps, stacked_constraints, num_points):
extreme_raw_reps = copy.deepcopy(raw_reps).astype(float)
ex... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
3509,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
29234,
29918,
6333,
29918,
29885,
6321,
1053,
8329,
29918,
4704,
29918,
29885,
6321,
13,
13,
3166,
3667,
29879,
1053,
341,
1177,
29... |
exercicios_basico/ex007.py | montalvas/python | 0 | 186271 | <gh_stars>0
# Informe duas notas e sem seguida mostre sua média.
n1 = float(input('Informe a primeira nota: '))
n2 = float(input('Informe a segunda nota: '))
print("As notas do aluno foram {} e {}, logo sua média será {:.2f}".format(n1, n2, (n1 + n2)/2))
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
15162,
29872,
27544,
451,
294,
321,
3031,
7025,
1458,
1556,
276,
4171,
10283,
423,
29889,
13,
13,
29876,
29896,
353,
5785,
29898,
2080,
877,
797,
689,
29872,
263,
20997,
451,
298... |
src/python/utility/shared.py | andyjost/Sprite | 1 | 119842 | <filename>src/python/utility/shared.py
from copy import copy
import collections, six, sys
class Shared(object):
'''
Manages an object with copy-on-write semantics. To access the contained
object for reading or writing, use the ``read`` and ``write`` methods, resp.
If the object has multiple references, then w... | [
1,
529,
9507,
29958,
4351,
29914,
4691,
29914,
329,
1793,
29914,
12366,
29889,
2272,
13,
3166,
3509,
1053,
3509,
13,
5215,
16250,
29892,
4832,
29892,
10876,
13,
13,
1990,
21236,
29898,
3318,
1125,
13,
29871,
14550,
13,
29871,
2315,
1179,
... |
scraper.py | noswald/PatentScraper1.0 | 2 | 119063 | from pyvirtualdisplay import Display
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import WebDriverException
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by ... | [
1,
515,
11451,
18714,
4990,
1053,
17440,
13,
3166,
18866,
1053,
1856,
9465,
13,
3166,
18866,
29889,
29813,
29889,
9435,
29889,
8149,
1053,
4813,
952,
13,
3166,
18866,
29889,
9435,
29889,
11739,
29879,
1053,
2563,
12376,
2451,
13,
3166,
18... |
test/lib/testMap.py | animator/titus2 | 18 | 194093 | #!/usr/bin/env python
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29946,
29871,
4673,
3630,
4852,
6585,
3630,
29908,
14637,
304,
13,
29937,
697,
470,
901,
310,
278,
1494,
14582,
299... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.