repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
⌀
sheafferusa/erpnext
refs/heads/develop
erpnext/hr/doctype/leave_block_list/leave_block_list.py
45
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import frappe from erpnext.accounts.utils import validate_fiscal_year from frappe import _ from frapp...
ezigman/sftf
refs/heads/master
UserAgentBasicTestSuite/case503s.py
2
# # Copyright (C) 2004 SIPfoundry Inc. # Licensed by SIPfoundry under the GPL license. # # Copyright (C) 2004 SIP Forum # Licensed to SIPfoundry under a Contributor Agreement. # # # This file is part of SIP Forum User Agent Basic Test Suite which # belongs to the SIP Forum Test Framework. # # SIP Forum User Agent Basic...
feureau/Small-Scripts
refs/heads/master
Blender/Blender config/2.91/scripts/addons/ue2rigify/settings/tool_tips.py
1
# Copyright Epic Games, Inc. All Rights Reserved. # ---------- tool tips for the modes enumeration ---------- source_mode_tool_tip = "This mode is where you can see your original source rig" metarig_mode_tool_tip = ( "This mode is where you add or remove bones, edit bone positions, and edit the rigify bones types...
bijanebrahimi/boogi
refs/heads/master
boogi/core.py
1
# -*- coding: utf-8 -*- from weakref import ref from gui.main_window import MainWindow from gui.feed_item import FeedItem from gui.entry_item import EntryItem from libs.database import db_connect, db_select_feeds, db_select_entries, \ db_update_entries, db_update_feed, db_insert_feed, \ ...
dochang/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/cloudstack.py
125
# -*- coding: utf-8 -*- # Copyright (c) 2015 René Moser <mail@renemoser.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
grancier/linux-3.10.33-chromeos
refs/heads/master
tools/perf/scripts/python/check-perf-trace.py
11214
# perf script event handlers, generated by perf script -g python # (c) 2010, Tom Zanussi <tzanussi@gmail.com> # Licensed under the terms of the GNU GPL License version 2 # # This script tests basic functionality such as flag and symbol # strings, common_xxx() calls back into perf, begin, end, unhandled # events, etc. ...
m13253/pycurl-python3
refs/heads/master
tests/test_share.py
13
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # vi:ts=4:et # $Id: test_share.py,v 1.1 2006/06/13 19:04:44 kjetilja Exp $ import sys import pycurl import threading print >>sys.stderr, 'Testing', pycurl.version class Test(threading.Thread): def __init__(self, share): threading.Thread.__init__(self)...
40223125/40223125-2
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/site-packages/pygame/image.py
603
#!/usr/bin/env python '''Pygame module for image transfer. The image module contains functions for loading and saving pictures, as well as transferring Surfaces to formats usable by other packages. Note that there is no Image class; an image is loaded as a Surface object. The Surface class allows manipulation (drawi...
jeremiedecock/snippets
refs/heads/master
python/class_attributes.py
1
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org) # 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 witho...
h-mayorquin/time_series_basic
refs/heads/master
examples/one_dimensional_case.py
1
""" In this script we generated a one dimensional time series with the class using an exponentially decaying filter mixed with a periodic signal and studied its correlation. This was done in order to case-show an special case for Pawell. """ import numpy as np import matplotlib.pyplot as plt from signals.signal_class ...
geromueller/rpyc
refs/heads/master
rpyc/utils/server.py
8
""" rpyc plug-in server (threaded or forking) """ import sys import os import socket import time import threading import errno import logging try: import Queue except ImportError: import queue as Queue from rpyc.core import SocketStream, Channel, Connection from rpyc.utils.registry import UDPRegistryClient from...
liquidia/easyengine
refs/heads/master
tests/cli/4_test_stack_services_stop.py
9
from ee.utils import test from ee.cli.main import get_test_app class CliTestCaseStack(test.EETestCase): def test_ee_cli(self): self.app.setup() self.app.run() self.app.close() def test_ee_cli_stack_services_stop_nginx(self): self.app = get_test_app(argv=['stack', 'stop', '--n...
imwiththou/GoAgent
refs/heads/master
local/gevent-1.0rc2/build/lib.macosx-10.8-intel-2.7/gevent/monkey.py
4
# Copyright (c) 2009-2012 Denis Bilenko. See LICENSE for details. """Make the standard library cooperative.""" from __future__ import absolute_import import sys from sys import version_info __all__ = ['patch_all', 'patch_socket', 'patch_ssl', 'patch_os', 'patch_time', ...
mikefitz888/owtf
refs/heads/develop
framework/http/proxy/tor_manager.py
3
#!/usr/bin/env python #TOR manager module developed by Marios Kourtesis <name.surname@gmail.com> import commands import socket import time from multiprocessing import Process from framework.dependency_management.dependency_resolver import BaseComponent from framework.lib.general import cprint class TOR_manager(Base...
TheLazyHase/dragon_dice_simulator
refs/heads/master
business/dice/face/standard/magic.py
1
# -*- coding: utf-8 *-* # Copyright (c) 2013 Tisserant Pierre # # This file is part of Dragon dice simulator. # # Dragon dice simulator 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 ve...
erikrose/pip
refs/heads/develop
pip/_vendor/packaging/version.py
439
# Copyright 2014 Donald Stufft # # 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, so...
LumPenPacK/NetworkExtractionFromImages
refs/heads/master
win_build/nefi2_win_amd64_msvc_2015/site-packages/numpy/distutils/fcompiler/__init__.py
152
"""numpy.distutils.fcompiler Contains FCompiler, an abstract base class that defines the interface for the numpy.distutils Fortran compiler abstraction model. Terminology: To be consistent, where the term 'executable' is used, it means the single file, like 'gcc', that is executed, and should be a string. In contras...
agry/NGECore2
refs/heads/master
scripts/mobiles/spawnareas/dathomir_ns_stronghold_dyn_1.py
2
# Spawn Area file created with PSWG Planetary Spawn Tool import sys from java.util import Vector def addSpawnArea(core): dynamicGroups = Vector() dynamicGroups.add('dathomir_nightsister') core.spawnService.addDynamicSpawnArea(dynamicGroups, -4055, -81, 2300, 'dathomir') return
macosforge/ccs-calendarserver
refs/heads/master
txdav/common/datastore/query/filegenerator.py
1
## # Copyright (c) 2006-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
GunoH/intellij-community
refs/heads/master
python/testData/resolve/multiFile/simple/ImportedFile.py
83
def f(): pass
zstars/weblabdeusto
refs/heads/master
server/src/weblab/core/webclient/web/flask_app_builder.py
1
# from flask import Flask, request # from webclient.babel import Babel # # # def build_flask_app(): # flask_app = Flask(__name__) # flask_app.config["DEBUG"] = True # flask_app.config["SECRET_KEY"] = "SECRET" # # # Initialize internationalization code. # if Babel is None: # print "Not using ...
riggtravis/SINS
refs/heads/master
sins/views/participant.py
1
from pyramid.view import view_config from pyramid.view import view_defaults from pyramid.httpexceptions import HTTPFound, HTTPNotFound from ..models.meta import DBSession from ..models.user import User from ..models.services.user import UserRecordService from ..models.services.post import PostRecordService """ Partici...
pombreda/django-hotclub
refs/heads/master
libs/external_libs/docutils-0.4/test/functional/tests/compact_lists.py
6
# Source and destination file names. test_source = "compact_lists.txt" test_destination = "compact_lists.html" # Keyword parameters passed to publish_file. reader_name = "standalone" parser_name = "rst" writer_name = "html" # Settings #settings_overrides['key'] =
armaan/openstack-dashboard
refs/heads/master
openstack-dashboard/tools/install_venv.py
11
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 OpenStack, LLC # # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2....
dc3-plaso/plaso
refs/heads/master
tests/formatters/mac_document_versions.py
1
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Mac OS X appfirewall.log file event formatter.""" import unittest from plaso.formatters import mac_document_versions from tests.formatters import test_lib class MacDocumentVersionsFormatterTest(test_lib.EventFormatterTestCase): """Tests for the Mac OS X ...
Answers4AWS/backup-monkey
refs/heads/master
backup_monkey/__init__.py
3
# Copyright 2013 Answers for AWS LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
dcbdmb/example-code
refs/heads/master
attic/control/adder/coroadder0.py
7
""" Closing a generator raises ``GeneratorExit`` at the pending ``yield`` >>> adder = adder_coro() >>> next(adder) 0 >>> adder.send(10) 10 >>> adder.send(20) 30 >>> adder.send(30) 60 >>> adder.close() -> total: 60 terms: 3 average: 20.0 Other exceptions propagate to the ...
gavoski/audacity
refs/heads/master
lib-src/lv2/sratom/waflib/Tools/msvc.py
46
#! /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 os,sys,re,tempfile from waflib import Utils,Task,Logs,Options from waflib.Logs import debug,warn from waflib.TaskGen import after_method,feature from waflib.Configure i...
abramhindle/UnnaturalCodeFork
refs/heads/master
python/testdata/launchpad/lib/lp/registry/browser/distroseriesdifference.py
1
# Copyright 2010-2012 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """Browser views for DistroSeriesDifferences.""" __metaclass__ = type __all__ = [ 'CommentXHTMLRepresentation', 'DistroSeriesDifferenceView', ] from lazr.restful...
keedio/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/app_loading/not_installed/models.py
163
from django.db import models class NotInstalledModel(models.Model): pass class RelatedModel(models.Model): not_installed = models.ForeignKey(NotInstalledModel) class M2MRelatedModel(models.Model): not_installed = models.ManyToManyField(NotInstalledModel)
tobegit3hub/cinder_docker
refs/heads/master
cinder/volume/volume_types.py
13
# Copyright (c) 2011 Zadara Storage Inc. # Copyright (c) 2011 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2011 Ken Pepple # # Licensed under the Apache ...
Discounty/Discounty
refs/heads/development
client/node_modules/node-sass/node_modules/node-gyp/gyp/pylib/gyp/common.py
1292
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import with_statement import collections import errno import filecmp import os.path import re import tempfile import sys # A minimal memoizing d...
fgesora/odoo
refs/heads/8.0
addons/crm_project_issue/__init__.py
386
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
EDUlib/eTracesX
refs/heads/master
Translation_software/coursera_to_MOOCdb_piping/piping_scripts/queries/coursera/__init__.py
2
from books import * from content_sections import * from forums import * from forum_posts import * from forum_votes import * from indices import * from problems import * from submission_assessment_data import * from tests import * from tutorials import * from users import * from vars import * from wikis import * from wi...
elthariel/dff
refs/heads/debian
modules/builtins/fg.py
1
# DFF -- An Open Source Digital Forensics Framework # Copyright (C) 2009-2010 ArxSys # This program is free software, distributed under the terms of # the GNU General Public License Version 2. See the LICENSE file # at the top of the source tree. # # See http://www.digital-forensic.org for more information about this...
milin/django-qa
refs/heads/master
config/settings/__init__.py
14224
# -*- coding: utf-8 -*-
koehlma/pygrooveshark
refs/heads/master
doc/source/conf.py
2
# -*- coding: utf-8 -*- # # Python GTK Spellchecker documentation build configuration file, created by # sphinx-quickstart2 on Tue Apr 10 18:57:32 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenera...
danalec/dotfiles
refs/heads/master
sublime/.config/sublime-text-3/Packages/python-jinja2/all/jinja2/optimizer.py
1401
# -*- coding: utf-8 -*- """ jinja2.optimizer ~~~~~~~~~~~~~~~~ The jinja optimizer is currently trying to constant fold a few expressions and modify the AST in place so that it should be easier to evaluate it. Because the AST does not contain all the scoping information and the compiler has to ...
CODEiverse/SassyMQ-OpenSourceTools
refs/heads/master
PySassyMQ/SassyMQ/pika/adapters/twisted_connection.py
10
"""Using Pika with a Twisted reactor. Supports two methods of establishing the connection, using TwistedConnection or TwistedProtocolConnection. For details about each method, see the docstrings of the corresponding classes. The interfaces in this module are Deferred-based when possible. This means that the connectio...
blendit/crowd
refs/heads/master
test_classes.py
1
import numpy as np import shapely.geometry as S import math import blendit.GraphPLE as G import blendit.classes as C import blendit.geometric_tools as GT es = 2.23 ew = 1.26 ind1 = C.Individual(0, 0, 0, 5, 2, es, ew, 2, S.Point(40, 50)) ind2 = C.Individual(40, 50, 0, 5, 2, es, ew, 2, S.Point(0, 0)) graph = G.Graph(...
mmasaki/trove
refs/heads/master
trove/tests/tempest/tests/api/flavors/test_flavors.py
1
# Copyright 2014 OpenStack Foundation # 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 requ...
52ai/django-ccsds
refs/heads/master
tests/admin_scripts/management/commands/app_command.py
531
from django.core.management.base import AppCommand class Command(AppCommand): help = 'Test Application-based commands' requires_system_checks = False def handle_app_config(self, app_config, **options): print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items())))
EliotBerriot/django
refs/heads/master
django/conf/locale/sv/formats.py
504
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'H:i' DATETI...
DIVERSIFY-project/SMART-GH
refs/heads/master
sensor_processing/webservices.py
3
# stdlibs import datetime import jsonpickle import logging import urllib2 # third-party libs # our libs import summerlogger def call_nt_webservice(config_vals): logger = \ logging.getLogger('summer.webservices.call_nt_webservice') dirname = config_vals['dirname'] url = config...
dkloz/canvas-api-python
refs/heads/master
CourseCrawler.py
1
# __author__ = 'dimitrios' from __future__ import division import random from bs4 import BeautifulSoup from read import CanvasReader from utils.file_utilities import * from utils.plotting import * import utils.config as config from datetime import datetime from dateutil import tz class CourseCrawler(object): """ ...
mahak/ansible
refs/heads/devel
test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/lookup/noop.py
15
# (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ lookup: noop author: Ansible core team short_d...
mrunix/streambase
refs/heads/master
external/testing/gtest/test/gtest_throw_on_failure_test.py
2917
#!/usr/bin/env python # # Copyright 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...
ImEmJay/AlexaPi
refs/heads/imemjay
src/alexapi/config.py
1
from __future__ import print_function import os import sys __fileNames = [ os.path.join(os.path.realpath(__file__).rstrip(os.path.basename(__file__)), '..', 'config.yaml'), '/etc/opt/AlexaPi/config.yaml', ] filename = '' for fn in __fileNames: if os.path.isfile(fn): filename = fn break if filename == '': pri...
adamkh/kivy
refs/heads/master
kivy/uix/listview.py
26
''' List View =========== .. versionadded:: 1.5 .. warning:: This code is still experimental, and its API is subject to change in a future version. The :class:`~kivy.uix.listview.ListView` implements an :class:`~kivy.uix.abstractview.AbstractView` as a vertical, scrollable,pannable list clipped to the scrol...
DarKnight24/owtf
refs/heads/develop
plugins/auxiliary/se/Spear_Phishing@OWTF-ASEP-001.py
2
from framework.dependency_management.dependency_resolver import ServiceLocator DESCRIPTION = "Spear Phishing Testing plugin" def run(PluginInfo): Content = [] plugin_params = ServiceLocator.get_component("plugin_params") config = ServiceLocator.get_component("config") args = { 'Description'...
kenshay/ImageScript
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/raw/EGL/ARM/__init__.py
1729
"""OpenGL Extensions"""
grap/sale-workflow
refs/heads/8.0
__unported__/stock_picking_reorder_lines/__init__.py
16
# -*- coding: utf-8 -*- # # # Author: Alexandre Fayolle # Copyright 2013 Camptocamp SA # # 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 Free Software Foundation, either version 3 of the # Licens...
neavouli/yournextrepresentative
refs/heads/release-neavouli
elections/ar_elections_2015/lib.py
9
from __future__ import unicode_literals def shorten_post_label(post_label): return post_label
RatulGhosh/pybrain
refs/heads/master
pybrain/structure/modules/mixturedensity.py
25
# $Id$ __author__ = 'Martin Felder' from .neuronlayer import NeuronLayer from pybrain.tools.functions import safeExp class MixtureDensityLayer(NeuronLayer): """ Mixture of Gaussians output layer (Bishop 2006, Ch. 5.6) with diagonal covariance matrix. Assumes inbuf contains K*3 neurons, with the fir...
anbangleo/NlsdeWeb
refs/heads/master
Python-3.6.0/Lib/lib2to3/main.py
30
""" Main program for 2to3. """ from __future__ import with_statement, print_function import sys import os import difflib import logging import shutil import optparse from . import refactor def diff_texts(a, b, filename): """Return a unified diff of two strings.""" a = a.splitlines() b = b.splitlines() ...
ryfeus/lambda-packs
refs/heads/master
Tensorflow_OpenCV_Nightly/source/tensorflow/core/framework/tensor_slice_pb2.py
9
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/framework/tensor_slice.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.proto...
luistorresm/odoo
refs/heads/8.0
openerp/addons/base/res/__init__.py
384
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
JeromeRisselin/PRJ-medtec_sigproc
refs/heads/master
echopen-leaderboard/bootcamp/questions/models.py
6
from django.db import models from django.contrib.auth.models import User from bootcamp.activities.models import Activity import markdown class Question(models.Model): user = models.ForeignKey(User) title = models.CharField(max_length=255) description = models.TextField(max_length=2000) create_date = m...
AlexandreProenca/django-url-filter
refs/heads/master
tests/filtersets/__init__.py
52
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals
cooperative-computing-lab/cctools
refs/heads/master
work_queue/src/bindings/python3/PythonTask_example.py
1
#!/usr/bin/env python3 # copyright (C) 2021- The University of Notre Dame # This software is distributed under the GNU General Public License. # See the file COPYING for details. # Example on how to execute python code with a Work Queue task. # The class PythonTask allows users to execute python functions as Work Que...
dbbhattacharya/kitsune
refs/heads/master
vendor/packages/translate-toolkit/translate/search/indexing/__init__.py
6
# -*- coding: utf-8 -*- # # Copyright 2008 Zuza Software Foundation # # This file is part of translate. # # translate 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 ...
ProjectSWGCore/NGECore2
refs/heads/master
scripts/object/mobile/zabrak_male.py
85615
import sys def setup(core, object): return
sauloal/pycluster
refs/heads/master
pypy-1.9_64/lib-python/2.7/distutils/dir_util.py
106
"""distutils.dir_util Utility functions for manipulating directories and directory trees.""" __revision__ = "$Id$" import os import errno from distutils.errors import DistutilsFileError, DistutilsInternalError from distutils import log # cache for by mkpath() -- in addition to cheapening redundant calls, # eliminat...
whip-live/libterminus
refs/heads/devel
terminus/utils/time.py
1
""" Helper functions to compute milliseconds elapsed from POSIX epoch. We can convert a datetime instance or a timestamp in ISO format to the amount of milliseconds from POSIX epoch, and back from milliseconds to the datetime instance. """ from datetime import datetime, timedelta, timezone _epoch = datetime(1970, 1...
EntityFXCode/arsenalsuite
refs/heads/master
python/blur/examples/version.py
11
#!/usr/bin/python import re, sys versionPattern = "[vV]_?(\d\d?)[-_](\d\d?)" def parseVersion( filename ): return [int(i) for i in re.search(versionPattern,filename).groups()] def replaceVersion( filename, version, iteration ): match = re.search(versionPattern,filename) if len(match.groups()) == 2: return file...
CMLL/taiga-back
refs/heads/master
taiga/external_apps/migrations/0001_initial.py
5
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import taiga.external_apps.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operat...
zaenalarifin/openshot_jmd
refs/heads/master
openshot/classes/cli_render.py
1
# OpenShot Video Editor is a program that creates, modifies, and edits video files. # Copyright (C) 2009 Jonathan Thomas, TJ # # This file is part of OpenShot Video Editor (http://launchpad.net/openshot/). # # OpenShot Video Editor is free software: you can redistribute it and/or modify # it under the terms of the G...
ChrisGoedhart/Uforia
refs/heads/master
source/django/contrib/databrowse/plugins/objects.py
434
from django import http from django.contrib.databrowse.datastructures import EasyModel from django.contrib.databrowse.sites import DatabrowsePlugin from django.shortcuts import render_to_response import urlparse class ObjectDetailPlugin(DatabrowsePlugin): def model_view(self, request, model_databrowse, url): ...
boomsbloom/dtm-fmri
refs/heads/master
DTM/for_gensim/lib/python2.7/site-packages/scipy/interpolate/tests/test_bsplines.py
16
from __future__ import division, absolute_import, print_function import warnings import numpy as np from numpy.testing import (run_module_suite, TestCase, assert_equal, assert_allclose, assert_raises, assert_) from numpy.testing.decorators import knownfailureif from scipy.interpolate import (BSpline, BPoly, ...
andris210296/andris-projeto
refs/heads/master
backend/venv/lib/python2.7/site-packages/unidecode/x09d.py
252
data = ( 'Fou ', # 0x00 'Yiao ', # 0x01 'Jue ', # 0x02 'Jue ', # 0x03 'Pi ', # 0x04 'Huan ', # 0x05 'Zhen ', # 0x06 'Bao ', # 0x07 'Yan ', # 0x08 'Ya ', # 0x09 'Zheng ', # 0x0a 'Fang ', # 0x0b 'Feng ', # 0x0c 'Wen ', # 0x0d 'Ou ', # 0x0e 'Te ', # 0x0f 'Jia ', # 0x10 'N...
CentroGeo/geonode
refs/heads/master
geonode/documents/migrations/0031_auto_20201107_2241.py
6
# Generated by Django 2.2.16 on 2020-11-07 22:41 from django.db import migrations, models import uuid_upload_path.storage class Migration(migrations.Migration): dependencies = [ ('documents', '0030_auto_20200305_1520'), ] operations = [ migrations.AlterField( model_name='doc...
rizumu/deploymachine
refs/heads/master
kokki-cookbooks/inspircd/recipes/default.py
1
import os from kokki import Fail, File, Script def install_package(name, url, creates): filename = url.rsplit("/", 1)[-1] dirname = filename while dirname.rsplit(".", 1)[-1] in ("gz", "tar", "tgz", "bz2"): dirname = dirname.rsplit(".", 1)[0] fmt_dict = dict( name=name, url=url...
caisq/tensorflow
refs/heads/master
tensorflow/contrib/tpu/python/tpu/tpu_config_test.py
12
# 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...
StarKissed/starkissed-kernel-mecha
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Core.py
11088
# Core.py - Python extension for perf script, core functions # # Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com> # # This software may be distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. from collections import defaultdict def aut...
juditacs/morph-segmentation
refs/heads/master
scripts/lower.py
2
#!/usr/bin/env python3 from sys import stdin, stdout if __name__ == '__main__': for l in stdin: stdout.write(l.lower())
yaegashi/ansible-modules-extras
refs/heads/devel
monitoring/statusio_maintenance.py
24
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Benjamin Copeland (@bhcopeland) <ben@copeland.me.uk> # # 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 v...
Just-D/chromium-1
refs/heads/master
build/android/pylib/gtest/test_options.py
33
# 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. """Defines the GTestOptions named tuple.""" import collections GTestOptions = collections.namedtuple('GTestOptions', [ 'tool', 'gtest_filter', ...
gram526/VTK
refs/heads/master
ThirdParty/Twisted/twisted/trial/test/mockcustomsuite.py
59
# Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details """ Mock test module that contains a C{test_suite} method. L{runner.TestLoader} should load the tests from the C{test_suite}, not from the C{Foo} C{TestCase}. See {twisted.trial.test.test_loader.LoaderTest.test_loadModuleWith_test_suite}. """ ...
ChinaQuants/bokeh
refs/heads/master
examples/compat/mpl/lc_offsets.py
34
from matplotlib.collections import LineCollection import matplotlib.pyplot as plt import numpy as np from bokeh import mpl from bokeh.plotting import output_file, show # Simulate a series of ocean current profiles, successively # offset by 0.1 m/s so that they form what is sometimes called # a "waterfall" plot or a "...
pk400/catering
refs/heads/master
myvenv/lib/python3.4/site-packages/django/contrib/sitemaps/views.py
352
import datetime from calendar import timegm from functools import wraps from django.contrib.sites.shortcuts import get_current_site from django.core import urlresolvers from django.core.paginator import EmptyPage, PageNotAnInteger from django.http import Http404 from django.template.response import TemplateResponse fr...
marcwebbie/youtube-dl
refs/heads/master
youtube_dl/extractor/voxmedia.py
42
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_urllib_parse_unquote class VoxMediaIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?(?:theverge|vox|sbnation|eater|polygon|curbed|racked)\.com/(?:[^/]+/)*(?P<id>[^/?]+)' _TESTS = [{ ...
Pinecast/pinecast
refs/heads/master
podcasts/migrations/0019_podcastepisode_flair_tip_jar.py
3
# -*- coding: utf-8 -*- from __future__ import absolute_import # Generated by Django 1.9 on 2016-05-08 23:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('podcasts', '0018_remove_podcastepisode_description_flair...
aruizramon/alec_erpnext
refs/heads/master
erpnext/setup/doctype/terms_and_conditions/__init__.py
37694
from __future__ import unicode_literals
ximenesuk/openmicroscopy
refs/heads/develop
components/tools/OmeroPy/test/integration/test_repository.py
4
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Integration test focused on the Repository API Copyright 2009-2013 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt """ import platform import locale import time import pytest import test.integration.librar...
GenericStudent/home-assistant
refs/heads/dev
homeassistant/components/ipma/__init__.py
19
"""Component for the Portuguese weather service - IPMA.""" from homeassistant.core import Config, HomeAssistant from .config_flow import IpmaFlowHandler # noqa: F401 from .const import DOMAIN # noqa: F401 DEFAULT_NAME = "ipma" async def async_setup(hass: HomeAssistant, config: Config) -> bool: """Set up confi...
binarytemple/ansible
refs/heads/devel
lib/ansible/__init__.py
11
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an...
Yonnick/userinfuser
refs/heads/master
serverside/dao/widgets_dao.py
12
# Copyright (C) 2011, CloudCaptive # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed i...
vitan/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/view_tests/tests/test_static.py
34
from __future__ import absolute_import import mimetypes from os import path import unittest from django.conf.urls.static import static from django.http import HttpResponseNotModified from django.test import TestCase from django.test.utils import override_settings from django.utils.http import http_date from django.vi...
MyRobotLab/pyrobotlab
refs/heads/master
home/kwatters/harry/gestures/trackPoint.py
1
def trackPoint(): i01.headTracking.startLKTracking() i01.eyesTracking.startLKTracking() i01.setHeadVelocity(80, -1) sleep(1) fullspeed()
gangadhar-kadam/verve_test_frappe
refs/heads/v5.0
frappe/patches/v5_0/bookmarks_to_stars.py
4
from __future__ import unicode_literals import json import frappe import frappe.defaults from frappe.desk.star import _toggle_star def execute(): for user in frappe.get_all("User"): username = user["name"] bookmarks = frappe.db.get_default("_bookmarks", username) if not bookmarks: continue if isinstance(...
MechCoder/scikit-learn
refs/heads/master
sklearn/linear_model/tests/test_bayes.py
23
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # # License: BSD 3 clause import numpy as np from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_almos...
lekshmideepu/nest-simulator
refs/heads/master
extras/ConnPlotter/examples/connplotter_tutorial.py
5
# -*- coding: utf-8 -*- # # connplotter_tutorial.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 Li...
kikusu/chainer
refs/heads/master
chainer/functions/math/batch_l2_norm_squared.py
4
import numpy from chainer import cuda from chainer import function from chainer.utils import array from chainer.utils import type_check class BatchL2NormSquared(function.Function): def check_type_forward(self, in_types): type_check.expect(in_types.size() == 1) x_type, = in_types type_ch...
plaes/libsigrokdecode
refs/heads/master
decoders/jtag_stm32/pd.py
2
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## 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 Li...
klahnakoski/cloc
refs/heads/master
cloc/util/thread/multiprocess.py
1
# encoding: utf-8 # # 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/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import unicode_literals from __fu...
theflofly/tensorflow
refs/heads/master
tensorflow/python/distribute/input_ops.py
7
# 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...
75651/kbengine_cloud
refs/heads/master
kbe/src/lib/python/Lib/ipaddress.py
69
# Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. """A fast, lightweight IPv4/IPv6 manipulation library in Python. This library is used to create/poke/manipulate IPv4 and IPv6 addresses and networks. """ __version__ = '1.0' import functools IPV4LENGTH = 32 IPV6LENGTH = 128 class Add...
arth-co/saleor
refs/heads/master
saleor/api/serializers.py
1
__author__ = 'hkalra' from rest_framework import serializers from django_prices.models import PriceField from saleor.product.models.base import Product, Category, ProductVariant from rest_framework import permissions class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category ...
mchateloin/dude-wheres-my-bike
refs/heads/master
src/project/urls.py
41
from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() # By default, static assets will be served from Django. It is recommended that # you us...
savoirfairelinux/OpenUpgrade
refs/heads/master
addons/l10n_be_coda/wizard/account_coda_import.py
16
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2012 Noviat nv/sa (www.noviat.be). All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under ...