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
import logging def setup_logging(): FORMAT = '%(asctime)-15s %(message)s' logging.basicConfig(filename='log.txt', filemode='w', datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO, format=FORMAT) console = logging.StreamHandler() console.setLevel(logging.INF...
eldar/pose-tensorflow
util/logging.py
Python
lgpl-3.0
368
# -*- coding: utf-8 -*- """Plugin enabling us to isolate browser sessions per test. If active, then when each test ends, the browser gets killed. That ensures that whatever way the browser session could be tainted after a test, the next test should not be affected. """ import pytest from cfme.utils.appliance import f...
Yadnyawalkya/integration_tests
cfme/test_framework/browser_isolation.py
Python
gpl-2.0
1,077
#!/usr/bin/env python3 from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import ElementNotVisibleException from selenium.common.exceptions import T...
sonicmower/snu-snu
snusnu/browse_products.py
Python
mit
14,515
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009-2010: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # # This file is part of Shinken. # # Shinken is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Licens...
wbsavage/shinken
test/test_livestatus_hints.py
Python
agpl-3.0
24,802
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
skosukhin/spack
var/spack/repos/builtin/packages/r-lmtest/package.py
Python
lgpl-2.1
1,796
''' A log plot using functions with different growth rates. This example demonstrates using a log axis on a Bokeh plot. Various line styles and glyph combinations are automatically added to a legend. .. bokeh-example-metadata:: :apis: bokeh.plotting.figure.circle, bokeh.plotting.figure.line :refs: :ref:`usergu...
bokeh/bokeh
examples/plotting/file/logplot.py
Python
bsd-3-clause
1,305
""" @package mi.instrument.wetlabs.fluorometer.flort_d.test.test_driver @file marine-integrations/mi/instrument/wetlabs/fluorometer/flort_d/driver.py @author Art Teranishi @brief Test cases for flort_d driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driver $ bin/test_dri...
janeen666/mi-instrument
mi/instrument/wetlabs/fluorometer/flort_d/test/test_driver.py
Python
bsd-2-clause
42,688
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Blink frame presubmit script See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built i...
xunmengfeng/engine
sky/engine/core/frame/PRESUBMIT.py
Python
bsd-3-clause
461
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-02 14:37 from __future__ import unicode_literals from django.conf import settings import django.contrib.postgres.fields.hstore from django.db import migrations, models import django.db.models.deletion from django.contrib.postgres.operations import HStoreEx...
ayarshabeer/drf_shop
products/migrations/0001_initial.py
Python
mit
5,291
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ Implements support for high-level dataset ac...
Weihonghao/ECM
Vpy34/lib/python3.5/site-packages/h5py/_hl/dataset.py
Python
agpl-3.0
26,228
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class MirrorGnuBroken(AutotoolsPackage, GNUMirrorPackage): """Simple GNU package""" homepag...
rspavel/spack
var/spack/repos/builtin.mock/packages/mirror-sourceware-broken/mirror-gnu-broken/package.py
Python
lgpl-2.1
524
""" Bases of Hilbert space in occupation-number representation. The design concept behind this module is that the concerned Hilbert space is consisted of one or more disjoint subspaces and every subspace can be described by a collection of single-particle states as well as the number of particle belong the subspace. T...
wangshiphys/HamiltonianPy
HamiltonianPy/hilbertspace.py
Python
gpl-3.0
17,120
"""Config Flow for PlayStation 4.""" from collections import OrderedDict import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.components.ps4.const import ( DEFAULT_NAME, DEFAULT_REGION, DOMAIN, REGIONS) from homeassistant.const import ( CONF_CODE, CONF_HOST, CONF...
nugget/home-assistant
homeassistant/components/ps4/config_flow.py
Python
apache-2.0
4,793
# Copyright 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 requ...
Mirantis/tempest
tempest/api/compute/security_groups/test_security_group_rules.py
Python
apache-2.0
6,269
#!/usr/bin/python3 # This file is part of ethereum-decompile. # # ethereum-decompile 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...
sciguy16/ethereum-decompile
opcodes.py
Python
gpl-3.0
8,155
#!/usr/bin/env python # -*- coding: utf-8 -*- from random import randint import time class Claptrap(object): meta = { 'name': "Claptrap", 'description': "Just few funny Clap Trap's quotes", 'author': "F. Kolacek <fkolacek@redhat.com>", 'version': "1.0", 'triggers': { '^!clap': "haveSomeFu...
fkolacek/ClapTrap
core/modules/claptrap.py
Python
mit
8,040
# 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 program is distributed in the hope that it will be useful, # bu...
thomas-schmid-ubnt/avocado
avocado/plugins/teststmpdir.py
Python
gpl-2.0
1,432
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__...
shuang1330/tf-faster-rcnn
lib/layer_utils/anchor_target_layer.py
Python
mit
6,031
# Copyright (C) 2016 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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...
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
Python
apache-2.0
5,946
import os import csv import sys import re import importlib # settings curDir = 'E:/Copy/Coursera/Bioinformatics Algorithms (part-I)/MyPrograms/week8' #curDir = 'D:/Copy/Coursera/Bioinformatics Algorithms (part-I)/MyPrograms/week8' inputFile = './data/1.greedy_sorting-2.txt' inputFile = 'C:/Users/Ashis/Downloads/datase...
alorchhota/bioinformatics-algorithms-1
week8/code/1.GreedySorting.py
Python
gpl-2.0
1,285
"""This module should be imported before ``skimage`` to avoid the ``matplotlib`` backend problem. """ from os.path import dirname, join from pickle import dump import numpy as np from ..log import get_logger logger = get_logger() from .. import const from ..os import makedirs, open_file def pyplot_wrapper( ...
google/nerfactor
third_party/xiuminglib/xiuminglib/vis/general.py
Python
apache-2.0
14,382
import pytest from cfme.infrastructure import pxe from utils.update import update from utils.testgen import generate, pxe_servers pytest_generate_tests = generate(pxe_servers) @pytest.fixture(scope='function') def has_no_pxe_servers(): pxe.remove_all_pxe_servers() @pytest.mark.tier(2) @pytest.mark.usefixture...
akrzos/cfme_tests
cfme/tests/infrastructure/test_pxe.py
Python
gpl-2.0
653
# -*- coding: utf-8 -*- # Copyright (c) 2002 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing a dialog to enter options used to start a project in the VCS. """ from __future__ import unicode_literals import os from PyQt5.QtCore import QDir, pyqtSlot from PyQt5.QtWidgets import QDialog, ...
davy39/eric
Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py
Python
gpl-3.0
4,509
# -*- coding: utf-8 -*- import re from lettuce import step, world from selenium.common.exceptions import TimeoutException from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import StaleElementReferenceException from selenium.common.exceptions import WebDriverException from s...
beanqueen/salad
salad/steps/browser/waits.py
Python
bsd-3-clause
10,098
import datetime from django import template from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.contrib.syndication.views import Feed, add_domain from django.utils import feedgenerator, tzinfo from django.utils.encoding im...
steventimberman/masterDebater
venv/lib/python2.7/site-packages/disqus/wxr_feed.py
Python
mit
9,430
#!/usr/bin/python import os import os.path import re import shutil import sys ################# ### CONSTANTS ### ################# CONVERSION_DIR = "converted/" ################# ### FUNCTIONS ### ################# def cleanString(dirtyString): return dirtyString.strip().replace(",", "").replace(".", "").replace(...
justincc/pmettf
pmettf.py
Python
apache-2.0
2,178
class Solution: def swapPairs(self, head): if head is None: return None prev = None one = head two = head.next if two is not None: head = two while one is not None and two is not None: last = two.next one....
rahul-ramadas/leetcode
swap-nodes-in-pairs/Solution.6597495.py
Python
mit
566
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright 2014 Daniel Fairchild # # This file is part of raspberry_preserve. # # 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,...
nuess0r/raspberry_preserve
www/cgi/fastcgi.py
Python
gpl-2.0
2,075
#! /usr/bin/env python # -*- mode: python; indent-tabs-mode: nil; -*- # vim:expandtab:shiftwidth=2:tabstop=2:smarttab: # # Copyright (C) 2011 Patrick Crews # # # 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 Softwar...
jonzobrist/Percona-Server-5.1
kewpie/drizzle_tests/randgen_innoTrxLog/multiThread2Mix_test.py
Python
bsd-3-clause
1,954
# YouTube Video: https://www.youtube.com/watch?v=wlnx-7cm4Gg from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import twitter_credentials # # # # TWITTER STREAMER # # # # class TwitterStreamer(): """ Class for streaming and processing live tweets. """ ...
vprusso/youtube_tutorials
twitter_python/part_1_streaming_tweets/tweepy_streamer.py
Python
gpl-3.0
1,932
#!/usr/bin/python # # Copyright (c) 2018 Juniper Networks, Inc. All rights reserved. # """ This file contains base class to support tests for all major workflows supported by fabric ansible """ import logging import pprint import time import sys import requests import json import xmltodict from cfgm_common.exception...
rombie/contrail-controller
src/config/fabric-ansible/ansible-playbooks/test/sanity/sanity_base.py
Python
apache-2.0
27,655
# Copyright (C) 2015-2016 Free Software Foundation, 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 progr...
ccilab/binutils
gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
Python
gpl-3.0
1,077
# -*- coding: utf-8 -*- # Copyright(C) 2013 Bezleputh # # This file is part of weboob. # # weboob 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 your opt...
blckshrk/Weboob
modules/popolemploi/__init__.py
Python
agpl-3.0
807
##################################################################################### # # Copyright (C) Tavendo GmbH # # Unless a separate license agreement exists between you and Tavendo GmbH (e.g. you # have purchased a commercial license), the license terms below apply. # # Should you enter into a separate licen...
GoodgameStudios/crossbar
crossbar/router/cookiestore.py
Python
agpl-3.0
8,401
#!/usr/bin/python3 -u # # # ################################################################################# # Start off by implementing a general purpose event loop for anyones use ################################################################################# import sys import atexit import getopt import os impor...
beaker-project/beaker-core-tasks
virt/install/py3/zrhel5_write_consolelogs.py
Python
gpl-2.0
18,072
#!/usr/bin/env python # _ _ _ # | | | | | | # | | _ _ | |_ | |__ ___ _ __ # | || | | || __|| '_ \ / _ \| '__| # | || |_| || |_ | | | || __/| | # |_| \__,_| \__||_| |_| \___||_| # from setuptools import setup setup( name='luther', version='0.1', description='lightweight dynamic D...
rolandshoemaker/luther
setup.py
Python
gpl-2.0
826
#Description: This code hunts a IQ sample file for a given PN sequence. #Notes: Keep in mind that the threshold may need to be adjusted for your setup. import numpy import struct import os import sys import json import matplotlib.pyplot as plt ########## Global Constants ########## #4 bytes == 32 bits FLOATSIZE = ...
synack/globalstar
code/standalone/sync.py
Python
gpl-2.0
9,625
# # Graphene schema for exposing Process model # # @package: OCP # @since: 2017-06-22 # import graphene import datetime from valuenetwork.valueaccounting.models import Process as ProcessProxy, EconomicAgent, AgentUser, Order from valuenetwork.api.types.Process import Process from six import with_metaclass from djang...
FreedomCoop/valuenetwork
valuenetwork/api/schemas/Process.py
Python
agpl-3.0
6,118
# -*- coding: utf-8 -*- """ *************************************************************************** gdalcalc.py --------------------- Date : Janaury 2015 Copyright : (C) 2015 by Giovanni Manghi Email : giovanni dot manghi at naturalgis dot pt **********...
myarjunar/QGIS
python/plugins/processing/algs/gdal/gdalcalc.py
Python
gpl-2.0
7,623
# Copyright [2013] [M. David Allen] # # 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 agr...
plus-provenance/dataidentity
files/models.py
Python
apache-2.0
6,060
#!/usr/bin/env python # -*- coding: utf-8 -*- """Created by Kristen on 2/12/16.""" from .reddove import attrdict from .util import * from .reddove import *
KGerring/RevealMe
pypi_repo/__init__.py
Python
mit
157
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google-research/torchsde
diagnostics/ito_scalar.py
Python
apache-2.0
2,195
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import re import unicodedata import unittest class GameNameUtil(object): @classmethod def get_letter(cls, name): letter_name = name.upper() if letter_name.startswith("THE "):...
cnvogelg/fs-uae-gles
launcher/fs_uae_launcher/fsgs/GameNameUtil.py
Python
gpl-2.0
11,649
from setuptools import setup setup(name='regis', version='0.1', description='A basic music theory library', url='https://github.com/dtrifuno/regis', author='Darko Trifunovski', author_email='dtrifuno@gmail.com', license='GPL3', packages=['regis'], install_requires=[ ...
dtrifuno/chorale_writer
setup.py
Python
gpl-3.0
362
from __future__ import with_statement from fabric.api import * import os import digitalocean from pyflare import PyflareClient env.use_ssh_config = True env.hosts = ['cyborgcrm'] nginx_sites = '/etc/nginx/sites-available/' DO_TOKEN = os.environ['DO_TOKEN'] CLOUDFLARE_TOKEN = os.environ['CLOUDFLARE_TOKEN'] apt_depende...
shawnhermans/cyborgcrm
fabfile.py
Python
bsd-2-clause
4,923
from math import* #importamos libreria math para usar PI v=float(input("Ingrese volumen en litros: ")) #usamos float para poder usar números con decimales h=float(input("Ingrese altura: ")) r=sqrt((v)/pi*h) #despejando radio d=2*r #diametro print("El diametro de la base es: %8.2f"%d) #damos formato %c.pf para mo...
rjromo/PythonESPOL
5.7.8/2.py
Python
gpl-3.0
348
""" sexp.py Copyright 2015 Adam Greig Licensed under the MIT licence, see LICENSE file for details. S-Expression parser/emitter """ from __future__ import print_function, division import re from decimal import Decimal def parse(sexp): """ Parse an S-expression into Python lists. """ r = [[]] to...
JMW95/agg-kicad
scripts/sexp.py
Python
mit
1,914
# Copyright 2014-2015 ARM Limited # # 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...
muendelezaji/workload-automation
wlauto/workloads/idle/__init__.py
Python
apache-2.0
2,553
# Copyright 2019 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...
mlperf/training_results_v0.7
Google/benchmarks/bert/implementations/bert-cloud-TF2.0-tpu-v3-32/modeling/networks/__init__.py
Python
apache-2.0
1,212
#!/usr/bin/env python3 # Copyright (c) 2016-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test NULLDUMMY softfork. Connect to a single node. Generate 2 blocks (save the coinbases for later). G...
syscoin/syscoin
test/functional/feature_nulldummy.py
Python
mit
7,351
# coding=utf-8 import json from watson_developer_cloud import LanguageTranslationV2 # Language translation was deprecated use Language Translator. language_translation = LanguageTranslationV2( username='c4129348-b14c-4d2d-80ca-25b1acc59ca7', password='dHfhKbO2pXH4') # create new custom model # with open('../...
jpmunic/udest
watson_examples/language_translation_v2.py
Python
mit
1,248
#!/usr/bin/python3 import json import redis from twisted.internet import reactor from twisted.web.server import Site from twisted.web.resource import Resource from collections import defaultdict class Vividict(dict): def __missing__(self, key): value = self[key] = type(self)() return value # initi...
whiskeyjimbo/tcppingtest
web.py
Python
gpl-3.0
1,191
import os def path(*a): return os.path.join('/Users', 'mkelly', 'Music', *a) def playlist(): yield path('Misc', 'item-loop.mp3') yield path('Misc', '01_Kirby\'s Adventure.mp3')
Osmose/noodleamp
sample_playlist.py
Python
mit
193
from .module import FreegeoipModule __all__ = ['FreegeoipModule']
laurent-george/weboob
modules/freegeoip/__init__.py
Python
agpl-3.0
67
import theano from theano import tensor as T import numpy import pylab as pl N = 40 rng = numpy.random ares_X = rng.random(size = N) * 100 ares_X = sorted(ares_X) print(ares_X) prices_Y = rng.random(size = N) * 1000 prices_Y = sorted(prices_Y) print(prices_Y[0]) x = [1, 2, 3, 4, 5]# Make an array of x values y = [1...
zhuango/python
matplotlib/point.py
Python
gpl-2.0
712
import typing import logging import os from pathlib import Path from functools import lru_cache log = logging.getLogger(__name__) ENV_SHARED_DATA_PATH = "OT_SHARED_DATA_PATH" class SharedDataMissingError(IOError): pass @lru_cache(maxsize=1) def get_shared_data_root() -> Path: """ Get the root director...
Opentrons/labware
shared-data/python/opentrons_shared_data/load.py
Python
apache-2.0
1,605
# # # Copyright (C) 2006, 2007, 2010, 2011, 2012, 2013, 2014 Google Inc. # 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 no...
apyrgio/ganeti
lib/client/gnt_cluster.py
Python
bsd-2-clause
81,653
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # this is a windows documentation stub. actual code lives in the .ps1 # file of the same name ANSIBLE...
skg-net/ansible
lib/ansible/modules/windows/win_msg.py
Python
gpl-3.0
3,048
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
Forage/Gramps
gramps/gen/filters/rules/source/_hasnote.py
Python
gpl-2.0
1,768
#! /usr/bin/env python # -*- coding: utf-8 -*- import commands class Set(commands.Command): def do(self, stm): self.console.default('SET %s' % stm) self.console.connection_data['autocommit'] = self.get_autocommit() self.console.prompt = self.console.get_prompt( self.c...
Abuelodelanada/TOMy
commands/mysql/Set.py
Python
gpl-3.0
967
import os, re, StringIO import ConfigParser, pkgutil import sonata.plugins def find_plugin_dirs(): return [os.path.expanduser('~/.sonata/plugins'), '/usr/local/lib/sonata/plugins'] # add dirs from sys.path: sonata.plugins.__path__ = pkgutil.extend_path(sonata.plugins.__path__, ...
KL-7/sonata
sonata/pluginsystem.py
Python
gpl-3.0
6,177
from PIL import Image from PIL import ImageDraw first = [146, 399, 163, 403, 170, 393, 169, 391, 166, 386, 170, 381, 170, 371, 170, 355, 169, 346, 167, 335, 170, 329, 170, 320, 170, 310, 171, 301, 173, 290, 178, 289, 182, 287, 188, 286, 190, 286, 192, 291, 194, 296, 195, 305, 194, 307, 191, ...
ab300819/PythonChallenge
code/level9.py
Python
apache-2.0
3,328
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2016 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 S...
bcb/qutebrowser
tests/unit/misc/test_split.py
Python
gpl-3.0
6,937
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('backend', '0006_auto_20141203_0021'), ] operations = [ migrations.AlterField( model_name='meeting', ...
euhackathon/commission-today-api
backend/backend/migrations/0007_auto_20141203_0934.py
Python
mit
480
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # (c) Copyright 2013 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.apa...
ntt-sic/cinder
cinder/tests/brick/test_brick_linuxscsi.py
Python
apache-2.0
8,511
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-10-03 07:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('micro_blog', '0017_country_slug'), ] operations = [ migrations.AddField( ...
MicroPyramid/MicroSite
micro_blog/migrations/0018_auto_20171003_0729.py
Python
gpl-2.0
697
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-18 21:26 import os import ujson from django.conf import settings from django.db import migrations, models from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def populate_new_fi...
jackrzhang/zulip
zerver/migrations/0097_reactions_emoji_code.py
Python
apache-2.0
2,115
# -*- coding: utf-8 -*- #------------------------------------------------------------ # Broadcastify #------------------------------------------------------------ # License: GPL (http://www.gnu.org/licenses/gpl-3.0.html) #------------------------------------------------------------ import os import sys import urlparse ...
odicraig/kodi2odi
addons/plugin.audio.radioreference/default.py
Python
gpl-3.0
7,399
from wqflask import app # Please note, running with host set externally below combined with debug mode # is a big security no-no # Unless you have a firewall setup # # Something like /sbin/iptables -A INPUT -p tcp -i eth0 -s ! 71.236.239.43 --dport 5000 -j DROP # should do the trick # # You'll probably have to firewal...
alexsalo/genenetwork2
wqflask/runserver.py
Python
agpl-3.0
968
''' Plotter.py Written by J. Hayes; last editted 2/3/2017 Purpose: A script to plot the XRF spectra and their corresponding fits. Also plots the calibration curves Notes: Uses pyplot from matplotlib; will ahave to include when building the executable The main engine for the spectra plotting is Process_Fit_Spectra Th...
jrh154/ChibbarGroup
FLOURescence/source/PlotFigures_1.py
Python
mit
8,406
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
kdheepak89/pypdevs
pypdevs/classicDEVSWrapper.py
Python
apache-2.0
2,397
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step2 --conditions auto:run2_mc_HIon --scenario HeavyIons -n 2 --eventcontent AODSIM -s RAW2DIGI,L1Reco,RECO --datatier AODSIM --beamspot R...
tuos/RECO2AOD
timingSpaceStudy/PDtesting/v2/step2_RAW2DIGI_L1Reco_MB_AODSIMHighPtJet100.py
Python
mit
4,445
import dendropy import scipy.sparse def tree2vec(tree, tn=None): if isinstance(tree, dendropy.Tree): t = tree tn = t.taxon_namespace elif tree[0] == '(': t = dendropy.Tree.get_from_string(tree, 'newick', taxon_namespace = tn) else: t = dendropy.Tree.get_from_path(tree, 'newi...
pranjalv123/hgt-nn
tree2vec.py
Python
gpl-3.0
498
""" Base backends structures. This module defines base classes needed to define custom OpenID or OAuth auth services from third parties. This customs must subclass an Auth and and Backend class, check current implementation for examples. Also the modules *must* define a BACKENDS dictionary with the backend name (whic...
makinacorpus/django-social-auth
social_auth/backends/__init__.py
Python
bsd-3-clause
31,390
# Copyright (c) 2015, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from StringIO import StringIO import sdv import sdv.errors as errors from sdv.validators.stix.profile import InstanceMapping STIX_NO_VERSION_XML = \ """ <stix:STIX_Package xmlns:xsi="http://www...
pombredanne/stix-validator
sdv/test/stix_profile_tests.py
Python
bsd-3-clause
1,917
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import linesep from argparse import ArgumentParser, FileType from sys import stdin from oracle import HttpOracle def parse_arguments(): parser = ArgumentParser(description="A simple HTTP client used to test server responses to padding errors") parser.add_argum...
alexmgr/pybleach
http_client.py
Python
gpl-3.0
2,743
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
danielcbit/vdt
src/olsr/bindings/modulegen__gcc_ILP32.py
Python
gpl-2.0
449,741
#!/usr/bin/env python from os import path from setuptools import find_packages, setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='urxvt_tabbed', version='1.0.0', license='GPLv3', description='Tab wrapper ...
simonzack/urxvt-tabbed
setup.py
Python
gpl-3.0
994
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Gclient-specific SCM-specific operations.""" from __future__ import print_function import errno import logging import os import posixpath import re ...
npe9/depot_tools
gclient_scm.py
Python
bsd-3-clause
67,700
#!/usr/bin/env python """ podiff -- A gettext diff module in Python Copyright (C) 2009-2011 Kenneth Nielsen <k.nielsen81@gmail.com> 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...
pyg3t/pyg3t
pyg3t/podiff.py
Python
gpl-3.0
11,647
import _plotly_utils.basevalidators class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__(self, plotly_name="x", parent_name="icicle.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_ty...
plotly/plotly.py
packages/python/plotly/plotly/validators/icicle/domain/_x.py
Python
mit
660
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from flexget import plugin from flexget.entry import Entry class OneEntryInput(object): """Fake input plugin, fails if second entry is grabbed.""" def on_task_in...
gazpachoking/Flexget
flexget/tests/test_limit.py
Python
mit
1,210
# -*- coding: utf8 -*- from yanntricks import * def RPNooQXxpZZ(): pspict,fig = SinglePicture("RPNooQXxpZZ") pspict.dilatation_X(0.3) pspict.dilatation_Y(2) x=var('x') f=phyFunction( (cos(x)-1)/x ).graph(-20,20) pspict.DrawGraphs(f) pspict.axes.single_axeX.axes_unit=AxesUnit(pi,'') p...
LaurentClaessens/mazhe
src_yanntricks/yanntricksRPNooQXxpZZ.py
Python
gpl-3.0
478
import recp_res_norm
wbinek/I-Simpa
currentRelease/doc/tutorial/script_tutorial/recp_res_norm/__ui_startup__.py
Python
gpl-3.0
21
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
dwarfcoin/dwarfcoin
contrib/bitrpc/bitrpc.py
Python
mit
7,840
# Author: Mr_Orange # # This file is part of Sick Beard. # # Sick Beard 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. # # Sick Beard ...
schumi2004/NOT_UPDATED_Sick-Beard-Dutch
sickbeard/providers/rsstorrent.py
Python
gpl-3.0
6,262
#!/usr/bin/env python3 import glob import os import re import sys import xml.etree.ElementTree as ET enTree = ET.parse('assets/store_descriptions/en-US/strings.xml') enRoot = enTree.getroot() emptyStringPattern = re.compile("^([ ]+)+$") exitCode = 0 def getEnglishString(key): return(enRoot.findall(key)[0].text...
openhab/openhab.android
assets/store_descriptions/generate_and_validate.py
Python
epl-1.0
4,861
# vpnr 14 run_trial(rws[8], duration=8.0) run_trial(msm2, duration=7.000, speed=200) run_trial(hori0, duration=2.000, speed=600) run_trial(rbs[3], duration=8.0) run_trial(rbs[0], duration=8.0) run_trial(hori1, duration=1.500, speed=800) run_trial(mem2, duration=4.000, speed=400) run_trial(rbs[19], duration=8.0) run_tri...
derNarr/synchronicity
experiment/sessions/ses_vp14.py
Python
mit
5,332
# Standard import time # 3rd Party import zmq # Local import DataModel context = zmq.Context() socket = context.socket(zmq.PUB) socket.bind('tcp://*:12345') # In the guide, the publisher binds to an interface and waits for connections socket.set_hwm(1000) # High Water Marks help define the backlog we can hand...
RocketRedNeck/PythonPlayground
PiBotXBeeExperiments/ZmqFastPublisher.py
Python
mit
646
# Copyright 2016 Hewlett Packard Enterprise Development LP # # 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...
mahak/neutron
neutron/services/trunk/rpc/agent.py
Python
apache-2.0
4,441
# util/queue.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """An adaptation of Py2.3/2.4's Queue module which supports reentrant behavior, using RL...
eunchong/build
third_party/sqlalchemy_0_7_1/sqlalchemy/util/queue.py
Python
bsd-3-clause
6,471
#!/home/bjs66/anaconda2/bin/python2.7 import os import time as tm # Handles the creation of condor files for a given set of directories # ----------------------------------------------------------------------------- def createCondorFile(run): # Condor submission file name convention: run-day-time.condor with ...
Nablaquabla/sns-analysis
determineTimeWindow.py
Python
gpl-3.0
3,447
""" High Level Problem API. """ import os from copy import copy from hacksport.problem import Compiled, File, ProtectedFile, Remote def CompiledBinary( makefile=None, compiler="gcc", sources=None, binary_name=None, is_32_bit=True, executable_stack=True, no_stack_protector=True, aslr=...
royragsdale/picoCTF
picoCTF-shell/hacksport/problem_templates.py
Python
mit
4,126
## @file # This file is used to create report for Eot tool # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full t...
google/google-ctf
third_party/edk2/BaseTools/Source/Python/Eot/Report.py
Python
apache-2.0
17,732
from datetime import datetime from nive.definitions import Conf, IConf from nive.definitions import Interface, implementer from nive.helper import DumpJSONConf, LoadJSONConf class IPersistentRoot(Interface): """ """ @implementer(IPersistentRoot) class Persistent(object): """ Extension ...
nive/nive
nive/extensions/persistentRoot.py
Python
gpl-3.0
3,722
# Copyright 2011 Digg, 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 writ...
wt/repo-digg-dev-hackbuilder
cli/commands/build.py
Python
apache-2.0
2,071
import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') # from basemap/examples/daynight.py import numpy as np from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt from datetime import datetime # example showing how to compute the day/night terminator and shade ...
TheClimateCorporation/conda-recipes
basemap/run_test.py
Python
apache-2.0
1,026
""" Vectors options --------------- Vectors display options for a filter list. * Vectors that have been loaded onto the current input state are shown in the list. If one of the options is checked the vectors will be displayed by drawing arrows for each of the visible atoms. The size of the arrows is calculated...
chrisdjscott/Atoman
atoman/gui/filterListOptions/vectorsOptions.py
Python
mit
8,581
"""Machine schedule module.""" import re as _re import copy as _copy import numpy as _np from matplotlib import pyplot as _plt from .. import util as _util from .. import clientweb as _web from ..clientarch import Time as _Time from .utils import interp1d_previous as _interp1d_previous class MacScheduleData: ""...
lnls-sirius/dev-packages
siriuspy/siriuspy/machshift/macschedule.py
Python
gpl-3.0
8,913
# -*- coding:utf-8 -*- from heapq import * __author__ = 'LiuXiaozeeee' class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def mergeKLists(self, lists): """ :type lists: List[ListNode] :rtype: ListNode """ ...
LiuXiaozeeee/OnlineJudge
src/23.py
Python
mit
1,037