repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
MaxTakahashi/hammr | refs/heads/master | tests/unit/commands/scan/__init__.py | 12133432 | |
hellhovnd/django | refs/heads/master | tests/field_defaults/__init__.py | 12133432 | |
imtapps/django-dynamic-validation | refs/heads/master | dynamic_validation/migrations/__init__.py | 12133432 | |
mattgiguere/scikit-learn | refs/heads/master | sklearn/tests/__init__.py | 12133432 | |
JavML/django | refs/heads/master | tests/contenttypes_tests/__init__.py | 12133432 | |
yfli/django-tastypie | refs/heads/master | tastypie/management/commands/__init__.py | 12133432 | |
manqala/erpnext | refs/heads/develop | erpnext/docs/user/manual/en/human-resources/setup/__init__.py | 12133432 | |
hyperized/ansible | refs/heads/devel | lib/ansible/module_utils/network/ios/argspec/l2_interfaces/__init__.py | 12133432 | |
ibinti/intellij-community | refs/heads/master | python/lib/Lib/site-packages/django/conf/locale/en_GB/__init__.py | 12133432 | |
ABaldwinHunter/django-clone-classic | refs/heads/master | django/contrib/redirects/migrations/__init__.py | 12133432 | |
mila/django-urldecorators | refs/heads/master | urldecorators/tests/__init__.py | 1 |
from .tests import * |
dgarros/ansible | refs/heads/devel | lib/ansible/modules/network/nxos/nxos_acl.py | 29 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible 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.
#
# Ansible is distribut... |
handroissuazo/tensorflow | refs/heads/master | tensorflow/python/summary/impl/directory_watcher_test.py | 37 | # 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... |
metno/modelstatus | refs/heads/master | productstatus/core/tests/test_kafka_resource.py | 2 | from . import ProductstatusResourceTest
from django.conf import settings
import tastypie.exceptions
class KafkaResourceTest(ProductstatusResourceTest):
RESPONSE_OBJECT = {
u'id': 'default',
u'topic': settings.KAFKA_TOPIC,
u'brokers': settings.KAFKA_BROKERS,
u'ssl': settings.KAFK... |
faassen/imagestore | refs/heads/master | src/imagestore/imagecontainer.py | 2 | import grok
from lxml import etree
from z3c.blobfile.image import Image
from zope.exceptions.interfaces import DuplicationError
from imagestore.interfaces import IRest
from imagestore.xml import XmlContainerBase, NS, XmlContainerFactoryBase
from imagestore.rest import StoreLayer, success_message, error_message, embe... |
otherness-space/myProject002 | refs/heads/master | my_project_002/lib/python2.7/site-packages/bson/tz_util.py | 20 | # Copyright 2010-2014 MongoDB, 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 writin... |
tictakk/servo | refs/heads/ticbranch | tests/wpt/harness/wptrunner/browsers/chrome.py | 99 | # 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/.
from .base import Browser, ExecutorBrowser, require_arg
from ..webdriver_server import ChromeDriverServer
from ..executo... |
trezorg/django | refs/heads/master | django/conf/locale/bg/formats.py | 316 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i:s'
# DATETIME_FORMAT =
# YEAR_MONTH_FORMAT =
... |
clairetang6/bokeh | refs/heads/master | bokeh/mixins.py | 4 | from bokeh.util.deprecate import deprecated_module
deprecated_module('bokeh.mixins', '0.11', 'use bokeh.core.property_mixins instead')
del deprecated_module
from .core.property_mixins import * # NOQA
|
sanyaade-mobiledev/clusto | refs/heads/master | src/clusto/drivers/devices/appliance/basicappliance.py | 7 |
from clusto.drivers import Device
from clusto.drivers.devices import PortMixin, IPMixin
class BasicAppliance(IPMixin, PortMixin, Device):
"""
Basic appliance Driver
"""
_clusto_type = 'appliance'
_driver_name = 'basicappliance'
_portmeta = { 'pwr-nema-5' : { 'numports':2, },
... |
ianunruh/hvac | refs/heads/master | hvac/constants/azure.py | 1 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Constants related to the Azure auth method and/or secrets engine."""
VALID_ENVIRONMENTS = [
'AzurePublicCloud',
'AzureUSGovernmentCloud',
'AzureChinaCloud',
'AzureGermanCloud',
]
|
XiaodunServerGroup/xiaodun-platform | refs/heads/master | lms/djangoapps/instructor_task/__init__.py | 12133432 | |
unicef/un-partner-portal | refs/heads/develop | backend/unpp_api/apps/public/__init__.py | 12133432 | |
mith1979/ansible_automation | refs/heads/master | applied_python/applied_python/lib/python2.7/site-packages/pylint/test/data/__init__.py | 12133432 | |
michael-borisov/django-social-auth | refs/heads/master | example/example/__init__.py | 12133432 | |
praekelt/jmbo-foundry | refs/heads/develop | foundry/context_processors.py | 1 | from django.contrib.sites.models import get_current_site
from django.conf import settings
from foundry.utils import get_preference
def foundry(request):
# get_preference, get_current_site do caching
return {
'FOUNDRY': settings.FOUNDRY,
'LAYER_PATH': settings.LAYERS['layers'][-1] + '/',
... |
kalahbrown/HueBigSQL | refs/heads/master | desktop/core/ext-py/Pygments-1.3.1/pygments/lexers/text.py | 56 | # -*- coding: utf-8 -*-
"""
pygments.lexers.text
~~~~~~~~~~~~~~~~~~~~
Lexers for non-source code file types.
:copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from bisect import bisect
from pygments.lexer import Lexer, LexerC... |
danalec/dotfiles | refs/heads/master | sublime/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/chardet/euctwprober.py | 2993 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Con... |
jleclanche/fireplace | refs/heads/master | fireplace/cards/gvg/priest.py | 1 | from ..utils import *
##
# Minions
class GVG_009:
"""Shadowbomber"""
play = Hit(ALL_HEROES, 3)
class GVG_011:
"""Shrinkmeister"""
requirements = {PlayReq.REQ_MINION_TARGET: 0, PlayReq.REQ_TARGET_IF_AVAILABLE: 0}
play = Buff(TARGET, "GVG_011a")
GVG_011a = buff(atk=-2)
class GVG_014:
"""Vol'jin"""
require... |
auto-mat/klub | refs/heads/diakonie | apps/aklub/migrations/0048_auto_20191022_1528.py | 1 | # Generated by Django 2.2.6 on 2019-10-22 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aklub', '0047_auto_20190919_1514'),
]
operations = [
migrations.AddField(
model_name='donorpaymentchannel',
name='SS... |
mahak/ansible | refs/heads/devel | test/units/executor/__init__.py | 12133432 | |
JianyuWang/neutron | refs/heads/master | neutron/tests/unit/db/metering/__init__.py | 12133432 | |
tiagoantao/mega-analysis | refs/heads/master | haploStats/statIHSBin.py | 1 | import sys
from __future__ import print_function
import math
from MEGA.haplo import parseHaplo, standartizeIHS, doSlidingWindow
import scipy
maxChro = 23
slide = 200000
size = 200000
iHSThr = 2
uihs = {}
inff=open("inf", "w")
for k in range(1, maxChro+1):
f=open("%d.uiHS" %(k))
for res in parseHaplo(f):
... |
acsone/project-service | refs/heads/8.0 | project_sla/__init__.py | 23 | # -*- coding: utf-8 -*-
from . import project_sla
from . import analytic_account
from . import project_sla_control
from . import project_issue
from . import project_task
from . import report
|
tecip-nes/pyot | refs/heads/master | manage.py | 1 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pyot.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
|
brokenjacobs/ansible | refs/heads/devel | lib/ansible/modules/cloud/cloudstack/cs_user.py | 60 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This file is part of Ansible
#
# Ansible 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 Lice... |
henryyang42/NTHU_Course | refs/heads/master | crawler/management/commands/crawl_course.py | 1 | from django.core.management.base import BaseCommand
from crawler.crawler import crawl_course, crawl_dept
from crawler.course import get_cou_codes
try:
from crawler.decaptcha import Entrance, DecaptchaFailure
except ImportError:
Entrance = None
from data_center.models import Course, Department
from utils.config... |
abstract-open-solutions/OCB | refs/heads/8.0 | addons/gamification/models/badge.py | 287 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... |
nbari/zunzuncito | refs/heads/master | zunzuncito/request.py | 1 | """
handles the request
"""
class Request(object):
def __init__(self, logger, request_id, environ):
self.log = logger
self.request_id = request_id
self.environ = environ
self.URI = '/'
self.host = None
self.method = environ['REQUEST_METHOD']
self.path = []
... |
alaski/nova | refs/heads/master | nova/tests/functional/db/test_request_spec.py | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... |
hieukypc/ERP | refs/heads/master | openerp/addons/website_mass_mailing/controllers/main.py | 18 | # -*- coding: utf-8 -*-
from openerp import http, SUPERUSER_ID
from openerp.addons.mass_mailing.controllers.main import MassMailController
from openerp.http import request
class MassMailController(MassMailController):
@http.route(['/mail/mailing/<int:mailing_id>/unsubscribe'], type='http', website=True, auth='p... |
vlegoff/tsunami | refs/heads/master | src/secondaires/systeme/contextes/systeme.py | 1 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... |
jeffery9/mixprint_addons | refs/heads/master | portal_event/__init__.py | 53 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
whereismyjetpack/ansible | refs/heads/devel | lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py | 50 | #!/usr/bin/python
#
# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.com>
#
# This file is part of Ansible
#
# Ansible 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 Soft... |
jakesdavis/ionic-boilerplate-template | refs/heads/master | node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/gyp/pylib/gyp/input.py | 713 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from compiler.ast import Const
from compiler.ast import Dict
from compiler.ast import Discard
from compiler.ast import List
from compiler.ast import Module
from co... |
oshanz/Learn-Django | refs/heads/master | tests/generic_views/test_detail.py | 53 | from __future__ import absolute_import
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.views.generic.base import View
from .models import Artist, Author, Page
class DetailViewTest(TestCase):
fixtures = ['generic-views-test-data.json']
urls = 'generic_view... |
viccuad/gomoduino | refs/heads/master | docs/d-bus/python-dbus-doc_examples/example-signal-recipient.py | 1 | #!/usr/bin/env python
usage = """Usage:
python example-signal-emitter.py &
python example-signal-recipient.py
python example-signal-recipient.py --exit-service
"""
# Copyright (C) 2004-2006 Red Hat Inc. <http://www.redhat.com/>
# Copyright (C) 2005-2007 Collabora Ltd. <http://www.collabora.co.uk/>
#
# Permission is h... |
promulo/machinery | refs/heads/master | inspect_helpers/yum_repositories.py | 2 | #!/usr/bin/python
# Copyright (c) 2013-2016 SUSE LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITH... |
bburgdave/fabric | refs/heads/master | bddtests/steps/chaincode_rbac_impl.py | 43 | import os
import re
import time
import copy
import base64
from datetime import datetime, timedelta
import sys, requests, json
import bdd_test_util
import bdd_grpc_util
from grpc.beta import implementations
import fabric_pb2
import chaincode_pb2
import devops_pb2
LAST_REQUESTED_TCERT="lastRequestedTCert"
@when(u'... |
madmax983/h2o-3 | refs/heads/master | py2/testdir_single_jvm/test_summary2_NY0.py | 21 | import unittest, time, sys, random, math, getpass
sys.path.extend(['.','..','../..','py'])
import h2o2 as h2o
import h2o_cmd, h2o_import as h2i, h2o_util, h2o_print as h2p
def write_syn_dataset(csvPathname, rowCount, colCount, SEED, choices):
r1 = random.Random(SEED)
dsf = open(csvPathname, "w+")
naCnt = ... |
thenewguy/wagtail | refs/heads/tng_master | wagtail/wagtailimages/views/images.py | 1 | import json
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib import messages
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth.decorators import permission_required
from django.core.exceptions import PermissionDenied
from django.utils.... |
cldershem/osf.io | refs/heads/develop | website/addons/box/tests/factories.py | 23 | # -*- coding: utf-8 -*-
"""Factory boy factories for the Box addon."""
import mock
from datetime import datetime
from framework.auth import Auth
from factory import SubFactory, Sequence, post_generation
from tests.factories import ModularOdmFactory, UserFactory, ProjectFactory
from website.addons.box.model import (
... |
rven/odoo | refs/heads/14.0-fix-partner-merge-mail-activity | addons/payment_ingenico/data/ogone.py | 107 | # -*- coding: utf-8 -*-
OGONE_ERROR_MAP = {
'0020001001': "Authorization failed, please retry",
'0020001002': "Authorization failed, please retry",
'0020001003': "Authorization failed, please retry",
'0020001004': "Authorization failed, please retry",
'0020001005': "Authorization failed, please ret... |
thundernet8/WRGameVideos-API | refs/heads/master | venv/lib/python2.7/site-packages/requests/packages/urllib3/util/request.py | 780 | from __future__ import absolute_import
from base64 import b64encode
from ..packages.six import b
ACCEPT_ENCODING = 'gzip,deflate'
def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,
basic_auth=None, proxy_basic_auth=None, disable_cache=None):
"""
Shortcuts for generatin... |
saurabh6790/pow-lib | refs/heads/master | core/doctype/event_user/event_user.py | 578 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl |
mglukhikh/intellij-community | refs/heads/master | python/testData/inspections/PyAttributeOutsideInitInspection/fromSuperClassWithoutInit.py | 166 | __author__ = 'ktisha'
class Base(object):
def __init__(self):
self.my = 1
class Child(Base):
def f(self):
self.my = 1 |
hezhenghao/GroundHog | refs/heads/master | groundhog/layers/__init__.py | 13 | from rec_layers import \
LSTMLayer, \
RecurrentLayer, \
RecurrentMultiLayer, \
RecurrentMultiLayerInp, \
RecurrentMultiLayerShortPath, \
RecurrentMultiLayerShortPathInp, \
RecurrentMultiLayerShortPathInpAll
from rconv_layers import RecursiveConvolutionalLayer
fro... |
caiges/populous | refs/heads/master | populous/weather/management/commands/everyday.py | 1 | from django.core.management.base import BaseCommand, CommandError
from weather.utils import location
class Command(BaseCommand):
help = "Updates the long range forecasts. Run daily."
def handle(self, *args, **options):
location.get_forecast(location.get_location())
|
bilgili/Voreen | refs/heads/master | modules/python/ext/python27/modules/stat.py | 319 | """Constants/functions for interpreting results of os.stat() and os.lstat().
Suggested usage: from stat import *
"""
# Indices for stat struct members in the tuple returned by os.stat()
ST_MODE = 0
ST_INO = 1
ST_DEV = 2
ST_NLINK = 3
ST_UID = 4
ST_GID = 5
ST_SIZE = 6
ST_ATIME = 7
ST_MTIME = 8
ST_CTIME = 9
... |
joshbruning/selenium | refs/heads/master | py/test/selenium/webdriver/common/quit_tests.py | 30 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
XDATA-Year-3/EntityAlignLarge | refs/heads/master | service/listseeds.py | 4 | import bson
import pymongo
import json
from bson import ObjectId
from pymongo import MongoClient
import string
import tangelo
def run(host,database):
# Create an empty response object.
response = {}
collectionNames = ['select a dataset']
# look through the collections in the ivaan database and return... |
tralamazza/micropython | refs/heads/master | tests/import/import1a.py | 104 | import import1b
print(import1b.var)
|
riteshshrv/django | refs/heads/master | django/contrib/admin/__init__.py | 562 | # ACTION_CHECKBOX_NAME is unused, but should stay since its import from here
# has been referenced in documentation.
from django.contrib.admin.decorators import register
from django.contrib.admin.filters import (
AllValuesFieldListFilter, BooleanFieldListFilter, ChoicesFieldListFilter,
DateFieldListFilter, Fiel... |
grehx/spark-tk | refs/heads/master | regression-tests/sparktkregtests/testcases/models/gmm_test.py | 1 | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# 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 require... |
azureplus/hue | refs/heads/master | desktop/core/ext-py/Django-1.6.10/tests/select_related_regress/tests.py | 44 | from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from django.utils import six
from .models import (Building, Child, Device, Port, Item, Country, Connection,
ClientStatus, State, Client, SpecialClient, TUser, Person, Student,
Organizer, Class, Enrollment, Hen, Chick)
... |
hmgaudecker/econ-project-templates | refs/heads/master | docs/bld/example/r/r_example/.mywaflib/waflib/Task.py | 5 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2018 (ita)
"""
Tasks represent atomic operations such as processes.
"""
import os, re, sys, tempfile, traceback
from waflib import Utils, Logs, Errors
# task states
NOT_RUN = 0
"""The task was not executed yet"""
MISSING = 1
"""The task has been executed b... |
tchellomello/home-assistant | refs/heads/dev | tests/components/homekit/test_type_sensors.py | 9 | """Test different accessory types: Sensors."""
from homeassistant.components.homekit import get_accessory
from homeassistant.components.homekit.const import (
DEVICE_CLASS_MOTION,
PROP_CELSIUS,
THRESHOLD_CO,
THRESHOLD_CO2,
)
from homeassistant.components.homekit.type_sensors import (
BINARY_SENSOR_S... |
seanwestfall/django | refs/heads/master | django/contrib/sites/migrations/0002_alter_domain_unique.py | 170 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.contrib.sites.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='... |
CopeX/odoo | refs/heads/8.0 | addons/mrp/company.py | 381 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
harshilasu/LinkurApp | refs/heads/master | y/google-cloud-sdk/.install/.backup/lib/jinja2/sandbox.py | 637 | # -*- coding: utf-8 -*-
"""
jinja2.sandbox
~~~~~~~~~~~~~~
Adds a sandbox layer to Jinja as it was the default behavior in the old
Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the
default behavior is easier to use.
The behavior can be changed by subclassing the environm... |
rossumai/keras-multi-gpu | refs/heads/master | setup.py | 1 | from setuptools import setup
setup(name='keras_tf_multigpu',
version='0.1',
description='Multi-GPU data-parallel training in Keras/TensorFlow',
url='https://github.com/rossumai/keras-multi-gpu',
author='Bohumir Zamecnik',
author_email='bohumir.zamecnik@gmail.com',
license='MIT',
... |
turon/openthread | refs/heads/master | tools/harness-automation/cases/leader_5_5_7.py | 1 | #!/usr/bin/env python
#
# Copyright (c) 2016, The OpenThread Authors.
# 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
# notic... |
DamCB/tyssue | refs/heads/master | tyssue/behaviors/monolayer/actions.py | 2 | """
Basic monolayer event module
=======================
"""
import logging
logger = logging.getLogger(__name__)
# noqa
from ..sheet.actions import merge_vertices, detach_vertices
def grow(monolayer, cell, grow_rate):
"""Multiplies the equilibrium volume of face by a factor (1+shrink_rate)."""
factor = ... |
andela-landia/adventures | refs/heads/develop | setup.py | 1 | from distutils.core import setup
setup(
name='adventures',
description='Checkpoint 3: Django Powered Bucketlist Application',
author='Loice Andia',
author_email='loice.andia@andela.com',
url='https://github.com/andela-landia/adventures',
version='1.0.0'
)
|
siddhika1889/Pydev-Editor | refs/heads/master | pysrc/pydevd_attach_to_process/winappdbg/win32/version.py | 102 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, Mario Vilas
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above... |
graik/biskit | refs/heads/master | archive_biskit2/scripts/Mod/modelling_example.py | 1 | #!/usr/bin/env python
##
## Biskit, a toolkit for the manipulation of macromolecular structures
## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner
##
## 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... |
helicontech/zoo | refs/heads/master | Zoocmd/core/models/__init__.py | 4 | __author__ = 'Helicon Tech'
|
hahalml/bigcouch | refs/heads/master | couchjs/scons/scons-local-2.0.1/SCons/Tool/sunf77.py | 61 | """SCons.Tool.sunf77
Tool-specific initialization for sunf77, the Sun Studio F77 compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20... |
GorK-ChO/selenium | refs/heads/master | py/selenium/webdriver/support/color.py | 45 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
deepmind/dm_construction | refs/heads/master | dm_construction/__init__.py | 1 | #!/usr/bin/python
#
# Copyright 2020 DeepMind Technologies 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 a... |
balister/GNU-Radio | refs/heads/adap | gr-trellis/examples/python/test_tcm.py | 13 | #!/usr/bin/env python
from gnuradio import gr
from gnuradio import trellis, digital, blocks
from gnuradio import eng_notation
import math
import sys
import random
import fsm_utils
from gnuradio.eng_option import eng_option
from optparse import OptionParser
try:
from gnuradio import analog
except ImportError:
... |
vcpe-io/vcpe-hub | refs/heads/master | qos/rest_member_register.py | 2 | """Project for Rest API (Group Setting)."""
import json
from ryu.base import app_manager
from ryu.app.wsgi import ControllerBase, WSGIApplication, route
from webob import Response
from setting.db import data_collection
from setting.db import collection
from route import urls
url = '/handle_member_info/member/{membe... |
illicitonion/givabit | refs/heads/master | lib/sdks/google_appengine_1.7.1/google_appengine/lib/django_1_2/tests/regressiontests/datatypes/models.py | 92 | """
This is a basic model to test saving and loading boolean and date-related
types, which in the past were problematic for some database backends.
"""
from django.db import models
class Donut(models.Model):
name = models.CharField(max_length=100)
is_frosted = models.BooleanField(default=False)
has_sprink... |
Pr0jectX/O2 | refs/heads/master | opos/admin.py | 2 | from django.contrib import admin
from opos.models import ( Customers )
class CustomerAdmin (admin.ModelAdmin):
list_display = ('name', 'maxdebt', 'curdebt', )
fields = ('name', 'card', 'id', 'searchkey', ('maxdebt', 'curdebt',), )
readonly_fields = ('curdebt',)
pass
admin.site.register (Customers, CustomerAdm... |
amith01994/intellij-community | refs/heads/master | python/testData/formatter/commentAfterBlock_after.py | 79 | def test():
if bar:
foo()
# comment
foobar()
|
klmitch/keystone | refs/heads/master | keystone/tests/unit/catalog/test_backends.py | 2 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... |
HRZaheri/sklearn-theano | refs/heads/master | sklearn_theano/sandbox/overfeat_wrapper.py | 9 | import numpy as np
import Image
import sys
import os
import StringIO
import subprocess
def get_overfeat_dir(overfeat_dir=None):
if overfeat_dir is None:
overfeat_dir = os.environ.get("OVERFEAT_DIR", None)
return overfeat_dir
def get_overfeat_cmd(overfeat_cmd=None, overfeat_dir=None, architecture=Non... |
Rambatino/CHAID | refs/heads/master | setup.py | 1 | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/Rambatino/CHAID
"""
import re
from os import path
from setuptools import setup, find_packages
def get_version():
"""
Read version from __init__.py
"""
version_regex = re.compile(
... |
LiveZenLK/CeygateERP | refs/heads/master | openerp/report/interface.py | 49 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import os
import re
from lxml import etree
import openerp
import openerp.tools as tools
import openerp.modules
import print_xml
import render
import urllib
from openerp import SUPERUSER_ID
from openerp.report.render.r... |
DimensionDataCBUSydney/libcloud | refs/heads/trunk | libcloud/utils/escape.py | 30 | # 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 use ... |
lampitosgames/ProjectC | refs/heads/master | Python Scripting/Download Data From Crunchbase/GetCbCompNames.py | 1 | import urllib2
import json
import os
#store company data in one big, big-ass array
companies = []
wantedCompanies = []
outputFile = ""
numOfFiles = 1
numOfLines = 0
#get output location
while True:
outputFolder = raw_input("Where would you like this script to output (folder)\n")
if not os.path.exists(... |
default1406/PhyLab | refs/heads/master | PythonExperimentDataHandle/1010113.py | 1 | # -*- coding: utf-8 -*-
from math import sqrt
from math import pi
import phylab
from jinja2 import Environment
from handler import texdir
#texdir = "./tex/"
env = Environment()
def SteelWire(m, C_plus, C_sub, D, L, H, b, source):
# m为等差数列,一般从10到24 单位:kg
# C 单位:cm
# D 单位:mm
# L 单位:cm
# H 单位:cm
#... |
devsim/devsim | refs/heads/main | testing/ssac_cap.py | 1 | # Copyright 2013 Devsim 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, s... |
Illemius/telegram_types | refs/heads/master | scripts/out_files.py | 1 | from util import scan_files
def main():
print('## Files')
for _, file_name in scan_files():
part_name = file_name.rpartition('.')[0]
print(f"### {part_name}")
print(f"File: `res/{file_name}`", end='\n\n')
print(f"Sender: <N/A>", end='\n\n')
print(f"Update object with {p... |
hiei23/servo | refs/heads/master | tests/wpt/css-tests/tools/pywebsocket/src/mod_pywebsocket/xhr_benchmark_handler.py | 415 | # Copyright 2014 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the COPYING file or at
# https://developers.google.com/open-source/licenses/bsd
from mod_pywebsocket import util
class XHRBenchmarkHandler(object):
def __init__(self, headers, ... |
Nicop06/ansible | refs/heads/devel | lib/ansible/modules/network/aci/aci_tenant_span_dst_group.py | 22 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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',
'status': ['preview'],
... |
erickt/hue | refs/heads/master | desktop/core/ext-py/South-1.0.2/south/tests/deps_a/models.py | 12133432 | |
ChenJunor/hue | refs/heads/master | desktop/core/ext-py/Django-1.6.10/django/conf/locale/is/__init__.py | 12133432 | |
CodeforHawaii/froide | refs/heads/master | froide/redaction/models.py | 12133432 | |
caot/intellij-community | refs/heads/master | python/lib/Lib/site-packages/django/conf/locale/en_GB/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.