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
dda68846632a8a52f82133719bd4017bd616dcee
fix lints
folium/plugins/time_slider_choropleth.py
folium/plugins/time_slider_choropleth.py
import json from branca.element import Figure, JavascriptLink from folium.features import GeoJson from jinja2 import Template class TimeSliderChoropleth(GeoJson): def __init__(self, data, styledict, name=None, overlay=True, control=True, **kwargs): super(TimeSliderChoropleth, self).__init__(data, name=...
Python
0.000008
@@ -672,17 +672,16 @@ (val))%0A%0A -%0A @@ -6162,25 +6162,16 @@ d_child( -%0A Javascri @@ -6210,24 +6210,16 @@ in.js'), -%0A name='d @@ -6222,19 +6222,10 @@ e='d3v4' -%0A )%0A
c5331de78f9f8496f6400b3816f31bee073abf32
Fix alignment and close an #ifdef
cryptography/hazmat/bindings/openssl/ecdh.py
cryptography/hazmat/bindings/openssl/ecdh.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
Python
0
@@ -837,32 +837,49 @@ NT *, EC_KEY *,%0A + void *(*)(co @@ -918,16 +918,16 @@ _t *));%0A - %0Aint ECD @@ -985,32 +985,54 @@ RYPTO_EX_dup *,%0A + CRYPTO_EX_fr @@ -1038,16 +1038,16 @@ ree *);%0A - %0Aint ECD @@ -1322,24 +1322,44 @@ , EC_KEY *,%0A + ...
0f5163ef987c139fa2f579aaab1779cbb5b7b93f
converted 'i' to 'step'
FluGibson/nucleotide_converter.py
FluGibson/nucleotide_converter.py
""" Author: Eric J. Ma, MIT Date: 11 August 2015 """ from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Alphabet import generic_dna from collections import defaultdict from itertools import combinations import networkx as nx import os class NucleotideConverter(object): """ A class that takes...
Python
0.999999
@@ -213,16 +213,69 @@ nations%0A +from FluGibson.primer_designer import PrimerDesigner%0A import n @@ -5043,17 +5043,20 @@ for -i +step in self @@ -5088,17 +5088,20 @@ if -i +step == 1:%0A @@ -5195,17 +5195,20 @@ ediates%5B -i +step -1%5D%0A @@ -5337,17 +5337,20 @@ rotocol%5B -i +step %5D:%0...
5f517ec0ad0c167be5c4b0b5670329346f1f6f64
add ability to pass variables to the path option
fusionbox/templatetags/fusionbox_tags.py
fusionbox/templatetags/fusionbox_tags.py
from django import template from BeautifulSoup import BeautifulSoup register = template.Library() def addclass(elem, cls): try: elem['class'] += ' ' + cls except KeyError: elem['class'] = cls class HighlighterBase(template.Node): """ Base class for templatetags that highlight specif...
Python
0
@@ -2608,32 +2608,149 @@ ):%0A try:%0A + path = template.Variable(self.options%5B0%5D).resolve(context)%0A except template.VariableDoesNotExist:%0A path
a8974a139dc959540f4808b9dfea604d55b0e447
Fix ctest -R test_python for Python 3.8 (#1151)
tests/python/OpenColorIOTestSuite.py
tests/python/OpenColorIOTestSuite.py
# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenColorIO Project. import unittest import os import sys build_location = sys.argv[1] os.environ["BUILD_LOCATION"] = build_location opencolorio_sse = sys.argv[2].lower() == 'true' opencolorio_dir = os.path.join(build_location, 'src', 'OpenColo...
Python
0.000173
@@ -782,16 +782,193 @@ gv%5B3%5D)%0A%0A + # Python 3.8+ does no longer look for DLLs in PATH environment variable%0A if hasattr(os, 'add_dll_directory'):%0A os.add_dll_directory(opencolorio_dir)%0A else:%0A os.e @@ -994,32 +994,36 @@ 0%7D;%7B1%7D'.format(%0A + opencolo
ea07f7407389811260acce2a9105e8e5b1bb40f2
Update test_op_level1.py
tests/python/relay/test_op_level1.py
tests/python/relay/test_op_level1.py
import tvm from tvm import relay def test_expand_dims_infer_type(): ib = relay.ir_builder.IRBuilder() n, t, d = tvm.var("n"), tvm.var("t"), 100 # let's mimic a batch of sequences x = ib.param("x", relay.ty.TensorType((n, t, d), "float32")) with ib.function(x) as func: ib.ret(relay.expand_d...
Python
0.000004
@@ -861,26 +861,24 @@ checked_type -() %0A assert
0910c562db753a904b1893e47a53297619f49217
Update make_subsets.py
gsoc2017-nausheen/createDBpediaData/make_subsets.py
gsoc2017-nausheen/createDBpediaData/make_subsets.py
# -*- coding: utf-8 -*- """ Created on July 9, 2017 @author: nausheenfatma """ #############################without properties(rdf:type,subject,same as),wikilinks, dbp and literals###################### def make_set1(full_file_path, set_file_path): f=open(full_file_path) fw=open(set_file_path,"w")...
Python
0.000001
@@ -1159,32 +1159,36 @@ 1(%22shuffled_test +_new .txt%22,%22DBpedia_s @@ -1237,32 +1237,36 @@ (%22shuffled_valid +_new .txt%22,%22DBpedia_s @@ -1996,24 +1996,28 @@ huffled_test +_new .txt%22,%22DBped @@ -2074,24 +2074,28 @@ uffled_valid +_new .txt%22,%22DBped
6df778010d35d4d72f9124ab0cad632f4ac0431d
Support default attributemaps
tests/test_21_attribute_converter.py
tests/test_21_attribute_converter.py
#!/usr/bin/env python from saml2 import attribute_converter, saml from attribute_statement_data import * def _eq(l1,l2): return set(l1) == set(l2) BASIC_NF = 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic' URI_NF = 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri' SAML1 = 'urn:mace:shibboleth:1.0:attributeN...
Python
0
@@ -328,16 +328,95 @@ e:uri'%0A%0A +def test_default():%0A acs = attribute_converter.ac_factory()%0A assert acs%0A%0A class Te @@ -795,32 +795,52 @@ #print ats%0A + ava = None%0A%0A for ac i @@ -1464,32 +1464,51 @@ #print ats%0A + ava = None%0A for ac i
3ab661fbd7fdb7f977afca5d38eb8f0ab65deaeb
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/d1ce4aeadb85fda49399d922630164ea24ce92a2.
third_party/tf_runtime/workspace.bzl
third_party/tf_runtime/workspace.bzl
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "4b7d8e901b5598f3739512f022e9dfe218e605cd" TFRT_SHA256 = "e8de656c387fa8b73e461e5534e5...
Python
0
@@ -228,133 +228,133 @@ = %22 -4b7d8e901b5598f3739512f022e9dfe218e605cd%22%0A TFRT_SHA256 = %22e8de656c387fa8b73e461e5534e56036397dead43ae974051f539a905736e8ac +d1ce4aeadb85fda49399d922630164ea24ce92a2%22%0A TFRT_SHA256 = %229ec2555b5ae76773634a29cef3e3bebbfd20de6cdc35c80fa0aee81c786a570e %22%0A%0A
7dc88b6620682d3338d6a08ff4a255f32c65aae8
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/9b140cb259147e01ecfba6df57c745b6a71fd950.
third_party/tf_runtime/workspace.bzl
third_party/tf_runtime/workspace.bzl
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "372edb969ec4aee247c451daf0902078cf8a3fce" TFRT_SHA256 = "5010fb9576a1ef1c73d867a20dba...
Python
0.000001
@@ -228,48 +228,48 @@ = %22 -372edb969ec4aee24 +9b140cb259147e01ecfba6df5 7c +7 45 -1daf0902078cf8a3fce +b6a71fd950 %22%0A @@ -289,71 +289,71 @@ = %22 -5010fb9576a1ef1c73d867a20dba3ac845796e4d3a9e03f4a9ef72323ac387f +3a6ec4127fb2d6011a298c6bb806001418c3573510bff80e57097f589fa2998 7%22%0A%0A
8508b747acb287898651274d8ee3e800f0a13824
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/a1b0f3671864f65c4f6270ccbbf320a8454a74e1.
third_party/tf_runtime/workspace.bzl
third_party/tf_runtime/workspace.bzl
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "226dc422f0cf7636b8357e56b4fe701d969c29b7" TFRT_SHA256 = "0c4f12c4c4fd9232f2392ebceafc...
Python
0
@@ -228,133 +228,133 @@ = %22 -226dc422f0cf7636b8357e56b4fe701d969c29b7%22%0A TFRT_SHA256 = %220c4f12c4c4fd9232f2392ebceafc9ef2b7b71af7198066b179cfd2d755ff22fe +a1b0f3671864f65c4f6270ccbbf320a8454a74e1%22%0A TFRT_SHA256 = %22a10660324c96be592a5bf7ed4bfba41c6886644470f4a868d82f5ce3d56ee113 %22%0A%0A
5d637e92bfb00f21cefe628e933df2618b1f14ed
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/ecd68c32546434bf80f90d2ad8f32095c4cc066e.
third_party/tf_runtime/workspace.bzl
third_party/tf_runtime/workspace.bzl
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "232bc420a3d766bb0d257319f03f2ab15bf3b443" TFRT_SHA256 = "28e14a29c90871fcdd61f0d5fc7c890f49943528ea66ec...
Python
0.000001
@@ -210,133 +210,133 @@ = %22 -232bc420a3d766bb0d257319f03f2ab15bf3b443%22%0A TFRT_SHA256 = %2228e14a29c90871fcdd61f0d5fc7c890f49943528ea66ec53c8019b1fdaf5f367 +ecd68c32546434bf80f90d2ad8f32095c4cc066e%22%0A TFRT_SHA256 = %22222283f436df9ca6c2d50ed3d2f1045c593457cecb130b33f731dd1c96280cfc %22%0A%0A
cfd1581a8b8913df350e5ee09f1e7ae9cdb39850
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/0a2cdcfc4f9409e586290aff06d27d848fd46fe7.
third_party/tf_runtime/workspace.bzl
third_party/tf_runtime/workspace.bzl
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "e48f4cd1e8c2de3dacfac21835e1b6b070c0e00c" TFRT_SHA256 = "e4d8cda2f6e10c85dee5ec3d133b...
Python
0.000003
@@ -228,133 +228,133 @@ = %22 -e48f4cd1e8c2de3dacfac21835e1b6b070c0e00c%22%0A TFRT_SHA256 = %22e4d8cda2f6e10c85dee5ec3d133b4f662200fa01a9c1f69043eab8614b3039a3 +0a2cdcfc4f9409e586290aff06d27d848fd46fe7%22%0A TFRT_SHA256 = %22dadace8820329b088a2bc302fdde1291056921b005bc154844d1826848fd1489 %22%0A%0A
d26ec5ec25920362f59769cb0435846c28af4fba
Remove uneeded button index map
tingbot/platform_specific/tingbot.py
tingbot/platform_specific/tingbot.py
import os def fixup_env(): import evdev os.environ["SDL_FBDEV"] = "/dev/fb1" mouse_path = None for device_path in evdev.list_devices(): device = evdev.InputDevice(device_path) if device.name == "ADS7846 Touchscreen": mouse_path = device_path if mouse_path: os...
Python
0
@@ -1034,77 +1034,8 @@ 18) -%0Abutton_pin_to_index = %7B%0A 17: 0,%0A 23: 1,%0A 24: 2,%0A 18: 3%0A%7D %0A%0Ade
521e24fa115e69bca39d7cca89ce42e8efa3b077
Use full pathname to perf_expectations in test.
tools/perf_expectations/PRESUBMIT.py
tools/perf_expectations/PRESUBMIT.py
#!/usr/bin/python # Copyright (c) 2009 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. """Presubmit script for perf_expectations. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for details on ...
Python
0.001761
@@ -429,16 +429,40 @@ IONS = ' +tools/perf_expectations/ perf_exp @@ -616,40 +616,12 @@ == -input_api.os_path.basename(path) +path :%0A @@ -1047,40 +1047,12 @@ == -input_api.os_path.basename(path) +path :%0A
fa81d500e6c55603f4886ebae51764ce579ed358
Improve failed task detection
acapi/resources/task.py
acapi/resources/task.py
""" Acquia API task queue resource. """ from datetime import datetime import logging import re import requests_cache import time from .acquiaresource import AcquiaResource from ..exceptions import AcquiaCloudTaskFailedException LOGGER = logging.getLogger('acapi.resources.task') class Task(AcquiaResource): """ ...
Python
0.029214
@@ -2047,24 +2047,25 @@ f.request()%0A +%0A stat @@ -2065,123 +2065,117 @@ s -tate +elf.data = task -%5B'state'%5D.encode('ascii', 'ignore')%0A self.data = task%0A return state not in %5B'done', 'error +%0A print 'Completed %7B%7D'.format(task%5B'completed'%5D)%0A return None...
9dd71fe94b57d56a422e784c10c463c22add90c3
Fix absolute reference to logfile location
configuration/development.py
configuration/development.py
import pathlib _basedir = pathlib.Path(__file__).parents[1] SQLALCHEMY_DATABASE_URI = ( 'sqlite:///' + str(_basedir.joinpath(pathlib.PurePath('app.db')).resolve()) ) SQLALCHEMY_TRACK_MODIFICATIONS = True SECRET_KEY = 'INSECURE' MAIL_SERVER = 'localhost' MAIL_PORT = '25' MAIL_DEFAULT_SENDER = 'no-reply@localhos...
Python
0.000004
@@ -756,30 +756,9 @@ %22: %22 -/home/max/Projects/iis +. /iis
013d6896e883845aebf03ea5830b518c918f8b1a
fix typo
addons/portal/portal.py
addons/portal/portal.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2011 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
Python
0.999999
@@ -1343,16 +1343,17 @@ ': field +s .many2ma
ec24391411b7b56155720d5143ec1b671306458c
Fix missing plot parameter
transmutagen/tests/test_transmute.py
transmutagen/tests/test_transmute.py
import sys import os import argparse import logging from functools import wraps import datetime from sympy import sympify, lambdify, horner, fraction import numpy as np from scipy.sparse.linalg import expm from ..transmutagen import CRAM_exp, logger from ..partialfrac import (thetas_alphas, thetas_alphas_to_expr, ...
Python
0.000211
@@ -1017,16 +1017,28 @@ xpr=None +, plot=False ):%0A o @@ -1610,24 +1610,35 @@ c, expr=expr +, plot=plot )%0A%0A num,
9fb936588a7eeab4cea8a72dc3c57ffbb676bbe5
Split loading of filing version and filing models, the former needs to happen first
calaccess_processed/management/commands/loadcalaccessfilingmodels.py
calaccess_processed/management/commands/loadcalaccessfilingmodels.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Load data into processed CAL-ACCESS models, archive processed files and ZIP. """ import os from django.apps import apps from django.core.management import call_command from django.core.management.base import CommandError from django.db import connection from django.util...
Python
0
@@ -2453,21 +2453,24 @@ -self. +version_ models = @@ -2626,19 +2626,941 @@ r(m) -%0A %5D%0A + and%0A 'Version' in str(m)%0A %5D%0A if self.verbosity %3E= 2:%0A self.log(%0A %22Loading raw data into %25s filing verison models.%22 %25 len(version_model...
b0b74348c54eb94c1dd1f5f1c146f2a9fa7c0534
remove unused import
ckanext/stadtzhdwhdropzone/harvesters/stadtzhdwhdropzoneharvester.py
ckanext/stadtzhdwhdropzone/harvesters/stadtzhdwhdropzoneharvester.py
# coding: utf-8 from ckanext.stadtzhharvest.harvester import StadtzhHarvester import os import logging log = logging.getLogger(__name__) class StadtzhdwhdropzoneHarvester(StadtzhHarvester): ''' The harvester for the Stadt ZH DWH Dropzone ''' DATA_PATH = '/usr/lib/ckan/DWH' METADATA_DIR = 'dwh-...
Python
0.000001
@@ -75,19 +75,8 @@ ster -%0A%0Aimport os %0Aimp
0124161cfa0064ff5517c5dff108e74d2066974e
Use cupyx.scipy._scipy_available to import scipy.linalg conditionally in test_decomp_lu.py
tests/cupyx_tests/scipy_tests/linalg_tests/test_decomp_lu.py
tests/cupyx_tests/scipy_tests/linalg_tests/test_decomp_lu.py
import unittest import numpy try: import scipy.linalg scipy_available = True except ImportError: scipy_available = False import cupy from cupy import cuda from cupy import testing import cupyx.scipy.linalg @testing.gpu @testing.parameterize(*testing.product({ 'shape': [(1, 1), (2, 2), (3, 3), (5, 5...
Python
0
@@ -27,114 +27,8 @@ mpy%0A -try:%0A import scipy.linalg%0A%0A scipy_available = True%0Aexcept ImportError:%0A scipy_available = False%0A%0A impo @@ -108,16 +108,73 @@ .linalg%0A +if cupyx.scipy._scipy_available:%0A import scipy.linalg%0A %0A%0A@testi
ad2bb4c4e58a5007067b8f4c8b1598ebeb06ec31
fix import
tests/datasets_tests/test_directory_parsing_label_dataset.py
tests/datasets_tests/test_directory_parsing_label_dataset.py
import unittest import numpy as np import os import tempfile from chainer import testing from chainercv.datasets import directory_parsing_label_names from chainercv.datasets import DirectoryParsingLabelDataset from chainercv.utils import assert_is_label_dataset from chainercv.utils import write_image def _save_img...
Python
0.000001
@@ -1,21 +1,4 @@ -import unittest%0A%0A impo @@ -29,24 +29,54 @@ %0Aimport -tempfile +shutil%0Aimport tempfile%0Aimport unittest %0A%0Afrom c
a0840998821b78dfeae8df8e5d031089393581ed
Fix module dependencies
contract_compassion/__openerp__.py
contract_compassion/__openerp__.py
# -*- encoding: utf-8 -*- ############################################################################## # # ______ Releasing children from poverty _ # / ____/___ ____ ___ ____ ____ ___________(_)___ ____ # / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \ # / /___/ /_/ / / / /...
Python
0.000004
@@ -1703,30 +1703,8 @@ - 'account_accountant', 'l1
149bf36d7bf1a722f83edb0bf9a22891c4001d02
Set Deployment Parameters
tripleo_common/actions/deployment.py
tripleo_common/actions/deployment.py
# Copyright 2016 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
Python
0.000599
@@ -4520,61 +4520,42 @@ -processed_data = super(DeployStackAction, self).run() +# check to see if the stack exists %0A @@ -4728,16 +4728,879 @@ = None%0A%0A + stack_is_new = stack is None%0A%0A # update StackAction, DeployIdentifier and UpdateIdentifier%0A wc = self._get_workflow_client(...
310b7d3aadc0c903f3f5130960e1fc74ec3d951c
Fix conditional in streaming run cmd
vcspull/repo/base.py
vcspull/repo/base.py
# -*- coding: utf-8 -*- """Base class for Repository objects. vcspull.repo.base ~~~~~~~~~~~~~~~~~ """ from __future__ import (absolute_import, division, print_function, unicode_literals, with_statement) import collections import logging import os import subprocess import sys from .. import e...
Python
0.000007
@@ -4870,20 +4870,12 @@ -if err != '' +else :%0A
3c2216db8c9caa09cbdacf094739b7bcf869c068
Use Plotter.datastore = Propagate
compapp/utils.py
compapp/utils.py
from .core import Executable from .plugins import PluginWrapper, AutoDump, Figure, \ SubDataStore, HashDataStore class Plotter(Executable): """ Base plotter class. Example ------- :: class DensityPlotter(Plotter): pass class CumulativeDistributionPlotter(Plotter): ...
Python
0.000002
@@ -102,32 +102,66 @@ , HashDataStore%0A +from .properties import Propagate%0A %0A%0Aclass Plotter( @@ -811,16 +811,17 @@ Figure%0A +%0A data @@ -828,28 +828,255 @@ store = -SubDataStore +Propagate%0A # %60Propagate%60 is used here so that figures are saved as%0A # %60%60PLOTTER_NAME/FIGURE_NAME.png%60...
1c3054b7c8099b800671403856e90cdc455ab577
Update test_connection_async.py
graphene/relay/tests/test_connection_async.py
graphene/relay/tests/test_connection_async.py
from pytest import mark from graphql_relay.utils import base64 from graphene.types import ObjectType, Schema, String from graphene.relay.connection import Connection, ConnectionField, PageInfo from graphene.relay.node import Node letter_chars = ["A", "B", "C", "D", "E"] class Letter(ObjectType): class Meta: ...
Python
0.000004
@@ -1346,24 +1346,29 @@ tter:%25s%22 %25 l +etter .id), %22lette @@ -1372,16 +1372,21 @@ tter%22: l +etter .letter%7D @@ -1440,16 +1440,21 @@ :%25s%22 %25 l +etter .id),%0A @@ -1474,16 +1474,21 @@ for l +etter in %5Blet
07632ce8003497d29f4143f62ffaa5a9f00dc8bc
Remove incorrect select_related calls in the UserViewSet
akvo/rest/views/user.py
akvo/rest/views/user.py
# -*- coding: utf-8 -*- """Akvo RSR is covered by the GNU Affero General Public License. See more details in the license.txt file located at the root folder of the Akvo RSR module. For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. """ from django.contrib.auth import get_u...
Python
0
@@ -1184,283 +1184,8 @@ cts. -select_related(%0A 'organisation',%0A 'organisation__primary_location',%0A 'organisation__primary_location__country',%0A 'organisation__primary_location__location_target',%0A 'organisation__primary_location__location_target__internal_org_ids',%0A ). ...
c66619b45d9023765a687821ff265c7369952da0
version bump to 0.0.6
aldryn_blog/__init__.py
aldryn_blog/__init__.py
# -*- coding: utf-8 -*- __version__ = '0.0.5'
Python
0.000001
@@ -40,7 +40,7 @@ 0.0. -5 +6 '%0A
d75707c9576ab1f69ab669a7ac91577477972757
Remove boilerplate comments
alerts/proxy_drop_ip.py
alerts/proxy_drop_ip.py
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation from lib.alerttask import AlertTask from mozdef_util.qu...
Python
0
@@ -1068,649 +1068,195 @@ ry)%0A -%0A # Search aggregations on field 'hostname', keep X samples of%0A # events at most%0A self.searchEventsAggregated('details.sourceipaddress', samplesLimit=10)%0A # alert when %3E= X matching events in an aggregation%0A # I think it makes sense to al...
189f7d81f31abf20bbd56e098bf8dacd8a933d05
Remove unused function casp_model_names.
alphafold/model/data.py
alphafold/model/data.py
# Copyright 2021 DeepMind Technologies Limited # # 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 agr...
Python
0.999844
@@ -659,32 +659,8 @@ os%0A -from typing import List%0A from @@ -759,180 +759,8 @@ .%0A%0A%0A -def casp_model_names(data_dir: str) -%3E List%5Bstr%5D:%0A params = os.listdir(os.path.join(data_dir, 'params'))%0A return %5Bos.path.splitext(filename)%5B0%5D for filename in params%5D%0A%0A%0A def
82aa492f43b7b7c2a9aa935d4fe101743c64e144
Add function to get stdin/stdout/stderr on MSVC
numba/stdio_util.py
numba/stdio_util.py
#! /usr/bin/env python # ______________________________________________________________________ import ctypes import ctypes.util from numba import * # ______________________________________________________________________ c_void_pp = ctypes.POINTER(ctypes.c_void_p) def get_libc (): return ctypes.CDLL(ctypes.ut...
Python
0
@@ -1227,16 +1227,153 @@ )%5B1:4%5D)%0A + elif hasattr(libc, '__iob_func'):%0A # MSVC%0A ret_val = tuple(ctypes.cast(libc.__iob_func(), c_void_pp)%5B0:3%5D)%0A
7d46b70f0201417a8abd2debed7780834d710897
Add masked_as_lists function
numpy_helpers/ma.py
numpy_helpers/ma.py
import numpy as np def pformat(masked_array): rank = len(masked_array.shape) slices = tuple([slice(0, masked_array.shape[i]) for i in xrange(rank - 1)]) digits = int(np.ceil(np.log10(masked_array.max()))) f = '%%%dd' % digits line = ']\n' + ((rank - 1) * ' ') + '[' formatted_masked = line....
Python
0
@@ -22,15 +22,23 @@ def -pformat +masked_as_lists (mas @@ -252,155 +252,52 @@ its%0A - line = '%5D%5Cn' + ((rank - 1) * ' ') + '%5B'%0A%0A formatted_masked = line.join(%5B', '.join(%5Bf %25 block_id%0A +%0A masked_lists = %5B', '.join(%5Bf %25 block_id if @@ -...
f07204ba55442e13e71c28535714fb0c024aba52
Add unique_id to ohmconnect (#78479)
homeassistant/components/ohmconnect/sensor.py
homeassistant/components/ohmconnect/sensor.py
"""Support for OhmConnect.""" from __future__ import annotations from datetime import timedelta import logging import defusedxml.ElementTree as ET import requests import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.const import CONF_ID, CONF_NAME from...
Python
0
@@ -1454,16 +1454,53 @@ ata = %7B%7D +%0A self._attr_unique_id = ohmid %0A%0A @p
9cc290f6b5f1fd73840d02e2dc390e151ecff2db
Fix typo.
src/waldur_mastermind/analytics/serializers.py
src/waldur_mastermind/analytics/serializers.py
from datetime import timedelta from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from waldur_core.core.serializers import GenericRelatedField from waldur_core.structure.models import Customer, Project class DailyHistoryQuotaSerializer(se...
Python
0.001604
@@ -764,16 +764,18 @@ as_names +() %0A
2f437c9634846424685948263eb82e14bdc0411e
version bump.
octogit/__init__.py
octogit/__init__.py
__version__ = (0, 3, 1)
Python
0
@@ -18,7 +18,7 @@ 3, -1 +2 )%0A
c88cefb1a12f35a8554fc783074883cbc558100a
Use request.access_route for determining origin of request to get through the Openshift servers.
ofCodeStyleGuard.py
ofCodeStyleGuard.py
#!/usr/bin/python """Make sure openFrameworks Pull Requests conform to the code style""" import styleguard import logging import json import os from flask import Flask, request LOGGER = logging.getLogger('webserver') logging.basicConfig(level=styleguard.cfg['logging_level']) APP = Flask(__name__) APP.logger.setLevel(s...
Python
0
@@ -534,32 +534,188 @@ .%22)%0A -%0A%09if request.remote_addr +%09LOGGER.debug('Access route: ' + str(request.access_route%5B:%5D))%0A%09origin = request.access_route%5B0%5D%0A%09# was using request.remote_addr. access_route could possibly be spoofed%0A%09if origin not @@ -797,35 +797,22 @@ WN: %22 + -request.remo...
2c3320d9b2000752bf0a1f7e8576d41f8af68c44
Fix error in error report if no params specified
indico/MaKaC/services/implementation/error.py
indico/MaKaC/services/implementation/error.py
# This file is part of Indico. # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN). # # Indico is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (a...
Python
0.000009
@@ -2259,17 +2259,72 @@ ._params -) + or %7B%7D) # if params is not specified it's an empty list %0A
731eec6335017b9748d1a9b53e137efc580d5db3
Update continuous_patrolling.py
task_executor/scripts/continuous_patrolling.py
task_executor/scripts/continuous_patrolling.py
#!/usr/bin/env python import rospy from strands_executive_msgs.msg import Task from strands_executive_msgs.srv import AddTasks, SetExecutionStatus from std_msgs.msg import String from random import shuffle from ros_datacentre.message_store import MessageStoreProxy from strands_navigation_msgs.msg import TopologicalNo...
Python
0
@@ -369,16 +369,45 @@ reProxy( +collection='topological_maps' )%0A qu
b326d43a94058390a559c4c9f55e9cd88dcac747
Set propper mimetype for image attachment
adhocracy4/emails/mixins.py
adhocracy4/emails/mixins.py
from email.mime.image import MIMEImage from django.contrib.staticfiles import finders from .base import EmailBase class PlatformEmailMixin: """ Attaches the static file images/logo.png so it can be used in an html email. """ def get_attachments(self): attachments = super().get_attachments...
Python
0
@@ -471,16 +471,149 @@ lename:%0A + if filename.endswith('.png'):%0A imagetype = 'png'%0A else:%0A imagetype = 'svg+xml'%0A%0A @@ -689,17 +689,29 @@ f.read() -) +, imagetype)%0A %0A
3afd4e86eb665ddd33538875ba69cf2e7a558b79
put the pid in the formatter
agent/lib/dart/agent/cli.py
agent/lib/dart/agent/cli.py
#!/usr/bin/env python3 """ This is a supervisord event listener. It does things such as: * Forward state changes to the distributed data store. * Forward active and pending configurations to the distributed data store. * Forward host configuration information to the distributed data store. * Listen for commands to exe...
Python
0.000024
@@ -1412,32 +1412,45 @@ tter(%22dart-agent +%5B%25(process)d%5D : %25(asctime)s %25( @@ -1708,16 +1708,29 @@ rt-agent +%5B%25(process)d%5D : %25(asct
765dc2078d8e924bcde7fca75627fe94f8c34d65
Add logging for the original path in load_archive. (#1323)
allennlp/models/archival.py
allennlp/models/archival.py
""" Helper functions for archiving models and restoring archived models. """ from typing import NamedTuple, Dict import json import logging import os import tempfile import tarfile import shutil import pyhocon from allennlp.common import Params from allennlp.common.file_utils import cached_path from allennlp.models....
Python
0
@@ -4166,24 +4166,33 @@ cessary%0A +resolved_ archive_file @@ -4217,24 +4217,239 @@ hive_file)%0A%0A + if resolved_archive_file == archive_file:%0A logger.info(f%22loading archive file %7Barchive_file%7D%22)%0A else:%0A logger.info(f%22loading archive file %7Barchive_file%7D from cache at %7B...
4fa1bcea0cab361596daf9061e10a783bb8675bc
Add expectedFailureFreeBSD for Go runtime test
test/lang/go/runtime/TestGoASTContext.py
test/lang/go/runtime/TestGoASTContext.py
"""Test the go dynamic type handling.""" import os, time import unittest2 import lldb import lldbutil from lldbtest import * class TestGoLanguageRuntime(TestBase): mydir = TestBase.compute_mydir(__file__) @python_api_test @skipIfRemote # Not remote test suite ready @skipUnlessGoInstalled def tes...
Python
0.000161
@@ -227,16 +227,64 @@ pi_test%0A + @expectedFailureFreeBSD('llvm.org/pr24895')%0A @ski
ee95736e1218e3fe7139777775019e38ec6c0edb
Change tests to new syntax.
test_project/test_app/tests/testmaker_tests.py
test_project/test_app/tests/testmaker_tests.py
""" This file is to test testmaker. It will run over the polls app and with the crawler and with test maker outputting things. Hopefully this will provide a sane way to test testmaker. """ from django.test.testcases import TestCase from django.template import Context, Template from django.contrib.auth.models import Use...
Python
0
@@ -392,29 +392,25 @@ import -setup_logging +Testmaker %0Afrom dj @@ -1040,16 +1040,54 @@ +self.tm = Testmaker()%0A self.tm. setup_lo
746acb9251d4b6237ea31baee9c84bf657de6a46
remove redundant 2 lines
src/compas_rhino/geometry/surfaces/surface.py
src/compas_rhino/geometry/surfaces/surface.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry import Surface from compas_rhino.conversions import point_to_rhino from compas_rhino.conversions import point_to_compas from compas_rhino.conversions import vector_to_compas from compas_rh...
Python
0.999999
@@ -5973,46 +5973,8 @@ ean) -%0A else:%0A return None %0A%0A
b8fc78317101fe146ec01e4f8b352986c41a8912
clean up conftest.py
alternator-test/conftest.py
alternator-test/conftest.py
# This file contains "test fixtures", a pytest concept described in # https://docs.pytest.org/en/latest/fixture.html. # A "fixture" is some sort of setup which an invididual test requires to run. # The fixture has setup code and teardown code, and if multiple tests # require the same fixture, it can be set up only once...
Python
0
@@ -464,36 +464,8 @@ time -%0Aimport string%0Aimport random %0A%0A# @@ -4932,143 +4932,8 @@ s%5D%0A%0A -def random_string(len=10, chars=string.ascii_uppercase + string.digits):%0A return ''.join(random.choice(chars) for x in range(len))%0A%0A # %22f @@ -5949,24 +5949,158 @@ m in items:%0A + # TODO: even...
876af95676eeb75ce2077e3fc94078131153df10
Fix dynprefs import
ctfbackend/backend/templatetags/backend_extras.py
ctfbackend/backend/templatetags/backend_extras.py
from django import template from dynamic_preferences.registries import \ global_preferences_registry as dynprefs register = template.Library() @register.simple_tag def navactive(request, urls): if request.resolver_match.url_name in urls.split(): return "active" return "" @register.simple_tag de...
Python
0.000001
@@ -68,14 +68,8 @@ ort -%5C%0A glob @@ -95,20 +95,8 @@ stry - as dynprefs %0A%0Are
23d4c922fc85b54e97df7bf1a0b81c41ec8dd14f
fix for loop math
amag/symmetry-pcap2cards.py
amag/symmetry-pcap2cards.py
#!/usr/bin/env python # By Mike Kelly # exfil.co # @lixmk # # This script is part of the Concierge Toolkit # https://github.com/lixmk/Concierge # # Parses supplied pcap to identify card numbers and facility codes. # This specifically targets AMAG Symmetry SMS and associated hardware. # # Basic Usage: # ./amag_pcap2card...
Python
0.000016
@@ -583,36 +583,12 @@ 8Mt%22 - %7C%7C frame contains %228Ma%22 )')%0A + @@ -695,70 +695,8 @@ ..%22%0A - #Need to confirm math in for loop. Not sure if consitent.%0A @@ -726,14 +726,8 @@ num -+num-1 ):%0A @@ -733,16 +733,17 @@ +p data = s @@ -803,16 +803,17 @@ full = +p data%5B-28
46b0128d59e1ff909a1988743626126876637e56
Update rocker and cclien requests
daemon/provider/musicvideoinfo/spotifyprovider.py
daemon/provider/musicvideoinfo/spotifyprovider.py
import logging import pycurl import json import configparser from urllib.parse import urlencode try: from io import BytesIO except ImportError: from StringIO import StringIO as BytesIO from database.entity import Artist, Album, Track, Image, Genre from .musicvideoinfoprovider import MusicVideoInfoProvider c...
Python
0
@@ -54,16 +54,121 @@ gparser%0A +import sys%0Asys.path.append('../../')%0A%0Afrom config import Config%0Afrom authorization.spotify import Spotify %0Afrom ur @@ -5438,26 +5438,43 @@ ks%0A%0A -%09 + def get -NewRelease +_new_release_by_album_id (sel @@ -5502,80 +5502,8 @@ t):%0A - self.logger.info(%22Ge...
4cecd527b62b0258c44398edf2e666adaae2db7e
Upgrade to v2.7.13
ontobio/__init__.py
ontobio/__init__.py
from __future__ import absolute_import __version__ = '2.7.12' from .ontol_factory import OntologyFactory from .ontol import Ontology, Synonym, TextDefinition from .assoc_factory import AssociationSetFactory from .io.ontol_renderers import GraphRenderer import logging import logging.handlers from logging.config impo...
Python
0.000003
@@ -53,17 +53,17 @@ = '2.7.1 -2 +3 '%0A%0A%0Afrom
65bac82e4e7048f8f0e99f6124e51a564df66c14
Fix python executable mismatch and algorithms computation
src/examples/python/show_algo_dependencies.py
src/examples/python/show_algo_dependencies.py
#!/usr/bin/env python # Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra # # This file is part of Essentia # # Essentia is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation (FSF), e...
Python
0.000002
@@ -933,17 +933,587 @@ algo):%0A -%0A + if algo in %5B'MusicExtractor', 'FreesoundExtractor'%5D:%0A # FIXME These are special algorithms that instantiate all dependencies%0A # inside compute(). Ideally, they should be rewritten to do that in%0A # configure() methods. Feeding a test audiofile a...
a11baea30a9e3f3b65d38c517e6fa305c3bb35e6
Use active program from the site settings if the program keyfields are not specified.
app/soc/modules/gsoc/views/helper/request_data.py
app/soc/modules/gsoc/views/helper/request_data.py
#!/usr/bin/env python2.5 # # Copyright 2011 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 applic...
Python
0
@@ -3114,16 +3114,70 @@ User()%0A%0A + if 'sponsor' in kwargs and 'program' in kwargs:%0A prog @@ -3248,24 +3248,26 @@ + 'scope_path' @@ -3291,16 +3291,18 @@ nsor')%7D%0A + self @@ -3371,78 +3371,23 @@ ds)%0A -%0A -# if the sponsor and program are not passed in the URL%0A i...
a4f8f8f52be7fd9f20524672ba84ad571548d89b
fix for test_spike_train_generation
elephant/test/test_spike_train_generation.py
elephant/test/test_spike_train_generation.py
# -*- coding: utf-8 -*- """ docstring goes here. :copyright: Copyright 2014 by the Elephant team, see AUTHORS.txt. :license: Modified BSD, see LICENSE.txt for details. """ from __future__ import division import unittest import os import warnings import neo import numpy as np from numpy.testing.utils import assert_ar...
Python
0.000002
@@ -2421,35 +2421,33 @@ -self. assert -True(np.allclose +_array_almost_equal (spi @@ -2459,33 +2459,32 @@ ain,spike_train) -) %0A except
bb7c9e117a17e31afc103192c7cd13b68c7232c3
Fix dependency_manager path hacking.
dependency_manager/dependency_manager/__init__.py
dependency_manager/dependency_manager/__init__.py
# 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. import os import sys CATAPULT_PATH = os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__)))) CATAPULT_THIRD_PARTY_PATH = os.path....
Python
0.001589
@@ -584,15 +584,18 @@ ath. -append( +insert(0, path
3c49e26a5ac80303ca1dcef34f9b94b70c50f835
set webmaster@tndata.org as the defaul email sender
tndata_backend/tndata_backend/settings/base.py
tndata_backend/tndata_backend/settings/base.py
""" Django settings for tndata_backend 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 BASE_DIR = os.path.dirname(os.path.dirname(__file__)) AD...
Python
0.001938
@@ -408,39 +408,41 @@ T_FROM_EMAIL = ' -connect +webmaster @tndata.org'%0ASER @@ -458,15 +458,17 @@ = ' -connect +webmaster @tnd
21f1fa9581a8a6ce167a3d50eeb4fdec10168a1a
fix failing unit test due to separator not working on Windows
tofu/tests/tests09_tutorials/tests01_runall.py
tofu/tests/tests09_tutorials/tests01_runall.py
# External modules import os import shutil import types import subprocess import numpy as np import warnings as warn import matplotlib.pyplot as plt # Nose-specific from nose import with_setup # optional # Importing package tofu.geom import tofu as tf from tofu import __version__ _HERE = os.path.abspath(os.pat...
Python
0
@@ -348,62 +348,72 @@ T = -_HERE%5B:-_HERE%5B::-1%5D.index('/tofu'%5B::-1%5D)-len('/tofu')%5D +os.path.abspath(os.path.join(os.path.dirname(_HERE), os.pardir)) %0A# _
4163401029515ba49159356fd293b8472e2d1bff
add admin for message
Webinterface/main/admin.py
Webinterface/main/admin.py
from django.contrib import admin from main.models import Message # Register your models here. admin.site.register(Message)
Python
0
@@ -60,16 +60,603 @@ essage%0A%0A +%0Adef to_dbus(modeladmin, request, queryset):%0A for message in queryset:%0A message.send_to_dbus()%0A%0Ato_dbus.short_description = %22Mark selected messages as published%22%0A%0A%0Adef remove_from_dbus(modeladmin, request, queryset):%0A for message in queryset:%0A ...
8e7538f6e608be8c398be181639334d3854ad290
fix broken import
Contents/Libraries/Shared/subliminal_patch/patch_providers.py
Contents/Libraries/Shared/subliminal_patch/patch_providers.py
# coding=utf-8 import logging from random import randint from subliminal.providers.addic7ed import Addic7edProvider, Addic7edSubtitle, ParserBeautifulSoup, series_year_re, Language from subliminal..cache import SHOW_EXPIRATION_TIME, region logger = logging.getLogger(__name__) class PatchedAddic7edProvider(Addic7edPr...
Python
0.000001
@@ -191,17 +191,16 @@ liminal. -. cache im
830b405d0ca2fae44475e8227536b50a6638bcff
call pl.show
examples/ensemble/plot_partial_dependence.py
examples/ensemble/plot_partial_dependence.py
""" ======================== Partial Dependence Plots ======================== Partial dependence plots show the dependence between the target function [1]_ and a set of 'target' features, marginalizing over the values of all other features (the complement features). Due to the limits of human perception the size of t...
Python
0
@@ -3090,11 +3090,12 @@ nt(%22 -fin +done .%22)%0A @@ -4901,8 +4901,18 @@ r(surf)%0A +pl.show()%0A
19c0ab8ca2204e739206f7bb19adcf7e9fa415a9
discard poses with few inliers
opensfm/matching.py
opensfm/matching.py
import numpy as np import cv2 import pyopengv import logging from opensfm import context from opensfm import multiview logger = logging.getLogger(__name__) # pairwise matches def match_lowe(index, f2, config): """Match features and apply Lowe's ratio filter. Args: index: flann index if the first i...
Python
0.000001
@@ -4441,16 +4441,77 @@ eshold)%0A + if sum(inliers) %3C 8:%0A return np.array(%5B%5D)%0A
fab2684c3afb2dffd43809e5a8efda3ce672ed52
make sure is director
organizers/views.py
organizers/views.py
# Create your views here. from django.contrib import messages from django.core.exceptions import ValidationError from django.db import IntegrityError from django.db.models import Count from django.http import Http404, HttpResponseRedirect from django.urls import reverse from django.views.generic import TemplateView fro...
Python
0.000367
@@ -3101,18 +3101,47 @@ invite') + and request.user.is_director :%0A - @@ -3525,16 +3525,45 @@ onfirm') + and request.user.is_director :%0A @@ -3944,16 +3944,45 @@ cancel') + and request.user.is_director :%0A @@ -4208,32 +4208,32 @@ est, e.message)%0A - elif req @@ -4257,16 +4257,4...
f4c83a4dd5e8f774e976ea72fc9c4369d4e96d39
Add exception handling for when Pi disassociates
ysniff.py
ysniff.py
#!/usr/bin/env python import boto.rds import fileinput import sys import os mac_index = 12 time_index = 1 start_t_us = 0 start_u_us = 0 MAC_LEN = 17 SAMPLE_PERIOD = 30 # Seconds. PUSH_TO_AWS_PERIOD = 300 # Seconds. maclist = set() buffer = {} conn=boto.connect_sdb() domain=conn.get_domain('tmp_ysniff') # TODO: Uplo...
Python
0.000001
@@ -69,16 +69,44 @@ mport os +%0Afrom subprocess import call %0A%0Amac_in @@ -271,32 +271,17 @@ %7B%7D%0A%0A -conn=boto.connect_sdb()%0A +try:%0A doma @@ -313,16 +313,69 @@ sniff')%0A + conn=boto.connect_sdb()%0Aexcept:%0A reconnect()%0A%0A %0A# TODO: @@ -1304,32 +1304,57 @@ key in buffer:%0A + ...
3c81d6708730f237d8b2e1462e80eba6bd5411f3
Add logout function.
zabbix.py
zabbix.py
import requests class ZabbixError(Exception): pass class Api(object): def __init__(self, server='http://localhost/zabbix'): self.session = requests.Session() self.session.headers.update({ 'Content-Type': 'application/json' }) self.url = server + '/api_jsonrpc.php' ...
Python
0
@@ -592,16 +592,258 @@ (user)%0A%0A + def logout(self):%0A json_response = self.do_request('user.logout')%0A if (json_response%5B'result'%5D == True):%0A print 'Logged out. Good bye'%0A else:%0A print 'Log out failed. You might already log out.'%0A%0A def
a31cd86c3412b9e9f6b67aa054035862b9c81508
Fix a bug in update_project_user_task.py, which leads to crash when binding already exists in target.
flyway/flow/update_project_user_role_task.py
flyway/flow/update_project_user_role_task.py
from utils.db_base import read_record __author__ = 'liangshang' from taskflow import task import logging from utils.helper import * from keystoneclient import exceptions LOG = logging.getLogger(__name__) class ProjectUserRoleBindingTask(task.Task): """ Task to update quotas for all migrated projects """ ...
Python
0
@@ -2633,37 +2633,27 @@ # -Check whether +Add the binding @@ -2672,310 +2672,8 @@ sts%0A - self.ks_target.roles.%5C%0A find(user=target_user,%0A role=target_role,%0A tenant=target_project)%0A...
751e81389502332e7b5c89cf90b71ca95d71b7c3
Fix missing step in docs (#1113)
instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
# Copyright The OpenTelemetry 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 law or agreed to in ...
Python
0
@@ -3470,24 +3470,88 @@ lExecutor()) +%0A server = intercept_server(server, server_interceptor()) %0A%0A he
331be7f72afe69403208f9e936bb8ff2483eefa8
Revert accidental revision to local.py
emission_events/emission_events/settings/local.py
emission_events/emission_events/settings/local.py
################## # LOCAL SETTINGS # ################## import os from .base import * ####################### # DEBUG CONFIGURATION # ####################### # https://docs.djangoproject.com/en/1.7/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/1.7/ref/settings/#template-debug TEMPLATE_DEBU...
Python
0.000001
@@ -504,215 +504,90 @@ t': -%7B%0A 'ENGINE': 'django.db.backends.postgresql_psycopg2',%0A 'NAME': 'emission_events',%0A 'USER': 'django',%0A 'PASSWORD': 'django',%0A 'HOST': '0.0.0.0',%0A 'PORT': 5432, +dj_database_url.config(%0A default=os.environ.get('EMISSIONS_DATAB...
279215dae02b455bee0244cd7dcd26e3ce12f39c
fix type and add functool.wraps
eventsourcing/domain/services/event_subscriber.py
eventsourcing/domain/services/event_subscriber.py
from eventsourcing.domain.model.events import subscribe def subscribe_to(event_class): """ Annotation for wrapping up a custom event handler function and subscribe to a certain event type Args: event_class: DomainEvent class or its child classes that the handler function should subscribe to Examp...
Python
0.000001
@@ -1,8 +1,36 @@ +from functools import wraps%0A from eve @@ -122,34 +122,28 @@ %22%22%22 -Annotation for wrapping up +Decorator for making a c @@ -171,20 +171,16 @@ unction -and subscrib @@ -896,16 +896,45 @@ _func)%0A%0A + @wraps(handler_func)%0A
91cfddc113322f03a1ab9e7ec3ad90872fadc5e6
revert undesired changes
examples/connectivity/plot_sensor_connectivity.py
examples/connectivity/plot_sensor_connectivity.py
""" =============================================== Compute all-to-all connectivity in sensor space =============================================== Computes the Phase Lag Index (PLI) between all gradiometers and shows the connectivity in 3D using the helmet geometry. The left visual stimulation data are used which pro...
Python
0
@@ -1126,19 +1126,20 @@ o, meg=' -mag +grad ', eeg=F @@ -1408,17 +1408,21 @@ ict( -mag=4e-12 +grad=4000e-13 , eo
c69a6dea7b69d3ad525ee28febb1180864582583
organize examples
examples/py/phemex-open-cancel-close-positions.py
examples/py/phemex-open-cancel-close-positions.py
# -*- coding: utf-8 -*- import os import sys from pprint import pprint root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root + '/python') import ccxt # noqa: E402 print('CCXT Version:', ccxt.__version__) exchange = ccxt.phemex({ 'enableRateLimit': True, # h...
Python
0.99865
@@ -693,9 +693,9 @@ t = -1 +2 0%0Asy @@ -772,36 +772,16 @@ t) order - (unrealistic price) %0Aorder = @@ -979,35 +979,16 @@ ) order -(unrealistic price) %0AstopMar @@ -1033,23 +1033,12 @@ l, ' -MarketIfTouched +Stop ', ' @@ -1064,29 +1064,59 @@ %7B'stopPx': -2 +7 0000 +, %22triggerType%22: %22ByLastPrice%2...
a445a5fd6ffd9a117bf2e11eceb19f7c76aa7f73
fix docs
gdsfactory/simulation/modes/find_neff_ng_dw_dh.py
gdsfactory/simulation/modes/find_neff_ng_dw_dh.py
"""Compute group and effective index for different waveguide widths and heights. Reproduce Yufei thesis results with MPB. https://www.photonics.intec.ugent.be/contact/people.asp?ID=332 """ import pathlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import pydantic from scipy.interpolate im...
Python
0.000001
@@ -1007,16 +1007,22 @@ de width + in um .%0A @@ -1053,32 +1053,38 @@ eguide thickness + in um .%0A delta_ @@ -1101,24 +1101,30 @@ ta width max + in um .%0A de @@ -1157,16 +1157,22 @@ ness max + in um .%0A @@ -1597,16 +1597,22 @@ velength + in um .%0A @@ -3045,131 +3045,8 @@ o...
d62ec44e98aab1f58084b21d4c9b4c61ffd6fe36
Add tests to cover using the JWTAuth class using ES256 in addition to RS256.
atlassian_jwt_auth/contrib/tests/test_requests.py
atlassian_jwt_auth/contrib/tests/test_requests.py
import unittest import jwt from requests import Request from atlassian_jwt_auth.tests import utils from atlassian_jwt_auth.contrib.requests import create_jwt_auth class RequestsTest(unittest.TestCase, utils.RS256KeyTestMixin): """ tests for the contrib.requests.JWTAuth class """ def setUp(self): se...
Python
0
@@ -51,16 +51,42 @@ equest%0A%0A +import atlassian_jwt_auth%0A from atl @@ -167,16 +167,25 @@ s import + JWTAuth, create_ @@ -201,16 +201,20 @@ %0A%0Aclass +Base Requests @@ -222,53 +222,18 @@ est( -unittest.TestCase, utils.RS256KeyTestMixin +object ):%0A +%0A @@ -505,241 +505,811 @@ def -test_JWTAuth...
1643d34a7c6903b165058ad3d9e158b21f90d102
Update docstring
binding/python/multiverso/theano_ext/sharedvar.py
binding/python/multiverso/theano_ext/sharedvar.py
#!/usr/bin/env python # coding:utf8 from theano.tensor.basic import TensorType, _tensor_py_operators from theano.compile import SharedVariable from theano.compile.sharedvalue import shared from theano.gof import Variable, utils import numpy import multiverso as mv class MVSharedVariable(object): '''MVSharedVaria...
Python
0.000001
@@ -773,136 +773,78 @@ le. -If different initial value is used in%0A different processes, the average of them will be used as the initial%0A value +%0A *Notice*: Only the %60init_value%60 from the master will be used! %0A
d587fbbd962e0682c08c5b9ee49891efafc675a1
add basic parameter filtering (requires url and label)
bootstrapnavtags/templatetags/bootstrapnavtags.py
bootstrapnavtags/templatetags/bootstrapnavtags.py
from django import template register = template.Library() @register.tag def navitem(parser, token): pass
Python
0
@@ -21,16 +21,69 @@ emplate%0A +from django.template.base import TemplateSyntaxError%0A %0A%0Aregist @@ -158,9 +158,633 @@ -pass +bits = token.split_contents()%0A template_tag = bits%5B0%5D%0A%0A if len(bits) %3C 3:%0A raise template.TemplateSyntaxError, %22%25r tag requires at least two argument%2...
38183fac6cd49280ebe36cbecc456aa166d6cb21
Fix a bug with defaults
glumpy/graphics/collection/agg_path_collection.py
glumpy/graphics/collection/agg_path_collection.py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Nicolas P. Rougier # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- """ Antigrain Geometr...
Python
0.000005
@@ -6478,16 +6478,22 @@ t(name, +self._ defaults
4df0318354119b0e7531352b5dbce2a5bb12da01
add some quotations and ready for sql
_src/om2py4w/4wex0/main.py
_src/om2py4w/4wex0/main.py
# -*- coding: utf-8 -*- from bottle import * import sys from jinja2 import Template reload(sys) sys.setdefaultencoding( "utf-8" ) def print_log(): open_file = open("mydaily.log") log = open_file.read() return log def new(txt_add): target = open("mydaily.log", 'a') target.write(txt_add + '\n') ...
Python
0
@@ -127,16 +127,25 @@ -8%22 )%0A%0A%0A +# %E6%89%93%E5%BC%80%E5%8E%86%E5%8F%B2%E6%96%87%E4%BB%B6%0A def prin @@ -232,16 +232,28 @@ rn log%0A%0A +# %E5%90%91%E5%8E%86%E5%8F%B2%E6%96%87%E4%BB%B6%E5%86%99%E5%85%A5%E6%95%B0%E6%8D%AE%0A def new( @@ -333,16 +333,16 @@ + '%5Cn')%0A - targ @@ -353,16 +353,18 @@ lose...
f5fa483f633a343a140f373e497e7f95073b65a6
Use log rather than print
actions/lib/poll_status.py
actions/lib/poll_status.py
#!/usr/bin/env python import datetime import sys import time import requests from requests.exceptions import RequestException import click import logging import os # Needs to be run in a Stackstorm virtualenv from st2actions.runners.pythonrunner import Action class PollStatus(Action): """ Polls a give micro s...
Python
0.000002
@@ -2230,21 +2230,24 @@ -print +self.log (resp)%0A
a0e428192e9229d96afa9378d17690d6437b2623
Extend collection timeouts
aleph/index/collections.py
aleph/index/collections.py
import logging from pprint import pprint # noqa from normality import normalize from aleph.core import es, cache from aleph.model import Entity, Collection from aleph.index.indexes import collections_index, entities_read_index from aleph.index.util import query_delete, index_safe, refresh_sync log = logging.getLogge...
Python
0
@@ -291,16 +291,135 @@ h_sync%0A%0A +STATS_FACETS = %5B'schema', 'names', 'addresses', 'phones', 'emails',%0A 'countries', 'languages', 'ibans'%5D%0A log = lo @@ -1634,25 +1634,24 @@ = schemata%0A -%0A cache.se @@ -1905,123 +1905,8 @@ id)%0A - facets = %5B'schema', 'names', 'addresses', 'pho...
368260eedfbee05c78139637d12cd46537de0088
No usar alexis.Command aquí xd
alexis/modules/__init__.py
alexis/modules/__init__.py
from os import path import glob import inspect import sys from alexis import Command from alexis.logger import log def get_mod_files(fpath): """ Carga una lista de archivos script :param fpath: El directorio a analizar :return: La lista de ubicaciones de los script, como nombre de módulo """ ...
Python
0.999171
@@ -63,16 +63,29 @@ m alexis +.base.command import
b293ab3d60d81f630531a0764795bdc37c4758d7
Fix asset manager view initialization
ade25/assetmanager/browser/assetmanager.py
ade25/assetmanager/browser/assetmanager.py
# -*- coding: utf-8 -*- """Module providing asset management views""" import json import uuid as uuid_tool from Acquisition import aq_inner from Products.Five.browser import BrowserView from plone import api from plone.app.blob.interfaces import IATBlobImage from ade25.assetmanager.stack import IStack class AssetM...
Python
0
@@ -439,32 +439,112 @@ lf.assets()) %3E 0 +%0A return self.render()%0A%0A def render(self):%0A return self.index() %0A%0A def assets @@ -908,24 +908,104 @@ tacks()) %3E 0 +%0A return self.render()%0A%0A def render(self):%0A return self.index() %0A%0A def st @@ -1896,16 +1896,...
404d0b51f61f66ff1c84b92c697c3a9dbf55717f
Use SQLConnectionHandler obj to interact with DB
amgut/db/create_test_db.py
amgut/db/create_test_db.py
#!/usr/bin/env python # ----------------------------------------------------------------------------- # Copyright (c) 2014--, The American Gut Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------...
Python
0
@@ -658,16 +658,86 @@ LATE_FP%0A +from amgut.lib.data_access.sql_connection import SQLConnectionHandler%0A %0A%0Adef _c @@ -2246,212 +2246,95 @@ n = -c +SQLC onnect -(user=AMGUT_CONFIG.user, password=AMGUT_CONFIG.password,%0A host=AMGUT_CONFIG.host, port=AMGUT_CONFIG.port,%0A da...
22c9b42203a55297278ac0cdd0b4914dafd38cad
add school app in settings_common
anytask/settings_common.py
anytask/settings_common.py
# Django settings for anytask project. from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP import os PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) ADMINS = ( # ('Your Name', 'your_email@example.com'), ('Anna K', 'voron13e02@gmail.com'), ('Nickolai Zhuravlev', 'znick@zn...
Python
0
@@ -4446,16 +4446,31 @@ nager',%0A + 'schools',%0A )%0A%0AAUTH_
07a04f63da897ae687fd90039d379482a13372e2
Standardize module names on leading capital letters
txircd/modules/rfc/response_error.py
txircd/modules/rfc/response_error.py
from twisted.plugin import IPlugin from txircd.module_interface import IModuleData, ModuleData from zope.interface import implements class ErrorResponse(ModuleData): implements(IPlugin, IModuleData) name = "errorResponse" core = True def actions(self): return [ ("quit", 10, self.sendE...
Python
0.000035
@@ -214,17 +214,17 @@ name = %22 -e +E rrorResp
b8e95ca633db8ab6f6053bfdf835cb9442fb4743
Change get_info method signature.
typhon/spareice/handlers/cloudsat.py
typhon/spareice/handlers/cloudsat.py
from datetime import datetime, timedelta import warnings from netCDF4 import Dataset import numpy as np import pandas as pd from pyhdf import HDF, VS, V from typhon.spareice.array import Array from typhon.spareice.geographical import GeoData from .. import handlers from . import common __all__ = [ 'C2CICE', ] ...
Python
0
@@ -569,16 +569,26 @@ filename +, **kwargs ):%0A
5fcccdb29e8ad32e09741d7986e988cb224ac56e
Fix argparse type
examples/matrix_demo.py
examples/matrix_demo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017 Richard Hull and contributors # See LICENSE.rst for details. import re import time import argparse from luma.led_matrix.device import max7219 from luma.core.serial import spi, noop from luma.core.render import canvas from luma.core.virtual import view...
Python
0.036677
@@ -3922,19 +3922,19 @@ ', type= -str +int , defaul
33af123f265da974ff2d7743cdaa57b3f87f2dcb
Complete additional table for emails
interview_challenges/iqvia/contact_manager.py
interview_challenges/iqvia/contact_manager.py
from flask import Flask, jsonify, make_response, request, abort import json import redis app = Flask(__name__) rdb = redis.StrictRedis( db=0, charset='utf-8', decode_responses=True) @app.route('/api/get/<key>', methods=['GET']) def get(key): """ Generic get, expecting key to be user:anna,...
Python
0.000002
@@ -3045,16 +3045,85 @@ w_json)%0A + all_keys = set(old_value.keys()).union(set(request.json.keys()))%0A valu @@ -3174,17 +3174,17 @@ alue%5Bjk%5D - +) %0A @@ -3198,46 +3198,16 @@ in -old_value.keys() + request.json. +all_ keys -() %7D%0A
9018c541b8fb0e705e77110cf5f43a9507346105
Disable Telemetry screenshot unittest on mac till we can make it more stable
tools/telemetry/telemetry/core/tab_unittest.py
tools/telemetry/telemetry/core/tab_unittest.py
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging from telemetry.core import util from telemetry.core import exceptions from telemetry.unittest import tab_test_case def _IsDocumentVisib...
Python
0
@@ -176,16 +176,43 @@ ogging%0A%0A +from telemetry import test%0A from tel @@ -3308,24 +3308,95 @@ f).setUp()%0A%0A + # Test flaky on mac: http://crbug.com/358664%0A @test.Disabled('mac')%0A def testSc
4cd3a93c85f35412f0c313c6495755bc4ba92597
make save as set 100x as unlimited (grrrr)
api/webscripts/save_set.py
api/webscripts/save_set.py
########################################################################### # (C) Vrije Universiteit, Amsterdam (the Netherlands) # # # # This file is part of AmCAT - The Amsterdam Content Analysis Toolkit # # ...
Python
0
@@ -1827,16 +1827,18 @@ l=999999 +99 )%0A st
011a546db976f444e76dddc172b213b0a3d5c974
Clean up the SampleFramework class
depthmapper/SampleFramework.py
depthmapper/SampleFramework.py
""" SampleFramework.py - Application framework from the PyOgre demos Requires PyOgre from http://python-ogre.org/ See README.md for installation requirements This code is in the Public Domain """ import ogre.renderer.OGRE as ogre # We don't use the verisons but it's nice to set them up... ogre.OgreVersion = ogre.Ge...
Python
0.000007
@@ -399,13 +399,12 @@ %5B1%5D -+%0A +%5C%0A%09+ ogr @@ -513,17 +513,16 @@ import * - %0A%0Aimport @@ -540,15 +540,18 @@ gger -= + = None%0A%0A +%0A def @@ -562,17 +562,16 @@ pLogging - (logfile @@ -621,20 +621,17 @@ Demo'):%0A - +%09 global l @@ -636,20 +636,17 @@ logger%0A - +%09 # set u...
3041fb18421f7521d0c11405ff33ea375f45d5dc
Make modules uninstallable
l10n_ch_states/__manifest__.py
l10n_ch_states/__manifest__.py
# Copyright 2015 Mathias Neef copadoMEDIA UG # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Switzerland Country States', 'category': 'Localisation', 'summary': '', 'version': '11.0.1.0.0', 'author': 'copado MEDIA UG, Odoo Community Association (OCA)', 'website': 'http...
Python
0
@@ -481,11 +481,12 @@ e': -Tru +Fals e,%0A
29358a1d0ccb4707b0b8f19e562ea7e199a68605
Add OCA as author of OCA addons
l10n_es_partner/__openerp__.py
l10n_es_partner/__openerp__.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (c) 2008 Spanish Localization Team # Copyright (c) 2009 Zikzakmedia S.L. (http://zikzakmedia.com) # Jordi Esteve <jesteve@zikzakm...
Python
0
@@ -1613,16 +1613,49 @@ ion team +,Odoo Community Association (OCA) %22,%0A %22
cb7aeb60fcff7f8fa6ac9e12282bf7dcd71617d8
Fix ceilometerclient mocks for 2.8.0 release
heat/tests/clients/test_ceilometer_client.py
heat/tests/clients/test_ceilometer_client.py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
Python
0.001451
@@ -800,21 +800,24 @@ , '_get_ -alarm +redirect _client'
d341fe0bfbb8dc79f29bfc56d08485c3ad306b4f
Add design library make target rule replacement. am: 333dd5c467 am: d9c97d50dd
jetifier/jetifier/source-transformer/rewriteMake.py
jetifier/jetifier/source-transformer/rewriteMake.py
#!/usr/bin/python import csv, subprocess class StringBuilder(object): def __init__(self, item=None): self.items = [] if item is not None: self.add(item) def add(self, item): self.items.append(str(item)) return self def __str__(self): return "".join(self.items) target_map = """androi...
Python
0.998794
@@ -4694,16 +4694,73 @@ -testing +%0A$(ANDROID_SUPPORT_DESIGN_TARGETS),androidx.design_design %22%22%22%0A%0Area
3d92c98ad5f75d7d19972af96939b28e198499ea
remove whitespaces
tslearn/docs/examples/plot_serialize_models.py
tslearn/docs/examples/plot_serialize_models.py
# -*- coding: utf-8 -*- """ Model Persistence ================= Many tslearn models can be saved to disk and used for predictions at a later time. This can be particularly useful when a model takes a long time to train. **Available formats:** hdf5, json, pickle Save a model to disk:: model.to_<format> Load a...
Python
0.999999
@@ -123,17 +123,16 @@ dictions - %0Aat a la @@ -191,17 +191,16 @@ el takes - %0Aa long @@ -785,25 +785,24 @@ to disk and - %0A may res @@ -859,17 +859,16 @@ s large: - %0A %60%60K @@ -929,17 +929,16 @@ r%60%60, and - %0A %60%60G
e0192c947239eadda4d64859d6166b7d8f8d05e6
Add Method Decorator for API retreival of concepts RE: #3399
arches/app/views/api.py
arches/app/views/api.py
import json from django.shortcuts import render from django.views.generic import View from django.db.models import Q from django.http.request import QueryDict from django.core.urlresolvers import reverse from revproxy.views import ProxyView from arches.app.models import models from arches.app.models.concept import Con...
Python
0
@@ -197,16 +197,70 @@ reverse%0A +from django.utils.decorators import method_decorator%0A%0A from rev @@ -729,16 +729,71 @@ xporter%0A +from arches.app.utils.decorators import group_required%0A %0A%0Aclass @@ -5647,16 +5647,88 @@ ndent)%0A%0A +@method_decorator(group_required('RDM Administrator'), name='dispatch'...
414988d2280ceaa99b093bc0557716d943664216
Update import for base test serializer
platform/coredb/tests/test_api/test_artifacts_serializers.py
platform/coredb/tests/test_api/test_artifacts_serializers.py
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
Python
0
@@ -959,22 +959,29 @@ rom -tests.test_api +polycommon.test_cases .bas
365e51729e8d2caddc3116bc4c4d1c9f5f5d45c1
Debug code
app/schedule/service/sms.py
app/schedule/service/sms.py
from datetime import datetime from time import sleep from django.conf import settings from pyfcm import FCMNotification class SMS: def __init__(self): self.client = FCMNotification(settings.FIREBASE_TOKEN) def wait_for_status_change(self, schedule) -> bool: start_time = datetime.now() ...
Python
0.000001
@@ -570,16 +570,79 @@ = True%0A + print('FINALLYYY !! STATUS HAS BEEN CHANGED!')%0A @@ -811,16 +811,48 @@ edido')%0A + print('WAITING!!!')%0A @@ -1267,16 +1267,49 @@ %7D)%0A + print('AHHHH WORKING!!!') %0A
6872f6436cebcf0782ffaf794a170cb11f569f1e
change warning to info for verb alias expansion
catkin_tools/commands/catkin.py
catkin_tools/commands/catkin.py
# Copyright 2014 Open Source Robotics Foundation, 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...
Python
0
@@ -4148,30 +4148,26 @@ @!@%7B -yf%7DWarning:@%7C The verb +gf%7D==%3E@%7C Expanding ali
6ce29a5eb3e69920bb54cfddc83ede9d3d2af159
Add support for querying nested property of objects
parse_rest/query.py
parse_rest/query.py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will ...
Python
0
@@ -4339,16 +4339,59 @@ r(name)%0A + attr = attr.replace(%22__%22, %22.%22)%0A @@ -5136,24 +5136,16 @@ eturn q%0A - %0A def
f93a171bb6338fe389b713cf8b53e36a2af896ee
Update max session duration in sts_assume_role documentation(#41765)
lib/ansible/modules/cloud/amazon/sts_assume_role.py
lib/ansible/modules/cloud/amazon/sts_assume_role.py
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterf...
Python
0
@@ -1308,26 +1308,27 @@ minutes) to -36 +432 00 seconds ( @@ -1332,16 +1332,88 @@ s (1 +2 hour +s ).%0A + The max dependis on the IAM role's sessions duration setting.%0A @@ -1461,16 +1461,17 @@ seconds. +s %0A exter