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 |
|---|---|---|---|---|---|---|---|
7ed5f886d1fc92c3f7c39c7e6c11c15f3151296d | fix romance error | leaguebot/services/alerters/slack.py | leaguebot/services/alerters/slack.py | from leaguebot import app
import leaguebot.models.map as screepmap
import leaguebot.services.screeps as screeps
import leaguebot.services.slack as slack
import re
def sendBattleMessage(battleinfo):
message = getBattleMessageText(battleinfo)
sendToSlack(message)
def getBattleMessageText(battleinfo):
tick... | Python | 0.000018 | @@ -494,32 +494,33 @@
#!/room/' + room
+_
name + '%7C' + roo
@@ -520,16 +520,17 @@
' + room
+_
name + '
@@ -1611,16 +1611,17 @@
essage%0A%0A
+%0A
def send
|
217a3d7c0019ed2261e1ad02bf6b8889f8b5658f | fix python 3 | artagger/Utility/Eval.py | artagger/Utility/Eval.py | # -*- coding: utf-8 -*-
import os
import sys
os.chdir("../")
sys.setrecursionlimit(100000)
sys.path.append(os.path.abspath(""))
os.chdir("./Utility")
from Utility.Utils import getWordTag, readDictionary
def computeAccuracy(goldStandardCorpus, taggedCorpus):
tagged = open(taggedCorpus, "r").read().split()
gol... | Python | 0.999814 | @@ -573,33 +573,32 @@
0%0A for i in
-x
range(len(tagged
@@ -1640,17 +1640,16 @@
or i in
-x
range(le
|
22104f1d0b02ae8d2136e185a9752b6c321d338a | Clarify the usage of "plot_joint" (#1001) | arviz/plots/jointplot.py | arviz/plots/jointplot.py | """Joint scatter plot of two variables."""
from ..data import convert_to_dataset
from .plot_utils import _scale_fig_size, xarray_var_iter, get_coords, get_plotting_function
from ..utils import _var_names
def plot_joint(
data,
var_names=None,
coords=None,
figsize=None,
textsize=None,
kind="scat... | Python | 0.001852 | @@ -807,37 +807,30 @@
s :
-Iter of 2 e.g. (var_1, var_2)
+str or iterable of str
%0A
@@ -857,17 +857,25 @@
plotted
-,
+. iter of
two var
@@ -880,16 +880,82 @@
ariables
+ or one variable (with subset having%0A exactly 2 dimensions)
are req
|
24b54605dcca69f5b5873ffe9ffaf4653828d6ac | fix shape normalization | cupy/padding/pad.py | cupy/padding/pad.py | import numpy
import cupy
import six
def _prepend_const(narray, pad_amount, value, axis=-1):
if pad_amount == 0:
return narray
padshape = tuple(x if i != axis else pad_amount
for i, x in enumerate(narray.shape))
if value == 0:
return cupy.concatenate((cupy.zeros(padsha... | Python | 0.000001 | @@ -1219,31 +1219,27 @@
* ndims%0A
-ndshape
+arr
= numpy.asa
@@ -1258,113 +1258,570 @@
-try:%0A ndshape = numpy.broadcast_to(ndshape, (ndims, 2))%0A except ValueError:%0A message = '
+if arr.ndim %3C= 1:%0A if arr.shape == () or arr.shape == (1,):%0A arr = numpy.ones((ndi... |
eb5e5e8e616db2eca9916a96c24f5bae8ac6c24e | rename port variables | mppsolar/devices/device.py | mppsolar/devices/device.py | import abc
import importlib
import logging
log = logging.getLogger("MPP-Solar")
SERIAL_TYPE_TEST = 1
SERIAL_TYPE_USB = 2
SERIAL_TYPE_ESP32 = 4
SERIAL_TYPE_SERIAL = 8
class AbstractDevice(metaclass=abc.ABCMeta):
"""
Abstract device class
"""
def __init__(self, *args, **kwargs):
self._protoco... | Python | 0.000002 | @@ -75,22 +75,20 @@
olar%22)%0A%0A
-SERIAL
+PORT
_TYPE_TE
@@ -94,22 +94,20 @@
EST = 1%0A
-SERIAL
+PORT
_TYPE_US
@@ -112,22 +112,20 @@
USB = 2%0A
-SERIAL
+PORT
_TYPE_ES
@@ -132,22 +132,20 @@
P32 = 4%0A
-SERIAL
+PORT
_TYPE_SE
@@ -1213,30 +1213,28 @@
return
-SERIAL
+PORT
_TYPE_TEST%0A
@@ -1292,30 +1292,28... |
b15cae6e53fbc98aaf6cfea4a10f16bb0a3c6a45 | Fix Velocity widths | metalline.py | metalline.py | """Class to gather and analyse various metal line statistics"""
import numpy as np
import hdfsim
import halocat
import convert_cloudy
import line_data
import spectra
class MetalLines:
"""Generate metal line spectra from simulation snapshot"""
def __init__(self,num, base, minpart = 400, cloudy_dir="/home/spb/c... | Python | 0.000002 | @@ -4043,24 +4043,33 @@
= np.sum(tau
+,axis = 1
)%0A cu
@@ -4089,18 +4089,129 @@
msum(tau
+,axis = 1
)%0A
+ vel_width = np.zeros(np.shape(tot_tau))%0A for ll in np.arange(0, np.shape(tau)%5B1%5D):%0A
@@ -4232,24 +4232,30 @@
here(cum_tau
+%5Bll,:%5D
%3E 0.05 * to
@@ -4251,32 +42... |
de978e59d0d1782054902658a6617da44d81e4dd | Fix an extra j.... | FingerPrinter.py | FingerPrinter.py | # coding: utf-8
import shutil
import zipfile
from jawa import ClassFile
import hashlib
import jawa
import json
import os
import sys
ClassFiles = {}
Hashes = {}
FingerPrint = {}
FingerPrint["other"] = {}
def BuildClassFilesAndHash(jarfile,ignoreDirs = [],ignoreFiles = []):
print 'Building ClassFiles'
zip ... | Python | 0.000037 | @@ -2305,17 +2305,16 @@
d(type_=
-j
jawa.con
|
6cfeb4fefb0eaa7c47ba8f44b4d1fb640983dc5a | Set version to v0.25.0-dev | soco/__init__.py | soco/__init__.py | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | Python | 0.000001 | @@ -686,11 +686,15 @@
%220.2
-4
+5
.0
+-dev
%22%0A__
|
492db782ce34655908cadefa8a8971bf949ef9a1 | Fix typo | sqlalchemy_utils/types/uuid.py | sqlalchemy_utils/types/uuid.py | from __future__ import absolute_import
import uuid
from sqlalchemy import types
from sqlalchemy.dialects import mssql, postgresql
from .scalar_coercible import ScalarCoercible
class UUIDType(types.TypeDecorator, ScalarCoercible):
"""
Stores a UUID in the database natively when it can and falls back to
... | Python | 0.004618 | @@ -1261,22 +1261,16 @@
r(mssql.
-mssql.
UNIQUEID
|
14a0738ec836bd3369984835797f5002813b270a | Fix imports to local paths | nilearn/_utils/__init__.py | nilearn/_utils/__init__.py |
from niimg_conversions import is_a_niimg, _get_shape, _repr_niimgs, \
copy_niimg, check_niimg, concat_niimgs, check_niimgs
from numpy_conversions import as_ndarray
from cache_mixin import CacheMixin
| Python | 0.000001 | @@ -1,14 +1,15 @@
%0Afrom
+.
niimg_co
@@ -132,16 +132,17 @@
s%0A%0Afrom
+.
numpy_co
@@ -175,16 +175,17 @@
y%0A%0Afrom
+.
cache_mi
|
712fc696bab72c3a1ba92fc84d1c14ad2d6347af | use mkdirp instead of mkdir (#16835) | var/spack/repos/builtin/packages/npm/package.py | var/spack/repos/builtin/packages/npm/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)
import os
import shutil
from spack import *
# NOTE: not actually an Autotools package
class Npm(Package):
"""npm: A ... | Python | 0 | @@ -2314,32 +2314,33 @@
mkdir
+p
(npm_config_cach
@@ -2612,16 +2612,17 @@
mkdir
+p
(npm_con
|
943d3e5e5ac490d51d5cf71958f9b8708baf50a8 | Reorganize some settings. Default to UTC. | ood/settings.py | ood/settings.py | import os
from datetime import timedelta
# All settings here are trumped by settings_local.py, which is imported last.
# In particular, you'll need to set a SECRET_KEY.
# SECRET_KEY = '<some random string>'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEBUG = False
ALLOWED_HOSTS = []
INS... | Python | 0 | @@ -2066,32 +2066,19 @@
ZONE = '
-America/Montreal
+UTC
'%0A%0AUSE_I
@@ -2316,27 +2316,8 @@
15%0A
-%0A# Celery config.%0A%0A
UPDA
@@ -2346,16 +2346,34 @@
S = 60%0A%0A
+# Celery config.%0A%0A
BROKER_U
@@ -2509,24 +2509,11 @@
= '
-America/Montreal
+UTC
'%0A%0A#
|
c8c96913057bcbccce931529fc0f7ebdbad725fa | Add support for matching %s__in | mnd/match.py | mnd/match.py | """
Argument matching.
"""
from collections import namedtuple
class InvalidArg:
pass
def arg_match(m_arg, arg, default=True):
"""
:param m_arg: value to match against or callable
:param arg: arg to match
:param default: will be returned if m_arg is None
if m_arg is a callable it will ... | Python | 0 | @@ -20,16 +20,49 @@
ng.%0A%22%22%22%0A
+from operator import eq, contains
%0Afrom co
@@ -117,14 +117,438 @@
-pass%0A%0A
+def __bool__(self):%0A return False%0A%0A%0Adef arg_comparitor(name):%0A %22%22%22%0A :param arg name%0A :return: pair containing name, comparitor%0A%0A given an argument ... |
867cc8c7d5d7aa6a3f6cf5ae2dd7a12b70f89f15 | Switch to using py_compile directly | test/acid.py | test/acid.py | #!/usr/bin/env python
"""
Test that autopep8 runs without crashing on various Python files.
"""
import os
import sys
import subprocess
import tempfile
def run(filename, log_file, slow_check=False, passes=2000,
ignore_list=['E501']):
"""Run autopep8 on file at filename.
Return True on success.
"""
... | Python | 0 | @@ -1936,54 +1936,15 @@
-return 0 == subprocess.call(%5B'python', '-m', '
+import
py_c
@@ -1949,18 +1949,16 @@
_compile
-',
%0A
@@ -1950,32 +1950,37 @@
compile%0A
+try:%0A
@@ -1979,39 +1979,145 @@
- tmp_filename%5D)
+py_compile.compile(tmp_filename, dora... |
ec3443a000d4d004575b0425ec40640c17d2adfb | Use __version__. | src/template_repl/__init__.py | src/template_repl/__init__.py | def get_version():
return '0.2.1'
| Python | 0.000081 | @@ -1,8 +1,31 @@
+__version__ = '0.2.1'%0A%0A
def get_
@@ -46,16 +46,20 @@
return
-'0.2.1'
+__version__
%0A
|
5d5a739979d2bbf160c951b846a0dcc4acd504c6 | Remove scikits.ts and larry from example | examples/tsa/ex_dates.py | examples/tsa/ex_dates.py | """
Using dates with timeseries models
"""
import statsmodels.api as sm
import numpy as np
import pandas
# Getting started
# ---------------
data = sm.datasets.sunspots.load()
# Right now an annual date series must be datetimes at the end of the year.
# We can use scikits.timeseries and datetime to create this array... | Python | 0 | @@ -252,161 +252,86 @@
ar.%0A
-# We can use scikits.timeseries and datetime to create this array.%0A%0Aimport datetime%0Aimport scikits.timeseries as ts%0Adates = ts.date_array(start_date=
+%0Afrom datetime import datetime%0Adates = sm.tsa.datetools.date_from_range('
1700
+'
, le
@@ -354,271 +354,8 @@
dog)
-, freq=... |
64ecdd0b52b17f5a19b900e61c6932a13906125e | Comment out unused variables and add used but not declared class variables to __init__ method in soc.logic.allocations module. | app/soc/logic/allocations.py | app/soc/logic/allocations.py | #!/usr/bin/python2.5
#
# Copyright 2009 the Melange authors.
#
# 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... | Python | 0 | @@ -1791,16 +1791,167 @@
= value%0A
+ %0A self.locked_slots = %7B%7D%0A self.adjusted_slots = %7B%7D%0A self.adjusted_orgss = %5B%5D%0A self.locked_orgs = %5B%5D%0A self.unlocked_applications = %5B%5D
%0A sel
@@ -2888,24 +2888,26 @@
' and b'%0A
+ #
unlocked_or
@@ -2944,24 +2944,26 @@
ed_or... |
2f3f58d6252fb3ff9f8646ef00130cfce97a9e73 | Allow for overriding automatic policy lookup with the __policy_class__ attribute | flask_pundit/__init__.py | flask_pundit/__init__.py | import flask
from functools import wraps
def verify_authorized(func):
@wraps(func)
def inner(*args, **kwargs):
pundit = getattr(flask.current_app, 'extensions', {})\
.get('flask_pundit')
stack_top = pundit._get_stack_top()
stack_top.pundit_callbacks = getattr(stack_top, 'pu... | Python | 0.000004 | @@ -3596,24 +3596,486 @@
record''')%0A%0A
+ model_policy_clazz = self._get_policy_clazz_from_model(record)%0A return model_policy_clazz if model_policy_clazz is not None else%5C%0A self._get_policy_clazz_from_policy_module(record)%0A%0A def _get_policy_clazz_from_model(self, record):%0A ... |
d7cb8495dc7608ac45195fb523c7b728c24f3a4c | Make all api functions have consistent data variable naming | kitchen/dashboard/api.py | kitchen/dashboard/api.py | """Data API"""
# -*- coding: utf-8 -*-
import json
from django.http import HttpResponse, Http404
from django.views.decorators.http import require_http_methods
from kitchen.dashboard import chef
@require_http_methods(["GET"])
def get_roles(request):
"""Returns all nodes in the repo"""
roles = chef.get_roles(... | Python | 0.000006 | @@ -290,21 +290,20 @@
%22%22%22%0A
-roles
+data
= chef.
@@ -349,21 +349,20 @@
n.dumps(
-roles
+data
), conte
|
a0d093fff57b503c500d841a064718e924db16ad | Add timeout to sx-balance call | api/get_balance.py | api/get_balance.py | import urlparse
import os, sys
import json
tools_dir = os.environ.get('TOOLSDIR')
lib_path = os.path.abspath(tools_dir)
sys.path.append(lib_path)
from msc_apps import *
data_dir_root = os.environ.get('DATADIR')
# Get the Mastercoin balances. Not that this is also creating the default balance
# object, and should run... | Python | 0.000001 | @@ -205,16 +205,42 @@
TADIR')%0A
+TIMEOUT='timeout -s 9 60 '
%0A# Get t
@@ -1594,16 +1594,24 @@
command(
+TIMEOUT+
'sx bal
|
f045dbc7a4f98815d23dd9787bcc4effff55b499 | Fix to get_balance types | api/get_balance.py | api/get_balance.py | import urlparse
import os, sys
import json
tools_dir = os.environ.get('TOOLSDIR')
lib_path = os.path.abspath(tools_dir)
sys.path.append(lib_path)
from msc_apps import *
from debug import *
sqlconn = sql_connect()
TIMEOUT='timeout -s 9 60 '
# Get the Mastercoin balances. Not that this is also creating the default bal... | Python | 0 | @@ -1005,16 +1005,77 @@
divi =
+ balrow%5B-1%5D%5B'divisible'%5D if type(balrow%5B-1%5D) == type(%7B%7D) else
json.lo
|
4aa2c11a2c4c5a94a8cf4b87ece05a924fe1211b | Add bigmoji command | Discord/cogs/misc.py | Discord/cogs/misc.py |
import discord
from discord.ext import commands
import asyncio
import json
from modules import utilities
from utilities import checks
import clients
def setup(bot):
def emote_wrapper(name, emote = None):
if emote is None: emote = name
@commands.command(name = name, help = name.capitalize() + " emote")
@che... | Python | 0.000012 | @@ -856,16 +856,193 @@
= bot%0A%09%0A
+%09@commands.command(aliases = %5B%22bigmote%22%5D)%0A%09@checks.not_forbidden()%0A%09async def bigmoji(self, ctx, emoji : discord.PartialEmoji):%0A%09%09await ctx.embed_reply(image_url = emoji.url)%0A%09%0A
%09@comman
|
ed79b3fcd2ba5ea0451ed5b587327859df90e22a | fix lint | pytest_services/service.py | pytest_services/service.py | """Service fixtures."""
import time
import re
try:
import subprocess32 as subprocess
except ImportError: # pragma: no cover
import subprocess
import uuid
from distutils.spawn import find_executable # pylint: disable=E0611
import pytest
WRONG_FILE_NAME_CHARS_RE = re.compile(r'[^\w_-]')
@pytest.fixture(scop... | Python | 0.000013 | @@ -155,16 +155,41 @@
ort uuid
+ # pylint: disable=C0411
%0A%0Afrom d
|
c31fb511abf67bfebaa8e1c296b68465fb2523bb | fix imports | ui/viewer.py | ui/viewer.py | import mdtraj as md
import IPython
from mdtraj.html import TrajectoryView, enable_notebook
import IPython
def view_traj(traj, topology_file=None, stride=1):
r"""Opens a trajectory viewer (from mdtraj).
Parameters
----------
traj : `mdtraj.Trajectory` or string
mdtraj.Trajectory object or fi... | Python | 0 | @@ -28,16 +28,17 @@
IPython%0A
+%0A
from mdt
@@ -85,31 +85,75 @@
otebook%0A
-%0Aimport IPython
+from IPython.html.widgets.widget_int import IntSliderWidget
%0A%0A%0Adef v
@@ -784,16 +784,85 @@
tride)%0A%0A
+ # ensure we're able to use TrajectoryView%0A enable_notebook()%0A%0A
widg
@@ -870,16 +870,8 @@
... |
aca62878340f1a1a04e674bcd2ce8e894e4efdc9 | update help button to use font awesome and be disabled if no help | xgds_core/templatetags/help_button.py | xgds_core/templatetags/help_button.py | #__BEGIN_LICENSE__
# Copyright (c) 2015, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The xGDS platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance ... | Python | 0 | @@ -1254,20 +1254,25 @@
tton
-'%3E%3Ci class='
+ btn btn-primary
fa f
@@ -1302,30 +1302,21 @@
lg'
-aria-hidden='true'%3E%3C/i
+role='button'
%3E%3C/a
@@ -1402,52 +1402,181 @@
nd d
-o not include the help button%0A return %22%22
+isable it%0A result = %22%3Ca href='#' class='help_button btn btn-prim... |
95b00dae180c54d62b43f04743e9f8ec34e3de52 | Fix minor style issue | ai_graph_color/line.py | ai_graph_color/line.py | class Line:
def __init__(self, point_a, point_b):
"""
Make a new line from two points.
:param point_a: one of the points on the line
:type point_a: tuple(float, float)
:param point_b: one of the points on the line
:type point_b: tuple(float, float)
"""
... | Python | 0.000001 | @@ -1234,16 +1234,17 @@
arams)%0A%0A
+%0A
def poin
|
493aed12b8bdf26f5b442ebff57a90b98c08b196 | fix api_status bug | aiokts/web/response.py | aiokts/web/response.py | import weakref
from aiohttp import hdrs
from aiohttp.web import Response
from multidict import CIMultiDict, CIMultiDictProxy
from aiokts.util.json_utils import json_dumps
__all__ = [
'JsonResponse',
'ApiResponse',
'ApiOkResponse',
'ApiErrorResponse'
]
class KtsResponse(Response):
def __init__(s... | Python | 0.000001 | @@ -4114,16 +4114,33 @@
se_dict(
+api_status='ok',
data=Non
@@ -4213,20 +4213,26 @@
_status=
-'ok'
+api_status
,%0A
@@ -5010,16 +5010,36 @@
se_dict(
+api_status='error',
message=
@@ -5046,32 +5046,63 @@
None, data=None,
+%0A
**extra):%0A
@@ -5216,23 +5216,26 @@
_stat... |
377f2c5404a6ecbd1b73079703fec47dc08335ad | Remove .wreload help line | evazbot/modules/m_core.py | evazbot/modules/m_core.py | # -*- coding: utf-8 -*-
from base import *
import urllib.request
import os
modname = "Core"
def start():
c_wlist.load()
def msg(mp):
if mp.acmd("mreload"):
reload(c_modules)
reload(c_wlist)
c_modules.reloadall()
return True
if mp.acmd("remove", 99):
args = mp.ar... | Python | 0 | @@ -2185,57 +2185,8 @@
.%22)%0A
- main.sendcmsg(%22.wreload: Reload whitelists%22)%0A
|
5c60fea4b87ee85eae56b18ac2765d45e0706289 | make VideoStreamTrack tick more regularly | aiortc/mediastreams.py | aiortc/mediastreams.py | import asyncio
import fractions
import uuid
from av import AudioFrame, VideoFrame
from pyee import EventEmitter
AUDIO_PTIME = 0.020 # 20ms audio packetization
VIDEO_CLOCK_RATE = 90000
VIDEO_PTIME = 1 / 30 # 30fps
VIDEO_TIME_BASE = fractions.Fraction(1, VIDEO_CLOCK_RATE)
def convert_timebase(pts, from_base, to_bas... | Python | 0 | @@ -25,16 +25,28 @@
actions%0A
+import time%0A
import u
@@ -2344,16 +2344,100 @@
K_RATE)%0A
+ wait = self._start + (self._timestamp / VIDEO_CLOCK_RATE) - time.time()%0A
@@ -2460,27 +2460,20 @@
o.sleep(
-VIDEO_PTIME
+wait
)%0A
@@ -2476,24 +2476,62 @@
else:%0A
+ self._sta... |
fdbc97880d0072ee73e01f47452be9da08c49400 | make vstr a bit for flexible | metadatastore/doc.py | metadatastore/doc.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import collections
from functools import reduce
_HTML_TEMPLATE = """
<table>
{% for key, value in document | dictsort recursive %}
<tr>
<th> {{ key }} </th>
<td>
{% if value.items %}
... | Python | 0 | @@ -4050,22 +4050,25 @@
me = doc
-.
+%5B'
_name
+'%5D
%0A%0A re
@@ -4239,94 +4239,8 @@
if
-isinstance(value, Document):%0A documents.append((name, value))%0A elif
name
@@ -4482,32 +4482,135 @@
tions.Mapping):%0A
+ if '_name' in value:%0A documents.append((name, va... |
d9b08ca6780129e383bbb089bcdfc5fbaef3a122 | Complete knight_tour_dfs() | alg_knight_tour_dfs.py | alg_knight_tour_dfs.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from collections import defaultdict
from itertools import product
MOVE_OFFSETS = (
(-1, -2), (1, -2),
(-2, -1), (2, -1),
(-2, 1), (2, 1),
... | Python | 0.000571 | @@ -2188,12 +2188,187 @@
-pass
+get_first_next_vertex(%0A traverse_dfs(%0A %5B%5D, start_vertex, %0A graph_dict, total_squares, sorted_func=sorted_func)%0A for start_vertex in graph_dict)
%0A%0A%0Ad
|
c87790d1b6379cff664ab58d884e708306ea2728 | fix decode typo | algobroker/__init__.py | algobroker/__init__.py | # Copyright (C) 2016 Bitquant Research Laboratories (Asia) Limited
# Released under the Simplified BSD License
import logging
import zmq
_zmq = zmq
import msgpack
import time
import traceback
from decimal import Decimal
def logger(s: str):
logger = logging.getLogger(s)
logger.setLevel(logging.INFO)
ch = ... | Python | 0.999394 | @@ -1714,17 +1714,16 @@
%0A if
-b
'__decim
|
dec1209845c02a45d80edaa1e87914ccb8526099 | Python 2 | packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_validate.py | packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_validate.py | import plotly.graph_objs as go
import json
import pytest
import plotly.io as pio
def build_invalid_fig():
return dict(
data=[{"type": "bar", "y": "not_a_list", "bogus": 23}],
layout_title_text="valid title",
layout_colorway="not a dict",
)
expected_invalid_dict = dict(
data=[{"ty... | Python | 0.999614 | @@ -711,32 +711,48 @@
fig = go.Figure(
+validate=False,
**build_invalid_
@@ -760,24 +760,8 @@
ig()
-, validate=False
)%0A
@@ -887,16 +887,31 @@
.Figure(
+validate=True,
**build_
@@ -927,23 +927,8 @@
ig()
-, validate=True
)%0A%0A
|
23a8df19e272bf4a48d59629976fc0cd4a1b83eb | Add TFBooster Code to Solve "German signal" problem | Settings/German_Signal/ModelConfiguration.py | Settings/German_Signal/ModelConfiguration.py | """
Normally, this files contains all necessary code to execute successfully the solution of the problem
but in this case (because this version is not stable) all code is in "TFModel_backup.py" file.
"""
| Python | 0.000001 | @@ -198,8 +198,1629 @@
e.%0A%22%22%22%0A%0A
+# TODO Define Code%0A%22%22%22%0ATFBooster Code to solve problem%0A%22%22%22%0Asetting_object = SettingsObject.Settings(Dictionary.string_settings_german_signal_path)%0A%0Apath_train_and_test_images = %5Bsetting_object.train_path,setting_object.test_path%5D%0Anumber_of_clas... |
868589926bd09729e03d59f929f3de0ae0fee673 | Bump release | fleece/__about__.py | fleece/__about__.py | """Fleece package attributes and metadata."""
__all__ = (
'__title__',
'__summary__',
'__author__',
'__email__',
'__license__',
'__version__',
'__copyright__',
'__url__',
)
__title__ = 'fleece'
__summary__ = 'Wrap the lamb...da'
__author__ = 'Rackers'
__email__ = 'bruce.stringer@racksp... | Python | 0 | @@ -344,11 +344,11 @@
'0.1
-8.7
+9.0
'%0A__
|
19cd8be63d482a3fb23456c5c87ebdfe16ac9415 | Add a method to test `locateMarker()' in util.py. | unittests.py | unittests.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import util
import const
import uniformdh
import obfsproxy.network.buffer as obfs_buf
class UniformDHTest( unittest.TestCase ):
def setUp( self ):
weAreServer = True
self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreSer... | Python | 0 | @@ -1822,16 +1822,360 @@
False)%0A%0A
+ def test2_locateMarker( self ):%0A self.failIf(util.locateMarker(%22D%22, %22ABC%22) != None)%0A%0A hmac = %22X%22 * const.HMAC_LENGTH%0A marker = %22A%22 * const.MARKER_LENGTH%0A payload = marker + hmac%0A%0A self.failIf(util.locateMarker(m... |
354f9d70b272275cd95655650750622472ddb43d | Fix policy in code docs for extended_snapshot_attributes | cinder/policies/snapshots.py | cinder/policies/snapshots.py | # Copyright (c) 2017 Huawei Technologies Co., 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
#
# ... | Python | 0.999999 | @@ -1554,32 +1554,40 @@
scription=%22List
+or show
snapshots with e
@@ -1703,32 +1703,46 @@
th': '/snapshots
+/%7Bsnapshot_id%7D
'%0A %7D,
|
ca22f026dc8bf2897722d7e69371a531f9c616c1 | Use single instance of sources instead of instantiating new ones all the time | src/zeit/content/cp/layout.py | src/zeit/content/cp/layout.py | # coding: utf8
# Copyright (c) 2009-2010 gocept gmbh & co. kg
# See also LICENSE.txt
import zc.sourcefactory.contextual
import zeit.cms.content.sources
import zeit.edit.interfaces
import zope.interface
import zope.security.proxy
class ITeaserBlockLayout(zope.interface.Interface):
"""Layout of a teaser block."""
... | Python | 0 | @@ -3536,16 +3536,72 @@
result%0A%0A
+ALL_TEASERBLOCK_LAYOUTS = AllTeaserBlockLayoutSource()%0A%0A
%0Aclass T
@@ -4199,35 +4199,30 @@
in A
-llTeaserBlockLayoutSource()
+LL_TEASERBLOCK_LAYOUTS
%0A
@@ -4893,16 +4893,65 @@
result%0A%0A
+ALL_TEASERBAR_LAYOUTS = TeaserBarLayoutSource()%0A%0A
%0Adef get
@@ -4991,35 ... |
f3dcdf56ad5ebfb02fc152e1c76c229d3a77ba0d | update comment for what to display in queryset for person admin | sources/admin.py | sources/admin.py | from django.contrib import admin
from .models import Topic, Person, Location, Organization
class TopicAdmin(admin.ModelAdmin):
fields = ['name']
list_display = ['name']
# list_editable = ['']
# list_filter =
search_fields = ['name']
# exclude = ['']
class PersonAdmin(admin.ModelAdmin):
... | Python | 0 | @@ -1151,19 +1151,35 @@
SUPPORT
-if
+%0A # if user.
email is
@@ -1179,20 +1179,22 @@
mail is
-user
+Person
's email
@@ -1194,16 +1194,48 @@
s email%0A
+ # if person is approved%0A
# de
|
975223831699ffa3e124573124bc79a580901e9f | fix confirm view by adding necessary params to get request | sources/views.py | sources/views.py | from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.core.management import call_command
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render # , redirect
from django.template.context import RequestContext
from django.utils.encoding imp... | Python | 0 | @@ -1503,32 +1503,47 @@
et(self, request
+, uidb64, token
):%0A try:%0A
|
b6a4349a0f3f9c66a52eabb540b778ec3975e96a | Split imports | srttools/tests/test_import.py | srttools/tests/test_import.py | from srttools import Scan, ScanSet, CalibratorTable
from astropy.table import Table
def test_import_scan():
s = Scan()
assert isinstance(s, Table)
def test_import_scanset():
s = ScanSet()
assert isinstance(s, Table)
def test_import_calibratortable():
s = CalibratorTable()
assert isinstance... | Python | 0.000001 | @@ -1,56 +1,4 @@
-from srttools import Scan, ScanSet, CalibratorTable%0A
from
@@ -47,24 +47,54 @@
ort_scan():%0A
+ from srttools import Scan%0A
s = Scan
@@ -153,24 +153,57 @@
_scanset():%0A
+ from srttools import ScanSet%0A
s = Scan
@@ -273,24 +273,65 @@
tortable():%0A
+ from srttools import Cali... |
0f18aa4aea02954e0a58c35ccc9064823ecac78a | add %hexon and %hexoff magic | monkeyhex.py | monkeyhex.py | from __future__ import print_function
from future.utils import iteritems
from past.builtins import long
DEFAULT_HEX_THRESHOLD = 10**17 # since that hex is more succinct ...
HEX_THRESHOLD = None
def conditional_hex(x):
if HEX_THRESHOLD is None or abs(x) >= HEX_THRESHOLD:
return hex(x)
return repr(x)
d... | Python | 0.000521 | @@ -187,16 +187,31 @@
D = None
+%0AENABLED = True
%0A%0Adef co
@@ -235,16 +235,29 @@
%0A if
+ENABLED and (
HEX_THRE
@@ -296,16 +296,17 @@
HRESHOLD
+)
:%0A
@@ -2187,16 +2187,72 @@
IPython%0A
+ from IPython.core.magic import register_line_magic%0A%0A
form
@@ -2505,16 +2505,284 @@
ex(n)))%0A
+ ... |
17d0bd407a738dc032621fc000f33674d0f6613e | add property `id` | app/models/task.py | app/models/task.py | # coding: utf8
import datetime
from config import environment
db = environment.mdb
class Task(db.Document):
TYPE_ONCE = 1
TYPE_CONTINUES = 2
title = db.StringField(required=True, max_length=100)
task_type = db.IntField(required=True)
desc = db.StringField(required=True, max_length=1000)
sc... | Python | 0.000001 | @@ -610,16 +610,48 @@
eturn %7B%0A
+ 'id': str(self.id),%0A
|
532c201053ae271544270035423f690b4774794a | Fix multiselect user/group field when retrieving results from a report | swimlane/core/fields/usergroup.py | swimlane/core/fields/usergroup.py | from .base import MultiSelectField
from swimlane.core.resources.usergroup import UserGroup
class UserGroupField(MultiSelectField):
"""Manages getting/setting users from record User/Group fields"""
field_type = 'Core.Models.Fields.UserGroupField, Core'
supported_types = [UserGroup]
def cast_to_pytho... | Python | 0.000001 | @@ -292,16 +292,335 @@
Group%5D%0A%0A
+ def set_swimlane(self, value):%0A %22%22%22Workaround for reports returning an empty usergroup field as a single element list with no id/name%22%22%22%0A if value == %5B%7B%22$type%22: %22Core.Models.Utilities.UserGroupSelection, Core%22%7D%5D:%0A val... |
69ec68bcf5fed95f85d5b4a3ac1fc155cb26175d | create background thread task | application/socket/simple.py | application/socket/simple.py | # -*- coding: utf-8 -*-
from flask import request
from application import app, api, socketio
from flask_socketio import emit, disconnect
@socketio.on('clientEvent', namespace='/test')
def test_message(message):
emit('serverResponse',
{'data': 'server msg: {0} !!!'.format(message['data'])})
@socketio.on('... | Python | 0.000001 | @@ -131,16 +131,279 @@
onnect%0A%0A
+thread = None%0A%0Adef background_thread():%0A count = 0%0A while True:%0A socketio.sleep(2)%0A count += 1%0A socketio.emit('serverResponse',%0A %7B'data': 'Server count:%7B0%7D'.format(count)%7D,%0A namespace='/t... |
99473e01a78c2cb1258bb9aba1c77a1ed764762c | Update rest_client.py | atlassian/rest_client.py | atlassian/rest_client.py | import json
import logging
from six.moves.urllib.parse import urlencode, urljoin
import requests
log = logging.getLogger(__name__)
class AtlassianRestAPI(object):
default_headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
def __init__(self, url, username, password, timeout=60, ap... | Python | 0.000001 | @@ -120,16 +120,19 @@
ger(
-__name__
+'atlassian'
)%0A%0A%0A
|
fedb416f5a3aac1d35d1d5b07b5d24ce1a2ebe01 | Add production settings | ato_children/settings.py | ato_children/settings.py | """
Django settings for ato_children project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build... | Python | 0.000001 | @@ -387,16 +387,39 @@
mport os
+%0Aimport dj_database_url
%0A%0ABASE_D
@@ -829,19 +829,20 @@
DEBUG =
-Tru
+Fals
e%0A%0AALLOW
@@ -853,16 +853,19 @@
OSTS = %5B
+'*'
%5D%0A%0A%0A# Ap
@@ -2289,117 +2289,32 @@
t':
-%7B%0A 'ENGINE': 'django.db.backends.sqlite3',%0A 'NAME': os.path.join(BASE_DIR, 'db.sq... |
e52982a6311947724e9a571489464f40a47ccf01 | Move TransactionProxy wrapping of request to QueueObject for clarity | src/plone.server/plone/server/async.py | src/plone.server/plone/server/async.py | # -*- coding: utf-8 -*-
from datetime import datetime
from plone.server.browser import ErrorResponse
from plone.server.browser import UnauthorizedResponse
from plone.server.browser import View
from plone.server import _
from plone.server.transactions import sync
from plone.server.transactions import TransactionProxy
fr... | Python | 0 | @@ -975,104 +975,8 @@
t()%0A
- request = TransactionProxy(view.request)%0A view.request = request%0A
@@ -2855,24 +2855,41 @@
ontext,
+TransactionProxy(
request)
%0A
@@ -2872,32 +2872,33 @@
onProxy(request)
+)
%0A self.ti
|
2d3e481360a0564163c0b004c8bfaf9b4fb645c1 | Make modules uninstallable | l10n_es_account_asset/__openerp__.py | l10n_es_account_asset/__openerp__.py | # -*- coding: utf-8 -*-
# © 2012-2015 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Gestión de activos fijos para España",
"version": "8.0.2.0.0",
"depends": ["account_asset"],
"author": "Serv. Tecnol. Avanzados - Pedro M... | Python | 0 | @@ -552,17 +552,17 @@
%5D,%0A
-%22
+'
installa
@@ -568,14 +568,15 @@
able
-%22: Tru
+': Fals
e,%0A%7D
|
f9becba65c701f9848a07cb48a66d78bcbd5969b | Use prio icon | apps/dashboard/blueprints.py | apps/dashboard/blueprints.py | from collections import namedtuple
from django.utils.translation import ugettext_lazy as _
from apps.budgeting import phases as budgeting_phases
from apps.documents import phases as documents_phases
from apps.extprojects import phases as extprojects_phases
from apps.ideas import phases as ideas_phases
from apps.mapid... | Python | 0.000001 | @@ -4038,32 +4038,28 @@
eprints/
-external-project
+priorization
.svg',%0A
|
a400c328e3f8f3dab1159533e13e213f7b058c0b | Fix test broken by change to random. | client/python/rappor_test.py | client/python/rappor_test.py | #!/usr/bin/python
#
# Copyright 2014 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... | Python | 0 | @@ -2561,82 +2561,8 @@
75%0A%0A
- # SimpleRandom will call self.random() below for each bit, which will%0A
@@ -2578,20 +2578,27 @@
these 3
-valu
+probabiliti
es in se
@@ -2646,66 +2646,18 @@
0.0%5D
-)%0A%0A irr_rand = rappor.SimpleIrrRand(params, _rand=rand)
+, params)%0A
%0A
@@ -2701,12 +2701,8 @@... |
67c7233cdf4893eb4302f297e12dfa53886d3523 | Add a config check for missing Thrift server or misconfiguration | apps/hbase/src/hbase/conf.py | apps/hbase/src/hbase/conf.py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | Python | 0 | @@ -792,17 +792,43 @@
%0Aimport
-o
+logging%0Aimport os%0Aimport sy
s%0A%0Afrom
@@ -878,16 +878,31 @@
zy as _t
+, ugettext as _
%0A%0Afrom d
@@ -970,34 +970,117 @@
rce_
-str_lowercase, coerce_bool
+bool%0Afrom desktop.lib.exceptions import StructuredThriftTransportException%0A%0ALOG = logging.getLogger(__name__)... |
7ad9813e3214108cf68e00db6b10f88501103b92 | Fix middleware to not hardcode mozillians | apps/phonebook/middleware.py | apps/phonebook/middleware.py | from django.http import (HttpResponseForbidden, HttpResponseNotAllowed,
HttpResponseRedirect)
import commonware.log
from funfactory.urlresolvers import reverse
from mozillians.urls import error_page
log = commonware.log.getLogger('m.phonebook')
class PermissionDeniedMiddleware(object):
... | Python | 0.999583 | @@ -1,12 +1,23 @@
+import os%0A%0A
from django.
@@ -146,16 +146,51 @@
are.log%0A
+from funfactory.manage import ROOT%0A
from fun
@@ -230,36 +230,141 @@
se%0A%0A
-from mozillians.urls import
+# TODO: this is hackish. Once we update mozillians to the newest playdoh layout%0Aerror_page = __import__(os.path.basename(R... |
cfffade6a59023b53c5c5b2338ed51227ae2fc02 | fix unicode issues (python2.6 is crappy) | weboob/backends/dlfp/pages/news.py | weboob/backends/dlfp/pages/news.py | # -*- coding: utf-8 -*-
# Copyright(C) 2010 Romain Bignon
#
# 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, version 3 of the License.
#
# This program is distributed in the hope that it will b... | Python | 0.000002 | @@ -2119,24 +2119,16 @@
trptime(
-unicode(
date_s.s
@@ -2133,16 +2133,31 @@
.strip()
+.encode('utf-8'
), u'le
@@ -2169,17 +2169,20 @@
/%25Y
-%C3%A0
+%5Cxe0
%25H:%25M.'
))%0A%0A
@@ -2177,16 +2177,32 @@
%25H:%25M.'
+.encode('utf-8')
))%0A%0A
|
3848759bef51a6b2c728bc9f62c12f29804cded9 | Remove www. from search site filter | autoload/stackanswers.py | autoload/stackanswers.py | from bs4 import BeautifulSoup
import re
import json
import requests
import sys
try:
import vim
except:
pass
def clean(string):
return string.encode("ascii", "ignore").decode("ascii")
def query_google(query, domain):
url = "http://www.google.com/search?q=site:%s+%s" % (domain, query)
urls = []
... | Python | 0.000718 | @@ -1145,20 +1145,16 @@
query, %22
-www.
stackove
|
22f1e025111d0ebe3f8bb032f8f078322bf94386 | remove an unused widget | armstrong/hatband/options.py | armstrong/hatband/options.py | from django.contrib import admin
from django.contrib.admin.options import InlineModelAdmin
from django.db import models
from django import forms
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from . import widgets
from .utils import static_url
RICH_TEXT_DBFIELD_OVERRI... | Python | 0.000001 | @@ -1494,61 +1494,8 @@
s)%0A%0A
-class DeletionWidget(forms.CheckboxInput):%0A pass%0A%0A
%0Acla
|
237d21b0bc39fbc7456186456a61c6a4613bc1c3 | fix pypi spider are site was redesigned | cloudfeaster/samples/pypi.py | cloudfeaster/samples/pypi.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This spider attempts to login to pypi with a username and password
supplied at runtime. This sample is intended to illustrate how to
work with identifying and authenticating factors. The key thing to
focus on with this spider is get_metadata().
"""
import json
import sy... | Python | 0 | @@ -2042,22 +2042,23 @@
lue=%22Log
+
in%22%5D'%0A
-
@@ -2181,33 +2181,34 @@
sful_xpath = '//
-a
+h3
%5Btext()=%22Logout%22
@@ -2192,37 +2192,43 @@
= '//h3%5Btext()=%22
-Log
+Your acc
ou
+n
t%22%5D'%0A bad
@@ -2255,32 +2255,65 @@
'//
-a%5Btext()=%22reset for you%22
+li%5Bcontains(text(),%22The... |
ca30b673833a4d0c1fc6204e211e8ac7499b590a | bump version | backslash/__version__.py | backslash/__version__.py | __version__ = "2.0.1"
| Python | 0 | @@ -16,7 +16,7 @@
2.0.
-1
+2
%22%0A
|
8231e5fea22a6fddb411dceeec4a20182a44ae4b | Fix Sentry #194317: NoneType object is not subscriptable | badwolf/webhook/views.py | badwolf/webhook/views.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import json
import logging
from flask import Blueprint, request, current_app, url_for
from badwolf.context import Context
from badwolf.tasks import start_pipeline
from badwolf.extensions import bitbucket
from badwolf.bitbucket import Bit... | Python | 0.000029 | @@ -74,16 +74,17 @@
iterals%0A
+%0A
import j
@@ -1616,31 +1616,16 @@
t_change
-%5B'new'%5D%5B'type'%5D
)%0A
|
0527ed74b2e037788850d6e3ebf2ade5460bcbca | Update views.py | bakery/realtime/views.py | bakery/realtime/views.py | # coding: utf-8
# Copyright 2013 The Font Bakery 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 re... | Python | 0 | @@ -3213,161 +3213,8 @@
h('#
-## Link to archive '):%0A self.emit('message', markdown.markdown(line))%0A elif line.startswith('### Bake Succeeded
'):%0A
|
4e7a7d6900df59f859c5061dedc3056c34a12efb | Fix columns being named wrong in submissions | submission_criteria/common.py | submission_criteria/common.py | """
Commonly used functions.
"""
# System
import os
# Third Party
import pandas as pd
import numpy as np
from psycopg2 import connect
import boto3
import botocore
from submission_criteria import tournament_common as tc
S3_BUCKET = os.environ.get("S3_UPLOAD_BUCKET", "numerai-production-uploads")
S3_ACCESS_KEY = os.en... | Python | 0.000051 | @@ -3104,16 +3104,175 @@
x('id')%0A
+ submission.rename(columns=lambda col: 'probability'%0A if col.startswith('prediction_', ) else col,%0A inplace=True)%0A
tour
|
7316a4960e1d5c9bff0cf79a127ace6a01b6a0af | Fix pixeler request | apps/core/views.py | apps/core/views.py | from django.utils.translation import ugettext as _
from django.views.generic import TemplateView
from django.shortcuts import render
from apps.core.models import Analysis, Pixel, Pixeler, Tag
class HomeView(TemplateView):
template_name = 'core/home.html'
def get(self, request, *args, **kwargs):
i... | Python | 0.000001 | @@ -3054,33 +3054,29 @@
ast_name', '
-last_name
+email
', 'date_joi
|
8a36c7d83c2421a50d24cc51823bd474578cd768 | update dev version after 0.15.0 tag [skip ci] | py/desimodel/_version.py | py/desimodel/_version.py | __version__ = '0.15.0'
| Python | 0 | @@ -14,10 +14,17 @@
'0.15.0
+.dev651
'%0A
|
4d64bc67c7560352481f4fe16db3d9f810e88592 | Update nextFieldSelector API | py/surveysim/nightops.py | py/surveysim/nightops.py | """Simulate one night of observing.
"""
from __future__ import print_function, division, absolute_import
import numpy as np
import astropy.time
import astropy.units as u
import desiutil.log
import desisurvey.exposurecalc
import desisurvey.nextobservation
import desisurvey.ephemerides
import desisurvey.config
def ... | Python | 0 | @@ -1991,26 +1991,16 @@
target
-, overhead
= desis
@@ -2069,20 +2069,8 @@
mjd,
- conditions,
pro
@@ -2105,42 +2105,8 @@
ev)%0A
- overhead = overhead * u.s%0A
@@ -2222,24 +2222,24 @@
lew = False%0A
-
@@ -2239,32 +2239,70 @@
continue%0A
+ overhead = target%5B'overhead'%... |
f5a158625ea482e665ac3f969d6e9fa3846f6671 | update doc for at.CTRL | pyardrone/at/__init__.py | pyardrone/at/__init__.py | from pyardrone.at.base import ATCommand
from pyardrone.at.arguments import Int32Arg, FloatArg, StringArg
from pyardrone.utils import bits
__all__ = (
'REF', 'PCMD', 'PCMD_MAG', 'FTRIM', 'CONFIG',
'CONFIG_IDS', 'COMWDG', 'CALIB', 'CTRL'
)
class REF(ATCommand):
'''
Controls the basic behaviour of the... | Python | 0 | @@ -2730,16 +2730,35 @@
cumented
+ in developer guide
, change
|
c058db50ff489fb49b16b055649b2d8a3b0e6d4c | Revert import changes | windpowerlib/__init__.py | windpowerlib/__init__.py | __copyright__ = "Copyright oemof developer group"
__license__ = "MIT"
__version__ = "0.2.1dev"
from .wind_turbine import WindTurbine
from .wind_farm import WindFarm
from .wind_turbine_cluster import WindTurbineCluster
from .modelchain import ModelChain
from .turbine_cluster_modelchain import TurbineClusterModelChain
f... | Python | 0 | @@ -90,24 +90,36 @@
1dev%22%0A%0Afrom
+windpowerlib
.wind_turbin
@@ -140,24 +140,36 @@
urbine%0Afrom
+windpowerlib
.wind_farm i
@@ -184,24 +184,36 @@
ndFarm%0Afrom
+windpowerlib
.wind_turbin
@@ -253,16 +253,28 @@
er%0Afrom
+windpowerlib
.modelch
@@ -300,16 +300,28 @@
in%0Afrom
+windpowerlib
.turbine
@@ -... |
8439dfa23572e403c13235d2d61538f5d80ca1ef | fix pylint | pychromecast/__init__.py | pychromecast/__init__.py | """
PyChromecast: remote control your Chromecast
"""
from __future__ import print_function
import logging
# pylint: disable=wildcard-import
from .config import * # noqa
from .error import * # noqa
from . import socket_client
from .discovery import discover_chromecasts
from .dial import get_device_status, reboot
fro... | Python | 0.000003 | @@ -5024,31 +5024,35 @@
-self.set_volume
+receiver_controller
= self.
@@ -5076,32 +5076,78 @@
eiver_controller
+%0A self.set_volume = receiver_controller
.set_volume%0A
@@ -5174,35 +5174,16 @@
muted =
-self.socket_client.
receiver
|
a7a3b8105ec7ab817ddf1bbbc6e8ba714cb027ed | Fix name | pycket/assign_convert.py | pycket/assign_convert.py |
from pycket.ast_visitor import ASTVisitor
from pycket.env import SymList
from pycket.interpreter import (
App,
Begin,
Begin0,
BeginForSyntax,
CaseLambda,
Cell,
CellRef,
DefineValues,
If,
Lambda,
Let,
Letrec,
LexicalVar,
Module,
ModuleVar,
Quote,
... | Python | 0.999361 | @@ -5722,16 +5722,17 @@
ast, vis
+i
tor=None
|
eec1eaf459eb2dd588a4e107593a8a062a282088 | remove force keyword | pyfarm/master/utility.py | pyfarm/master/utility.py | # No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# 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
#
# U... | Python | 0.000306 | @@ -4145,18 +4145,8 @@
son(
-force=True
)%0A%0A
|
2022b217547c8e0ac8e4394206d7ebe475a842b7 | Fix bug when trying to autocomplete before cache | pylibs/recentcomplete.py | pylibs/recentcomplete.py | import vim
import subprocess
import string
import os
import threading
from multiprocessing.pool import ThreadPool
# Decorators
def debounce(wait):
""" Decorator that will postpone a functions
execution until after wait seconds
have elapsed since the last time it was invoked. """
def decorator(f... | Python | 0.000001 | @@ -108,16 +108,158 @@
adPool%0A%0A
+# Vim helpers%0Adef vim_str(text):%0A return %22'%25s'%22 %25 text.replace(%22'%22, %22''%22)%0A%0A%0Adef echom(text):%0A vim.command(%22echom %25s%22 %25 vim_str(text))%0A%0A%0A
# Decora
@@ -2394,18 +2394,27 @@
cache =
-%5B%5D
+vim_str('')
%0A%0A%0Adef _
@@ -3461,145 +34... |
c79182da0690b63cef23809b30013c44a1b5999a | Add ListElement | pymessenger2/__init__.py | pymessenger2/__init__.py | from .bot import Bot
from .buttons import *
@attr.s
class Element:
title = attr.ib()
item_url = attr.ib(default=None)
image_url = attr.ib(default=None)
subtitle = attr.ib(default=None)
buttons = attr.ib(default=None)
@attr.s
class QuickReply:
"""
See https://developers.facebook.com/docs... | Python | 0.000001 | @@ -801,20 +801,372 @@
ayload = self.title%0A
+%0A%0A@attr.s%0Aclass ListElement:%0A %22%22%22%0A See https://developers.facebook.com/docs/messenger-platform/send-api-reference/list-template%0A %22%22%22%0A title = attr.ib()%0A subtitle = attr.ib(default=None)%0A image_url = attr.ib(default=None)%0A ... |
6f3a046f8aded7236266a18869f3b4d5cefebfd9 | Refactor so the help text ordering is consistent. | pysecurity_groups/cli.py | pysecurity_groups/cli.py | ### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
"""Command line interface for pysecurity-groups."""
import ConfigParser
import errno
import sys
from argparse import ArgumentParser
import pysecurity_groups.policy as policy
import pysecurity_groups.util as util... | Python | 0.000175 | @@ -3653,371 +3653,8 @@
t)%0A%0A
- ### 'live-rules' subcommand%0A live_parser = subparsers.add_parser('live-rules', help=%22%22%22Generate a%0A report detailing your current security%0A groups/rules as reported by the AWS%0A ... |
a5311aedf9cba92ded799b67135f6428477c7390 | Add a comment | pytablewriter/_logger.py | pytablewriter/_logger.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import, unicode_literals
import dataproperty
import logbook
from mbstrdecoder import MultiByteStrDecoder
logger = logbook.Logger("pytablewriter")
logger.disable()
def set_logger(is_enable):
... | Python | 0 | @@ -349,16 +349,58 @@
sabled:%0A
+ # logger setting have not changed%0A
|
b407b48f1d5bb2698bf7402addc4f1ebd5f2773c | Test plot title and axis labels | sweetercat/tests/test_plot.py | sweetercat/tests/test_plot.py | """SWEETer-Cat tests regarding the plotting pages."""
import pytest
from flask import url_for
def test_plot_get_requests(client):
"""Test that all pages return status code: 200 using the end_points"""
for end_point in ('plot', 'plot_exo'):
plot = client.get(url_for(end_point))
assert plot.st... | Python | 0 | @@ -1358,28 +1358,1060 @@
our settings:%22 in plot.data%0A
+%0A%0Adef test_title_and_axis_labels(client):%0A for xname, yname in zip((%22teff%22, %22vt%22, %22par%22), (%22mass%22, %22Vabs%22, %22logg%22)):%0A # test_data = %7B'color': 'Blue', 'x': xname, 'y': yname, 'z': 'Vmag',%0A # 'x1': ... |
2d0d87221fa890ac502de077e5d52cb6235895c2 | fix bug in 'fix_additional_speakers_constraint' | symposion/proposals/models.py | symposion/proposals/models.py | from __future__ import unicode_literals
import os
import uuid
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Q
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from django.utils.timezone import ... | Python | 0 | @@ -4124,16 +4124,22 @@
lidator(
+self,
a_speake
|
09e9d1f6f104eeb00b31d277f0679499e8c77553 | fix typo | sync_settings/libs/gistapi.py | sync_settings/libs/gistapi.py | # -*- coding: utf-8 -*-
import requests
import json
from .exceptions import GistException
class Gist:
BASE_URL = 'https://api.github.com'
def __init__(self, token):
response = requests.get(self.BASE_URL + '/user?access_token=' + token)
if response.status_code != 200:
raise GistException(Gist.__get_... | Python | 0.999991 | @@ -2092,16 +2092,18 @@
Gist can
+%60t
be dele
|
a541f0f288371c83f9c6a5eb32a506322b202c53 | add drop stats in db | src/mongodb.py | src/mongodb.py | import logging
import time
from datetime import datetime, timedelta
from math import sqrt
from pymongo import MongoClient
from settings import max_timeout
MAX_BULK_OPS = 987
def output_stat(dbconnstr, interval):
logging.debug ("CALL output_stat mongodb, with" +dbconnstr)
if interval < 1:
logging.warni... | Python | 0 | @@ -1865,24 +1865,57 @@
dity.drop()%0A
+ db.validity_stats.drop()%0A
db.a
|
1abe7904fa8844f2b7e19c51342dfcd981c3b218 | Add __str__ method to Terrain, minor bug fix to its __init__ | randterrainpy/terrain.py | randterrainpy/terrain.py | """This module is for the Terrain class, used for storing randomly generated terrain."""
class Terrain(object):
"""Container for a randomly generated area of terrain.
Attributes:
width (int): Width of generated terrain.
length (int): Length of generated terrain.
height_map (list): Map... | Python | 0 | @@ -659,16 +659,22 @@
or _ in
+range(
self.wid
@@ -675,16 +675,17 @@
lf.width
+)
%5D%5D * sel
@@ -2897,28 +2897,380 @@
(val)%0A return result%0A
+%0A def __str__(self):%0A %22%22%22Return string representation of self.%0A%0A Returns:%0A str: String of float's, to 1 decimal place... |
cf60d3869834ba4654f57f1b4daca7797f2c5736 | extend => append. | base/components/views.py | base/components/views.py | from django.views.generic import TemplateView, View
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
from components.merchandise.music.models import Album, Edition, Single, Track
from components.people.models import Group, Idol
class AutocompleteView(JSONRespon... | Python | 0.000001 | @@ -556,19 +556,19 @@
estions.
-ext
+app
end(%7B%0A
|
425467ca39b22d9b15700a6a158e56827d867b6f | Add a __version__ attribute. | atfork/__init__.py | atfork/__init__.py | # Copyright 2009 Google 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... | Python | 0.000018 | @@ -1940,16 +1940,38 @@
tfork')%0A
+__version__ = '0.1.1'%0A
%0A%0Adef mo
|
1930fe6bb492d41da88fae2f902e3f966a12926a | Fix indentation error on str method for league | athletes/models.py | athletes/models.py | from django.db import models
from django.utils import timezone
from django.utils.encoding import force_bytes
class Sport(models.Model):
name = models.CharField(max_length=20)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return force_byt... | Python | 0.000003 | @@ -535,16 +535,17 @@
=True)%0A%0A
+%09
def __st
@@ -555,16 +555,17 @@
(self):%0A
+%09
%09return
|
5b17acaec05bf30748bf6813d3a1747d72cee3fb | Update salt adapter top function to new Core API | reclass/adapters/salt.py | reclass/adapters/salt.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of reclass (http://github.com/madduck/reclass)
#
# Copyright © 2007–14 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
import os, sys, posix
from reclass import get_storage, output
from reclass.core imp... | Python | 0 | @@ -2048,123 +2048,17 @@
nfo(
-storage_type, inventory_base_uri, nodes_uri,%0A classes_uri, minion_id, class_mappings
+minion_id
)%0A
|
d5ec3ead350036fbe1d7e04964ceedc9b3188428 | handle when request path ends in / | redesign/website/cwta.py | redesign/website/cwta.py | import webapp2
from google.appengine.api import users
#from google.appengine.ext import db
import jinja2
import os
import urllib
jinja_environment = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))
def urlencode_filter(s):
if type(s) == 'Markup':
s = s.unescape()
s = s.... | Python | 0 | @@ -900,16 +900,18 @@
czl2016)
+/?
(?i)', C
|
583195165d5e3a40ff3ebc6273dafa6111173bfa | Remove debug line | test_defuzz.py | test_defuzz.py | import itertools
import math
from defuzz import Defuzzer
from hypothesis import given, example
from hypothesis.strategies import floats, integers, lists, tuples
from hypo_helpers import f
def test_it():
dfz = Defuzzer()
assert dfz.defuzz((1, 2)) == (1, 2)
assert dfz.defuzz((1, 3)) == (1, 3)
assert ... | Python | 0.000039 | @@ -689,47 +689,8 @@
nts%5D
-%0A print(f%22%7Bpoints%7D%5Cn%7Bdfz_points%7D%5Cn%22)
%0A%0A
|
d59b4c9203337947ae3aae319dc056ce086e63d9 | Fix make_drf_request_with_version | tests/utils.py | tests/utils.py | import contextlib
import functools
import mock
import datetime
from django.http import HttpRequest
from nose import SkipTest
from nose.tools import assert_equal, assert_not_equal, assert_in
from framework.auth import Auth
from framework.celery_tasks.handlers import celery_teardown_request
from website.archiver impor... | Python | 0.000011 | @@ -6213,20 +6213,21 @@
version=
-None
+'2.0'
, *args,
@@ -6324,28 +6324,8 @@
2'%7D%0A
- if version:%0A
@@ -6335,16 +6335,17 @@
.version
+
= versio
|
7a15b6025302e3160469d2509d7e6cdb07f80247 | Remove unused DUMMY_UNITTEST_PROJECT_ID and DUMMY_UNITTEST_PROJECT_NAME | tests/utils.py | tests/utils.py | from functools import wraps
import json
import os
import pathlib
import random
import shutil
import string
import tempfile
import bpy
import previz.testsutils
import io_scene_dnb_previz
from io_scene_dnb_previz.utils import PrevizProject
BLENDS_DIR_NAME = 'blends'
PREVIZ_API_ROOT_ENVVAR = 'PREVIZ_API_ROOT'
PREVIZ... | Python | 0.000089 | @@ -2193,204 +2193,8 @@
R%5D%0A%0A
- # Set dummy Previz project%0A bpy.context.scene.previz_project_id = DUMMY_UNITTEST_PROJECT_ID%0A bpy.context.scene.previz_project_name = DUMMY_UNITTEST_PROJECT_NAME%0A%0A
|
6d3a42f0e96fc70194d435b4825a19fabb251144 | should not set server config unless it is None | bokeh/server/settings.py | bokeh/server/settings.py | from os.path import dirname, join
import uuid
import logging
import zmq
from ..settings import settings as bokeh_settings
default_blaze_config = join(dirname(__file__), 'mbs', 'config.py')
_defaults = dict(
ip="0.0.0.0",
port=5006,
url_prefix="",
multi_user=False,
# make scripts for now - for no... | Python | 0.999953 | @@ -2217,16 +2217,62 @@
= True%0A
+ if args.blaze_config is not None:%0A
|
1599dce2aeda294ae803444beeddca7d8a6d06d0 | Add versions 1.8 and 1.7 (#10978) | var/spack/repos/builtin/packages/canu/package.py | var/spack/repos/builtin/packages/canu/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 Canu(MakefilePackage):
"""A single molecule sequence assembler for genomes large and
... | Python | 0 | @@ -458,85 +458,277 @@
('1.
-7.1', sha256='c314659c929ee05fd413274f391463a93f19b8337eabb7ee5de1ecfc061caaf
+8', sha256='30ecfe574166f54f79606038830f68927cf0efab33bdc3c6e43fd1448fa0b2e4')%0A version('1.7.1', sha256='c314659c929ee05fd413274f391463a93f19b8337eabb7ee5de1ecfc061caafa')%0A version('1.7', sha256='c... |
5854acd23320e59fc60c67d856b44f3e154206d4 | Add latest version of cURL (#7800) | var/spack/repos/builtin/packages/curl/package.py | var/spack/repos/builtin/packages/curl/package.py | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | Python | 0 | @@ -1548,16 +1548,74 @@
r.bz2%22%0A%0A
+ version('7.59.0', 'a2192804f7c2636a09320416afcf888e')%0A
vers
@@ -2546,11 +2546,12 @@
ult=
-Tru
+Fals
e, d
|
a38777235638817a3f172bf87a41ce114266c87d | Update motor.py | implib/motor.py | implib/motor.py | from implib import tools
from implib import gpiotools
class motor():
#Motor Class : input pins
#Methods :
# _move : input steps
# _move_steps : input steps
# _set_pins : input steps
""" this section still need some work
changing gpio controll to class in gpiotools """
def __init... | Python | 0.000001 | @@ -508,16 +508,17 @@
ns(self,
+
pins):%0A
@@ -1737,16 +1737,17 @@
ep(self,
+
sens):%0A
@@ -2443,17 +2443,17 @@
ition =
-P
+p
oint()%0A%0A
@@ -2708,12 +2708,14 @@
elf,
+
axe,
+
sens
|
3f054ceb70e7a344ec75da513298c79e2024d151 | modify the type of DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG from '' into [] | Source/Python/Common/TargetTxtClassObject.py | Source/Python/Common/TargetTxtClassObject.py | # Copyright (c) 2007, Intel Corporation
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-l... | Python | 0.000214 | @@ -1349,34 +1349,36 @@
:
+%5B
''
+%5D
,%0D%0A D
@@ -2838,58 +2838,8 @@
y ==
- DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG or Key ==
Dat
@@ -3082,16 +3082,91 @@
GET_ARCH
+ %5C%0D%0A or Key == DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG
:%0D%0A
|
adbad9ef886fa1db0fc0622931fb3eafefe428bf | Fix command output | mppsolar/__init__.py | mppsolar/__init__.py | # !/usr/bin/python
import logging
from argparse import ArgumentParser
# import mppcommands
from .mpputils import mppUtils
logger = logging.getLogger()
def main():
parser = ArgumentParser(description='MPP Solar Command Utility')
parser.add_argument('-c', '--command', help='Command to run', default='QID')
... | Python | 0.999949 | @@ -2718,23 +2718,17 @@
ts%5Bkey%5D%5B
-'value'
+0
%5D, resul
@@ -2739,94 +2739,10 @@
ey%5D%5B
-'unit'%5D)) # TODO: Some error here... %22TypeError: list indices must be integers, not str%22
+1%5D))
%0A
|
d4a72c8b15ae5be132d023d81a8cfdf5699f0c8d | Remove TODO. This is actually already done. | hotness/buildsys.py | hotness/buildsys.py | #!/usr/bin/env python
import logging
import os
import random
import shutil
import string
import subprocess as sp
import tempfile
import time
import koji
import sh
class Koji(object):
def __init__(self, consumer, config):
self.consumer = consumer
self.config = config
self.log = logging.ge... | Python | 0 | @@ -335,66 +335,8 @@
g')%0A
- # TODO -- get all of these from the config, still%0A
|
cc2014baa5f9650cac1176b0ecd5f8a86cb9010b | Fix typo | hydrus/server/parser.py | hydrus/server/parser.py | from data.astronomy import astronomy
from server.commons import ROOT, SERVE, HYDRA_DOC
objects = astronomy['defines']
# print(objects[0])
# filter the objects array
# use 'lifter' library to filter arrays
# https://github.com/EliotBerriot/lifter
template = {
"@context": {
"hydra": "http://www.w3.org/ns/hydr... | Python | 0.999999 | @@ -1058,18 +1058,18 @@
apiDocum
-n
e
+n
tation'%5D
|
0791cbb2aa2af72411153649ca7d365be02b1e62 | Increment version | thinc/about.py | thinc/about.py | # inspired from:
# https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__name__ = 'thinc'
__version__ = '6.8.0'
__summary__ = "Practical Machine Learning for NLP"
__uri__ = 'https://github.com/explosion/thinc'
__au... | Python | 0.000002 | @@ -212,9 +212,9 @@
6.8.
-0
+1
'%0A__
|
e7bf2e23aa9b8d0786a75b550dce21f427ea4073 | Add optional dir_name argument to gerrit_plugin | tools/bzl/plugin.bzl | tools/bzl/plugin.bzl | load("//tools/bzl:genrule2.bzl", "genrule2")
load(
"//tools/bzl:gwt.bzl",
"GWT_PLUGIN_DEPS",
"GWT_PLUGIN_DEPS_NEVERLINK",
"GWT_TRANSITIVE_DEPS",
"GWT_COMPILER_ARGS",
"GWT_JVM_ARGS",
"gwt_binary",
)
PLUGIN_DEPS = ["//plugins:plugin-lib"]
PLUGIN_DEPS_NEVERLINK = ["//plugins:plugin-lib-neverl... | Python | 0.000002 | @@ -635,24 +635,45 @@
tries = %5B%5D,%0A
+ dir_name = None,%0A
target_s
@@ -1018,16 +1018,56 @@
name%5D%0A%0A
+ if not dir_name:%0A dir_name = name%0A%0A
native
@@ -2590,16 +2590,20 @@
f 2)%22 %25
+dir_
name.upp
|
c906f99e961d2fa44a01f3efff85ce2679701027 | Update bottlespin.py | bottlespin/bottlespin.py | bottlespin/bottlespin.py | import discord
from discord.ext import commands
from random import choice
class Bottlespin:
"""Spins a bottle and lands on a random user."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True, alias=["bottlespin"])
async def spin(self, ctx, role):
... | Python | 0 | @@ -381,16 +381,55 @@
.roles%5D%0A
+ await self.bot.say(str(roles))%0A
|
a1d1c63678dcb075a8e741947c41abfee6c790a0 | Improve extraction (closes #14617, closes #17990) | youtube_dl/extractor/screencast.py | youtube_dl/extractor/screencast.py | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urllib_request,
)
from ..utils import (
ExtractorError,
)
class ScreencastIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?screencast\.com/t/(?P<id>[a-zA-Z0-9]+... | Python | 0 | @@ -3573,17 +3573,16 @@
r'
-%22
MediaCon
@@ -3592,45 +3592,81 @@
tUrl
-%22:%22(%5B%5E%22%5D+)%22', webpage, 'media content
+%5B%22%5C'%5D%5Cs*:(%5B%22%5C'%5D)(?P%3Curl%3E(?:(?!%5C1).)+)%5C1',%0A webpage, 'video
url
@@ -3672,32 +3672,45 @@
l', default=None
+, group='url'
)%0A%0A if vi
|
30424502a59d564027319f01efe768802e56c1d8 | use variable | host/HL/cmd_seq.py | host/HL/cmd_seq.py | #
# ------------------------------------------------------------
# Copyright (c) SILAB , Physics Institute of Bonn University
# ------------------------------------------------------------
#
# SVN revision information:
# $Rev:: 185 $:
# $Author:: jejan $:
# $Date:: 2014-05-27 1... | Python | 0.000018 | @@ -4273,34 +4273,52 @@
%5B'base_addr'%5D +
-16
+self._cmd_mem_offset
+ addr, data)%0D%0A
@@ -4346,16 +4346,21 @@
lf, size
+=None
, addr=0
@@ -4443,32 +4443,58 @@
e is too big')%0D%0A
+ if not size:%0D%0A
return s
@@ -4534,18 +4534,162 @@
ddr'%5D +
-16
+self._cmd_mem_offset + addr, self._cm... |
7e555aec776cfda9ab2e898f83dccef3005795c2 | Bump dart sdk in third_party/dart/tools/sdks/dart-sdk to 2.1.0-dev.9.4 (#192) | tools/dart/update.py | tools/dart/update.py | #!/usr/bin/python
# Copyright 2015 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.
"""Pulls down the current dart sdk to third_party/dart-sdk/.
You can manually force this to run again by removing
third_party/dart-sdk/STA... | Python | 0 | @@ -757,11 +757,11 @@
dev.
-3.1
+9.4
/sdk
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.