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 |
|---|---|---|---|---|---|
Javascript | Javascript | fix typos, wrong closing tags | f2b824e987fe3a16f744c0286667084428c5b742 | <ide><path>Libraries/Components/Touchable/TouchableHighlight.js
<ide> var DEFAULT_PROPS = {
<ide> * style={styles.button}
<ide> * source={require('image!myButton')}
<ide> * />
<del> * </View>
<add> * </TouchableHighlight>
<ide> * );
<ide> * },
<ide> * ```
<ide><path>Libraries/Compo... | 2 |
Javascript | Javascript | improve coverage for `question` in readline | ccde7fc2a6287c57d7402fd08aebcfbe3678f786 | <ide><path>test/parallel/test-readline-interface.js
<ide> for (let i = 0; i < 12; i++) {
<ide> rli.close();
<ide> }
<ide>
<add> // Calling the question multiple times
<add> {
<add> const [rli] = getInterface({ terminal });
<add> rli.question('foo?', common.mustCall((answer) => {
<add> assert.strictE... | 1 |
Javascript | Javascript | use explicit `/index` for importing from folder | 3ea74706473b7f4d14fa14b521e979ea8b72d820 | <ide><path>packages/ember-template-compiler/lib/index.js
<ide> export {
<ide> registerPlugin,
<ide> unregisterPlugin
<ide> } from './system/compile-options';
<del>export { default as defaultPlugins } from './plugins';
<add>export { default as defaultPlugins } from './plugins/index';
<ide>
<ide> // used for adding ... | 2 |
Go | Go | parse storage-opt in graphdriver init on windows | db7b7f6df9151f0eca88af087514825b1a493f32 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) create(opts createOpts) (retC *container.Container, retErr
<ide>
<ide> ctr.HostConfig.StorageOpt = opts.params.HostConfig.StorageOpt
<ide>
<del> // Fixes: https://github.com/moby/moby/issues/34074 and
<del> // https://github.com/docker/for-win/issues/999.
<del>... | 3 |
Text | Text | add docs about locale | 84cba20ae77527dbfadf470d771f9934c9b7c56a | <ide><path>docs/api-reference/data-fetching/get-static-paths.md
<ide> The `paths` key determines which paths will be pre-rendered. For example, suppos
<ide> ```js
<ide> return {
<ide> paths: [
<del> { params: { id: '1' } },
<del> { params: { id: '2' } }
<add> { params: { id: '1' }},
<add> {
<add> par... | 1 |
Text | Text | update description of `to_prepare` event | 4dc21f0a28259bb6268bab9c4b95be0d91a062f6 | <ide><path>guides/source/configuring.md
<ide> Rails has 5 initialization events which can be hooked into (listed in the order
<ide>
<ide> * `before_initialize`: This is run directly before the initialization process of the application occurs with the `:bootstrap_hook` initializer near the beginning of the Rails initia... | 1 |
Java | Java | remove code for api level 20 and below | 49f10fd2e526b64294777357ab2fef8880739f26 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.java
<ide> public AccessibilityInfoModule(ReactApplicationContext context) {
<ide> mContentResolver = getReactApplicationContext().getContentResolver();
<ide> mTouchExplorationEnabled = mAccessibilityManag... | 12 |
Ruby | Ruby | remove pyc files before bottling | 0e52cc6188b13b80ac6059361b628ff7e998f987 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def bottle_formula f
<ide> begin
<ide> keg.relocate_install_names prefix, Keg::PREFIX_PLACEHOLDER,
<ide> cellar, Keg::CELLAR_PLACEHOLDER, :keg_only => f.keg_only?
<add> keg.delete_pyc_files!
<ide>
<ide> HOMEBREW_CELLAR.cd do
<ide> ... | 1 |
Javascript | Javascript | use descriptive name for destination file | 2a8576dfa5138254d78d47de0f03355984507f67 | <ide><path>test/parallel/test-http2-pipe-named-pipe.js
<ide> const path = require('path');
<ide> const tmpdir = require('../common/tmpdir');
<ide> tmpdir.refresh();
<ide> const loc = fixtures.path('person-large.jpg');
<del>const fn = path.join(tmpdir.path, 'http2-url-tests.js');
<add>const fn = path.join(tmpdir.path, '... | 1 |
Python | Python | add test for ticket #302 | d79e367279555247cfd3153a7cafac0c1733673d | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_mem_lexsort_strings(self, level=rlevel):
<ide> lst = ['abc','cde','fgh']
<ide> N.lexsort((lst,))
<ide>
<add> def check_fancy_index(self, level=rlevel):
<add> """Ticket #302"""
<add> x = N.array([1,2])[N.array([0])]
... | 1 |
Python | Python | add some tests for pep 3118 buffer interface | efc06019c3fda0b06f16e4a3affe264c712fc92b | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_complex_warning(self):
<ide> assert_raises(np.ComplexWarning, x.__setitem__, slice(None), y)
<ide> warnings.simplefilter("default", np.ComplexWarning)
<ide>
<del>if sys.version_info >= (2, 6):
<add>if sys.version_info >= (2, 7):
<ide> cl... | 1 |
Javascript | Javascript | use fallback swc version when binary publish fails | d43e05c61c025d66be51b2bb929bd07347bbec7c | <ide><path>scripts/publish-native.js
<ide> const cwd = process.cwd()
<ide> let platforms = (await readdir(nativePackagesDir)).filter(
<ide> (name) => !name.startsWith('.')
<ide> )
<add> const publishedPkgs = new Set()
<add> // TODO: update to latest version where all pacakges were
<add> // succes... | 1 |
Javascript | Javascript | add failing tests for -addon blueprints with --pod | 5c6eef38fd59b58e1bf39ef3b8e1fc4e4064ab8f | <ide><path>node-tests/blueprints/helper-addon-test.js
<ide> describe('Blueprint: helper-addon', function() {
<ide> .to.equal(fixture('helper-addon.js'));
<ide> });
<ide> });
<add>
<add> it('helper-addon foo/bar-baz --pod', function() {
<add> return emberGenerateDestroy(['helper-addon', 'foo/... | 3 |
Java | Java | update javadoc on antpathmatcher | b542b5277500cd6261a6126bbd73fec2c9250e5b | <ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
<ide> * {@code org/springframework/testing/servlet/bla.jsp} and {@code org/servlet/bla.jsp}</li>
<ide> * </ul>
<ide> *
<add> * <p><strong>Note:</strong> a pattern and a path must both be absolute or must
<add> * both be relative in ord... | 1 |
Python | Python | fix rstrip for character arrays (ticket #222) | 33d3fde298fb6ba2da8087f0354f8b6ec9b0d056 | <ide><path>numpy/core/defchararray.py
<ide> def _generalmethod(self, name, myiter):
<ide> for k, val in enumerate(myiter):
<ide> newval = []
<ide> for chk in val[1:]:
<del> if chk.dtype is object_ and chk.item() is None:
<add> if not chk or (chk.dtype is obj... | 2 |
Go | Go | add test to reproduce issue #306 | 7ad2e022fb737286b5803066bde6919e2d544c4e | <ide><path>graph_test.go
<ide> func TestMount(t *testing.T) {
<ide> }()
<ide> }
<ide>
<add>// Test that an image can be deleted by its shorthand prefix
<add>func TestDeletePrefix(t *testing.T) {
<add> graph := tempGraph(t)
<add> defer os.RemoveAll(graph.Root)
<add> img := createTestImage(graph, t)
<add> if err := gra... | 1 |
Javascript | Javascript | simplify deformer parsing | 3e9f292bcd82a24b90bfa0cc5bda175758b88570 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> var images = parseImages( FBXTree );
<ide> var textures = parseTextures( FBXTree, new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ), images, connections );
<ide> var materials = parseMaterials( FBXTree, textures, connections );
<del> var de... | 1 |
Ruby | Ruby | suggest full_name when appropriate | 020d6e28438109849511d00dfb20383c1a8f5619 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> optlinked_version = Keg.for(f.opt_prefix).version
<ide> onoe <<~EOS
<ide> #{f.full_name} #{optlinked_version} is already installed
<del> To upgrade to #{f.version}, run `brew upgrade #{f.name}`
<add> ... | 2 |
Text | Text | add changelogs for repl | 3115904595249b0e308498698fe0fae7bf972346 | <ide><path>doc/api/repl.md
<ide> within the action function for commands registered using the
<ide> ## repl.start([options])
<ide> <!-- YAML
<ide> added: v0.1.91
<add>changes:
<add> - version: v5.8.0
<add> pr-url: https://github.com/nodejs/node/pull/5388
<add> description: The `options` parameter is optional now... | 1 |
Javascript | Javascript | remove usage of require('util') in `repl.js` | 415a825dc0f53710394d51482ff9b7b65473d5e2 | <ide><path>lib/repl.js
<ide> const {
<ide> isIdentifierStart,
<ide> isIdentifierChar
<ide> } = require('internal/deps/acorn/acorn/dist/acorn');
<del>const internalUtil = require('internal/util');
<del>const util = require('util');
<add>const {
<add> decorateErrorStack,
<add> isError,
<add> deprecate
<add>} = req... | 1 |
Javascript | Javascript | fix length/end of stream handling | 267f312f135a29c809cdee905624e19700cd927c | <ide><path>pdf.js
<ide> var Stream = (function() {
<ide> this.bytes = new Uint8Array(arrayBuffer);
<ide> this.start = start || 0;
<ide> this.pos = this.start;
<del> this.length = (start + length) || arrayBuffer.byteLength;
<add> this.end = (start + length) || arrayBuffer.byteLength... | 1 |
Ruby | Ruby | fix incorrect replace order | 6cdc501a75582613b675acd5294ce7d652854c0e | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def replace_text_in_files(relocation, files: nil)
<ide> relocation.old_cellar => relocation.new_cellar,
<ide> relocation.old_repository => relocation.new_repository,
<ide> }
<del> changed = s.gsub!(Regexp.union(replacements.keys), replacements... | 1 |
Python | Python | remove unnecessary parenthesis in numpy.ma.core | f31de1fbef7fb5cbec8f791878bfbd7688340d4d | <ide><path>numpy/ma/core.py
<ide> class _DomainCheckInterval(object):
<ide>
<ide> def __init__(self, a, b):
<ide> "domain_check_interval(a,b)(x) = true where x < a or y > b"
<del> if (a > b):
<add> if a > b:
<ide> (a, b) = (b, a)
<ide> self.a = a
<ide> self.b = b
<... | 1 |
Python | Python | use better names for filter variable | 32bd1a2f0bc29480259fcb5ffa17dcb1aa9710a4 | <ide><path>rest_framework/filters.py
<ide> def filter_queryset(self, request, queryset, view):
<ide> return queryset
<ide>
<ide> def to_html(self, request, queryset, view):
<del> cls = self.get_filter_class(view, queryset)
<del> if cls:
<del> filter_instance = cls(request.query_par... | 1 |
Javascript | Javascript | fix path to module for repl test on windows | c0bac9514795346a9d5e2cc37470cdc5caeff234 | <ide><path>test/addons/repl-domain-abort/test.js
<ide> 'use strict';
<del>require('../../common');
<add>var common = require('../../common');
<ide> var assert = require('assert');
<ide> var repl = require('repl');
<ide> var stream = require('stream');
<add>var path = require('path');
<ide> var buildType = process.confi... | 1 |
Text | Text | fix small typos | aad27f5925a63ca967b5bee0c53b4ffd360f5c60 | <ide><path>docs/faq/DesignDecisions.md
<ide> The default utility combineReducers is only one way to build a complex reducer.
<ide>
<ide> <a id="no-asynch-in-mapDispatchToProps"></a>
<ide> ### Why doesn't mapDispatchToProps allow use of return values from getState() or mapStateToProps()?
<del>In general, connect provid... | 1 |
Python | Python | add authprovider for cassandra export | f5e53e45667bac10cfd556a7d5562336616c6760 | <ide><path>glances/exports/glances_cassandra.py
<ide> from glances.exports.glances_export import GlancesExport
<ide> from glances.compat import iteritems
<ide>
<add>from cassandra.auth import PlainTextAuthProvider
<ide> from cassandra.cluster import Cluster
<ide> from cassandra.util import uuid_from_time
<ide> from ca... | 1 |
Javascript | Javascript | add packager worker for buck | fa44607bf6092898b9a27cf69d4d78a132ddfc13 | <ide><path>local-cli/bundle/buildBundle.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> */
<del>'use strict';
<ide>
<ide> const log = require('../util/log').out('bundle');
<ide> const output... | 4 |
Python | Python | add even tree problem | e0733c26f211638dcaadabaa38e010d27acce854 | <ide><path>data_structures/Graph/even_tree.py
<add>"""
<add>You are given a tree(a simple connected graph with no cycles). The tree has N
<add>nodes numbered from 1 to N and is rooted at node 1.
<add>
<add>Find the maximum number of edges you can remove from the tree to get a forest
<add>such that each connected compon... | 1 |
Ruby | Ruby | move md5 deprecation warning into pathname#md5 | c166ce3f581bda226b8fde4852dcf5775255d713 | <ide><path>Library/Homebrew/compat/compatibility.rb
<ide> def md5(val=nil)
<ide> if val.nil?
<ide> @checksum if checksum.nil? or @checksum.hash_type == :md5
<ide> else
<del> opoo <<-EOS.undent
<del> MD5 support is deprecated and will be removed in a future version.
<del> Please switch this ... | 1 |
Go | Go | remove obsolete comment | 3dc8829a83d72d3a8e1d9b6a88c9e6ff9ecaf4a0 | <ide><path>api/server/server.go
<ide> func (s *Server) addRouter(r router.Router) {
<ide> }
<ide>
<ide> // createMux initializes the main router the server uses.
<del>// we keep enableCors just for legacy usage, need to be removed in the future
<ide> func (s *Server) createMux() *mux.Router {
<ide> m := mux.NewRouter... | 1 |
Text | Text | revert last grammatical edit | 7a227276e653b481b73ed9e9178244b53d61f730 | <ide><path>CODE_OF_CONDUCT.md
<ide> Examples of unacceptable behavior by participants include:
<ide> advances
<ide> * Trolling, insulting/derogatory comments, and personal or political attacks
<ide> * Public or private harassment
<del>* Publishing other's private information, such as a physical or electronic
<add>* P... | 1 |
PHP | PHP | add tests for complex input rendering | e8ed1f58f5e39d79182fda355da30cd35ca4e464 | <ide><path>tests/TestCase/View/Input/MultiCheckboxTest.php
<ide> public function testRenderSimple() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * Test render complex and additional attributes.
<add> *
<add> * @return void
<add> */
<add> public function testRenderComplex() {
<add> $i... | 1 |
Text | Text | clarify config order of precedence | 88c24d85ee0d18a9d0c09ef229a76c4a796ccf89 | <ide><path>README.md
<ide> axios.get('/user', {
<ide> .catch(function (error) {
<ide> console.log(error);
<ide> });
<del>
<add>
<ide> // Want to use async/await? Add the `async` keyword to your outer function/method.
<ide> async function getUser() {
<ide> try {
<ide> async function getUser() {
<ide> }
<ide>... | 1 |
Text | Text | update a link of npm repository | 450ab14d4b1c211358df00ddd992023a78ef92f2 | <ide><path>doc/guides/maintaining-npm.md
<ide> changes can be reviewed and landed via the normal consensus seeking process.
<ide> ## Step 1: Clone npm
<ide>
<ide> ```console
<del>$ git clone https://github.com/npm/npm.git
<add>$ git clone https://github.com/npm/cli.git npm
<ide> $ cd npm
<ide> ```
<ide> | 1 |
Go | Go | fix goroutine leak on pull | 3037e4f7c4eec06cf3a5afca6f58ec58b4bdd63e | <ide><path>graph/pull_v2.go
<ide> func (p *v2Puller) pullV2Tag(out io.Writer, tag, taggedName string) (verified bo
<ide> // set the error. All successive reads/writes will return with this
<ide> // error.
<ide> pipeWriter.CloseWithError(errors.New("download canceled"))
<add> } else {
<add> // If no error th... | 1 |
PHP | PHP | fix resource type in docblocks | 72da4ec576fb195536a488b1fbe3234bfacbd944 | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> public function baseUrl(string $url)
<ide> /**
<ide> * Attach a raw body to the request.
<ide> *
<del> * @param resource|string $content
<add> * @param string $content
<ide> * @param string $contentType
<ide> * @return ... | 1 |
Javascript | Javascript | pass request to .createconnection()" | 1ccdde9a6986e7e258e9aa0de10ca51fc0c5a9d4 | <ide><path>lib/http.js
<ide> Agent.prototype.addRequest = function(req, host, port, localAddress) {
<ide> }
<ide> if (this.sockets[name].length < this.maxSockets) {
<ide> // If we are under maxSockets create a new one.
<del> req.onSocket(this.createSocket(name, host, port, localAddress, req));
<add> req.o... | 2 |
Go | Go | update integration tests for server pkg | 8cf0b80a7843633018b66a35d9a55f30814a56b6 | <ide><path>integration/buildfile_test.go
<ide> package docker
<ide>
<ide> import (
<ide> "fmt"
<del> "github.com/dotcloud/docker"
<ide> "github.com/dotcloud/docker/archive"
<ide> "github.com/dotcloud/docker/engine"
<ide> "github.com/dotcloud/docker/image"
<ide> "github.com/dotcloud/docker/nat"
<add> "github.com/d... | 3 |
Go | Go | fix error handling for kill/process not found | e55bead518e4c72cdecf7de2e49db6c477cb58eb | <ide><path>daemon/kill.go
<ide> import (
<ide> "context"
<ide> "fmt"
<ide> "runtime"
<del> "strings"
<ide> "syscall"
<ide> "time"
<ide>
<add> "github.com/docker/docker/api/errdefs"
<ide> containerpkg "github.com/docker/docker/container"
<ide> "github.com/docker/docker/libcontainerd"
<ide> "github.com/docker/do... | 2 |
Text | Text | fix links in test/common/readme.md | 5570df407aae1e329955b1093e0e5b8bde270213 | <ide><path>test/common/README.md
<ide> See `common.expectWarning()` for usage.
<ide> Indicates whether 'opensslCli' is supported.
<ide>
<ide> ### platformTimeout(ms)
<del>* `ms` [<number>|<bigint>]
<del>* return [<number>|<bigint>]
<add>* `ms` [<number>] | [<bigint>]
<add>* return [<number>] | [&l... | 1 |
Mixed | Javascript | adjust minimum length in generatekey('hmac', ...) | a5b87305255f4757545b1d9f60a5e6f94cb742c8 | <ide><path>doc/api/crypto.md
<ide> changes:
<ide> * `options`: {Object}
<ide> * `length`: {number} The bit length of the key to generate. This must be a
<ide> value greater than 0.
<del> * If `type` is `'hmac'`, the minimum is 1, and the maximum length is
<add> * If `type` is `'hmac'`, the minimum is 8, and... | 3 |
Text | Text | add version note for `has` property | 73e1fb4da4f8db524a572b5391dff65735c7560b | <ide><path>docs/api-reference/next.config.js/headers.md
<ide> description: Add custom HTTP headers to your Next.js app.
<ide> </ul>
<ide> </details>
<ide>
<add><details>
<add> <summary><b>Version History</b></summary>
<add>
<add>| Version | Changes |
<add>| --------- | ------------ |
<add>| `v10.2.0` | `has`... | 3 |
Javascript | Javascript | add -webkit-transition for ngclass example | 8a5daaed42b5b3496fa482a6d7f4a680a4d68680 | <ide><path>src/ng/directive/ngClass.js
<ide> function classDirective(name, selector) {
<ide> </file>
<ide> <file name="style.css">
<ide> .base-class {
<add> -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
<ide> transition:all cubic-bezier(0.250, 0.460, 0.450, 0.94... | 1 |
Java | Java | improve access to raw content in webtestclient | 8df0bc88d2f9f662919881ed3081f133656e37c8 | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java
<ide> private static class DefaultResponseSpec implements ResponseSpec {
<ide> DefaultResponseSpec(WiretapConnector.Info wiretapInfo, ClientResponse response,
<ide> @Nullable String uriTemplate, Duration ti... | 9 |
Python | Python | use set.discard instead of set.remove | e24d6ae3b6d543aba6ab9ed176a550c409dfe04e | <ide><path>celery/worker/state.py
<ide> def task_accepted(request):
<ide>
<ide> def task_ready(request):
<ide> """Updates global state when a task is ready."""
<del> try:
<del> active_requests.remove(request)
<del> except KeyError:
<del> pass
<add> active_requests.discard(request)
<ide>
<id... | 1 |
Text | Text | move changelog entry to the top [ci skip] | f9e0ec544989c2d93ed40d0acdbc627f6a624eb1 | <ide><path>actionmailer/CHANGELOG.md
<add>* Add `_mailer` suffix to mailers created via generator, following the same
<add> naming convention used in controllers and jobs.
<add>
<add> *Carlos Souza*
<add>
<ide> * Remove deprecate `*_path` helpers in email views.
<ide>
<ide> *Rafael Mendonça França*
<ide>... | 1 |
Python | Python | fix fp16_backend field | 51adb97cd644a5840d971868d18c1d436fd6ff5d | <ide><path>src/transformers/training_args.py
<ide> class TrainingArguments:
<ide> )
<ide> fp16_backend: str = field(
<ide> default="auto",
<del> metadata={"help": "The backend to be used for mixed precision. Should be one of 'auto', 'amp' or 'apex'."},
<add> metadata={"help": "The backend ... | 1 |
Text | Text | replace http to https of link urls | 3975799f260bb1aea77f3e8f4546182b53f2d6b8 | <ide><path>doc/api/cli.md
<ide> $ node --max-old-space-size=1536 index.js
<ide> [emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor
<ide> [experimental ECMAScript Module loader]: esm.html#esm_experimental_loaders
<ide> [jitless]: https://v8.dev/blog/jitless
<del>[libuv threadpool documentati... | 14 |
Javascript | Javascript | fix code samples and example | 39915836e0604723c5edb7d915d3f41c0abda65e | <ide><path>src/ng/sce.js
<ide> function adjustMatchers(matchers) {
<ide> *
<ide> * Here is what a secure configuration for this scenario might look like:
<ide> *
<del> * <pre class="prettyprint">
<del> * angular.module('myApp', []).config(function($sceDelegateProvider) {
<del> * $sceDelegateProvider.resource... | 1 |
Ruby | Ruby | update documentation for button_to | 42eda20cce08c5006e71f0098067cc098fc3970c | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def link_to(*args, &block)
<ide> #
<ide> # <%= button_to "Create", :action => "create", :remote => true, :form => { "data-type" => "json" } %>
<ide> # # => "<form method="post" action="/images/create" class="button_to" data-remote="... | 1 |
Text | Text | mention `largepagedatabytes` in warning docs | a799d25cfaf602c898ba3afa3a8cbd6f6eb7957b | <ide><path>errors/large-page-data.md
<ide>
<ide> #### Why This Error Occurred
<ide>
<del>One of your pages includes a large amount of page data (>= 128KB). This can negatively impact performance since page data must be parsed by the client before the page is hydrated.
<add>One of your pages includes a large amount of... | 1 |
PHP | PHP | fix coding standards | 11227f54903c52a43faabd16fe951e8db127d927 | <ide><path>lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
<ide> public function testGenerateModels() {
<ide> CakePlugin::unload();
<ide> }
<ide>
<del>
<ide> /**
<ide> * Test schema run create with no table args.
<ide> *
<ide><path>lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
<id... | 2 |
Javascript | Javascript | add test for d3.values | 15d7e87fdb1dd18e1202a5f2d15d97eaff609010 | <ide><path>test/core/keys-test.js
<ide> suite.addBatch({
<ide> return d3.keys;
<ide> },
<ide> "enumerates every defined key": function(keys) {
<del> assert.deepEqual(d3.keys({a: 1, b: 1}), ["a", "b"]);
<add> assert.deepEqual(keys({a: 1, b: 1}), ["a", "b"]);
<ide> },
<ide> "includes keys ... | 2 |
Javascript | Javascript | increase workers to 8 in cluster-disconnect | dbe9f8da6b114873e781791bb31761d3161cad31 | <ide><path>test/simple/test-cluster-disconnect.js
<ide> if (cluster.isWorker) {
<ide>
<ide> // start two workers and execute callback when both is listening
<ide> var startCluster = function(cb) {
<del> var workers = 2;
<add> var workers = 8;
<ide> var online = 0;
<ide>
<ide> for (var i = 0, l = wor... | 1 |
Text | Text | use the correct "it's." | 2b0f88383afba28fe7b0bba989d115c2f5e2cc87 | <ide><path>docs/sources/use/working_with_volumes.md
<ide> more new volumes to any container created from that image:
<ide> ### Creating and mounting a Data Volume Container
<ide>
<ide> If you have some persistent data that you want to share between
<del>containers, or want to use from non-persistent containers, its be... | 1 |
PHP | PHP | add `notifynow` method to notifiables | 727bd9eb4dacd504ec6c34516485694225971c31 | <ide><path>src/Illuminate/Notifications/RoutesNotifications.php
<ide> public function notify($instance)
<ide> app(Dispatcher::class)->send($this, $instance);
<ide> }
<ide>
<add> /**
<add> * Send the given notification immediately.
<add> *
<add> * @param mixed $instance
<add> * @param ... | 2 |
Python | Python | add classifiers in setup.py | 3c31489046d144aa09b68f611c241d9ed770c07a | <ide><path>setup.py
<ide> 'pytest-xdist',
<ide> 'pytest-cov'],
<ide> },
<add> classifiers=[
<add> 'Development Status :: 5 - Production/Stable',
<add> 'Intended Audience :: Developers',
<add> 'Intended Audience :: Education',
<add> '... | 1 |
PHP | PHP | set the user resolver on form requests | 79506f3b7d550afbc1c13972b997f06b7f5c75e8 | <ide><path>src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php
<ide> protected function initializeRequest(FormRequest $form, Request $current)
<ide> $current->query->all(), $current->request->all(), $current->attributes->all(),
<ide> $current->cookies->all(), $files, $current->server->all(), $curre... | 2 |
Javascript | Javascript | update stdout and stderror to be array of lines | 4dcbf96e7239289eeeff4463488622919584111d | <ide><path>test/BinTestCases.test.js
<ide> function getTestSpecificArguments(testDirectory) {
<ide> }
<ide> }
<ide>
<add>function convertToArrayOfLines(outputArray) {
<add> if(outputArray.length === 0) return outputArray;
<add> return outputArray.join('').split('\n');
<add>}
<add>
<ide> const casesPath = path.join(__... | 3 |
Python | Python | use keepdims in a couple docstrings | 09154cfa6dea50a6ac24ae1062095c9e98026bbc | <ide><path>numpy/lib/shape_base.py
<ide> def take_along_axis(arr, indices, axis):
<ide> >>> np.sort(a, axis=1)
<ide> array([[10, 20, 30],
<ide> [40, 50, 60]])
<del> >>> ai = np.argsort(a, axis=1); ai
<add> >>> ai = np.argsort(a, axis=1)
<add> >>> ai
<ide> array([[0, 2, 1],
<ide> ... | 1 |
Javascript | Javascript | switch keyboardavoidingview to class syntax | c017dcb0f2903b49b2f21cc150226aeb7f5026ee | <ide><path>Libraries/Components/Keyboard/Keyboard.js
<ide> type KeyboardEventName =
<ide> | 'keyboardWillChangeFrame'
<ide> | 'keyboardDidChangeFrame';
<ide>
<del>export type KeyboardEvent = {|
<del> +duration?: number,
<del> +easing?: string,
<del> +endCoordinates: {|
<del> +width: number,
<del> +height:... | 2 |
Javascript | Javascript | add array annotation to all injectable parameters | 6874cca1589a2a4c28f3caa036897c70e57763ef | <ide><path>src/auto/injector.js
<ide> function annotate(fn, strictDi, name) {
<ide> * @description
<ide> * Invoke the method and supply the method arguments from the `$injector`.
<ide> *
<del> * @param {!Function} fn The function to invoke. Function parameters are injected according to the
<del> * {@link guide/di ... | 1 |
Go | Go | amend run help for --user to include guid | 46d4e491c8a1394596e824ac65b360f6d7211c6f | <ide><path>runconfig/parse.go
<ide> func Parse(cmd *flag.FlagSet, args []string) (*Config, *HostConfig, *flag.FlagSe
<ide> flHostname = cmd.String([]string{"h", "-hostname"}, "", "Container host name")
<ide> flMemoryString = cmd.String([]string{"m", "-memory"}, "", "Memory limit")
<ide> flMemorySwap ... | 1 |
Mixed | Ruby | add config option for cookies digest | cfbedd3479d5021b9fb862ecfa49fc6bc8602994 | <ide><path>actionpack/CHANGELOG.md
<add>* Add `config.action_dispatch.cookies_digest` option for setting custom
<add> digest. The default remains the same - 'SHA1'.
<add>
<add> *Łukasz Strzałkowski*
<add>
<ide> * Extract source code for the entire exception stack trace for
<ide> better debugging and diagn... | 4 |
Ruby | Ruby | remove duplication from date_time calculations | 89060b8ef9b56e69e5f28754b5b633f6c8b8c909 | <ide><path>activesupport/lib/active_support/core_ext/date_time/calculations.rb
<ide> def current
<ide> end
<ide> end
<ide>
<del> # Tells whether the DateTime object's datetime lies in the past.
<del> def past?
<del> self < ::DateTime.current
<del> end
<del>
<del> # Tells whether the DateTime object's date... | 1 |
Javascript | Javascript | add more documentation | 96840c6b861603a312e28fa1ab5944328fcb6372 | <ide><path>packages/ember-views/lib/views/view.js
<ide> var invokeForState = {
<ide> isEnabled: true
<ide> });
<ide>
<add> Will result in view instances with an HTML representation of:
<add>
<add> <div id="ember1" class="ember-view enabled"></div>
<add>
<add> When isEnabled is `false`, the resulting H... | 1 |
Text | Text | note curl usage on <=10.7 | f18e4e330241017d3e2503eeecba7925c799eefd | <ide><path>docs/Installation.md
<ide> it does it too. And you have to confirm everything it will do before it starts.
<ide>
<ide> ## Alternative Installs
<ide>
<add>### OS X Lion 10.7 and below
<add>
<add>Using the instructions on https://brew.sh or below whenever you call `curl` you must pass `--insecure` as an argu... | 1 |
Python | Python | fix mypy docker provider | b20e6d3f060bc385e350433070d5707ae6d6d0b0 | <ide><path>airflow/decorators/base.py
<ide> import inspect
<ide> import re
<ide> from inspect import signature
<del>from typing import Any, Callable, Dict, Optional, Tuple, TypeVar, cast
<add>from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Type, TypeVar, cast
<ide>
<ide> from airflow.exceptions impo... | 4 |
Javascript | Javascript | bind this in onreadystatechange call | b8ff6212f84efebcf3ba2de3e1999d3e68e0c574 | <ide><path>Libraries/Network/XMLHttpRequestBase.js
<ide> class XMLHttpRequestBase {
<ide> if (onreadystatechange) {
<ide> // We should send an event to handler, but since we don't process that
<ide> // event anywhere, let's leave it empty
<del> onreadystatechange(null);
<add> onreadystatechang... | 1 |
Javascript | Javascript | remove redundant initialization | ccdaa434b8118a3f5d7dd6d2fc20affacbf98368 | <ide><path>lib/repl.js
<ide> function complete(line, callback) {
<ide>
<ide> // REPL commands (e.g. ".break").
<ide> var filter;
<del> var match = null;
<del> match = line.match(/^\s*\.(\w*)$/);
<add> let match = line.match(/^\s*\.(\w*)$/);
<ide> if (match) {
<ide> completionGroups.push(Object.keys(this.c... | 1 |
Javascript | Javascript | fix flaky test-repl | 9b23777442f9af01b25b8752e3d1767036b62f14 | <ide><path>test/parallel/test-repl.js
<ide> function event(ee, expected) {
<ide> const data = inspect(expected, { compact: false });
<ide> const msg = `The REPL did not reply as expected for:\n\n${data}`;
<ide> reject(new Error(msg));
<del> }, common.platformTimeout(1000));
<add> }, common.platf... | 1 |
Javascript | Javascript | update the players source cache on sourceset | ba2ae7868b5fa42b9eee65146aa84ba58f749315 | <ide><path>src/js/player.js
<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';
<ide> import filterSource from './utils/filter-source';
<add>import {findMimetype} from './utils/mimetypes';
<ide>
<ide> // The f... | 4 |
Python | Python | simplify application tests | f65a562d8266b769e16cc2cd14f0049720e8d81c | <ide><path>tests/keras/applications/applications_test.py
<ide> import pytest
<del>import numpy as np
<del>import time
<ide> import random
<ide> import os
<ide> from multiprocessing import Process, Queue
<ide>
<ide>
<ide> pytestmark = pytest.mark.skipif(
<del> os.environ['CORE_CHANGED'] == 'False' and os.environ['A... | 1 |
Javascript | Javascript | fix tostring for large positions | 563a28dd0f952ff845649ca743dfadf60d2d4994 | <ide><path>lib/serialization/BinaryMiddleware.js
<ide> class BinaryMiddleware extends SerializerMiddleware {
<ide> return () => result.push("");
<ide> case SHORT_STRING_HEADER | 1:
<ide> return () => {
<del> if (currentIsBuffer) {
<add> if (currentIsBuffer && currentPosition < 0x7ffffffe) {
<ide... | 1 |
Go | Go | fix incorrect comment | d626f77e36e16911358248af678cc00900a6f5b5 | <ide><path>api/server/copy.go
<ide> import (
<ide> "github.com/docker/docker/pkg/version"
<ide> )
<ide>
<del>// postContainersCopy is deprecated in favor of getContainersArchivePath.
<add>// postContainersCopy is deprecated in favor of getContainersArchive.
<ide> func (s *Server) postContainersCopy(version version.Ve... | 1 |
Javascript | Javascript | test process.setuid for bad argument types | 83444b7c66a5d3ba89e1d40790db26735094f5ea | <ide><path>test/parallel/test-process-setuid-setgid.js
<ide> if (common.isWindows) {
<ide> return;
<ide> }
<ide>
<add>assert.throws(() => {
<add> process.setuid({});
<add>}, /^TypeError: setuid argument must be a number or a string$/);
<add>
<ide> assert.throws(() => {
<ide> process.setuid('fhqwhgadshgnsdhjsdbkhs... | 1 |
Python | Python | remove duplicated batch_set_value in cntk_backend | 1b1e09a3665d71061bb5b62ca475d304634a85bf | <ide><path>keras/backend/cntk_backend.py
<ide> def get_variable_shape(x):
<ide> return x.shape
<ide>
<ide>
<del>def batch_set_value(tuples):
<del> for p, v in tuples:
<del> p.value = v.astype(np.float32)
<del>
<del>
<ide> def update(x, new_x):
<ide> return C.assign(x, new_x)
<ide> | 1 |
Java | Java | fix javadoc for placeholderconfigurersupport | a78c12b8d3f5304665fa73a76cb01b8a7c744ca8 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License... | 1 |
Javascript | Javascript | fix uiexplorer tests (image loading failure) | 7f0071ae580f0b8d1fe4684d2ef60dde4a3f69fb | <ide><path>Examples/UIExplorer/js/ImageExample.js
<ide> var {
<ide> var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAQAAACSR7JhAAADtUlEQVR4Ac3YA2Bj6QLH0XPT1Fzbtm29tW3btm3bfLZtv7e2ObZnms7d8Uw098tuetPzrxv8wiISrtVudrG2JXQZ4VOv+qUfmqCGGl1mqLhoA52oZlb0mrjsnhKpgeUNEs91Z0pd1kvihA3ULGVHiQO2narKSHKkEMul... | 1 |
Mixed | Ruby | add a hidden_field on the file_field | 00b26532f05283d2b160308522d1bd2146d6ac18 | <ide><path>actionview/CHANGELOG.md
<ide>
<ide> *Angelo Capilleri*
<ide>
<add>* Add a `hidden_field` on the `file_field` to avoid raise a error when the only
<add> input on the form is the `file_field`.
<add>
<add> *Mauro George*
<add>
<add>
<ide> Please check [4-2-stable](https://github.com/rails/rails/bl... | 4 |
Go | Go | prevent tests from creating users on prod index | c914abaf15634d8039927176dfc5ff3c765f30d0 | <ide><path>integration/auth_test.go
<ide> package docker
<ide> import (
<ide> "crypto/rand"
<ide> "encoding/hex"
<add> "fmt"
<ide> "github.com/dotcloud/docker/auth"
<ide> "os"
<ide> "strings"
<ide> import (
<ide> func TestLogin(t *testing.T) {
<ide> os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcl... | 1 |
PHP | PHP | use array_key_exists in validator | 28a880b5b53023ab930b8e86fd2d52da6292b58e | <ide><path>laravel/validator.php
<ide> protected function validate_same($attribute, $value, $parameters)
<ide> {
<ide> $other = $parameters[0];
<ide>
<del> return isset($this->attributes[$other]) and $value == $this->attributes[$other];
<add> return array_key_exists($other, $this->attributes) and $value == $this-... | 1 |
Python | Python | fix mypy issues with ``test_snowflake.py`` | 3a82b90af28c78e603c48dc8b0920703755d4642 | <ide><path>tests/providers/snowflake/hooks/test_snowflake.py
<ide> import unittest
<ide> from copy import deepcopy
<ide> from pathlib import Path
<del>from typing import Dict, Union
<add>from typing import Dict
<ide> from unittest import mock
<ide>
<ide> import pytest
<ide>
<ide> _PASSWORD = 'snowflake42'
<ide>
<del... | 1 |
Javascript | Javascript | remove string literal from deepstrictequal | 33eb509df623d83f398176915b70c2bd6801a9f8 | <ide><path>test/parallel/test-zlib-from-concatenated-gzip.js
<ide> fs.createReadStream(pmmFileGz)
<ide> })
<ide> .on('data', (data) => pmmResultBuffers.push(data))
<ide> .on('finish', common.mustCall(() => {
<del> assert.deepStrictEqual(Buffer.concat(pmmResultBuffers), pmmExpected,
<del> ... | 1 |
Javascript | Javascript | add extra expectations and comments for clarity | 7fdd26e6f3cb265e0e05ef70e1a5796629a14605 | <ide><path>test/ng/directive/selectSpec.js
<ide> describe('select', function() {
<ide>
<ide> it('should not update selected property of an option element on digest with no change event',
<ide> function() {
<add> // ng-options="value.name for value in values"
<add> // ng-model="selected"
<ide> ... | 1 |
Python | Python | add sample_weight parameter to kerasclassifer | c6f81d393cc34f75583007379831a33d30b6d2e9 | <ide><path>keras/wrappers/scikit_learn.py
<ide> class KerasClassifier(BaseWrapper):
<ide> """Implementation of the scikit-learn classifier API for Keras.
<ide> """
<ide>
<del> def fit(self, x, y, **kwargs):
<add> def fit(self, x, y, sample_weight=None, **kwargs):
<ide> """Constructs a new model w... | 2 |
Ruby | Ruby | fix failing tests caused by | 4f39d897b3f3437e3f6982b2a8c28a6f9c4036d2 | <ide><path>activerecord/test/cases/persistence_test.rb
<ide> require 'models/owner'
<ide> require 'models/person'
<ide> require 'models/pet'
<add>require 'models/ship'
<ide> require 'models/toy'
<ide> require 'rexml/document'
<ide> | 1 |
Mixed | Javascript | drop the json to jsonp auto-promotion logic | e7b3bc488d01d584262e12a7c5c25f935d0d034b | <ide><path>src/ajax/jsonp.js
<ide> jQuery.ajaxSetup( {
<ide> } );
<ide>
<ide> // Detect, normalize options and install callbacks for jsonp requests
<del>jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
<add>jQuery.ajaxPrefilter( "jsonp", function( s, originalSettings, jqXHR ) {
<ide>
<ide>... | 4 |
PHP | PHP | update mailer to hold mailer profiles | ee00209d6b45bf6890dc164ba633d92e9d17386d | <ide><path>src/Mailer/Mailer.php
<ide> */
<ide> namespace Cake\Mailer;
<ide>
<add>use Cake\Core\Exception\Exception;
<add>use Cake\Core\StaticConfigTrait;
<ide> use Cake\Datasource\ModelAwareTrait;
<ide> use Cake\Event\EventListenerInterface;
<ide> use Cake\Mailer\Exception\MissingActionException;
<ide> use Cake\View... | 2 |
PHP | PHP | update param name in docblock | af1bf7fd1fb408ef25004dcd04402d4cc219c9d3 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function whereIntegerNotInRaw($column, $values, $boolean = 'and')
<ide> /**
<ide> * Add a "where null" clause to the query.
<ide> *
<del> * @param string|array $column
<add> * @param string|array $columns
<ide> * @param st... | 1 |
Mixed | Javascript | trim trailing whitespace from js files and readme | aa2de8cbd5fbcbc9314b143f9b6625fe26427b97 | <ide><path>README.md
<ide> that you'd normally have to do by hand. There are tasks that are common
<ide> to every web app; Ember.js does those things for you, so you can focus
<ide> on building killer features and UI.
<ide>
<del>- [Website](http://emberjs.com)
<del>- [Guides](http://emberjs.com/guides)
<del>- [API](... | 10 |
Python | Python | add missing import | b46bdce8d28a2773284cdab02956b7d494e2c1e1 | <ide><path>spacy/cli/vocab.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<add>from pathlib import Path
<ide> import plac
<ide> import json
<ide> import spacy | 1 |
Java | Java | improve support for @conditional on @configuration | 2e2e9b8dd0ecb113c86ec3a5d0cf87d4f6f72fd6 | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java
<ide> public class AnnotatedBeanDefinitionReader {
<ide>
<ide> private final BeanDefinitionRegistry registry;
<ide>
<del> private Environment environment;
<del>
<ide> private BeanNameGenerator beanNameG... | 14 |
Mixed | Go | add pull flag to force image pulling | 054e57a622e6a065c343806e7334920d17a03c5b | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> noCache := cmd.Bool([]string{"#no-cache", "-no-cache"}, false, "Do not use cache when building the image")
<ide> rm := cmd.Bool([]string{"#rm", "-rm"}, true, "Remove intermediate containers after a successful build")
... | 7 |
Python | Python | remove outdated localization to random.shuffle | 2707314760923f9f5996ed9f36aa3bf64ecc2bbf | <ide><path>celery/concurrency/asynpool.py
<ide>
<ide> import errno
<ide> import os
<del>import random
<ide> import select
<ide> import socket
<ide> import struct
<ide> def on_inqueue_close(fd, proc):
<ide> pass
<ide> self.on_inqueue_close = on_inqueue_close
<ide>
<del> def schedule_writ... | 1 |
Text | Text | remove confusing reference in governance doc | 15b46422645d1ed4e40bfa78930690f2b4f4010d | <ide><path>GOVERNANCE.md
<ide> Collaborators. All pull requests must be reviewed and accepted by a
<ide> Collaborator with sufficient expertise who is able to take full
<ide> responsibility for the change. In the case of pull requests proposed
<ide> by an existing Collaborator, an additional Collaborator is required
<d... | 1 |
Text | Text | simplify node versions to "0.10.x or above" | e0ab4b33f5c4116b423a46103922eb02b2184dc1 | <ide><path>docs/build-instructions/linux.md
<ide> Ubuntu LTS 12.04 64-bit is the recommended platform.
<ide> * OS with 64-bit or 32-bit architecture
<ide> * C++ toolchain
<ide> * [Git](http://git-scm.com/)
<del> * [node.js](http://nodejs.org/download/) (0.10.x or 0.12.x) or [io.js](https://iojs.org) (1.x or 2.x)... | 3 |
Ruby | Ruby | allow writing to certain var directories | 76a5ba6ae598ea0c6c204f3a30bc36dd3a423d67 | <ide><path>Library/Homebrew/cmd/test.rb
<ide> def test
<ide> sandbox.allow_write_temp_and_cache
<ide> sandbox.allow_write_log(f)
<ide> sandbox.allow_write_xcode
<add> sandbox.allow_write_path(HOMEBREW_PREFIX/"var/cache")
<add> sandbox.allow_write_path(HOMEBREW_P... | 1 |
Python | Python | fix tflongformer int dtype | c126a239bcea9c68453cf86045a5177afbe2be6c | <ide><path>src/transformers/models/led/modeling_tf_led.py
<ide> def _sliding_chunks_query_key_matmul(self, query, key, window_overlap):
<ide> )
<ide> first_chunk_mask = (
<ide> tf.tile(
<del> tf.range(chunks_count + 1)[None, :, None, None],
<add> tf.range(chunks... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.