code
stringlengths
3
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
3
1.05M
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: SearchDialog.py from Tkinter import * from idlelib import SearchEngine from idlelib.SearchDialogBase import SearchDialogBase def _setup(text): r...
DarthMaulware/EquationGroupLeaks
Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/idlelib/SearchDialog.py
Python
unlicense
2,315
from haas import api, model, config, server from haas.test_common import config_testsuite, config_merge, fresh_database, \ ModelTest, fail_on_log_warnings from haas.flaskapp import app from haas.model import db from haas.errors import AuthorizationError from haas.rest import init_auth, local from haas.ext.auth.data...
kylehogan/hil
tests/unit/ext/auth/database.py
Python
apache-2.0
7,877
# -*- coding: utf-8 -*- # eip_preferenceswindow.py # Copyright (C) 2013 LEAP # # 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 ve...
laborautonomo/bitmask_client
src/leap/bitmask/gui/eip_preferenceswindow.py
Python
gpl-3.0
9,099
#!/usr/bin/env python # # Copyright (c) 2013 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
sergmelikyan/murano
murano/cmd/api.py
Python
apache-2.0
2,250
# code snippet, to be included in 'sitecustomize.py' import sys def info(etype, value, tb): if hasattr(sys, 'ps1') or not sys.stderr.isatty(): # we are in interactive mode or we don't have a tty-like # device, so we call the default hook sys.__excepthook__(etype, value, tb) else: ...
wmodes/crs
conductor/debughook.py
Python
gpl-3.0
573
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
kou/arrow
dev/archery/archery/utils/lint.py
Python
apache-2.0
13,767
# -*- coding: utf-8 -*- """ jinja2.runtime ~~~~~~~~~~~~~~ Runtime helpers. :copyright: (c) 2010 by the Jinja Team. :license: BSD. """ from itertools import chain from jinja2.nodes import EvalContext, _context_function_types from jinja2.utils import Markup, soft_unicode, escape, missing, concat, \ ...
harshilasu/LinkurApp
y/google-cloud-sdk/lib/jinja2/runtime.py
Python
gpl-3.0
19,343
from multistack.services.remote import Remote from multistack.constants import * def setup_s3fs(credentials, remote): """ Creates /etc/passwd-s3fs containing AWS access and secret key in the following form. accesskey:secretaccesskey @param credentials: AWS access key and secret ID @type cr...
siel-iiith/MultiStack
multistack/services/run.py
Python
apache-2.0
4,336
d = dump("dump.kinase") r = gl(d) r.zoom(1.3) r.q(12) r.acol([1,4,6,8,9],["white","red","green","blue","purple"]) r.show(0)
sn-amber/mylpp
examples/files/tmp.py
Python
gpl-2.0
124
# Copyright 2017 Google 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 writing, s...
thenenadx/forseti-security
google/cloud/security/common/data_access/group_dao.py
Python
apache-2.0
3,871
# -*- encoding: utf-8 -*- # pilas engine - a video game framework. # # copyright 2010 - hugo ruscitti # license: lgplv3 (see http://www.gnu.org/licenses/lgpl.html) # # website - http://www.pilas-engine.com.ar ''' pilas.pilasverion ================= Definición de la version actual de pilas y funciones para compararla...
irvingprog/pilas
pilas/pilasversion.py
Python
lgpl-3.0
1,208
""" Test script for doctest. """ from test import test_support import doctest import warnings ###################################################################### ## Sample Objects (used by test cases) ###################################################################### def sample_func(v): """ Blah blah ...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-2.5/Lib/test/test_doctest.py
Python
mit
73,860
__author__ = "Nitin Kumar, Rick Sherman" __credits__ = "Jeremy Schulman" import unittest from nose.plugins.attrib import attr from mock import patch import os from jnpr.junos import Device from jnpr.junos.facts.swver import facts_software_version as software_version, version_info from ncclient.manager import Manager,...
dgjnpr/py-junos-eznc
tests/unit/facts/test_swver.py
Python
apache-2.0
4,029
# -*- coding: utf-8 -*- """ Exodus Add-on Copyright (C) 2016 Exodus 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 l...
repotvsupertuga/repo
script.module.stream.tvsupertuga.addon/resources/lib/sources/de/kinow.py
Python
gpl-2.0
7,095
from flask import Blueprint, flash, redirect, render_template, request, url_for,send_from_directory, abort, make_response, send_file, session from octs.user.models import Course,Task, User, Message, Team,TeamUserRelation, File,Source,Term,TaskTeamRelation, Tag,UserScore from .forms import CourseForm,TaskForm, FileForm,...
kaiueo/octs
octs/teacher/views.py
Python
bsd-3-clause
34,607
# -*- coding: utf-8 -*- # # Copyright (C) 2014 Carlos Jenkins <carlos@jenkins.co.cr> # # 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 # # Unles...
carlos-jenkins/confspec
test/options.py
Python
apache-2.0
2,711
from kivy.vector import Vector from parabox.phisics.base_phisics import BasePhisics class PlainPhisics(BasePhisics): """Phisics model with linear gravity vector""" def __init__(self, *args, gravity=(0, 0), **kwargs): """PlainPisics constructor :param gravity: gravity vector :param g...
DenisMinich/parabox
parabox/phisics/plain_phisics.py
Python
mit
798
#!/usr/bin/python import json, os, sqlite3, sys # pass the filename as an argument when calling this script if len(sys.argv) < 2: sys.exit('Usage: json-to-sqlite.py /path/to/file.json') fileIn = sys.argv[1] fileOnly = os.path.basename(fileIn) try: fileOut = sys.argv[2] except IndexError: fileList = [fileOnly.split(...
lenwood/csv-json
Python/json-to-sqlite.py
Python
mit
1,015
# This file is part of Bika LIMS # # Copyright 2011-2016 by it's authors. # Some rights reserved. See LICENSE.txt, AUTHORS.txt. # ../../skins/bika/bika_widgets/analysisprofileanalyseswidget.pt from AccessControl import ClassSecurityInfo from Products.Archetypes.Registry import registerWidget, registerPropertyType from...
rockfruit/bika.lims
bika/lims/browser/widgets/analysisprofileanalyseswidget.py
Python
agpl-3.0
8,420
# Copyright 2012 Red Hat, 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 writing, so...
tanglei528/nova
nova/virt/disk/vfs/guestfs.py
Python
apache-2.0
8,034
import nn_grad_test as nt import numpy as np import start.neural_network as nn import start.layer_dict as ld import start.weight_update_params as wup class test_x3_fc1_sigmo1(nt.NnGradTest): def define_nn(self): self.net = nn.NeuralNetwork("test_net", 1) self.layer = ld.hdict["fc"](1) ...
anamayasullerey/test_net
src/tests/test_grad_x3_fc1_sigmo1.py
Python
mit
730
# -*- coding: utf-8 -*- """ Module: tie.py Created on Mon Jan 27 17:12:19 2014 @author: gav Description: Utilities for converting to and from ASA's tie polygon format The central common format will be geojson records suitable for the shapely/fiona gis stack. """ ### Imports from __future__ import print_function from ...
gjcoombes/banks
banks/gis/tie.py
Python
mit
5,232
from fractions import Fraction def add_fracs(*args): return str(sum(Fraction(a) for a in args)) if args else ''
the-zebulan/CodeWars
katas/beta/adding_fractions.py
Python
mit
118
from django.core.management.base import BaseCommand from apps.statistics.models import MStatistics class Command(BaseCommand): def handle(self, *args, **options): MStatistics.collect_statistics()
samuelclay/NewsBlur
apps/statistics/management/commands/collect_stats.py
Python
mit
218
''' Created on Apr 30, 2015 @author: pekzeki ''' from pymongo import MongoClient import networkx as nx from network_analysis import graph_analysis as GA def all_friends_graph(): G = nx.Graph() for user in user_collection.find(): G.add_node(user.get("_id")) friend_list = user.get("friends") ...
pekzeki/SNAofYelp
network_analysis/undirected_all_friends.py
Python
mit
663
"""Support for Zigbee Home Automation devices.""" import asyncio import logging import voluptuous as vol from zhaquirks import setup as setup_quirks from zigpy.config import CONF_DEVICE, CONF_DEVICE_PATH from homeassistant import const as ha_const from homeassistant.config_entries import ConfigEntry from homeassistan...
rohitranjan1991/home-assistant
homeassistant/components/zha/__init__.py
Python
mit
6,244
"""Tests for base extension.""" import unittest from grow.extensions import base_extension class BaseExtensionTestCase(unittest.TestCase): """Test the base extension.""" def test_config_disabled(self): """Uses the disabled config.""" ext = base_extension.BaseExtension(None, { 'di...
grow/pygrow
grow/extensions/base_extension_test.py
Python
mit
844
# -*- coding: utf-8 -*- """ oauthlib.oauth2.rfc6749 ~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various logic needed for consuming and providing OAuth 2.0 RFC6749. """ from __future__ import absolute_import, unicode_literals from ..parameters import parse_token_response, prepare_token_request from .ba...
skion/oauthlib-oidc
oauthlib/oauth2/rfc6749/clients/backend_application.py
Python
bsd-3-clause
2,477
""" Copyright 2016, Michael DeHaan <michael.dehaan@gmail.com> 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...
mpdehaan/camp
examples/04_roman_notation.py
Python
apache-2.0
2,062
''' MCTSClass.py: Class for a basic Monte Carlo Tree Search Planner. ''' # Python imports. import math import random from collections import defaultdict # Other imports. from simple_rl.planning.PlannerClass import Planner class MCTS(Planner): def __init__(self, mdp, name="mcts", explore_param=math.sqrt(2), roll...
david-abel/simple_rl
simple_rl/planning/MCTSClass.py
Python
apache-2.0
3,868
""" Unit tests for the basin hopping global minimization algorithm. """ import copy from numpy.testing import assert_almost_equal, assert_equal, assert_ import pytest from pytest import raises as assert_raises import numpy as np from numpy import cos, sin from scipy.optimize import basinhopping, OptimizeResult from s...
anntzer/scipy
scipy/optimize/tests/test__basinhopping.py
Python
bsd-3-clause
16,851
import requests import json import re from requests.adapters import HTTPAdapter from cartodb_services.tools.exceptions import (WrongParams, MalformedResult, ServiceException) from cartodb_services.tools.qps import qps_retry f...
CartoDB/dataservices-api
server/lib/python/cartodb_services/cartodb_services/mapzen/geocoder.py
Python
bsd-3-clause
5,270
from PyQt5.QtCore import Qt, pyqtSignal from PyQt5.QtGui import QCursor from PyQt5.QtWidgets import QAction, QMenu, QComboBox class DropDown(QComboBox): """Dropdown for selecting profiles""" deleteItem = pyqtSignal() def __init__(self, parent=None): super(DropDown, self).__init__(parent=parent) ...
Thomasedv/Grabber
Modules/dropdown_widget.py
Python
gpl-3.0
789
#! /usr/bin/python -tt import nose from rhuilib.util import * from rhuilib.rhui_testcase import * from rhuilib.rhuimanager import * from rhuilib.rhuimanager_cds import * from rhuilib.rhuimanager_client import * from rhuilib.rhuimanager_repo import * from rhuilib.rhuimanager_sync import * from rhuilib.rhuimanager_iden...
RedHatQE/rhui-testing-tools
rhui-tests/test_rhui_workflow_simple.py
Python
gpl-3.0
5,318
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 Foundation; either ve...
pombredanne/invenio
modules/miscutil/lib/dateutils_tests.py
Python
gpl-2.0
8,759
import re import math from qgis.core import QgsPointXY, QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsProject from .util import epsg4326 epsg32661 = QgsCoordinateReferenceSystem("EPSG:32661") epsg32761 = QgsCoordinateReferenceSystem("EPSG:32761") class UpsException(Exception): pass def upsParse(ups_st...
NationalSecurityAgency/qgis-latlontools-plugin
ups.py
Python
gpl-2.0
2,187
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
lmazuel/azure-sdk-for-python
azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended.py
Python
mit
3,942
# -*- coding: utf-8 -*- """ This is an integration "unit" test. """ from canaimagnulinux.web.policy.config import DEPENDENCIES as ZOPE2_STYLE_PRODUCTS from canaimagnulinux.web.policy.config import PROFILE_ID from canaimagnulinux.web.policy.config import PROJECTNAME from canaimagnulinux.web.policy.testing import FUNCT...
CanaimaGNULinux/canaimagnulinux.web.policy
canaimagnulinux/web/policy/tests/test_setup.py
Python
gpl-3.0
9,188
"""Tests for AccuWeather."""
pschmitt/home-assistant
tests/components/accuweather/__init__.py
Python
apache-2.0
29
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
jkyeung/XlsxWriter
xlsxwriter/test/comparison/test_rich_string03.py
Python
bsd-2-clause
1,229
# coding: utf8 # Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net> from ..conversion import ConversionUnitTests from ..expressions import ConditionExpressionUnitTests from ..return_types import ( TableDescriptionUnitTests, AttributeDefinitionUnitTests, GlobalSecondaryIndexDescriptionUnitTe...
jacquev6/LowVoltage
LowVoltage/actions/tests/unit.py
Python
mit
1,526
# -*- coding: utf-8 -*- """ *************************************************************************** Union.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *********************************...
herow/planning_qgis
python/plugins/processing/algs/qgis/Union.py
Python
gpl-2.0
9,266
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Exercicio 5 - Lista 2 do curso Python para Zumbis Escrecer um programa que receba 3 valores e processo o maior e menor numeros, e os exiba na tela. """ a = float(raw_input('Digite um valor para A? ')) b = float(raw_input('Digite um valor para B? ')) c = floa...
kaiocesar/Listasexerciciosppz
lista_2/exercicio_5.py
Python
mit
667
class BiDi: """ A wee utility class for keeping bi-directional mappings, like field constants in protocols. Names are attributes on the object, dict-like access maps values to names: CONST = BiDi(a=1, b=2) assert CONST.a == 1 assert CONST.get_name(1) == "a" ""...
dwfreed/mitmproxy
mitmproxy/types/bidi.py
Python
mit
821
import logging # # This class can be used to talk to a MOH/BFBC2 game server. It can send commands to the server, and receive responses. # When a receive is performed, the code will wait until a full packet is available. # It is not suitable for sending commands and receiving events at the same time. # import socket f...
rocketblast/rcon
src/rocketblast/rcon/frostbite/connection.py
Python
agpl-3.0
2,327
#!/usr/bin/python import mock import sys class DesktopTest(mock.TestCase): def setUp(self): self.setupModules(["_isys", "block", "ConfigParser"]) self.fs = mock.DiskIO() self.fs.open('/mnt/sysimage/etc/inittab', 'w').write('id:5:initdefault:') self.fs.open('/mnt/sysimage/etc/sysc...
mattias-ohlsson/anaconda
tests/pyanaconda_test/desktop_test.py
Python
gpl-2.0
3,463
from ..bpch2netCDF import * import logging import pytest logging.basicConfig(filename='test.log', level=logging.DEBUG) logging.info('Starting GEOSChem test.') def test_get_folder(): return logging.info('GEOSChem test complete')
tsherwen/AC_tools
AC_tools/Tests/test_generic.py
Python
mit
236
"""Usage: episode new <project_name> episode server <port> episode build episode deploy episode watch episode -h | --help | --version """ __version__ = '0.1.0' import os import re import sys import yaml import time import math import uuid import shutil import subprocess import http.server from...
Windfarer/episode
episode/__init__.py
Python
mit
12,989
#!/usr/bin/python # coding: utf-8 -*- # (c) 2017, Wayne Witzel III <wayne@riotousliving.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1...
ravibhure/ansible
lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py
Python
gpl-3.0
4,154
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-02 09:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migra...
ITOO-UrFU/open-programs
open_programs/apps/disciplines/migrations/0001_initial.py
Python
unlicense
4,047
# -*- coding: utf-8 -*- u""" .. module:: test_contactform """ from django.core import mail from django.test import Client from django.test import TestCase from apps.volontulo.tests import common class TestPages(TestCase): u"""Class responsible for testing contact forms.""" test_admin_email = test_admin_use...
mkwiat79/volontulo
apps/volontulo/tests/views/test_contactform.py
Python
mit
8,389
# Copyright (c) 2012-2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
xiaoyuanW/gem5
src/arch/arm/ArmISA.py
Python
bsd-3-clause
5,654
import tkinter as tk import datetime from Data import Data class Dates(): def fromToday(_days): today = datetime.date.today() date = today + datetime.timedelta(days=_days) year, month, day = str(date.year), str(date.month), str(date.day) if len(month) == 1: month = '0' + month if len(day) == 1: day =...
victor-prado/broker-manager
broker-manager/Dates.py
Python
mit
2,321
from portality.dao import DomainObject from portality.core import app from portality.models.v2.bibjson import JournalLikeBibJSON from portality.models.v2 import shared_structs from portality.models.account import Account from portality.lib import es_data_mapping, dates, coerce from portality.lib.seamless import Seamles...
DOAJ/doaj
portality/models/v2/journal.py
Python
apache-2.0
36,695
from hwt.hdl.statements.statement import HwtSyntaxError class HlsSyntaxError(HwtSyntaxError): pass
Nic30/hwtHls
hwtHls/errors.py
Python
mit
105
"""Support for tracking consumption over given periods of time.""" from datetime import timedelta import logging from croniter import croniter import voluptuous as vol from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssis...
rohitranjan1991/home-assistant
homeassistant/components/utility_meter/__init__.py
Python
mit
7,459
# ----------------------------------------------------------------------------- # Copyright * 2014, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The Crisis Mapping Toolkit (CMT) v1 platform is licensed under the Apache #...
asurunis/CrisisMappingToolkit
cmt/util/processManyLakes.py
Python
apache-2.0
15,844
from datetime import datetime class LocationsModel(object): """Visa Mobile Location Confirmation Location Update data object model. https://developer.visa.com/products/mlc/reference#mlc__mlc1 :param pyvdp.mlc.locationupdate.LocationModel.Header header: **Required**. Instance of :func:`~...
ppokrovsky/pyvdp
pyvdp/mlc/locationupdate/models.py
Python
mit
4,690
# -*- coding: utf-8 -*- ############################################################################## # # Authors: Nemry Jonathan # Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsibility...
acsone/acsone-addons
easy_debug_backend/__manifest__.py
Python
agpl-3.0
1,826
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Conector para fileserve # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib2,urllib,re import os from core imp...
titienmiami/mmc.repository
plugin.video.tvalacarta/servers/fileserve.py
Python
gpl-2.0
2,081
# -*- coding: utf-8 -*- """Provide functions for the creation and manipulation of Quaternions. """ from __future__ import absolute_import, division, print_function import numpy as np from . import vector, vector3, vector4 from .utils import all_parameters_as_numpy_arrays, parameters_as_numpy_arrays class index: #...
PhloxAR/phloxar
PhloxAR/math3/quaternion.py
Python
apache-2.0
12,537
# -*- coding: utf-8 -*- """ pygments.lexers.j ~~~~~~~~~~~~~~~~~ Lexer for the J programming language. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, words, include from pygments.token import Com...
tmm1/pygments.rb
vendor/pygments-main/pygments/lexers/j.py
Python
mit
4,527
#-*- coding: utf-8 -*- from django.conf import settings from django.contrib.sites.models import Site from django.utils.translation import get_language, activate from django.template.context import Context def get_language_for_user(user): return user.get_profile().preferred_language class BaseDeliveryBackend(obj...
stefanfoulis/django-notifyme
notifyme/delivery_backends/base.py
Python
mit
2,513
# Copyright 2011 OpenStack Foundation # Copyright 2011 Ilya Alekseyev # # 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 # #...
cloudbase/nova-virtualbox
nova/tests/unit/test_nova_manage.py
Python
apache-2.0
23,295
# -*- coding: utf8 -*- """ tentacles, python ORM Copyright (C) 2010-2011, Guillaume Bour <guillaume@bour.cc> 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, version 3 This pr...
gbour/Tentacles
tentacles/backends/sqlite3/__init__.py
Python
gpl-3.0
909
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2013 Michel Petit <petit.michel@gmail.com> # # 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 # w...
malenkiki/team
team.py
Python
mit
3,108
""" A wrapper for the 'gpg' command:: Portions of this module are derived from A.M. Kuchling's well-designed GPG.py, using Richard Jones' updated version 1.3, which can be found in the pycrypto CVS repository on Sourceforge: http://pycrypto.cvs.sourceforge.net/viewvc/pycrypto/gpg/GPG.py This module is *not* forward-...
ashemery/tariq
Tariq/gnupg.py
Python
gpl-3.0
27,595
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # # This file is part of the E-Cell System # # Copyright (C) 1996-2016 Keio University # Copyright (C) 2008-2016 RIKEN # Copyright (C) 2005-2009 The Molecular Sciences Institute # #:::::::::::::::::::::::::::::::::::::::...
ecell/ecell3
ecell/frontend/model-editor/ecell/ui/model_editor/PathwayEditor.py
Python
lgpl-3.0
11,027
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('geokey_sapelli', '0005_sapellifield_truefalse'), ] operations = [ migrations.AddField( model_name='sapelliprojec...
ExCiteS/geokey-sapelli
geokey_sapelli/migrations/0006_sapelliproject_sapelli_fingerprint.py
Python
mit
468
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
mbohlool/client-python
kubernetes/test/test_v1_node_affinity.py
Python
apache-2.0
945
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import unicode_literals from _...
klahnakoski/MoDataSubmission
pyLibrary/jsons/ref.py
Python
mpl-2.0
7,353
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
Donkyhotay/MoonPy
zope/app/security/metadirectives.py
Python
gpl-3.0
4,426
"""TestSuite""" import sys import unittest from rez.vendor.unittest2 import case, util __unittest = True class BaseTestSuite(unittest.TestSuite): """A simple test suite that doesn't provide class or module shared fixtures. """ def __init__(self, tests=()): self._tests = [] self.addTests(...
cwmartin/rez
src/rez/vendor/unittest2/suite.py
Python
lgpl-3.0
9,425
from os.path import abspath, dirname, join, split from glob import glob from functools import partial from subprocess import Popen, PIPE import gzip from click import echo from psycopg2 import (connect, OperationalError) from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT from natsort import natsorted from amg...
ElDeveloper/american-gut-web
amgut/lib/data_access/env_management.py
Python
bsd-3-clause
7,411
from cchloader.adapters import CchAdapter from cchloader.models.cch_autocons import CchAutoconsSchema from marshmallow import Schema, fields, pre_load class A5dBaseAdapter(Schema): """ A5D Adapter """ @pre_load def fix_numbers(self, data): for attr, field in self.fields.iteritems(): ...
Som-Energia/cchloader
cchloader/adapters/a5d.py
Python
gpl-3.0
1,099
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Product.code' db.alter_column('products_items', 'code', self.gf('django.db.models.fields....
Lisaveta-K/lisaveta-k.github.io
_site/tomat/apps/products/migrations/0004_blank_1c_code.py
Python
mit
5,691
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
marscher/mdtraj
MDTraj/formats/mdcrd.py
Python
lgpl-2.1
16,789
# Copyright 2019 Fortinet, Inc. # # 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 the...
simonwydooghe/ansible
test/units/modules/network/fortios/test_fortios_system_session_helper.py
Python
gpl-3.0
8,151
# -*- coding: utf-8 -*- """ *************************************************************************** Grass7Algorithm.py --------------------- Date : February 2015 Copyright : (C) 2014-2015 by Victor Olaya Email : volayaf at gmail dot com ****************...
nirvn/QGIS
python/plugins/processing/algs/grass7/Grass7Algorithm.py
Python
gpl-2.0
38,271
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Reads stdin and writes snps in bed format to stdout # import sys def main(): # Set column names chr_col = "alternate_ids" pos_col = "position" snp_col = "rsid" # Set column separator sep = "\t" # Set possible missing values missing_va...
edm1/gwas-enrichment
make-features/make-genomic-features/1_snp-to-bed.py
Python
mit
1,100
import sys sys.path.append('/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7') sys.path.append('/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages') import socket import sqlite3 import struct import pcapy import datetime import time import os import optpars...
adittrich/excovery
master/Analyze_graph.py
Python
mit
16,509
from __future__ import division # These functions have their own module in order to be compiled with the right # __future__ flag (and be tested alongside the 2.x legacy division operator). def truediv_usecase(x, y): return x / y def itruediv_usecase(x, y): x /= y return x
stefanseefeld/numba
numba/tests/true_div_usecase.py
Python
bsd-2-clause
289
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
rossburton/yocto-autobuilder
lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/interfaces.py
Python
gpl-2.0
50,356
__productname__ = 'vew' __version__ = '0.0.1' __copyright__ = "Copyright (c) 2015 Shawn Axsom" __author__ = "Shawn Axsom" __author_email__ = "shawn.axsom@gmail.com" __description__ = "Git Viewer" __url__ = "https://github.com/axs221/vew" __license__ = "Licensed under the MIT License"
axs221/vew
src/__init__.py
Python
gpl-2.0
285
""" Peg. """ from __future__ import absolute_import #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module. import __init__ from fabmetheus_utilities.geometry.creation import extrude from fabmetheus_utilities.geomet...
natetrue/ReplicatorG
skein_engines/skeinforge-40/fabmetheus_utilities/geometry/creation/peg.py
Python
gpl-2.0
4,748
""" # Name: Tier 1 Rapid Benefit Indicator Assessment - Social Equity # Purpose: Calculate reliabilty of site benefit product into the future # Author: Justin Bousquin # # Version Notes: # Developed in ArcGIS 10.3 #0.1.0 converted from .pyt """ ###########IMPORTS########### import os import time import arcpy from decim...
jbousquin/Rapid-Benefit-Indicators-Tools
py_Spatial/py_standaloneScripts/Social_Equity.py
Python
mit
11,257
from subprocess import call import distutils.util from ConfigParser import ConfigParser from assetjet import __version__ def build_installer(appName, filename, installerName): # read the connection settings from the config file cfg = ConfigParser() cfg.readfp(open('ftpserver.cfg')) innoSetupLoc ...
peterbrook/assetjet
deploy/build_inno_setup.py
Python
gpl-3.0
1,191
from event.utils import upload_path def upload_path_barcodes(instance, filename): return upload_path('barcodes/', filename, instance.id)
brickfiestastem/brickfiesta
afol/utils.py
Python
agpl-3.0
143
# # Copyright 2013 Geodelic # # 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 ...
dlobue/powerupdater
powerupdater/pdnsmodels.py
Python
apache-2.0
2,022
#!/usr/bin/python import subprocess #print "Updating" #command = ["git", "fetch", "origin"] #subprocess.check_output(command) #command = ["git", "pull", "origin", "master"] #subprocess.check_output(command) #pull from git print "Starting wezbot" subprocess.call(["python", "/home/pi/wezbot/code/wezbot.py"])
krishnaz/wezbot
code/updater.py
Python
gpl-2.0
311
#!/usr/bin/env python # # Copyright 2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
michaelld/gnuradio
gr-vocoder/examples/g723_40_audio_loopback.py
Python
gpl-3.0
1,547
import structlog from flask import Blueprint, request from conditional.models.models import UserLog from conditional.util.ldap import ldap_is_eboard from conditional.util.ldap import ldap_is_rtp from conditional.util.ldap import ldap_get_member from conditional.util.flask import render_template logger = structlog....
RamZallan/conditional
conditional/blueprints/logs.py
Python
mit
834
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # 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...
SpamapS/gearstore
gearstore/store/sqla_models.py
Python
apache-2.0
888
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
davidsminor/gaffer
python/GafferUITest/__init__.py
Python
bsd-3-clause
5,081
"""Structure-oriented XBlocks.""" from xblock.core import XBlock from xblock.fragment import Fragment class ExtraViewsMixin(object): ''' This is a mixin which will redirect all functions ending with `_view` to `view()` if not implemented otherwise. This allows us to test other views in structural el...
Lyla-Fischer/xblock-sdk
sample_xblocks/basic/structure.py
Python
agpl-3.0
2,972
import datetime import pickle import os from twisted.python import log from twisted.enterprise import adbapi #import twistedpg from . import lookup from .configuration import configuration #dbpool = adbapi.ConnectionPool("twistedpg", "host=borch.frikanalen.no port=5433 user=postgres password=SECRET dbname=frikanalen")...
Frikanalen/mltplayout
src/vision/pgsched.py
Python
gpl-3.0
1,242
# Natural Language Toolkit: Parsers # # Copyright (C) 2001-2016 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT # """ NLTK Parsers Classes and interfaces for producing tree structures...
adazey/Muzez
libs/nltk/parse/__init__.py
Python
gpl-3.0
4,269
# -*- coding: utf-8 -*- from setuptools import setup import sys, os here = os.path.abspath(os.path.dirname(__file__)) DESCRIPTION = open(os.path.join(here, 'DESCRIPTION')).read() version = '0.0.1' setup(name='ssp', version=version, description="System Service Processor communication library", long_...
mdcic/ssp
setup.py
Python
gpl-3.0
1,270
""" Interfaces and classes for GenericFunction. Needs to be subclassed before being used. @todo: Change GenericFunction to my enum thing """ import abc from ..valueabc.interface_type import InterfaceType from . import support _NOT_IMPLEMENTED = lambda self, *args, **kwargs: NotImplemented class GenericFunctionIn...
OaklandPeters/pyinterfaces
pyinterfaces/generics/generic_function.py
Python
mit
2,964
class Tree(object): '''An object representing a tree path for a given commit''' ROOT = None def __init__(self, repo, ref, path = ROOT, size = None): self.repo = repo self.ref = ref self.path = path self.size = size @property def trees...
roscoeZA/GeoGigSync
src/geogigpy/tree.py
Python
cc0-1.0
1,018