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
Text
Text
define 'logical unit of work'
68a9cd63cc4ca3c898388fe814a2dd8b7fca385e
<ide><path>CONTRIBUTING.md <ide> mixed into the PR. <ide> feature branch to update your pull request rather than `merge master`. <ide> <ide> Before you make a pull request, squash your commits into logical units of work <del>using `git rebase -i` and `git push -f`. After every commit, [make sure the test <del>suite pa...
1
Ruby
Ruby
fix separator insertion in date_select helper
caa1c1978733b6271309db5af488c39aacff6c5a
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> def input_id_from_type(type) <ide> # and join them with their appropriate separators. <ide> def build_selects_from_types(order) <ide> select = '' <add> first_visible = order.find { |type| !@options[:"discard_#{type}"] ...
2
Text
Text
create initial template
bcc5591702968d011af61586a3917413455b0981
<ide><path>.github/ISSUE_TEMPLATE.md <add># Please follow the general troubleshooting steps first: <add> <add>- [ ] Ran `brew update` and retried your prior step? <add>- [ ] Ran `brew doctor`, fixed as many issues as possible and retried your prior step? <add>- [ ] If you're seeing permission errors tried running `sudo...
1
Text
Text
remove sass from requirements
0e621175ad43837ddea4299bff7539427fc449bb
<ide><path>curriculum/challenges/arabic/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.arabic.md <ide> --- <ide> id: 587d7dbf367417b2b2512bbb <ide> title: Apply a Style Until a Condition is Met with @while <del>required: <del> - src: 'https://cdnjs.cloudflare.com/ajax/libs/sass.js/0.10.9...
54
Python
Python
remove unused deprecated functions for sputnik
0474e706a0bd524c4de6ff97e1bbccfb1f69ef5d
<ide><path>spacy/deprecated.py <del>from sputnik.dir_package import DirPackage <del>from sputnik.package_list import (PackageNotFoundException, <del> CompatiblePackageNotFoundException) <del> <del>import sputnik <ide> from pathlib import Path <ide> from . import about <del> <del> <del>d...
1
Python
Python
add bertencoder to keras_nlp
067e8ae355c38fe0f48eaad975b68e18b3037fec
<ide><path>official/nlp/keras_nlp/encoders/__init__.py <add># Copyright 2020 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <...
3
Mixed
Ruby
return local time for backwards compatibility
c42260a3251157070a1bafadd179e4441df8933e
<ide><path>activesupport/CHANGELOG.md <del>* Make `Time.at_with_coercion` retain the second fraction and offset from UTC. <add>* Make `Time.at_with_coercion` retain the second fraction and return local time. <ide> <ide> Fixes #11350 <ide> <ide><path>activesupport/lib/active_support/core_ext/time/calculations....
3
Python
Python
avoid race condition due to task duplication
c711047036819cbe003dcfbd81fc35bb0b4af5d3
<ide><path>celery/backends/base.py <ide> def _store_result(self, task_id, result, state, <ide> traceback=traceback, request=request) <ide> meta['task_id'] = bytes_to_str(task_id) <ide> <add> # Retrieve metadata from the backend, if the status <add> # is a succ...
1
Python
Python
fix nan/inf handling for complex dtypes
3feb77ee4e46962b6c9cfab2a37a0c1ef1ceda82
<ide><path>numpy/testing/tests/test_utils.py <ide> def test_inf_item(self): <ide> def test_simple_item(self): <ide> self._test_not_equal(1, 2) <ide> <add> def test_complex_item(self): <add> self._assert_func(complex(1, 2), complex(1, 2)) <add> self._assert_func(complex(1, np.nan), complex(...
2
Text
Text
update render with a spacer_template [ci skip]
b13c5013ae2332a6f5425949baa1bb2d916e4aee
<ide><path>guides/source/action_view_overview.md <ide> Rails determines the name of the partial to use by looking at the model name in <ide> You can also specify a second partial to be rendered between instances of the main partial by using the `:spacer_template` option: <ide> <ide> ```erb <del><%= render @products, s...
1
Javascript
Javascript
fix light and math tests
d83b92ec2eeb107ef6eeb2f1c212f2376a3568ed
<ide><path>src/lights/RectAreaLight.js <ide> RectAreaLight.prototype = Object.assign( Object.create( Light.prototype ), { <ide> <ide> return this; <ide> <add> }, <add> <add> toJSON: function ( meta ) { <add> <add> var data = Light.prototype.toJSON.call( this, meta ); <add> <add> data.object.width = this.width; <a...
6
Javascript
Javascript
add stats config for load tests
0b51b2340a701f46b67bbb7470e7624ff9377237
<ide><path>test/.stats-app/stats-config.js <ide> module.exports = { <ide> 'http://localhost:$PORT/link', <ide> 'http://localhost:$PORT/withRouter', <ide> ], <add> pagesToBench: [ <add> 'http://localhost:$PORT/', <add> 'http://localhost:$PORT/error-in-render', <add> ], <add>...
1
Text
Text
add contributor agreement
79327197d133b106d2f524d172705842043c9f0a
<ide><path>.github/contributors/jumasheff.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project ...
1
Ruby
Ruby
use relations to build scope for named scopes
7921a73acda62c3208b173858a40221cb33f9ff8
<ide><path>activerecord/lib/active_record/named_scope.rb <ide> class Scope <ide> end <ide> end <ide> <del> delegate :scopes, :with_scope, :scoped_methods, :to => :proxy_scope <add> delegate :scopes, :with_scope, :scoped_methods, :unscoped, :to => :proxy_scope <ide> <ide> def initialize(p...
1
Text
Text
clarify fd behaviour with {read,write}file
8bd6df8927c1363789b195020397c8a672a46a0a
<ide><path>doc/api/fs.md <ide> fs.readFile('<directory>', (err, data) => { <ide> }); <ide> ``` <ide> <del>Any specified file descriptor has to support reading. <del> <del>If a file descriptor is specified as the `path`, it will not be closed <del>automatically. <del> <ide> The `fs.readFile()` function buffers the enti...
1
Go
Go
apply performance tuning to new sandboxes also
0dd3a2eade1d9710702cd2e04cfa8f7af1a229ce
<ide><path>libnetwork/controller.go <ide> func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (S <ide> <ide> if sb.osSbox != nil { <ide> // Apply operating specific knobs on the load balancer sandbox <add> err := sb.osSbox.InvokeFunc(func() { <add> sb.osSbox.ApplyOSTweaks(sb.oslTypes) <...
2
Ruby
Ruby
expect xcode 7.2
50dc5f7a3db7af2ff222c756e06fa0debf46b4ef
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> when "10.7" then "4.6.3" <ide> when "10.8" then "5.1.1" <ide> when "10.9" then "6.2" <del> when "10.10" then "7.1.1" <del> when "10.11" then "7.1.1" <add> when "10.10" then "7.2" <add> when ...
1
Ruby
Ruby
fix regexp for stripping `.git` from repo urls
0cced8e7bd2e0b5e52448dc0448a033bb03ec54b
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def get_repo_data(regex) <ide> _, user, repo = *regex.match(formula.homepage) unless user <ide> return if !user || !repo <ide> <del> repo.gsub!(/.git$/, "") <add> repo.delete_suffix!(".git") <ide> <ide> [user, repo] <ide> end
1
Javascript
Javascript
add url check
a79431984530554402af918f1582d325ac7f313b
<ide><path>extensions/firefox/components/PdfStreamConverter.js <ide> PdfStreamConverter.prototype = { <ide> }, <ide> onStopRequest: function() { <ide> var domWindow = getDOMWindow(channel); <del> let requestListener = new RequestListener(new ChromeActions); <del> domWindow.addEventList...
1
Python
Python
fix invalid method signature
5e6dfd5143e5b9015ae11b2f662502c9867e8938
<ide><path>libcloud/compute/drivers/azure_arm.py <ide> def start_node(self, node): <ide> method='POST') <ide> return r.object <ide> <del> def stop_node(self, node, deallocate=True): <add> def stop_node(self, node, ex_deallocate=True): <ide> """ <ide> St...
1
PHP
PHP
fix double-encoding of external urls
b32edfe378f467531c24b432bc46283035682515
<ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php <ide> public function testLink() { <ide> '/a' <ide> ); <ide> $this->assertTags($result, $expected); <add> <add> $result = $this->Html->link('http://www.example.org?param1=value1&param2=value2'); <add> $expected = array('a' => array('href' => 'http:...
2
Python
Python
update versioneer 0.19 → 0.26
b6d94fab5a7ef8897fe06d0b7a161bc8080fff26
<ide><path>numpy/_version.py <add> <ide> # This file helps to compute a version number in source trees obtained from <ide> # git-archive tarball (such as those provided by githubs download-from-tag <ide> # feature). Distribution tarballs (built by setup.py sdist) and build <ide> # directories (produced by setup.py buil...
2
Python
Python
remove deprecated items from ma/core.py
ceb9ded475887c25299d798ac90094b74d593a61
<ide><path>numpy/ma/core.py <ide> def is_mask(m): <ide> except AttributeError: <ide> return False <ide> <del>def make_mask(m, copy=False, shrink=True, flag=None, dtype=MaskType): <add>def make_mask(m, copy=False, shrink=True, dtype=MaskType): <ide> """ <ide> Create a boolean mask from an array. <id...
2
Ruby
Ruby
add docs for `object.nil!`
0222cefc405c4de7e4667a20c8e3cc4fd3200497
<ide><path>activesupport/lib/active_support/core_ext/object/try.rb <ide> def try(*a, &b) <ide> try!(*a, &b) if a.empty? || respond_to?(a.first) <ide> end <ide> <del> # Same as #try, but will raise a NoMethodError exception if the receiver is not +nil+ and <del> # does not implement the tried method. <del> <a...
1
Text
Text
remove macvtkitkpythonbottles from doc
8f072724def466a37543ec279876fada932109b7
<ide><path>share/doc/homebrew/Interesting-Taps-&-Branches.md <ide> You can be added as a maintainer for one of the Homebrew organization taps and a <ide> * [petere/postgresql](https://github.com/petere/homebrew-postgresql) <ide> - Allows installing multiple PostgreSQL versions in parallel. <ide> <del>* [iMichk...
1
Java
Java
add throwable functional interfaces
b3efdf3c2b5b55624164d184d237795be6e7b3b5
<ide><path>spring-core/src/main/java/org/springframework/util/function/ThrowingBiFunction.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <add...
8
Ruby
Ruby
remove stray character
343a05a64f96195185563abbbc885471b8c42db7
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> def select_datetime(datetime = Time.current, options = {}, html_options = {}) <ide> # ==== Examples <ide> # my_date = Time.today + 6.days <ide> # <del> # # Generates a date select that defaults to the date in my_date (six days...
1
Ruby
Ruby
use prepend instead of extending every instance
894336a23f0d6e1987e32a6e5825f9f94ca5ced3
<ide><path>activesupport/lib/active_support/cache/file_store.rb <ide> module Cache <ide> # FileStore implements the Strategy::LocalCache strategy which implements <ide> # an in-memory cache inside of a block. <ide> class FileStore < Store <add> prepend Strategy::LocalCache <ide> attr_reader :cach...
3
Ruby
Ruby
remove unused simulate method
845aabbcd3805420090f8b92b50a4562577cf210
<ide><path>actionpack/lib/action_dispatch/journey/gtg/simulator.rb <ide> def initialize(transition_table) <ide> @tt = transition_table <ide> end <ide> <del> def simulate(string) <del> ms = memos(string) { return } <del> MatchData.new(ms) <del> end <del> <del> al...
2
Ruby
Ruby
support anonymous classes on has_many associations
1f006cd5f10663286e70b4c3e972fba91ac8c9f9
<ide><path>activerecord/lib/active_record/associations/builder/association.rb <ide> class << self <ide> end <ide> self.extensions = [] <ide> <del> VALID_OPTIONS = [:class_name, :foreign_key, :validate] <add> VALID_OPTIONS = [:class_name, :class, :foreign_key, :validate] <ide> <ide> attr_reader :name...
3
Python
Python
add list_volumes to compute
3fc07bb142d43839ab582e7b6a9240dfa4693742
<ide><path>libcloud/compute/base.py <ide> def detach_volume(self, volume): <ide> <ide> raise NotImplementedError('detach not implemented for this driver') <ide> <add> def list_volumes(self): <add> """ <add> List storage volumes. <add> <add> @return: list of storageVolume objects <add> ...
1
Go
Go
use libcontainer cap drop method
d31ae5aed80eeb40a461930776ad2b507804bf4e
<ide><path>daemon/execdriver/lxc/driver.go <ide> import ( <ide> "github.com/docker/libcontainer/label" <ide> "github.com/docker/libcontainer/mount/nodes" <ide> "github.com/dotcloud/docker/daemon/execdriver" <add> "github.com/dotcloud/docker/pkg/system" <ide> "github.com/dotcloud/docker/utils" <ide> ) <ide> <ide> f...
5
Java
Java
update logadapter to allow build-time code removal
04366f4129b12eb923423e34ff78b269c46b5b94
<ide><path>spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java <ide> class PreComputeFieldFeature implements Feature { <ide> Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#imageCode")), <ide> Pattern.compile(Pattern.quote("org.springframework.") + ...
2
Javascript
Javascript
fix tests when npn feature is disabled
1824bbbff1341e253a891a804651b6338f8008e4
<ide><path>test/parallel/test-tls-alpn-server-client.js <ide> if (!common.hasCrypto) { <ide> return; <ide> } <ide> <del>if (!process.features.tls_alpn) { <del> console.error('Skipping because node compiled without OpenSSL or ' + <del> 'with old OpenSSL version.'); <del> process.exit(0); <add>if (!pr...
2
Text
Text
add link to java integration
a0fc1c9019503e873405fe7f8e81b1e1092feb79
<ide><path>docs/notes/extensions.md <ide> In addition, many plugins can be found on the [npm registry](https://www.npmjs.c <ide> <ide> ### Vue.js <ide> - <a href="https://github.com/apertureless/vue-chartjs/" target="_blank">vue-chartjs</a> <add> <add>### Java <add> - <a href="https://github.com/mdewilde/chart/" targ...
1
Ruby
Ruby
remove unnecessary loop
680144d230ef13112c3d297101e4cff27e81d204
<ide><path>activerecord/test/cases/serialized_attribute_test.rb <ide> def test_serialized_column_should_not_be_wrapped_twice <ide> myobj = MyObject.new('value1', 'value2') <ide> Topic.create(content: myobj) <ide> Topic.create(content: myobj) <del> <del> Topic.all.each do |topic| <del> type = Topic.c...
1
Python
Python
add .m .a .t .h attributes to ma
11aa95a6a4978a687288f62287c147a63f834acb
<ide><path>numpy/core/ma.py <ide> def unshare_mask (self): <ide> def _get_ctypes(self): <ide> return self._data.ctypes <ide> <add> def _get_M(self): <add> if self._mask is nomask: <add> return self._data.M <add> return self.filled().M <add> <add> def _get_A(self): <add> ...
1
Javascript
Javascript
add test for breadcrumbs
cd1c16b3a99243df27aa26d81d19e26486ac3de2
<ide><path>cypress/integration/learn/redirects/breadcrumbs.js <add>/* global cy */ <add> <add>const challengeUrl = <add> '/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'; <add> <add>const superBlockUrl = '/learn/responsive-web-design'; <add>const courseUrl = '/learn/responsive-web-design/...
1
Text
Text
fix worker.resourcelimits indentation
1eb7329a3374191a4fc4db5cd4909c02b8c320fc
<ide><path>doc/api/worker_threads.md <ide> console.log(receiveMessageOnPort(port2)); <ide> When this function is used, no `'message'` event will be emitted and the <ide> `onmessage` listener will not be invoked. <ide> <del>### worker.resourceLimits <add>## worker.resourceLimits <ide> <!-- YAML <ide> added: v13.2.0 <id...
1
PHP
PHP
add support for aes encrypted cookies
005a7d841d0843f1e8d8c808dd965ee6323c03ce
<ide><path>lib/Cake/Controller/Component/CookieComponent.php <ide> class CookieComponent extends Component { <ide> * Type of encryption to use. <ide> * <ide> * Currently two methods are available: cipher and rijndael <del> * Defaults to Security::cipher(); <add> * Defaults to Security::cipher(). Cipher is horribly i...
1
PHP
PHP
create lazycollection class
ecf7f30e9778c6df91677fbc8f3d407318a8d298
<ide><path>src/Illuminate/Support/LazyCollection.php <add><?php <add> <add>namespace Illuminate\Support; <add> <add>use Closure; <add>use stdClass; <add>use ArrayIterator; <add>use IteratorAggregate; <add>use Illuminate\Support\Traits\Macroable; <add>use Illuminate\Support\Traits\EnumeratesValues; <add> <add>class Lazy...
2
Text
Text
add h1 title
110793e73a56b90b7ee99dd49e3dc95855b82595
<ide><path>guide/english/working-in-tech/giving-a-conference-talk/index.md <ide> --- <ide> title: Giving a Conference Talk <ide> --- <add># Giving a Conference Talk <add> <ide> <ide> Speaking at a tech conference or community meetup can be a great way to accelerate your career. It gives you a chance to share something...
1
Python
Python
add a tool for determining active svn committers
8c7d1bc554e6b5bbb7900a2f6d976d72795bb454
<ide><path>tools/commitstats.py <add> <add># Run svn log -l <some number> <add> <add>import re <add>import numpy as np <add>import os <add> <add>names = re.compile(r'r\d+\s[|]\s(.*)\s[|]\s200') <add> <add>def get_count(filename, repo): <add> mystr = open(filename).read() <add> result = names.findall(mystr) <add> ...
1
PHP
PHP
enable strict typing for all orm files
fd9f3931109ffcc03c6d49084cebbd6277849e3f
<ide><path>src/Database/Query.php <ide> public function rowCountAndClose() <ide> * associated values for expressions <ide> * @return string <ide> */ <del> public function sql(?ValueBinder $generator = null) <add> public function sql(?ValueBinder $generator = null): string <ide> { <ide> ...
31
Python
Python
fix broken ci
3d0e16d94dd8fd9ecaccbc6f0e616107415cb7d4
<ide><path>tests/providers/airbyte/hooks/test_airbyte.py <ide> def test_wait_for_job_cancelled(self, mock_get_job): <ide> <ide> @requests_mock.mock() <ide> def test_connection_success(self, m): <del> m.get(self.health_endpoint, status_code=200,) <add> m.get( <add> self.health_endpoint,...
1
Python
Python
add roll function from ticket #293
099f140d97c07671497e5883ce2be9fcac62a3a1
<ide><path>numpy/core/numeric.py <ide> 'asarray', 'asanyarray', 'ascontiguousarray', 'asfortranarray', <ide> 'isfortran', 'empty_like', 'zeros_like', <ide> 'correlate', 'convolve', 'inner', 'dot', 'outer', 'vdot', <del> 'alterdot', 'restoredot', 'rollaxis', 'cross', 'tensordot...
2
PHP
PHP
fix assertions
06118cac748d9465da4e398dd4d16c2045760c27
<ide><path>tests/Foundation/FoundationApplicationTest.php <ide> public function testServiceProvidersAreCorrectlyRegistered() <ide> $app = new Application; <ide> $app->register($provider); <ide> <del> $this->assertTrue(in_array($class, $app->getLoadedProviders())); <add> $this->assertArray...
1
Text
Text
add changelog entry for
b6b088429c945b5c0c213fcdb9b4f6658faf686a
<ide><path>actionpack/CHANGELOG.md <add>* Fix regression where a gzip file response would have a Content-type, <add> even when it was a 304 status code. <add> <add> See #19271. <add> <add> *Kohei Suzuki* <add> <ide> * Fix handling of empty X_FORWARDED_HOST header in raw_host_with_port <ide> <ide> Prev...
1
Javascript
Javascript
add noop appendchild to outletview
3605c774d409b309e8e75aa70199ca431dee0b4c
<ide><path>packages/ember-glimmer/lib/ember-routing-view/index.js <ide> export class OutletView { <ide> } <ide> } <ide> <add> appendChild() { } <add> <ide> rerender() { <ide> if (this._renderResult) { this.renderer.rerender(this); } <ide> }
1
Javascript
Javascript
drop dead code
fda788458e8d40454c343a3ccf34f05e7a98bf69
<ide><path>packages/ember-routing/lib/system/router.js <ide> var EmberRouter = EmberObject.extend(Evented, { <ide> } <ide> if (!this._toplevelView) { <ide> var OutletView = this.container.lookupFactory('view:-outlet'); <del> this._toplevelView = OutletView.create({ _isTopLevel: true }); <add> th...
1
Text
Text
introduce action creators in redux-actions
782c5ba553b206b79f450cc57c6544c6c8cd6b74
<ide><path>guide/english/redux/redux-actions/index.md <ide> We can send these actions to the store by using <ide> store.dispatch(action) <ide> ``` <ide> <add>like so <add>```javascript <add>store.dispatch({ <add> type: ADD_ITEM, <add> text: 'This is the first item' <add>}) <add>``` <add>In real world apps it is often...
1
Ruby
Ruby
use options from previous installs
ec1c7aaa38d7a41ac872f27bb67fc855721346d9
<ide><path>Library/Homebrew/formula_installer.rb <ide> def filtered_args <ide> # Did the user actually pass the formula this installer is considering on <ide> # the command line? <ide> def explicitly_requested?; ARGV.formulae.include? f end <add> previous_install = Tab.for_formula f <ide> <ide> args...
2
Javascript
Javascript
fix overwrite for this._prompt
7166b55015261de8ab69758320f3d9159b3eaadd
<ide><path>lib/readline.js <ide> function Interface(input, output, completer, terminal) { <ide> } <ide> <ide> this._sawReturn = false; <add> this._defaultPrompt = '> '; <ide> <ide> EventEmitter.call(this); <ide> <ide> function Interface(input, output, completer, terminal) { <ide> callback(null, completer(...
3
Ruby
Ruby
improve regexp to recognize comments
42486c1181bdf4ed85f334ccb1edbb6632cfc4b2
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def merge <ide> else <ide> string = s.sub!( <ide> /( <add> (\ {2}\#[^\n]*\n)* # comments <ide> \ {2}( ...
1
Javascript
Javascript
support empty src in `player#src`
6541467ad8e3ce11ace391e36253b269a47b61ff
<ide><path>src/js/player.js <ide> import ModalDialog from './modal-dialog'; <ide> import Tech from './tech/tech.js'; <ide> import * as middleware from './tech/middleware.js'; <ide> import {ALL as TRACK_TYPES} from './tracks/track-types'; <add>import filterSource from './utils/filter-source'; <ide> <ide> // The followi...
3
Text
Text
add link to homebrew blog
09dcdc2a6b86df92409c7c5865f48063d4680a90
<ide><path>docs/README.md <ide> ## Users <ide> <ide> - [`brew` man-page (command documentation)](Manpage.md) <add>- [Homebrew Blog (news on major updates)](https://brew.sh/blog/) <ide> - [Troubleshooting](Troubleshooting.md) <ide> - [Installation](Installation.md) <ide> - [Frequently Asked Questions](FAQ.md)
1
Go
Go
remove unnecessary getimageidandos use getimage
c10e6a4d15b907da22ab508770d67e1447a8d0bd
<ide><path>daemon/images/image.go <ide> func (e ErrImageDoesNotExist) Error() string { <ide> // NotFound implements the NotFound interface <ide> func (e ErrImageDoesNotExist) NotFound() {} <ide> <del>// GetImageIDAndOS returns an image ID and operating system corresponding to the image referred to by <del>// refOrID. ...
4
Javascript
Javascript
support more ci services in `getcolordepth`
f1940824d9f0e769d4ecce07307d4b126cd8dbb4
<ide><path>lib/internal/tty.js <ide> function getColorDepth(env = process.env) { <ide> } <ide> <ide> if (env.CI) { <del> if ('TRAVIS' in env || 'CIRCLECI' in env || 'APPVEYOR' in env || <del> 'GITLAB_CI' in env || env.CI_NAME === 'codeship') { <add> if ([ <add> 'APPVEYOR', <add> 'BUILDKITE', <...
1
Python
Python
load all job models at once
d2042b7bf6f9dc061032e4fb13cf21fc826684f2
<ide><path>airflow/jobs/__init__.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> # <add>import airflow.jobs.backfill_job # noqa <add>import airflow.jobs.base_job # noqa <add>import airflow.jobs.local_task_job # noqa <add>import airflow.jobs.scheduler_job # noqa
1
Javascript
Javascript
fix lint error in mutli compiler
934534e96935e56c001b3b77b3969338e37e98c8
<ide><path>lib/MultiCompiler.js <ide> module.exports = class MultiCompiler extends Tapable { <ide> const missing = []; <ide> for(const source of this.compilers) { <ide> if(source.dependencies) { <del> for(const d of source.dependencies) { <del> const target = this.compilers.find((c) => c.name === d); <add...
1
Javascript
Javascript
match jest.d.ts by regex
efb6d80e60e400f1d6b4549099939cf334afa687
<ide><path>scripts/jest/ts-preprocessor.js <ide> function compile(content, contentFilename) { <ide> path.join('/', '(?:React|ReactDOM)(?:\.d)?\.ts$') <ide> ); <ide> <add> var jestRegex = /jest\.d\.ts/; <add> <ide> if (filename === 'lib.d.ts') { <ide> source = fs.readFileSync( <ide> ...
1
Ruby
Ruby
remove prefix from email subject
4ae5ea7dbeb754a5039775e66b62e3da0419a79b
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def run <ide> end <ide> <ide> if failed_steps.empty? <del> email_subject = 'brew test-bot: PASSED' <add> email_subject = 'PASSED' <ide> else <del> email_subject = "brew test-bot: FAILED: #{failed_steps.join ', '}" <add> email_subject = "#{fa...
1
Javascript
Javascript
reduce syscalls during require search
a71ee93afeada095aaefb0656ef744c5bcc9e9ce
<ide><path>lib/module.js <ide> const noopDeprecateRequireDot = util.deprecate(function() {}, <ide> Module._findPath = function(request, paths) { <ide> var exts = Object.keys(Module._extensions); <ide> <del> if (request.charAt(0) === '/') { <add> if (path.isAbsolute(request)) { <ide> paths = ['']; <ide> } <id...
1
Ruby
Ruby
remove delegated methods from generators test case
3e7070622af7b6efe9eb86c2275b2ad895bd5510
<ide><path>railties/lib/rails/generators/test_case.rb <ide> class TestCase < ActiveSupport::TestCase <ide> include FileUtils <ide> <ide> class_attribute :destination_root, :current_path, :generator_class, :default_arguments <del> delegate :destination_root, :current_path, :generator_class, :default_ar...
1
Python
Python
throw custom error when state_type is invalid
25b34bba9406a3185406e79e8b0e45048e7f3914
<ide><path>spacy/errors.py <ide> class Errors: <ide> E201 = ("Span index out of range.") <ide> <ide> # TODO: fix numbering after merging develop into master <add> E917 = ("Received invalid value {value} for 'state_type' in " <add> "TransitionBasedParser: only 'parser' or 'ner' are valid options."...
2
Javascript
Javascript
fix error in test-cluster-worker-death.js
68488e9c75cf24632fd68063168992ca6830655c
<ide><path>test/parallel/test-cluster-worker-death.js <ide> if (!cluster.isMaster) { <ide> } else { <ide> var worker = cluster.fork(); <ide> worker.on('exit', common.mustCall(function(exitCode, signalCode) { <del> assert.equal(exitCode, 42); <del> assert.equal(signalCode, null); <add> assert.strictEqual(ex...
1
PHP
PHP
update the phpunit install instructions
1d8199b86d231287a2089c5db42f81a11cb44461
<ide><path>lib/Cake/TestSuite/templates/phpunit.php <ide> <div id="content"> <ide> <h2>PHPUnit is not installed!</h2> <ide> <p>You must install PHPUnit to use the CakePHP(tm) Test Suite.</p> <del> <p>PHPUnit can either be installed with pear, using the pear installer. Or the 'PHPUnit' directory from the distribution ...
1
Mixed
Ruby
unify the collation api for the database adpters
aafa00f4c10a6791e6470112f0f1fbe5f2c3f649
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Brian Cardarella* <ide> <del>* Add `collate` and `ctype` support to PostgreSQL. These are available for PostgreSQL 8.4 or later. <add>* Add `collation` and `ctype` support to PostgreSQL. These are available for PostgreSQL 8.4 or later. <ide> Example: <ide>...
6
Text
Text
add django rest messaging in third party packages
f1a384b61bdfe61bc45e71b25089609043c3d069
<ide><path>docs/topics/third-party-resources.md <ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque <ide> * [django-rest-framework-braces][django-rest-framework-braces] - Collection of utilities for working with Django Rest Framework. The most notable ones are [FormSerializer](https:/...
1
Text
Text
simplify troubleshooting text
22de2cfb71f3f1ab63e9663f4aa62bd9016b762a
<ide><path>COLLABORATOR_GUIDE.md <ide> hint: See the 'Note about fast-forwards' in 'git push --help' for details. <ide> ``` <ide> <ide> That means a commit has landed since your last rebase against `upstream/master`. <del>To fix this, pull with rebase from upstream and run the tests again (to make <del>sure no interac...
1
PHP
PHP
change @copyright to @see
f89533e1c184dc8448f6a0718a6de8e5af31d434
<ide><path>src/Validation/Validation.php <ide> public static function datetime($check, $dateFormat = 'ymd', $regex = null) <ide> * <ide> * @return bool True if the value is valid, false otherwise <ide> * <del> * @copyright Regex credits: https://www.myintervals.com/blog/2009/05/20/iso-8601-date-valid...
2
Go
Go
remove daemon check for test
9af6b57a5d466ab3fdea0db8ba8d9a417519a63e
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) restore() error { <ide> } <ide> <ide> var ( <del> debug = (os.Getenv("DEBUG") != "" || os.Getenv("TEST") != "") <add> debug = os.Getenv("DEBUG") != "" <ide> currentDriver = daemon.driver.String() <ide> containers = make(map[string]*cr) ...
1
Java
Java
fix condition in servletinvocablehandlermethod
9960ed55aa3ce3f75dd8c5a0e550438323a0344a
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethod.java <ide> private boolean isRequestNotModified(ServletWebRequest webRequest) { <ide> } <ide> <ide> private void disableContentCachingIfNecessary(ServletWebRequest webRequest) { <del> if (!isRe...
2
Javascript
Javascript
handle effective dataset visibility per chart
82b1e5cd99d77744aac3c1a3c532bbf99b2578cf
<ide><path>src/controllers/controller.bar.js <ide> module.exports = function(Chart) { <ide> var barCount = 0; <ide> helpers.each(this.chart.data.datasets, function(dataset, datasetIndex) { <ide> var meta = this.chart.getDatasetMeta(datasetIndex); <del> if (meta.bar && helpers.isDatasetVisible(dataset)) { <...
11
PHP
PHP
apply suggestions from code review
56a2773ac99060ebc1529e6528189ce313fe5abb
<ide><path>src/Cache/Cache.php <ide> * There are 7 built-in caching engines: <ide> * <ide> * - `ApcuEngine` - Uses the APCu object cache, one of the fastest caching engines. <del> * - `ArrayEngine` - Uses only memory to store all data, not actually a persistent engin. <del> * Can be useful in test or CLI envirome...
1
Ruby
Ruby
store the object itself in the failed download set
c5885757e5586cb69c4d9a09d66772ea712c89bb
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch_patch p <ide> <ide> def retry_fetch? f <ide> @fetch_failed ||= Set.new <del> if ARGV.include?("--retry") && @fetch_failed.add?(f.name) <add> if ARGV.include?("--retry") && @fetch_failed.add?(f) <ide> ohai "Retrying download" <ide> f.clear...
1
Javascript
Javascript
add test for
432a2e4d397908965cfbdc44eb8a10c7fb840701
<ide><path>test/simple/test-http-parser-bad-ref.js <add>// Run this program with valgrind or efence with --expose_gc to expose the <add>// problem. <add> <add>// Flags: --expose_gc <add> <add>var assert = require('assert'); <add>var HTTPParser = process.binding('http_parser').HTTPParser; <add> <add>var headersComplete ...
1
Ruby
Ruby
fix typos [ci-skip]
5fdbd217d18302cd277f80a9ba7fd567844ec324
<ide><path>actioncable/lib/action_cable/channel/naming.rb <ide> def channel_name <ide> end <ide> end <ide> <del> # Delegates to the class' <tt>channel_name</tt> <add> # Delegates to the class's <tt>channel_name</tt>. <ide> delegate :channel_name, to: :class <ide> end <ide> end <ide>...
45
Ruby
Ruby
add comment about error pipe (mis)behavior
1b6f23c8a96fcb78163ba5a58a5e0e342d390663
<ide><path>Library/Homebrew/build.rb <ide> # can be inconvenient for the user. But we need to be safe. <ide> system "/usr/bin/sudo -k" <ide> <add> # The main Homebrew process expects to eventually see EOF on the error <add> # pipe in FormulaInstaller#build. However, if any child process fails to <add> ...
1
Python
Python
add unit tests for samba provider
f149ca9ecf8c11e683606831578bb94aa364c60b
<ide><path>tests/providers/samba/__init__.py <add># <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF licenses this file <add># ...
4
Go
Go
add restrictions to proc in libcontainer
60a90970bc4add3547064004f08c19ab5027141b
<ide><path>daemon/execdriver/native/create.go <ide> func (d *driver) createContainer(c *execdriver.Command) (*libcontainer.Container <ide> container.Cgroups.Name = c.ID <ide> // check to see if we are running in ramdisk to disable pivot root <ide> container.NoPivotRoot = os.Getenv("DOCKER_RAMDISK") != "" <add> conta...
5
Python
Python
make create_cb_arglist work with py3 functions
dc9621d502c87ea78e1e68212724eb9ffcc2037c
<ide><path>numpy/f2py/cfuncs.py <ide> fprintf(stderr,\"Call-back argument must be function|instance|instance.__call__|f2py-function but got %s.\\n\",(fun==NULL?\"NULL\":Py_TYPE(fun)->tp_name)); <ide> goto capi_fail; <ide> } <add>#if PY_VERSION_HEX >= 0x03000000 <add>\tif (PyObject_HasAttrString(tmp_fun,\"__code__\")) {...
1
Ruby
Ruby
use plugin name consistently
11862932ecfe528e7bc12c983e3b85b65350c24d
<ide><path>railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb <ide> def valid_const? <ide> elsif RESERVED_NAMES.include?(name) <ide> raise Error, "Invalid plugin name #{name}. Please give a name which does not match one of the reserved rails words." <ide> elsif Object.const...
1
PHP
PHP
fix cs error
725399b1f398fb403ab78e330313bedd2b4aded3
<ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorShadowTableTest.php <ide> use Cake\ORM\Behavior\Translate\ShadowTableStrategy; <ide> use Cake\ORM\Behavior\TranslateBehavior; <ide> use Cake\Utility\Hash; <del>use Cake\Validation\Validator; <ide> use TestApp\Model\Entity\TranslateArticle; <ide> use TestApp\Model\...
1
Text
Text
add return values in crypto documentation
a3a106865a95665a3f2d8d7c03a1a12f1680a087
<ide><path>doc/api/crypto.md <ide> added: v0.11.14 <ide> `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`, <ide> `RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. <ide> - `buffer` {Buffer | TypedArray | DataView} <add>- Returns: {Buffer} A new `Buffer` with the decrypted cont...
1
Ruby
Ruby
use github wrapper for private tap check
25c4e336f48c4f9d549efc5511d87788a99d291c
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def install_tap user, repo <ide> link_tap_formula(files) <ide> puts "Tapped #{files.length} formula" <ide> <del> # Figure out if this repo is private <del> # curl will throw an exception if the repo is private (Github returns a 404) <del> begin <del> c...
2
Ruby
Ruby
add an operator to inequality
389c4fc2582ae42c32a20b7f6a6cb2c5680343fc
<ide><path>lib/arel/algebra/predicates.rb <ide> def complement <ide> Equality.new(operand1, operand2) <ide> end <ide> <add> def operator; :"!=" end <ide> def eval(row) <ide> operand1.eval(row) != operand2.eval(row) <ide> end <ide><path>spec/algebra/unit/predicates/inequality_spec...
2
Java
Java
fix race in catalyst tests
294185ac328b1c9ae2da6331575d48fc1bb818ff
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java <ide> public void initializeWithInstance(CatalystInstance instance) { <ide> mBridgeIdleSignaler = new ReactBridgeIdleSignaler(); <ide> mInstance.addBridgeIdleDebugListener(mBridgeIdleSignaler); <ide> getCon...
1
PHP
PHP
fix failing tests in isunique rule
86e24efc7d60643509c0e285c16515e86362fbff
<ide><path>src/ORM/Rule/IsUnique.php <ide> public function __invoke(EntityInterface $entity, array $options) <ide> if (!$entity->extract($this->_fields, true)) { <ide> return true; <ide> } <del> <del> $allowMultipleNulls = true; <del> if (isset($options['allowMultipleNulls'])) ...
1
Python
Python
add missing license header
e7957b13aff383f38c81f72296ec97c7622cf3bb
<ide><path>libcloud/test/container/test_lxd.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under ...
1
Text
Text
move sebdeckers to emeritus
62c44af5c5f2964849bba92ff90c32e867d63f83
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Saúl Ibarra Corretgé** &lt;saghul@gmail.com&gt; <ide> * [santigimeno](https://github.com/santigimeno) - <ide> **Santiago Gimeno** &lt;santiago.gimeno@gmail.com&gt; <del>* [sebdeckers](https://github.com/sebdeckers) - <de...
1
Python
Python
fix broken test
405b9dcd8b16fe923e1d4beadc8bb05906eaf7d5
<ide><path>tests/migrations/test_operations.py <ide> def test_add_field_ignore_swapped(self): <ide> project_state, new_state = self.make_test_state("test_adfligsw", operation) <ide> # Test the database alteration <ide> self.assertTableNotExists("test_adfligsw_pont") <del> self.assertColum...
1
Python
Python
add control/msg to lib import
171d6d5b6bc79231a24eed3ea76ada912ace5a46
<ide><path>src/glances.py <ide> <ide> from __future__ import generators <ide> <add>import sys <add> <ide> try: <ide> import os <ide> import platform <ide> import getopt <del> import sys <ide> import signal <ide> import time <ide> import datetime <ide> import multiprocessing <ide> import gettext <del>except Ke...
1
Python
Python
skip some gpt_neox tests that require 80g ram
14fb8a63b99326186951370828e2752857076df7
<ide><path>tests/models/gpt_neox/test_modeling_gpt_neox.py <ide> import unittest <ide> <ide> from transformers import GPTNeoXConfig, is_torch_available <del>from transformers.testing_utils import require_torch, slow, torch_device <add>from transformers.testing_utils import require_torch, torch_device <ide> <ide> from...
1
Ruby
Ruby
fix que integration in active job tests part 2
4eefa1feb00bac259201ba403088e747e69f9a55
<ide><path>activejob/test/support/que/inline.rb <ide> def self.enqueue(*args) <ide> run(*args) <ide> end <ide> end <add> <add>Que::ActiveJob::WrapperExtensions.class_eval do <add> def run(args) <add> super(args.deep_stringify_keys) <add> end <add>end
1
Python
Python
remove import of removed retryqueuemanager
ffa98aab1db925398d624fcf94641ac72665a8d1
<ide><path>celery/models.py <ide> from django.db import models <ide> from celery.registry import tasks <ide> from celery.managers import TaskManager, PeriodicTaskManager <del>from celery.managers import RetryQueueManager <ide> from yadayada.models import PickledObjectField <ide> from django.utils.translation import uge...
1
Text
Text
clarify sudoku solver instructions
594b63bc3571ec64c340fc57d5ea53e919350bb4
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md <ide> When you are done, make sure a working demo of your project is hosted somewhere <ide> <ide> # --instructions-- <ide> <del>- All puzzle logic can go into `/controllers/sudoku-solver.js` <del>- All routin...
1
Python
Python
catch a misc import error
8a4fb936484cf0ba8b5e76706dc9b52b535549af
<ide><path>numpy/f2py/__version__.py <ide> from __svn_version__ import version <ide> version_info = (major, version) <ide> version = '%s_%s' % version_info <del>except ImportError: <add>except (ImportError, ValueError): <ide> version = str(major)
1
Text
Text
change links to doc instead of js
78f0c7178f359d147962fc829479f52f036a707c
<ide><path>docs/Style.md <ide> var List = React.createClass({ <ide> <ide> You can checkout latest support of CSS Properties in following Links. <ide> <del>- [View Properties](https://github.com/facebook/react-native/blob/72d3d724a3a0c6bc46981efd0dad8f7f61121a47/Libraries/Components/View/ViewStylePropTypes.js) <del>- ...
1
PHP
PHP
remove optional parameter
dd2e3a3dc0a1e227db49096f654f1dc8cac291ab
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function assertRedirect($url = null, $message = '') <ide> * @param string $message The failure message that will be appended to the generated message. <ide> * @return void <ide> */ <del> public function assertRedirectContains($url = null, $...
1