repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
bcheung92/Paperproject
refs/heads/master
gem5/src/arch/x86/isa/insts/general_purpose/string/load_string.py
91
# Copyright (c) 2007-2008 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware imp...
kimond/gobgift
refs/heads/master
gobgift/groups/migrations/__init__.py
12133432
yxl/emscripten-calligra-mobile
refs/heads/calligra/2.8
3rdparty/google-breakpad/src/third_party/protobuf/protobuf/python/google/protobuf/__init__.py
12133432
xq262144/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/admin_scripts/tests.py
52
# -*- coding: utf-8 -*- """ A series of tests to establish that the command-line managment tools work as advertised - especially with regards to the handling of the DJANGO_SETTINGS_MODULE and default settings.py files. """ from __future__ import unicode_literals import os import re import shutil import socket import s...
lucidfrontier45/scikit-learn
refs/heads/master
sklearn/ensemble/tests/__init__.py
12133432
kingland/go-v8
refs/heads/master
v8-3.28/build/gyp/test/mac/gyptest-sdkroot.py
193
#!/usr/bin/env python # 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. """ Verifies that setting SDKROOT works. """ import TestGyp import os import subprocess import sys if sys.platform == 'darwin': test = ...
miptliot/edx-platform
refs/heads/ginkgo_openedu_docker
lms/djangoapps/mobile_api/video_outlines/views.py
5
""" Video Outlines We only provide the listing view for a video outline, and video outlines are only displayed at the course level. This is because it makes it a lot easier to optimize and reason about, and it avoids having to tackle the bigger problem of general XBlock representation in this rather specialized format...
asljivo1/802.11ah-ns3
refs/heads/master
ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Tools/qt5.py
8
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file try: from xml.sax import make_parser from xml.sax.handler import ContentHandler except ImportError: has_xml=False ContentHandler=object else: has_xml=True import os,sys from waflib.Tools import ...
thnee/ansible
refs/heads/devel
lib/ansible/modules/remote_management/cpm/cpm_user.py
21
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2018 Red Hat Inc. # Copyright (C) 2018 Western Telematic Inc. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PAR...
hoangminhitvn/flask
refs/heads/master
flask/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py
2800
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
jpoppe/seedBank
refs/heads/master
seedbank/seedbank.py
2
#!/usr/bin/env python # Copyright 2009-2015 Jasper Poppe <jgpoppe@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
factorlibre/stock-logistics-warehouse
refs/heads/8.0
stock_quant_partner_info/__openerp__.py
3
# -*- coding: utf-8 -*- # © 2016 Oihane Crucelaegui - AvanzOSC # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Stock - Quant partner info", "version": "8.0.1.1.0", "category": "Warehouse Management", "license": "AGPL-3", "author": "AvanzOSC, " "Odoo Communi...
ncsaba/coursera-dl
refs/heads/mechanize
courseradownloader/_version.py
3
__version_info__ = (3,1,1) __version__ = '.'.join(map(str, __version_info__))
sdrogers/ms2ldaviz
refs/heads/master
ms2ldaviz/list_experiments_in_multifile.py
1
import os import pickle import numpy as np import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings") import django django.setup() # This is to process files that have document names stored as mz_rt # it extracts the acutal mz and rt from the name and adds them to the metadata # This version wo...
missionpinball/mpf
refs/heads/dev
mpf/config_players/flasher_player.py
1
"""Flasher config player.""" from mpf.config_players.device_config_player import DeviceConfigPlayer from mpf.core.delays import DelayManager from mpf.core.utility_functions import Util class FlasherPlayer(DeviceConfigPlayer): """Triggers flashers based on config.""" config_file_section = 'flasher_player' ...
anhstudios/swganh
refs/heads/develop
data/scripts/templates/object/tangible/component/clothing/shared_component_base.py
2
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/component/clothing/shared_component_base.iff" result.attribute_temp...
vmendez/DIRAC
refs/heads/integration
WorkloadManagementSystem/Service/MatcherHandler.py
1
""" The Matcher service provides an XMLRPC interface for matching jobs to pilots It uses a Matcher and a Limiter object that encapsulated the matching logic. It connects to JobDB, TaskQueueDB, and PilotAgentsDB. """ __RCSID__ = "$Id$" from types import StringType, DictType, StringTypes from DIRAC ...
ThiagoGarciaAlves/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/gis/geos/tests/test_mutable_list.py
94
# Copyright (c) 2008-2009 Aryeh Leib Taurog, http://www.aryehleib.com # All rights reserved. # # Modified from original contribution by Aryeh Leib Taurog, which was # released under the New BSD license. from django.contrib.gis.geos.mutable_list import ListMixin from django.utils import unittest class UserListA(ListMi...
PoornimaNayak/autotest-client-tests
refs/heads/master
unixbench/unixbench.py
5
import os import re from autotest.client import test, utils from autotest.client.shared import error class unixbench(test.test): version = 2 def initialize(self): self.job.require_gcc() self.err = None # http://www.tux.org/pub/tux/niemi/unixbench/unixbench-4.1.0.tgz def setup(self, ...
lanfker/tdma_imac
refs/heads/master
src/virtual-net-device/test/examples-to-run.py
200
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
jdar/phantomjs-modified
refs/heads/master
src/qt/qtwebkit/Tools/QueueStatusServer/config/logging.py
122
# Copyright (C) 2013 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 ...
ttfseiko/openerp-trunk
refs/heads/master
openerp/addons/website_crm_partner_assign/controllers/__init__.py
7372
import main
wcmitchell/insights-core
refs/heads/master
insights/combiners/tests/test_virt_what.py
1
from insights.parsers.virt_what import VirtWhat as VWP from insights.parsers.dmidecode import DMIDecode from insights.combiners.virt_what import VirtWhat from insights.tests import context_wrap T1 = """ kvm """.strip() T2 = """ """.strip() # occasionally we have 2 lines of output T3 = """ xen xen-dom0 aws """.strip...
VAMDC/NodeSoftware
refs/heads/master
nodes/topbase/node/admin.py
59
from django.contrib import admin #import your models here like this: #from DjNodeExample.node.models import * # add your models here to have them in the admin interface # for example if you have a model class called "Transition": #admin.site.register(Transition)
utkbansal/kuma
refs/heads/master
vendor/packages/translate/storage/placeables/test_terminology.py
24
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2009 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # 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...
pombredanne/bokeh
refs/heads/master
sphinx/source/docs/user_guide/source_examples/charts_boxplot_nested_label.py
12
from bokeh.charts import BoxPlot, output_file, show from bokeh.sampledata.autompg import autompg as df p = BoxPlot(df, values='mpg', label=['cyl', 'origin'], title="MPG Summary (grouped by CYL, ORIGIN)") output_file("boxplot.html") show(p)
unnikrishnankgs/va
refs/heads/master
venv/lib/python3.5/site-packages/tensorflow/contrib/keras/python/keras/datasets/cifar100.py
58
# 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...
dannyboi104/SickRage
refs/heads/master
lib/hachoir_parser/program/java.py
84
""" Compiled Java classes parser. Author: Thomas de Grenier de Latour (TGL) <degrenier@easyconnect.fr> Creation: 2006/11/01 Last-update: 2006/11/06 Introduction: * This parser is for compiled Java classes, aka .class files. What is nice with this format is that it is well documented in the official Java VM specs...
yongtang/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/zero_division_test.py
13
# 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...
vvv1559/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/conf/locale/zh_CN/__init__.py
12133432
amiguez/youtube-dl
refs/heads/master
youtube_dl/extractor/radiofrance.py
163
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class RadioFranceIE(InfoExtractor): _VALID_URL = r'^https?://maison\.radiofrance\.fr/radiovisions/(?P<id>[^?#]+)' IE_NAME = 'radiofrance' _TEST = { 'url': 'http://maison.radiofrance.fr/radiovisio...
coderbone/SickRage-alt
refs/heads/master
lib/urllib3/util/__init__.py
51
from __future__ import absolute_import # For backwards compatibility, provide imports that used to be here. from .connection import is_connection_dropped from .request import make_headers from .response import is_fp_closed from .ssl_ import ( SSLContext, HAS_SNI, IS_PYOPENSSL, IS_SECURETRANSPORT, a...
40223243/2015cd_midterm2
refs/heads/master
2015cd_midterm-master/static/Brython3.1.1-20150328-091302/Lib/_random.py
518
from browser import window def _randint(a, b): return int(window.Math.random()*(b-a+1)+a) def _urandom(n): """urandom(n) -> str Return n random bytes suitable for cryptographic use.""" randbytes= [_randint(0,255) for i in range(n)] return bytes(randbytes) class Random: """Random n...
MoyinOtubela/autonomous_controllers
refs/heads/master
devel/lib/python2.7/dist-packages/robbie_auto/msg/__init__.py
1
from ._Contact import * from ._Script import *
socib/dygraphs
refs/heads/master
docs/ssi.py
29
''' Shared code for ssi_server.py and ssi_expander.py. ''' import re def InlineIncludes(path): """Read a file, expanding <!-- #include --> statements.""" content = file(path).read() content = re.sub(r'<!-- *#include *virtual=[\'"]([^\'"]+)[\'"] *-->', lambda x: file(x.group(1)).read(), content) re...
Damnever/2L
refs/heads/master
app/tests/api/test_auth.py
1
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import json from app.libs.db import init_db, drop_db from app.models import User from app.tests.base import BaseTestCase class RegisterTests(BaseTestCase): _path = '/api/register' def setUp(self): super(Regis...
ZucchiniZe/preworkhub
refs/heads/master
classes/migrations/__init__.py
12133432
ovresko/erpnext
refs/heads/master
erpnext/erpnext_integrations/doctype/shopify_log/__init__.py
12133432
takluyver/vclurk
refs/heads/master
vclurk/git/__init__.py
12133432
hzlf/openbroadcast
refs/heads/master
website/apps/shortcutter/migrations/__init__.py
12133432
Serag8/Bachelor
refs/heads/master
google_appengine/lib/django-1.4/django/conf/locale/ta/__init__.py
12133432
Kazade/NeHe-Website
refs/heads/master
google_appengine/lib/django_1_2/django/contrib/localflavor/pe/__init__.py
12133432
Tehsmash/networking-cisco
refs/heads/master
networking_cisco/plugins/cisco/device_manager/__init__.py
12133432
vipullakhani/mi-instrument
refs/heads/master
mi/dataset/parser/test/test_adcpt_m_fcoeff.py
5
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_adcpt_m_fcoeff @fid marine-integrations/mi/dataset/parser/test/test_adcpt_mfcoeff.py @author Ronald Ronquillo @brief Test code for a Adcpt_M_FCoeff data parser """ from nose.plugins.attrib import attr import os from mi.core.log import get_logger log = ge...
vvuk/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/lint/tests/__init__.py
12133432
evbevz/plugins
refs/heads/master
security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/__init__.py
12133432
rvalyi/geraldo
refs/heads/master
site/newsite/django_1_0/tests/modeltests/user_commands/management/__init__.py
12133432
raphaelmerx/django
refs/heads/master
tests/delete_regress/__init__.py
12133432
UOMx/edx-platform
refs/heads/master
lms/djangoapps/commerce/tests/test_signals.py
107
""" Tests for signal handling in commerce djangoapp. """ import base64 import json from urlparse import urljoin import ddt from django.contrib.auth.models import AnonymousUser from django.test import TestCase from django.test.utils import override_settings import httpretty import mock from opaque_keys.edx.keys import ...
retomerz/intellij-community
refs/heads/master
python/testData/inspections/PyAssignmentToLoopOrWithParameterInspection/good.py
46
from spam import eggs for eggs in (1, 12): eggs = 12 for a in (1, 12): for b in (2, 24): for (c, d) in {"C": "D"}.items(): (e, f) = (a, d) i = 12 print(i) (z, x) = (i, 12) print(z) for root in settings.STATICFILES_DIRS: if isinstance(root, (list, tuple)): prefix, root = root ...
caalle/Python-koans
refs/heads/master
python 2/koans/about_monkey_patching.py
6
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Related to AboutOpenClasses in the Ruby Koans # from runner.koan import * class AboutMonkeyPatching(Koan): class Dog(object): def bark(self): return "WOOF" def test_as_defined_dogs_do_bark(self): fido = self.Dog() self...
elsehow/moneybot
refs/heads/master
tests/unit/utils_test.py
1
# -*- coding: utf-8 -*- from datetime import datetime from pyloniex.constants import OrderType from moneybot.market import Order from moneybot.market.state import MarketState from moneybot.trade import AbstractTrade from moneybot.utils import simulate_order from moneybot.utils import simulate_trades def test_simula...
morganics/bayesianpy
refs/heads/master
examples/cluster_counts.py
1
import pandas as pd import bayesianpy from bayesianpy.network import Builder as builder import logging import os import matplotlib.pyplot as plt # Demonstrates one-class classification/ unsupervised clustering to identify the likelihood that a sample has been # generated by the particular model. Useful for building ...
hydroshare/hs_metrics
refs/heads/master
urls.py
3
from django.conf.urls import patterns, url from hs_metrics import views urlpatterns = patterns('', # users API url(r'^metrics/$', views.HydroshareSiteMetrics.as_view()), )
deepmind/open_spiel
refs/heads/master
open_spiel/python/algorithms/masked_softmax_test.py
1
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
hmenke/espresso
refs/heads/python
doc/tutorials/08-visualization/scripts/plotting.py
1
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo 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 v...
Baumelbi/IntroPython2016
refs/heads/master
students/psbriant/session04/kata_fourteen.py
3
""" Name: Paul Briant Date: 10/24/16 Class: Introduction to Python Session04 Assignment: Kata Fourteen Description: Read a file and build a trigram based off of the text in file. """ # -------------------------------Import----------------------------------------- import random # -------------------------------Function...
superatmos/i9100g_kernel_gb
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
886
# Util.py - Python extension for perf trace, miscellaneous utility code # # 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. NSECS_PER_SEC = 1000000000 de...
GNOME/chronojump
refs/heads/master
chronopic-firmware/chronopic-firmwarecord/linux-compile/Libiris/libiris-1.2/libIris-utils/skypic-test.py
1
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # Description: Example of use of libIris # Copyright (C) 2007 by Rafael Treviño Menéndez # Author: Rafael Treviño Menéndez <skasi.7@gmail.com> # Juan Gonzalez <juan@iearobotics.com> # This program is free software; you can redistribute it and/or # modify it ...
kefo/moto
refs/heads/master
tests/test_s3/__init__.py
12133432
indictranstech/tele-erpnext
refs/heads/develop
erpnext/stock/print_format/telecom_delivery_note/__init__.py
12133432
popazerty/dvbapp2-gui
refs/heads/master
lib/python/Plugins/SystemPlugins/VideoTune/__init__.py
12133432
louisLouL/pair_trading
refs/heads/master
capstone_env/lib/python3.6/site-packages/pandas/core/__init__.py
12133432
valentin-krasontovitsch/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/cloudwatchlogs_log_group.py
7
#!/usr/bin/python # Copyright: Ansible Project # 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_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
microcom/odoo
refs/heads/9.0
addons/account/models/account.py
2
# -*- coding: utf-8 -*- import time import math from openerp.osv import expression from openerp.tools.float_utils import float_round as round from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT from openerp.exceptions import UserError, ValidationError from openerp import api, fields, models, _ class AccountAcc...
khchine5/book
refs/heads/master
docs/tutorials/input_mask/test.py
18
from lino.utils.test import DocTest
krousey/test-infra
refs/heads/master
gubernator/third_party/cloudstorage/rest_api.py
63
# Copyright 2012 Google 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 law or ag...
MeteorAdminz/viper
refs/heads/master
viper/modules/verifysigs/fingerprint.py
22
#!/usr/bin/env python # Copyright 2010 Google 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...
jakevdp/pelican-plugins
refs/heads/master
post_stats/__init__.py
80
from .post_stats import *
Akasurde/ansible
refs/heads/devel
lib/ansible/plugins/filter/mathstuff.py
14
# Copyright 2014, Brian Coca <bcoca@ansible.com> # Copyright 2017, Ken Celenza <ken@networktocode.com> # Copyright 2017, Jason Edelman <jason@networktocode.com> # Copyright 2017, Ansible Project # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of ...
pblottiere/QGIS
refs/heads/master
scripts/qgis_fixes/fix_ws_comma.py
77
from lib2to3.fixes.fix_ws_comma import FixWsComma
glenn-edgar/local_controller_3
refs/heads/master
__backup__/flask_web/werkzeug/posixemulation.py
193
# -*- coding: utf-8 -*- r""" werkzeug.posixemulation ~~~~~~~~~~~~~~~~~~~~~~~ Provides a POSIX emulation for some features that are relevant to web applications. The main purpose is to simplify support for systems such as Windows NT that are not 100% POSIX compatible. Currently this only imple...
Videoclases/videoclases
refs/heads/master
videoclases/migrations/0031_auto_20150916_1735.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('videoclases', '0030_auto_20150915_1845'), ] operations = [ migrations.AddField( model_name='alumno', ...
aubreym/Final-project
refs/heads/master
tailbone/restful/counter.py
36
import random from google.appengine.api import memcache from google.appengine.ext import ndb SHARD_KEY_TEMPLATE = 'shard-{}-{:d}' class TailboneGeneralCounterShardConfig(ndb.Model): """Tracks the number of shards for each named counter.""" num_shards = ndb.IntegerProperty(default=20) @classmethod def all_...
daajoe/doorbell
refs/heads/master
pjproject/tests/pjsua/scripts-sendto/300_srtp_invalid_crypto_tag_non_numeric.py
59
# $Id: 300_srtp_invalid_crypto_tag_non_numeric.py 2036 2008-06-20 17:43:55Z nanang $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=tester c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=cryp...
zczc/Factorization_Machines
refs/heads/master
fm.py
1
__author__ = 'zhuchen02' import numpy as np import codecs class Fm: k = -1 task = -1 iter = 500 threshold = 0.0001 n = -1 learning_rate = 0.0001 w_0 = None w = None v = None def __init__(self, k, task): if not (type(k) == int and k > 0): raise Exception('t...
sjperkins/tensorflow
refs/heads/master
tensorflow/contrib/tensor_forest/hybrid/python/hybrid_layer.py
144
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
fnp/wolnelektury
refs/heads/master
src/manage.py
1
#!/usr/bin/env python # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # import os import sys if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "wolnelektury.settings....
mayankjohri/LetsExplorePython
refs/heads/master
Section 1 - Core Python/Chapter 09 - Classes & OOPS/code/spa.py
2
class Spa(): def __init__(self): print("in init of spa")
charukiewicz/beer-manager
refs/heads/master
venv/lib/python3.4/site-packages/flask/signals.py
783
# -*- coding: utf-8 -*- """ flask.signals ~~~~~~~~~~~~~ Implements signals based on blinker if available, otherwise falls silently back to a noop :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ signals_available = False try: from blinker import Name...
louietsai/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/idlelib/UndoDelegator.py
67
import string from tkinter import * from idlelib.Delegator import Delegator #$ event <<redo>> #$ win <Control-y> #$ unix <Alt-z> #$ event <<undo>> #$ win <Control-z> #$ unix <Control-z> #$ event <<dump-undo-state>> #$ win <Control-backslash> #$ unix <Control-backslash> class UndoDelegator(Delegator): max_und...
stephenmcd/drawnby
refs/heads/master
core/urls.py
2
from django.conf.urls.defaults import * from django.conf import settings from django.views.generic.simple import direct_to_template urlpatterns = patterns("core.views", url("^new/$", "drawing_new", name="new"), url("^edit/(?P<drawing_key>.*)/$", "drawing_edit", name="edit"), url("^all/$", "drawing_list",...
hydroshare/hydroshare
refs/heads/develop
ref_ts/__init__.py
12133432
crazyzlj/PyGeoC
refs/heads/master
examples/ex01_begin_with_pygeoc.py
1
#! /usr/bin/env python # -*- coding: utf-8 -*- # Exercise 1: Begin with PyGeoC from pygeoc.raster import RasterUtilClass def main(): """Read GeoTiff raster data and print statistics. The output will be:: rows: 130, cols: 100 LLCornerX: 755145.28, LLCornerY: 654294.06 cell size: 10.0 ...
davidblaisonneau/fabm
refs/heads/master
server/languages/my.py
151
# coding: utf8 { '!langcode!': 'my', '!langname!': 'Malay', '%d days ago': '%d hari yang lalu', '%d hours ago': '%d jam yang lalu', '%d minutes ago': '%d minit yang lalu', '%d months ago': '%d bulan yang lalu', '%d seconds ago': '%d saat yang lalu', '%d seconds from now': '%d saat dari sekarang', '%d weeks ago': '%d mi...
dzbarsky/servo
refs/heads/master
components/script/dom/bindings/codegen/parser/tests/test_variadic_constraints.py
106
def WebIDLTest(parser, harness): threw = False try: results = parser.parse(""" interface VariadicConstraints1 { void foo(byte... arg1, byte arg2); }; """) except: threw = True harness.ok(threw, "Should have thrown.") threw = False ...
chugunovyar/factoryForBuild
refs/heads/master
env/lib/python2.7/site-packages/pip/_vendor/lockfile/pidlockfile.py
536
# -*- coding: utf-8 -*- # pidlockfile.py # # Copyright © 2008–2009 Ben Finney <ben+python@benfinney.id.au> # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Foundation. # No ...
googleapis/sphinx-docfx-yaml
refs/heads/master
tests/example/format/google/foo.py
1
# Copyright 2021 Google 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 writing, ...
ericholscher/django
refs/heads/master
tests/i18n/patterns/urls/namespace.py
175
from django.conf.urls import patterns, url from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView view = TemplateView.as_view(template_name='dummy.html') urlpatterns = patterns('', url(_(r'^register/$'), view, name='register'), url(_(r'^register-without-slash$')...
alxgu/ansible
refs/heads/devel
lib/ansible/modules/cloud/vultr/vultr_region_facts.py
29
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2018, Yanis Guenane <yanis+ansible@guenane.org> # 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_METADATA = {'metadata_version':...
cfg2015/EPT-2015-2
refs/heads/master
addons/website_crm_partner_assign/controllers/__init__.py
7372
import main
eile/ITK
refs/heads/master
Wrapping/Generators/Doc/itk_doxy2swig.py
15
#!/usr/bin/env python """Doxygen XML to SWIG docstring converter for ITK classes. Usage: itk_doxy2swig.py [input directory name] [output swing interface file name] """ from __future__ import print_function import sys import os import glob from doxy2swig import * from cStringIO import StringIO class itkDoxy2SWIG...
gojira/tensorflow
refs/heads/master
tensorflow/python/estimator/canned/head.py
8
# 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...
repotvsupertuga/tvsupertuga.repository
refs/heads/master
plugin.video.TVsupertuga/resources/lib/sources/scenedown_mv_tv.py
6
# -*- coding: utf-8 -*- ''' Exodus Add-on Copyright (C) 2016 Exodus 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 l...
splotz90/urh
refs/heads/master
src/urh/ui/views/DirectoryTreeView.py
1
import os from PyQt5.QtCore import QModelIndex, pyqtSlot, QFileInfo, pyqtSignal, QUrl from PyQt5.QtGui import QContextMenuEvent, QIcon, QDesktopServices from PyQt5.QtWidgets import QTreeView, QInputDialog, QMessageBox, QMenu from urh import constants from urh.util import util class DirectoryTreeView(QTreeView): ...
nikolas/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/contrib/gis/tests/geo3d/models.py
404
from django.contrib.gis.db import models class City3D(models.Model): name = models.CharField(max_length=30) point = models.PointField(dim=3) objects = models.GeoManager() def __unicode__(self): return self.name class Interstate2D(models.Model): name = models.CharField(max_length=30) l...
liuchengtian/CS523
refs/heads/master
steerstats/steersuitedb/CcAI.py
8
import psycopg2 from steersuitedb.AlgorithmData import AlgorithmData from steersuitedb.BaseAI import BaseAI class CcAI(BaseAI): """A simple example class""" _id_name = "cc_ai_id" _algorithm_reff = "ccAI" _table_name = "cc_ai_data" _insert_order = """( cc_ai_id, compute_density_field_number_of_...
SravanthiSinha/edx-platform
refs/heads/master
lms/djangoapps/dashboard/__init__.py
12133432
not-nexus/shelf
refs/heads/master
tests/bulk_update/__init__.py
12133432
sigurdga/nidarholm
refs/heads/master
accounts/migrations/__init__.py
12133432