repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
CyanogenMod/android_kernel_htc_msm8960
refs/heads/cm-14.1
scripts/gcc-wrapper.py
234
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2011-2012, The Linux Foundation. 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 th...
pylixm/sae-django-demo
refs/heads/master
django1.7-sae/site-packages/django/conf/locale/vi/formats.py
83
# -*- 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 = r'\N\gà\y d \t\há\n\g n \nă\m Y' T...
analogue/mythbox
refs/heads/master
resources/lib/mysql-connector-python/metasetupinfo.py
2
# MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptio...
ArcticaProject/vcxsrv
refs/heads/release/1.17.0.0-x
freetype/src/tools/docmaker/docmaker.py
146
#!/usr/bin/env python # # docmaker.py # # Convert source code markup to HTML documentation. # # Copyright 2002, 2004, 2008, 2013, 2014 by # David Turner. # # This file is part of the FreeType project, and may only be used, # modified, and distributed under the terms of the FreeType project # license, LICENSE.T...
JioCloud/nova_test_latest
refs/heads/master
nova/virt/volumeutils.py
10
# Copyright 2014 Hewlett-Packard Development Company, L.P. # 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...
shiblon/pytour
refs/heads/master
static/js/pypyjs/pypy-nojit.js-0.3.1/lib/modules/encodings/utf_16_le.py
860
""" Python 'utf-16-le' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import codecs ### Codec APIs encode = codecs.utf_16_le_encode def decode(input, errors='strict'): return codecs.utf_16_le_decode(input, errors, True) class IncrementalEncod...
epssy/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/defer/models.py
94
""" Tests for defer() and only(). """ from django.db import models from django.utils.encoding import python_2_unicode_compatible class Secondary(models.Model): first = models.CharField(max_length=50) second = models.CharField(max_length=50) @python_2_unicode_compatible class Primary(models.Model): name ...
ahb0327/intellij-community
refs/heads/master
python/testData/intentions/afterReplaceMethod.py
73
a = input()
UO-CAES/paparazzi
refs/heads/master
sw/tools/calibration/calibration_utils.py
5
# Copyright (C) 2010 Antoine Drouin # # This file is part of Paparazzi. # # Paparazzi 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, or (at your option) # any later version. # # Paparazzi ...
BT-csanchez/hr
refs/heads/8.0
__unported__/hr_simplify/__init__.py
22
# -*- coding:utf-8 -*- # # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # 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 published # by the Free Software Foundation...
sekikn/ambari
refs/heads/trunk
ambari-common/src/main/python/resource_management/core/resources/zkmigrator.py
5
#!/usr/bin/env python """ 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");...
bartekjagiello/inteygrate_flaskapp
refs/heads/master
build/lib/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_remove.py
61
from yowsup.structs import ProtocolEntity, ProtocolTreeNode from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity class RemoveParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity): ''' <iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}"> <remove> <partici...
UdK-VPT/Open_eQuarter
refs/heads/master
mole/stat_corr/window_wall_ratio_west_AVG_by_building_age_correlation.py
1
# OeQ autogenerated correlation for 'Window/Wall Ratio West in Correlation to the Building Age' import math import numpy as np import oeqCorrelation as oeq def get(*xin): # OeQ autogenerated correlation for 'Window to Wall Ratio in Western Direction' A_WIN_W_BY_AW= oeq.correlation( const= -11011.4956177, ...
wemanuel/smry
refs/heads/master
server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/bigtable/commands/clusters/list.py
2
# Copyright 2015 Google Inc. All Rights Reserved. """bigtable clusters list command.""" from googlecloudsdk.bigtable.lib import util from googlecloudsdk.calliope import base from googlecloudsdk.core import log from googlecloudsdk.core.console import console_io as io class ListClusters(base.Command): """List exist...
itnihao/oneinstack
refs/heads/master
include/get_ipaddr_state.py
8
#!/usr/bin/env python #coding:utf-8 try: import sys,urllib2 apiurl = "http://ip.taobao.com/service/getIpInfo.php?ip=%s" % sys.argv[1] content = urllib2.urlopen(apiurl).read() data = eval(content)['data'] code = eval(content)['code'] if code == 0: print data['country'] else: ...
ws29jung/WATT
refs/heads/master
tools/WebIDLBinder/third_party/ply/test/testlex.py
62
# testlex.py import unittest try: import StringIO except ImportError: import io as StringIO import sys import os import imp import warnings sys.path.insert(0,"..") sys.tracebacklimit = 0 import ply.lex def make_pymodule_path(filename): path = os.path.dirname(filename) file = os.path.basename(filena...
tomlof/scikit-learn
refs/heads/master
sklearn/linear_model/tests/test_ransac.py
17
from scipy import sparse import numpy as np from scipy import sparse from numpy.testing import assert_equal, assert_raises from numpy.testing import assert_array_almost_equal from numpy.testing import assert_array_equal from sklearn.utils import check_random_state from sklearn.utils.testing import assert_less from s...
lorenzolince/MyProject
refs/heads/master
MyProject/MyProject/urls.py
1
from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.conf import settings from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^...
renzon/fatec-script-2
refs/heads/master
backend/apps/book_app/__init__.py
12133432
akshaynagpal/w2n
refs/heads/master
word2number/__init__.py
12133432
throwable-one/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/tests/modeltests/str/__init__.py
12133432
sasukeh/neutron
refs/heads/master
neutron/tests/unit/services/__init__.py
12133432
vlinhd11/vlinhd11-android-scripting
refs/heads/master
python/src/Demo/turtle/tdemo_colormixer.py
42
# colormixer from turtle import Screen, Turtle, mainloop class ColorTurtle(Turtle): def __init__(self, x, y): Turtle.__init__(self) self.shape("turtle") self.resizemode("user") self.shapesize(3,3,5) self.pensize(10) self._color = [0,0,0] self.x = x ...
LawnOni/hothelo-ia-2015-1
refs/heads/master
main.py
4
from controllers.board_controller import BoardController from models.move import Move from models.board import Board controller = BoardController() controller.init_game()
axinging/chromium-crosswalk
refs/heads/master
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/handshake/__init__.py
658
# Copyright 2011, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
nhomar/odoo
refs/heads/8.0
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(...
AlexCatarino/Lean
refs/heads/master
Algorithm.Python/Alphas/IntradayReversalCurrencyMarketsAlpha.py
3
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # 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 Licen...
baylee-d/osf.io
refs/heads/develop
api/collections/permissions.py
10
# -*- coding: utf-8 -*- from __future__ import unicode_literals from rest_framework import permissions from rest_framework.exceptions import NotFound from api.base.utils import get_user_auth, assert_resource_type from osf.models import AbstractNode, Preprint, Collection, CollectionSubmission, CollectionProvider from ...
dhamaniasad/mythbox
refs/heads/master
resources/lib/mysql-connector-python/mysql/connector/constants.py
9
# MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. # Use is subject to license terms. (See COPYING) # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
melver/lancet
refs/heads/master
lancet/filetypes.py
2
import os, tempfile, json, pickle import param from lancet.core import PrettyPrinted try: import numpy except: pass try: import Image except: pass class FileType(PrettyPrinted, param.Parameterized): """ The base class for all supported file types in Lancet. This class is designed to be simple and e...
vvv1559/intellij-community
refs/heads/master
python/testData/inspections/PyNoneFunctionAssignmentInspection/decoratedMethod.py
83
import abc from abc import abstractmethod def decorator(f): return f class C(object): __metaclass__ = abc.ABCMeta @abstractmethod def foo(self): pass @abc.abstractmethod def bar(self): pass @decorator def baz(self): pass def quux(self): pass ...
aranega/pyecore
refs/heads/master
pyecore/utils.py
1
""" This module gathers utility classes and functions that can ease metamodel and model manipulation. """ from .ecore import EPackage, EObject, BadValueError, EClass from .notification import EObserver, Kind from functools import singledispatch, update_wrapper import builtins class DynamicEPackage(EObserver): """...
macressler/vsc-tools-lib
refs/heads/master
lib/vsc/pbs/utils.py
2
'''Miscellaneous functions for dealing the PBS data''' def compute_features(node): '''Compute features for a node''' features = [] if 'thinking' in node.properties: if node.memory <= 64*1024**3: features.append('mem64') else: features.append('mem128') return feat...
cstavr/synnefo
refs/heads/develop
snf-pithos-backend/pithos/backends/test/util.py
10
# Copyright (C) 2014 GRNET S.A. # # 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 in the...
cosmoharrigan/pylearn2
refs/heads/master
pylearn2/costs/mlp/missing_target_cost.py
34
""" The MissingTargetCost class. """ __author__ = 'Vincent Archambault-Bouffard' from functools import wraps import theano.tensor as T from pylearn2.costs.cost import Cost from pylearn2.space import CompositeSpace class MissingTargetCost(Cost): """ Dropout but with some targets optionally missing. The miss...
peterFran/LanguageListCreator
refs/heads/master
test/test_language_list_creator.py
1
from langtools.LanguageListCreator import LanguageListCreator def test_length_list_correct(): llc = LanguageListCreator() assert len(llc.random_verbs(10)) == 10 assert len(llc.random_verbs(0)) == 0 def test_same_verb_not_produced_twice(): llc = LanguageListCreator() assert llc.random_verbs(1) is...
m4h7/juriscraper
refs/heads/master
juriscraper/opinions/united_states/state/pasuperct.py
2
# Scraper for Pennsylvania Supreme Court # CourtID: pasup # Court Short Name: pasup # Author: Andrei Chelaru # Reviewer: mlr # Date created: 21 July 2014 from juriscraper.opinions.united_states.state import pa import re class Site(pa.Site): def __init__(self, *args, **kwargs): super(Site, self).__init__...
LoHChina/nova
refs/heads/master
nova/virt/hyperv/volumeutilsv2.py
50
# Copyright 2012 Pedro Navarro Perez # Copyright 2013 Cloudbase Solutions Srl # 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...
guerrerocarlos/odoo
refs/heads/8.0
addons/l10n_it/__openerp__.py
267
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 # OpenERP Italian Community (<http://www.openerp-italia.org>) # Servabit srl # Agile Business Group sagl # Domsense srl # Albato...
40223225/2015-cdb-g3-test2-
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/logging/__init__.py
733
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
guoxiaolongzte/spark
refs/heads/master
examples/src/main/python/sql/hive.py
24
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
rlugojr/rekall
refs/heads/master
rekall-core/rekall/plugins/overlays/windows/crashdump.py
2
# Rekall Memory Forensics # Copyright 2014 Google Inc. All Rights Reserved. # # 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 ver...
simonwydooghe/ansible
refs/heads/devel
lib/ansible/modules/cloud/google/gcp_compute_image.py
10
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
blstream/CaptureTheFlag
refs/heads/master
ctf-web-app/apps/core/tests.py
24123
from django.test import TestCase # Create your tests here.
muayyad-alsadi/docker-balancer
refs/heads/master
update.py
1
#! /bin/python import sys, os, os.path from collections import defaultdict from jinja2 import Environment, FileSystemLoader from docker import Client here = os.path.dirname(__file__) template_env = Environment(loader=FileSystemLoader(os.path.join(here, 'templates'))) def reconfig_haproxy(docker): hosts=defaultd...
jameinel/juju
refs/heads/develop
acceptancetests/repository/charms/network-health/scripts/simple-server.py
5
#!/usr/bin/python3 import argparse import http.server import socketserver import os SERVE_FILE_PATH = 'SIMPLE_HTTP_SERVER_INDEX_FILE' class SimpleRequestHandler(http.server.SimpleHTTPRequestHandler): """Simple request handler that always returns file supplied by env var.""" def translate_path(self, path): ...
apophys/freeipa
refs/heads/master
ipatests/test_ipaserver/test_serverroles.py
1
# # Copyright (C) 2016 FreeIPA Contributors see COPYING for license # """ Tests for the serverroles backend """ from collections import namedtuple import ldap import pytest from ipaplatform.paths import paths from ipalib import api, create_api, errors from ipapython.dn import DN pytestmark = pytest.mark.needs_ipaa...
michaelray/Iristyle-ChocolateyPackages
refs/heads/master
EthanBrown.SublimeText2.EditorPackages/tools/PackageCache/BracketHighlighter/bh_core.py
6
from os.path import basename, exists, join, normpath import sublime import sublime_plugin from time import time, sleep import thread import ure from bh_plugin import BracketPlugin, BracketRegion, ImportModule from collections import namedtuple import traceback BH_MATCH_TYPE_NONE = 0 BH_MATCH_TYPE_SELECTION = 1 BH_MATC...
daenamkim/ansible
refs/heads/devel
lib/ansible/modules/database/misc/riak.py
29
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, James Martin <jmartin@basho.com>, Drew Kerrigan <dkerrigan@basho.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METAD...
GheRivero/ansible
refs/heads/devel
lib/ansible/modules/network/nxos/nxos_vrrp.py
68
#!/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 distribut...
demon-ru/iml-crm
refs/heads/master
addons/stock/partner.py
375
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
iut-ibk/DynaMind-UrbanSim
refs/heads/master
3rdparty/opus/src/urbansim/gridcell/industrial_sqft_per_job_within_walking_distance.py
2
# Opus/UrbanSim urban simulation software. # Copyright (C) 2005-2009 University of Washington # See opus_core/LICENSE from opus_core.variables.variable import Variable from variable_functions import my_attribute_label from numpy import ma from numpy import where, float32 from opus_core.logger import logger ...
blackdartq/GameMaker
refs/heads/master
main.py
1
#!/usr/bin/python3.4 import pygame print("hello world")
musically-ut/numpy
refs/heads/master
numpy/fft/info.py
34
""" Discrete Fourier Transform (:mod:`numpy.fft`) ============================================= .. currentmodule:: numpy.fft Standard FFTs ------------- .. autosummary:: :toctree: generated/ fft Discrete Fourier transform. ifft Inverse discrete Fourier transform. fft2 Discrete Fourier tr...
40223236/2015cd_midterm
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/signal.py
743
"""This module provides mechanisms to use signal handlers in Python. Functions: alarm() -- cause SIGALRM after a specified time [Unix only] setitimer() -- cause a signal (described below) after a specified float time and the timer may restart then [Unix only] getitimer() -- get current value of timer [...
sonnyhu/numpy
refs/heads/master
numpy/lib/shape_base.py
44
from __future__ import division, absolute_import, print_function import warnings import numpy.core.numeric as _nx from numpy.core.numeric import ( asarray, zeros, outer, concatenate, isscalar, array, asanyarray ) from numpy.core.fromnumeric import product, reshape from numpy.core import vstack, atleast_3d _...
oftn/quorum
refs/heads/develop
src/quorum/templates/__init__.py
12133432
abo-abo/edx-platform
refs/heads/master
lms/xblock/__init__.py
12133432
leeon/annotated-django
refs/heads/note
tests/admin_scripts/management/commands/__init__.py
12133432
ngpitt/wrpi-web
refs/heads/master
public/migrations/__init__.py
12133432
gamernetwork/dashi
refs/heads/master
dashi/settings/__init__.py
12133432
Beyond-Imagination/BlubBlub
refs/heads/master
RaspberryPI/django-env/lib/python3.4/site-packages/wheel/test/simple.dist/setup.py
565
from setuptools import setup try: unicode def u8(s): return s.decode('unicode-escape').encode('utf-8') except NameError: def u8(s): return s.encode('utf-8') setup(name='simple.dist', version='0.1', description=u8('A testing distribution \N{SNOWMAN}'), packages=['simpledis...
jabesq/home-assistant
refs/heads/dev
script/hassfest/services.py
5
"""Validate dependencies.""" import pathlib from typing import Dict import re import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import config_validation as cv from homeassistant.util.yaml import load_yaml from .m...
dgladkov/django
refs/heads/master
django/contrib/admin/widgets.py
11
""" Form Widget classes specific to the Django admin site. """ from __future__ import unicode_literals import copy from django import forms from django.db.models.deletion import CASCADE from django.forms.utils import flatatt from django.forms.widgets import RadioFieldRenderer from django.template.loader import render...
espadrine/opera
refs/heads/master
chromium/src/third_party/python_26/Lib/idlelib/CodeContext.py
52
"""CodeContext - Extension to display the block context above the edit window Once code has scrolled off the top of a window, it can be difficult to determine which block you are in. This extension implements a pane at the top of each IDLE edit window which provides block structure hints. These hints are the lines w...
vrbagalkote/avocado-misc-tests-1
refs/heads/master
io/net/htx_nic_devices.py
1
#!/usr/bin/env python # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that ...
dieface/erpnext
refs/heads/develop
erpnext/config/manufacturing.py
38
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Documents"), "icon": "icon-star", "items": [ { "type": "doctype", "name": "BOM", "description": _("Bill of Materials (BOM)"), "label": _("Bill of Material") }, { "type": ...
stefanseefeld/numba
refs/heads/master
numba/cuda/vectorizers.py
3
from __future__ import print_function, absolute_import from numba import cuda from numba.npyufunc import deviceufunc from . import dispatcher vectorizer_stager_source = ''' def __vectorized_{name}({args}, __out__): __tid__ = __cuda__.grid(1) if __tid__ < __out__.shape[0]: __out__[__tid__] = __core__({...
drwasho/bitcoinxt
refs/heads/master
qa/rpc-tests/txn_clone.py
20
#!/usr/bin/env python2 # Copyright (c) 2014 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 proper accounting with an equivalent malleability clone # from test_framework.test_framework import ...
mikecroucher/nearest_correlation
refs/heads/master
nearest_correlation_unittests.py
1
import unittest import numpy as np import nearest_correlation from nearest_correlation import nearcorr # References # [1] 'Computing the nearest correlation matrix - a problem from finance': Higham, IMA Journal of Numerical Analysis (2002) 22, 329.343 class ResultsTests(unittest.TestCase): # This test is taken ...
nfallen/servo
refs/heads/master
components/script/dom/bindings/codegen/parser/tests/test_attr.py
106
import WebIDL def WebIDLTest(parser, harness): testData = [("::TestAttr%s::b", "b", "Byte%s", False), ("::TestAttr%s::rb", "rb", "Byte%s", True), ("::TestAttr%s::o", "o", "Octet%s", False), ("::TestAttr%s::ro", "ro", "Octet%s", True), ("::TestAttr%s::...
moggers87/doge
refs/heads/master
doge/core.py
4
#!/usr/bin/env python # coding: utf-8 import datetime import os import sys import re import random import struct import traceback import argparse import subprocess as sp import unicodedata from os.path import dirname, join from doge import wow ROOT = join(dirname(__file__), 'static') DEFAULT_DOGE = 'doge.txt' cla...
jpressnell/laikaboss
refs/heads/master
laikad.py
16
#!/usr/bin/python # Copyright 2015 Lockheed Martin Corporation # # 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 app...
arduino/pygments.rb
refs/heads/master
vendor/pygments-main/pygments/styles/xcode.py
126
# -*- coding: utf-8 -*- """ pygments.styles.xcode ~~~~~~~~~~~~~~~~~~~~~ Style similar to the `Xcode` default theme. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, N...
TheMOOCAgency/edx-platform
refs/heads/master
openedx/core/djangoapps/content/course_structures/api/v0/__init__.py
12133432
2013Commons/hue
refs/heads/master
desktop/core/ext-py/Django-1.4.5/tests/regressiontests/localflavor/uy/__init__.py
12133432
liquidia/easyengine
refs/heads/master
ee/cli/templates/__init__.py
12133432
modesttree/Projeny
refs/heads/master
Source/mtm/util/tests/__init__.py
12133432
jmartinm/invenio
refs/heads/master
modules/websubmit/lib/functions/Export_Via_SWORD.py
35
## This file is part of Invenio. ## Copyright (C) 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ...
ampax/edx-platform-backup
refs/heads/live
common/lib/xmodule/xmodule/word_cloud_module.py
104
"""Word cloud is ungraded xblock used by students to generate and view word cloud. On the client side we show: If student does not yet answered - `num_inputs` numbers of text inputs. If student have answered - words he entered and cloud. """ import json import logging from pkg_resources import resource_string from x...
ddayguerrero/blogme
refs/heads/master
flask/lib/python3.4/site-packages/pbr/tests/test_packaging.py
21
# Copyright (c) 2013 New Dream Network, LLC (DreamHost) # # 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...
adviti/melange
refs/heads/master
thirdparty/google_appengine/google/appengine/_internal/django/core/cache/backends/filebased.py
23
"File-based cache backend" import os import time import shutil try: import cPickle as pickle except ImportError: import pickle from google.appengine._internal.django.core.cache.backends.base import BaseCache from google.appengine._internal.django.utils.hashcompat import md5_constructor class CacheClass(BaseC...
tempbottle/Firefly
refs/heads/master
gfirefly/dbentrust/dbpool.py
6
#coding:utf8 ''' Created on 2013-5-8 @author: lan (www.9miao.com) ''' from DBUtils.PooledDB import PooledDB import MySQLdb DBCS = {'mysql':MySQLdb,} class DBPool(object): '''数据库连接池 ''' def initPool(self,**kw): '''根据连接配置初始化连接池配置信息. >>> aa = {'host':"localhost",'user':'root','passwd':...
morallo/thug
refs/heads/master
src/Analysis/peepdf/jjdecode.py
40
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2014 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # it u...
jotes/boto
refs/heads/develop
tests/integration/ec2/cloudwatch/__init__.py
454
# Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.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 # without limitation the rights to use, copy, modi...
sbalde/edx-platform
refs/heads/master
cms/djangoapps/models/__init__.py
12133432
Freshnuts/Multiprocessing-Practice
refs/heads/master
mp_remote_shell.py
1
import sys import os from multiprocessing import Process import multiprocessing import time import socket # Demonstrates multirocessing with loop to keep track of initialized # processes. # t1 calls multiprocessing.Process() p01 (Process Thread 1). # t2 calls multiprocessing.Process() p02 (Process Thread 2). # ...
amishb/youtube-dl
refs/heads/master
youtube_dl/extractor/keek.py
119
from __future__ import unicode_literals from .common import InfoExtractor class KeekIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?keek\.com/(?:!|\w+/keeks/)(?P<id>\w+)' IE_NAME = 'keek' _TEST = { 'url': 'https://www.keek.com/ytdl/keeks/NODfbab', 'md5': '09c5c109067536c1cec8bac8c21f...
c86j224s/snippet
refs/heads/master
Python_asyncio_binary_echo/pyclient2/Lib/site-packages/setuptools/command/dist_info.py
116
""" Create a dist_info directory As defined in the wheel specification """ import os from distutils.core import Command from distutils import log class dist_info(Command): description = 'create a .dist-info directory' user_options = [ ('egg-base=', 'e', "directory containing .egg-info directories"...
apache/incubator-mxnet
refs/heads/master
python/mxnet/gluon/probability/distributions/dirichlet.py
1
# 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...
neno1978/pelisalacarta
refs/heads/develop
python/main-classic/lib/requests/certs.py
1218
#!/usr/bin/env python # -*- coding: utf-8 -*- """ certs.py ~~~~~~~~ This module returns the preferred default CA certificate bundle. If you are packaging Requests, e.g., for a Linux distribution or a managed environment, you can change the definition of where() to return a separately packaged CA bundle. """ import o...
mmcdermo/helpinghand
refs/heads/master
server/venv/lib/python2.7/site-packages/south/migration/base.py
57
from __future__ import print_function from collections import deque import datetime from imp import reload import os import re import sys from django.core.exceptions import ImproperlyConfigured from django.db import models from django.conf import settings from django.utils import importlib from south import exceptio...
zhuguihua/qemu
refs/heads/master
tests/qemu-iotests/qcow2.py
63
#!/usr/bin/env python import sys import struct import string class QcowHeaderExtension: def __init__(self, magic, length, data): if length % 8 != 0: padding = 8 - (length % 8) data += "\0" * padding self.magic = magic self.length = length self.data = da...
samuelclay/NewsBlur
refs/heads/master
vendor/timezones/models.py
12133432
ronniehedrick/scapeshift
refs/heads/master
client/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py
12133432
allink/plata
refs/heads/master
plata/shop/migrations/__init__.py
12133432
Changaco/oh-mainline
refs/heads/master
vendor/packages/Django/django/contrib/gis/db/backends/mysql/__init__.py
12133432
zzgvh/django-workflows
refs/heads/master
workflows/templatetags/__init__.py
12133432
waseem18/oh-mainline
refs/heads/master
vendor/packages/Django/django/conf/locale/en_GB/__init__.py
12133432
megaumi/django
refs/heads/master
tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/__init__.py
12133432