content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
remove deprecated options from brew-diy
ecc9407fed2ab64c45c9499f896f0191a741c8ff
<ide><path>Library/Homebrew/cmd/diy.rb <ide> <ide> module Homebrew <ide> def diy <del> %w[name version].each do |opt| <del> if ARGV.include? "--set-#{opt}" <del> opoo "--set-#{opt} is deprecated, please use --#{opt}=<#{opt}> instead" <del> end <del> end <del> <ide> path = Pathname.getwd <i...
1
Ruby
Ruby
remove request reference from chained jars
e18ebd2e62f0878a27ac3e6c810ae533f91556fa
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> module ChainedCookieJars <ide> # cookies.permanent.signed[:remember_me] = current_user.id <ide> # # => Set-Cookie: remember_me=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT <ide> d...
1
Ruby
Ruby
extract a method to simplify setup code
49223c9bc9bab1d827e98763ee49892b8c4faa72
<ide><path>activerecord/test/cases/associations/eager_singularization_test.rb <ide> class Compress < ActiveRecord::Base <ide> end <ide> <ide> def setup <del> skip 'Does not support migrations' unless ActiveRecord::Base.connection.supports_migrations? <add> skip 'Does not support migrations' unless connection...
1
Ruby
Ruby
add python@3.8 handling
c92a3d3f84ff9dc1a2c566e9d5fd5a21cf2e3bee
<ide><path>Library/Homebrew/language/python.rb <ide> def needs_python?(python) <ide> def virtualenv_install_with_resources(options = {}) <ide> python = options[:using] <ide> if python.nil? <del> wanted = %w[python python@2 python2 python3 python@3 pypy pypy3].select { |py| needs_python?(p...
1
PHP
PHP
fix a styling issue
c97a8572eca62441705d7d39af3ecae000c35386
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> namespace Illuminate\Database\Schema; <ide> <ide> use Closure; <del>use Doctrine\DBAL\Types\Type; <ide> use LogicException; <add>use Doctrine\DBAL\Types\Type; <ide> use Illuminate\Database\Connection; <ide> <ide> class Builder <ide> public function registerC...
3
Javascript
Javascript
upgrade requirecontextplugin to es6
a06903302296c3b2fe5f00a2b5e86c33dc766e49
<ide><path>lib/dependencies/RequireContextPlugin.js <ide> class RequireContextPlugin { <ide> } <ide> } <ide> module.exports = RequireContextPlugin; <del> <ide>\ No newline at end of file
1
PHP
PHP
remove legacy non-breaking code
b8c2b869f36dc730c4eaf563614d9d7f1a69ab9f
<ide><path>src/Illuminate/Support/Collection.php <ide> public function zip($items) <ide> return new static(call_user_func_array('array_map', $params)); <ide> } <ide> <del> /** <del> * Return self to allow compatibility with Illuminate\Database\Eloquent\Collection. <del> * <del> * @return \Il...
2
Javascript
Javascript
add a handler for an `unhandledrejection`
d2cd05ebdcdc6f0631367d62cadb212bb3d8e840
<ide><path>static/index.js <ide> window.onload = function() { <ide> try { <ide> var startTime = Date.now(); <ide> <add> process.on('unhandledRejection', function(error, promise) { <add> console.error('Unhandled promise rejection %o with error: %o', promise, error); <add> }); <add> <ide> // Ensure ...
1
Javascript
Javascript
add status-changed on reload spec
9081a891e6629f79e47986f4bacadf7ca2f8b56a
<ide><path>spec/git-repository-async-spec.js <ide> describe('GitRepositoryAsync', () => { <ide> expect(called).toEqual({path: editor.getPath(), pathStatus: 256}) <ide> }) <ide> }) <add> <add> it('emits a status-changed event when a buffer is reloaded', () => { <add> let editor <add> let s...
1
Go
Go
fix typos in create.go
318b4f0b5f0639149f5e88aba805cdd454d4d9ee
<ide><path>daemon/execdriver/native/create.go <ide> func (d *Driver) setupRlimits(container *configs.Config, c *execdriver.Command) <ide> <ide> // If rootfs mount propagation is RPRIVATE, that means all the volumes are <ide> // going to be private anyway. There is no need to apply per volume <del>// propagation on top...
1
Javascript
Javascript
remove trailing whitespace
49d6d2169d981eb56b7cd8574eda59511e661f3b
<ide><path>src/dom/isEventSupported.js <ide> function isEventSupported(eventNameSuffix, capture) { <ide> capture && !('addEventListener' in document)) { <ide> return false; <ide> } <del> <add> <ide> var eventName = 'on' + eventNameSuffix; <ide> var isSupported = eventName in document; <ide> <ide><pat...
2
Java
Java
fix a bug with comment box positioning
e674185ea1f4d5dece37284a774bf882772c601d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java <ide> private void measureHelper(int reactTag, boolean relativeToWindow, Callback call <ide> callback); <ide> } <ide> <del> private void ensureMountsToViewAndBackingViewIsCreated(int reactTag) { <add> private boolean en...
2
Javascript
Javascript
remove sync from render to buffer
434cb04c5612bf8b1fa1fda075e6a25acab1f130
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.CoreView = Ember.Object.extend(Ember.Evented, { <ide> }, <ide> <ide> _renderToBuffer: function(parentBuffer, bufferOperation) { <del> Ember.run.sync(); <del> <ide> // If this is the top-most view, start a new buffer. Otherwise, <ide> // creat...
1
Python
Python
add test for jsonify padded=false, #495
d90f0afe39724040d0be92df054e2b1438886134
<ide><path>flask/testsuite/helpers.py <ide> def return_kwargs(): <ide> @app.route('/dict') <ide> def return_dict(): <ide> return flask.jsonify(d) <add> @app.route("/unpadded") <add> def return_padded_false(): <add> return flask.jsonify(d, padded=False) <ide> ...
1
Python
Python
remove uses of the warningmanager class
05a15c8b621f953607429f3b67e079dfe1b439d6
<ide><path>numpy/core/tests/test_api.py <ide> from __future__ import division, absolute_import, print_function <ide> <ide> import sys <add>import warnings <ide> <ide> import numpy as np <ide> from numpy.testing import * <del>from numpy.testing.utils import WarningManager <del>import warnings <ide> from numpy.compat i...
12
Java
Java
fix spel comparison operator for comparable types
d178eafc11f6576188df8bbb569d82e9d5569bc2
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/Operator.java <ide> else if (leftNumber instanceof Byte || rightNumber instanceof Byte) { <ide> return true; <ide> } <ide> <del> if (left instanceof Comparable && right instanceof Comparable) { <del> Class<?> ancestor = ClassUti...
4
Ruby
Ruby
replace open-uri with curl
ccfd01ba389ed638f0c67bbf82e01b3108314449
<ide><path>Library/Homebrew/livecheck/strategy.rb <ide> def self.page_headers(url) <ide> *args, url, <ide> print_stdout: false, print_stderr: false, <ide> debug: false, verbose: false, <del> user_agent: user_agent, retry: false <add> user_agent: user_agent, time...
2
PHP
PHP
add more meaty doc blocks
1bd9c74f76c8d6371e10eef14f096165d438499c
<ide><path>src/Console/CommandRunner.php <ide> class CommandRunner <ide> { <ide> /** <add> * The application console commands are being run for. <add> * <ide> * @var \Cake\Http\BaseApplication <ide> */ <ide> protected $app; <ide> <ide> /** <add> * The root command name. Defaults to `c...
1
Python
Python
remove creation of np.asarray in to_categorical
1db555a530ce433f39c9d8af0592e6e81468d6eb
<ide><path>keras/utils/np_utils.py <ide> def to_categorical(y, nb_classes=None): <ide> '''Convert class vector (integers from 0 to nb_classes) <ide> to binary class matrix, for use with categorical_crossentropy. <ide> ''' <del> y = np.asarray(y, dtype='int32') <ide> if not nb_classes: <ide> n...
1
Javascript
Javascript
add lithuanian (lt) translation
3ef2ff7db405d9c6fb1a4595c923d84bca5be20e
<ide><path>lang/lt.js <add>// moment.js language configuration <add>// language : Lithuanian (lt) <add>// author : Mindaugas Mozūras : https://github.com/mmozuras <add> <add>var units = { <add> "m" : "minutė_minutės_minutę", <add> "mm": "minutės_minučių_minutes", <add> "h" : "valanda_valandos_valandą", <add> ...
2
PHP
PHP
fix phpstan and phpcs errors
ce5ae5e687911c92aa8c9eb99947d9383307c981
<ide><path>src/Database/Expression/QueryExpression.php <ide> public function type($conjunction = null) <ide> 'QueryExpression::type() is deprecated. ' . <ide> 'Use QueryExpression::setConjunction()/getConjunction() instead.' <ide> ); <add> <ide> return $this->tieWith($conjunction...
2
Javascript
Javascript
use arrow functions instead of functions
afb3e1c93dc889cf99cb9d6dd4030cfc8b269577
<ide><path>gulpfile.js <ide> require('laravel-elixir-vue'); <ide> | <ide> */ <ide> <del>elixir(function(mix) { <add>elixir(mix => { <ide> mix.sass('app.scss') <ide> .webpack('app.js'); <ide> }); <ide><path>resources/assets/js/bootstrap.js <ide> require('vue-resource'); <ide> * included with Laravel will ...
2
Text
Text
provide correct command imformation and url
d8e6241989cdfda4513dd30faef00f1f71afa489
<ide><path>man/src/container/top.md <ide> All displayed information is from host's point of view. <ide> <ide> Run **docker container top** with the ps option of -x: <ide> <del> $ docker top 8601afda2b -x <add> $ docker container top 8601afda2b -x <ide> PID TTY STAT TIME COMMAND <ide...
2
Javascript
Javascript
remove the abstract `baseviewer`-class
6dc4c994b8f848ae2ad128fc0e516cc6e4c1cda1
<ide><path>test/unit/base_viewer_spec.js <ide> <ide> import { PDFPageViewBuffer } from "../../web/base_viewer.js"; <ide> <del>describe("BaseViewer", function () { <add>describe("PDFViewer", function () { <ide> describe("PDFPageViewBuffer", function () { <ide> function createViewsMap(startId, endId) { <ide> ...
5
Text
Text
update the title
17e1ea20f6da4b85af25cc12a45f44787d346a2f
<ide><path>guide/spanish/bootstrap/index.md <ide> --- <ide> title: Bootstrap <del>localeTitle: Oreja <add>localeTitle: Bootstrap <ide> --- <del>## Oreja <add>## Bootstrap <ide> <ide> Bootstrap es un framework de front-end popular para el desarrollo web. Contiene componentes pre-construidos y elementos de diseño para e...
1
Javascript
Javascript
update error messages
a86d25d584d085aef7d70bec2779accd12fd7db9
<ide><path>src/isomorphic/classic/types/ReactPropTypes.js <ide> function createArrayOfTypeChecker(typeChecker) { <ide> function validate(props, propName, componentName, location, propFullName) { <ide> if (typeof typeChecker !== 'function') { <ide> return new Error( <del> `Invalid argument \`${propFul...
2
PHP
PHP
simplify method
fbf68a431f65ccbdb1b16c9eec6e878e7e6d645c
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> public function denies($ability, $arguments = []) <ide> public function check($ability, $arguments = []) <ide> { <ide> try { <del> $result = $this->raw($ability, $arguments); <add> return (bool) $this->raw($ability, $arguments); ...
1
Javascript
Javascript
remove unused property
2cb3f3fed24ba32e906a54568ecd7f9bedafadf5
<ide><path>packages/ember-runtime/lib/system/core_object.js <ide> CoreObject.PrototypeMixin = Mixin.create({ <ide> return this; <ide> }, <ide> <del> isInstance: true, <del> <ide> /** <ide> An overridable method called when objects are instantiated. By default, <ide> does nothing unless it is overridde...
2
Javascript
Javascript
convert reactdomtextarea to not be a wrapper
d2e7e56cc4b05ffc7731bef5b7555fc23339fa55
<ide><path>src/renderers/dom/client/wrappers/ReactDOMInput.js <ide> <ide> 'use strict'; <ide> <del>var AutoFocusUtils = require('AutoFocusUtils'); <ide> var ReactDOMIDOperations = require('ReactDOMIDOperations'); <ide> var LinkedValueUtils = require('LinkedValueUtils'); <ide> var ReactMount = require('ReactMount'); <...
4
Javascript
Javascript
remove ember.button from yuidoc output
7fb13eb533bec382278b4a3e665dfe6af6bc386e
<ide><path>packages/ember-handlebars/lib/controls/button.js <ide> require('ember-runtime/mixins/target_action_support'); <ide> <del>/** <add>/* <ide> @module ember <ide> @submodule ember-handlebars <ide> */ <ide> <ide> var get = Ember.get, set = Ember.set; <ide> <del>/** <add>/* <ide> @class Button <ide> @namesp...
1
Javascript
Javascript
set date to initial value when reset
64287af8d1f9f89f4493644ddc9c205dddf36c44
<ide><path>fixtures/dom/src/components/fixtures/date-inputs/switch-date-test-case.js <ide> const React = window.React; <ide> <add>const startDate = new Date(); <ide> /** <ide> * This test case was originally provided by @richsoni, <ide> * https://github.com/facebook/react/issues/8116 <ide> */ <ide> class SwitchDate...
1
PHP
PHP
add validation to exception handler
3310063b59502585162b4cdcd05b13c31701e93c
<ide><path>app/Exceptions/Handler.php <ide> <ide> use Exception; <ide> use Illuminate\Auth\AuthenticationException; <add>use Illuminate\Validation\ValidationException; <ide> use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; <ide> <ide> class Handler extends ExceptionHandler <ide> public function rende...
1
Python
Python
add a decorator to add custom template filter
a9bb965b6dcd931cefdc7dd05fa4c672b5dff69c
<ide><path>flask.py <ide> from __future__ import with_statement <ide> import os <ide> import sys <add>import types <ide> <ide> from jinja2 import Environment, PackageLoader, FileSystemLoader <ide> from werkzeug import Request as RequestBase, Response as ResponseBase, \ <ide> def decorator(f): <ide> return ...
2
Javascript
Javascript
fix jshint error
a7fede4f465277dd0cb6ce1675153f6e4a6472e2
<ide><path>src/scales/scale.category.js <ide> module.exports = function(Chart) { <ide> <ide> if (this.options.ticks.min !== undefined) { <ide> // user specified min value <del> findIndex = helpers.indexOf(this.chart.data.labels, this.options.ticks.min) <add> findIndex = helpers.indexOf(this.chart.data.lab...
1
Python
Python
parametrize sort test
42228fcb513c08729f822fa6be70e16a7a68067f
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_sort(self): <ide> b = np.sort(a) <ide> assert_equal(b, a[::-1], msg) <ide> <del> # all c scalar sorts use the same code with different types <del> # so it suffices to run a quick check with one type. The number <del> # o...
1
Ruby
Ruby
silence a jenkins doctor warning
e330047ff9881eee9cbad8828ed1ef2f16b3050e
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_access_cellar <ide> def check_homebrew_prefix <ide> return if HOMEBREW_PREFIX.to_s == "/usr/local" <ide> <add> # Allow our Jenkins CI tests to live outside of /usr/local. <add> if ENV["JENKINS_HOME"] && <add> ENV["GIT_URL"]...
2
Python
Python
add a blank line to make lint happier
a0049dd4897577950c3804163aa501d1d08cd369
<ide><path>tests/test_fields.py <ide> class TestIPv6AddressField(FieldValues): <ide> outputs = {} <ide> field = serializers.IPAddressField(protocol='IPv6') <ide> <add> <ide> # Number types... <ide> <ide> class TestIntegerField(FieldValues):
1
Text
Text
add option r.md
91cfdcfefccd56a9715685e0f06766dd03803343
<ide><path>guide/english/bash/bash-ls/index.md <ide> Most used options: <ide> * `-l`, List in long format <ide> * `-G`, enable colorized output. <ide> * `-s`, List File Size. <add>* `-R`, displays the contents of the directory, and its subdirectories. <ide> <ide> ### Example: <ide>
1
Go
Go
set bigger grpc limit for getconfigs api
3fbbeb703c1d04e9eb723459960fbfc7f3bbfc40
<ide><path>daemon/cluster/configs.go <ide> import ( <ide> types "github.com/docker/docker/api/types/swarm" <ide> "github.com/docker/docker/daemon/cluster/convert" <ide> swarmapi "github.com/docker/swarmkit/api" <add> "google.golang.org/grpc" <ide> ) <ide> <ide> // GetConfig returns a config from a managed swarm clu...
1
Text
Text
add os x to instead of only macos
d462f8cfe34019ab8bf1d57d33bf16e64c8fb815
<ide><path>BUILDING.md <ide> platforms in production. <ide> |--------------|--------------|----------------------------------|----------------------|------------------| <ide> | GNU/Linux | Tier 1 | kernel >= 2.6.32, glibc >= 2.12 | x64, arm | | <ide> | GNU/Linux | Tier 1 ...
1
PHP
PHP
write the dotenv to stderr rather than stdout
8c7e45305c2f83089b2a47f63d95e051531a1221
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php <ide> use Dotenv\Exception\InvalidFileException; <ide> use Symfony\Component\Console\Input\ArgvInput; <ide> use Illuminate\Contracts\Foundation\Application; <add>use Symfony\Component\Console\Output\ConsoleOutput; <ide> <ide> class LoadEnviron...
1
Python
Python
fix bug in flaxwav2vec2 slow test
8fd4731072104462aed8e7da119f25b5137c3d8f
<ide><path>tests/wav2vec2/test_modeling_flax_wav2vec2.py <ide> def test_inference_ctc_robust_batched(self): <ide> <ide> input_speech = self._load_datasamples(4) <ide> <del> inputs = processor(input_speech, return_tensors="pt", padding=True, truncation=True) <add> inputs = processor(input_speech,...
1
Java
Java
improve autoconnect() javadoc + add its marble
ec40a5e6c8f0ab39c334a9073692d24b30b414a9
<ide><path>src/main/java/io/reactivex/flowables/ConnectableFlowable.java <ide> public Flowable<T> refCount() { <ide> } <ide> <ide> /** <del> * Returns a Flowable that automatically connects to this ConnectableFlowable <add> * Returns a Flowable that automatically connects (at most once) to this Connect...
2
Python
Python
remove add_configres function which did nothing..
76a7161aa8bc7755059b250313778602aa473b6f
<ide><path>numpy/core/setupscons.py <ide> def add_generated_files(): <ide> add_numpyconfig_header() <ide> add_array_api() <ide> add_ufunc_api() <del> config.add_configres() <ide> <ide> config.add_sconscript('SConstruct', <ide> post_hook = add_generated_files...
3
Javascript
Javascript
add debug message for invalid header value
d93ab5108875e22b25190b486682c3a3526a1926
<ide><path>lib/_http_outgoing.js <ide> function storeHeader(self, state, field, value) { <ide> 'Header name must be a valid HTTP Token ["' + field + '"]'); <ide> } <ide> if (common._checkInvalidHeaderChar(value) === true) { <add> debug('Header "%s" contains invalid characters', field); <ide> throw new ...
1
Go
Go
fix docker pull on windows
18c7c34d4be593110a1c3df3f00c40eec4603dea
<ide><path>graph/graph.go <ide> func (graph *Graph) storeImage(id, parent string, config []byte, layerData io.Re <ide> return err <ide> } <ide> <del> if img.ParentID.Validate() == nil && parent != img.ParentID.Hex() { <add> if (img.ParentID.Validate() == nil && parent != img.ParentID.Hex()) || (allowBaseParentImage...
4
Javascript
Javascript
fix blob creation in safari 7.0
b96811df25913926cb686b6b0400bc92d58107fa
<ide><path>src/shared/util.js <ide> var StatTimer = (function StatTimerClosure() { <ide> })(); <ide> <ide> PDFJS.createBlob = function createBlob(data, contentType) { <del> if (typeof Blob === 'function') <add> if (typeof Blob !== 'undefined') <ide> return new Blob([data], { type: contentType }); <ide> // Blob...
1
Python
Python
clarify savetxt delimiter and newline docstring
f80ccb0ed74d80a6669d0cd8711ba216bb1b5506
<ide><path>numpy/lib/npyio.py <ide> def savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='', <ide> and imaginary part must have separate specifiers, <ide> e.g. `['%.3e + %.3ej', '(%.15e%+.15ej)']` for 2 columns <ide> delimiter : str, optional <del> Character ...
1
Ruby
Ruby
use jenkins variables when no args
5d03149d816b66ae4375636d8182e99c2b320628
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def single_commit? start_revision, end_revision <ide> @start_branch = current_branch <ide> <ide> # Use Jenkins environment variables if present. <del> if ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT'] \ <add> if no_args? and ENV['GIT_PREVIOUS_...
1
Go
Go
add a test for mount leak workaround
1af8ea681fba1935c60c11edbbe19b894c9b286f
<ide><path>daemon/graphdriver/devmapper/devmapper_test.go <ide> package devmapper <ide> import ( <ide> "fmt" <ide> "os" <add> "os/exec" <ide> "syscall" <ide> "testing" <ide> "time" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/docker/docker/daemon/graphdriver/graphtest" <add> "gith...
1
Ruby
Ruby
remove dead code from amo
7ba28d434ceb0401f937e77f19d1c31e2a43f1ac
<ide><path>activemodel/lib/active_model/test_case.rb <ide> module ActiveModel #:nodoc: <ide> class TestCase < ActiveSupport::TestCase #:nodoc: <del> def with_kcode(kcode) <del> if RUBY_VERSION < '1.9' <del> orig_kcode, $KCODE = $KCODE, kcode <del> begin <del> yield <del> ensure <...
2
Javascript
Javascript
add a note about private api dependency for a test
46dd197ceb94ebc4f392a8b4ace347c6e03470fe
<ide><path>packages/events/__tests__/EventPluginRegistry-test.internal.js <ide> describe('EventPluginRegistry', () => { <ide> <ide> beforeEach(() => { <ide> jest.resetModuleRegistry(); <del> // TODO: can we express this test with only public API? <add> // These tests are intentionally testing the private i...
1
Javascript
Javascript
throw errors in webglrenderer
6d983ef7f6a2a2ea6d1747b17f8cce68cb4d5ca0
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> if ( _canvas.getContext( 'webgl' ) !== null ) { <ide> <del> throw 'Error creating WebGL context with your selected attributes.'; <add> throw new Error( 'Error creating WebGL context with your selected attribute...
1
Javascript
Javascript
use semantic versions
f6471f4f3668d236211d3d3e353852f0bc3a20ea
<ide><path>build/release.js <ide> function initialize( next ) { <ide> <ide> // First arg should be the version number being released <ide> var newver, oldver, <del> rversion = /^(\d)\.(\d+)\.(\d)((?:a|b|rc)\d|pre)?$/, <del> version = ( process.argv[3] || "" ).toLowerCase().match( rversion ) || {}, <add> rsemver =...
1
PHP
PHP
update exception in log classes
d1610d97dc9fa40c08b7f686738da0df6ec83e2f
<ide><path>src/Log/Engine/ConsoleLog.php <ide> <ide> use Cake\Console\ConsoleOutput; <ide> use Cake\Core\Exception\Exception; <add>use \InvalidArgumentException; <ide> <ide> /** <ide> * Console logging. Writes logs to console output. <ide> class ConsoleLog extends BaseLog { <ide> * - `outputAs` integer or ConsoleOu...
4
Python
Python
fix configure script to work with apple clang 11
1f143b8625c2985b4317a40f279232f562417077
<ide><path>configure.py <ide> def get_llvm_version(cc): <ide> <ide> def get_xcode_version(cc): <ide> return get_version_helper( <del> cc, r"(^Apple LLVM version) ([0-9]+\.[0-9]+)") <add> cc, r"(^Apple (?:clang|LLVM) version) ([0-9]+\.[0-9]+)") <ide> <ide> def get_gas_version(cc): <ide> try:
1
PHP
PHP
fix failing tests in controllertestcase
21777071806c796a0a9b935db178c97b3fe283c0
<ide><path>src/Routing/DispatcherFactory.php <ide> public static function create() { <ide> return $dispatcher; <ide> } <ide> <add>/** <add> * Get the connected dispatcher filters. <add> * <add> * @return array <add> */ <add> public static function filters() { <add> return static::$_stack; <add> } <add> <ide> /** <...
5
Go
Go
check env var for setting driver in tests
aea6001baf0cd0fb20a607e37e4379bf644b28fd
<ide><path>graphdriver/driver.go <ide> import ( <ide> "fmt" <ide> "github.com/dotcloud/docker/archive" <ide> "github.com/dotcloud/docker/utils" <add> "os" <ide> "path" <ide> ) <ide> <ide> func New(root string) (Driver, error) { <ide> var driver Driver <ide> var lastError error <ide> <del> if DefaultDriver != ""...
1
Python
Python
improve error messages
7c08713baa75094726ebafbd8c092911b72f839f
<ide><path>spacy/cli/project.py <del>from typing import List, Dict, Any, Optional <add>from typing import List, Dict, Any, Optional, Sequence <ide> import typer <ide> import srsly <ide> from pathlib import Path <ide> def print_run_help(project_dir: Path, subcommand: Optional[str] = None) -> None: <ide> config_comma...
1
Python
Python
remove redundant masking in _step
3f3a1f0e9bc55630acac3efdafb3c1c9fa719dec
<ide><path>keras/layers/recurrent.py <ide> def __init__(self, input_dim, output_dim, <ide> if weights is not None: <ide> self.set_weights(weights) <ide> <del> def _step(self, x_t, mask_t, mask_tm1, h_tm1, u): <add> def _step(self, x_t, mask_tm1, h_tm1, u): <ide> ''' <ide> ...
1
Text
Text
update generation instructions for consistency
d27a2a9294b8384a3f1bee12caa4246b57be65ed
<ide><path>guides/source/engines.md <ide> commenting functionality as well. To do this, you'll need to generate a comment <ide> model, a comment controller, and then modify the articles scaffold to display <ide> comments and allow people to create new ones. <ide> <del>From the application root, run the model generator...
1
Go
Go
remove copyonbuild from the daemon
bd5f92d2631df7c932b93e72e45b39cba19f2f3b
<ide><path>builder/builder.go <ide> import ( <ide> "github.com/docker/docker/api/types/backend" <ide> "github.com/docker/docker/api/types/container" <ide> containerpkg "github.com/docker/docker/container" <add> "github.com/docker/docker/image" <add> "github.com/docker/docker/layer" <add> "github.com/docker/docker/pk...
16
PHP
PHP
fix incorrect time handling in deconstruct()
d8bc13f996f69cff47d2aed329a9ce02721a780b
<ide><path>lib/Cake/Model/Model.php <ide> public function deconstruct($field, $data) { <ide> $timeFields = array('H' => 'hour', 'i' => 'min', 's' => 'sec'); <ide> $date = array(); <ide> <del> if (isset($data['hour']) && isset($data['meridian']) && $data['hour'] != 12 && 'pm' == $data['meridian']) { <add> if ...
2
PHP
PHP
fix lint error
4d962f150c8234e85ea7983f99b7d00a4ec1d4c6
<ide><path>tests/TestCase/Mailer/Transport/SmtpTransportTest.php <ide> public function testConnectEhlo() <ide> $this->socket->expects($this->any()) <ide> ->method('read') <ide> ->will($this->onConsecutiveCalls( <del> "220 Welcome message\r\n", <del> "250...
1
Text
Text
fix valueerror for adversarial_text
7d40b2ac01cbaccf82b34668e5154590dbc815e5
<ide><path>research/adversarial_text/README.md <ide> $ PRETRAIN_DIR=/tmp/models/imdb_pretrain <ide> $ python pretrain.py \ <ide> --train_dir=$PRETRAIN_DIR \ <ide> --data_dir=$IMDB_DATA_DIR \ <del> --vocab_size=86934 \ <add> --vocab_size=87007 \ <ide> --embedding_dims=256 \ <ide> --rnn_cell_size=10...
1
Ruby
Ruby
use the proper encoding comment on the file
48e3c462a2fad7944dcebc54b2ab9fe423f43ffb
<ide><path>activerecord/test/schema/schema.rb <add># encoding: utf-8 <add> <ide> ActiveRecord::Schema.define do <ide> def except(adapter_names_to_exclude) <ide> unless [adapter_names_to_exclude].flatten.include?(adapter_name)
1
Mixed
Text
support all options besides unix sockets
13086f387b28ceea5aff5924e430f41608884a9b
<ide><path>daemon/logger/fluentd/fluentd.go <ide> import ( <ide> "net" <ide> "strconv" <ide> "strings" <add> "time" <ide> <ide> "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/logger" <ide> "github.com/docker/docker/daemon/logger/loggerutils" <add> "github.com/docker/go-units" <ide> "github....
3
Text
Text
fix typos in formula cookbook
87ee0ab3afb407e74162f8b300df5ef14b664916
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> so you can override this with `brew create <url> --set-name <name>`. <ide> <ide> A SSL/TLS (https) [`homepage`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#homepage%3D-class_method) is preferred, if one is available. <ide> <del>Try to summari...
1
PHP
PHP
add docblocks to flash methods
ff7ef810ebdf38ad5fbbf0a4481d8a648022dd86
<ide><path>src/Controller/Component/FlashComponent.php <ide> public function __construct(ComponentRegistry $collection, array $config = []) { <ide> $this->_session = $collection->getController()->request->session(); <ide> } <ide> <add>/** <add> * Used to set a session variable that can be used to output messages in...
2
Ruby
Ruby
remove unused metadata from `bundle` spec
21c502e05fca16948329c600fcb94fcc74243e0b
<ide><path>Library/Homebrew/test/cmd/bundle_spec.rb <ide> # frozen_string_literal: true <ide> <del>describe "brew bundle", :integration_test, :needs_test_cmd_taps do <add>describe "brew bundle", :integration_test do <ide> describe "check" do <ide> it "checks if a Brewfile's dependencies are satisfied", :needs_ne...
2
Ruby
Ruby
encapsulate "details" into templatedetails
f8f9a085ccf5930a38d7866ab7b7d6532881521e
<ide><path>actionview/lib/action_view.rb <ide> module ActionView <ide> autoload :Rendering <ide> autoload :RoutingUrlFor <ide> autoload :Template <add> autoload :TemplateDetails <ide> autoload :TemplatePath <ide> autoload :UnboundTemplate <ide> autoload :ViewPaths <ide><path>actionview/lib/ac...
4
PHP
PHP
add softdeletesintegration test for withcount
4abb185e5a60148676df2333fe36ed9c31f8f480
<ide><path>tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php <ide> public function testWhereHasWithNestedDeletedRelationshipAndWithTrashedCondition <ide> $this->assertEquals(1, count($users)); <ide> } <ide> <add> /** <add> * @group test <add> */ <add> public function testWithCount...
1
Javascript
Javascript
fix generation of release notes for nightly builds
136ec1474e5f16bd8b6074f2827965950a8e171b
<ide><path>script/vsts/lib/release-notes.js <ide> module.exports.generateForNightly = async function( <ide> ); <ide> } <ide> <del> return output; <add> return output.join('\n'); <ide> }; <ide> <ide> function extractWrittenReleaseNotes(oldReleaseNotes) {
1
Javascript
Javascript
add test for selection.on
9d85f339f806389e0da0ab2019caacccdfec60de
<ide><path>test/core/selection-on-test.js <add>require("../env"); <add>require("../../d3"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("selection.on"); <add> <add>suite.addBatch({ <add> "select(body)": { <add> topic: function() { <add> retur...
1
Text
Text
use code markup/markdown in headers
c956cabcdb55c1b9a1923bcc6f3c96e58f46d1fe
<ide><path>doc/api/perf_hooks.md <ide> doSomeLongRunningProcess(() => { <ide> }); <ide> ``` <ide> <del>## Class: Performance <add>## Class: `Performance` <ide> <!-- YAML <ide> added: v8.5.0 <ide> --> <ide> <del>### performance.clearMarks(\[name\]) <add>### `performance.clearMarks([name])` <ide> <!-- YAML <ide> added:...
1
Ruby
Ruby
return argv from the insert method
36ea8e6a3bb75753dd64032d1a8ebff0ffcdca68
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def handle_rails_rc!(argv) <ide> argv.reject { |arg| arg == '--no-rc' } <ide> else <ide> insert_railsrc_into_argv!(argv, railsrc(argv)) <del> argv <ide> end <ide> end <ide> <ide> def...
1
Text
Text
improve readability of testing guide [ci skip]
dcc9bd35e248f9e038c0fbc6a2024cd2d5228cbc
<ide><path>guides/source/testing.md <ide> def test_the_truth <ide> end <ide> ``` <ide> <del>However only the `test` macro allows a more readable test name. You can still use regular method definitions though. <add>Although you can still use regular method definitions, using the `test` macro allows for a more readable ...
1
PHP
PHP
implement password confirmation
ba3aae6c338314c2ba1779f336278c2532071b7c
<ide><path>app/Http/Controllers/Auth/ConfirmPasswordController.php <add><?php <add> <add>namespace App\Http\Controllers\Auth; <add> <add>use App\Http\Controllers\Controller; <add>use Illuminate\Foundation\Auth\ConfirmsPasswords; <add> <add>class ConfirmPasswordController extends Controller <add>{ <add> /* <add> |...
3
Text
Text
update shell completions instructions
74787ca0eeb3a1d4c19420dced32c9f5965175b0
<ide><path>docs/Shell-Completion.md <ide> Homebrew comes with completion definitions for the `brew` command. Some packages <ide> <ide> `zsh`, `bash` and `fish` are currently supported. <ide> <del>You must configure your shell to enable its completion support. This is because the Homebrew-managed completions are store...
1
Javascript
Javascript
move non-redux to utils
8e87a8991e037e4cb95abaff7d77eafe2242d897
<ide><path>common/app/Panes/redux/index.js <ide> import _ from 'lodash'; <del>import invariant from 'invariant'; <ide> import { <ide> composeReducers, <ide> createAction, <ide> createTypes, <ide> handleActions <ide> } from 'berkeleys-redux-utils'; <ide> <del>import { types as challengeTypes } from '../../route...
2
Ruby
Ruby
use parentheses for multi-line method calls
aee1a2802f03d864edc1b856e6461ef8b80a78b5
<ide><path>railties/lib/rails/application.rb <ide> def key_generator <ide> # team. Details at https://github.com/rails/rails/pull/6952#issuecomment-7661220 <ide> @caching_key_generator ||= <ide> if secret_key_base <del> ActiveSupport::CachingKeyGenerator.new \ <add> ActiveSupport::...
2
Javascript
Javascript
remove var in rntester
791fa2d83a615e58b1803c32b342f04c7312c734
<ide><path>RNTester/js/RNTesterExampleContainer.js <ide> const RNTesterPage = require('./RNTesterPage'); <ide> class RNTesterExampleContainer extends React.Component { <ide> renderExample(example, i) { <ide> // Filter platform-specific examples <del> var {title, description, platform} = example; <add> const...
15
Ruby
Ruby
require abstract_unit in parameters tests
b4d9a586bc35e3e611ffdcdc17a3e7bdda6e3323
<ide><path>actionpack/test/controller/parameters/nested_parameters_test.rb <add>require 'abstract_unit' <ide> require 'action_controller/metal/strong_parameters' <ide> <ide> class NestedParametersTest < ActiveSupport::TestCase <ide><path>actionpack/test/controller/parameters/parameters_require_test.rb <add>require 'ab...
3
Javascript
Javascript
fix typo on max attribute
120b9190ea7b89eb0bcf2c0a63c08e8d75b0f657
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> * <ide> * @param {string} ngModel Assignable angular expression to data-bind to. <ide> * @param {string=} name Property name of the form under which the control is published. <del> * @param {string=} min Sets the `min` validation error key if...
1
Ruby
Ruby
immortalize virtualenvs better
47d57ca99526d47897a0bbe98a1f6a5ba466167f
<ide><path>Library/Homebrew/language/python.rb <ide> def create <ide> f.unlink <ide> f.make_symlink new_target <ide> end <add> <add> Pathname.glob(@venv_root/"lib/python*/orig-prefix.txt").each do |prefix_file| <add> prefix_path = prefix_file.read <add> p...
1
Ruby
Ruby
record full path to non-core formula
922a4f1b778eb7a0acb03d78f2d0c758f5f6e6e1
<ide><path>Library/Homebrew/formula.rb <ide> class Formula <ide> def initialize name='__UNKNOWN__', path=nil <ide> @name = name <ide> # If we got an explicit path, use that, else determine from the name <del> @path = path.nil? ? self.class.path(name) : Pathname.new(path) <add> @path = path.nil? ? self.c...
1
Python
Python
change connection message. add snmp client
2fec33adf3c7ad9755d9a2dac85cba75f9ac01a4
<ide><path>glances/core/glances_client.py <ide> def login(self): <ide> # Init screen <ide> self.screen = glancesCurses(args=self.args) <ide> <del> <ide> # Return result <ide> return ret <ide> <ide> def update_snmp(self): <ide> """ <ide> Get stats from SNMP serve...
3
Mixed
Javascript
validate more properties in expectserror
2a621d40517b8ec17d6b6b15e31bdc6e5d34e768
<ide><path>test/common/README.md <ide> Platform normalizes the `dd` command <ide> Check if there is more than 1gb of total memory. <ide> <ide> ### expectsError([fn, ]settings[, exact]) <del>* `fn` [&lt;Function>] <add>* `fn` [&lt;Function>] a function that should throw. <ide> * `settings` [&lt;Object>] <del> with the...
3
PHP
PHP
adjust doc blocks
3c18d9581d75868910d047d2d135dca983660a98
<ide><path>src/Illuminate/View/ComponentAttributeBag.php <ide> public function only($keys) <ide> } <ide> <ide> /** <del> * Implode the given attributes into a single HTML ready string. <add> * Merge additional attributes / values into the attribute bag. <ide> * <ide> * @param array $attribu...
1
Python
Python
set version to v3.0.0.dev9
25b51f4fc8a102fd1c83d62d078f071823f222eb
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.0.0.dev8" <add>__version__ = "3.0.0.dev9" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spac...
1
Javascript
Javascript
handle moment.utc(s) fallback
0ef6ce06d56e56f73efff248001b149c81ecf661
<ide><path>moment.js <ide> 'release. Please refer to ' + <ide> 'https://github.com/moment/moment/issues/1407 for more info.', <ide> function (config) { <del> config._d = new Date(config._i); <add> config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); <ide> ...
1
PHP
PHP
update isfielderror() to use the context object
5b27f40c1662dfeee7e7eaf371c715de5dd913ae
<ide><path>src/View/Helper/FormHelper.php <ide> protected function _secure($lock, $field, $value = null) { <ide> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::isFieldError <ide> */ <ide> public function isFieldError($field) { <del> $this->setEntity($field); <del> return (bool)...
1
Text
Text
fix typo in readme
695f03990cdbef12a7224fff29fa4546f76ec8ba
<ide><path>README.md <ide> loaded asynchronously at runtime. This reduces the initial loading time. <ide> webpack can do many optimizations to **reduce the output size of your <ide> JavaScript** by deduplicating frequently used modules, minifying, and giving <ide> you full control of what is loaded initially and what i...
1
Python
Python
correct an issue with loag plugin on windows os
422d3dea01f19b64b5b86574521a38951a5c3329
<ide><path>glances/plugins/glances_load.py <ide> def _getloadavg(self): <ide> pass <ide> try: <ide> return os.getloadavg() <del> except OSError: <add> except (AttributeError, OSError): <ide> return None <ide> <ide> @GlancesPlugin._check_decorator
1
Python
Python
add test for beam parsing
28244df4dafa8b83ea617349c479925663a8d173
<ide><path>spacy/tests/parser/test_beam_parse.py <add>import spacy <add>import pytest <add> <add>@pytest.mark.models <add>def test_beam_parse(): <add> nlp = spacy.load('en_core_web_sm') <add> doc = nlp(u'Australia is a country', disable=['ner']) <add> ents = nlp.entity(doc, beam_width=2) <add> print(ents) <...
1
Javascript
Javascript
convert functions filter name to camelcase
1ecf31c30ff55a893e434b7608fb9d2d2b37aabb
<ide><path>glances/outputs/static/js/filters.js <ide> import angular from "angular"; <ide> import _ from "lodash"; <ide> <del>function min_size_filter() { <add>function minSizeFilter() { <ide> return function (input, max) { <ide> var max = max || 8; <ide> if (input.length > max) { <ide> function mi...
1
Ruby
Ruby
apply naming suggestions
92bccd2074e7278e3bc71cd2f4c4c92b4b103875
<ide><path>Library/Homebrew/formula.rb <ide> def extract_macho_slice_from(file, arch = Hardware::CPU.arch) <ide> params(base_name: String, shells: T::Array[Symbol], binary: Pathname, cmd: String, <ide> shell_prefix: T.nilable(T.any(Symbol, String))).void <ide> } <del> def generate_completions(base_nam...
1
Text
Text
fix typo in the `contributing.md` document
0483c70c8a5c55185f5342d32b4e0e2833e1b0dc
<ide><path>CONTRIBUTING.md <ide> Also, because Atom is so extensible, it's possible that a feature you've become <ide> <ide> #### Package Conventions <ide> <del>Thera are a few conventions that have developed over time around packages: <add>There are a few conventions that have developed over time around packages: <i...
1
Text
Text
add note on unstable versions
943beaec1ed6cbe551db9336a9e8d0c2f87448b5
<ide><path>docs/Versions.md <ide> Versioned formulae we include in [homebrew/core](https://github.com/homebrew/hom <ide> <ide> * Versioned software should build on all Homebrew's supported versions of macOS. <ide> * Versioned formulae should differ in major/minor (not patch) versions from the current stable release. T...
1
Ruby
Ruby
relocate rpaths on macos
8f1cd1288d1bfdd1a48470a8671f7ca940d40426
<ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb <ide> def relocate_dynamic_linkage(relocation) <ide> <ide> change_install_name(old_name, new_name, file) if new_name <ide> end <add> <add> if ENV["HOMEBREW_RELOCATE_RPATHS"] <add> each_rpath_for(file) do |old_name| <add> ...
1