commit
stringlengths
40
40
subject
stringlengths
1
1.49k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
new_contents
stringlengths
1
29.8k
old_contents
stringlengths
0
9.9k
lang
stringclasses
3 values
proba
float64
0
1
7aca118be8db36370ff793b6cbedecb050dc869d
Change control plugin name to 'control'.
twisted/plugins/automatron_control.py
twisted/plugins/automatron_control.py
from twisted.internet import defer from zope.interface import classProvides, implements from automatron.command import IAutomatronCommandHandler from automatron.plugin import IAutomatronPluginFactory, STOP class AutomatronControlPlugin(object): classProvides(IAutomatronPluginFactory) implements(IAutomatronCom...
from twisted.internet import defer from zope.interface import classProvides, implements from automatron.command import IAutomatronCommandHandler from automatron.plugin import IAutomatronPluginFactory, STOP class AutomatronControlPlugin(object): classProvides(IAutomatronPluginFactory) implements(IAutomatronCom...
Python
0
1519d9dc2f483671aee0f92252dd839a4d7af9c3
Add About page TemplateView
painindex_app/urls.py
painindex_app/urls.py
from django.conf.urls import patterns, url from django.views.generic import TemplateView, FormView from painindex_app import views urlpatterns = patterns('', url(r'^$', views.homepage, name='homepage'), url(r'^about/$', TemplateView.as_view(template_name='painindex_app/about.html'), name='about'), url(r'^...
from django.conf.urls import patterns, url from django.views.generic import TemplateView, FormView from painindex_app import views urlpatterns = patterns('', url(r'^$', views.homepage, name='homepage'), url(r'^painsource/(?P<painsource_id>\d+)/$', views.painsource_detail, name='painsource_detail'), # url(...
Python
0
40705a39292d0080126933b2318d20ef1a4499a2
Remove obsolete input.
lobster/cmssw/data/job.py
lobster/cmssw/data/job.py
#!/usr/bin/env python import json import os import pickle import shutil import subprocess import sys fragment = """import FWCore.ParameterSet.Config as cms process.source.fileNames = cms.untracked.vstring({input_files}) process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1)) process.source.lumisToProc...
#!/usr/bin/env python import base64 import json import os import pickle import shutil import subprocess import sys fragment = """import FWCore.ParameterSet.Config as cms process.source.fileNames = cms.untracked.vstring({input_files}) process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1)) process.sour...
Python
0.000183
efe75d083093bf7a421234831e27d661ef93dfdb
add labels and kwargs'
cupyx/time.py
cupyx/time.py
import time import numpy import cupy from cupy import util class _PerfCaseResult(object): def __init__(self, name, ts): assert ts.ndim == 2 and ts.shape[0] == 2 and ts.shape[1] > 0 self.name = name self._ts = ts @property def cpu_times(self): return self._ts[0] @pro...
import time import numpy import cupy from cupy import util class _PerfCaseResult(object): def __init__(self, name, ts): assert ts.ndim == 2 and ts.shape[0] == 2 and ts.shape[1] > 0 self.name = name self._ts = ts @property def cpu_times(self): return self._ts[0] @pro...
Python
0
85769162560d83a58ccc92f818559ddd3dce2a09
Fix another bug in the authentication
pages/index.py
pages/index.py
import web from modules.base import renderer from modules.login import loginInstance from modules.courses import Course #Index page class IndexPage: #Simply display the page def GET(self): if loginInstance.isLoggedIn(): userInput = web.input(); if "logoff" in userInput: ...
import web from modules.base import renderer from modules.login import loginInstance from modules.courses import Course #Index page class IndexPage: #Simply display the page def GET(self): if loginInstance.isLoggedIn(): userInput = web.input(); if "logoff" in userInput: ...
Python
0.000005
f7cfa7ec75243dbc4dc6cf75155d8083df504692
extend benchmark for lights
mpf/benchmarks/test_benchmark_light_shows.py
mpf/benchmarks/test_benchmark_light_shows.py
import time from functools import partial from mpf.core.logging import LogMixin from mpf.tests.MpfGameTestCase import MpfGameTestCase class BenchmarkLightShows(MpfGameTestCase): def getConfigFile(self): return 'config.yaml' def getMachinePath(self): return 'benchmarks/machine_files/shows/'...
import time from functools import partial from mpf.core.logging import LogMixin from mpf.tests.MpfGameTestCase import MpfGameTestCase class BenchmarkLightShows(MpfGameTestCase): def getConfigFile(self): return 'config.yaml' def getMachinePath(self): return 'benchmarks/machine_files/shows/'...
Python
0
1363c12251cb6aaad37f2b3be6890f70e7f80a66
Fix invalid syntax
location_field/widgets.py
location_field/widgets.py
from django.conf import settings from django.forms import widgets from django.utils.safestring import mark_safe GOOGLE_MAPS_V3_APIKEY = getattr(settings, 'GOOGLE_MAPS_V3_APIKEY', None) GOOGLE_API_JS = '//maps.google.com/maps/api/js?sensor=false' if GOOGLE_MAPS_V3_APIKEY: GOOGLE_API_JS = '{0}&amp;key={0}'.format(G...
from django.conf import settings from django.forms import widgets from django.utils.safestring import mark_safe GOOGLE_MAPS_V3_APIKEY = getattr(settings, 'GOOGLE_MAPS_V3_APIKEY', None) GOOGLE_API_JS = '//maps.google.com/maps/api/js?sensor=false' if GOOGLE_MAPS_V3_APIKEY: GOOGLE_API_JS = '{0}&amp;key={0}'.format(G...
Python
0.999586
b177629c1869fe707ec69ade0927bf9769e1cbe6
Freeze sql parse to 0.2.4
djongo/__init__.py
djongo/__init__.py
__version__ = '1.2.32'
__version__ = '1.2.31'
Python
0.999989
30c8e4d7a1e6e237772aa89256b83ec37a015803
increment version
terminalone/metadata.py
terminalone/metadata.py
# -*- coding: utf-8 -*- __name__ = 'TerminalOne' __author__ = 'MediaMath' __copyright__ = 'Copyright 2015, MediaMath' __license__ = 'Apache License, Version 2.0' __version__ = '1.9.9' __maintainer__ = 'MediaMath Developer Relations' __email__ = 'developers@mediamath.com' __status__ = 'Stable' __url__ = 'http://www.med...
# -*- coding: utf-8 -*- __name__ = 'TerminalOne' __author__ = 'MediaMath' __copyright__ = 'Copyright 2015, MediaMath' __license__ = 'Apache License, Version 2.0' __version__ = '1.9.8' __maintainer__ = 'MediaMath Developer Relations' __email__ = 'developers@mediamath.com' __status__ = 'Stable' __url__ = 'http://www.med...
Python
0.000004
c8445a938d9bd9512b8af40ac8e9465a3ab9f04d
Fix exception handling error.
d2to1/core.py
d2to1/core.py
import os import sys import warnings from distutils.core import Distribution as _Distribution from distutils.errors import DistutilsFileError, DistutilsSetupError from setuptools.dist import _get_unpatched from .extern import six from .util import DefaultGetDict, IgnoreDict, cfg_to_args _Distribution = _get_unpatch...
import os import sys import warnings from distutils.core import Distribution as _Distribution from distutils.errors import DistutilsFileError, DistutilsSetupError from setuptools.dist import _get_unpatched from .extern import six from .util import DefaultGetDict, IgnoreDict, cfg_to_args _Distribution = _get_unpatch...
Python
0.000011
1fca3a48b0617b19554ab55c54db322090a69c3d
Add with statement tests
magic/tests/test_magic.py
magic/tests/test_magic.py
import unittest import magic import magic.flags class MagicTestCase(unittest.TestCase): def setUp(self): self.magic = magic.Magic() def test_get_version(self): self.assertTrue(isinstance(self.magic.version, int)) def test_from_buffer(self): mimetype = self.magic.from_buffer("ehlo") self.asse...
import unittest import magic import magic.flags class MagicTestCase(unittest.TestCase): def setUp(self): self.magic = magic.Magic() def test_get_version(self): self.assertTrue(isinstance(self.magic.version, int)) def test_from_buffer(self): mimetype = self.magic.from_buffer("ehlo") self.asse...
Python
0.000004
436aa56758403b96aa4c0038db6d2a24047cfa16
fix bug
monthertree/monthertree/wsgi.py
monthertree/monthertree/wsgi.py
""" WSGI config for monthertree project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os import sys from django.conf import settings sys.path.append(settings.PROJECT_DIR) o...
""" WSGI config for monthertree project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os import sys sys.path.append('/home/jinxp/Documents/shell/mothertree/monthertree/') o...
Python
0.000001
3d7e7c53c5c2809df74a8f8d61a7f929e02a1ce6
Require libunwind
var/spack/packages/gperftools/package.py
var/spack/packages/gperftools/package.py
############################################################################## # Copyright (c) 2013, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Written by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647188 ...
############################################################################## # Copyright (c) 2013, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Written by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647188 ...
Python
0.998829
6d8dbb6621da2ddfffd58303131eb6cda345e37c
Make person experience the default tab for ZA
pombola/south_africa/urls.py
pombola/south_africa/urls.py
from django.conf.urls import patterns, include, url from pombola.core.views import PersonDetailSub from pombola.south_africa.views import LatLonDetailView,SAPlaceDetailSub urlpatterns = patterns('pombola.south_africa.views', url(r'^place/latlon/(?P<lat>[0-9\.-]+),(?P<lon>[0-9\.-]+)/', LatLonDetailView.as_view(), ...
from django.conf.urls import patterns, include, url from pombola.south_africa.views import LatLonDetailView,SAPlaceDetailSub urlpatterns = patterns('pombola.south_africa.views', url(r'^place/latlon/(?P<lat>[0-9\.-]+),(?P<lon>[0-9\.-]+)/', LatLonDetailView.as_view(), name='latlon'), url(r'^place/(?P<slug>[-\w]...
Python
0.000001
80618891a11c90bdfc763d9a00e9bdcf2e9302fd
Create resources on deploy
noopy/project_template/deploy.py
noopy/project_template/deploy.py
#!/usr/bin/python import glob import importlib import os import sys import zipfile from StringIO import StringIO import boto3 import noopy from noopy.endpoint import Endpoint from noopy.endpoint.resource import Resource from noopy.utils import to_pascal_case import settings def main(): target_dir = 'src' zi...
#!/usr/bin/python import glob import importlib import os import sys import zipfile from StringIO import StringIO import boto3 import noopy from noopy.endpoint import Endpoint from noopy.utils import to_pascal_case import settings def main(): target_dir = 'src' zip_bytes = make_zip(target_dir) for endpoi...
Python
0.000001
76289f734f622227c44487d8f44879e078dbdcb3
Improve gzweb launcher
src/deedee_tutorials/src/deedee_tutorials/launcher.py
src/deedee_tutorials/src/deedee_tutorials/launcher.py
#! /usr/bin/env python import rospy import subprocess class MainLauncher: ''' Node spawning the environment with respect to the global configs ''' def __init__(self): rospy.init_node("middleware_spawner") rospy.sleep(0.5) # Configs self.configs = {"robot_name": "deedee", "si...
#! /usr/bin/env python import rospy import subprocess class MainLauncher: ''' Node spawning the environment with respect to the global configs ''' def __init__(self): rospy.init_node("middleware_spawner") rospy.sleep(0.5) # Configs self.configs = {"robot_name": "deedee", "si...
Python
0
61c6f174b1e406955c3e881217ff863d6ff6c3ce
Fix validate/sanitize functions for click
pathvalidate/click.py
pathvalidate/click.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import click from ._common import PathType from ._file import sanitize_filename, sanitize_filepath, validate_filename, validate_filepath from .error import ValidationError def validate_filename_arg(ctx, param, value) -> str: if not value: ...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import click from ._common import PathType from ._file import sanitize_filename, sanitize_filepath, validate_filename, validate_filepath from .error import ValidationError def validate_filename_arg(ctx, param, value) -> None: if not value:...
Python
0
b65283984b1be7e8bb88d3281bb3654a3dd12233
Make sure test setup is run for subdirectories
nova/tests/scheduler/__init__.py
nova/tests/scheduler/__init__.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Openstack LLC. # 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/...
Python
0.000001
fd74c411fefac7a633627fd3eb5a3c194e6e2b1c
add never_cache for people_admin views
people_admin/views.py
people_admin/views.py
from django.shortcuts import render, get_object_or_404 from django.db.models import Count from openstates.data.models import LegislativeSession, Person from utils.common import abbr_to_jid, sessions_with_bills, states from people_admin.models import UnmatchedName, NameStatus from django.views.decorators.http import re...
from django.shortcuts import render, get_object_or_404 from django.db.models import Count from openstates.data.models import LegislativeSession, Person from utils.common import abbr_to_jid, sessions_with_bills, states from people_admin.models import UnmatchedName, NameStatus from django.views.decorators.http import re...
Python
0
aeb69479a6bf5492411e82bbcb77331daa8da819
add a test to test the monitor
tests/test_bzoing.py
tests/test_bzoing.py
""" test_bzoing ---------------------------------- Tests for `bzoing` module. """ import unittest from bzoing.tasks import Bzoinq, Monitor import time class TestTasksAndMonitor(unittest.TestCase): def test_creating_task(self): a = Bzoinq() a.create_task() self.assertTrue(len(a.task_lis...
""" test_bzoing ---------------------------------- Tests for `bzoing` module. """ import unittest from bzoing.tasks import Bzoinq, Monitor import time class TestTasksAndMonitor(unittest.TestCase): def test_creating_task(self): a = Bzoinq() a.create_task() self.assertTrue(len(a.task_list...
Python
0.000001
148826f75072576d7f0d0f206e3d1dba34688720
Refactor getLongestWord to simplify maximum collection and reduce number of conditionals
stream_processor/stream_processor.py
stream_processor/stream_processor.py
''' Created on Aug 7, 2017 @author: alkaitz ''' import heapq ''' You have a function that will be called with a stream of strings. Every time you receive a new word, you should return the length of the longest word that you have received that has showed in the string only once. Ex: f("Yes") -> 3 ...
''' Created on Aug 7, 2017 @author: alkaitz ''' import heapq ''' You have a function that will be called with a stream of strings. Every time you receive a new word, you should return the length of the longest word that you have received that has showed in the string only once. Ex: f("Yes") -> 3 ...
Python
0
6d267faaf9d18e58b24cf93906961b152ef0fcb7
build vehicle list based on if make is provided
src/vehicles/views.py
src/vehicles/views.py
from django.shortcuts import render, render_to_response, RequestContext # import the custom context processor from vehicles.context_processor import global_context_processor from vehicles.models import Vehicle, VehicleMake, Category def home_page(request): return render_to_response("home_page.html", locals(), ...
from django.shortcuts import render, render_to_response, RequestContext # import the custom context processor from vehicles.context_processor import global_context_processor from vehicles.models import Vehicle, Category def home_page(request): return render_to_response("home_page.html", locals(), context...
Python
0.000001
39ab86b500cc28420aa0062395adc9e6ddf2017c
allow reading fom multiple configuration files
src/vsphere/config.py
src/vsphere/config.py
import sys from os import path from ConfigParser import ConfigParser VSPHERE_CFG_FILE = "vsphere.conf" unix_platforms = [ "darwin", "Linux" ] class EsxConfig: def __init__(self): ok = False # specific configuration local_cfg = VSPHERE_CFG_FILE # user-global configuration...
from ConfigParser import ConfigParser class EsxConfig: def __init__(self): parser = ConfigParser() parser.read("vsphere.conf") self.vs_host = parser.get('server', 'host') self.vs_user = parser.get('server', 'user') self.vs_password = parser.get('server', 'password') ...
Python
0
170a50eeca4249a488cc9d0c69876c5f2708b743
use two-tail for testing significance and right_tail for redundancy checking
stats/significance.py
stats/significance.py
''' Significance testing methods. @author: anze.vavpetic@ijs.si ''' from fisher import pvalue def is_redundant(rule, new_rule): ''' Computes the redundancy coefficient of a new rule compared to its immediate generalization. Rules with a coeff > 1 are deemed non-redundant. ''' return _fisher(...
''' Significance testing methods. @author: anze.vavpetic@ijs.si ''' from fisher import pvalue def is_redundant(rule, new_rule): ''' Computes the redundancy coefficient of a new rule compared to its immediate generalization. Rules with a coeff > 1 are deemed non-redundant. ''' return fisher(n...
Python
0
8907993e48a59ce39dab1cdb359e287f527b7642
Add --verbose parameter
stbt_control_relay.py
stbt_control_relay.py
#!/usr/bin/python """ Allows using any of the stbt remote control backends remotely using the lirc protocol. Presents the same socket protocol as lircd but sending keypresses using any of stbt's controls. This allows for example controlling a roku over its HTTP interface from some software that only speaks lirc. Exa...
#!/usr/bin/python """ Allows using any of the stbt remote control backends remotely using the lirc protocol. Presents the same socket protocol as lircd but sending keypresses using any of stbt's controls. This allows for example controlling a roku over its HTTP interface from some software that only speaks lirc. Exa...
Python
0
84ee720fd2d8403de5f49c54fc41bfcb67a78f78
Add missing vat alias for Turkey
stdnum/tr/__init__.py
stdnum/tr/__init__.py
# __init__.py - collection of Turkish numbers # coding: utf-8 # # Copyright (C) 2016 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, ...
# __init__.py - collection of Turkish numbers # coding: utf-8 # # Copyright (C) 2016 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, ...
Python
0.000355
e0bd89115c4d103334fe0c751cdbc96a9f005ba6
version up
substance/_version.py
substance/_version.py
__version__ = '1.1.beta.4'
__version__ = '1.1.beta.3'
Python
0.998795
f02eb748d33b621368198c10a965b27ee31effca
update tutorial section link
swagger/yamlscript.py
swagger/yamlscript.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # This script, when run, parses the file "swagger.yaml" and strips it down to only # include those paths and methods specified in the included variable. # # As of now, it is called with every "jekyll build" - see jekyll-freme/_plugins/jekyll-pages-directory.rb # line: "...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # This script, when run, parses the file "swagger.yaml" and strips it down to only # include those paths and methods specified in the included variable. # # As of now, it is called with every "jekyll build" - see jekyll-freme/_plugins/jekyll-pages-directory.rb # line: "...
Python
0
86b698a228ddf1309e8f2006726724af05c5fca1
bump version
symposion/__init__.py
symposion/__init__.py
__version__ = "1.0b1.dev12"
__version__ = "1.0b1.dev11"
Python
0
18d551d2495fc122edb142e416a06ce4129da1f7
Update urls.py
life3/config/urls.py
life3/config/urls.py
"""life3.0 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
"""life3.0 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
Python
0.000002
ac3a9211725a0538c8c8f7899d86e4e22ceebb71
Update binary_search.py
aids/sorting_and_searching/binary_search.py
aids/sorting_and_searching/binary_search.py
''' In this module, we implement binary search in Python both recrusively and iteratively Assumption: Array is sorted Time complexity: O(log n) ''' def binary_search_recursive(arr, left, right, value): ''' Recursive implementation of binary search of a sorted array Return index of the value found else ...
''' In this module, we implement binary search in Python both recrusively and iteratively Assumption: Array is sorted Time complexity: O(log n) ''' def binary_search_recursive(arr, left, right, value): ''' Recursive implementation of binary search of a sorted array Return index of the value found else ...
Python
0.000002
1433106d2e36a08f79b4b2c67e07c1fdd361bda6
fix MAINTENANCE_MODE logic
electionleaflets/urls.py
electionleaflets/urls.py
from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.views.generic import TemplateView admin.autodiscover() from leaflets.feeds import * from core.views import HomeView, MaintenanceView MAINTENANCE...
from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.views.generic import TemplateView admin.autodiscover() from leaflets.feeds import * from core.views import HomeView, MaintenanceView if getattr...
Python
0.000011
5605dd1f37f91d0fa627d49332f5550c90e6d2e7
Check child is element before inspecting name
mammoth/docx/xmlparser.py
mammoth/docx/xmlparser.py
import collections import xml.sax XmlElementBase = collections.namedtuple("XmlElement", ["name", "attributes", "children"]) class XmlElement(XmlElementBase): def find_child_or_null(self, name): return self.find_child(name) or _null_xml_element def find_child(self, name): for child in self...
import collections import xml.sax XmlElementBase = collections.namedtuple("XmlElement", ["name", "attributes", "children"]) class XmlElement(XmlElementBase): def find_child_or_null(self, name): return self.find_child(name) or _null_xml_element def find_child(self, name): for child in self...
Python
0.000001
bc9bbe0075f8a6571179e2310a9cfeaff89652b2
Remove unused argument
modules/pipeunion.py
modules/pipeunion.py
# pipeunion.py # from pipe2py import util def pipe_union(context, _INPUT, **kwargs): """This operator merges up to 5 source together. Keyword arguments: context -- pipeline context _INPUT -- source generator kwargs -- _OTHER1 - another source generator _OTHER2 etc. Yields (...
# pipeunion.py # from pipe2py import util def pipe_union(context, _INPUT, conf, **kwargs): """This operator merges up to 5 source together. Keyword arguments: context -- pipeline context _INPUT -- source generator kwargs -- _OTHER1 - another source generator _OTHER2 etc. conf: ...
Python
0.000009
3053c57a67c4dfb5e20bb93d6a586c7acf84275e
Prepare release v1.3.5.
monitoring/nagios/__init__.py
monitoring/nagios/__init__.py
import monitoring.nagios.logger __version__ = '1.3.5'
import monitoring.nagios.logger __version__ = '1.3.2'
Python
0
cf07c34fe3a3d7b8767e50e77e609253dd177cff
Use isoformat date RFC 3339
moulinette/utils/serialize.py
moulinette/utils/serialize.py
import logging from json.encoder import JSONEncoder import datetime logger = logging.getLogger('moulinette.utils.serialize') # JSON utilities ------------------------------------------------------- class JSONExtendedEncoder(JSONEncoder): """Extended JSON encoder Extend default JSON encoder to recognize mor...
import logging from json.encoder import JSONEncoder import datetime logger = logging.getLogger('moulinette.utils.serialize') # JSON utilities ------------------------------------------------------- class JSONExtendedEncoder(JSONEncoder): """Extended JSON encoder Extend default JSON encoder to recognize mor...
Python
0
5d8b2224bf2864ad7e4bacb0624542dec8549b57
add mpf-mc entry points in machine test
mpf/tests/MpfMachineTestCase.py
mpf/tests/MpfMachineTestCase.py
import inspect from mpf.core.machine import MachineController from mpf.tests.MpfTestCase import MpfTestCase class MpfMachineTestCase(MpfTestCase): def __init__(self, methodName='runTest'): super().__init__(methodName) # only disable bcp. everything else should run self.machine_config_pat...
from mpf.tests.MpfTestCase import MpfTestCase class MpfMachineTestCase(MpfTestCase): def __init__(self, methodName='runTest'): super().__init__(methodName) # only disable bcp. everything else should run self.machine_config_patches = dict() self.machine_config_patches['bcp'] = [] ...
Python
0
04745c9c4074ee44e2cfd7ef5fecae1eb796b109
Fix now_utc() to return aware datetime
mycroft/util/time.py
mycroft/util/time.py
# -*- coding: utf-8 -*- # # Copyright 2018 Mycroft AI 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 ...
# -*- coding: utf-8 -*- # # Copyright 2018 Mycroft AI 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
e4ccfdb49951ed9c4073ba389421d89fea273288
make test more robust
mpfmc/tests/MpfSlideTestCase.py
mpfmc/tests/MpfSlideTestCase.py
from mpf.tests.MpfTestCase import MpfTestCase class MpfSlideTestCase(MpfTestCase): def assertSlideOnTop(self, slide_name, target="default"): self.assertEqual(slide_name, self.mc.targets[target].current_slide.name) def assertTextOnTopSlide(self, text, target="default"): self.assertTextInSlide...
from mpf.tests.MpfTestCase import MpfTestCase class MpfSlideTestCase(MpfTestCase): def assertSlideOnTop(self, slide_name, target="default"): self.assertEqual(slide_name, self.mc.targets[target].current_slide.name) def assertTextOnTopSlide(self, text, target="default"): self.assertTextInSlide...
Python
0.000329
6ad60176892df0eabb7faf96277c792c742fc9f0
simplify some codes in _build_request
mechanicalsoup/browser.py
mechanicalsoup/browser.py
import requests import bs4 from six.moves import urllib from six import string_types from .form import Form class Browser: def __init__(self, session=None, soup_config=None): self.session = session or requests.Session() self.soup_config = soup_config or dict() @staticmethod def add_soup(...
import requests import bs4 from six.moves import urllib from six import string_types from .form import Form class Browser: def __init__(self, session=None, soup_config=None): self.session = session or requests.Session() self.soup_config = soup_config or dict() @staticmethod def add_soup(...
Python
0.000117
8a006ecff95e7699a4ca65f2af5ff566648c3a0d
Add norhh suggestion #1
mythril/analysis/modules/dos.py
mythril/analysis/modules/dos.py
"""This module contains the detection code SWC-128 - DOS with block gas limit.""" import logging from typing import Dict, cast, List from mythril.analysis.swc_data import DOS_WITH_BLOCK_GAS_LIMIT from mythril.laser.ethereum.strategy.custom import JUMPDEST_LIMIT from mythril.analysis.report import Issue from mythril.a...
"""This module contains the detection code SWC-128 - DOS with block gas limit.""" import logging from typing import Dict, cast, List from mythril.analysis.swc_data import DOS_WITH_BLOCK_GAS_LIMIT from mythril.analysis.report import Issue from mythril.analysis.modules.base import DetectionModule from mythril.laser.eth...
Python
0
39a23d06cc09a9dbf0802740aaca8854bfd64b04
Add check for directory access rights in LocalStorage
onitu/drivers/local_storage/local_storage.py
onitu/drivers/local_storage/local_storage.py
import os from path import path from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler from onitu.api import Plug plug = Plug() # Ignore the next Watchdog event concerning those files events_to_ignore = set() # Store the mtime of the last write of each transfered file last_mtime ...
from path import path from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler from onitu.api import Plug plug = Plug() # Ignore the next Watchdog event concerning those files events_to_ignore = set() # Store the mtime of the last write of each transfered file last_mtime = {} root ...
Python
0
2d95b9a4b6d87e9f630c59995403988dee390c20
Fix simple typo: utilty -> utility (#5182)
doc/sphinx_util.py
doc/sphinx_util.py
# -*- coding: utf-8 -*- """Helper utility function for customization.""" import sys import os import docutils import subprocess READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None) if not os.path.exists('web-data'): subprocess.call('rm -rf web-data;' + 'git clone https://github.co...
# -*- coding: utf-8 -*- """Helper utilty function for customization.""" import sys import os import docutils import subprocess READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None) if not os.path.exists('web-data'): subprocess.call('rm -rf web-data;' + 'git clone https://github.com...
Python
0.999997
d806cc19e058ad63c6be47d8e616b0c869549db7
FIX remote does not have test file wired...
sklearn/decomposition/tests/test_spectra_embedding.py
sklearn/decomposition/tests/test_spectra_embedding.py
from nose.tools import assert_true from nose.tools import assert_equal from scipy.sparse import csr_matrix import numpy as np from numpy.testing import assert_almost_equal, assert_array_almost_equal from sklearn.decomposition.spectra_embedding import SpectralEmbedding from sklearn.metrics.pairwise import rbf_kernel f...
import numpy as np from nose.tools import assert_true from nose.tools import assert_equal from scipy.sparse import csr_matrix from numpy.testing import assert_almost_equal, assert_array_almost_equal from sklearn.decomposition.spectra_embedding import SpectralEmbedding from sklearn.metrics.pairwise import rbf_kernel ...
Python
0
8784162eb60cd23bbbe669c698e9406d43c1a7ff
Explicitly set allow_empty = True
nextcloudappstore/core/views.py
nextcloudappstore/core/views.py
from django.views.generic.detail import DetailView from django.views.generic.list import ListView from nextcloudappstore.core.models import App, Category from django.http import Http404 from django.db.models import Q class AppDetailView(DetailView): model = App template_name = 'app/detail.html' slug_field...
from django.views.generic.detail import DetailView from django.views.generic.list import ListView from nextcloudappstore.core.models import App, Category from django.http import Http404 from django.db.models import Q class AppDetailView(DetailView): model = App template_name = 'app/detail.html' slug_field...
Python
0.999992
22f9ff98e048f47493394570b519d179657d9427
Add `--host/port` options
skylines/commands/tracking/generate_through_daemon.py
skylines/commands/tracking/generate_through_daemon.py
from __future__ import print_function from flask_script import Command, Option import sys import socket import struct from skylines.model import User from skylines.tracking.server import ( datetime, FLAG_LOCATION, FLAG_ALTITUDE, TrackingFix, MAGIC, TYPE_FIX, set_crc, ) from math import sin...
from __future__ import print_function from flask_script import Command, Option import sys import socket import struct from skylines.model import User from skylines.tracking.server import ( datetime, FLAG_LOCATION, FLAG_ALTITUDE, TrackingFix, MAGIC, TYPE_FIX, set_crc, ) from math import sin...
Python
0.000002
62f3a1ce0e2af511e897ac300e3ab32f4bf14463
Fix docs
src/pybel/struct/filters/node_predicates/modifications.py
src/pybel/struct/filters/node_predicates/modifications.py
# -*- coding: utf-8 -*- """Predicates for checking nodes' variants.""" from functools import wraps from typing import Tuple, Type, Union from .utils import node_predicate from ..typing import NodePredicate from ....dsl import BaseEntity, CentralDogma, Fragment, GeneModification, Hgvs, ProteinModification, Variant _...
# -*- coding: utf-8 -*- """Predicates for checking nodes' variants.""" from typing import Tuple, Type, Union from .utils import node_predicate from ..typing import NodePredicate from ....dsl import BaseEntity, CentralDogma, Fragment, GeneModification, Hgvs, ProteinModification, Variant __all__ = [ 'has_variant'...
Python
0.000003
65b658d9bb1b9220cfd15724692517c14f5e2cbc
Send more information
openprescribing/frontend/signals/handlers.py
openprescribing/frontend/signals/handlers.py
import logging from allauth.account.signals import user_logged_in from anymail.signals import tracking from requests_futures.sessions import FuturesSession from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.conf import settings ...
import logging from allauth.account.signals import user_logged_in from anymail.signals import tracking from requests_futures.sessions import FuturesSession from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.conf import settings ...
Python
0
09cb8a0fbb10f14d6622bbeed815e025e4eb1751
Update newServer.py
Server/newServer.py
Server/newServer.py
__author__ = 'masudurrahman' import sys import os from twisted.protocols import ftp from twisted.protocols.ftp import FTPFactory, FTPAnonymousShell, FTPRealm, FTP, FTPShell, IFTPShell from twisted.cred.portal import Portal from twisted.cred import checkers from twisted.cred.checkers import AllowAnonymousAccess, FilePa...
__author__ = 'masudurrahman' import sys import os from twisted.protocols import ftp from twisted.protocols.ftp import FTPFactory, FTPAnonymousShell, FTPRealm, FTP, FTPShell, IFTPShell from twisted.cred.portal import Portal from twisted.cred import checkers from twisted.cred.checkers import AllowAnonymousAccess, FilePa...
Python
0.000001
df5fc7af67aed3aa2d2aeea4cef03d8dd790f1a4
Fix ios enable password regex in terminal plugin (#35741)
lib/ansible/plugins/terminal/ios.py
lib/ansible/plugins/terminal/ios.py
# # (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
# # (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
Python
0
25e71a56d48e5bdc4d73522333196d69d735707a
Update the PCA10056 example to use new pin naming
ports/nrf/boards/pca10056/examples/buttons.py
ports/nrf/boards/pca10056/examples/buttons.py
import board import digitalio import gamepad import time pad = gamepad.GamePad( digitalio.DigitalInOut(board.P0_11), digitalio.DigitalInOut(board.P0_12), digitalio.DigitalInOut(board.P0_24), digitalio.DigitalInOut(board.P0_25), ) prev_buttons = 0 while True: buttons = pad.get_pressed() if bu...
import board import digitalio import gamepad import time pad = gamepad.GamePad( digitalio.DigitalInOut(board.PA11), digitalio.DigitalInOut(board.PA12), digitalio.DigitalInOut(board.PA24), digitalio.DigitalInOut(board.PA25), ) prev_buttons = 0 while True: buttons = pad.get_pressed() if button...
Python
0
3de29a3fdd17beece1fbe26c4f578cd854d16d0d
Fix bug introduced in update_from_old_problemformat.py
problemtools/update_from_old_problemformat.py
problemtools/update_from_old_problemformat.py
# -*- coding: utf-8 -*- import argparse import glob import os.path import yaml def update(problemdir): probyaml = os.path.join(problemdir, 'problem.yaml') if not os.path.isfile(probyaml): raise Exception('Could not find %s' % probyaml) config = yaml.safe_load('%s' % open(probyaml, 'r').read()) ...
# -*- coding: utf-8 -*- import argparse import glob import os.path import yaml def update(problemdir): probyaml = os.path.join(problemdir, 'problem.yaml') if not os.path.isfile(probyaml): raise Exception('Could not find %s' % probyaml) config = yaml.safe_load('%s' % open(probyaml, 'r').read()) ...
Python
0
a3bb1ff203789b6547e241f2ba0108e89bd1aefe
Remove mystery import
profile_collection/startup/80-areadetector.py
profile_collection/startup/80-areadetector.py
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1'...
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1') ...
Python
0
37062a5695eea63726630e98019c85f7985306a2
Use a clearer attribute name
dataobject.py
dataobject.py
import logging import remoteobjects.fields all_classes = {} def find_by_name(name): """Finds and returns the DataObject subclass with the given name. Parameter `name` should be a full dotted module and class name. """ return all_classes[name] class DataObjectMetaclass(type): def __new__(cls, nam...
import logging import remoteobjects.fields all_classes = {} def find_by_name(name): """Finds and returns the DataObject subclass with the given name. Parameter `name` should be a full dotted module and class name. """ return all_classes[name] class DataObjectMetaclass(type): def __new__(cls, nam...
Python
0.005027
9bd5b66a50def87de2b8a37ba452ee4efc8a17b7
add docstring for update_average
web/aliendb/apps/analytics/helpers.py
web/aliendb/apps/analytics/helpers.py
def update_average(field, value, tracked) -> float: """Updates a previously calculated average with a new value. Args: field: the current average; value: the new value to include in the average; tracked: the number of elements used to form the _original_ average; Returns: f...
def update_average(field, value, tracked): return (value + field * tracked) / (1 + tracked)
Python
0
4839c43db77a88a872db07ab99be0fdd29bb24fc
Remove bland from 'irrelevant' preferable tendency
LandPortalEntities/lpentities/indicator.py
LandPortalEntities/lpentities/indicator.py
''' Created on 19/12/2013 @author: Nacho ''' from lpentities.measurement_unit import MeasurementUnit class Indicator(object): """ classdocs """ #Simulated Enum Values INCREASE = "increase" DECREASE = "decrease" IRRELEVANT = "irrelevant" #Possible topics _topics_set = ['CLIMATE_...
''' Created on 19/12/2013 @author: Nacho ''' from lpentities.measurement_unit import MeasurementUnit class Indicator(object): """ classdocs """ #Simulated Enum Values INCREASE = "increase" DECREASE = "decrease" IRRELEVANT = "irrelevant " #Possible topics _topics_set = ['CLIMATE...
Python
0.000236
48cf73c12f1c586d5ce71fd872f9054b4209d13b
adds missing colon
GPIOTest.py
GPIOTest.py
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(2, GPIO.OUT) GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP) status = not GPIO.input(2) autoswitch=GPIO.input(4) onswitch=GPIO.input(17) GPIO.output(2, status) if status: ...
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(2, GPIO.OUT) GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP) status = not GPIO.input(2) autoswitch=GPIO.input(4) onswitch=GPIO.input(17) GPIO.output(2, status) if status: ...
Python
0.998656
aaac2228119bf965183d30ebf9d4b8cb13699fd8
fix tkinter for python 3
GroupEng.py
GroupEng.py
#!/usr/bin/python # Copyright 2011, Thomas G. Dimiduk # # This file is part of GroupEng. # # GroupEng 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, either version 3 of the License, or # (at your opti...
#!/usr/bin/python # Copyright 2011, Thomas G. Dimiduk # # This file is part of GroupEng. # # GroupEng 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, either version 3 of the License, or # (at your opti...
Python
0.000069
3e7d433c193bd2e35b2c760297d81973f56b3eec
Fix test cases
node/floor_divide.py
node/floor_divide.py
#!/usr/bin/env python from nodes import Node import math class FloorDiv(Node): char = "f" args = 2 results = 1 @Node.test_func([3,2], [1]) @Node.test_func([6,-3], [-2]) def func(self, a:Node.number,b:Node.number): """a/b. Rounds down, returns an int.""" return a//b ...
#!/usr/bin/env python from nodes import Node import math class FloorDiv(Node): char = "f" args = 2 results = 1 @Node.test_func([3,2], [1]) @Node.test_func([6,-3], [-2]) def func(self, a:Node.number,b:Node.number): """a/b. Rounds down, returns an int.""" return a//b ...
Python
0.000241
a9c9cbac36568676be194024f6f660e4fc3f03b6
Add old list to applist migration
src/yunohost/data_migrations/0010_migrate_to_apps_json.py
src/yunohost/data_migrations/0010_migrate_to_apps_json.py
import os from moulinette.utils.log import getActionLogger from yunohost.app import app_fetchlist, app_removelist, _read_appslist_list, APPSLISTS_JSON from yunohost.tools import Migration logger = getActionLogger('yunohost.migration') BASE_CONF_PATH = '/home/yunohost.conf' BACKUP_CONF_DIR = os.path.join(BASE_CONF_PA...
import os from moulinette.utils.log import getActionLogger from yunohost.app import app_fetchlist, app_removelist, _read_appslist_list, APPSLISTS_JSON from yunohost.tools import Migration logger = getActionLogger('yunohost.migration') BASE_CONF_PATH = '/home/yunohost.conf' BACKUP_CONF_DIR = os.path.join(BASE_CONF_PA...
Python
0
9316ec9f2246ac14176d9bf9d27287dfccedb3f3
Update to 0.3.0
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/version.py
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/version.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
Python
0
8c89a0d52c43f96d9673b8b84786a7185ddc3f6f
Bump WireCloud version
src/wirecloud/platform/__init__.py
src/wirecloud/platform/__init__.py
# -*- coding: utf-8 -*- # Copyright (c) 2011-2014 CoNWeT Lab., Universidad Politécnica de Madrid # This file is part of Wirecloud. # Wirecloud 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, either v...
# -*- coding: utf-8 -*- # Copyright (c) 2011-2014 CoNWeT Lab., Universidad Politécnica de Madrid # This file is part of Wirecloud. # Wirecloud 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, either v...
Python
0
a4dcfff5214e3956f45bf0ef853dea871dbd8da9
Fix for missing 'methods' section
delphi-395.py
delphi-395.py
import argparse import os import re from uuid import uuid4 from jinja2 import Environment, PackageLoader from yaml import load, Loader def get_config(): parser = argparse.ArgumentParser(description='Construct Delphi classes from a YAML template.') parser.add_argument('source_files', metavar='SOURCE', type=ar...
import argparse import os import re from uuid import uuid4 from jinja2 import Environment, PackageLoader from yaml import load, Loader def get_config(): parser = argparse.ArgumentParser(description='Construct Delphi classes from a YAML template.') parser.add_argument('source_files', metavar='SOURCE', type=ar...
Python
0.001131
36bfa8f556941848eb1a809d48aae1aa43f23c3f
Add option to choose if we keep the <none> images
di-cleaner.py
di-cleaner.py
#!/usr/bin/env python import argparse import atexit import logging import sys from pprint import pformat DEFAULT_DOCKER_BASE_URL = 'unix://var/run/docker.sock' HELP_DOCKER_BASE_URL = ('Refers to the protocol+hostname+port where the ' 'Docker server is hosted. Defaults to %s') % DEFAULT_DOCKER_BASE_URL DEFAULT_DO...
#!/usr/bin/env python import argparse import atexit import logging import sys from pprint import pformat DEFAULT_DOCKER_BASE_URL = 'unix://var/run/docker.sock' HELP_DOCKER_BASE_URL = ('Refers to the protocol+hostname+port where the ' 'Docker server is hosted. Defaults to %s') % DEFAULT_DOCKER_BASE_URL DEFAULT_DO...
Python
0
edf099ca644aae12daef65ff65744d99fcd3a634
Remove function we won't actually use.
st2common/st2common/util/compat.py
st2common/st2common/util/compat.py
# -*- coding: utf-8 -*- # Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Licen...
# -*- coding: utf-8 -*- # Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Licen...
Python
0
a187bd1f89d40d4274f884bba567a2f6be160dcd
Remove unintended changes from reverthousekeeping command
cla_backend/apps/cla_butler/management/commands/reverthousekeeping.py
cla_backend/apps/cla_butler/management/commands/reverthousekeeping.py
# coding=utf-8 import os from django.conf import settings from django.contrib.admin.models import LogEntry from django.core.management.base import BaseCommand from cla_butler.qs_to_file import QuerysetToFile from cla_eventlog.models import Log from cla_provider.models import Feedback from complaints.models import Com...
# coding=utf-8 import os import logging from django.conf import settings from django.contrib.admin.models import LogEntry from django.core.management.base import BaseCommand from cla_butler.qs_to_file import QuerysetToFile from cla_eventlog.models import Log from cla_provider.models import Feedback from complaints.mod...
Python
0
5ffef1beb126fed15851ddc30ea9fca7edbca017
Remove debug code
app/soc/modules/gsoc/views/student_forms.py
app/soc/modules/gsoc/views/student_forms.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...
#!/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.000299
123401cb6ed88b77d9a584eea8f2de75e518e5da
remove try except when hintsvm is not installed
libact/query_strategies/__init__.py
libact/query_strategies/__init__.py
""" Concrete query strategy classes. """ import logging logger = logging.getLogger(__name__) from .active_learning_by_learning import ActiveLearningByLearning from .hintsvm import HintSVM from .uncertainty_sampling import UncertaintySampling from .query_by_committee import QueryByCommittee from .quire import QUIRE fro...
""" Concrete query strategy classes. """ import logging logger = logging.getLogger(__name__) from .active_learning_by_learning import ActiveLearningByLearning try: from .hintsvm import HintSVM except ImportError: logger.warn('HintSVM library not found, not importing.') from .uncertainty_sampling import Uncerta...
Python
0
0e56ed6234e1f28b0aac2e22063bb39faab1d54c
use '!XyZZy!' as value to be sustituted in metric name
librato_python_web/tools/compose.py
librato_python_web/tools/compose.py
# Copyright (c) 2015. Librato, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
# Copyright (c) 2015. Librato, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
Python
0.000231
a31a8aa7d5ef0fb742f909c09c340c3f54104833
clean up comments
linkedin/spiders/linkedin_spider.py
linkedin/spiders/linkedin_spider.py
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from scrapy.http import Request from linkedin.items import LinkedinItem # compile to C using Cython if processing speed becomes a constraint class Linkedi...
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from scrapy.http import Request from linkedin.items import LinkedinItem # compile to C using Cython if processing speed becomes a constraint class Linkedi...
Python
0
957e1c2ec602d4ec6aa990cdce4196083f0e5a2d
Fix buggy import setup for embedded bot tests.
zerver/tests/test_embedded_bot_system.py
zerver/tests/test_embedded_bot_system.py
# -*- coding: utf-8 -*- from unittest import mock from typing import Any, Dict, Tuple, Text, Optional from zerver.lib.test_classes import ZulipTestCase from zerver.models import UserProfile, Recipient, get_display_recipient class TestEmbeddedBotMessaging(ZulipTestCase): def setUp(self): # type: () -> Non...
# -*- coding: utf-8 -*- from unittest.mock import patch from typing import Any, Dict, Tuple, Text, Optional from zerver.lib.test_classes import ZulipTestCase from zerver.models import UserProfile, Recipient, get_display_recipient class TestEmbeddedBotMessaging(ZulipTestCase): def setUp(self): # type: () ...
Python
0
f379d8ce256159a4fc7ce58abf87c609a4a0c3ab
rename present() _present(), indicating private
AlphaTwirl/EventReader/ProgressMonitor.py
AlphaTwirl/EventReader/ProgressMonitor.py
# Tai Sakuma <sakuma@fnal.gov> import multiprocessing import time from ProgressReport import ProgressReport ##____________________________________________________________________________|| class ProgressReporter(object): def __init__(self, queue, pernevents = 1000): self.queue = queue self.perneve...
# Tai Sakuma <sakuma@fnal.gov> import multiprocessing import time from ProgressReport import ProgressReport ##____________________________________________________________________________|| class ProgressReporter(object): def __init__(self, queue, pernevents = 1000): self.queue = queue self.perneve...
Python
0.003887
68fe7ecadeda267b5645fd804bb7bbf29afa3667
add docstring
corehq/apps/cleanup/management/commands/delete_es_docs_in_domain.py
corehq/apps/cleanup/management/commands/delete_es_docs_in_domain.py
from django.core.management import BaseCommand, CommandError from corehq.apps.domain.models import Domain from corehq.apps.es import AppES, CaseES, CaseSearchES, FormES, GroupES, UserES from corehq.apps.es.registry import registry_entry from corehq.apps.es.transient_util import doc_adapter_from_info class Command(Ba...
from django.core.management import BaseCommand, CommandError from corehq.apps.domain.models import Domain from corehq.apps.es import AppES, CaseES, CaseSearchES, FormES, GroupES, UserES from corehq.apps.es.registry import registry_entry from corehq.apps.es.transient_util import doc_adapter_from_info class Command(Ba...
Python
0.000005
bff3a087ec70ab07fe163394826a41c33f6bc38f
Add extra version of py-jinja2 (#14989)
var/spack/repos/builtin/packages/py-jinja2/package.py
var/spack/repos/builtin/packages/py-jinja2/package.py
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJinja2(PythonPackage): """Jinja2 is a template engine written in pure Python. It provide...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJinja2(PythonPackage): """Jinja2 is a template engine written in pure Python. It provide...
Python
0
2b8716f5a1f0e1f147b6bbda3e45e4abec59811d
fix TB in indexing debug toolbar
abilian/services/indexing/debug_toolbar.py
abilian/services/indexing/debug_toolbar.py
# coding=utf-8 """ """ from __future__ import absolute_import from flask import current_app from flask_debugtoolbar.panels import DebugPanel from abilian.core.util import fqcn from abilian.i18n import _ from abilian.web.action import actions class IndexedTermsDebugPanel(DebugPanel): """ A panel to display term va...
# coding=utf-8 """ """ from __future__ import absolute_import from flask import current_app from flask_debugtoolbar.panels import DebugPanel from abilian.core.util import fqcn from abilian.i18n import _ from abilian.web.action import actions class IndexedTermsDebugPanel(DebugPanel): """ A panel to display term va...
Python
0
0c9f2f51778b26bb126eccfbef0b098da3db2877
normalize version numbers
asynchronous_batch_mailings/__openerp__.py
asynchronous_batch_mailings/__openerp__.py
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of asynchronous_batch_mailings, an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # asynchronous_batch_mailings is free software: # you can redistribute i...
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of asynchronous_batch_mailings, an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # asynchronous_batch_mailings is free software: # you can redistribute i...
Python
0.000673
dafc54e782c5ee9bda3cf1817df92ae16ed26979
fix website url in manifest
attachment_base_synchronize/__openerp__.py
attachment_base_synchronize/__openerp__.py
# coding: utf-8 # @ 2015 Florian DA COSTA @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Attachment Base Synchronize', 'version': '9.0.1.0.0', 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'http://www.akretion.com/', 'license': 'AGPL-3...
# coding: utf-8 # @ 2015 Florian DA COSTA @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Attachment Base Synchronize', 'version': '9.0.1.0.0', 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'www.akretion.com', 'license': 'AGPL-3', '...
Python
0.000001
a007f80dc2182787eca521c84f37aeedc307645a
Remove base64 padding
encrypted_id/__init__.py
encrypted_id/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals try: basestring except NameError: basestring = str from Crypto.Cipher import AES import base64 import binascii import struct from djang...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals try: basestring except NameError: basestring = str from Crypto.Cipher import AES import base64 import binascii import struct from djang...
Python
0.000001
9be80df72954c05193fc6ded0998b28de182a699
Add _validate method to Client.auth interface.
objectrocket/auth.py
objectrocket/auth.py
"""Authentication operations.""" import logging import requests from objectrocket import bases from objectrocket import errors logger = logging.getLogger(__name__) class Auth(bases.BaseAuthLayer): """Authentication operations. :param objectrocket.client.Client base_client: An objectrocket.client.Client ins...
"""Authentication operations.""" import logging import requests from objectrocket import bases from objectrocket import errors logger = logging.getLogger(__name__) class Auth(bases.BaseAuthLayer): """Authentication operations. :param objectrocket.client.Client base_client: An objectrocket.client.Client ins...
Python
0
c42ffe540b30da5dbf29d557a01503ecad246afb
Fix changelog for newer OSes
etc/scripts/changelog.py
etc/scripts/changelog.py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Compiler Explorer Authors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
# -*- coding: utf-8 -*- # Copyright (c) 2020, Compiler Explorer Authors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
Python
0.000001
391d69f4ce485ff02a3844b4cf5a54f23125c477
test presab
partBreaker.py
partBreaker.py
#!/usr/bin/env python import argparse import Get_fasta_from_Ref as GFR import re from sys import argv import os presab={} def Subsetfromto(FastaDict, outFile, start,end): """Writes a subsect multifast file, boud at sequence indeces start and end, form sequence stored in a dictioanry""" with open(outFile, '...
#!/usr/bin/env python import argparse import Get_fasta_from_Ref as GFR import re from sys import argv import os def Subsetfromto(FastaDict, outFile, start,end): """Writes a subsect multifast file, boud at sequence indeces start and end, form sequence stored in a dictioanry""" with open(outFile, 'w') as out...
Python
0.000001
7399dfa45c9b5a563798f504e9eb4054faf2aa30
print a more meaningful description of EventAct
open_municipio/events/models.py
open_municipio/events/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from open_municipio.acts.models import Act from open_municipio.events.managers import EventManager from open_municipio.people.models import Institution from datetime import datetime, date class Event(models.Model): """ This ...
from django.db import models from django.utils.translation import ugettext_lazy as _ from open_municipio.acts.models import Act from open_municipio.events.managers import EventManager from open_municipio.people.models import Institution from datetime import datetime, date class Event(models.Model): """ This ...
Python
0.999999
a9373c3e4c65160bc04e56edbc356e086d2dae71
Tweak division display
opencivicdata/admin/division.py
opencivicdata/admin/division.py
from django.contrib import admin from opencivicdata.models import division as models @admin.register(models.Division) class DivisionAdmin(admin.ModelAdmin): list_display = ('display_name', 'id') search_fields = list_display
from django.contrib import admin from opencivicdata.models import division as models @admin.register(models.Division) class DivisionAdmin(admin.ModelAdmin): pass
Python
0
21c2daf95e7352932346dec2c570cfefce867ed1
Add some convenience properties to Node
odlclient/v2/node.py
odlclient/v2/node.py
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lice...
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lice...
Python
0
b6f698f5fd6faf90b36bbb560ba4df13192cff42
Update _settings.py
templates/root/appfiles/_settings.py
templates/root/appfiles/_settings.py
""" Django settings for template project. Generated by 'django-admin startproject' using Django 1.8.2. 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 pat...
""" Django settings for template project. Generated by 'django-admin startproject' using Django 1.8.2. 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 pat...
Python
0
281eda574c6ed3d0d9b333b67f53a13ea3c17398
Remove `tfds.core.builder_from_directory` alias
tensorflow_datasets/core/__init__.py
tensorflow_datasets/core/__init__.py
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
Python
0
a39cbaf22401c466f02e5b12e3ebdd46fa8eef0c
Fix issue refs in test_numpy_piecewise_regression
sympy/printing/tests/test_numpy.py
sympy/printing/tests/test_numpy.py
from sympy import Piecewise from sympy.abc import x from sympy.printing.lambdarepr import NumPyPrinter def test_numpy_piecewise_regression(): """ NumPyPrinter needs to print Piecewise()'s choicelist as a list to avoid breaking compatibility with numpy 1.8. This is not necessary in numpy 1.9+. See symp...
from sympy import Piecewise from sympy.abc import x from sympy.printing.lambdarepr import NumPyPrinter def test_numpy_piecewise_regression(): """ NumPyPrinter needs to print Piecewise()'s choicelist as a list to avoid breaking compatibility with numpy 1.8. This is not necessary in numpy 1.9+. See gh-9...
Python
0
1addeefdf51713d562788018ebfb6549b215f55b
Fix C typo error in a test
test/option/tree-lib.py
test/option/tree-lib.py
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
Python
0.000144
25dc03c3db7e224463f11e513f94fb9cb15ed250
Fix check_service_client_function doc typo
tempest/tests/lib/services/base.py
tempest/tests/lib/services/base.py
# Copyright 2015 Deutsche Telekom AG. 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 requi...
# Copyright 2015 Deutsche Telekom AG. 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 requi...
Python
0.000001
df9ff4f13fc7da111bc11cf5f390efe94352b6e6
Fix Setting class
src/wikicurses/__init__.py
src/wikicurses/__init__.py
import os import json import pkgutil from enum import Enum _data = pkgutil.get_data('wikicurses', 'interwiki.list').decode() wikis = dict([i.split('|')[0:2] for i in _data.splitlines() if i[0]!='#']) default_configdir = os.environ['HOME'] + '/.config' configpath = os.environ.get('XDG_CONFIG_HOME', default_configdir) ...
import os import json import pkgutil from enum import Enum _data = pkgutil.get_data('wikicurses', 'interwiki.list').decode() wikis = dict([i.split('|')[0:2] for i in _data.splitlines() if i[0]!='#']) default_configdir = os.environ['HOME'] + '/.config' configpath = os.environ.get('XDG_CONFIG_HOME', default_configdir) ...
Python
0.000001
afedc41fd4e573f4db38f2fde38b2286d623b4c4
Remove obsolete property
src/zeit/campus/article.py
src/zeit/campus/article.py
import zope.interface import zeit.cms.content.reference import zeit.campus.interfaces class TopicpageLink(zeit.cms.related.related.RelatedBase): zope.interface.implements(zeit.campus.interfaces.ITopicpageLink) topicpagelink = zeit.cms.content.reference.SingleResource( '.head.topicpagelink', 'relat...
import zope.interface import zeit.cms.content.reference import zeit.campus.interfaces class TopicpageLink(zeit.cms.related.related.RelatedBase): zope.interface.implements(zeit.campus.interfaces.ITopicpageLink) topicpagelink = zeit.cms.content.reference.SingleResource( '.head.topicpagelink', 'relat...
Python
0.000216
e60a05886c52574227b1a73fe02575ede81ffa5e
mark out-of-date tests with a @skip
staff/tests/tests_views.py
staff/tests/tests_views.py
from unittest import skip from django.core import mail from django.test import Client, TestCase from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from django.utils.http import urlencode class StaffAddView(TestCase): fixtures = ['ophasebase.json', 'staff.json', 'students.json...
from django.core import mail from django.test import Client, TestCase from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from django.utils.http import urlencode class StaffAddView(TestCase): fixtures = ['ophasebase.json', 'staff.json', 'students.json'] def test_redirect(s...
Python
0.000004
42ec06aa5e2034266f817dc6465cd8bf4fea6ead
fix migration
corehq/apps/linked_domain/migrations/0005_migrate_linked_app_toggle.py
corehq/apps/linked_domain/migrations/0005_migrate_linked_app_toggle.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-01 15:00 from __future__ import unicode_literals from couchdbkit import ResourceNotFound from django.db import migrations from corehq.toggles import LINKED_DOMAINS from toggle.models import Toggle def _migrate_linked_apps_toggle(apps, schema_editor): ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-01 15:00 from __future__ import unicode_literals from couchdbkit import ResourceNotFound from django.db import migrations from corehq.toggles import LINKED_DOMAINS from toggle.models import Toggle def _migrate_linked_apps_toggle(apps, schema_editor): ...
Python
0.000001
d3d25e127592356d6b678dc8d013f83f53803f67
update mordred.tests to check hidden modules
mordred/tests/__main__.py
mordred/tests/__main__.py
import os import nose def main(): base = os.path.dirname(os.path.dirname(__file__)) hidden = [ os.path.join(base, n) for n in os.listdir(base) if n[:1] == "_" and os.path.splitext(n)[1] == ".py" ] tests = [base, os.path.join(base, "_base")] + hidden os.environ["NOSE_WITH...
import os import nose def main(): base = os.path.dirname(os.path.dirname(__file__)) tests = [base, os.path.join(base, "_base")] os.environ["NOSE_WITH_DOCTEST"] = "1" nose.main( defaultTest=",".join(tests), ) if __name__ == "__main__": main()
Python
0
7f9ca64313fff0716143cf7d56075a565f35d60f
add docstring describing public API (#2140)
tensorboard/plugins/hparams/api.py
tensorboard/plugins/hparams/api.py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
0
cff5052f94738942bfd18d745660a975a170ca4b
Fix build on non-git source
build-tools/code_generator/utils/common.py
build-tools/code_generator/utils/common.py
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
Python
0
8b0d9378a1e48c010fb028395811d3f3720af3e9
Translate language names from settings.LANGUAGES.
multilingual/languages.py
multilingual/languages.py
""" Django-multilingual: language-related settings and functions. """ # Note: this file did become a mess and will have to be refactored # after the configuration changes get in place. #retrieve language settings from settings.py from django.conf import settings LANGUAGES = settings.LANGUAGES from django.utils.trans...
""" Django-multilingual: language-related settings and functions. """ # Note: this file did become a mess and will have to be refactored # after the configuration changes get in place. #retrieve language settings from settings.py from django.conf import settings LANGUAGES = settings.LANGUAGES from multilingual.excep...
Python
0.999999
a68bb0d268861d30c26647523991ed215853cdfe
add Reeve post
ca_ab_grande_prairie_county_no_1/people.py
ca_ab_grande_prairie_county_no_1/people.py
from pupa.scrape import Scraper from utils import lxmlize, CanadianLegislator as Legislator import re COUNCIL_PAGE = 'http://www.countygp.ab.ca/EN/main/government/council.html' REEVE_URL = 'http://www.countygp.ab.ca/EN/main/government/council/reeve-message.html' class GrandePrairieCountyNo1PersonScraper(Scraper): ...
from pupa.scrape import Scraper from utils import lxmlize, CanadianLegislator as Legislator import re COUNCIL_PAGE = 'http://www.countygp.ab.ca/EN/main/government/council.html' class GrandePrairieCountyNo1PersonScraper(Scraper): # @todo The Reeve is also a Councillor. def get_people(self): page = lxmlize(C...
Python
0.000001
883ef42a4a02a98bbbec7a2a3c20938853805fb0
Fix update_host API response schema
tempest/lib/api_schema/response/compute/v2_1/hosts.py
tempest/lib/api_schema/response/compute/v2_1/hosts.py
# Copyright 2014 NEC Corporation. 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 ...
# Copyright 2014 NEC Corporation. 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 ...
Python
0.000269
1e28b43c8a02bd3e506fbd33012b4dcd7b193433
Fix string-bools not translated
compose-v2/galaxy-configurator/customize.py
compose-v2/galaxy-configurator/customize.py
import os def j2_environment_params(): """ Extra parameters for the Jinja2 Environment Add AnsibleCoreFiltersExtension for filters known in Ansible like `to_nice_yaml` """ return dict( extensions=('jinja2_ansible_filters.AnsibleCoreFiltersExtension',), ) def alter_context(context): ...
import os def j2_environment_params(): """ Extra parameters for the Jinja2 Environment Add AnsibleCoreFiltersExtension for filters known in Ansible like `to_nice_yaml` """ return dict( extensions=('jinja2_ansible_filters.AnsibleCoreFiltersExtension',), ) def alter_context(context): ...
Python
0.000001