repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
noba3/KoTos
refs/heads/master
addons/plugin.video.movie25/resources/libs/plugins/animefreak.py
2
# -*- coding: cp1252 -*- import urllib,urllib2,re,cookielib,string, urlparse,sys,os import xbmc, xbmcgui, xbmcaddon, xbmcplugin,urlresolver from t0mm0.common.net import Net as net from resources.libs import main #Mash Up - by Mash2k3 2012. from t0mm0.common.addon import Addon from resources.universal import playbacke...
holzman/glideinwms-old
refs/heads/master
lib/symCrypto.py
2
# # Project: # glideinWMS # # File Version: # # Description: # This module defines classes to perform symmetric key cryptography # (shared or hidden key) # import M2Crypto import os import binascii ###################### # # Available ciphers: # too many to list them all # try 'man enc' # a few of them a...
deandunbar/html2bwml
refs/heads/master
venv/lib/python2.7/site-packages/OpenSSL/rand.py
11
""" PRNG management routines, thin wrappers. See the file RATIONALE for a short explanation of why this module was written. """ from functools import partial from six import integer_types as _integer_types from OpenSSL._util import ( ffi as _ffi, lib as _lib, exception_from_error_queue as _exception_fro...
marcoserafini/h-store
refs/heads/master
third_party/python/boto/route53/__init__.py
20
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, 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 # w...
ruibarreira/linuxtrail
refs/heads/master
usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/speech_generator.py
6
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
sharhar/USB-Thing
refs/heads/master
UpdaterFiles/Lib/python-3.5.1.amd64/Lib/sqlite3/dump.py
149
# Mimic the sqlite3 console shell's .dump command # Author: Paul Kippes <kippesp@gmail.com> # Every identifier in sql is quoted based on a comment in sqlite # documentation "SQLite adds new keywords from time to time when it # takes on new features. So to prevent your code from being broken by # future enhancements, y...
hychrisli/PyAlgorithms
refs/heads/master
src/tests/part2/q210_test_course_schedule_ii.py
1
from src.base.test_cases import TestCases class CourseScheduleIiTestCases(TestCases): def __init__(self): super(CourseScheduleIiTestCases, self).__init__() self.__add_test_case__('Test 1', (2, [[1,0]]), ([0, 1],)) self.__add_test_case__('Test 2', (4, [[1,0],[2,0],[3,1],[3,2]]), ([0, 1, 2, ...
imruahmed/microblog
refs/heads/master
flask/lib/python2.7/site-packages/sqlalchemy/dialects/sybase/pysybase.py
80
# sybase/pysybase.py # Copyright (C) 2010-2015 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 """ .. dialect:: sybase+pysybase :name: Python-Sybase :dbapi: Sybase ...
Som-Energia/somenergia-generationkwh
refs/heads/master
som_generationkwh/somenergia_soci.py
1
# -*- coding: utf-8 -*- from __future__ import absolute_import from osv import osv, fields from tools.translate import _ from tools import config from oorq.decorators import job from datetime import datetime, date def field_function(ff_func): def string_key(*args, **kwargs): res = ff_func(*args, **kwarg...
navotsil/Open-Knesset
refs/heads/master
simple/management/commands/syncvotes.py
9
from django.core.management.base import NoArgsCommand from django.http import HttpRequest from django.core.files.storage import default_storage from django.core.files.base import ContentFile from laws.views import VoteCsvView class Command(NoArgsCommand): help = "Updates votes.csv file in media" def handle_noargs(s...
EUDAT-B2SHARE/invenio-old
refs/heads/next
modules/bibmatch/lib/bibmatch_validator.py
9
## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option...
chalasr/Flask-P2P
refs/heads/master
venv/lib/python2.7/site-packages/flask/testsuite/test_apps/lib/python2.5/site-packages/site_package/__init__.py
1799
import flask app = flask.Flask(__name__)
KokareIITP/django
refs/heads/master
tests/gis_tests/test_spatialrefsys.py
319
import unittest from django.contrib.gis.gdal import HAS_GDAL from django.db import connection from django.test import skipUnlessDBFeature from django.utils import six from .utils import SpatialRefSys, oracle, postgis, spatialite test_srs = ({ 'srid': 4326, 'auth_name': ('EPSG', True), 'auth_srid': 4326, ...
martinwicke/tensorflow
refs/heads/master
tensorflow/python/debug/session_debug_testlib.py
8
# 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...
rmanoni/mi-instrument
refs/heads/master
mi/instrument/star_asimet/bulkmet/metbk_a/test/test_driver.py
2
""" @package mi.instrument.star_asimet.bulkmet.metbk_a.test.test_driver @file marine-integrations/mi/instrument/star_aismet/bulkmet/metbk_a/test/test_driver.py @author Bill Bollenbacher @brief Test cases for metbk_a driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driver ...
ArcherSys/ArcherSys
refs/heads/master
Lib/site-packages/libpasteurize/fixes/fix_metaclass.py
61
u""" Fixer for (metaclass=X) -> __metaclass__ = X Some semantics (see PEP 3115) may be altered in the translation.""" from lib2to3 import fixer_base from lib2to3.fixer_util import Name, syms, Node, Leaf, Newline, find_root from lib2to3.pygram import token from libfuturize.fixer_util import indentation, suitify # from ...
barseghyanartur/python-social-auth
refs/heads/master
examples/django_me_example/example/app/pipeline.py
112
from django.shortcuts import redirect from social.pipeline.partial import partial @partial def require_email(strategy, details, user=None, is_new=False, *args, **kwargs): if kwargs.get('ajax') or user and user.email: return elif is_new and not details.get('email'): email = strategy.request_da...
rodrigovrgs/cazy-parser
refs/heads/master
setup.py
1
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from setuptools.command.install import install # To use a consistent encoding from codecs im...
tensorflow/federated
refs/heads/master
tensorflow_federated/python/examples/simple_fedavg/simple_fedavg_tff.py
1
# Copyright 2020, The TensorFlow Federated 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 law o...
tillahoffmann/tensorflow
refs/heads/master
tensorflow/compiler/tests/variable_ops_test.py
11
# 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...
javierTerry/odoo
refs/heads/8.0
addons/sale/wizard/__init__.py
444
# -*- 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...
juharris/tensorflow
refs/heads/master
tensorflow/contrib/testing/__init__.py
16
# 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...
DerThorsten/nifty
refs/heads/master
src/python/test/cgp/test_cgp.py
1
import nifty.cgp as ncgp import nifty.graph.rag as nrag import unittest import nifty import unittest import nifty.cgp as ncgp import numpy numpy.random.seed(42) class TestCgp2d(unittest.TestCase): def test_corner_case_3x3_grid_a(self): assertEq = self.assertEqual # 4 one cells are active ...
CloudBoltSoftware/cloudbolt-forge
refs/heads/master
blueprints/eks/management/enable_nodes.py
12133432
davidcusatis/horizon
refs/heads/master
openstack_dashboard/dashboards/project/network_topology/networks/__init__.py
12133432
aptivate/alfie
refs/heads/master
django/website/logframe/tests/test_admin.py
3
from mock import Mock from ..admin import RatingAdmin, SubIndicatorAdmin from ..models import colors, Rating, SubIndicator def test_sub_indicator_admin_result_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indica...
dqnykamp/sympy
refs/heads/master
sympy/polys/domains/pythonintegerring.py
117
"""Implementaton of :class:`PythonIntegerRing` class. """ from __future__ import print_function, division from sympy.polys.domains.integerring import IntegerRing from sympy.polys.domains.groundtypes import ( PythonInteger, SymPyInteger, python_sqrt, python_factorial, python_gcdex, python_gcd, python_lcm, ) f...
songmonit/CTTMSONLINE
refs/heads/master
addons/google_spreadsheet/__openerp__.py
312
# -*- 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...
ran5515/DeepDecision
refs/heads/master
tensorflow/contrib/opt/python/training/lazy_adam_optimizer_test.py
104
# 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...
neumerance/deploy
refs/heads/master
.venv/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.py
7
# -*- coding: utf-8 -*- """ sphinx.ext.oldcmarkup ~~~~~~~~~~~~~~~~~~~~~ Extension for compatibility with old C markup (directives and roles). :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils.parsers.rst import directives f...
hxp2k6/https-github.com-stamparm-maltrail
refs/heads/master
trails/feeds/emergingthreatsbot.py
1
#!/usr/bin/env python """ Copyright (c) 2014-2015 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ import re from core.common import retrieve_content __url__ = "http://rules.emergingthreats.net/open/suricata/rules/botcc.rules" __check__ = "CnC Server" __info__ = "malware" __reference__...
zanderle/django
refs/heads/master
tests/timezones/tests.py
165
from __future__ import unicode_literals import datetime import re import sys import warnings from unittest import SkipTest, skipIf from xml.dom.minidom import parseString from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ImproperlyConfigured from django...
adedayo/intellij-community
refs/heads/master
python/testData/refactoring/introduceVariable/substringContainsFormatChars.after.py
83
a = "lo %s" print(("Hel" + a + "!") % "World")
shepdelacreme/ansible
refs/heads/devel
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py
28
#!/usr/bin/python # # Copyright (c) 2017 Obezimnaka Boms, <t-ozboms@microsoft.com> # Copyright (c) 2017 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 ...
its-django/mysite
refs/heads/master
mysite/zoo/migrations/__init__.py
12133432
dodobas/osm-export-tool2
refs/heads/master
utils/tests/__init__.py
12133432
erinspace/scrapi
refs/heads/develop
scrapi/harvesters/uiucideals.py
9
""" Harvester for the University of Illinois at Urbana-Champaign, IDEALS information about UIUC-IDEALS can be found here: https://github.com/CenterForOpenScience/SHARE/blob/master/providers/UIUC-IDEALS.md """ from __future__ import unicode_literals from scrapi.base import OAIHarvester class UiucIdealsHarvester(OA...
joelddiaz/openshift-tools
refs/heads/prod
openshift/installer/vendored/openshift-ansible-3.5.91/roles/lib_openshift/src/class/oc_secret.py
22
# pylint: skip-file # flake8: noqa # pylint: skip-file # pylint: disable=wrong-import-position,wrong-import-order import base64 # pylint: disable=too-many-arguments class OCSecret(OpenShiftCLI): ''' Class to wrap the oc command line tools ''' def __init__(self, namespace, ...
coupdair/pyoptools
refs/heads/master
pyoptools/misc/lsq/__init__.py
9
from lsq import * __all__=["polyfit2d", "polyfito1", "polyfito2", "vander_matrix"]
bdang2012/taiga-back-casting
refs/heads/branch_casting
taiga/projects/notifications/management/commands/send_notifications.py
1
# Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be> # Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.com> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pub...
yukusu/IoT-Rasp
refs/heads/master
iot-projekti/CoAPthon/coapthon/reverse_proxy/__init__.py
10
__author__ = 'giacomo'
L3K0V/lifebelt
refs/heads/master
server/api/courses/migrations/0002_course.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0001_initial'), ] operations = [ migrations.CreateModel( name='Course', fields=[ ...
konstruktoid/ansible-upstream
refs/heads/devel
lib/ansible/modules/cloud/vmware/vmware_host_firewall_manager.py
10
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata...
wilvk/ansible
refs/heads/devel
lib/ansible/modules/windows/win_pagefile.py
42
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2017, Liran Nisanov <lirannis@gmail.com> # 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_METADATA = {'metadata_vers...
jderobot-varribas/JdeRobot
refs/heads/jderobot
src/stable/components/introrob_py/gui/sensorsWidget.py
1
# # Copyright (C) 1997-2015 JDE Developers Team # # 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...
simone-campagna/invoice
refs/heads/master
tests/unittests/test_invoice_main_validators.py
1
# -*- coding: utf-8 -*- # # Copyright 2015 Simone Campagna # # 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...
bmi-forum/bmi-pyre
refs/heads/master
pythia-0.8/packages/merlin/tests/hello/__init__.py
4
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~...
schryer/schryer_pelican_blog
refs/heads/master
pelicanconf.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'David Schryer' SITENAME = u'David Schryer' SITEURL = 'schryer_pelican_blog' CUSTOM_ARTICLE_SHARING = 'sharing.html' CUSTOM_ARTICLE_SCRIPTS = 'sharing_scripts.html' TIMEZONE = 'Europe/Tallinn' DEFAULT_LANG = u'en' # F...
kiyoto/statsmodels
refs/heads/master
statsmodels/distributions/__init__.py
30
from .empirical_distribution import ECDF, monotone_fn_inverter, StepFunction from .edgeworth import ExpandedNormal
pombredanne/creo
refs/heads/master
server/creo/__init__.py
12133432
writefaruq/lionface-app
refs/heads/master
django/conf/locale/eu/__init__.py
12133432
hassanabidpk/django
refs/heads/master
django/contrib/gis/management/commands/__init__.py
12133432
NifTK/NiftyNet
refs/heads/dev
niftynet/contrib/evaluation/regression_evaluations.py
12133432
jeske/csla
refs/heads/master
pysrc/clearsilver/odb_postgres.py
1
#! /usr/bin/env python """ usage: %(progname)s [args] """ import os, sys, string, time, getopt from log import * import odb from pyPgSQL import PgSQL class Cursor(odb.Cursor): def insert_id(self, tablename, colname): self.execute("select last_value from %s_%s_seq" % (tablename, colname)) row = self.fetch...
ocadotechnology/boto
refs/heads/develop
tests/unit/glacier/test_concurrent.py
88
#!/usr/bin/env python # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without ...
joshua-cogliati-inl/raven
refs/heads/devel
doc/workshop/stochasticCollocation/inputs/projectile.py
2
#*************************************** #* Simple analytic test ExternalModule * #*************************************** # # Simulates time-dependent track of a projectile through the air from start to 0, # assuming no air resistance. # Inputs: # (x0,y0) - initial position # v0 - initial total vel...
Medigate/cutiuta-server
refs/heads/master
cutiuta-server/env/lib/python3.4/site-packages/django/contrib/gis/geos/prototypes/__init__.py
163
""" This module contains all of the GEOS ctypes function prototypes. Each prototype handles the interaction between the GEOS library and Python via ctypes. """ from django.contrib.gis.geos.prototypes.coordseq import ( # NOQA create_cs, cs_clone, cs_getdims, cs_getordinate, cs_getsize, cs_getx, cs_gety, cs_...
isloux/multiscaletools
refs/heads/master
python/realtimeyahoo.py
1
#!/usr/bin/env python from yahoo_finance import Share import pandas as pd from datetime import datetime filepath='../../' filename='Russell3000cleanlist.xls' russell3000=pd.read_excel(filepath+filename) russell3000.columns=['Company','Ticker'] russell3000['Price']=pd.Series(-1,index=russell3000.index) russell3000['Ch...
tsl143/addons-server
refs/heads/master
src/olympia/activity/tests/__init__.py
12133432
uname/bleproxy
refs/heads/master
PC/BleProxyDesk/google/protobuf/pyext/__init__.py
12133432
RafaelCosman/pybrain
refs/heads/master
pybrain/rl/__init__.py
12133432
pamfilos/invenio
refs/heads/master-sql-fixes
modules/webstyle/lib/goto_plugins/__init__.py
12133432
dotKom/studlan
refs/heads/master
apps/competition/__init__.py
12133432
nfallen/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/sslutils/openssl.py
253
import functools import os import shutil import subprocess import tempfile from datetime import datetime class OpenSSL(object): def __init__(self, logger, binary, base_path, conf_path, hosts, duration, base_conf_path=None): """Context manager for interacting with OpenSSL. Creates a...
zenoss/ZenPacks.zenoss.OpenvSwitch
refs/heads/develop
ZenPacks/zenoss/OpenvSwitch/__init__.py
1
############################################################################## # # Copyright (C) Zenoss, Inc. 2013-2015, all rights reserved. # # This content is made available according to terms specified in # License.zenoss under the directory where your Zenoss product is installed. # ################################...
jumpstarter-io/neutron
refs/heads/master
neutron/tests/unit/api/rpc/agentnotifiers/test_dhcp_rpc_agent_api.py
11
# Copyright (c) 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
resmo/ansible
refs/heads/devel
lib/ansible/modules/cloud/azure/azure_rm_webapp.py
38
#!/usr/bin/python # # Copyright (c) 2018 Yunge Zhu, <yungez@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
ivoflipse/devide.johannes
refs/heads/master
extra/soappy-cvp/SOAPpy/Server.py
5
""" ################################################################################ # # SOAPpy - Cayce Ullman (cayce@actzero.com) # Brian Matthews (blm@actzero.com) # Gregory Warnes (Gregory.R.Warnes@Pfizer.com) # Christopher Blunck (blunck@gst.com) # ##########################...
unindented/streamcode
refs/heads/master
client/static/jsrepl/extern/python/unclosured/lib/python2.7/distutils/command/clean.py
251
"""distutils.command.clean Implements the Distutils 'clean' command.""" # contributed by Bastian Kleineidam <calvin@cs.uni-sb.de>, added 2000-03-18 __revision__ = "$Id$" import os from distutils.core import Command from distutils.dir_util import remove_tree from distutils import log class clean(Command): desc...
YPlan/gargoyle
refs/heads/master
tests/testapp/test_conditions.py
3
from __future__ import absolute_import, division, print_function, unicode_literals import datetime import pytest from django.core.validators import ValidationError from django.test import TestCase from gargoyle.conditions import AbstractDate, BeforeDate, ConditionSet, OnOrAfterDate, Percent, Range from gargoyle.mana...
silly-wacky-3-town-toon/SOURCE-COD
refs/heads/master
Panda3D-1.10.0/python/Lib/pipes.py
179
"""Conversion pipeline templates. The problem: ------------ Suppose you have some data that you want to convert to another format, such as from GIF image format to PPM image format. Maybe the conversion involves several steps (e.g. piping it through compress or uuencode). Some of the conversion steps may require th...
AngelTerrones/Algol
refs/heads/master
Simulation/modules/__init__.py
12133432
Pkthunder/geoq
refs/heads/develop
geoq/recolor/__init__.py
12133432
Osmose/kitsune
refs/heads/master
kitsune/upload/__init__.py
12133432
cyanna/edx-platform
refs/heads/master
common/djangoapps/student/tests/__init__.py
12133432
wangjild/python-jsonpath-rw
refs/heads/master
tests/bin/__init__.py
6
# Use modern python from __future__ import absolute_import, print_function, unicode_literals
axbaretto/beam
refs/heads/master
sdks/python/.tox/lint/lib/python2.7/site-packages/google/protobuf/internal/any_test_pb2.py
29
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/internal/any_test.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
kevin-coder/tensorflow-fork
refs/heads/master
tensorflow/compiler/tf2tensorrt/python/ops/trt_ops.py
4
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
mapr/hue
refs/heads/hue-3.9.0-mapr
desktop/core/ext-py/pysqlite/doc/includes/sqlite3/adapter_datetime.py
49
from pysqlite2 import dbapi2 as sqlite3 import datetime, time def adapt_datetime(ts): return time.mktime(ts.timetuple()) sqlite3.register_adapter(datetime.datetime, adapt_datetime) con = sqlite3.connect(":memory:") cur = con.cursor() now = datetime.datetime.now() cur.execute("select ?", (now,)) print cur.fetcho...
ex1usive-m4d/TemplateDocx
refs/heads/master
controllers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/sqlite3/dbapi2.py
161
#-*- coding: ISO-8859-1 -*- # pysqlite2/dbapi2.py: the DB-API 2.0 interface # # Copyright (C) 2004-2005 Gerhard Häring <gh@ghaering.de> # # This file is part of pysqlite. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # aris...
ShipJ/Code
refs/heads/master
Projects/SpringAutumnFair/src/analysis/__init__.py
12133432
helenst/django
refs/heads/master
tests/deprecation/__init__.py
12133432
gcblue/gcblue
refs/heads/master
scenarios/EditorSaved/__init__.py
12133432
lovexiaov/SandwichApp
refs/heads/master
venv/lib/python2.7/site-packages/pip/_vendor/requests/certs.py
1218
#!/usr/bin/env python # -*- coding: utf-8 -*- """ certs.py ~~~~~~~~ This module returns the preferred default CA certificate bundle. If you are packaging Requests, e.g., for a Linux distribution or a managed environment, you can change the definition of where() to return a separately packaged CA bundle. """ import o...
mobo95/pyload
refs/heads/stable
module/plugins/hooks/RapideoPl.py
3
# -*- coding: utf-8 -*- from module.common.json_layer import json_loads from module.plugins.internal.MultiHook import MultiHook class RapideoPl(MultiHook): __name__ = "RapideoPl" __type__ = "hook" __version__ = "0.03" __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" ...
istio/tools
refs/heads/master
perf/load/pilot/load_test.py
1
#!/usr/bin/env python3 # Copyright Istio 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 law or ag...
sumihai-tekindo/account_sicepat
refs/heads/master
account_asset_analytic/models/__init__.py
1
from . import asset
freakboy3742/django
refs/heads/main
tests/empty/no_models/__init__.py
12133432
py-geek/City-Air
refs/heads/master
venv/lib/python2.7/site-packages/allauth/socialaccount/providers/mailru/__init__.py
12133432
juanalfonsopr/odoo
refs/heads/8.0
addons/mrp_repair/mrp_repair.py
148
# -*- 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...
anryko/ansible
refs/heads/devel
test/units/modules/network/edgeswitch/__init__.py
12133432
gtest-org/test15
refs/heads/master
tests/yamlparser/__init__.py
12133432
OSSOS/MOP
refs/heads/master
src/ossos/core/ossos/tools/__init__.py
12133432
xme1226/horizon
refs/heads/master
openstack_dashboard/management/__init__.py
12133432
JeyZeta/Dangerous
refs/heads/master
Dangerous/Golismero/misc/old_tests/plugin_tests/__init__.py
12133432
whs/django
refs/heads/master
tests/servers/__init__.py
12133432
jreback/pandas
refs/heads/master
pandas/tests/tslibs/test_ccalendar.py
3
from datetime import date, datetime from hypothesis import given, strategies as st import numpy as np import pytest from pandas._libs.tslibs import ccalendar import pandas as pd @pytest.mark.parametrize( "date_tuple,expected", [ ((2001, 3, 1), 60), ((2004, 3, 1), 61), ((1907, 12, 31...
ainstushar/qBittorrent
refs/heads/master
src/searchengine/nova/engines/demonoid.py
20
#VERSION: 1.1 #AUTHORS: Douman (custparasite@gmx.se) #CONTRIBUTORS: Diego de las Heras (diegodelasheras@gmail.com) # 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 a...
aisipos/django
refs/heads/master
django/db/backends/oracle/operations.py
8
from __future__ import unicode_literals import datetime import re import uuid from django.conf import settings from django.db.backends.base.operations import BaseDatabaseOperations from django.db.backends.utils import truncate_name from django.utils import six, timezone from django.utils.encoding import force_bytes, ...
brinbois/Sick-Beard
refs/heads/development
lib/hachoir_core/profiler.py
186
from hotshot import Profile from hotshot.stats import load as loadStats from os import unlink def runProfiler(func, args=tuple(), kw={}, verbose=True, nb_func=25, sort_by=('cumulative', 'calls')): profile_filename = "/tmp/profiler" prof = Profile(profile_filename) try: if verbose: print...