repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
BenFrantzDale/OpenRayTrace
refs/heads/master
OpenRayTrace/UI/frames/Aberrations.py
1
# OpenRayTrace.UI.Frames.Aberrations ## OpenRayTrace: Free optical design software ## Copyright (C) 2004 Andrew Wilson ## ## This file is part of OpenRayTrace. ## ## OpenRayTrace is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as publishe...
tomlanyon/dnspython
refs/heads/master
dns/rdtypes/ANY/DLV.py
18
# Copyright (C) 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
ingokegel/intellij-community
refs/heads/master
python/helpers/tests/generator3_tests/data/StatePassingGeneration/existing_updated_due_to_modified_binary/after/sdk_skeletons/mod2.py
84
# encoding: utf-8 # module mod2 # from mod2.so # by generator 0.2 # no doc # no imports # no functions # no classes
Rav3nPL/doubloons-0.10
refs/heads/master-0.10
qa/rpc-tests/smartfees.py
129
#!/usr/bin/env python2 # Copyright (c) 2014 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 fee estimation code # from test_framework import BitcoinTestFramework from bitcoinrpc.authproxy impo...
Crach1015/plugin.video.superpack
refs/heads/master
zip/plugin.video.SportsDevil/lib/dialogs/dialogQuestion.py
25
# -*- coding: utf-8 -*- import xbmcgui class DialogQuestion: def __init__(self): self.dlg = xbmcgui.Dialog() self.head = 'SportsDevil Question' def ask(self, question): return self.dlg.yesno(self.head, question) def close(self): self.dlg.close()
neoscoin/neos-core
refs/heads/master
src/ledger/lib/python2.7/site-packages/pip/_vendor/chardet/version.py
5
""" This module exists only to simplify retrieving the version number of chardet from within setup.py and from chardet subpackages. :author: Dan Blanchard (dan.blanchard@gmail.com) """ __version__ = "3.0.4" VERSION = __version__.split('.')
AlexanderFabisch/scikit-learn
refs/heads/master
sklearn/ensemble/tests/test_forest.py
26
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle from collections import defaultdict from itertools import combinations from itertools import product import numpy ...
axinging/chromium-crosswalk
refs/heads/master
net/data/verify_certificate_chain_unittest/generate-target-unknown-critical-extension.py
16
#!/usr/bin/python # Copyright (c) 2015 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. """Certificate chain with 1 intermediary and a trusted root. The target certificate has an unknown X.509v3 extension (OID=1.2.3.4) that...
manazhao/tf_recsys
refs/heads/r1.0
tensorflow/contrib/sparsemax/__init__.py
106
# Copyright 2016 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...
lucalianas/openmicroscopy
refs/heads/develop
components/tools/OmeroPy/test/integration/gatewaytest/test_pixels.py
10
#!/usr/bin/env python # -*- coding: utf-8 -*- """ gateway tests - Testing the gateway image wrapper.getPrimaryPixels() and the pixels wrapper Copyright 2013 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt pytest fixtures used as defined in conftest.p...
lulandco/SickRage
refs/heads/develop
lib/tvdb_api/tvdb_api.py
8
# !/usr/bin/env python2 # encoding:utf-8 # author:dbr/Ben #project:tvdb_api #repository:http://github.com/dbr/tvdb_api #license:unlicense (http://unlicense.org/) from functools import wraps import traceback __author__ = "dbr/Ben" __version__ = "1.9" import os import re import time import getpass import StringIO impo...
guangxingli/python-neo
refs/heads/master
examples/read_files.py
7
# -*- coding: utf-8 -*- """ This is an example for reading files with neo.io """ import urllib import neo # Plexon files distantfile = 'https://portal.g-node.org/neo/plexon/File_plexon_3.plx' localfile = './File_plexon_3.plx' urllib.urlretrieve(distantfile, localfile) #create a reader reader = neo.io.PlexonIO(file...
endlessm/chromium-browser
refs/heads/master
v8/tools/sanitizers/sancov_merger_test.py
25
# Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import sancov_merger # Files on disk after test runner completes. The files are mapped by # executable name -> file list. FILE_MAP = { ...
stevenewey/django
refs/heads/master
django/conf/locale/tr/formats.py
504
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # 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' DATETI...
netvvorms/raspberry
refs/heads/master
raspberry/sensors/__init__.py
2
__all__ = [ ] import bmp085 from bmp085 import BMP085 __all__.extend(bmp085.__all__)
WikiRealtyInc/django-storages
refs/heads/master
storages/__init__.py
21
__version__ = '1.1.8'
gritlogic/incubator-airflow
refs/heads/master
tests/operators/subdag_operator.py
14
# -*- coding: utf-8 -*- # # 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 ...
oasiswork/odoo
refs/heads/8.0
addons/website/tests/__init__.py
396
# -*- coding: utf-8 -*- import test_converter import test_crawl import test_ui import test_views
markeTIC/OCB
refs/heads/8.0
addons/account/wizard/account_state_open.py
341
# -*- 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...
is210-2015-fall-02/is210-week-06-warmup
refs/heads/master
data.py
19
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provides an interface to data-bearing functions.""" import json import os BALLETS = ['The Nutcracker', 'Duck Lake', 'Sleeping Beauty', 'Onegin', 'Manon', 'Le Corsair', 'Serenade', 'Agon', ...
40223114/2015cd_midterm
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/unittest/test/test_discovery.py
785
import os import re import sys import unittest class TestableTestProgram(unittest.TestProgram): module = '__main__' exit = True defaultTest = failfast = catchbreak = buffer = None verbosity = 1 progName = '' testRunner = testLoader = None def __init__(self): pass class TestDisc...
rishikksh20/scikit-learn
refs/heads/master
benchmarks/bench_covertype.py
57
""" =========================== Covertype dataset benchmark =========================== Benchmark stochastic gradient descent (SGD), Liblinear, and Naive Bayes, CART (decision tree), RandomForest and Extra-Trees on the forest covertype dataset of Blackard, Jock, and Dean [1]. The dataset comprises 581,012 samples. It ...
mrquim/mrquimrepo
refs/heads/master
script.module.youtube.dl/lib/youtube_dl/extractor/buzzfeed.py
47
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from .facebook import FacebookIE class BuzzFeedIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?buzzfeed\.com/[^?#]*?/(?P<id>[^?#]+)' _TESTS = [{ 'url': 'http://www.buzzfeed.com/abagg/...
home-assistant/home-assistant
refs/heads/dev
homeassistant/components/verisure/switch.py
2
"""Support for Verisure Smartplugs.""" from __future__ import annotations from time import monotonic from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import DeviceInfo from homea...
ahmadshahwan/cohorte-platforms
refs/heads/master
build/extra/macosx/jpype/_jwrapper.py
7
# ***************************************************************************** # Copyright 2004-2008 Steve Menard # # 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.a...
charulagrl/partyrocker
refs/heads/master
application/favoritetweet.py
2
from twitter import * from application.models import User, Hashtag import sys class TwitterFav(): def __init__(self): self.t = None def get_outh(self, user): OAUTH_TOKEN = user.auth_token OAUTH_SECRET = user.auth_secret CONSUMER_KEY = user.consumer_key CONSUMER_SECRET ...
weidongxu84/info-gatherer
refs/heads/master
django/conf/locale/ko/formats.py
313
# -*- 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 = 'Y년 n월 j일' TIME_FORMAT = 'A g:i:s' DATETIME_FORMAT = 'Y년 n월 j일 g:i:s A' YE...
fengzhyuan/Halide
refs/heads/master
python_bindings/tutorial/lesson_13_tuples.py
13
#!/usr/bin/python3 # Halide tutorial lesson 13: Tuples # This lesson describes how to write Funcs that evaluate to multiple # values. # On linux, you can compile and run it like so: # g++ lesson_13*.cpp -g -I ../include -L ../bin -lHalide -lpthread -ldl -o lesson_13 -std=c++11 # LD_LIBRARY_PATH=../bin ./lesson_13 # ...
enapps/enapps-openerp-server
refs/heads/master
openerp/addons/base/res/res_users.py
1
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2011 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
NINAnor/QGIS
refs/heads/master
python/plugins/db_manager/db_plugins/postgis/info_model.py
3
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : DB Manager Description : Database manager plugin for QGIS Date : May 23, 2011 copyright : (C) 2011 by Giuseppe Sucameli email : brush.tyler@...
ouiliame/ps.py
refs/heads/master
mechanize/_util.py
123
"""Utility functions and date/time routines. Copyright 2002-2006 John J Lee <jjl@pobox.com> This code is free software; you can redistribute it and/or modify it under the terms of the BSD or ZPL 2.1 licenses (see the file COPYING.txt included with the distribution). """ import re import time import warnings class...
burzillibus/RobHome
refs/heads/master
venv/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/specifiers.py
1107
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import abc import functools import itertools import re from ._compat impo...
nolanliou/tensorflow
refs/heads/master
tensorflow/contrib/timeseries/python/timeseries/state_management.py
67
# Copyright 2017 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...
AViisiion/namebench
refs/heads/master
libnamebench/charts_test.py
175
#!/usr/bin/env python # Copyright 2009 Google Inc. 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...
spark-test/spark
refs/heads/master
dev/create-release/translate-contributors.py
104
#!/usr/bin/env python # # 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 "Lic...
thaumos/ansible
refs/heads/devel
test/units/modules/network/netscaler/test_netscaler_lb_vserver.py
68
# Copyright (c) 2017 Citrix Systems # # 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. # # ...
elkingtonmcb/scikit-learn
refs/heads/master
examples/neural_networks/plot_rbm_logistic_classification.py
258
""" ============================================================== Restricted Boltzmann Machine features for digit classification ============================================================== For greyscale image data where pixel values can be interpreted as degrees of blackness on a white background, like handwritten...
dcroc16/skunk_works
refs/heads/master
google_appengine/lib/django-1.5/django/views/generic/dates.py
107
from __future__ import unicode_literals import datetime from django.conf import settings from django.db import models from django.core.exceptions import ImproperlyConfigured from django.http import Http404 from django.utils.encoding import force_text from django.utils.functional import cached_property from django.util...
gangadharkadam/saloon_frappe_install
refs/heads/master
frappe/email/__init__.py
27
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.email.email_body import get_email from frappe.email.smtp import send def sendmail_md(recipients, sender=None, msg=None, subject=None, attachments=None,...
dqnykamp/sympy
refs/heads/master
sympy/combinatorics/tests/test_permutations.py
25
from itertools import permutations from sympy.combinatorics.permutations import (Permutation, _af_parity, _af_rmul, _af_rmuln, Cycle) from sympy.utilities.pytest import raises rmul = Permutation.rmul def test_Permutation(): # don't auto fill 0 raises(ValueError, lambda: Permutation([1])) p = Permuta...
amarouni/incubator-beam
refs/heads/master
sdks/python/apache_beam/examples/complete/tfidf.py
7
# # 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 us...
diego-d5000/MisValesMd
refs/heads/master
env/lib/python2.7/site-packages/django/conf/locale/az/formats.py
3
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j E Y г.' TIME_FORMAT = '...
pelle/talk.org
refs/heads/master
django/contrib/sessions/backends/cache.py
3
from django.conf import settings from django.contrib.sessions.backends.base import SessionBase from django.core.cache import cache class SessionStore(SessionBase): """ A cache-based session store. """ def __init__(self, session_key=None): self._cache = cache super(SessionStore, self)._...
adelez/grpc
refs/heads/master
tools/debug/core/chttp2_ref_leak.py
5
#!/usr/bin/env python2.7 # Copyright 2017 gRPC authors. # # 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 la...
muricoca/crab
refs/heads/master
scikits/crab/similarities/tests/test_basic_similarities.py
10
import numpy as np from numpy.testing import assert_array_almost_equal, assert_array_equal from nose.tools import assert_raises, assert_equals from ..basic_similarities import UserSimilarity, ItemSimilarity, find_common_elements from ...metrics.pairwise import cosine_distances, \ pearson_correlation, euclidean_dist...
kenshay/ImageScript
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/raw/GL/ARB/texture_query_lod.py
9
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
pranavtendolkr/horizon
refs/heads/master
openstack_dashboard/dashboards/admin/hypervisors/tabs.py
59
# 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 th...
leonardowolf/bookfree
refs/heads/master
flask/lib/python3.5/site-packages/sqlalchemy/event/registry.py
55
# event/registry.py # Copyright (C) 2005-2016 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 """Provides managed registration services on behalf of :func:`.listen` arguments. ...
macobo/python-grader
refs/heads/master
grader/code_runner.py
1
import os import subprocess import datetime import signal import time import sys CURRENT_FOLDER = os.path.abspath(os.path.dirname(__file__)) SANDBOX_DIR = os.path.join(os.path.dirname(CURRENT_FOLDER), "sandbox") TEST_RUN_CMD = [sys.executable, os.path.join(SANDBOX_DIR, "run_test")] DOCKER_SANDBOX = [sys.executable, o...
necozay/tulip-control
refs/heads/master
examples/developer/partialStateExample.py
1
#!/usr/bin/env python # # WARNING: This example may not yet be working. Please check again in # the upcoming release. # """ This example is an extension of robot_discrete.py by including continuous dynamics with disturbances. Petter Nilsson (pettni@kth.se) August 14, 2011 NO, system and cont. prop definitio...
radarsat1/mapperRec
refs/heads/master
mapperRec.py
1
#!/usr/bin/env python import ctypes, time import _ctypes import os def func_address(adll, name): if 'dlsym' in dir(_ctypes): return _ctypes.dlsym(adll._handle, name) else: return _ctypes.GetProcAddress(adll._handle, name) if os.path.exists("./libmapperrec.dylib"): rec = ctypes.cdll.LoadLi...
adoosii/edx-platform
refs/heads/master
common/djangoapps/enrollment/tests/fake_data_api.py
104
""" A Fake Data API for testing purposes. """ import copy import datetime _DEFAULT_FAKE_MODE = { "slug": "honor", "name": "Honor Code Certificate", "min_price": 0, "suggested_prices": "", "currency": "usd", "expiration_datetime": None, "description": None } _ENROLLMENTS = [] _COURSES = [...
vadimtk/chrome4sdp
refs/heads/master
third_party/protobuf/descriptor_pb2.py
193
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection # @@protoc_insertion_point(imports) DESCRIPTOR = descriptor.FileDescriptor( name='google/protobuf/descriptor.proto', package='google.protobu...
Gamecredits-Universe/Gamecredits-electrum-client
refs/heads/master
gui/kivy/uix/drawer.py
33
'''Drawer Widget to hold the main window and the menu/hidden section that can be swiped in from the left. This Menu would be only hidden in phone mode and visible in Tablet Mode. This class is specifically in lined to save on start up speed(minimize i/o). ''' from kivy.app import App from kivy.factory import Factory ...
oneconvergence/group-based-policy
refs/heads/oneconvergence_service_node_driver
gbpservice/neutron/services/grouppolicy/common/constants.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 # d...
simonwydooghe/ansible
refs/heads/devel
test/units/modules/network/fortios/test_fortios_switch_controller_vlan.py
21
# 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...
DirectXMan12/nova-hacking
refs/heads/feature_novnc_krb
nova/cells/rpc_driver.py
1
# Copyright (c) 2012 Rackspace Hosting # 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 req...
marinho/geraldo
refs/heads/master
site/newsite/site-geraldo/django/contrib/localflavor/sk/forms.py
344
""" Slovak-specific form helpers """ from django.forms.fields import Select, RegexField from django.utils.translation import ugettext_lazy as _ class SKRegionSelect(Select): """ A select widget widget with list of Slovak regions as choices. """ def __init__(self, attrs=None): from sk_regions i...
Noviat/odoo
refs/heads/8.0
addons/hr_attendance/res_config.py
434
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms o...
jamesrobertlloyd/automl-phase-2
refs/heads/master
sandpit_two.py
1
__author__ = 'jrl44' # import sandpit import time import global_data def print_globals(_): time.sleep(5) print(globals()) # print(sandpit.__dict__) # X = my_global # X = X + 1 # print(X) time.sleep(5) def import_and_print_globals(_): time.sleep(5) print global_data.__dict__ ...
samchrisinger/osf.io
refs/heads/develop
framework/sessions/utils.py
8
# -*- coding: utf-8 -*- from modularodm import Q from framework.sessions.model import Session def remove_sessions_for_user(user): """ Permanently remove all stored sessions for the user from the DB. :param user: User :return: """ Session.remove(Q('data.auth_user_id', 'eq', user._id)) def...
t0mk/ansible
refs/heads/devel
lib/ansible/modules/notification/cisco_spark.py
3
#!/usr/bin/python # -*- coding: utf-8 -*- # # 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. ...
kba/ocropy
refs/heads/master
ocrolib/chars.py
11
# -*- encoding: utf-8 -*- import re # common character sets digits = u"0123456789" letters = u"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" symbols = ur"""!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" ascii = digits+letters+symbols xsymbols = u"""€¢£»«›‹÷©®†‡°∙•◦‣¶§÷¡¿▪▫""" german = u"ÄäÖöÜüß" french = u"ÀàÂâÆæÇçÉéÈ...
lucafavatella/intellij-community
refs/heads/cli-wip
python/testData/inspections/PyAttributeOutsideInitInspection/fromSuperHierarchy.py
166
__author__ = 'ktisha' class Base(object): def __init__(self): self.my = 1 class Child(Base): def f(self): self.my = 1
jmcarp/pyrobot
refs/heads/master
docs/conf.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # au...
fr34k8/atomic-reactor
refs/heads/master
atomic_reactor/source.py
6
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Code for getting source code to put inside container. """ import logging import copy import os import shutil import tempfile from atomic_react...
ricardogsilva/QGIS
refs/heads/master
cmake/FindSIP.py
23
# -*- coding: utf-8 -*- # # Copyright (c) 2007, Simon Edwards <simon@simonzone.com> # 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...
DirkHoffmann/indico
refs/heads/master
indico/modules/categories/views.py
1
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from markupsafe import escape from indico.modules.admin.views import WPAdmin from indico.util.i18n import...
namili/blueman
refs/heads/master
blueman/gui/CellRendererPixbufTable.py
3
# Copyright (C) 2008 Valmantas Paliksa <walmis at balticum-tv dot lt> # Copyright (C) 2008 Tadas Dailyda <tadas at dailyda dot com> # # Licensed under the GNU General Public License Version 3 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
n0max/servo
refs/heads/master
tests/wpt/css-tests/tools/gitignore/gitignore.py
90
import itertools import re import os end_space = re.compile(r"([^\\]\s)*$") def fnmatch_translate(pat, path_name=False): parts = [] seq = False i = 0 if pat[0] == "/" or path_name: parts.append("^") any_char = "[^/]" if pat[0] == "/": pat = pat[1:] else: ...
gladk/trunk
refs/heads/master
scripts/checks-and-tests/collider-perf/perf.py
8
utils.readParamsFromTable(nSpheres=8000,collider='InsertionSortCollider',noTableOk=True) # name of file containing sphere packing with given number of spheres spheresFile="packing-%dk.spheres"%(nSpheres/1000) fast='@stride' in collider import os if not os.path.exists(spheresFile): print "Generating packing" p=Tria...
HyperBaton/ansible
refs/heads/devel
lib/ansible/modules/network/fortios/fortios_firewall_vipgrp.py
7
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # 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 Lic...
ColinIanKing/autotest
refs/heads/master
client/shared/ElementPath.py
189
# # ElementTree # $Id: ElementPath.py 1858 2004-06-17 21:31:41Z Fredrik $ # # limited xpath support for element trees # # history: # 2003-05-23 fl created # 2003-05-28 fl added support for // etc # 2003-08-27 fl fixed parsing of periods in element names # # Copyright (c) 2003-2004 by Fredrik Lundh. All rights re...
sharma1nitish/phantomjs
refs/heads/master
src/breakpad/src/tools/gyp/test/generator-output/gyptest-top-all.py
151
#!/usr/bin/env python # Copyright (c) 2009 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. """ Verifies building a project hierarchy created when the --generator-output= option is used to put the build configuration files in a sepa...
katiewsimon/JP-Morgan-Hackathon-Project
refs/heads/master
jp_server/lib/python2.7/site-packages/setuptools/command/install_scripts.py
111
import distutils.command.install_scripts as orig from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log class install_scripts(orig.install_scripts): """Do normal script install, plus any egg_info wrapper scripts""" def initialize_options(self): orig....
pscholz/presto
refs/heads/master
python/ffdot_example.py
2
import numpy as num import presto import ppgplot from Pgplot import pgpalette N = 2**14 r = N/4.0 # average freq over "observation" #r = N/4.0 + 0.5 # average freq over "observation" rint = num.floor(r) dr = 1.0/32.0 dz = 0.18 np = 512 # number of pixels across for f-fdot image z = 0.0 # average fourier f-dot w = 0.0 ...
cruzegoodin/TSC-ShippingDetails
refs/heads/master
flask/lib/python2.7/site-packages/whoosh/lang/snowball/dutch.py
96
from .bases import _StandardStemmer from whoosh.compat import u class DutchStemmer(_StandardStemmer): """ The Dutch Snowball stemmer. :cvar __vowels: The Dutch vowels. :type __vowels: unicode :cvar __step1_suffixes: Suffixes to be deleted in step 1 of the algorithm. :type __step1_suffixes: t...
Froggiewalker/geonode
refs/heads/master
geonode/contrib/geosites/utils.py
21
import os import shutil from django.contrib.sites.models import Site from django.conf import settings from .models import SiteResources, SitePeople def resources_for_site(): return SiteResources.objects.get(site=Site.objects.get_current()).resources.all() def users_for_site(): return SitePeople.objects.get(...
bitcity/django
refs/heads/master
tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/__init__.py
12133432
BondAnthony/ansible
refs/heads/devel
test/integration/targets/module_utils/module_utils/spam2/__init__.py
12133432
frankvdp/django
refs/heads/master
django/conf/locale/sr/__init__.py
12133432
daenamkim/ansible
refs/heads/devel
test/units/modules/packaging/language/__init__.py
12133432
banmoy/ns3
refs/heads/master
.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/c_osx.py
10
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file import os,shutil,platform from waflib import Task,Utils,Errors from waflib.TaskGen import taskgen_method,feature,after_method,before_method app_info=''' <?xml version="1.0" encoding="UTF-8"?> <!DOCTY...
sakuramochi0/ticketcamp-scalping
refs/heads/master
ticketcamp_scalping/settings.py
1
# -*- coding: utf-8 -*- # Scrapy settings for ticketcamp_scalping project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.o...
forevernull/incubator-airflow
refs/heads/master
airflow/utils/db.py
13
# -*- coding: utf-8 -*- # # 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 ...
Lujeni/ansible
refs/heads/devel
lib/ansible/modules/network/onyx/onyx_qos.py
28
#!/usr/bin/python # # Copyright: Ansible Project # 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'], ...
ceache/treadmill
refs/heads/master
lib/python/treadmill/services/_linux_base_service.py
2
"""Linux base service implementation. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import abc import contextlib import errno import functools import logging import os import select import socket import struct i...
bwrsandman/OpenUpgrade
refs/heads/8.0
addons/purchase_analytic_plans/purchase_analytic_plans.py
378
# -*- 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...
antoinecarme/pyaf
refs/heads/master
tests/artificial/transf_RelativeDifference/trend_MovingAverage/cycle_30/ar_/test_artificial_1024_RelativeDifference_MovingAverage_30__0.py
1
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 0, ar_order = 0);
catapult-project/catapult
refs/heads/master
trace_processor/trace_uploader/cloud_config.py
8
# Copyright 2015 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. import os import logging from google.appengine.api import app_identity from google.appengine.ext import ndb def _is_devserver(): server_software = os.env...
spreeker/democracygame
refs/heads/master
democracy/profiles/models.py
1
from django.db import models from django.contrib.auth.models import User from gamelogic.models import roles from gamelogic.models import human_roles from django.db.models.signals import post_save class UserProfile(models.Model): user = models.OneToOneField(User) score = models.IntegerField(default = 0 ) ...
aleonliao/depot_tools
refs/heads/master
third_party/boto/gs/bucket.py
51
# Copyright 2010 Google Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # trib...
gonboy/sl4a
refs/heads/master
python/src/Lib/CGIHTTPServer.py
59
"""CGI-savvy HTTP Server. This module builds on SimpleHTTPServer by implementing GET and POST requests to cgi-bin scripts. If the os.fork() function is not present (e.g. on Windows), os.popen2() is used as a fallback, with slightly altered semantics; if that function is not present either (e.g. on Macintosh), only Py...
jbaginski/androguard
refs/heads/master
androguard/decompiler/dad/ast.py
20
# This file is part of Androguard. # # Copyright (C) 2014 Google Inc. 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 ...
muku42/bokeh
refs/heads/master
bokeh/sampledata/sprint.py
45
from __future__ import absolute_import, print_function from os.path import dirname, join try: import pandas as pd except ImportError as e: raise RuntimeError("sprint data requires pandas (http://pandas.pydata.org) to be installed") sprint = pd.read_csv(join(dirname(__file__), 'sprint.csv'), skipinitialspace=...
nanolearningllc/edx-platform-cypress-2
refs/heads/master
lms/djangoapps/certificates/migrations/0009_auto__del_field_generatedcertificate_graded_download_url__del_field_ge.py
188
# -*- 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): # Deleting field 'GeneratedCertificate.graded_download_url' db.delete_column('certificates_generatedcertific...
ecino/compassion-switzerland
refs/heads/10.0-emanuel
sync_mail_multi_attach/controllers/__init__.py
3
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # Copyright (C) 2011-today Synconics Technologies Pvt. Ltd. (<http://www.synconics.com>) # # Th...
kvar/ansible
refs/heads/seas_master_2.9.5
lib/ansible/modules/network/fortios/fortios_web_proxy_profile.py
13
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # 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 Lic...
joelowj/NeuralTest
refs/heads/master
neuraltest/main.py
2
import os import tensorflow as tf import argparse from cgan import cgan from utils import * from function_test import * def parse_args(): description = "Generative Adversarial Networks for Software Testing" parser = argparse.ArgumentParser(description=description) # parser.add_argument('--gan_type', type...
nwjs/chromium.src
refs/heads/nw45-log
build/toolchain/win/rc/rc.py
3
#!/usr/bin/env python # Copyright 2017 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. """usage: rc.py [options] input.res A resource compiler for .rc files. options: -h, --help Print this message. -I<dir> Add ...