commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
a31d5f88f3761e2b77300a2c882424c19baae9b3
improve publishing of joint states
bitbots_bringup/scripts/motor_goals_viz_helper.py
bitbots_bringup/scripts/motor_goals_viz_helper.py
#!/usr/bin/env python3 import argparse import rospy from sensor_msgs.msg import JointState from bitbots_msgs.msg import JointCommand from humanoid_league_msgs.msg import Animation class MotorVizHelper: def __init__(self): # get rid of addional ROS args when used in launch file args0 = rospy.myarg...
Python
0.000001
@@ -176,16 +176,293 @@ mation%0A%0A +JOINT_NAMES = %5B'LHipYaw', 'LHipRoll', 'LHipPitch', 'LKnee', 'LAnklePitch', 'LAnkleRoll', 'RHipYaw', 'RHipRoll', 'RHipPitch', 'RKnee', 'RAnklePitch', 'RAnkleRoll', 'LShoulderRoll', 'LShoulderPitch', 'LElbow', 'RShoulderRoll', 'RShoulderPitch', 'RElbow', 'HeadPan', 'HeadTilt'%5D%0A...
6c565437666ce96aa1a8513528e101bbbbdacbab
add head motor goals
bitbots_bringup/scripts/motor_goals_viz_helper.py
bitbots_bringup/scripts/motor_goals_viz_helper.py
#!/usr/bin/env python3 import argparse import rospy from sensor_msgs.msg import JointState from bitbots_msgs.msg import JointCommand from humanoid_league_msgs.msg import Animation JOINT_NAMES = ['LHipYaw', 'LHipRoll', 'LHipPitch', 'LKnee', 'LAnklePitch', 'LAnkleRoll', 'RHipYaw', 'RHipRoll', 'RHipPitch', 'RKnee', 'RA...
Python
0.002392
@@ -852,32 +852,135 @@ n=%22store_true%22)%0A + parser.add_argument(%22--head%22, %22-k%22, help=%22Directly get head motor goals%22, action=%22store_true%22)%0A args = p @@ -1460,32 +1460,168 @@ p_nodelay=True)%0A + if args.head:%0A rospy.Subscriber(%22head_motor_goals%22, JointComm...
86ff28441a23762d30cbab9843a7abeb67bfd028
Improve printing in bucky's DebugClient
src/mist/bucky_extras/clients/debug_client.py
src/mist/bucky_extras/clients/debug_client.py
import sys from bucky.client import Client class DebugClient(Client): out_path = None def __init__(self, cfg, pipe): super(DebugClient, self).__init__(pipe) if self.out_path: self.stdout = open(self.out_path, 'w') else: self.stdout = sys.stdout def send(s...
Python
0
@@ -3,16 +3,44 @@ port sys +%0Aimport time%0Aimport datetime %0A%0Afrom b @@ -65,16 +65,49 @@ Client%0A +from bucky.names import statname%0A %0A%0Aclass @@ -391,35 +391,37 @@ , name, value, t -ime +stamp ):%0A if se @@ -442,35 +442,37 @@ , name, value, t -ime +stamp ):%0A s @@ -501,19 +501,2...
f729aa01085b7fcb852c742a8f82475a5eb23f07
print clf.score
src/clf_knn.py
src/clf_knn.py
#!/opt/anaconda2/bin/python # -*- coding: utf-8 -*- """ ################################################################################ # # Copyright (c) 2015 Wojciech Migda # All rights reserved # Distributed under the terms of the MIT license # ####################################################################...
Python
0.999996
@@ -2439,32 +2439,64 @@ func=hellinger,%0A + #weights='distance'%0A ) # @@ -2659,16 +2659,65 @@ X_test)%0A + print(%22Score:%22, clf.score(X_train, y_train))%0A from
b50eb2f28aa4248e73c817fa4d73d23d0e9abcc1
fix @ Sat Sep 27 21:44:01 EDT 2014
src/pi/leds.py
src/pi/leds.py
#!/usr/bin/env python # leds.py import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) GPIO.cleanup() GPIO.setup(7, GPIO.OUT) GPIO.setup(11, GPIO.OUT) GPIO.setup(12, GPIO.OUT) while True: GPIO.output(7, GPIO.HIGH) time.sleep(1) GPIO.output(11, GPIO.HIGH) time.sleep(1) GPIO.output(1...
Python
0
@@ -155,33 +155,8 @@ UT)%0A -GPIO.setup(11, GPIO.OUT)%0A GPIO @@ -235,51 +235,8 @@ (1)%0A -%09GPIO.output(11, GPIO.HIGH)%0A%09time.sleep(1)%0A %09GPI
4ed52f75df03ef52e93fa7897cbfbd01f9d20190
use matplotlib's triplot instead of pydec's
Examples/MakeMesh/make_mesh.py
Examples/MakeMesh/make_mesh.py
""" Reads ascii vertex and element files, writes a pydec mesh and displays it """ import scipy from pydec import * from matplotlib.pylab import show vertices = scipy.loadtxt("v.txt") elements = scipy.loadtxt("s.txt",dtype='int32') - 1 mymesh = SimplicialMesh(vertices=vertices,indices=elements) write_mesh("square_8.xm...
Python
0
@@ -111,9 +111,45 @@ ort -* +SimplicialMesh, write_mesh, read_mesh %0Afro @@ -173,16 +173,25 @@ b import + triplot, show%0A%0Av @@ -440,17 +440,44 @@ vertices -, +%5B:,0%5D, rmesh.vertices%5B:,1%5D, rmesh.in
f6e58c512b53db1443e5cfe6ad8ba6cbaf5b3726
Bump to version 0.30.0
meza/__init__.py
meza/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ meza ~~~~ Provides methods for reading and processing data from tabular formatted files Attributes: CURRENCIES [tuple(unicode)]: Currency symbols to remove from decimal strings. ENCODING (str): Default file encoding. DEF...
Python
0
@@ -512,12 +512,12 @@ '0. -29.6 +30.0 '%0A__
fbc6bf04f58c9fab71b46594cb9544508c18f35e
add import file.
Source/Python/GenFds/Section.py
Source/Python/GenFds/Section.py
from CommonDataClass.FdfClassObject import SectionClassObject import os class Section (SectionClassObject): SectionType = { 'RAW' : 'EFI_SECTION_RAW', 'FREEFORM' : 'EFI_SECTION_FREEFORM_SUBTYPE_GUID', 'PE32' : 'EFI_SECTION_PE32', 'PIC' : 'EFI_SECTION_PIC', ...
Python
0.000287
@@ -56,16 +56,71 @@ Object%0D%0A +from GenFdsGlobalVariable import GenFdsGlobalVariable%0D%0A import o
ac41493f64bbf8aadf261988c1690aa1cc209b9f
remove custom ssl adapter using old tls (#2365)
superdesk/io/feeding_services/http_service.py
superdesk/io/feeding_services/http_service.py
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import ssl f...
Python
0
@@ -305,19 +305,8 @@ se%0A%0A -import ssl%0A from @@ -386,16 +386,17 @@ equests%0A +%0A from eve @@ -419,70 +419,8 @@ nfig -%0Afrom requests.packages.urllib3.poolmanager import PoolManager %0A%0Afr @@ -2650,56 +2650,8 @@ on() -%0A session.mount(%22https://%22, SSLAdapter()) %0A%0A @@ -5218,24 +5218,24 ...
d5d18de26d5439d5e2392bcd911709e89d06e798
add warning log when jeremia is retrying
src/python/weblyzard_api/client/jeremia.py
src/python/weblyzard_api/client/jeremia.py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals from future import standard_library from eWRT.ws.rest import MultiRESTClient from weblyzard_api.model.xml_content import XMLContent from weblyzard_api.client import ( WEBLYZARD_API_URL, WEBLYZARD_API_USER, WEBLYZARD_API_PASS) from tim...
Python
0
@@ -5967,32 +5967,115 @@ URLError) as e:%0A + logger.warning(f'will retry (num_attempts:%7Battempts%7D) due to %7Be%7D')%0A
89151cbe737718fcd19cd3505dc9137fa10cf11b
Finish output
src/crawler.py
src/crawler.py
from flask import Flask, render_template, request from pyquery import PyQuery as pq import pyjade import requests import json app = Flask(__name__) app.jinja_env.add_extension('pyjade.ext.jinja.PyJadeExtension') app.debug = True @app.route('/', methods=['GET', 'POST']) def index(): TEMPLATE_NAME = 'index.jade' ...
Python
0.999367
@@ -124,28 +124,125 @@ on%0A%0A -app = Flask(__name__ +TEMPLATE_NAME = %22index.jade%22%0ATEMPLATE_FOLDER = %22../templates/%22%0A%0Aapp = Flask(__name__, template_folder=TEMPLATE_FOLDER )%0Aap @@ -379,41 +379,8 @@ ():%0A - TEMPLATE_NAME = 'index.jade'%0A @@ -901,170 +901,214 @@ turn -_str =%22%22%0A ...
b7323888c7caa5c8f26134e284d8721888b85b5f
Fix active call on timer
txircd/modules/extra/services/account_nick_protect.py
txircd/modules/extra/services/account_nick_protect.py
from twisted.internet import reactor from twisted.plugin import IPlugin from txircd.config import ConfigValidationError from txircd.module_interface import IModuleData, ModuleData from txircd.utils import now from zope.interface import implements from weakref import WeakKeyDictionary from datetime import timedelta cla...
Python
0.000002
@@ -2918,16 +2918,18 @@ %5D.active +() :%0A%09%09%09use
c969fffbf03fea7fefeb4923aa630d0cb4740995
Add extra version of py-pillow (#15060)
var/spack/repos/builtin/packages/py-pillow/package.py
var/spack/repos/builtin/packages/py-pillow/package.py
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPillow(PythonPackage): """Pillow is a fork of the Python Imaging Library (PIL). It adds ...
Python
0
@@ -1062,24 +1062,120 @@ c052fb0df')%0A + version('6.0.0', sha256='809c0a2ce9032cbcd7b5313f71af4bdc5c8c771cb86eb7559afd954cab82ebb5')%0A version(
869ba7c298a56ff49d81516d7c5374ebbf3a0949
Add activity for assign/unassign
src/sentry/templatetags/sentry_activity.py
src/sentry/templatetags/sentry_activity.py
""" sentry.templatetags.sentry_activity ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import logging from django import template from django.utils.html import esca...
Python
0
@@ -1124,16 +1124,124 @@ event',%0A + Activity.ASSIGNED: 'assigned this event to %7Buser:s%7D',%0A Activity.UNASSIGNED: 'unassigned this event',%0A Acti
252784ccf5a381f5a611ca74cc486f74218b9ce6
disable tests on gcc11 (#26593)
var/spack/repos/builtin/packages/cppgsl/package.py
var/spack/repos/builtin/packages/cppgsl/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Cppgsl(CMakePackage): """C++ Guideline Support Library""" homepage = "https://github....
Python
0
@@ -1147,14 +1147,14 @@ -args = +return %5B%0A @@ -1168,102 +1168,122 @@ -'-DGSL_CXX_STANDARD=%7B0%7D'.format(self.spec.variants%5B'cxxstd'%5D.value)%0A %5D%0A return args +self.define_from_variant('GSL_CXX_STANDARD', 'cxxstd'),%0A self.define('GSL_TEST', self.run_tests)%0A ...
6d5cd24480a53ea2bf75f1663de707cb84cda380
add version 0.8.0 (#23717)
var/spack/repos/builtin/packages/py-neo/package.py
var/spack/repos/builtin/packages/py-neo/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyNeo(PythonPackage): """Neo is a package for representing electrophysiology data in Pytho...
Python
0
@@ -489,16 +489,112 @@ ar.gz%22%0A%0A + version('0.8.0', sha256='3382a37b24a384006238b72981f1e9259de9bfa71886f8ed564d35d254ace458')%0A vers
d07e988fbcd7698a7776e71aecb7eaabdbdb05be
Fix py-pox build recipe (#14078)
var/spack/repos/builtin/packages/py-pox/package.py
var/spack/repos/builtin/packages/py-pox/package.py
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPox(PythonPackage): """Utilities for filesystem exploration and automated builds.""" ...
Python
0
@@ -430,15 +430,114 @@ 0.2. -3.zip%22%0A +5.tar.gz%22%0A%0A version('0.2.5', sha256='2b53fbdf02596240483dc2cb94f94cc21252ad1b1858c7b1c151afeec9022cc8') %0A @@ -912,8 +912,281 @@ build')%0A +%0A def url_for_version(self, version):%0A url = %22https://pypi.io/packages/source/p/pox/%22%0A if vers...
1916fb8aeb405386ac0836fb85ef0fd23745fd65
Fix failing simulator doc manager test
mongo_connector/doc_managers/doc_manager_simulator.py
mongo_connector/doc_managers/doc_manager_simulator.py
# Copyright 2013-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
Python
0.000003
@@ -3414,16 +3414,76 @@ e_spec)%0A + if %22_id%22 in updated:%0A updated.pop(%22_id%22)%0A @@ -3509,34 +3509,27 @@ _key%5D = -updated.pop(%22 +document _id -%22) %0A
4af4f74e6da581f04be1d6689ad2681b2b7ff39d
fix another test
corehq/util/workbook_reading/adapters/xlsx.py
corehq/util/workbook_reading/adapters/xlsx.py
from __future__ import absolute_import from __future__ import unicode_literals from contextlib import contextmanager from zipfile import BadZipfile from datetime import datetime, time import openpyxl from openpyxl.utils.datetime import from_excel from openpyxl.utils.exceptions import InvalidFileException from corehq.ut...
Python
0.000292
@@ -881,16 +881,17 @@ ARKER = +b '%5Cxd0%5Cxc
241aef62001d79ec23afb4636b806615dff01f4c
Add example using Scheduler. Fixes #15.
tempora/schedule.py
tempora/schedule.py
""" Classes for calling functions a schedule. """ import datetime import numbers import abc import bisect import pytz def now(): """ Provide the current timezone-aware datetime. A client may override this function to change the default behavior, such as to use local time or timezone-naïve times. ...
Python
0
@@ -38,16 +38,427 @@ chedule. + Has time zone support.%0A%0AFor example, to run a job at 08:00 every morning in 'Asia/Calcutta':%0A%0A%3E%3E%3E job = lambda: print(%22time is now%22, datetime.datetime())%0A%3E%3E%3E time = datetime.time(8, tzinfo=pytz.timezone('Asia/Calcutta'))%0A%3E%3E%3E cmd = PeriodicCommandFixedDe...
c4b3c8417e0cb6debbde9a6dd876a6800476a48d
Set completed_at in finalize_job
terry/controller.py
terry/controller.py
import sys from datetime import datetime, timedelta from uuid import uuid4 import pymongo from .api import ( Job, IJobController, IWorkerController, RetriableError, ConcurrencyError ) __all__ = ['Controller'] class Controller(IJobController, IWorkerController): HEARTBEAT_TIMEOUT = timedelta(minutes=1...
Python
0.000003
@@ -6317,16 +6317,80 @@ xception +,%0A completed_at=datetime.utcnow() )%0A%0A d
2e6b30bf885b6b12ebce491781ffb63569ec7417
Add debugging to ComputeCapabilitiesFilter
nova/scheduler/filters/compute_capabilities_filter.py
nova/scheduler/filters/compute_capabilities_filter.py
# Copyright (c) 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
Python
0.000075
@@ -2426,16 +2426,154 @@ , req):%0A + LOG.debug(_(%22extra_spec requirement '%25(req)s' does not match %22%0A %22%25(cap)s'%22), %7B'req': req, 'cap': cap%7D)%0A
bfb0ecdcb4b232e3b389d82a9ecc63e739aa7184
add test case for hmc sampler
GPy/testing/inference_tests.py
GPy/testing/inference_tests.py
# Copyright (c) 2014, Max Zwiessele # Licensed under the BSD 3-clause license (see LICENSE.txt) """ The test cases for various inference algorithms """ import unittest import numpy as np import GPy #np.seterr(invalid='raise') class InferenceXTestCase(unittest.TestCase): def genData(self): np.random.seed...
Python
0
@@ -1871,16 +1871,565 @@ al=2)%0A%0A%0A +class HMCSamplerTest(unittest.TestCase):%0A%0A def test_sampling(self):%0A np.random.seed(1)%0A x = np.linspace(0.,2*np.pi,100)%5B:,None%5D%0A y = -np.cos(x)+np.random.randn(*x.shape)*0.3+1%0A%0A m = GPy.models.GPRegression(x,y)%0A m.kern.l...
6c05c8c91dcb7b631df932e19f363f67049e0872
Fix ValueError: path is on mount 'X:', start on mount 'D:' on Windows
scipy/special/_precompute/expn_asy.py
scipy/special/_precompute/expn_asy.py
"""Precompute the polynomials for the asymptotic expansion of the generalized exponential integral. Sources ------- [1] NIST, Digital Library of Mathematical Functions, http://dlmf.nist.gov/8.20#ii """ from __future__ import division, print_function, absolute_import import os import warnings try: # Can remo...
Python
0.999764
@@ -820,18 +820,39 @@ ated by -%7B%7D +_precompute/expn_asy.py .%0A * Do @@ -884,48 +884,8 @@ %0A%22%22%22 -.format(os.path.relpath(__file__, '..')) %0A%0A%0Ad
df2c30b30138bba1ece13048c09e9b9c81d9af0e
make files fields read_only
discussion/serializers.py
discussion/serializers.py
from rest_framework import serializers from discussion.models import (Category, Forum, Topic, Comment, Tag, TopicNotification, TopicLike, CommentLike, TopicFile, CommentFile) from accounts.serializers import TimtecUserSerializer class BaseUserSerializer(TimtecUserSerializer): pass ...
Python
0
@@ -3467,24 +3467,40 @@ er(many=True +, read_only=True )%0A%0A class
0da6a2efbc6b67ca58f378ce188fbbcf0a264f79
Update import line to reflect new libroutez split.
createdb.py
createdb.py
#!/usr/bin/python # This script imports a transit feed into the django database # It must be run after creategraph, so that the shapes can be # created import transitfeed from tripgraph import * import sys import os import simplejson import settings # Manually import django sys.path.append(os.path.join(os.getcwd(), ...
Python
0
@@ -171,16 +171,26 @@ ed%0Afrom +libroutez. tripgrap
efa4a38597d1783af665b157afd6247293d4bd06
Fix a bug in ensure_queryset_consistency IN MASTER
djangae/db/consistency.py
djangae/db/consistency.py
from django.db.models.query import QuerySet def ensure_instance_included(queryset, included_id): """ HRD fighting generate for iterating querysets. In the common case of having just created an item, this inserts the item at the correct place in a subsequent query. This guarantees ...
Python
0.00001
@@ -2590,16 +2590,17 @@ ded and +( is_less( @@ -2614,16 +2614,37 @@ d, item) + or included == item) and not
f3d4c9a485abe9b92894fadc4d4db7f075b4d4e1
Update python.py
wigs/python.py
wigs/python.py
class python(Wig): git_uri = 'https://github.com/python/cpython' tarball_uri = 'https://github.com/python/cpython/archive/v$RELEASE_VERSION$.tar.gz' last_release_version = 'v2.7.13' dependencies = ['openssl', 'ncurses']
Python
0.00003
@@ -217,10 +217,37 @@ ncurses' +, 'readline', 'zlib', 'bz2' %5D%0A
bd8a31c675e86f52db2fe473be22e4b497ab5bd1
test on kvdb key count to get how many diary entries
_src/om2py5w/5wex0/index.wsgi
_src/om2py5w/5wex0/index.wsgi
# -*- coding: utf-8 -*- #!/usr/bin/env python # author: bambooom ''' MyDiary Web Application Open web browser and access http://bambooomdiary.sinaapp.com/ You can read the old diary and input new diary ''' from bottle import Bottle, request, route, run, template import sae import sae.kvdb from time import localtime, s...
Python
0
@@ -385,21 +385,19 @@ d_diary_ -bykey +all (count): @@ -448,16 +448,34 @@ .read()%0A +%09for i in count:%0A%09 %09log.app @@ -493,16 +493,16 @@ count))%0A - %09return @@ -566,16 +566,19 @@ )%0A%09count +key = str(c @@ -702,16 +702,19 @@ ount +key ,diary)%0A #%09f @@ -709,16 +709,42 @@ ,diary)%0A +%09coun...
70556229f5bc40a011afef61c2495c075d750b38
version bump
django_anyvcs/__init__.py
django_anyvcs/__init__.py
# Copyright 2013 Scott Duckworth # # This file is part of django-anyvcs. # # django-anyvcs is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
Python
0.000001
@@ -744,13 +744,13 @@ __ = '2. -1 +2 .0'%0A
e7e6cc998ab8ed5d1d1330c7f13c10e84826e131
Add the new fields in the alembic script
alembic/versions/1868e29e8306_add_compose_details_and_compose_job_.py
alembic/versions/1868e29e8306_add_compose_details_and_compose_job_.py
"""add compose details and compose job details table Revision ID: 1868e29e8306 Revises: 55932e5d6b3f Create Date: 2016-04-26 18:28:54.865917 """ # revision identifiers, used by Alembic. revision = '1868e29e8306' down_revision = '55932e5d6b3f' branch_labels = None depends_on = None from alembic import op import sqla...
Python
0
@@ -586,20 +586,492 @@ Column(' -type +respin', sa.String(length=255), nullable=False),%0A sa.Column('type', sa.String(length=255), nullable=False),%0A sa.Column('passed', sa.Integer(), nullable=True, default=0),%0A sa.Column('failed', sa.Integer(), nullable=True, default=0),%0A sa.Column('...
6f2adf06d9f0385305472f200af06d869db3e9b3
Create some base views which call manager's synchronise function every time data is retrieved
django_vend/core/views.py
django_vend/core/views.py
from django.shortcuts import render # Create your views here.
Python
0
@@ -9,55 +9,808 @@ ngo. -shortcuts import render%0A%0A# Create your views here. +contrib.auth.mixins import LoginRequiredMixin%0A%0A%0Aclass VendAuthMixin(LoginRequiredMixin):%0A def get_queryset(self):%0A retailer = self.request.user.vendprofile.retailer%0A return self.model.objects.filter(retailer=r...
a406b42ab8f1cd2c7b53a3cbacc30d7fd5a0e820
Update to 0.0.96
djconnectwise/__init__.py
djconnectwise/__init__.py
# -*- coding: utf-8 -*- VERSION = (0, 0, 95, 'alpha') # pragma: no cover if VERSION[-1] != "final": __version__ = '.'.join(map(str, VERSION)) else: # pragma: no cover __version__ = '.'.join(map(str, VERSION[:-1]))
Python
0.000001
@@ -39,9 +39,9 @@ 0, 9 -5 +6 , 'a
b78ea2493b4fb6bea60ceb48237394b99ee8bcdd
fix unittest import in accessors
pysal/contrib/geotable/ops/tests/test_accessors.py
pysal/contrib/geotable/ops/tests/test_accessors.py
from ....pdio import read_files as rf from .._accessors import __all__ as to_test from unittest as ut class Test_Accessors(ut.TestCase): def test_area(self): raise def test_bbox(self): raise def test_bounding_box(self): raise def test_centroid(self): raise def test_h...
Python
0
@@ -75,20 +75,22 @@ to_test%0A -from +import unittes
799241d25dfbe2ed345ba8161d1dbf17a709fa84
Refactor in genetic algorithm
MT-GA/src/genetic-algorithm.py
MT-GA/src/genetic-algorithm.py
import random import string class GA: def __init__(self, pop_size, mutation_rate, genes, fitness, generator, max_iter, select='default'): self.population_size = pop_size self.mutation = mutation_rate self.genes = genes self.fitness_function = fitness self.generator_function...
Python
0.000236
@@ -107,16 +107,29 @@ nerator, + min_fitness, max_ite @@ -129,16 +129,20 @@ max_iter +=100 , select @@ -381,16 +381,55 @@ max_iter +%0A self.min_fitness = min_fitness %0A%0A @@ -674,37 +674,190 @@ -while i %3C= self.max_iteration +fitness = self.get_fitness(population)%0A best = populat...
a1590b4b91bab0174edb99e9b54d8a47e008ebc3
update version
networkapiclient/__init__.py
networkapiclient/__init__.py
# -*- coding:utf-8 -*- # 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 "Lice...
Python
0
@@ -859,10 +859,10 @@ = ' -19 +20 '%0AVE
6fa13c31a877d3d30b44ee4c0201623f3785ae69
Remove TypeError except clause since it covers other errors and seems to be not needed. Addresses #672
networkx/utils/decorators.py
networkx/utils/decorators.py
import sys from collections import defaultdict from os.path import splitext import networkx as nx from networkx.external.decorator import decorator from networkx.utils import is_string_like def not_implemented_for(*graph_types): """Decorator to mark algorithms as not implemented Parameters ---------- ...
Python
0
@@ -7802,123 +7802,8 @@ gs)%0A - except TypeError:%0A new_args += func.func_defaults%0A result = func(*new_args,**kwargs)%0A
7f620c37a7230f859c83279eabec7d40e9d10503
Disable notifications for allinace updates for now. Can't get it to work
helpers/event_manipulator.py
helpers/event_manipulator.py
import logging from helpers.cache_clearer import CacheClearer from helpers.event_helper import EventHelper from helpers.manipulator_base import ManipulatorBase from helpers.notification_helper import NotificationHelper class EventManipulator(ManipulatorBase): """ Handle Event database writes. """ @cl...
Python
0
@@ -7,16 +7,33 @@ logging +%0Aimport traceback %0A%0Afrom h @@ -930,21 +930,21 @@ vent.key -.id() +_name ))%0A%0A @@ -979,24 +979,8 @@ if -event.dirty and %22all @@ -1007,25 +1007,24 @@ n%22 in event. -_ updated_attr @@ -1020,24 +1020,25 @@ pdated_attrs + :%0A @@ -1104,16 +1104,18 @@ ...
68b6cfbcc07405f488dc0ca866a75a9507dff41e
update event manipulator to update event_type_enum
helpers/event_manipulator.py
helpers/event_manipulator.py
from helpers.manipulator_base import ManipulatorBase class EventManipulator(ManipulatorBase): """ Handle Event database writes. """ @classmethod def updateMerge(self, new_event, old_event): """ Given an "old" and a "new" Team object, replace the fields in the "old" team tha...
Python
0.000001
@@ -527,16 +527,21 @@ ent_type +_enum %22,%0A
a78bc40c8f3548477ea0c42a92214132c380792a
resolve traceback on add followers and channels
addons/calendar/wizard/mail_invite.py
addons/calendar/wizard/mail_invite.py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models from odoo.addons.calendar.models.calendar import get_real_ids class MailInvite(models.TransientModel): _inherit = 'mail.wizard.invite' def default_get(self, fields): """ In ca...
Python
0
@@ -109,16 +109,21 @@ o import + api, models%0A @@ -266,16 +266,31 @@ nvite'%0A%0A + @api.model%0A def
db1c2403477cbd54086a618381ef0da2e08faaa7
Add a missing comma
symaps_proxies/settings/base.py
symaps_proxies/settings/base.py
# -*- coding: utf-8 -*- AWS_CONFIG_FILE = './config/aws_resources.json' AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'BaseNameTag': { 'Key': 'Name', 'Value': 'symaps-prod-proxies' }, 'CreateInternetGateway': True, 'Subnets': [ { ...
Python
0.999999
@@ -1546,32 +1546,33 @@ Ip': '0.0.0.0/0' +, %0A
99c7d06c5c4fa50371a84c139fe6258eb14d6b74
use soupstrainer to speed up parsing
hitsearch/crawler/crawler.py
hitsearch/crawler/crawler.py
# Conrad Dean and Andy Freeland # Explores the Internet so you don't have to! """ The web crawler should be able to move around the internet at a nice, leisurely pace collecting things about web pages. It should collect links to other pages, and it should collect wordcounts of a page, because collecting the entire p...
Python
0
@@ -925,16 +925,55 @@ ounter%0A%0A +class ParseError(Exception):%0A pass%0A%0A class Pa @@ -1096,120 +1096,357 @@ -self.content = None%0A self.parse_page()%0A%0A def parse_page(self):%0A page = urllib2.urlopen(self.url +try:%0A self.parse_page()%0A except urllib2.URLError, ...
efbe10bac8f3dd01b4195993ad74818abcb69151
Fix filter argument for packages
HOME/bin/lib/setup/packages.py
HOME/bin/lib/setup/packages.py
import logging import re import runpy import shutil from pathlib import Path from lib import homebrew, setup from lib.mac import defaults from lib.utils import run, read_config_file log = logging.getLogger() def install_packages(settings, *args, **kwargs): log.info("Installing/upgrading packages") filter = ...
Python
0.000001
@@ -236,17 +236,16 @@ ttings, -* args, ** @@ -322,17 +322,21 @@ args -%5B +.get( 'filter' %5D%0A @@ -331,17 +331,32 @@ 'filter' -%5D +) or args.filter %0A for
64b3cbae56f68ce9786ca8553e9ed2565102368a
clean up resolve logic using collections.Iterable (sapling split of 0848c2ad8b375e6a93f40eb9e6a24f5e4c85495e)
src/python/twitter/pants/targets/util.py
src/python/twitter/pants/targets/util.py
# ================================================================================================== # Copyright 2013 Foursquare Labs, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
Python
0
@@ -932,16 +932,49 @@ liams'%0A%0A +from collections import Iterable%0A from twi @@ -1488,17 +1488,179 @@ zz(arg)%0A -%0A + elif isinstance(arg, Iterable):%0A # If arg is iterable, recurse on its elements.%0A return %5Bresolve(dependency, clazz=clazz) for dependency in arg%5D%0A else:%0A # NOTE @@ -1769...
d0d7f673fd7a3222f19ff13e39fe985ec7ad7126
Format the publish_symbols variable.
nimp/utilities/deployment.py
nimp/utilities/deployment.py
# -*- coding: utf-8 -*- from datetime import date import os import stat import os.path import tempfile; import shutil import stat import glob import fnmatch import re import contextlib import pathlib from nimp.utilities.perforce import * from nimp.utilities.file_mapper import * from nimp.utilities.hashing import * ...
Python
0.000001
@@ -3111,16 +3111,27 @@ %22/s%22, +env.format( env.publ @@ -3141,16 +3141,17 @@ _symbols +) ,%0A
efd025d62b2ff2978d11b2e8bfb9c824a19569e9
Return None if JSONfield is empty
nodeconductor/core/fields.py
nodeconductor/core/fields.py
from __future__ import unicode_literals import re import json from django.db import models from django.core import validators from rest_framework import serializers import six from nodeconductor.core.validators import validate_cron_schedule from nodeconductor.core import utils # XXX: This field is left only for mig...
Python
0.000074
@@ -4105,16 +4105,39 @@ turn obj + if obj != %22%22 else None %0A%0A de
cb78ad0cfe5aa231aca4bdfc8c3d76e6f07e545d
fix test_container_run_option docker client
tests/v2_validation/cattlevalidationtest/core/test_container_run_option.py
tests/v2_validation/cattlevalidationtest/core/test_container_run_option.py
from common_fixtures import * # NOQA TEST_IMAGE = 'ibuildthecloud/helloworld' TEST_IMAGE_LATEST = TEST_IMAGE + ':latest' TEST_IMAGE_UUID = 'docker:' + TEST_IMAGE def test_container_run_with_options_1(client, test_name, socat_containers): hosts = client.list_host(kind='dock...
Python
0.000013
@@ -3923,32 +3923,36 @@ assert inspect%5B%22 +Host Config%22%5D%5B%22Cpuset @@ -3951,16 +3951,20 @@ %5B%22Cpuset +Cpus %22%5D == cp @@ -4180,32 +4180,36 @@ assert inspect%5B%22 +Host Config%22%5D%5B%22Memory
705c325d582d57a6120985e47ef73f565fb0f8b3
Make version format debugging easier
fabric/version.py
fabric/version.py
""" Current Fabric version constant plus version pretty-print method. This functionality is contained in its own module to prevent circular import problems with ``__init__.py`` (which is loaded by setup.py during installation, which in turn needs access to this version information.) """ from subprocess import Popen, ...
Python
0.000017
@@ -1326,16 +1326,68 @@ branch.%0A + * %60%60all%60%60: Returns all of the above, as a dict.%0A %22%22%22%0A @@ -2566,16 +2566,70 @@ yError:%0A + if form == 'all':%0A return versions%0A @@ -2726,8 +2726,65 @@ short')%0A +%0Aif __name__ == %22__main__%22:%0A print get_version('a...
b8074c564892a8e123f25f9db93f308b84cada21
use new log() arguments
0.2/scripts/builder.py
0.2/scripts/builder.py
import subprocess, os from config import PARSE_ERROR_SEGMENT_LENGTH, DYNAMIC_DIR, BUILD_DIRS, JSPATH, JSFLAG, JSOFFSET, JSENDOFFSET, NOSCRIPT from util import log, error, read, write try: from slimit import minify except ImportError: error("missing dependency! type: 'sudo easy_install slimit'") def nextQuote(t...
Python
0.000003
@@ -1514,18 +1514,16 @@ log(%22 -- js: %25s%22%25 @@ -1527,16 +1527,19 @@ s%22%25(js,) +, 1 )%0A if @@ -1695,16 +1695,19 @@ ng html%22 +, 1 )%0A ne @@ -1885,11 +1885,8 @@ og(%22 - - orig @@ -1925,16 +1925,19 @@ ewhtml)) +, 2 )%0A re @@ -3261,16 +3261,19 @@ s%22'%25(p,) +, 1 )%0A @@ -3940...
ec2bd1cf604b8ed92b313901d568cf08b60a8c9d
Fix flake in testIFrame.
telemetry/telemetry/core/backends/chrome/inspector_runtime_unittest.py
telemetry/telemetry/core/backends/chrome/inspector_runtime_unittest.py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core import exceptions from telemetry.core import util from telemetry.unittest import tab_test_case class InspectorRuntimeTest(tab_test_case...
Python
0.000609
@@ -2354,32 +2354,70 @@ ames -.%0A self.assertEquals( + without guarantees on which order they loaded.%0A iframe1 = Test @@ -2455,41 +2455,23 @@ s+2) -, ' +%0A iframe -1')%0A self.assertTrue( +2 = Test @@ -2509,238 +2509,165 @@ s+3) - in %5B'iframe2',%0A ...
71b1648b432dbf2fc1682badb7595bf6c68a1406
Make summary cut posts by the newline too
ghostwriter/Post.py
ghostwriter/Post.py
# Represents a blog post # # This file is from the Ghostwriter software # Copyright (C) 2017 Arthur M from datetime import datetime class Post(object): def __init__(self, ownerid, title, creation_date=None): self._title = title if creation_date is None: creation_date = datetime.u...
Python
0
@@ -1046,16 +1046,27 @@ d a dot +or newline to end t @@ -1077,16 +1077,29 @@ ummary, +%0A or end i @@ -1107,28 +1107,16 @@ with an -%0A ellipsi @@ -1284,17 +1284,17 @@ if ldot -%3C +%3E 0:%0A @@ -1319,64 +1319,135 @@ mary - + '...'%0A else:%0A return summary%...
36735cc4abac79208341ad3b818803f881ffb16e
change to pk
imagersite/imagersite/views.py
imagersite/imagersite/views.py
from __future__ import unicode_literals from django.http import HttpResponse from django.contrib.auth.models import User from django.shortcuts import get_object_or_404, render from django.views.generic import TemplateView from imager_profile.models import Profile from imager_images.models import Photo, Album from djang...
Python
0.000069
@@ -542,23 +542,17 @@ s.get('p -hoto_id +k ')%0A u @@ -3713,176 +3713,8 @@ '%5D%0A%0A - def get_context_data(self, **kwargs):%0A context = super(EditAlbum, self).get_context_data(**kwargs)%0A context%5B'foo'%5D = %22potato%22%0A return context%0A%0A
6c6593c1d764e08e2acf2a1fa8bc2e2e06ab944e
Remove "b" bytes literal marker from initial migration of test app (#96)
wagtailmedia/tests/testapp/migrations/0001_initial.py
wagtailmedia/tests/testapp/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-22 14:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields from wagtail.core import fields class Migration(migrations.Migration): initial = True depende...
Python
0
@@ -772,25 +772,24 @@ erbose_name= -b 'Start date' @@ -859,17 +859,16 @@ lp_text= -b 'Not req @@ -923,25 +923,24 @@ erbose_name= -b 'End date')) @@ -1024,17 +1024,16 @@ se_name= -b 'Start t @@ -1121,17 +1121,16 @@ se_name= -b 'End tim @@ -1875,17 +1875,16 @@ lp_text= -b 'Link ti
503087b7937ab04f93a340dfb8033dc18d55642d
add support for recommonmark before v0.6 (e.g. Debian Buster)
docs/conf.py
docs/conf.py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
Python
0
@@ -4895,16 +4895,264 @@ html'%5D%0A%0A +%0A# determine the supported markdown parser interface%0Aimport recommonmark.parser%0Aif hasattr(recommonmark.parser.CommonMarkParser, 'setup_sections'):%0A # recommonmark v0.6 or later (since Debian Bullseye) supports sphinx's new parser interface%0A source_s @@ -5211,...
16a45b977724b99ebd78f6772dd24b08691e0ecc
Replace deprecated add_stylesheet() with add_css_file() in docs/conf.py.
docs/conf.py
docs/conf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup --------------------------------------...
Python
0
@@ -3344,18 +3344,16 @@ add_ -stylesheet +css_file ('th
d827ee70e57710ca060882fd496cdb7fdd74c5c7
Update list
playback/prepare_host.py
playback/prepare_host.py
from fabric.api import * from fabric.contrib import files from fabric.tasks import Task from fabric.colors import red import os from playback.templates.external_interface import conf_external_interface from playback import common class PrepareHost(common.Common): """ Prepare the OpenStack environment...
Python
0.000001
@@ -845,16 +845,17 @@ ts=%5B +' haproxy1 ,hap @@ -854,17 +854,19 @@ oxy1 -, +',' haproxy2 ,con @@ -861,17 +861,19 @@ haproxy2 -, +',' controll @@ -875,17 +875,19 @@ troller1 -, +',' controll @@ -893,17 +893,19 @@ ler2 -, +',' compute1 ,com @@ -904,17 +904,19 @@ ute1 -, +',' compute2 ,com @@ -915,17 +915...
f5651c4a1bedb6cb64b6f3a4df452b7a07b8d3a1
update print to print() for python 3
microclient/tests.py
microclient/tests.py
from mock import patch import unittest, responses ## # Clients ## from microclient.clients import ProjectService, HoursService, UserService, ServiceBase mock_service_definitions = { "FooService": { "base": "..", "resources": { "someresource" : { "endpoint": "/someresource/", "required_params": ['fo...
Python
0.000134
@@ -5890,14 +5890,8 @@ %0A%0A%09%09 -print self
69d65da262c4f4b5f1854bbdd1f409a461dbd310
fix triangle handedness for OFF meshes
off_to_vtk.py
off_to_vtk.py
#! /usr/bin/env python3 # # Copyright (c) 2017, Forschungszentrum Juelich GmbH # Author: Yann Leprince <y.leprince@fz-juelich.de> # # This software is made available under the MIT licence, see LICENCE.txt. import gzip import re import sys import nibabel import numpy as np import pyvtk # See description of OFF file f...
Python
0
@@ -2321,16 +2321,177 @@ points.T +%0A if np.linalg.det(coord_transform%5B:3, :3%5D) %3C 0:%0A # Flip the triangles to fix inside/outside%0A triangles = np.flip(triangles, axis=1) %0A%0A #
555cda8a6d9d696b8999a7a728111edd36835a73
Fix unit tests [WAL-1670]
src/waldur_mastermind/marketplace/views.py
src/waldur_mastermind/marketplace/views.py
from __future__ import unicode_literals from django_filters.rest_framework import DjangoFilterBackend from waldur_core.core import views as core_views from waldur_core.structure import filters as structure_filters from waldur_core.structure import permissions as structure_permissions from . import serializers, model...
Python
0
@@ -150,71 +150,8 @@ ews%0A -from waldur_core.structure import filters as structure_filters%0A from @@ -1284,115 +1284,8 @@ zer%0A - lookup_field = 'uuid'%0A filter_backends = (structure_filters.GenericRoleFilter, DjangoFilterBackend)%0A
4e09732945d7d81e48ac43be7e51637ba27d3a92
Update help messages
src/passgen.py
src/passgen.py
import string import random import argparse def passgen(length=12): """Generate a strong password with *length* characters""" pool = string.ascii_uppercase + string.ascii_lowercase + string.digits return ''.join(random.SystemRandom().choice(pool) for _ in range(length)) def main(): parser = argparse...
Python
0
@@ -329,16 +329,37 @@ tParser( +%0A description= %22Generat @@ -384,16 +384,21 @@ ssword.%22 +%0A )%0A pa @@ -491,32 +491,82 @@ ters to generate + %22%0A %22for each password %22,%0A
90b131904782365f5bdb514c37977b31da666b91
Add performance test.
test/server.py
test/server.py
#! /usr/bin/env python # # Copyright (c) 2010 Red Hat, Inc. # # Authors: Jeff Ortel <jortel@redhat.com> # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FIT...
Python
0.000002
@@ -2913,24 +2913,308 @@ 'XYZ'%0A %0A + N = 1000%0A agent = Agent(uuid)%0A dog = agent.Dog()%0A t = Timer()%0A t.start()%0A print 'measuring performance ...'%0A for i in range(0,N):%0A dog.bark('performance!')%0A t.stop()%0A print 'total=%25s, percall=%25f (ms)' %25 (t, (t.duratio...
b38f465e512f9b7e79935c156c60ef56d6122387
Order HTTP methods in constant.
aiohttp_middlewares/constants.py
aiohttp_middlewares/constants.py
""" ============================= aiohttp_middlewares.constants ============================= Collection of constants for ``aiohttp_middlewares`` project. """ #: Set of idempotent HTTP methods IDEMPOTENT_METHODS = frozenset({'GET', 'HEAD', 'OPTIONS', 'TRACE'}) #: Set of non-idempotent HTTP methods NON_IDEMPOTENT_ME...
Python
0
@@ -337,38 +337,38 @@ t(%7B' -POST +DELETE ', 'P -UT +ATCH ', 'P -ATCH', 'DELETE +OST', 'PUT '%7D)%0A
d2ec1eca12ee2f6356a96009e65f60b1975f9ecd
Fix typo in message
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
from django.contrib import messages from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse from django.utils.translation import gettext_lazy as _ from django.views.generic import DetailView, RedirectView, UpdateView User = get_user_model...
Python
0.998587
@@ -919,17 +919,23 @@ _(%22Info -s +rmation success
9cc95dac8418b230e3c1d0510ad352958286a6f2
patch for 1.7 version migration (Site instance creation)
alert/migrations/0001_initial.py
alert/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import django.utils.timezone import alert.models class Migration(migrations.Migration): dependencies = [ ('auth', '0001_initial'), ('sites', '0001_initial'), ...
Python
0
@@ -183,16 +183,308 @@ odels%0A%0A%0A +def sites_patch_django17(apps, schema_editor):%0A import django%0A ver = django.get_version()%0A%0A if ver.startswith('1.7'):%0A from django.contrib.sites.management import create_default_site%0A from django.apps import apps%0A create_default_site(ap...
fbb2c05aef76c02094c13f5edeaecd9b7428ff11
Update UI preferences model (dict)
alignak_backend/models/uipref.py
alignak_backend/models/uipref.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Resource information of host """ def get_name(): """ Get name of this resource :return: name of this resource :rtype: str """ return 'uipref' def get_schema(): """ Schema structure of this resource :return: schema dictionnary ...
Python
0
@@ -1133,11 +1133,11 @@ ': ' -lis +dic t',%0A @@ -1186,33 +1186,47 @@ 'title': %22 -User name +Preference's dictionary %22,%0A
5e2e06dcdc973663cba0677c185e5efdd4a01b8c
Use lxml to pretty-print cached XML. minidom inserts too many spaces!
amazonproduct/contrib/caching.py
amazonproduct/contrib/caching.py
import os import tempfile import xml.dom.minidom try: # make it python2.4 compatible! from hashlib import md5 except ImportError: # pragma: no cover from md5 import new as md5 from amazonproduct.api import API DEFAULT_CACHE_DIR = tempfile.mkdtemp(prefix='amzn_') class ResponseCachingAPI (API): """ ...
Python
0
@@ -23,30 +23,30 @@ ile%0A -import xml.dom.minidom +from lxml import etree %0A%0Atr @@ -1513,146 +1513,8 @@ -node = xml.dom.minidom.parseString(resp.read())%0A fp.write(node.toprettyxml())%0A #from lxml import etree%0A # fp.w
a8ac3ef011d7d9c16f4c9cd14989a18c502ba746
Integrate naive spellchecker with get_category
analysis/twitter/get_category.py
analysis/twitter/get_category.py
#!/usr/bin/env python2 import sys import os import random # Install nltk: 'sudo pip install -U pyyaml nltk' from nltk.stem.lancaster import LancasterStemmer from nltk.metrics.distance import edit_distance # Import predictor words (predictors_dict) sys.path.append('keywords') import predictors # predictors_dict = ...
Python
0.000043
@@ -31,32 +31,8 @@ sys -%0Aimport os%0Aimport random %0A%0A# @@ -132,56 +132,8 @@ mer -%0Afrom nltk.metrics.distance import edit_distance %0A%0A# @@ -453,12 +453,11 @@ D = -Fals +Tru e%0A%0An @@ -2252,26 +2252,37 @@ stion = -spellcheck +naive_checker.suggest (w)%0A @@ -2394,264 +2394,249 @@ ne%0A%0A ...
ad1e6e26184bcc7219ac715bbf435bfdd26aa458
Fix indenting
CookieDecrypter.py
CookieDecrypter.py
#!/usr/bin/python from Colours import Colours from Core import decrypt from DB import get_keys import os, sys, re file = open(sys.argv[1], "r") result = get_keys() for line in file: if re.search("SessionID", line): if result: for i in result: try: value = decrypt(i[0], line.split(...
Python
0.000369
@@ -161,16 +161,32 @@ keys()%0A%0A +if result:%0A for line @@ -195,16 +195,21 @@ n file:%0A + if @@ -242,27 +242,19 @@ e):%0A -%09 if result:%0A + -%09 +%09 for @@ -270,17 +270,28 @@ lt:%0A -%09 + try: @@ -304,16 +304,28 @@ + + value = @...
762a7d838e814759de0eb8d8bffc6a36d2652097
Version bump to 0.0.4.
aistreams/python/pip_package/setup.py
aistreams/python/pip_package/setup.py
# Copyright 2020 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, ...
Python
0.000003
@@ -742,17 +742,17 @@ = %220.0. -3 +4 %22%0AREQUIR
2fb64e3c5594e928b252d412539f0fc6875aec21
Remove cv2 import for sticky-rect
algorithms/sticky-rect/sticky-rect.py
algorithms/sticky-rect/sticky-rect.py
#!/usr/bin/env python import cv2 import os, sys, argparse class Rect: def __init__(self, x, y, width, height): self.x = x self.y = y self.width = width self.height = height def __str__(self): return '{0} {1} {2} {3}'.format(self.x, self.y, self.width, self.height) ...
Python
0
@@ -20,19 +20,8 @@ on%0A%0A -import cv2%0A impo
ce94c0980574a9bca8d48730aa8a9e02818f26f2
add 64-bit support to python interface to validator.
src/trusted/validator_ragel/validator.py
src/trusted/validator_ragel/validator.py
# Copyright (c) 2013 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import ctypes import sys # Some constants from validator.h VALIDATION_ERRORS_MASK = 0x01ffc000 BAD_JUMP_TARGET = 0x40000000 CALL_USER_CALLBACK_ON...
Python
0.000037
@@ -917,24 +917,127 @@ t first')%0A%0A%0A +def ValidateChunkAMD64_(*args):%0A raise AssertionError('using validator without calling Init first')%0A%0A%0A def Init(val @@ -1354,16 +1354,45 @@ unkIA32_ +%0A global ValidateChunkAMD64_ %0A%0A vali @@ -1623,20 +1623,108 @@ ateChunk -IA32 +AMD64_ = validator_dll.Vali...
a82d7908800c06d520c82b64af1cc2807518acc5
add test for floats in matrix multipllication
test_matrix.py
test_matrix.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest import random from matrix import Matrix, addedProduct class TestAddedProduct(unittest.TestCase): def testBasicAddedProduct(self): list1 = [1, 2, 3] list2 = [2, 4, 6] self.assertEqual(28, addedProduct(list1, list2)) class Tes...
Python
0
@@ -2468,16 +2468,606 @@ atrix)%0A%0A + def test_multiplying_matrixes_with_floats(self):%0A matrix1 = Matrix(2, 3)%0A matrix1.setRow(1, %5B3.5, 2, 1%5D)%0A matrix1.setRow(2, %5B1, 0, 2.5%5D)%0A%0A matrix2 = Matrix(3, 2)%0A matrix2.setColumn(1, %5B0.5, 0, 4%5D)%0A matrix2.se...
588af81724e41112d5df76473cede7469b76e229
Update extract.py
src/extract.py
src/extract.py
import urllib2 import json #gets the json data for the corresponding song id def get_song_data(id): try: json_data = urllib2.urlopen("http://api.rapgenius.com/songs/" + str(id)) except urllib2.HTTPError: return None data = json.loads(json_data.read()) return data #gets the song tit...
Python
0.000001
@@ -67,24 +67,49 @@ ing song id%0A +#other wise returns None%0A def get_song @@ -394,32 +394,37 @@ :%0A return + None %0A return data @@ -1169,16 +1169,21 @@ return + None %0A ret @@ -1592,16 +1592,73 @@ rtist id + and that artists songs%0A#if not avaible None is returned %0Adef get @@ -2498,16 ...
95279d1209f7aa32fd7bcc4083f9efba09f0a970
Revert hacks and remove leftovers
tests/flatc.py
tests/flatc.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import os import sys import traceback # Temporary hack sys.path.append("/home/asharma/src/thriftpy") from fbs.fbs import FBSType from fbs.parser import load, load_fp from fbs.parser.exc import FbsParserError, FbsGrammerError from functools import partial...
Python
0
@@ -100,72 +100,8 @@ ck%0A%0A -# Temporary hack%0Asys.path.append(%22/home/asharma/src/thriftpy%22)%0A%0A from @@ -728,38 +728,8 @@ name -%0A #raise KeyError(name) %0A%0AGL
53b9eff3ffc1768d3503021e7248351e24d59af7
Fix test http server, change to echo back request body
tests/httpd.py
tests/httpd.py
import SimpleHTTPServer import BaseHTTPServer class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_POST(s): s.send_response(200) s.end_headers() if __name__ == '__main__': server_class = BaseHTTPServer.HTTPServer httpd = server_class(('0.0.0.0', 8328), Handler) try: ...
Python
0
@@ -1,28 +1,4 @@ -import SimpleHTTPServer%0A impo @@ -30,21 +30,19 @@ Handler( -Simpl +Bas eHTTPSer @@ -49,13 +49,11 @@ ver. -Simpl +Bas eHTT @@ -87,16 +87,19 @@ o_POST(s +elf ):%0A @@ -105,51 +105,367 @@ -s.send_response(200)%0A s.end_headers( +content_type = self.headers.getheader('content-ty...
ed063466955c300f090626cfa0cfd47cae47c8ba
use the adapter since that's what holds the selection
ELiDE/rulesview.py
ELiDE/rulesview.py
# This file is part of LiSE, a framework for life simulation games. # Copyright (C) 2013-2014 Zachary Spector, ZacharySpector@gmail.com from inspect import getsource from kivy.logger import Logger from kivy.factory import Factory from kivy.lang import Builder from kivy.properties import ( ListProperty, ObjectPr...
Python
0.000001
@@ -4331,24 +4331,32 @@ rule: list. +adapter. selection%5B0%5D @@ -4364,16 +4364,41 @@ if list. +adapter and list.adapter. selectio
698902a817ca081addc6cb71978c17cd8cf42a7b
fix error value output
NeuralNetwork/NeuralNetwork.py
NeuralNetwork/NeuralNetwork.py
from Layer import InputLayer, Layer, Readiness class NeuralNetwork: def __init__(self, shape): self.layers = [] self.shape = shape self.time = 0 self.input_layer = InputLayer(shape[0]) self.middle_layer = Layer(shape[1], self.input_layer.neurons) self.input_layer....
Python
0.000015
@@ -2020,9 +2020,25 @@ turn err + / len(database) %0A
f08612a5234c7781884f34a75ea7f651779e68fb
fix benign exception logging
src/sanepg2.py
src/sanepg2.py
# # Copyright 2013 University of Southern California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Python
0.000001
@@ -1608,16 +1608,44 @@ port web +%0Aimport sys%0Aimport traceback %0A%0Aclass @@ -4817,67 +4817,341 @@ cept -:%0A conn.rollback()%0A web.debug('got e' + GeneratorExit, e:%0A # happens normally at end of result yielding sequence%0A raise%0A except:%0A et...
5ef56428a8e752edc4a64f53d682a625c25d7c5f
Fix typo
src/main/python/infra_buddy/aws/ecs.py
src/main/python/infra_buddy/aws/ecs.py
import boto3 import pydash from copy import deepcopy from infra_buddy.utility import print_utility, waitfor from infra_buddy.aws.cloudformation import CloudFormationBuddy class ECSBuddy(object): def __init__(self, deploy_ctx): # type: (DeployContext) -> None super(ECSBuddy, self).__init__() ...
Python
0.999999
@@ -3431,17 +3431,16 @@ == 'true -e '%0A%0A
f8e6add37e6917d656bf3c8811f415417d32ca31
improve wording
src/main/python/monocyte/handler/s3.py
src/main/python/monocyte/handler/s3.py
# Monocyte - Search and Destroy unwanted AWS Resources relentlessly. # Copyright 2015 Immobilien Scout GmbH # # 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/licens...
Python
0.999911
@@ -2215,30 +2215,23 @@ .. ( -skip remaining %7B%7D keys +%7B%7D keys omitted )%22.f
d46cd87c0bce95cc183f7b21b68f3c48ebe4f67e
Add convenience function to add type of 'self' to bound method's argtypes
numba/exttypes/signatures.py
numba/exttypes/signatures.py
# -*- coding: utf-8 -*- """ Handle signatures of methods in @jit and @autojit classes. """ import types import warnings import inspect import numba from numba import * from numba import error from numba import typesystem from numba.minivect import minitypes #---------------------------------------------------------...
Python
0
@@ -4264,32 +4264,307 @@ --------------%0A%0A +def method_argtypes(method, ext_type, argtypes):%0A if method.is_static:%0A leading_arg_types = ()%0A elif method.is_class:%0A leading_arg_types = (numba.object_,)%0A else:%0A leading_arg_types = (ext_type,)%0A%0A return leading_arg_types ...
b5235a67948da28fca6faf09337cb909c1f1825e
Read input
PythonTests/WebsocketClient.py
PythonTests/WebsocketClient.py
from ws4py.client.threadedclient import WebSocketClient import Adafruit_BBIO.GPIO as GPIO class DummyClient(WebSocketClient): def opened(self): #GPIO.setup("USR3", GPIO.OUT) #GPIO.setup("USR2", GPIO.IN) for i in range(0, 200, 25): self.send("#" * i) def closed(self, code...
Python
0.999999
@@ -566,21 +566,20 @@ .setup(%22 -P8_10 +USR3 %22, GPIO. @@ -612,13 +612,12 @@ ut(%22 -P8_10 +USR3 %22, G @@ -653,16 +653,51 @@ eanup()%0A + print %22should be HIGH%22%0A %0A%0Aif __n
6d91240f3416e85bf525e72c0151964206912b57
Use https URLs for openstreetmap.org. The oauth endpoint must change soon, the rest is good practice
social_core/backends/openstreetmap.py
social_core/backends/openstreetmap.py
""" OpenStreetMap OAuth support. This adds support for OpenStreetMap OAuth service. An application must be registered first on OpenStreetMap and the settings SOCIAL_AUTH_OPENSTREETMAP_KEY and SOCIAL_AUTH_OPENSTREETMAP_SECRET must be defined with the corresponding values. More info: http://wiki.openstreetmap.org/wiki/...
Python
0.000005
@@ -278,24 +278,25 @@ e info: http +s ://wiki.open @@ -524,32 +524,33 @@ TION_URL = 'http +s ://www.openstree @@ -596,32 +596,33 @@ OKEN_URL = 'http +s ://www.openstree @@ -679,16 +679,17 @@ = 'http +s ://www.o @@ -1304,16 +1304,17 @@ n, 'http +s ://api.o
51457d7c55a1e8e713d4407533e0b2159dd759c3
Improve display of validation error messages. [SDESK-5444] (#1977)
superdesk/macros/validate_for_publish.py
superdesk/macros/validate_for_publish.py
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from superde...
Python
0
@@ -491,16 +491,28 @@ gettext%0A +import json%0A %0A%0Adef va @@ -871,16 +871,27 @@ onError( +json.dumps( validati @@ -906,16 +906,17 @@ s%5B0%5D%5B0%5D) +) %0A%0A re
19b3f6e6767732561429fa90736d963ee793e4eb
fix bug on multipart upload
ossftp/oss_file_operation.py
ossftp/oss_file_operation.py
# -*- coding: utf-8 -*- import time import datetime import types from pyftpdlib.filesystems import FilesystemError import oss2 from oss2.exceptions import * import defaults class TrickFile: def __init__(self, name, resp): self.name = name self.resp = resp self.closed = False def read...
Python
0
@@ -3065,36 +3065,32 @@ lf.upload_id is -not None:%0A
8e0680013bd2b4791129aac386d48be54bef3a5b
clear command - debug logging even if log parameter is false
pageobject/commands/clear.py
pageobject/commands/clear.py
from selenium.webdriver.common.keys import Keys def clear(self, log=True, press_enter=False): """ Clear the page object. :param bool log: whether to log or not (defualt is True) :param bool press_enter: whether to press enter key after the element is cleared (defualt is False) :returns: `...
Python
0.000007
@@ -617,36 +617,32 @@ _log_id_short))%0A - self.logger. @@ -815,28 +815,24 @@ _id_short))%0A - self.log @@ -1070,20 +1070,16 @@ short))%0A -
1e47eebcae0789349cbcd62cb04a9272fea1e3a0
Fix string formatting error and include tablename in copy command
parsely_raw_data/redshift.py
parsely_raw_data/redshift.py
from __future__ import absolute_import, print_function from .schema import mk_redshift_schema import psycopg2 from . import utils __license__ = """ Copyright 2016 Parsely, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may ob...
Python
0.000001
@@ -3335,18 +3335,17 @@ query = -%22%22 +( %0A %22CO @@ -3555,16 +3555,19 @@ ' GZIP;%22 +%0A%09) .format( @@ -3567,16 +3567,40 @@ format(%0A +%09table_name=table_name,%0A
b9143462c004af7d18a66fa92ad94585468751b9
Change IRFieldClassic to use 'encoded_str_type'
IndexedRedis/fields/classic.py
IndexedRedis/fields/classic.py
# Copyright (c) 2017 Timothy Savannah under LGPL version 2.1. See LICENSE for more information. # # fields.classic - The IRField type which behaves like the "classic" IndexedRedis string-named fields. # # vim: set ts=8 shiftwidth=8 softtabstop=8 noexpandtab : from . import IRField, IR_NULL_STRINGS, irNull from ..co...
Python
0
@@ -336,16 +336,34 @@ tobytes +, encoded_str_type %0A%0Aclass @@ -774,16 +774,44 @@ me=name, + valueType=encoded_str_type, hashInd
b6b59d93a8b290bebea99c4c7d095cf7ab91cc77
fix #88
gitfs/utils/args.py
gitfs/utils/args.py
import os import grp import getpass import tempfile class Args(object): def __init__(self, parser): self.DEFAULTS = { "repos_path": self.get_repos_path(), "user": self.get_current_user(), "group": self.get_current_group(), "foreground": True, "br...
Python
0
@@ -170,18 +170,16 @@ pos_path -() ,%0A @@ -213,18 +213,16 @@ ent_user -() ,%0A @@ -258,18 +258,16 @@ nt_group -() ,%0A @@ -867,48 +867,8 @@ s):%0A - args = self.set_defaults(args)%0A%0A @@ -1207,16 +1207,57 @@ value)%0A +%0A args = self.set_defaults(args)%0A%0A ...
e599e01b7602399bf3e13fcad67f1195f6dea2ed
fix after API change
doc/libraries/lib2html.py
doc/libraries/lib2html.py
#!/usr/bin/env python """Usage: lib2html.py [ library | all ] Libraries: BuiltIn (bu) Collections (co) Dialogs (di) OperatingSystem (op) Screenshot (sc) String (st) Telnet (te) """ import sys import os import re ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..')) sys.path....
Python
0
@@ -764,15 +764,8 @@ th, -output= opat
621549a0bd4c5d077bf3cebb75158c34ee6aa7d4
change useraccount/passwd
000-Netconf/01-AddController/edit-config-controller.py
000-Netconf/01-AddController/edit-config-controller.py
from ncclient import manager import ncclient import xml.etree.ElementTree as ET host = "192.168.1.1" username="root" password="root" ##NOTE: # below two colum shall change to switch CPU MAC # <id>00:00:70:72:cf:dc:9d:b2</id> # <datapath-id>00:00:70:72:cf:dc:9d:b2</datapath-id> ...
Python
0.000002
@@ -100,16 +100,65 @@ 8.1.1%22%0D%0A +username=%22netconfuser%22%0D%0Apassword=%22netconfuser%22%0D%0A# username @@ -166,16 +166,17 @@ %22root%22%0D%0A +# password @@ -569,28 +569,28 @@ 0:72:cf:dc:9 -d:b2 +e:da %3C/id%3E%0D%0A @@ -620,36 +620,36 @@ 00:70:72:cf:dc:9 -d:b2 +e:da %3C/datapath-id%3E%0D%0A
88ad03b7419f8ba64a6ee98a3d2d481b1d5b51e1
generate-cut-list example: Ident by 4 spaces (PEP 8)
example-scripts/control-server/generate-cut-list.py
example-scripts/control-server/generate-cut-list.py
#!/usr/bin/env python3 import socket import datetime import sys host = 'localhost' port = 9999 conn = socket.create_connection( (host, port) ) fd = conn.makefile('rw') for line in fd: words = line.rstrip('\n').split(' ') signal = words[0] args = words[1:] if signal == 'message' and args[0] == 'cut': ts = dat...
Python
0.999633
@@ -122,17 +122,16 @@ nection( - (host, p @@ -134,17 +134,16 @@ t, port) - )%0Afd = c @@ -178,17 +178,20 @@ in fd:%0A -%09 + words = @@ -220,17 +220,20 @@ t(' ')%0A%0A -%09 + signal = @@ -242,17 +242,20 @@ ords%5B0%5D%0A -%09 + args = w @@ -264,17 +264,20 @@ ds%5B1:%5D%0A%0A -%09 + if si...
aa349dfaf6159227c5871c16a6ae6b0f9cad4713
use change_plan and dont' save twice
corehq/apps/accounting/management/commands/make_domain_enterprise_level.py
corehq/apps/accounting/management/commands/make_domain_enterprise_level.py
from django.core.management import BaseCommand from corehq import Domain from corehq.apps.accounting.exceptions import NewSubscriptionError from corehq.apps.accounting.models import ( BillingAccount, SoftwarePlanEdition, SoftwarePlanVersion, Subscription, BillingAccountType) class Command(BaseComm...
Python
0
@@ -1026,23 +1026,20 @@ ion. -plan_version = +change_plan( self @@ -1062,16 +1062,17 @@ _version +) %0A @@ -1262,74 +1262,8 @@ urn%0A - subscription.is_active = True%0A subscription.save()%0A @@ -1605,23 +1605,16 @@ -return Subscrip
7a5d8e883e3724d142c0a06c98a5aa4df20440dc
Delete extra stale record from inactive report
custom/icds_reports/utils/aggregation_helpers/distributed/inactive_awws.py
custom/icds_reports/utils/aggregation_helpers/distributed/inactive_awws.py
import datetime from django.utils.functional import cached_property from dateutil.relativedelta import relativedelta from custom.icds_reports.utils.aggregation_helpers.distributed.base import BaseICDSAggregationDistributedHelper class InactiveAwwsAggregationDistributedHelper(BaseICDSAggregationDistributedHelper): ...
Python
0
@@ -533,24 +533,84 @@ f, cursor):%0A + delete_extra_record_query = self.drop_table_query()%0A miss @@ -724,16 +724,66 @@ uery()%0A%0A + cursor.execute(delete_extra_record_query)%0A @@ -876,16 +876,482 @@ arams)%0A%0A + def delete_extra_record_query(self):%0A return%0A ...
98941b6670bca96b56e3ffe2f69a0acbc5692fa0
Use link without variable in wsgi.py to fix cookiecutter generation
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
""" WSGI config for {{ cookiecutter.project_slug }} project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/wsgi/ """ import os from {{ cookiecutter.project_slug }} import get...
Python
0
@@ -212,26 +212,14 @@ /en/ -%7B%7B docs_version %7D%7D +stable /how
6c24d94b6afc260a53e56bc233fbaadc91cb468f
fix test
bustimes/management/tests/test_import_atco_cif.py
bustimes/management/tests/test_import_atco_cif.py
import os import zipfile from tempfile import TemporaryDirectory import time_machine from django.test import TestCase from django.core.management import call_command from django.contrib.gis.geos import Point from busstops.models import Region, Operator, Service, StopPoint, StopUsage from ...models import Route FIXTUR...
Python
0.000002
@@ -2538,102 +2538,8 @@ y')%0A - self.assertContains(response, '%3Clabel for=%22show-all-stops-1%22%3EShow all stops%3C/label%3E')%0A
effa5f84fc93ced38ad9e5d3b0a16bea2d3914ef
Allow column to be a property
caminae/common/templatetags/field_verbose_name.py
caminae/common/templatetags/field_verbose_name.py
from django import template register = template.Library() def field_verbose_name(obj, field): """Usage: {{ object|get_object_field }}""" return obj._meta.get_field(field).verbose_name register.filter(field_verbose_name) register.filter('verbose', field_verbose_name)
Python
0.000013
@@ -20,16 +20,78 @@ template +%0Afrom django.db.models.fields.related import FieldDoesNotExist %0A%0Aregist @@ -198,17 +198,29 @@ d %7D%7D%22%22%22%0A -%0A + try:%0A retu @@ -261,16 +261,164 @@ ose_name +%0A except FieldDoesNotExist:%0A a = getattr(obj, '%25s_verbose_name' %25 field)%0A ...
921f5749a1ed98d7b6e4e4f795515da941f655d9
print -> click.echo
cuv/diff.py
cuv/diff.py
from __future__ import print_function, absolute_import import sys import math from os.path import abspath import colors import click import six from pygments import highlight from pygments.formatters import Terminal256Formatter, TerminalFormatter from pygments.lexers import get_lexer_by_name import coverage from c...
Python
0.000003
@@ -1228,21 +1228,26 @@ -print +click.echo (%22%7B%7D: st @@ -1606,21 +1606,26 @@ -print +click.echo (%0A
0a47e73df006a4af8539ffbb7141e44202140b97
Add an import option as an alias to -b import
pyjs.py
pyjs.py
#! /usr/bin/env python import sys import os.path import datetime import time import traceback from optparse import OptionParser from pyjaco import Compiler # extensions of files that can be compiled to .js VALID_EXTENSIONS = ['.py', '.pyjaco'] # FIXME: This hardcoding is undesirable if os.path.exists("py-builtins.js...
Python
0.000012
@@ -6170,24 +6170,270 @@ builtins%22)%0A%0A + parser.add_option(%22-I%22, %22--import%22,%0A action = %22store_const%22,%0A const = %22import%22,%0A dest = %22builtins%22,%0A help = %22IMPORT builtins using a load statement in each file%5Cn%5CnThis is an alias for -b impo...
f679641cec712641111459b247d2d2905cb9f1f0
Add froala default link prefix
hydrocarbon/settings/base.py
hydrocarbon/settings/base.py
""" Django settings for hydrocarbon project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ import os from urllib.parse import urlparse from django.utils.translat...
Python
0
@@ -4012,16 +4012,49 @@ th': 0,%0A + 'linkAutoPrefix': 'http://',%0A %7D%0AFROALA