repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
proxysh/Safejumper-for-Mac
refs/heads/master
buildlinux/env32/lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py
55
# 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 hmac from cryptography.hazmat.bindings._constant_time import lib ...
VTacius/MZBackup
refs/heads/master
mailbox.py
1
#!/usr/bin/python # encoding: utf-8 # vim: tabstop=4 : shiftwidth=4 : expandtab from modulos.backupeador import Respaldante, Enviante from modulos.configuracion import configuracion from modulos.listado import listar from modulos.utilidades import abrir_listado, situar_directorio, titulador, situar_remoto from argpar...
balloob/home-assistant
refs/heads/dev
homeassistant/components/hisense_aehw4a1/config_flow.py
12
"""Config flow for Hisense AEH-W4A1 integration.""" from pyaehw4a1.aehw4a1 import AehW4a1 from homeassistant import config_entries from homeassistant.helpers import config_entry_flow from .const import DOMAIN async def _async_has_devices(hass): """Return if there are devices that can be discovered.""" aehw4...
TRESCLOUD/odoopub
refs/heads/master
addons/base_action_rule/tests/base_action_rule_test.py
395
from openerp import SUPERUSER_ID from openerp.tests import common from .. import test_models class base_action_rule_test(common.TransactionCase): def setUp(self): """*****setUp*****""" super(base_action_rule_test, self).setUp() cr, uid = self.cr, self.uid self.demo = self.registry(...
lucafavatella/intellij-community
refs/heads/cli-wip
python/lib/Lib/encodings/cp1253.py
593
""" Python Character Mapping Codec cp1253 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,in...
lhopps/grit-i18n
refs/heads/master
grit/format/policy_templates/writers/admx_writer_unittest.py
41
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for grit.format.policy_templates.writers.admx_writer.""" import os import sys import unittest if __name__ == '__mai...
kbehafarin/newfies-dialer
refs/heads/master
newfies/dialer_campaign/views.py
3
# # Newfies-Dialer License # http://www.newfies-dialer.org # # 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/. # # Copyright (C) 2011-2013 Star2Billing S.L. # # The Initia...
consulo/consulo-python
refs/heads/master
plugin/src/test/resources/inspections/PyMethodOverridingInspection/ArgAndKwargs.py
83
class B: def foo(self, **kwargs): pass class C(B): def foo(self, arg1=None, **kwargs): # pass pass
codepython/Diamond
refs/heads/master
src/collectors/nagiosperfdata/nagiosperfdata.py
29
# coding=utf-8 """ The NagiosPerfdataCollector parses Nagios performance data in the PNP4Nagios/Graphios/Metricinga key-value format. #### Dependencies * Nagios configured to periodically dump performance data files in PNP4Nagios format Configuring Nagios/Icinga ------------------------- If you're already using...
nomnombtc/bitcoin
refs/heads/master
qa/rpc-tests/rpcbind_test.py
17
#!/usr/bin/env python3 # Copyright (c) 2014-2016 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 for -rpcbind, as well as -rpcallowip and -rpcconnect from test_framework.test_framework import Bi...
yakky/django-cms
refs/heads/develop
cms/tests/test_wizards.py
3
# -*- coding: utf-8 -*- from django import forms from django.core.exceptions import ImproperlyConfigured from django.forms.models import ModelForm from django.template import TemplateSyntaxError from django.test.utils import override_settings from django.urls import reverse from django.utils.encoding import smart_text...
Bashar/django
refs/heads/master
django/contrib/flatpages/views.py
105
from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.shortcuts import get_current_site from django.http import Http404, HttpResponse, HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.template import loader, RequestContext...
davidegalletti/koa-proof-of-concept
refs/heads/master
kag/taxonomy/migrations/0001_initial.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('entity', '0001_initial'), ] operations = [ migrations.CreateModel( name='Taxonomy', fields=[ ...
aparna29/Implementation-of-Random-Exponential-Marking-REM-in-ns-3
refs/heads/master
bindings/python/ns3modulegen.py
199
LOCAL_MODULES = [ #'my_extra_api_definitions', ] import sys import os sys.path.insert(0, sys.argv[2]) from pybindgen import FileCodeSink, write_preamble from pybindgen.module import MultiSectionFactory import pybindgen.settings pybindgen.settings.deprecated_virtuals = False from ns3modulegen_generated i...
dbremner/bite-project
refs/heads/master
deps/gdata-python-client/src/gdata/youtube/__init__.py
297
#!/usr/bin/python # # Copyright (C) 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 ...
lz1988/django-web2015
refs/heads/master
build/lib/django/forms/widgets.py
98
""" HTML Widget classes """ from __future__ import absolute_import, unicode_literals import copy import datetime from itertools import chain try: from urllib.parse import urljoin except ImportError: # Python 2 from urlparse import urljoin from django.conf import settings from django.forms.util import fla...
jmancewicz/DIGITS
refs/heads/master
digits/frameworks/__init__.py
5
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .caffe_framework import CaffeFramework from .framework import Framework from .torch_framework import TorchFramework from digits.config import config_value # # create framework instances # # torch is opti...
pavelchristof/gomoku-ai
refs/heads/master
tensorflow/tools/compatibility/ast_edits.py
47
# 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...
sinkuri256/python-for-android
refs/heads/master
python-modules/twisted/twisted/internet/endpoints.py
49
# -*- test-case-name: twisted.internet.test.test_endpoints -*- # Copyright (c) 2007-2010 Twisted Matrix Laboratories. # See LICENSE for details. """ Implementations of L{IStreamServerEndpoint} and L{IStreamClientEndpoint} that wrap the L{IReactorTCP}, L{IReactorSSL}, and L{IReactorUNIX} interfaces. This also implement...
PythonScientists/Shape
refs/heads/master
main/module/blog/views.py
1
#-*-coding:utf-8-*- from . import blog_blueprint from flask import render_template from main.forms import CommentForm from main.models import Post """ 主要展示好评、推荐文章 """ @blog_blueprint.route("/") def blog_index(): return render_template("blog.html") """ 主要展示所有文章,只按发表时间顺序 """ @blog_blueprint.route("/post_list") def...
procangroup/edx-platform
refs/heads/master
openedx/core/djangoapps/schedules/management/commands/send_course_update.py
18
from openedx.core.djangoapps.schedules.management.commands import SendEmailBaseCommand from openedx.core.djangoapps.schedules.tasks import ScheduleCourseUpdate class Command(SendEmailBaseCommand): async_send_task = ScheduleCourseUpdate log_prefix = 'Course Update' offsets = xrange(-7, -77, -7)
cewood/ansible-modules-core
refs/heads/devel
files/stat.py
14
#!/usr/bin/python # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed...
kenshay/ImageScripter
refs/heads/master
ProgramData/SystemFiles/Python/Lib/distutils/unixccompiler.py
11
"""distutils.unixccompiler Contains the UnixCCompiler class, a subclass of CCompiler that handles the "typical" Unix-style command-line C compiler: * macros defined with -Dname[=value] * macros undefined with -Uname * include search directories specified with -Idir * libraries specified with -lllib * library...
beigenmann/WebIOPi
refs/heads/master
python/webiopi/devices/sensor/__init__.py
4
# Copyright 2012-2013 Eric Ptak - trouch.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/LICENSE-2.0 # # Unless required by applicable l...
CourseTalk/edx-platform
refs/heads/master
lms/djangoapps/commerce/api/v1/tests/test_serializers.py
109
""" Commerce API v1 serializer tests. """ from django.test import TestCase from commerce.api.v1.serializers import serializers, validate_course_id class CourseValidatorTests(TestCase): """ Tests for Course Validator method. """ def test_validate_course_id_with_non_existent_course(self): """ Verify a...
kstrauser/ansible
refs/heads/devel
v1/ansible/runner/lookup_plugins/password.py
144
# (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com> # (c) 2013, Javier Candeira <javier@candeira.com> # (c) 2013, Maykel Moya <mmoya@speedyrails.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...
neumerance/cloudloon2
refs/heads/master
.venv/lib/python2.7/site-packages/django/conf/locale/pt/__init__.py
12133432
iivic/BoiseStateX
refs/heads/master
lms/djangoapps/instructor_task/migrations/__init__.py
12133432
openjck/kuma
refs/heads/master
kuma/actioncounters/migrations/__init__.py
12133432
switchboardOp/ansible
refs/heads/devel
contrib/inventory/digital_ocean.py
21
#!/usr/bin/env python ''' DigitalOcean external inventory script ====================================== Generates Ansible inventory of DigitalOcean Droplets. In addition to the --list and --host options used by Ansible, there are options for generating JSON of other DigitalOcean data. This is useful when creating d...
pombredanne/scancode-toolkit
refs/heads/master
setup.py
1
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function import io import os import re from glob import glob from os.path import basename from os.path import dirname from os.path import join from os.path import splitext from setuptools import find_packages from setuptools...
brain-hacker-antilammer/pygooglevoice
refs/heads/master
examples/folders.py
39
from googlevoice import Voice,util,settings voice = Voice() voice.login() for feed in settings.FEEDS: util.print_(feed.title()) for message in getattr(voice, feed)().messages: util.print_('\t', message)
tavendo/AutobahnPython
refs/heads/master
examples/twisted/wamp/pubsub/basic/frontend.py
3
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
wileykestner/sf_real_estate
refs/heads/master
sf.py
1
#!/usr/bin/env python import argparse from sf_real_estate.present_apns_with_address.present_apns_with_address_use_case import PresentAPNSWithAddressUseCase from sf_real_estate.present_apns_with_address.remote_apn_repository import RemoteAPNRepository from sf_real_estate.present_apns_with_address.apn_list_deserialize...
chrisburr/scikit-learn
refs/heads/master
sklearn/datasets/mlcomp.py
289
# Copyright (c) 2010 Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause """Glue code to load http://mlcomp.org data as a scikit.learn dataset""" import os import numbers from sklearn.datasets.base import load_files def _load_document_classification(dataset_path, metadata, set_=None, **kwargs): if ...
fernandezcuesta/ansible
refs/heads/devel
lib/ansible/modules/network/avi/avi_poolgroupdeploymentpolicy.py
7
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # 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...
joshuajan/odoo
refs/heads/master
addons/website_membership/controllers/__init__.py
7372
import main
Commonists/Commons2Data
refs/heads/master
commons2data.py
1
# -*- coding: utf-8 -*- import facts import items import statements def main(): from argparse import ArgumentParser description = 'Translating Commons categories semantic into Wikidata statements' parser = ArgumentParser(description=description) parser.add_argument('-c', '--category', ...
brijeshkesariya/odoo
refs/heads/8.0
addons/mass_mailing/__openerp__.py
312
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
pontikos/phenopolis
refs/heads/master
vcf/__init__.py
4
from config import config if config.IMPORT_PYSAM_PRIMER3: import pysam # VCF query def vcf_query(chrom=None, pos=None, ref=None, alt=None, variant_str=None, individual=None, verbose=False, limit=100, release='mainset_July2016'): if variant_str: variant_str=str(variant_str).strip().replace('_','-') ...
alfanugraha/LUMENS-repo
refs/heads/master
processing/tools/help.py
6
# -*- coding: utf-8 -*- """ *************************************************************************** help.py --------------------- Date : March 2013 Copyright : (C) 2013 by Victor Olaya Email : volayaf at gmail dot com ***********************************...
guohongze/adminset
refs/heads/master
cmdb/migrations/0001_initial.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-18 05:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('appconf', '0001_initial'), ] ...
anybox/sale-workflow
refs/heads/8.0
sale_owner_stock_sourcing/tests/__init__.py
37
from . import test_propagate_owner_to_move from . import test_int_sale_to_reservation
paplorinc/intellij-community
refs/heads/master
python/testData/docstrings/googleKeywordArgumentsSection.py
53
def f(): """ Keyword arguments: """
fdroidtravis/fdroidserver
refs/heads/master
fdroidserver/checkupdates.py
1
#!/usr/bin/env python3 # # checkupdates.py - part of the FDroid server tools # Copyright (C) 2010-2015, Ciaran Gultnieks, ciaran@ciarang.com # Copyright (C) 2013-2014 Daniel Martí <mvdan@mvdan.cc> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Pub...
ProfessionalIT/professionalit-webiste
refs/heads/master
sdk/google_appengine/lib/django-1.3/django/conf/locale/de/formats.py
329
# -*- 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 = 'j. F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j. F Y H:i:s' YEAR_MONTH...
krzycz/prd
refs/heads/master
tools/perf/python/twatch.py
1565
#! /usr/bin/python # -*- python -*- # -*- coding: utf-8 -*- # twatch - Experimental use of the perf python interface # Copyright (C) 2011 Arnaldo Carvalho de Melo <acme@redhat.com> # # This application is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License...
ceefour/opencog
refs/heads/master
opencog/python/dingjie/m_util.py
34
## # @file m_util.py # @brief developing python library # @author Dingjie.Wang # @version 1.0 # @date 2012-08-04 import re import inspect from pprint import pprint # --------------------------------------------------------------------- def format_log(offset, dsp_caller = True, *args): ''' ''' caller = "" ...
slonopotamus/git_svn_server
refs/heads/master
GitSvnServer/report.py
3
import parse from errors import * rpt_cmds = {} def rpt_func(name): def _rpt_func(f): rpt_cmds.setdefault(name, f) return f return _rpt_func @rpt_func('set-path') def set_path(command, args): path = parse.string(args[0]) rev = int(args[1]) start_empty = args[2].lower() == 'true'...
acsone/hr
refs/heads/8.0
hr_contract_multi_jobs/models/hr_job.py
23
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2014 Savoir-faire Linux. All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as publish...
jimpick/jaikuengine
refs/heads/master
badge/views.py
4
# Copyright 2009 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 or agreed to in writing, ...
msebire/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/gis/db/backends/spatialite/__init__.py
12133432
hyesun03/k-board
refs/heads/master
kboard/accounts/tests/__init__.py
12133432
numansiddique/contrail-controller
refs/heads/master
src/opserver/__init__.py
12133432
jinnykoo/wuyisj
refs/heads/master
src/oscar/apps/order/reports.py
13
import datetime from oscar.core.loading import get_model from django.utils.translation import ugettext_lazy as _ from oscar.core.loading import get_class ReportGenerator = get_class('dashboard.reports.reports', 'ReportGenerator') ReportCSVFormatter = get_class('dashboard.reports.reports', ...
Ronak6892/servo
refs/heads/master
components/script/dom/bindings/codegen/parser/WebIDL.py
28
# 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/. """ A WebIDL parser. """ from ply import lex, yacc import re import os import traceback import math from collections im...
maljac/odoo-addons
refs/heads/8.0
analytic_surveyor/analytic.py
11
#-*- coding: utf-8 -*- from openerp import fields, models class res_country_state_town(models.Model): _name = 'res.country.state.town' # TODO mover esto a otro modulo name = fields.Char('Name', required=True) state_id = fields.Many2one('res.country.state', 'State', required=True) class account_analytic...
dbmi-pitt/dbmi-annotator
refs/heads/master
translation/mp-evidence-base-ETL/deprecated/mpEvidenceQry.py
1
# Copyright 2016-2017 University of Pittsburgh # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http:www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agr...
GaloisInc/hacrypto
refs/heads/master
src/C++/Mozilla/old_snapshots/manager/ssl/tests/unit/test_cert_signatures/generate.py
1
#!/usr/bin/python # 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/. import tempfile, os, sys import random libpath = os.path.abspath('../psm_common_py') sys.path.append...
edxnercel/edx-platform
refs/heads/master
lms/djangoapps/shoppingcart/migrations/0007_auto__add_field_orderitem_service_fee.py
114
# -*- 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): # Adding field 'OrderItem.service_fee' db.add_column('shoppingcart_orderitem', 'service_fee', ...
gorkinovich/DefendersOfMankind
refs/heads/master
dependencies/boost-1.46.0/boost-build/test/boostbook.py
4
#!/usr/bin/python # Copyright 2004, 2006 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) from BoostBuild import Tester, List import string # Create a temporary working directory t = Tester() t.set_tree("b...
piquadrat/django
refs/heads/master
django/test/selenium.py
56
import sys import unittest from contextlib import contextmanager from django.test import LiveServerTestCase, tag from django.utils.module_loading import import_string from django.utils.text import capfirst class SeleniumTestCaseBase(type(LiveServerTestCase)): # List of browsers to dynamically create test classes...
le9i0nx/ansible
refs/heads/devel
test/units/modules/network/f5/test_bigip_configsync_action.py
7
# -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # 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 import os import json import sys from nose.plugins.skip import SkipTest i...
DMLoy/ECommerceBasic
refs/heads/master
bin/bin/activate/lib/python2.7/site-packages/pip/vendor/html5lib/treebuilders/dom.py
249
from __future__ import absolute_import, division, unicode_literals from xml.dom import minidom, Node, XML_NAMESPACE, XMLNS_NAMESPACE import weakref from . import _base from .. import constants from ..constants import namespaces from ..utils import moduleFactoryFactory def getDomBuilder(DomImplementation): Dom ...
SnakeJenny/TensorFlow
refs/heads/master
tensorflow/contrib/linear_optimizer/python/sdca_estimator_test.py
16
# 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...
schreifels/sublime-goto-related
refs/heads/master
test/test_goto_related.py
1
import unittest from mock import Mock import os, sys root_path = os.path.abspath(os.path.join(__file__, '..', '..')) sys.path.insert(0, root_path) from test.stubs import sublime, sublime_plugin from goto_related import GotoRelatedCommand class TestGotoRelatedCommand(unittest.TestCase): def assert_goto(self, cur...
vbmendes/django-transmeta
refs/heads/master
transmeta/management/__init__.py
12133432
FlySorterLLC/SantaFeControlSoftware
refs/heads/master
commonYeastTasks.py
1
## ## This copyrighted software is distributed under the GPL v2.0 license. ## See the LICENSE file for more details. ## import random as rand import time import numpy as np import cv2 ## Highest order commands for yeast colony manipulation # Loads applicator from applicator module def applicatorEquip(robot, YeastApp...
Nebelhom/WordPuzzleCreator
refs/heads/master
lib/xlwt/Worksheet.py
16
# -*- coding: windows-1252 -*- ''' BOF UNCALCED INDEX Calculation Settings Block PRINTHEADERS PRINTGRIDLINES GRIDSET GUTS DEFAULTROWHEIGHT WSBOOL Page Settings Block Worksheet ...
wakatime/sketch-wakatime
refs/heads/master
WakaTime.sketchplugin/Contents/Resources/wakatime/projects/projectmap.py
7
# -*- coding: utf-8 -*- """ wakatime.projects.projectmap ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Use the ~/.wakatime.cfg file to set custom project names by matching files with regex patterns. Project maps go under the [projectmap] config section. For example: [projectmap] /home/user/project...
acourtney2015/boto
refs/heads/develop
boto/rds/optiongroup.py
180
# Copyright (c) 2013 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 limitation the rights...
belokop/indico_bare
refs/heads/master
indico/MaKaC/posterDesignConf.py
1
# This file is part of Indico. # Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
SophieBartmann/Faust-Bot
refs/heads/master
FaustBot/Model/__init__.py
3
__author__ = 'Pups'
sdgdsffdsfff/Mobile-Security-Framework-MobSF
refs/heads/master
DynamicAnalyzer/tools/pyWebProxy/proxy.py
32
#!/usr/bin/env python ''' owtf is an OWASP+PTES-focused try to unite great tools & facilitate pentesting Copyright (c) 2013, Abraham Aranguren <name.surname@gmail.com> http://7-a.org All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the f...
rgeleta/odoo
refs/heads/8.0
openerp/cli/__init__.py
185
import logging import sys import os import openerp from openerp import tools from openerp.modules import module _logger = logging.getLogger(__name__) commands = {} class CommandType(type): def __init__(cls, name, bases, attrs): super(CommandType, cls).__init__(name, bases, attrs) name = getattr(...
jbedorf/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/tridiagonal_solve_op_test.py
3
# 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...
vismartltd/edx-platform
refs/heads/master
lms/djangoapps/course_structure_api/v0/views.py
2
""" API implementation for course-oriented interactions. """ import logging from django.conf import settings from django.http import Http404 from rest_framework.authentication import OAuth2Authentication, SessionAuthentication from rest_framework.exceptions import PermissionDenied, AuthenticationFailed from rest_fram...
theshadowx/enigma2
refs/heads/master
lib/python/Plugins/SystemPlugins/IniVFD/__init__.py
12133432
benjaminrigaud/django
refs/heads/master
django/contrib/gis/tests/geo3d/models.py
111
from django.contrib.gis.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class NamedModel(models.Model): name = models.CharField(max_length=30) objects = models.GeoManager() class Meta: abstract = True app_label = 'geo3d' de...
detrout/debian-statsmodels
refs/heads/debian
examples/python/quantile_regression.py
30
## Quantile regression # # This example page shows how to use ``statsmodels``' ``QuantReg`` class to replicate parts of the analysis published in # # * Koenker, Roger and Kevin F. Hallock. "Quantile Regressioin". Journal of Economic Perspectives, Volume 15, Number 4, Fall 2001, Pages 143–156 # # We are interested...
francisar/rds_manager
refs/heads/master
aliyun/api/rest/Ecs20140526ModifyEipAddressAttributeRequest.py
1
''' Created by auto_sdk on 2015.06.23 ''' from aliyun.api.base import RestApi class Ecs20140526ModifyEipAddressAttributeRequest(RestApi): def __init__(self,domain='ecs.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.AllocationId = None self.Bandwidth = None def getapiname(self): return 'ecs....
trunca/enigma2
refs/heads/6.5
lib/python/OPENDROID/MountManager.py
2
from boxbranding import getMachineBrand, getMachineName, getBoxType, getMachineBuild from os import system, rename, path, mkdir, remove, listdir, remove as os_remove from time import sleep import re from re import search from enigma import eTimer, getDesktop from Screens.ChoiceBox import ChoiceBox from Screens.I...
MarcosCommunity/odoo
refs/heads/marcos-8.0
addons/website_crm_partner_assign/__openerp__.py
322
{ 'name': 'Resellers', 'category': 'Website', 'website': 'https://www.odoo.com/page/website-builder', 'summary': 'Publish Your Channel of Resellers', 'version': '1.0', 'description': """ Publish and Assign Partner ========================== """, 'author': 'OpenERP SA', 'depends':...
DARKPOP/external_chromium_org
refs/heads/dark-5.1
chrome/common/extensions/docs/server2/permissions_data_source.py
41
# Copyright 2013 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. from itertools import ifilter from operator import itemgetter from data_source import DataSource from extensions_paths import PRIVATE_TEMPLATES from future ...
tempbottle/rethinkdb
refs/heads/next
test/changefeeds/squash_base.py
23
#!/usr/bin/env python # Copyright 2014-2015 RethinkDB, all rights reserved. import itertools, os, sys, time try: xrange except NameError: xrange = range sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common')) import rdb_unittest, utils # --- class SquashBase(rdb_unittest.RdbTestC...
macph/easement-curve
refs/heads/master
tests/tests_curve.py
1
# MIT License, copyright Ewan Macpherson, 2016; see LICENCE in root directory # Test script for the TrackSection class import math import os import sys import unittest sys.path.insert(0, os.path.abspath('..')) import ec.common import ec.coord import ec.section import ec.curve from tests.tests_common import CustomAsse...
beregond/pyhistory
refs/heads/master
pyhistory/file_config.py
1
from pathlib import Path from six.moves.configparser import ConfigParser, NoSectionError, NoOptionError from .utilities import find_file_across_parents FILE_TO_CHECK = 'setup.cfg' CONFIG_SECTION = 'pyhistory' def get_defaults_from_config_file_if_exists(file_to_check=FILE_TO_CHECK): try: config_file = fi...
niasand/learn_how_to_flask
refs/heads/master
blog/manage.py
1
# -*- coding: utf-8 -*- from flask_script import Manager, Server from app import app from app.models import BillRecord manager = Manager(app) manager.add_command("runserver",Server(host='0.0.0.0',port=9000,use_debugger=True)) @manager.command def save_todo(): todo = BillRecord(money="19.89",shop="amazon",content...
ujjwalwahi/odoo
refs/heads/8.0
addons/website_mail/__init__.py
1577
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
hbhzwj/imalse
refs/heads/master
tools/ns-allinone-3.14.1/pybindgen-0.15.0.809/pybindgen/cppattribute.py
5
""" Wraps C++ class instance/static attributes. """ from typehandlers.base import ForwardWrapperBase, ReverseWrapperBase from typehandlers import codesink import settings import utils class PyGetter(ForwardWrapperBase): """generates a getter, for use in a PyGetSetDef table""" def generate(self, code_sink): ...
AndrewMorris-scsu/classsuggestionapp
refs/heads/master
parse/parse.py
1
# data_file = "majorcourses (1).unl" # with open('fixed_input', 'w') as output: # output.write('{\n') # with open(data_file, 'r') as data: # for line in data.readlines(): # line = line.replace("\n", "") # elems = line.split("|") # class_id = '"{}"'.format(elems[0]) #...
youdonghai/intellij-community
refs/heads/master
python/testData/refactoring/extractmethod/DuplicateSingleLine.after.py
79
def bar(): a = foo() print a a = foo() print a def foo(): a = 1 return a
ShamblrTeam/Searcher
refs/heads/master
test_socket.py
1
import socket import json while True: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('localhost', 7776)) tag = str(raw_input('find word: ')) if tag == '': break # send the json request for a socket s.send(json.dumps({'query':tag})) # tell the other end of the so...
clumsy/intellij-community
refs/heads/master
python/testData/quickFixes/PyMakeMethodStaticQuickFixTest/emptyParam_after.py
249
__author__ = 'ktisha' class Child(Base): def __init__(self): super(Child, self).__init__() @staticmethod def f(): test = 1
TeamEOS/external_chromium_org_third_party_WebKit
refs/heads/lp5.1
Source/devtools/scripts/convert_svg_images_to_png.py
66
#!/usr/bin/env python # Copyright (c) 2014 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
serdimoa/vincenzoext
refs/heads/master
db_create.py
9
#!venv/bin/python from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO from app import db import os.path db.create_all() if not os.path.exists(SQLALCHEMY_MIGRATE_REPO): api.create(SQLALCHEMY_MIGRATE_REPO, 'database repository') api.version_cont...
azumimuo/family-xbmc-addon
refs/heads/master
script.module.youtube.dl/lib/youtube_dl/extractor/voicerepublic.py
53
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( ExtractorError, determine_ext, int_or_none, sanitized_Request, ) class VoiceRepublicIE(InfoExtractor): _VALID_URL = r'https?://v...
OpenTSDB/tcollector
refs/heads/master
collectors/etc/elasticsearch_conf.py
1
#!/usr/bin/env python # This file is part of tcollector. # Copyright (C) 2015 The tcollector Authors. # # This program 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 3 of the License, o...
Pakoach/Sick-Beard
refs/heads/master
cherrypy/_cperror.py
45
"""Error classes for CherryPy.""" from cgi import escape as _escape from sys import exc_info as _exc_info from traceback import format_exception as _format_exception from urlparse import urljoin as _urljoin from cherrypy.lib import httputil as _httputil class CherryPyException(Exception): pass class TimeoutErr...
balazssimon/ml-playground
refs/heads/master
udemy/Machine Learning A-Z/Part 2 - Regression/Section 4 - Simple Linear Regression/simple_linear_regression.py
1
# Simple Linear Regression # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, 1].values # Splitting the dataset into the Training set and Test set from sk...