repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
xiechuanj/containerops
refs/heads/master
pilotage/examples/python/Reliability/HTTPServerDemo.py
49
#encoding=utf-8 ''' http server ''' from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import io,shutil import urllib,time import getopt,string class MyRequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.process(2) def do_POST(self): self.process(1) def do_PUT(sel...
suyashphadtare/vestasi-erp-1
refs/heads/develop
erpnext/selling/doctype/campaign/test_campaign.py
40
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt import frappe test_records = frappe.get_test_records('Campaign')
sander76/home-assistant
refs/heads/dev
homeassistant/components/axis/const.py
8
"""Constants for the Axis component.""" import logging from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.switch import DOMA...
leopittelli/Django-on-App-Engine-Example
refs/heads/master
django/template/loaders/cached.py
114
""" Wrapper class that takes a list of template loaders as an argument and attempts to load templates from them in order, caching the result. """ import hashlib from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader, get_template_from_string, find_template_loader, make_orig...
tengpeng/spark
refs/heads/master
python/pyspark/sql/context.py
8
# # 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...
ptoraskar/django
refs/heads/master
tests/forms_tests/tests/test_regressions.py
155
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.forms import ( CharField, ChoiceField, Form, HiddenInput, IntegerField, ModelForm, ModelMultipleChoiceField, MultipleChoiceField, RadioSelect, Select, TextInput, ) from django.test import TestCase, ignore_warnings from django.utils...
eloquence/unisubs
refs/heads/staging
apps/subtitles/migrations/0004_auto__add_field_subtitlelanguage_official_signoff_count__add_field_sub.py
5
# encoding: 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): # Adding field 'SubtitleLanguage.official_signoff_count' db.add_column('subtitles_subtitlelanguage', '...
AyoubZahid/odoo
refs/heads/9.0
addons/base_import/test_models.py
399
from openerp.osv import orm, fields def name(n): return 'base_import.tests.models.%s' % n class char(orm.Model): _name = name('char') _columns = { 'value': fields.char('unknown') } class char_required(orm.Model): _name = name('char.required') _columns = { 'value': fields.char('u...
modulexcite/boxstarter
refs/heads/master
BuildPackages/example/sublime/Packages/AAAPackageDev/tests/sublime.py
12133432
350dotorg/Django
refs/heads/master
tests/regressiontests/admin_scripts/management/commands/__init__.py
12133432
PeterWangIntel/blink-crosswalk
refs/heads/master
LayoutTests/http/tests/websocket/workers/resources/simple_wsh.py
66
# Copyright (C) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
jheld/pylint
refs/heads/master
test/utils.py
2
"""some pylint test utilities """ import sys from glob import glob from os.path import join, abspath, dirname, basename, exists, splitext from cStringIO import StringIO from pylint.interfaces import IReporter from pylint.reporters import BaseReporter PREFIX = abspath(dirname(__file__)) def fix_path(): sys.path.i...
SRabbelier/Melange
refs/heads/master
thirdparty/google_appengine/lib/graphy/graphy/line_chart.py
28
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
Permutatrix/servo
refs/heads/master
tests/wpt/web-platform-tests/mathml/tools/fractions.py
92
#!/usr/bin/python from utils import mathfont import fontforge v1 = 7 * mathfont.em v2 = 1 * mathfont.em f = mathfont.create("fraction-axisheight%d-rulethickness%d" % (v1, v2)) f.math.AxisHeight = v1 f.math.FractionDenominatorDisplayStyleGapMin = 0 f.math.FractionDenominatorDisplayStyleShiftDown = 0 f.math.FractionDen...
insomnia-lab/calibre
refs/heads/master
src/calibre/db/write.py
5
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' ...
akarki15/mozillians
refs/heads/master
vendor-local/lib/python/celery/tests/test_app/test_beat.py
14
from __future__ import absolute_import import logging from datetime import datetime, timedelta from nose import SkipTest from celery import beat from celery import registry from celery.result import AsyncResult from celery.schedules import schedule from celery.task.base import Task from celery.utils import uuid from...
lduarte1991/edx-platform
refs/heads/master
openedx/core/djangoapps/contentserver/migrations/0001_initial.py
62
# -*- coding: utf-8 -*- #pylint: skip-file from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL),...
yfdyh000/kuma
refs/heads/master
kuma/wiki/tests/test_helpers.py
4
# -*- coding: utf-8 -*- import mock from django.contrib.sites.models import Site from kuma.core.cache import memcache from kuma.core.tests import eq_ from kuma.users.tests import UserTestCase from . import WikiTestCase, document, revision from ..models import DocumentZone from ..templatetags.jinja_helpers import (ab...
kogotko/carburetor
refs/heads/master
openstack_dashboard/dashboards/project/instances/tables.py
1
# Copyright 2012 Nebula, 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 agree...
nathangeffen/tbonline-old
refs/heads/master
tbonlineproject/external/sorl/thumbnail/models.py
12
from django.db import models from sorl.thumbnail.conf import settings class KVStore(models.Model): key = models.CharField(max_length=200, primary_key=True, db_column=settings.THUMBNAIL_KEY_DBCOLUMN ) value = models.TextField()
350dotorg/Django
refs/heads/master
tests/modeltests/user_commands/management/__init__.py
12133432
codefordurham/Durham-Restaurants
refs/heads/develop
users/tests/__init__.py
12133432
Joshmoss11/x-seq
refs/heads/master
deeptools/test/__init__.py
12133432
albertomurillo/ansible
refs/heads/devel
lib/ansible/modules/network/cnos/cnos_facts.py
37
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2019 Red Hat Inc. # Copyright (C) 2019 Lenovo. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
Raviyanto/sunflower-fm
refs/heads/master
application/plugins/system_terminal/plugin.py
7
import os import user import shlex import subprocess from parameters import Parameters from plugin_base.terminal import Terminal, TerminalType def register_plugin(application): """Register plugin classes with application""" application.register_class('system_terminal', _('System terminal'), SystemTerminal) class...
alex3287/PyCharmProjects
refs/heads/master
a_b_s/backup.py
1
#! usr/bin/python3 #программа для создания backups import os, zipfile def backupToZip(folder): """ создает резервную копию всего содержимого папки folder """ folder = os.path.abspath(folder) number=1 while True: zipFilename = os.path.basename(folder)+'_'+str(number)+'.zip' if ...
evansd/django
refs/heads/master
tests/custom_columns/models.py
72
""" Custom column/table names If your database column name is different than your model attribute, use the ``db_column`` parameter. Note that you'll use the field's name, not its column name, in API usage. If your database table name is different than your model name, use the ``db_table`` Meta attribute. This has no ...
rysson/filmkodi
refs/heads/master
plugin.video.mrknow/lib/entities/CItemInfo.py
2
class CItemInfo(object): def __init__(self): self.name = '' self.src = 'url' self.rule = '' self.default = '' self.build = '' self.convert = []
svn2github/audacity
refs/heads/master
lib-src/lv2/lilv/waflib/TaskGen.py
62
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import copy,re,os from waflib import Task,Utils,Logs,Errors,ConfigSet,Node feats=Utils.defaultdict(set) class task_gen(object): mappings={} prec=Utils.defaultdict(list) def...
wu-ty/LINE_PROJECT
refs/heads/master
setup.py
2
import os from setuptools import setup import feedreader version = feedreader.__version__ long_description = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() setup( name = 'django-feedreader', version = version, packages = ['feedreader'], include_package_data = True, license = '...
kehao95/Wechat_LearnHelper
refs/heads/master
src/env/lib/python3.5/site-packages/flask/testsuite/test_apps/path/installed_package/__init__.py
1799
import flask app = flask.Flask(__name__)
xlongfeng/agreement
refs/heads/master
item.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime, date, timedelta from enum import Enum import json import copy import sqlalchemy from sqlalchemy import (Column, ForeignKey, Integer, Boolean, \ String, DateTime, Date, UnicodeText, \ ...
gileno/curso-citi
refs/heads/master
core/views.py
1
import random from django.shortcuts import render from django.contrib import messages from django.http import HttpResponse from django.core.mail import send_mail from django.views.generic import View, TemplateView from .forms import ContactForm class IndexView(TemplateView): template_name = 'index.html' def ...
mavenlin/tensorflow
refs/heads/master
tensorflow/contrib/distributions/python/ops/estimator.py
44
# 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...
grantcoin/grantcoin
refs/heads/master
contrib/p2pool/p2pool/util/jsonrpc.py
261
from __future__ import division import json import weakref from twisted.internet import defer from twisted.protocols import basic from twisted.python import failure, log from twisted.web import client, error from p2pool.util import deferral, deferred_resource, memoize class Error(Exception): def __init__(self, ...
MicroPyramid/micro-finance
refs/heads/master
micro_admin/migrations/__init__.py
12133432
2013Commons/HUE-SHARK
refs/heads/master
desktop/core/ext-py/Django-1.2.3/django/conf/locale/nb/__init__.py
12133432
benoitsteiner/tensorflow
refs/heads/master
tensorflow/python/estimator/__init__.py
12133432
astropy/conda-build-tools
refs/heads/master
extruder/tests/test_channel_copy.py
1
import pytest from os import getenv from binstar_client.utils import get_server_api from binstar_client.errors import NotFound from ..copy_packages import PackageCopier SOURCE = 'conda-forge' DEST = 'astropy-channel-copy-test' # Destination channel contains only the packages: # wcsaxes # only versions 0.7 and 0...
theopolis/thrift
refs/heads/master
test/py/util.py
43
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
jstammers/EDMSuite
refs/heads/atom-mega-mix
NavPython/IronPython/Lib/lib2to3/fixes/fix_print.py
326
# Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Fixer for print. Change: 'print' into 'print()' 'print ...' into 'print(...)' 'print ... ,' into 'print(..., end=" ")' 'print >>x, ...' into 'print(..., file=x)' No changes are appl...
MER-GROUP/intellij-community
refs/heads/master
python/testData/quickFixes/PyMoveAttributeToInitQuickFixTest/py3K_after.py
79
class Base(): def __init__(self): self.param = 2 class Child(Base): def __init__(self): super().__init__() self.my = 1 def f(self): pass
benjyw/pants
refs/heads/fix_docs_urls
src/python/pants/backend/python/lint/pylint/rules.py
3
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections import defaultdict from dataclasses import dataclass from typing import Iterable, List, Tuple from pants.backend.python.lint.pylint.skip_field import SkipPylintField from...
giruenf/GRIPy
refs/heads/master
basic/uom/uom.py
1
# -*- coding: utf-8 -*- # # GRIPy Unit of Measure (UOM) # Classes for units of measure and it's conversion # Universidade Estadual do Norte Fluminense - UENF # Laboratório de Engenharia de Petróleo - LENEP # Grupo de Inferência em Reservatório - GIR # Adriano Paulo Laes de Santana # March 25th, 2017 # # The ...
odoo-brazil/odoo-brazil-hr
refs/heads/develop
l10n_br_hr_payroll/models/hr_contract.py
2
# -*- coding: utf-8 -*- # Copyright 2017 KMEE # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import api, fields, models from openerp import exceptions from datetime import datetime, timedelta class HrContract(models.Model): _inherit = 'hr.contract' _rec_name = 'nome_contrato' ...
zaxtax/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 ...
tedder/ansible
refs/heads/devel
lib/ansible/plugins/cache/__init__.py
17
# (c) 2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2018, Ansible Project # # 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, o...
reimandlab/ActiveDriverDB
refs/heads/master
website/database/types.py
1
from io import StringIO from pandas import DataFrame, read_csv from sqlalchemy import TypeDecorator, Text from sqlalchemy.dialects import mysql from sqlalchemy.ext.compiler import compiles from sqlalchemy.ext.mutable import MutableSet from database import db from pandas.util import hash_pandas_object class DataFram...
svsn2117/coala
refs/heads/master
tests/processes/section_executor_test_files/ProcessingGlobalTestBear.py
28
from coalib.bears.GlobalBear import GlobalBear from coalib.results.Result import Result class ProcessingGlobalTestBear(GlobalBear): # pragma: no cover def run(self): for filename in self.file_dict: return [Result.from_values("GlobalTestBear", "test mess...
cetic/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/ios.py
101
# # (c) 2015, Peter Sprygada <psprygada@ansible.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 Software Foundation, either version 3 of the License, or # (at your option) any late...
srimai/odoo
refs/heads/8.0
addons/crm_profiling/crm_profiling.py
333
# -*- 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...
waytai/networkx
refs/heads/master
examples/drawing/weighted_graph.py
44
#!/usr/bin/env python """ An example using Graph as a weighted network. """ __author__ = """Aric Hagberg (hagberg@lanl.gov)""" try: import matplotlib.pyplot as plt except: raise import networkx as nx G=nx.Graph() G.add_edge('a','b',weight=0.6) G.add_edge('a','c',weight=0.2) G.add_edge('c','d',weight=0.1)...
wolcomm/rptk
refs/heads/master
rptk/format/__init__.py
1
# Copyright (c) 2018 Workonline Communications (Pty) Ltd. All rights reserved. # # The contents of this file are licensed under the Apache License version 2.0 # (the "License"); you may not use this file except in compliance with the # License. # # Unless required by applicable law or agreed to in writing, software # d...
openstack/keystone
refs/heads/master
keystone/common/manager.py
2
# Copyright 2012 OpenStack Foundation # # 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...
pedroeml/t1-fcg
refs/heads/master
CrowdDataAnalysis/graph/graph.py
1
from graph.node import Node class Graph: def __init__(self, nodes={}): self.nodes = nodes def add_node(self, item): node = Node(item) self.nodes[item] = node def find_node(self, item): """ :param item: :return: :rtype: Node """ ...
JianyuWang/neutron
refs/heads/master
neutron/db/migration/alembic_migrations/vmware_init_ops.py
32
# Copyright 2014 OpenStack Foundation # # 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 ...
JamisHoo/Cloud-Image-Migration-Tool
refs/heads/master
usr/lib/requests/packages/chardet/eucjpprober.py
2918
######################## 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...
gdit-cnd/RAPID
refs/heads/master
unit_tests/test_monitor_views.py
2
from monitors.views import MonitorDashboard, AddIndicator, DomainMonitor, DeleteIndicator from profiles.models import Profile from django.test import TestCase, RequestFactory from django.core.urlresolvers import reverse from django.contrib.auth.models import AnonymousUser from django.http import HttpResponseRedirect im...
maciek123/pyage-forams
refs/heads/master
pyage_forams/conf/distributed2d/lowerright.py
1
# coding=utf-8 from functools import partial import Pyro4 from pyage.core import address from pyage.core.stop_condition import StepLimitStopCondition from pyage_forams.solutions.distributed.neighbour_matcher import Neighbour2dMatcher from pyage_forams.solutions.agent.remote_aggegate import create_remote_agent from py...
ncloudioj/splice
refs/heads/master
tests/api/test_heartbeat.py
6
from flask import url_for from nose.tools import assert_equal from tests.base import BaseTestCase from mock import Mock class TestHeartbeat(BaseTestCase): def setUp(self): import splice.web.api.heartbeat super(TestHeartbeat, self).setUp() def get_key_mock(*args, **kwargs): re...
suiyuan2009/tensorflow
refs/heads/master
tensorflow/contrib/remote_fused_graph/pylib/python/ops/__init__.py
189
# 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...
google/flax
refs/heads/master
tests/nn_attention_test.py
1
# Copyright 2021 The Flax 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 agreed to in wri...
EdzBrz/websync-MasterNode
refs/heads/master
server.py
1
import tornado.ioloop from tornado.wsgi import WSGIContainer from tornado.httpserver import HTTPServer from tornado.options import options import signal, logging is_closing = False def start(app, port): logging.info("Starting Tornado Server...") tornado.options.parse_command_line() http_server = HTTPServer(W...
mdibaiee/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/html5lib/html5lib/filters/sanitizer.py
1734
from __future__ import absolute_import, division, unicode_literals from . import _base from ..sanitizer import HTMLSanitizerMixin class Filter(_base.Filter, HTMLSanitizerMixin): def __iter__(self): for token in _base.Filter.__iter__(self): token = self.sanitize_token(token) if tok...
hansenDise/scrapy
refs/heads/master
scrapy/utils/testsite.py
93
from __future__ import print_function from six.moves.urllib.parse import urljoin from twisted.internet import reactor from twisted.web import server, resource, static, util class SiteTest(object): def setUp(self): super(SiteTest, self).setUp() self.site = reactor.listenTCP(0, test_site(), interf...
AnotherIvan/calibre
refs/heads/master
src/calibre/gui2/preferences/save_template.py
11
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import with_statement __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from PyQt5.Qt import QWidget, pyqtSignal from calibre.gui2 import error_dialog, que...
alextruberg/custom_django
refs/heads/master
tests/fixtures_regress/models.py
49
from __future__ import absolute_import, unicode_literals from django.contrib.auth.models import User from django.db import models from django.utils import six from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Animal(models.Model): name = models.CharField(max_length=...
Yukarumya/Yukarum-Redfoxes
refs/heads/master
python/mozboot/setup.py
11
# 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 distutils.core import setup VERSION = '0.1' setup( name='mozboot', description='System bootstrap for buil...
chencoyote/owasp-pysec
refs/heads/master
pysec/kv/kyoto.py
1
# Python Security Project (PySec) and its related class files. # # PySec is a set of tools for secure application development under Linux # # Copyright 2014 PySec development team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You...
ArianaGashi/Techstitution
refs/heads/master
venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py
2800
######################## 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...
myersjustinc/django-calaccess-campaign-browser
refs/heads/master
calaccess_campaign_browser/management/commands/importtosqlserver.py
3
import os import re import csv import fnmatch from optparse import make_option import pypyodbc from django.conf import settings from django.db import connection from django.db.models import get_model from django.core.management.base import AppCommand from calaccess_campaign_browser.management.commands import CalAcce...
jedimatt42/pi-messaging
refs/heads/master
htdocs/TipiConfig.py
1
""" This config object will be used by in process and external process services. It is externally shared as /home/tipi/tipi.config, and internally by providing the TipiConfig.instance() accessor. If an external actor has updated the file it will be reloaded automatically with any read operation (get & keys). Unsaved da...
socialplanning/Cabochon
refs/heads/master
cabochon/config/__init__.py
9480
#
alianmohammad/pd-gem5-latest
refs/heads/master
src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py
90
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
quantopian/pgcontents
refs/heads/master
pgcontents/tests/test_synchronization.py
1
""" Tests for synchronization tools. """ from __future__ import unicode_literals from base64 import b64encode from logging import Logger from unittest import TestCase from cryptography.fernet import Fernet from sqlalchemy import create_engine from pgcontents import PostgresContentsManager from pgcontents.crypto impor...
Shao-Feng/crosswalk-test-suite
refs/heads/master
apptools/apptools-windows-tests/apptools/comm.py
11
#!/usr/bin/env python # # Copyright (c) 2015 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
40123210/w17b_exam
refs/heads/master
static/Brython3.1.3-20150514-095342/Lib/weakref.py
769
"""Weak reference support for Python. This module is an implementation of PEP 205: http://www.python.org/dev/peps/pep-0205/ """ # Naming convention: Variables named "wr" are weak reference objects; # they are called this instead of "ref" to avoid name collisions with # the module-global ref() function imported from ...
tximikel/kuma
refs/heads/master
vendor/packages/translate/misc/wsgiserver/ssl_pyopenssl.py
51
"""A library for integrating pyOpenSSL with CherryPy. The OpenSSL module must be importable for SSL functionality. You can obtain it from http://pyopenssl.sourceforge.net/ To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of SSLAdapter. There are two ways to use SSL: Method One ---------- * ``s...
sabi0/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/conf/locale/pt_BR/__init__.py
12133432
j3parker/servo
refs/heads/master
tests/wpt/css-tests/tools/html5lib/html5lib/filters/__init__.py
12133432
stefanfoulis/cmsplugin-filer
refs/heads/develop
cmsplugin_filer_file/migrations/__init__.py
12133432
lunafeng/django
refs/heads/master
django/conf/locale/km/__init__.py
12133432
pathomx/pathomx
refs/heads/master
pathomx/plugins/geo/__init__.py
12133432
quickresolve/accel.ai
refs/heads/master
flask-aws/lib/python2.7/site-packages/botocore/config.py
6
# Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
tiagofrepereira2012/tensorflow
refs/heads/master
tensorflow/contrib/rnn/__init__.py
25
# 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...
rsms/smisk
refs/heads/master
lib/smisk/wsgi.py
1
# encoding: utf-8 # Copyright (c) 2008, Eric Moritz <eric@themoritzfamily.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 the above copy...
pyq881120/Veil-Evasion
refs/heads/master
tools/pyherion.py
12
#!/usr/bin/python """ PyHerion 1.0 By: @harmj0y Python 'crypter' that builds an dynamic AES/base64 encoded launcher (with a random key) that's decoded/decrypted in memory and then executed. Standalone version of the same functionality integrated into Veil, in ./modules/common/encryption.py """ from Crypto.Cipher...
pointgaming/point-gaming-btc
refs/heads/master
authentication/allowall.py
1
# Eloipool - Python Bitcoin pool server # Copyright (C) 2011-2013 Luke Dashjr <luke-jr+eloipool@utopios.org> # Written by Peter Leurs <kinlo@triplemining.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 # published by the Fre...
mhvk/baseband
refs/heads/master
baseband/vdif/base.py
1
# Licensed under the GPLv3 - see LICENSE import warnings from collections import namedtuple import numpy as np import astropy.units as u from astropy.utils import lazyproperty from ..base.base import ( FileBase, VLBIFileReaderBase, VLBIStreamReaderBase, StreamWriterBase, FileOpener, FileInfo, HeaderNotFou...
rcarrillocruz/ansible
refs/heads/devel
lib/ansible/modules/files/iso_extract.py
17
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be> # (c) 2016, Matt Robinson <git@nerdoftheherd.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 # th...
Lilykos/invenio
refs/heads/master
invenio/modules/oauth2server/errors.py
16
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014 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) any later...
ThomasZh/legend-club-wxpub
refs/heads/master
foo/dao/evaluation_dao.py
1
#!/usr/bin/env python # _*_ coding: utf-8_*_ # # Copyright 2016 planc2c.com # thomas@time2box.com # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENS...
aagusti/o-sipkd
refs/heads/master
docs/apbd/config.py
4
db_url_dst = 'postgresql://aagusti:a@localhost/gaji_pns'
windygu/zhuaxia
refs/heads/master
zhuaxia/commander.py
3
# -*- coding:utf-8 -*- import sys import config ,util ,logging ,log,downloader import xiami as xm import netease import re from threadpool import ThreadPool from time import sleep from os import path from threadpool import Terminate_Watcher from proxypool import ProxyPool LOG = log.get_logger("zxLogger") dl_songs = ...
javierlgroba/Eventer-gapp
refs/heads/master
django/contrib/staticfiles/models.py
12133432
philanthropy-u/edx-platform
refs/heads/master
openedx/core/djangoapps/credentials/tasks/__init__.py
12133432
js0701/chromium-crosswalk
refs/heads/master
third_party/cython/src/Cython/Compiler/ModuleNode.py
87
# # Module parse tree node # import cython cython.declare(Naming=object, Options=object, PyrexTypes=object, TypeSlots=object, error=object, warning=object, py_object_type=object, UtilityCode=object, EncodedString=object) import os import operator from PyrexTypes import CPtrType import ...
shaunwbell/FOCI_Analysis
refs/heads/master
ReanalysisRetreival_orig/Chuckchi_Winds/Chuckchi_WindsSFCtemp_NARR_model_prep.py
1
#!/usr/bin/env """ Chuckchi_Winds_NARR_model_prep.py Retrieve NARR winds for one locations Icy Cape Line, Ckip2 Latitude = 70.8401 Longitude = 163.2054 Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs Provide U, V Save in EPIC NetCDF standard """ #System Stack import datetim...
cnewcome/sos
refs/heads/master
sos/plugins/dlm.py
4
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but...
gtko/Sick-Beard
refs/heads/development
lib/hachoir_core/field/byte_field.py
90
""" Very basic field: raw content with a size in byte. Use this class for unknown content. """ from lib.hachoir_core.field import Field, FieldError from lib.hachoir_core.tools import makePrintable from lib.hachoir_core.bits import str2hex from lib.hachoir_core import config MAX_LENGTH = (2**64) class RawBytes(Field)...