repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
atzengin/OCC | ocvc-runtime/examples/mp-sched/affinity_set.py | 1 | 2416 | #!/usr/bin/env python
##################################################
# Ocvc Python Flow Graph
# Title: Affinity Set Test
##################################################
from ocvc import eng_notation
from ocvc import gr
from ocvc import blocks
from ocvc import filter
from ocvc.eng_option import eng_option
#from ... | gpl-3.0 | 3,370,296,344,391,745,500 | 32.555556 | 82 | 0.534354 | false |
ros-industrial/industrial_training | gh_pages/conf.py | 1 | 4422 | # -*- coding: utf-8 -*-
#
# SphinxTest documentation build configuration file, created by
# sphinx-quickstart on Tue Oct 3 11:09:13 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | apache-2.0 | -274,393,508,094,598,460 | 31.043478 | 82 | 0.707372 | false |
wangtianqi1993/machine-learning-project | DeepLearning/tensorflow_test.py | 1 | 1477 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'wtq'
import tensorflow as tf
from data_set.tensorflow_data import mnist_input_data
mnist = mnist_input_data.read_data_sets("MNIST_data/", one_hot=True)
def tensor_flow_test():
"""
:return:
"""
matrix1 = tf.constant([[3, 3]])
matrix2 =... | gpl-3.0 | -4,340,738,443,261,843,500 | 24.912281 | 85 | 0.608666 | false |
vegardli/PyBitica.txt | pybitica.txt.py | 1 | 12782 | #!/usr/bin/python
# Copyright 2016 Vegard Knutsen Lillevoll
#
# Follow this project at https://github.com/vegardli/PyBitica.txt
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version ... | gpl-3.0 | -3,961,661,283,830,218,000 | 32.028424 | 116 | 0.585902 | false |
psaavedra/matrix-bot | setup.py | 1 | 2010 | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
def read_file(path_segments):
"""Read a file from the package. Takes a list of strings to join to
make the path"""
file_path = os.path.join(here, *path_segments)
with open(file_path) as f:
... | mit | 9,037,680,031,715,388,000 | 24.125 | 74 | 0.59602 | false |
jarifibrahim/ashoka-dashboard | dashboard/migrations/0017_auto_20170110_0012.py | 1 | 1141 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-09 18:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0016_auto_20170106_2126'),
]
operations = [
migrations.AddFiel... | apache-2.0 | -3,525,246,500,700,450,300 | 37.033333 | 216 | 0.592463 | false |
mattilyra/gensim | gensim/similarities/index.py | 1 | 7557 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Intro
-----
This module contains integration Annoy with :class:`~gensim.models.word2vec.Word2Vec`,
:class:`~gensim.models.doc2vec.Doc2V... | lgpl-2.1 | -2,261,581,594,857,947,400 | 35.157895 | 119 | 0.618367 | false |
TomTranter/OpenPNM | openpnm/utils/misc.py | 1 | 18899 | import inspect
import warnings
import functools
import numpy as _np
import scipy as _sp
import time as _time
import copy
from collections import OrderedDict
from docrep import DocstringProcessor
class Docorator(DocstringProcessor):
__instance__ = None
def __new__(cls, *args, **kwargs):
if Docorator.... | mit | -6,256,350,218,331,608,000 | 28.599673 | 88 | 0.513663 | false |
pinballwizard/cctv | main/opencv.py | 1 | 5135 | import cv2
import datetime as dt
import time
import imutils
import multiprocessing
class videocam(object):
firstFrame = None
def __init__(self, rec_src, rec_type, rec_int, rec_path, alarm_text):
self.rec_src = rec_src
self.rec_type = rec_type
self.rec_int = rec_int
self.rec_pa... | gpl-3.0 | 1,882,079,466,889,268,500 | 37.72 | 133 | 0.569215 | false |
edilio/tobeawebproperty | haweb/apps/housing/views/html.py | 1 | 1822 | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from ..forms import UploadFileForm
from ..csvmgr import (import_active_contracts,
import_new_admissions,
import_move_outs,
... | mit | 9,058,497,713,841,926,000 | 38.630435 | 82 | 0.593304 | false |
buchwj/xvector | server/xVServer/ServerCore.py | 1 | 21576 | # xVector Engine Server
# Copyright (c) 2011 James Buchwald
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This pr... | gpl-3.0 | 5,859,160,141,894,764,000 | 38.016275 | 79 | 0.528133 | false |
fedora-conary/rmake-2 | rmake/messagebus/logger.py | 1 | 3495 | #
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | apache-2.0 | 2,911,372,966,933,494,300 | 37.406593 | 78 | 0.637768 | false |
petxo/clitellum | clitellum/examples/channels/tcpChannels/receiverTcpChannel.py | 1 | 1556 | import logging
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../../../../../../../'))
from clitellum.core import loadbalancers, queue
from clitellum.endpoints.channels.amqpchannels import OutBoundAmqpChannel
from clitellum.endpoints.gatewaysqueue import SenderGatewayQueue
__author__ = ... | gpl-3.0 | -2,692,581,931,069,989,000 | 30.755102 | 129 | 0.721722 | false |
jvicu2001/alexis-bot | modules/starboard.py | 1 | 8622 | import re
from datetime import datetime
import discord
import peewee
import emoji
from discord import Emoji, Embed
from bot import Command, categories, BaseModel
from bot.lib.guild_configuration import GuildConfiguration
from bot.utils import auto_int, compare_ids
class Starboard(BaseModel):
message_id = peewee... | mit | 6,556,475,329,084,990,000 | 37.32 | 117 | 0.564718 | false |
pbanaszkiewicz/amy | amy/fiscal/tests/test_membership_members.py | 1 | 12777 | from django.db import IntegrityError
from django.urls import reverse
from fiscal.forms import MemberForm
from workshops.models import Member, MemberRole, Membership
from workshops.tests.base import TestBase
class MembershipTestMixin:
def setUpMembership(self, consortium: bool):
self.membership = Membersh... | mit | -324,829,834,634,293,950 | 34.198347 | 87 | 0.559051 | false |
guillermo-sentinella/jaeger-client-python | jaeger_client/codecs.py | 1 | 8929 | # Copyright (c) 2016 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | mit | -7,586,765,878,585,847,000 | 37.487069 | 79 | 0.613283 | false |
brousch/opencraft | instance/models/logging_utils.py | 1 | 1262 | # -*- coding: utf-8 -*-
#
# OpenCraft -- tools to aid developing and hosting free software projects
# Copyright (C) 2015 OpenCraft <xavier@opencraft.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Soft... | agpl-3.0 | 4,499,953,289,501,212,700 | 33.108108 | 79 | 0.634707 | false |
jrg365/gpytorch | test/examples/test_kissgp_additive_regression.py | 1 | 3589 | #!/usr/bin/env python3
import random
import os
import torch
import unittest
import gpytorch
from torch import optim
from gpytorch.kernels import RBFKernel, AdditiveStructureKernel, GridInterpolationKernel, ScaleKernel
from gpytorch.likelihoods import GaussianLikelihood
from gpytorch.means import ZeroMean
from gpytorc... | mit | -2,099,793,556,296,144,000 | 36 | 101 | 0.593201 | false |
tensorflow/lingvo | lingvo/base_runner.py | 1 | 25527 | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | -3,977,921,297,288,659,500 | 39.390823 | 80 | 0.640851 | false |
Midnighter/nadist | setup.py | 1 | 5367 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import (absolute_import, print_function)
import io
import os
import re
from glob import glob
from os.path import (basename, dirname, join, relpath, splitext)
from setuptools import (Extension, find_packages, setup)
from setuptools.command.build_ext imp... | bsd-3-clause | -7,672,936,896,319,823,000 | 31.527273 | 96 | 0.608347 | false |
javacruft/networking-hyperv-debian | hyperv/neutron/hyperv_neutron_agent.py | 1 | 14932 | # Copyright 2013 Cloudbase Solutions SRL
# Copyright 2013 Pedro Navarro Perez
# 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... | apache-2.0 | -3,918,978,173,815,115,000 | 39.686649 | 79 | 0.549424 | false |
elcarlitux/software | django/mysite/polls/views.py | 1 | 1634 | # Create your views here.
from django.shortcuts import render_to_response,get_object_or_404
from django.template import Context, loader,RequestContext
from django.http import HttpResponse,HttpResponseRedirect
from polls.models import Poll,Choice
from django.core.urlresolvers import reverse
from django.http import Http4... | agpl-3.0 | -3,826,983,697,096,341,000 | 42 | 90 | 0.675031 | false |
mahabs/nitro | nssrc/com/citrix/netscaler/nitro/resource/config/network/vrid6_nsip_binding.py | 1 | 5336 | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | -5,332,571,485,993,202,000 | 26.364103 | 130 | 0.682346 | false |
DCSaunders/tensorflow | tensorflow/python/kernel_tests/tensor_array_ops_test.py | 1 | 40350 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 2,347,384,590,677,139,500 | 36.465181 | 80 | 0.601809 | false |
agincel/AdamTestBot | adamtestbot.py | 1 | 5414 | import requests
import time
import sys
import datetime
import csv
import random
import re
import json
import traceback
import os
import telegram
import gc
import signal
from threading import Thread
import builtins #I'm so sorry
from pydblite import Base #The PyDbLite stuff
import src.atbCommands as ... | mit | 1,916,340,045,784,511,500 | 34.829932 | 223 | 0.630772 | false |
Yubico/yubikey-manager | tests/device/cli/piv/test_generate_cert_and_csr.py | 1 | 10269 | from binascii import b2a_hex
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec, rsa, padding
from .util import DEFAULT_PIN, DEFAULT_MANAGEMENT_KEY, NON_DEFAULT_MANAGEMENT_KEY
f... | bsd-2-clause | -285,975,743,159,724,260 | 32.558824 | 86 | 0.585354 | false |
vluzko/test | ml/theano/RNN.py | 1 | 5428 | import numpy as np
import theano as theano
import theano.tensor as T
from utils import *
import operator
class TheanoRNN:
def __init__(self, word_dim, hidden_dim=100, bptt_truncate=4):
# Assign instance variables
self.word_dim = word_dim
self.hidden_dim = hidden_dim
self.bptt_trun... | mit | 1,087,767,060,908,480,500 | 43.491803 | 132 | 0.57664 | false |
jirikuncar/invenio-access | invenio_access/scripts/authaction.py | 1 | 3316 | #!@PYTHON@
# -*- mode: python; coding: utf-8; -*-
#
# This file is part of Invenio.
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundati... | gpl-2.0 | 7,031,112,304,229,078,000 | 35.844444 | 127 | 0.630881 | false |
wadobo/timebank | main/views.py | 1 | 5098 | # -*- coding: utf-8 -*-
# Copyright (C) 2010 Eduardo Robles Elvira <edulix AT gmail DOT com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at yo... | agpl-3.0 | 4,461,199,355,873,981,400 | 36.211679 | 88 | 0.642409 | false |
ericbrandwein/levelup-steps | helper-scripts/feature2file.py | 1 | 1997 | import os
FILE_TEMPLATE = """extends ../../../path-feature-template.pug
block description
| """
def parseFeatureDescription(feature):
description = feature.description.replace('\n', '\n | ')
return FILE_TEMPLATE + description + '\n'
def getFeatureFileName(feature):
return feature.title.replace... | gpl-3.0 | -6,694,659,816,388,695,000 | 28.367647 | 74 | 0.679519 | false |
Mariaanisimova/pythonintask | INBa/2015/Serdehnaya_A_M/task_10_25.py | 1 | 2217 | #Задача 10. Вариант 25
#Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но и возвр... | apache-2.0 | 4,640,120,143,633,528,000 | 33.645833 | 372 | 0.677497 | false |
Symmetric/calico-docker | calico_containers/calico_ctl/container.py | 1 | 15244 | """
Usage:
calicoctl container <CONTAINER> ip (add|remove) <IP> [--interface=<INTERFACE>]
calicoctl container <CONTAINER> endpoint-id show
calicoctl container add <CONTAINER> <IP> [--interface=<INTERFACE>]
calicoctl container remove <CONTAINER>
Description:
Add or remove containers to calico networking and m... | apache-2.0 | 6,288,813,733,888,830,000 | 33.333333 | 87 | 0.598137 | false |
nicolasfauchereau/paleopy | scripts/proxy_oper.py | 1 | 8384 | #!/Users/nicolasf/anaconda/anaconda/bin/python
import os
import sys
import argparse
import json
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
sys.path.insert(0, '../')
from paleopy import proxy
from paleopy import analogs
from paleopy import ensemble
from paleopy.plotting import scala... | mit | -2,305,939,461,410,291,000 | 29.050179 | 167 | 0.681894 | false |
Jozhogg/iris | docs/iris/example_tests/test_SOI_filtering.py | 1 | 1274 | # (C) British Crown Copyright 2012 - 2014, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | lgpl-3.0 | -404,641,646,956,343,600 | 33.432432 | 96 | 0.732339 | false |
shipci/boto | setup.py | 1 | 4556 | #!/usr/bin/env python
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2010, Eucalyptus Systems, Inc.
# All rights reserved.
#
# 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 t... | mit | 7,083,085,816,140,457,000 | 45.020202 | 78 | 0.588894 | false |
Kyria/LazyBlacksmith | lbcmd/manual_celery_tasks.py | 1 | 1373 | # -*- encoding: utf-8 -*-
from flask_script import Command, Option
from lbtasks.tasks import (spawn_character_tasks, spawn_universe_tasks,
task_purge)
class ManualCeleryTasks(Command):
""" Manually trigger task spawner for celery.
Arguments:
-c|--character: triggers charac... | bsd-3-clause | -3,421,041,925,589,255,700 | 27.604167 | 78 | 0.530954 | false |
pyrocko/pyrocko | src/parstack.py | 1 | 3212 | # http://pyrocko.org - GPLv3
#
# The Pyrocko Developers, 21st Century
# ---|P------/S----------~Lg----------
from __future__ import absolute_import
import numpy as num
from . import parstack_ext
try:
range = xrange
except NameError:
pass
def parstack(arrays, offsets, shifts, weights, method,
le... | gpl-3.0 | 641,153,344,792,440,800 | 27.175439 | 76 | 0.606787 | false |
matthew-sochor/trail-cam-detector | modeling/imgs_to_arr.py | 1 | 1440 | import os
import subprocess
import tqdm
import numpy as np
from keras.preprocessing.image import load_img
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
img_width = int(os.environ.get("IMG_DIM"))
img_height = int(os.environ.get("IMG_DIM"))
def imgdir_to_arr(data_dir, arr_dir):
print(... | mit | 4,260,651,782,672,149,000 | 30.304348 | 73 | 0.602778 | false |
132nd-etcher/EMFT | emft/gui/tab_about.py | 1 | 1269 | # coding=utf-8
from emft.core import constant
from emft.core.logging import make_logger
from emft.gui.base import GridLayout, HSpacer, Label, VLayout, VSpacer
from emft.gui.main_ui_tab_widget import MainUiTabChild
LOGGER = make_logger(__name__)
class TabChildAbout(MainUiTabChild):
def tab_clicked(self):
... | gpl-3.0 | 5,567,846,663,171,130,000 | 27.2 | 82 | 0.502758 | false |
SanPen/GridCal | src/GridCal/Engine/Sparse/utils.py | 1 | 2463 | # This file is part of GridCal.
#
# GridCal is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GridCal is distributed in the hope that... | gpl-3.0 | -268,926,645,728,303,700 | 33.208333 | 113 | 0.587089 | false |
regionbibliotekhalland/digitalasagor | edittabvideo.py | 1 | 4897 | # Copyright 2013 Regionbibliotek Halland
#
# This file is part of Digitala sagor.
#
# Digitala sagor is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | gpl-3.0 | -4,274,116,946,208,393,700 | 35.669231 | 112 | 0.603226 | false |
ciudadanointeligente/lobby_cplt | lobby/csv_reader.py | 1 | 1655 | from lobby.models import Active, Audiencia, Passive
from popolo.models import Identifier
import uuid
import unicodedata
from datetime import datetime
class ActivosCSVReader():
def parse_line(self, line):
active = Active()
active.name = unicode(line[3] + " " + line[4])
active.save()
... | agpl-3.0 | -3,626,880,591,057,471,000 | 30.826923 | 87 | 0.607855 | false |
RootForum/magrathea | magrathea/cli/commands/version.py | 1 | 1239 | # -*- coding: utf-8 -*-
"""
magrathea.cli.commands.version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2014 by the RootForum.org team, see AUTHORS.
:license: MIT License, see LICENSE for details.
"""
import magrathea
from ..base import BaseCommand
class VersionCommand(BaseCommand):
"""
... | mit | 6,254,561,424,545,703,000 | 30.769231 | 95 | 0.603713 | false |
ratnania/pigasus | doc/manual/include/demo/test_neumann_quartcircle.py | 1 | 2730 | #! /usr/bin/python
# ...
try:
from matplotlib import pyplot as plt
PLOT=True
except ImportError:
PLOT=False
# ...
import numpy as np
from pigasus.gallery.poisson import *
import sys
import inspect
filename = inspect.getfile(inspect.currentframe()) # script filename (usually with path)
# ...... | mit | -1,505,926,330,432,978,000 | 17.322148 | 97 | 0.456044 | false |
wsilva/fdp-folha-de-ponto-ach2077 | fdp/settings/base.py | 1 | 2384 | """
Django settings for fdp project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | gpl-3.0 | 3,432,215,530,178,696,000 | 23.326531 | 71 | 0.713926 | false |
antonioguirola/webpy-base | forms.py | 1 | 4418 | # -*- coding: utf-8 -*-
from web import form
import re
import db
# Expresiones regulares necesarias:
#formatoVisa=re.compile(r'[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}')
# Funciones necesarias para las validaciones
def fooFunction():
pass
"""
EJEMPLO DE FORMULARIO PARA DARSE DE ALTA
formularioInscripcion = form.... | gpl-3.0 | 5,946,189,467,328,933,000 | 33.155039 | 121 | 0.433727 | false |
estaban/pyload | module/plugins/accounts/FileserveCom.py | 1 | 2261 | # -*- coding: utf-8 -*-
"""
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed in... | gpl-3.0 | -6,783,191,814,099,837,000 | 37.982759 | 116 | 0.597523 | false |
OCA/stock-logistics-barcode | stock_barcodes/wizard/stock_production_lot.py | 1 | 1359 | # Copyright 2019 Sergio Teruel <sergio.teruel@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class WizStockBarcodesNewLot(models.TransientModel):
_inherit = 'barcodes.barcode_events_mixin'
_name = 'wiz.stock.barcodes.new.lot'
_descriptio... | agpl-3.0 | 6,824,069,839,289,448,000 | 29.886364 | 68 | 0.592347 | false |
RoboCupULaval/RULEngine | Game/Team.py | 1 | 1310 | # Under MIT License, see LICENSE.txt
from RULEngine.Game.Player import Player
from RULEngine.Util.constant import PLAYER_PER_TEAM
from RULEngine.Util.team_color_service import TeamColor
class Team():
def __init__(self, team_color, type="friend"):
self.players = {}
for player_id in range(PLAYER_PER... | mit | -7,209,480,122,618,741,000 | 29.465116 | 73 | 0.61145 | false |
dajohnso/cfme_tests | widgetastic_manageiq/__init__.py | 1 | 87294 | # -*- coding: utf-8 -*-
import atexit
import json
import os
import re
import six
from collections import namedtuple
from datetime import date
from math import ceil
from tempfile import NamedTemporaryFile
from wait_for import wait_for
from cached_property import cached_property
from jsmin import jsmin
from lxml.html im... | gpl-2.0 | 4,857,805,675,932,547,000 | 32.717265 | 100 | 0.592607 | false |
asmikhailov/i3pystatus | i3pystatus/zabbix.py | 1 | 2493 | from i3pystatus import IntervalModule
from pyzabbix import ZabbixAPI
class Zabbix(IntervalModule):
"""
Zabbix alerts watcher
Requires: pyzabbix
.. rubric:: Available formatters
* {default} - Full output count alerts like total:a5/a4/a3/a2/a1/a0
* {total} - Total count of alerts
* {aX_co... | mit | 745,224,424,911,811,000 | 34.112676 | 130 | 0.478941 | false |
DzinVision/adventofcode-2016 | day_13.py | 1 | 1232 | from queue import Queue
seed = 1362
seen = set()
def is_empty(x, y):
n = x*x + 3*x + 2*x*y + y + y*y + seed
return bin(n).count('1') % 2 == 0
def valid_moves(x, y):
result = []
actions = [-1, 1]
for action in actions:
new_x = x + action
if x > 0 and is_empty(new_x, y) and (new_x... | gpl-3.0 | -2,430,251,141,979,315,000 | 19.533333 | 67 | 0.541396 | false |
ros2/ci | ros2_batch_job/vendor/osrf_pycommon/osrf_pycommon/process_utils/impl.py | 1 | 12684 | # Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -1,682,285,952,039,231,200 | 41.99661 | 79 | 0.660123 | false |
pmidford/arachadmin | models/db.py | 1 | 17623 | import os
from ConfigParser import SafeConfigParser
defaults = dict(
host="localhost",
user="user",
password="userpass",
dbname="arachadmin")
conf = SafeConfigParser(defaults)
user = password = dbname = host = ''
if os.path.isfile("applications/%s/private/localconfig" % request.application):
con... | mit | -5,455,336,316,017,859,000 | 38.425056 | 86 | 0.520399 | false |
Mahi/EzPyGame | ezpygame/scene.py | 1 | 5091 | class Scene:
"""An isolated scene which can be ran by an application.
Create your own scene by subclassing and overriding any methods.
The hosting :class:`.Application` instance is accessible
through the :attr:`application` property.
Example usage with two scenes interacting:
.. code-block:: ... | mit | -5,380,502,855,221,938,000 | 32.715232 | 70 | 0.573758 | false |
rx2130/Leetcode | python/322 Coin Change.py | 1 | 1430 | class Solution(object):
def coinChange(self, coins, amount):
"""
:type coins: List[int]
:type amount: int
:rtype: int
"""
if amount < 1:
return 0
return self.helper(coins, amount, [0] * amount)
def helper(self, coins, target, cache):
#... | apache-2.0 | 8,560,938,447,716,615,000 | 28.791667 | 68 | 0.511888 | false |
jfietkau/Streets4MPI | persistence.py | 1 | 1926 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# persistence.py
# Copyright 2012 Julian Fietkau <http://www.julian-fietkau.de/>
#
# This file is part of Streets4MPI.
#
# Streets4MPI is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free... | gpl-3.0 | 7,688,861,371,860,292,000 | 31.1 | 70 | 0.708204 | false |
mlabru/ptracks | view/dbedit/dlg_exe_data_new.py | 1 | 36600 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
---------------------------------------------------------------------------------------------------
dlg_exe_data_new
mantém as informações sobre a dialog de edição da tabela de exercícios
This program is free software: you can redistribute it and/or modify
it under th... | gpl-3.0 | 7,855,665,685,907,597,000 | 35.080677 | 129 | 0.528502 | false |
siketh/ASR | catkin_ws/src/asr/src/slam_controller.py | 1 | 1585 | #!/usr/bin/env python
import rospy, os, signal, subprocess
from std_msgs.msg import String
from std_msgs.msg import Bool
def state_callback(data):
if data.data == "Shutdown":
rospy.signal_shutdown(shutdown_hook())
def mapping_callback(data):
global mapping
mapping = data.data
def shutdown_hoo... | mit | -483,380,572,584,401,100 | 23.384615 | 111 | 0.625237 | false |
alexgorban/models | official/vision/image_classification/resnet_model.py | 1 | 12450 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 160,315,715,792,612,700 | 28.363208 | 80 | 0.622249 | false |
foursquare/pants | contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py | 1 | 5014 | # coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from contextlib import contextmanager
from textwrap import dedent
from pants.b... | apache-2.0 | -7,752,688,905,481,061,000 | 35.59854 | 100 | 0.581572 | false |
instacart/ahab | examples/nathook.py | 1 | 4880 | #!/usr/bin/env python
# coding: utf-8
# © 2015 Instacart
# Published as part of http://tech.instacart.com/ahab/
from contextlib import contextmanager
import logging
from pprint import pformat
from random import randint
import subprocess
from ahab import Ahab
import iptc
log = logging.getLogger()
def main():
lo... | isc | 3,008,786,882,495,630,300 | 33.118881 | 79 | 0.569994 | false |
IODisrupt/OmegaBot | cogs/image.py | 1 | 4412 | import discord
from discord.ext import commands
from random import randint
import aiohttp
import random
class Image:
"""Image related commands."""
def __init__(self, bot):
self.bot = bot
#Reserved for further ... stuff
"""Commands section"""
@commands.command(no_pm=True)
async de... | gpl-3.0 | 192,364,097,975,051,680 | 38.392857 | 148 | 0.504306 | false |
SophieBartmann/Faust-Bot | FaustBot/Modules/JokeObserver.py | 1 | 6933 | import random
import time
from FaustBot.Communication import Connection
from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype
jokes = [['Was ist orange und geht über die Berge?'
,'Eine Wanderine.']
,['Was ist orange und schaut durchs Schlüsselloch?'
,'Eine Spannderine.']
,['Was ist violett und... | gpl-3.0 | -2,199,767,613,727,540,000 | 31.779904 | 78 | 0.703547 | false |
agx/git-buildpackage | tests/component/__init__.py | 1 | 9974 | # vim: set fileencoding=utf-8 :
#
# (C) 2012 Intel Corporation <markus.lehtonen@linux.intel.com>
# 2013,2017 Guido Günther <agx@sigxcpu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Fo... | gpl-2.0 | 6,390,861,899,114,878,000 | 35.937037 | 105 | 0.538554 | false |
johnkingsley/aprinter | config_system/utils/nix_utils.py | 1 | 2105 | # Copyright (c) 2015 Ambroz Bizjak
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the... | bsd-2-clause | -881,511,893,180,323,700 | 47.953488 | 143 | 0.691686 | false |
yang1fan2/nematus | test/config.py | 1 | 1647 | import numpy
import os
import sys
SRC = "de"
TGT = "en"
DATA_DIR = "data/"
from nematus.nmt import train
if __name__ == '__main__':
validerr = train(saveto='models/model.npz',
reload_=False,
dim_word=256,
dim=256,
n_words=20000,
... | bsd-3-clause | -7,334,645,368,551,240,000 | 38.214286 | 139 | 0.460231 | false |
artur-shaik/qutebrowser | tests/integration/test_webserver.py | 1 | 2504 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2015 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwa... | gpl-3.0 | 7,791,041,887,054,831,000 | 38.125 | 79 | 0.65655 | false |
jbarkschat/Yu-gi-oh_pack_generator | Yu-gi-oh_pack_generator_alpha.py | 1 | 13809 | import urllib.request
from bs4 import BeautifulSoup
from PIL import Image
from tkinter import Tk, Label, Button
import requests
import pprint
import secrets
import os
class RarityUnknown(Exception):
"""Raised in this program when an unhandled rarity is encountered"""
pp = pprint.PrettyPrinter(indent=4... | gpl-3.0 | -36,560,402,219,080,536 | 34.537037 | 151 | 0.628793 | false |
wireservice/agate | setup.py | 1 | 1797 | #!/usr/bin/env python
from setuptools import setup
install_requires = [
'six>=1.9.0',
'pytimeparse>=1.1.5',
'parsedatetime>=2.1',
'Babel>=2.0',
'isodate>=0.5.4',
'python-slugify>=1.2.1',
'leather>=0.3.2',
'PyICU>=2.4.2',
]
setup(
name='agate',
version='1.6.2',
description=... | mit | 2,069,988,854,236,103,400 | 31.672727 | 92 | 0.592098 | false |
rusty1s/embedded_gcnn | cifar_graph.py | 1 | 3650 | from lib.datasets import Cifar10 as Data
from lib.model import Model as BaseModel, generate_placeholders, train
from lib.segmentation import extract_features_fixed
# from lib.segmentation import slic_fixed
from lib.segmentation import quickshift_fixed
from lib.pipeline import preprocess_pipeline_fixed
from lib.layer im... | mit | -5,641,273,794,863,657,000 | 30.73913 | 79 | 0.62411 | false |
thuydang/ocrfeeder | src/ocrfeeder/feeder/imageManipulation.py | 1 | 8701 | # -*- coding: utf-8 -*-
###########################################################################
# OCRFeeder - The complete OCR suite
# Copyright (C) 2009 Joaquim Rocha
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | gpl-3.0 | 1,223,663,431,530,886,700 | 34.806584 | 108 | 0.526951 | false |
TrainingB/Clembot | clembot/exts/gyms/citymanager.py | 1 | 4523 | from discord.ext import commands
from clembot.core.logs import init_loggers
from clembot.exts.utils.utilities import Utilities
from clembot.core import checks
from clembot.exts.config.channelconfigmanager import ChannelConfigCache
class CityManager(commands.Cog):
def __init__(self, bot):
self.bot = bot
... | gpl-3.0 | 6,849,027,241,458,652,000 | 40.495413 | 158 | 0.662171 | false |
sysbot/cloudenvy | cloudenvy/main.py | 1 | 3204 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
import argparse
import logging
import pkgutil
import string
from cloudenvy.config import EnvyConfig
import cloudenvy.commands
#TODO(bcwaldon): replace this with entry points!
def _load_commands():
"""Iterate through modules in command and import suspected command cla... | apache-2.0 | 618,700,753,464,824,700 | 33.085106 | 78 | 0.669476 | false |
pychess/pychess | setup.py | 1 | 12398 | # -*- coding: UTF-8 -*-
from glob import glob
from os import listdir
from os.path import isdir, isfile
import os
import site
import sys
import subprocess
this_dir = os.path.dirname(os.path.abspath(__file__))
sys.path = [os.path.join(this_dir, "lib")] + sys.path
msi = False
if sys.argv[-1] == "bdist_msi":
try:
... | gpl-3.0 | 6,733,587,486,028,105,000 | 37.030675 | 142 | 0.640103 | false |
froststars/aws-cfn-templates | solutions/CWLogs2S3/ExportCloudWatchLogsToS3Template.py | 1 | 8006 | # -*- encoding: utf-8 -*-
__author__ = 'kotaimen'
__date__ = '04/06/2017'
from troposphere import Base64, FindInMap, GetAtt, Join, Select, Sub
from troposphere import ImportValue, Export
from troposphere import Condition, And, Equals, If, Not, Or
from troposphere import Template, Parameter, Ref, Tags, Output
from tro... | mit | 3,850,581,954,975,111,700 | 25.865772 | 96 | 0.565576 | false |
mattstibbs/blockbuster-server | blockbuster/bb_dbconnector_base.py | 1 | 4377 | class DBConnector:
def __init__(self):
pass
def db_status_check(self):
raise NotImplementedError()
def db_stats_check(self):
raise NotImplementedError()
def db_version_check(self):
raise NotImplementedError()
def checkifregexists(self):
raise NotImplement... | mit | -8,504,770,780,078,958,000 | 18.371681 | 58 | 0.661412 | false |
Kesmon/VolumCalc | calc.py | 1 | 2474 | # Volum kalkulator
# made by Kristian Sundal/(Kesmon/)
# Release 1.0
pi=3.14159265359
start = '\n\nVelg mellom\n"kjegle","pyramide","tpyramide","sylinder","kule","prisme" eller "tprisme"\n"avslutt" for å avslutte'
trekant = 'Vil du ha trekant versjonen? "ja/nei"'
fase=''
print(start)
fase = input('> ')
while fase ... | unlicense | 8,808,921,450,736,615,000 | 18.100775 | 127 | 0.493912 | false |
charlesbrandt/medley | player/shared.py | 1 | 2332 | """
all_contents is the global place to store all content objects
if a requested content source is already loaded,
use it instead of loading a new one
#TODO:
#consider a simpler global variable / object for all_contents
#rather than passing around everywhere...
#could then be imported by any ot... | mit | 1,274,499,095,656,418,600 | 30.093333 | 75 | 0.651372 | false |
encukou/pytest-sourceorder | setup.py | 1 | 1256 | #!/usr/bin/python2
#
# Copyright (C) 2014 pytest-sourceorder contributors. See COPYING for license
#
from setuptools import setup
import io
with io.open('README.rst', 'rt', encoding='utf-8') as f:
readme_contents = f.read()
setup_args = dict(
name = "pytest-sourceorder",
version = "0.5.1",
descriptio... | gpl-3.0 | 6,757,844,863,142,599,000 | 28.904762 | 85 | 0.601911 | false |
xiaoyexu/xCRM | setup.py | 1 | 19311 | # -*- coding: UTF-8 -*-
import os, django
os.environ['DJANGO_SETTINGS_MODULE'] = 'crm_site.settings'
django.setup()
from crm.models import *
from crm.common import *
# Demo initialize
# UserRoleType
userRoleTypes = [
['SALES_ROLE', u"销售"],
['DEV_ROLE', u"CRM开发"]
]
for userRoleType in userRoleTypes:
p = ... | gpl-3.0 | 987,139,168,184,626,300 | 37.755319 | 531 | 0.548394 | false |
Ouranosinc/Magpie | magpie/alembic/versions/2018-06-04_a395ef9d3fe6_reference_root_service.py | 1 | 2200 | """
reference root service.
Revision ID: a395ef9d3fe6
Revises: ae1a3c8c7860
Create Date: 2018-06-04 11:38:31.296950
"""
import sqlalchemy as sa
from alembic import op
from alembic.context import get_context # noqa: F401
from sqlalchemy.dialects.postgresql.base import PGDialect
from sqlalchemy.orm.session import sess... | apache-2.0 | 8,186,256,314,903,162,000 | 32.333333 | 107 | 0.677727 | false |
arokem/PyEMMA | pyemma/_ext/sklearn/base.py | 2 | 17484 | """
--------------------------------------------------------------------------------------------
Extracted from skikit-learn to ensure basic compatibility
without creating an explicit dependency.
For the original code see
http://scikit-learn.org/
and
https://github.com/scikit-learn
----------------------------... | bsd-2-clause | 5,296,387,396,212,741,000 | 38.920091 | 95 | 0.532716 | false |
OiNutter/microbit-scripts | runner/runner.py | 1 | 4487 | from microbit import *
import random
from math import ceil
MAX_COLS = 5
PAUSE = 500
def init():
global blocks, wait, player, old_player, jump_counter, start, counter, lives, jump_held, jump_amount, jump_maxed, PAUSE
blocks = []
wait = 0
player = [1, 4]
old_player = None
jump_counter = 0
s... | mit | -1,286,049,152,465,547,000 | 26.03012 | 123 | 0.539782 | false |
ajyoon/brown | tests/test_interface/test_font_interface.py | 1 | 1421 | import unittest
import pytest
from PyQt5 import QtGui
from brown.core import brown
from brown.interface.font_interface import FontInterface
from brown.utils.units import Unit
class MockUnit(Unit):
CONVERSION_RATE = 0.5
class TestFontInterface(unittest.TestCase):
def setUp(self):
brown.setup()
... | gpl-3.0 | 4,040,838,266,627,218,000 | 32.833333 | 76 | 0.670654 | false |
biothings/biothings_explorer | biothings_explorer/utils/networkx.py | 1 | 4018 | # -*- coding: utf-8 -*-
"""A collection of util functions related to networkx
.. moduleauthor:: Jiwen Xin <kevinxin@scripps.edu>
"""
from collections import defaultdict
def load_res_to_networkx(_res, G, labels, id_mapping, output_id_types):
"""Load restructured API response into a networkx MultiDiGraph.
... | apache-2.0 | -7,102,546,292,403,562,000 | 35.198198 | 88 | 0.529119 | false |
stu314159/pyNFC | partition_suggestion.py | 1 | 5450 | """
partition_suggestion.py
purpose: Given Nx, Ny, Nz and a number of processes, suggest a partitioning strategy that would result in
more-or-less cube-shaped partitions
"""
import random
from collections import deque
def random_partition(factors,n_factors):
"""
factors = list of prime factors of a number
... | mit | 3,723,244,840,983,612,000 | 25.715686 | 107 | 0.572661 | false |
VladimirFilonov/django-yandex-kassa | setup.py | 1 | 1336 | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from setuptools import find_packages
__author__ = 'Alexei Kuzmin'
__version__ = "0.9.13"
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-yandex-kassa',
version=__version__,
packages=find... | mit | -4,451,149,302,298,456,000 | 29.363636 | 78 | 0.586078 | false |
rchrd2/markdown-keyval | key_val.py | 1 | 2188 | """
KeyValue Extension for Python-Markdown
=============================================
A simple example:
Apple: Pomaceous fruit of plants of the genus Malus in.
Orange: The fruit of an evergreen tree of the genus Citrus.
@todo get this to print out in a table
"""
from __future__ import absolute_import
from __futu... | mit | -2,305,283,626,722,497,500 | 33.1875 | 85 | 0.590494 | false |
kvesteri/flask-storage | flask_storage/amazon.py | 1 | 9418 | from functools import wraps
import mimetypes
from boto.s3.connection import S3Connection, SubdomainCallingFormat
from boto.exception import S3ResponseError, S3CreateError
from boto.s3.key import Key
from flask import current_app
from .base import (
FileNotFoundError,
Storage,
StorageException,
Storag... | mit | 305,233,134,853,967,900 | 31.143345 | 78 | 0.56976 | false |
SylvainCecchetto/plugin.video.catchuptvandmore | plugin.video.catchuptvandmore/resources/lib/channels/jp/ntvnews24.py | 1 | 2396 | # -*- coding: utf-8 -*-
"""
Catch-up TV & More
Copyright (C) 2018 SylvainCecchetto
This file is part of Catch-up TV & More.
Catch-up TV & More is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundat... | gpl-2.0 | 2,987,740,199,929,455,600 | 35.30303 | 79 | 0.645659 | false |
keflavich/pyspeckit-obsolete | pyspeckit/spectrum/models/ammonia.py | 1 | 28836 | """
========================================
Ammonia inversion transition TKIN fitter
========================================
Ammonia inversion transition TKIN fitter translated from Erik Rosolowsky's
http://svn.ok.ubc.ca/svn/signals/nh3fit/
.. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com>
Module API
^^^... | mit | -4,252,892,229,494,766,600 | 44.554502 | 188 | 0.575808 | false |
Yelp/pootle | tests/import_export/import.py | 1 | 1745 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytes... | gpl-3.0 | -3,093,608,413,008,632,300 | 31.924528 | 77 | 0.684241 | false |
TriOptima/tri.form | tests/test_compat.py | 1 | 3336 | import pytest
from tri_struct import merged
from tri_form import Field, Form
from tri_form.compat import render_to_string, format_html, field_defaults_factory, render_template, Template
from .compat import RequestFactory, SafeText
def test_render_to_string():
assert render_to_string(
template_name='tri_f... | bsd-3-clause | -3,398,200,830,876,800,000 | 36.483146 | 168 | 0.658273 | false |
TiddlySpace/tiddlywebplugins.jsondispatcher | setup.py | 1 | 1099 | AUTHOR = 'Chris Dent'
AUTHOR_EMAIL = 'cdent@peermore.com'
MAINTAINER = 'Ben Paddock'
MAINTAINER_EMAIL = 'pads@thisispads.me.uk'
NAME = 'tiddlywebplugins.jsondispatcher'
DESCRIPTION = 'A TiddlyWeb plugin to allow the dispatching of tiddlers to non-Python handlers by serialising tiddler data to JSON'
VERSION = '0.1.4'
i... | bsd-3-clause | -7,600,328,731,646,267,000 | 33.34375 | 130 | 0.630573 | false |
vincentchoqueuse/parametrix | parametrix/bayesian_linear_model/signal_models.py | 1 | 1666 | from parametrix.core.signal_models import BaseSignalModel
import numpy as np
import scipy.linalg as lg
from scipy.stats import multivariate_normal
class M_Bayesian_L(BaseSignalModel):
""" Bayesian Linear Signal Model (Eq 10.26)[KAY93]_
.. math::
\\textbf{y}=\\textbf{H}\\textbf{x}... | bsd-3-clause | 7,996,712,236,074,467,000 | 27.237288 | 111 | 0.553421 | false |
Glf9832/AjkSpider | AjkSpider/spiders/AjkZsSpider.py | 1 | 2002 | # -*- coding: utf-8 -*-
import scrapy
from AjkSpider.items import AjkZsspiderItem
class AjkzsspiderSpider(scrapy.Spider):
name = "AjkZsSpider"
allowed_domains = ["zs.fang.anjuke.com"]
start_urls = ['http://zs.fang.anjuke.com/']
def parse(self, response):
subSelector = response.xpath('//div[@cl... | gpl-3.0 | 5,894,071,452,755,513,000 | 44.181818 | 138 | 0.515091 | false |
MKuranowski/WarsawGTFS | static/downloader.py | 1 | 11293 | from dataclasses import dataclass
from datetime import date, datetime, timedelta
from operator import itemgetter
from typing import Dict, List, Optional, Set, Tuple
from pytz import timezone
import libarchive.public
import logging
import ftplib
import json
import re
import os
from .const import DIR_DOWNLOAD, DIR_CONVE... | mit | -6,927,628,474,505,717,000 | 33.117825 | 98 | 0.644736 | false |
nextgis/nextgisweb | nextgisweb/vector_layer/test/test_source_error.py | 1 | 6886 | # -*- coding: utf-8 -*-
from __future__ import division, absolute_import, print_function, unicode_literals
from uuid import uuid4
import six
import pytest
from osgeo import ogr
from nextgisweb.models import DBSession
from nextgisweb.auth import User
from nextgisweb.compat import Path
from nextgisweb.core.exception im... | gpl-3.0 | -574,434,457,849,723,500 | 29.334802 | 92 | 0.596573 | false |
dsapandora/die_hard | diehard.py | 1 | 1608 | #!/usr/bin/env python
import roslib; roslib.load_manifest('DroneInteractiveEnviroment')
import rospy
import json
import requests
from std_msgs.msg import String
from geometry_msgs.msg import Twist
from ardrone_autonomy.msg import Navdata
class DieHard(object):
def __init__(self):
self.twist = Twist()
... | gpl-3.0 | -3,877,265,271,598,974,500 | 35.545455 | 139 | 0.603856 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.