repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
bitcrystal/volatility
refs/heads/master
volatility/plugins/mac/pid_hash_table.py
46
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility 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 o...
takluyver/xray
refs/heads/master
xray/backends/__init__.py
1
"""Backend objects for saving and loading data DataStores provide a uniform interface for saving and loading data in different formats. They should not be used directly, but rather through Dataset objects. """ from memory import InMemoryDataStore from netCDF4_ import NetCDF4DataStore from pydap_ import PydapDataStore ...
jjinux/party-playlist-picker
refs/heads/master
third-party/gdata/apps/migration/__init__.py
168
#!/usr/bin/python # # Copyright (C) 2008 Google # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
shuggiefisher/potato
refs/heads/master
django/contrib/localflavor/is_/is_postalcodes.py
438
# -*- coding: utf-8 -*- IS_POSTALCODES = ( ('101', u'101 Reykjavík'), ('103', u'103 Reykjavík'), ('104', u'104 Reykjavík'), ('105', u'105 Reykjavík'), ('107', u'107 Reykjavík'), ('108', u'108 Reykjavík'), ('109', u'109 Reykjavík'), ('110', u'110 Reykjavík'), ('111', u'111 Reykjavík'...
ressu/SickGear
refs/heads/master
lib/hachoir_parser/image/bmp.py
90
""" Microsoft Bitmap picture parser. - file extension: ".bmp" Author: Victor Stinner Creation: 16 december 2005 """ from lib.hachoir_parser import Parser from lib.hachoir_core.field import (FieldSet, UInt8, UInt16, UInt32, Bits, String, RawBytes, Enum, PaddingBytes, NullBytes, createPaddingField) from lib...
sauloal/cnidaria
refs/heads/master
scripts/venv/lib/python2.7/site-packages/numpy/distutils/intelccompiler.py
59
from __future__ import division, absolute_import, print_function from distutils.unixccompiler import UnixCCompiler from numpy.distutils.exec_command import find_executable class IntelCCompiler(UnixCCompiler): """ A modified Intel compiler compatible with an gcc built Python.""" compiler_type = 'intel' cc_...
xiandiancloud/ji
refs/heads/master
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
5
""" Methods for exporting course data to XML """ import logging import lxml.etree from xblock.fields import Scope from xmodule.contentstore.content import StaticContent from xmodule.exceptions import NotFoundError from xmodule.modulestore import EdxJSONEncoder, ModuleStoreEnum from xmodule.modulestore.inheritance impo...
cobalys/django
refs/heads/master
tests/regressiontests/signals_regress/models.py
43
from django.db import models class Author(models.Model): name = models.CharField(max_length=20) def __unicode__(self): return self.name class Book(models.Model): name = models.CharField(max_length=20) authors = models.ManyToManyField(Author) def __unicode__(self): return self.na...
googledatalab/pydatalab
refs/heads/master
solutionbox/ml_workbench/test_tensorflow/test_transform.py
2
from __future__ import absolute_import from __future__ import print_function import json import os import pandas as pd from PIL import Image import shutil from six.moves.urllib.request import urlopen import subprocess import tempfile import unittest import uuid import tensorflow as tf from tensorflow.python.lib.io im...
jenalgit/django
refs/heads/master
django/db/models/sql/query.py
32
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
Steven-AA/all2wechat
refs/heads/master
sendmessage.py
1
import json import sys import time from sys import platform from login import s, _print dic = {} def init(): global dic try: with open("./logininfo.log", 'r') as f: _print('login info time:\t' + f.readline()[:-1]) dic = f.readline() dic = eval(d...
davidyezsetz/kuma
refs/heads/master
kuma/search/management/commands/__init__.py
12133432
AmadeusITGroup/JumpSSH
refs/heads/master
tests/__init__.py
12133432
kcpawan/django
refs/heads/master
django/contrib/gis/db/backends/spatialite/__init__.py
12133432
akrherz/iem
refs/heads/main
scripts/ingestors/cocorahs/cocorahs_data_ingest.py
1
""" Process CoCoRaHS Stations!""" import sys import datetime import pytz import requests from pyiem.observation import Observation from pyiem.reference import TRACE_VALUE from pyiem.util import get_dbconn, logger LOG = logger() def safeP(v): """hack""" v = v.strip() if v == "T": return TRACE_VAL...
ramusus/django-vkontakte-users
refs/heads/master
vkontakte_users/tasks.py
2
from celery.task import Task from vkontakte_users.models import User class VkontateUsersFetchUsers(Task): def run(self, ids, only_expired, *args, **kwargs): return User.remote.fetch(ids=ids, only_expired=only_expired)
jonathonwalz/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovirt/ovirt_storage_domains_facts.py
45
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, Inc. # # 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 #...
pybrain/pybrain
refs/heads/master
pybrain/rl/environments/simplerace/simplecontroller.py
25
from __future__ import print_function __author__ = 'Julian Togelius, julian@idsia.ch' from scipy import array from pybrain.rl.agents.agent import Agent class SimpleController(Agent): def integrateObservation(self, obs): self.speed = obs[0] self.angleToCurrentWP = obs[1] self.distanceTo...
adjustive/dapp
refs/heads/devui
thirdparty/temoa/db_io/pformat_results.py
1
""" Tools for Energy Model Optimization and Analysis (Temoa): An open source framework for energy systems optimization modeling Copyright (C) 2015, NC State University 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 S...
anbangleo/NlsdeWeb
refs/heads/master
Python-3.6.0/Lib/test/test_weakref.py
1
import gc import sys import unittest import collections import weakref import operator import contextlib import copy from test import support from test.support import script_helper # Used in ReferencesTestCase.test_ref_created_during_del() . ref_from_del = None # Used by FinalizeTestCase as a global that may be repl...
mlperf/inference_results_v0.7
refs/heads/master
closed/Atos/code/rnnt/tensorrt/preprocessing/parts/text/numbers.py
12
# Copyright (c) 2017 Keith Ito # Copyright (c) 2020, NVIDIA CORPORATION. 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/LICE...
mbayon/TFG-MachineLearning
refs/heads/master
vbig/lib/python2.7/site-packages/pandas/tests/indexes/period/test_partial_slicing.py
19
import pytest import numpy as np import pandas as pd from pandas.util import testing as tm from pandas import (Series, period_range, DatetimeIndex, PeriodIndex, DataFrame, _np_version_under1p12, Period) class TestPeriodIndex(object): def setup_method(self, method): pass def tes...
ahmedaljazzar/edx-platform
refs/heads/master
lms/djangoapps/email_marketing/migrations/0007_auto_20170809_0653.py
20
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('email_marketing', '0006_auto_20170711_0615'), ] operations = [ migrations.AddField( model_name='emailmarketingco...
uglyboxer/linear_neuron
refs/heads/master
net-p3/lib/python3.5/site-packages/scipy/io/tests/test_idl.py
18
from __future__ import division, print_function, absolute_import from os import path from warnings import catch_warnings DATA_PATH = path.join(path.dirname(__file__), 'data') import numpy as np from numpy.testing import (assert_equal, assert_array_equal, run_module_suite, assert_) from scipy.io.idl import reads...
sergei-maertens/django
refs/heads/master
tests/gis_tests/rasterapp/test_rasterfield.py
8
import json from django.contrib.gis.db.models.lookups import ( DistanceLookupBase, gis_lookups, ) from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.geos import GEOSGeometry from django.contrib.gis.measure import D from django.contrib.gis.shortcuts import numpy from django.db.models import Q from...
ojii/djangocms-text-ckeditor
refs/heads/master
djangocms_text_ckeditor/migrations/0001_initial.py
2
# -*- 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 model 'Text' db.create_table('cmsplugin_text', ( ('cmsplugin_ptr', self.gf('django.db.m...
Jobava/pootle
refs/heads/master
pootle/apps/pootle_profile/__init__.py
12133432
alexallah/django
refs/heads/master
tests/schema/__init__.py
12133432
Liyier/learning_log
refs/heads/master
env/Lib/site-packages/django/contrib/gis/db/backends/mysql/introspection.py
700
from MySQLdb.constants import FIELD_TYPE from django.contrib.gis.gdal import OGRGeomType from django.db.backends.mysql.introspection import DatabaseIntrospection class MySQLIntrospection(DatabaseIntrospection): # Updating the data_types_reverse dictionary with the appropriate # type for Geometry fields. ...
lilsweetcaligula/Online-Judges
refs/heads/master
leetcode/easy/ugly_number/py/solution.py
1
class Solution(object): def isUgly(self, num): """ :type num: int :rtype: bool """ if num < 1: return False bad_factors = (2, 3, 5, ) stack = [num] while len(stack) > 0: x = stack.pop() if x ...
wimac/home
refs/heads/master
Dropbox/skel/bin/sick-beard/lib/hachoir_parser/image/photoshop_metadata.py
90
from lib.hachoir_core.field import (FieldSet, ParserError, UInt8, UInt16, UInt32, String, CString, PascalString8, NullBytes, RawBytes) from lib.hachoir_core.text_handler import textHandler, hexadecimal from lib.hachoir_core.tools import alignValue, createDict from lib.hachoir_parser.image.iptc import IPTC f...
dendisuhubdy/tensorflow
refs/heads/master
tensorflow/python/keras/layers/recurrent.py
3
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
jwkanggist/EveryBodyTensorFlow
refs/heads/master
tf_basic/ex_runTFGraphLoadFrompb.py
1
#-*- coding: utf-8 -*- """ #----------------------------------------------------------------- filename: ex_runTFGraphLoadFrompb.py objectives: - 1) Load the TF graph structure from a ".pb" file ref: http://solarisailab.com/archives/1422 Written by Jaewook Kang @ 2017 Dec. #----------------------...
jordanelizaga/uaAiClub
refs/heads/master
contact/migrations/__init__.py
12133432
memtoko/django
refs/heads/master
tests/test_discovery_sample/__init__.py
12133432
bgxavier/neutron
refs/heads/master
neutron/plugins/ibm/__init__.py
12133432
cntnboys/410Lab6
refs/heads/master
build/django/tests/raw_query/__init__.py
12133432
vvangelovski/django-lamson
refs/heads/master
django_lamson/tests.py
6666
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
rgerkin/neuroConstruct
refs/heads/master
lib/jython/Lib/test/test_multiprocessing.py
12
#!/usr/bin/env python # # Unit tests for the multiprocessing package # import unittest import Queue import time import sys import os import gc import signal import array import socket import random import logging import errno import test.script_helper from test import test_support from StringIO import StringIO _multi...
seem-sky/kbengine
refs/heads/master
kbe/src/lib/python/Lib/test/test_json/test_default.py
132
from test.test_json import PyTest, CTest class TestDefault: def test_default(self): self.assertEqual( self.dumps(type, default=repr), self.dumps(repr(type))) class TestPyDefault(TestDefault, PyTest): pass class TestCDefault(TestDefault, CTest): pass
ajoaoff/django
refs/heads/master
django/middleware/clickjacking.py
284
""" Clickjacking Protection Middleware. This module provides a middleware that implements protection against a malicious site loading resources from your site in a hidden frame. """ from django.conf import settings class XFrameOptionsMiddleware(object): """ Middleware that sets the X-Frame-Options HTTP head...
MalloyPower/parsing-python
refs/heads/master
front-end/testsuite-python-lib/Python-3.3.0/Lib/test/test_fileio.py
3
# Adapted from test_file.py by Daniel Stutzbach import sys import os import io import errno import unittest from array import array from weakref import proxy from functools import wraps from test.support import TESTFN, check_warnings, run_unittest, make_bad_fd from _io import FileIO as _FileIO class AutoFileTests(u...
ovresko/erpnext
refs/heads/master
erpnext/crm/report/prospects_engaged_but_not_converted/__init__.py
12133432
ox-it/humfrey
refs/heads/master
humfrey/utils/templatetags/__init__.py
12133432
loveshell/sleepy-puppy
refs/heads/master
sleepypuppy/upload/__init__.py
12133432
liddiard/skry
refs/heads/master
core/migrations/__init__.py
12133432
tobegit3hub/glance_docker
refs/heads/master
glance/api/v3/__init__.py
12133432
niklaskorz/pyglet
refs/heads/master
contrib/layout/tests/layout/__init__.py
12133432
Tennyson53/magnum
refs/heads/master
magnum/cmd/template_manage.py
14
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
dydek/django
refs/heads/master
django/core/handlers/base.py
12
from __future__ import unicode_literals import logging import sys import types import warnings from django import http from django.conf import settings from django.core import signals, urlresolvers from django.core.exceptions import ( MiddlewareNotUsed, PermissionDenied, SuspiciousOperation, ) from django.db impo...
doomsterinc/odoo
refs/heads/8.0
addons/website/tests/test_ui.py
342
import openerp.tests class TestUi(openerp.tests.HttpCase): def test_01_public_homepage(self): self.phantom_js("/", "console.log('ok')", "openerp.website.snippet") def test_03_admin_homepage(self): self.phantom_js("/", "console.log('ok')", "openerp.website.editor", login='admin') def test...
msebire/intellij-community
refs/heads/master
python/testData/formatter/chainedMethodCallsInParentheses.py
42
some_var = (Foo .bar() .baz())
southpawtech/TACTIC-DEV
refs/heads/master
src/pyasm/common/common.py
1
########################################################### # # Copyright (c) 2005, Southpaw Technology # All Rights Reserved # # PROPRIETARY INFORMATION. This software is proprietary to # Southpaw Technology, and is not to be reproduced, transmitted, # or disclosed in any way without written permi...
AMObox/teammaniac
refs/heads/master
plugin.video.PsychoTV/resources/lib/libraries/f4mproxy/utils/rc4.py
149
# Author: Trevor Perrin # See the LICENSE file for legal information regarding use of this file. """Abstract class for RC4.""" class RC4(object): def __init__(self, keyBytes, implementation): if len(keyBytes) < 16 or len(keyBytes) > 256: raise ValueError() self.isBlockCipher = False ...
nikesh-mahalka/nova
refs/heads/master
nova/tests/unit/keymgr/test_not_implemented_key_mgr.py
79
# Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory # 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/...
simonwydooghe/ansible
refs/heads/devel
lib/ansible/modules/network/fortios/fortios_system_probe_response.py
7
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
pdanelson/bondora-auto-investor
refs/heads/master
parameter_tuning.py
1
from datetime import datetime import pandas import numpy import xgboost from sklearn.model_selection import GridSearchCV from sklearn.externals import joblib from loan_classifier.data_transformer import DataTransformer # Preprocess data data = pandas.read_csv("LoanData.csv") data.LoanDate = data.LoanDate.astype("dat...
Djlavoy/scrapy
refs/heads/master
scrapy/extensions/closespider.py
150
"""CloseSpider is an extension that forces spiders to be closed after certain conditions are met. See documentation in docs/topics/extensions.rst """ from collections import defaultdict from twisted.internet import reactor from scrapy import signals class CloseSpider(object): def __init__(self, crawler): ...
fronti90/kernel_lge_geefhd
refs/heads/master
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
ahuarte47/QGIS
refs/heads/master
tests/src/python/test_provider_ogr_gpkg.py
4
# -*- coding: utf-8 -*- """QGIS Unit tests for the OGR/GPKG provider. .. note:: 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....
PopCap/GameIdea
refs/heads/master
Engine/Source/ThirdParty/HTML5/emsdk/Win64/python/2.7.5.3_64bit/Lib/lib-tk/Tix.py
44
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # # $Id$ # # Tix.py -- Tix widget wrappers. # # For Tix, see http://tix.sourceforge.net # # - Sudhir Shenoy (sshenoy@gol.com), Dec. 1995. # based on an idea of Jean-Marc Lugrin (lugrin@ms.com) # # NOTE: In order to minimi...
sahmed95/sympy
refs/heads/master
sympy/matrices/tests/test_densearith.py
80
from sympy.matrices.densetools import eye from sympy.matrices.densearith import add, sub, mulmatmat, mulmatscaler from sympy import ZZ def test_add(): a = [[ZZ(3), ZZ(7), ZZ(4)], [ZZ(2), ZZ(4), ZZ(5)], [ZZ(6), ZZ(2), ZZ(3)]] b = [[ZZ(5), ZZ(4), ZZ(9)], [ZZ(3), ZZ(7), ZZ(1)], [ZZ(12), ZZ(13), ZZ(14)]] c = ...
webgeodatavore/pyqgis-samples
refs/heads/master
gui/qgis-sample-QgsDataDefinedWidthDialog.py
12133432
jakesen/djangosqladmin
refs/heads/master
djangosqladmin/databases/migrations/__init__.py
12133432
simbs/edx-platform
refs/heads/master
common/djangoapps/util/tests/__init__.py
12133432
cetic/ansible
refs/heads/devel
test/units/mock/__init__.py
12133432
glongo/suricata
refs/heads/master
python/suricata/ctl/__init__.py
12133432
rlugojr/django
refs/heads/master
tests/many_to_one/__init__.py
12133432
mvcsantos/QGIS
refs/heads/master
python/plugins/processing/algs/lidar/lastools/lastilePro.py
9
# -*- coding: utf-8 -*- """ *************************************************************************** lastilePro.py --------------------- Date : April 2014 Copyright : (C) 2014 by Martin Isenburg Email : martin near rapidlasso point com ******************...
acsone/social
refs/heads/8.0
mail_optional_autofollow/tests/test_mail_optional_autofollow.py
2
# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp.tests import common class TestAttachExistingAttachment(common.TransactionCase): def setUp(self): super(TestAttachExistingAttachment, self).setUp() ...
CLVsol/oehealth
refs/heads/master
oehealth_family/oehealth_annotation.py
1
# -*- encoding: utf-8 -*- ################################################################################ # # # Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol # # ...
openhatch/oh-mainline
refs/heads/master
vendor/packages/Django/django/contrib/flatpages/tests/forms.py
113
from __future__ import unicode_literals from django.conf import settings from django.contrib.flatpages.forms import FlatpageForm from django.contrib.flatpages.models import FlatPage from django.test import TestCase from django.test.utils import override_settings from django.utils import translation @override_settings...
ns950/calibre
refs/heads/master
src/calibre/gui2/preferences/emailp.py
14
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import textwrap from PyQt5.Qt import QAbstractTableModel, QFont, Qt from calibre.gui2.preferences import ConfigWidgetBa...
NeCTAR-RC/ceilometer
refs/heads/nectar/icehouse
ceilometer/tests/db.py
1
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # Copyright © 2013 eNovance # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # Julien Danjou <julien@danjou.info> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in com...
nishadi/product-private-paas
refs/heads/master
components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/domain/mapping/__init__.py
76
# 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...
SirDavidLudwig/KattisSolutions
refs/heads/master
problems/carrots/carrots.py
1
import sys print(sys.stdin.readline().split(" ")[1])
flynx/pli
refs/heads/master
pli/tags/utils.py
1
#======================================================================= __version__ = '''0.0.01''' __sub_version__ = '''20071106153539''' __copyright__ = '''(c) Alex A. Naanou 2003''' #----------------------------------------------------------------------- #----------------------------------------------------------...
e-koch/canfar_scripts
refs/heads/master
EVLA_pipeline1.3.0/EVLA_pipeline_lines.py
2
###################################################################### # # Copyright (C) 2013 # Associated Universities, Inc. Washington DC, USA, # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published by # the Free Software Fo...
alexandre/quokka
refs/heads/development
quokka/modules/posts/admin.py
14
# coding : utf -8 from quokka import admin from quokka.core.admin.models import BaseContentAdmin from quokka.core.widgets import TextEditor, PrepopulatedText from .models import Post from quokka.utils.translation import _l class PostAdmin(BaseContentAdmin): column_searchable_list = ('title', 'body', 'summary') ...
gitcoinco/web
refs/heads/master
app/compliance/management/commands/__init__.py
12133432
saurabh6790/frappe
refs/heads/develop
frappe/patches/v8_0/__init__.py
12133432
BiznetGIO/horizon
refs/heads/stable/pike-gio
openstack_dashboard/test/integration_tests/pages/admin/__init__.py
12133432
Arpaso/django-model-admin-helper
refs/heads/master
setup.py
1
# -*- coding: utf-8 -*- """ Configuration file used by setuptools. It creates 'egg', install all dependencies. """ import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() #Dependencies - python eggs install_requires = [ 'se...
mrquim/mrquimrepo
refs/heads/master
repo/script.module.covenant/lib/resources/lib/sources/pl/filiser.py
7
# -*- coding: utf-8 -*- ''' Covenant Add-on Copyright (C) 2017 homik 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 ...
confirm/ansibleci
refs/heads/develop
ansibleci/helper.py
1
# -*- coding: utf-8 -*- # # Copyright (c) 2015 confirm IT solutions # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
LearnEra/LearnEraPlaftform
refs/heads/master
lms/djangoapps/courseware/tests/test_masquerade.py
22
""" Unit tests for masquerade Based on (and depends on) unit tests for courseware. Notes for running by hand: ./manage.py lms --settings test test lms/djangoapps/courseware """ import json from django.test.utils import override_settings from django.core.urlresolvers import reverse from courseware.tests.factories ...
geraldoandradee/pytest
refs/heads/master
_pytest/assertion/oldinterpret.py
6
import py import sys, inspect from compiler import parse, ast, pycodegen from _pytest.assertion.util import format_explanation, BuiltinAssertionError passthroughex = py.builtin._sysex class Failure: def __init__(self, node): self.exc, self.value, self.tb = sys.exc_info() self.node = node class Vi...
lucafavatella/intellij-community
refs/heads/cli-wip
python/helpers/pycharm/nose_helper/__init__.py
85
from nose_helper.suite import ContextSuite from nose_helper.loader import TestLoader
doot/CouchPotatoServer
refs/heads/master
libs/guessit/transfo/guess_weak_episodes_rexps.py
94
#!/usr/bin/env python # -*- coding: utf-8 -*- # # GuessIt - A library for guessing information from filenames # Copyright (c) 2012 Nicolas Wack <wackou@gmail.com> # # GuessIt is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free ...
stweil/documentation-generator
refs/heads/master
_scripts/cfdoc_environment.py
2
# The MIT License (MIT) # # Copyright (c) 2013 CFEngine AS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
JorgeCoock/django
refs/heads/master
tests/reserved_names/__init__.py
12133432
kutuhal/oracle-r12-accounting
refs/heads/master
lib/django/conf/locale/az/__init__.py
12133432
simkimsia/learn-django-17
refs/heads/master
weasyprint_site/reports/migrations/__init__.py
12133432
noslenfa/tdjangorest
refs/heads/master
uw/lib/python2.7/site-packages/IPython/utils/__init__.py
12133432
lordB8r/polls
refs/heads/master
ENV/lib/python2.7/site-packages/django/contrib/sitemaps/tests/generic.py
214
from __future__ import unicode_literals from django.test.utils import override_settings from .base import TestModel, SitemapTestsBase @override_settings(ABSOLUTE_URL_OVERRIDES={}) class GenericViewsSitemapTests(SitemapTestsBase): def test_generic_sitemap(self): "A minimal generic sitemap can be rendere...
mahak/cinder
refs/heads/master
cinder/api/schemas/volume_types.py
2
# Copyright 2017 NTT DATA # 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 appli...
stafur/pyTRUST
refs/heads/master
pycoin/pycoin/ecdsa/secp256k1.py
32
from .ellipticcurve import CurveFp, Point # Certicom secp256-k1 _a = 0x0000000000000000000000000000000000000000000000000000000000000000 _b = 0x0000000000000000000000000000000000000000000000000000000000000007 _p = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f _Gx = 0x79be667ef9dcbbac55a06295ce87...
renzhn/Wox
refs/heads/master
PythonHome/Lib/site-packages/_markerlib/__init__.py
1008
try: import ast from _markerlib.markers import default_environment, compile, interpret except ImportError: if 'ast' in globals(): raise def default_environment(): return {} def compile(marker): def marker_fn(environment=None, override=None): # 'empty markers are T...
TeamEOS/external_chromium_org
refs/heads/lp5.0
net/tools/testserver/asn1.py
180
# 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. # This file implements very minimal ASN.1, DER serialization. import types def ToDER(obj): '''ToDER converts the given object into DER encoding''' ...
matthewlane/mesa
refs/heads/master
statuses/models.py
1
import uuid from django.db import models class Status(models.Model): text = models.CharField(max_length=160) created_at = models.DateTimeField(auto_now_add=True) uuid = models.UUIDField(default=uuid.uuid4) def __unicode__(self): return self.text class Meta: ordering = ['-created_a...