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 |
|---|---|---|---|---|---|
Mixed | Go | repurpose the package and rename to useragent | cf8c0d0f56021fbea7bc89e378bb937b53aeca3b | <ide><path>pkg/requestdecorator/README.md
<del>This package provides helper functions for decorating a request with user agent
<del>versions, auth, meta headers.
<ide><path>pkg/requestdecorator/requestdecorator.go
<del>// Package requestdecorator provides helper functions to decorate a request with
<del>// user agent v... | 7 |
Ruby | Ruby | fix patching test for no-compat mode | 33befcf312e12496fc1a6b0df531f03d97dfe954 | <ide><path>Library/Homebrew/formula.rb
<ide> def stage
<ide> end
<ide>
<ide> def prepare_patches
<del> active_spec.add_legacy_patches(patches)
<add> active_spec.add_legacy_patches(patches) if respond_to?(:patches)
<ide>
<ide> patchlist.grep(DATAPatch) { |p| p.path = path }
<ide>
<ide><path>Library/Home... | 2 |
Text | Text | add romankl to collaborators | 52351430cf360913b09e626783d9c660f13016c4 | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [qard](https://github.com/qard) - **Stephen Belanger** <admin@stephenbelanger.com>
<ide> * [rlidwka](https://github.com/rlidwka) - **Alex Kocharin** <alex@kocharin.ru>
<ide> * [robertkowalski](https://github.com/... | 1 |
PHP | PHP | add support for tinytext, mediumtext and longtext | 2784faf8d4eb6924e3a22e7844412fb4fa6f78be | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn($column)
<ide> return ['type' => 'string', 'length' => $length];
<ide> }
<ide> if (strpos($col, 'text') !== false) {
<add> $lengthName = substr($col, 0, -4);
<add> $length = isset(Tab... | 12 |
Mixed | Text | fix some typos | 83880b0f0b26554f321129b834c547b385808c7e | <ide><path>CHANGELOG.md
<ide> * **lang:** Complete the Simplified Chinese translations (zn-CN.json) ([#4827](https://github.com/videojs/video.js/issues/4827)) ([98773dd](https://github.com/videojs/video.js/commit/98773dd))
<ide> * **lang:** Complete the Traditional Chinese translation (zh-CT.json) ([#4828](https://gith... | 4 |
Python | Python | fix multiple context manages in examples | 2bd78c39e33b90f788b1121b93b3b098c4c4af10 | <ide><path>examples/training/rehearsal.py
<ide> def main(model_name, unlabelled_loc):
<ide> pipe_exceptions = ["ner", "trf_wordpiecer", "trf_tok2vec"]
<ide> other_pipes = [pipe for pipe in nlp.pipe_names if pipe not in pipe_exceptions]
<ide> sizes = compounding(1.0, 4.0, 1.001)
<del> with nlp.disable_pip... | 3 |
Java | Java | add @requestbody tests | 9cc01fc185a70f56acd5adb5355ae09a44d614a7 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java
<ide> public boolean supportsParameter(MethodParameter parameter) {
<ide> }
<ide>
<ide> @Override
<del> public Mono<Object> resolveArgument(MethodParameter parameter, ModelMap model... | 2 |
Python | Python | fix distinct for oracle databases | 7813d2fb35cb636116186bddcb58644684ee2723 | <ide><path>rest_framework/filters.py
<ide> from django.core.exceptions import ImproperlyConfigured
<ide> from django.db import models
<ide> from django.utils import six
<add>from django.conf import settings
<ide> from rest_framework.compat import django_filters, guardian, get_model_name
<ide> from rest_framework.settin... | 1 |
Javascript | Javascript | fix special cases | 0f0062a71c6e6d9f7b29fb30af2880cb7c316318 | <ide><path>src/devtools/views/Components/SearchInput.js
<ide> export default function SearchInput(props: Props) {
<ide> onChange={handleTextChange}
<ide> onKeyDown={handleKeyDown}
<ide> onKeyPress={handleInputKeyPress}
<del> placeholder="Search (text or /regex/)"
<add> placeholder=... | 2 |
Javascript | Javascript | add deprecated rootelement property | 84c20d95d402cdb9aa9953d50dea863bb1d357a8 | <ide><path>src/text-editor-element.js
<ide> class TextEditorElement extends HTMLElement {
<ide> return this
<ide> }
<ide>
<add> get rootElement () {
<add> Grim.deprecate(dedent`
<add> The contents of \`atom-text-editor\` elements are no longer encapsulated
<add> within a shadow DOM boundary. Please... | 1 |
PHP | PHP | fix missing return tag | 4786f1bf013fcd0ad45fe6324fdec6abf0b6dfd0 | <ide><path>src/Console/Command.php
<ide> public function execute(Arguments $args, ConsoleIo $io)
<ide> *
<ide> * @param int $code The exit code to use.
<ide> * @throws \Cake\Console\Exception\ConsoleException
<add> * @return void
<ide> */
<ide> public function abort($code = self::CODE_ERROR)... | 1 |
Python | Python | allow multiple extra_packages in dataflow | 5d3a7eef30b30fa466d8173f13abe4c356d73aef | <ide><path>airflow/providers/google/cloud/hooks/dataflow.py
<ide> def _build_cmd(variables: Dict, label_formatter: Callable, project_id: str) -> L
<ide> "--runner=DataflowRunner",
<ide> "--project={}".format(project_id),
<ide> ]
<del> if variables is not None:
<del> for... | 3 |
Text | Text | remove util.promisify() content in readline.md | 059b8900093f7468a3598eb307b9842247b29ee7 | <ide><path>doc/api/readline.md
<ide> signal.addEventListener('abort', () => {
<ide> setTimeout(() => ac.abort(), 10000);
<ide> ```
<ide>
<del>If this method is invoked as it's util.promisify()ed version, it returns a
<del>Promise that fulfills with the answer. If the question is canceled using
<del>an `AbortController... | 1 |
Javascript | Javascript | extend spacer api | 73e89a2300a7dc894b98cad41876f8dde94767e2 | <ide><path>client/src/components/helpers/Spacer.js
<ide> import React from 'react';
<add>import PropTypes from 'prop-types';
<ide>
<del>const Spacer = () => (
<del> <div className='spacer' style={{ marginTop: '50px', marginBottom: '50px' }} />
<del>);
<add>const styles = { padding: '15px 0', height: '1px' };
<add>
<a... | 2 |
Text | Text | update react props guide article | e4ae577cd9f0f93da8eec37af88a669c395f674d | <ide><path>guide/english/react/props/index.md
<ide> title: Props
<ide> ---
<ide> ### What are the props?
<del>Props (short for properties) are the data passed into the component. They are immutable (read-only).
<add>Props (short for properties) are the data or functions passed into a component. They are immutable (read... | 1 |
Javascript | Javascript | remove typo orginalerror | 4a541e01a59c5d4c01b67e261e83246ed78833c8 | <ide><path>lib/HotModuleReplacement.runtime.js
<ide> module.exports = function() {
<ide> type: "self-accept-error-handler-errored",
<ide> moduleId: moduleId,
<ide> error: err2,
<del> orginalError: err, // TODO remove in webpack 4
<ide> originalError: err
<ide> });
<ide> ... | 1 |
Python | Python | add operation that renames tables | 6f667999e1186b8eaa9c86e4cbd80d5c0ba20576 | <ide><path>django/db/backends/schema.py
<ide> def alter_field(self, model, old_field, new_field, strict=False):
<ide> return self._alter_many_to_many(model, old_field, new_field, strict)
<ide> elif old_type is None or new_type is None:
<ide> raise ValueError("Cannot alter field %s into %... | 5 |
Javascript | Javascript | add an example with the two possible arguments | fc05f5e701f77012d54f87facb5a83d56996c7f1 | <ide><path>src/Angular.js
<ide> function isLeafNode (node) {
<ide> * @param {(Object|Array)=} destination Destination into which the source is copied. If
<ide> * provided, must be of the same type as `source`.
<ide> * @returns {*} The copy or updated `destination`, if `destination` was specified.
<add> *
<add> *... | 1 |
Ruby | Ruby | remove array#sample from core_ext | c52ce1dae2ca8b72732f92c84541a4b6bbc9da77 | <ide><path>activesupport/lib/active_support/core_ext/array.rb
<ide> require 'active_support/core_ext/array/conversions'
<ide> require 'active_support/core_ext/array/extract_options'
<ide> require 'active_support/core_ext/array/grouping'
<del>require 'active_support/core_ext/array/random_access'
<ide> require 'active_su... | 3 |
Text | Text | fix typo in documentation in flux todo list | 8882f19187df93551cf98a3c516754e3feb44894 | <ide><path>docs/docs/flux-todo-list.md
<ide> At a high level, the React component hierarchy of the app looks like this:
<ide> <TodoItem />
<ide> </ul>
<ide> </MainSection>
<add> </Header>
<ide>
<ide> </TodoApp>
<ide> ``` | 1 |
Javascript | Javascript | check document before shy test | 4c606ac2dc11bb68d28c5e4c10543811e0f89617 | <ide><path>packages/ember-views/lib/system/utils.js
<ide> // Internet Explorer prior to 9 does not allow setting innerHTML if the first element
<ide> // is a "zero-scope" element. This problem can be worked around by making
<ide> // the first node an invisible text node. We, like Modernizr, use ­
<del>var needsShy ... | 2 |
Javascript | Javascript | use correct comment format | ca7790158edcf931fc4b6658993efc4e2abf83ea | <ide><path>common/utils/polyvinyl.js
<ide> import castToObservable from '../app/utils/cast-to-observable.js';
<ide>
<ide>
<ide> // createFileStream(
<del>// files: List[ PolyVinyl ]
<add>// files: [...PolyVinyl]
<ide> // ) => Observable[...Observable[...PolyVinyl]]
<ide> export function createFileStream(files = [... | 1 |
Text | Text | add missing import | e67a38fc77c848ae6d34dfa539c3aaedd68687b2 | <ide><path>docs/templates/getting-started/sequential-model-guide.md
<ide> In the [examples folder](https://github.com/fchollet/keras/tree/master/examples)
<ide> ### Multilayer Perceptron (MLP) for multi-class softmax classification:
<ide>
<ide> ```python
<add>import keras
<ide> from keras.models import Sequential
<ide... | 1 |
Javascript | Javascript | ignore incompatible nodes on find() | 1169b5445691e1495354d235a3badf05240e3904 | <ide><path>src/jqLite.js
<ide> forEach({
<ide> },
<ide>
<ide> find: function(element, selector) {
<del> return element.getElementsByTagName(selector);
<add> if (element.getElementsByTagName) {
<add> return element.getElementsByTagName(selector);
<add> } else {
<add> return [];
<add> }
<ide> ... | 2 |
Text | Text | add solution d3challenges | 17be165d6648a5f069b0c5b2e7b9b63c7ebb06da | <ide><path>curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/add-a-tooltip-to-a-d3-element.english.md
<ide> tests:
<ide> ## Solution
<ide> <section id='solution'>
<ide>
<del>```js
<del>// solution required
<add>```html
<add><style>
<add> .bar:hover {
<add> fill: brown;
<add> }
<add></... | 25 |
Javascript | Javascript | correct the path in with-electron | a7baeb045e854597db610f6976251c5093560a87 | <ide><path>examples/with-electron/main/index.js
<ide> app.on('ready', async () => {
<ide> const url = isDev
<ide> ? 'http://localhost:8000/start'
<ide> : format({
<del> pathname: join(__dirname, '../renderer/start/index.html'),
<add> pathname: join(__dirname, '../renderer/start.html'),
<ide> p... | 1 |
Python | Python | avoid deprecation warning for f.tanh | b45e65efa0fbff2611ddd68e14fa75cacef3fe08 | <ide><path>src/transformers/modeling_mobilebert.py
<ide> def forward(self, hidden_states):
<ide> return first_token_tensor
<ide> else:
<ide> pooled_output = self.dense(first_token_tensor)
<del> pooled_output = F.tanh(pooled_output)
<add> pooled_output = torch.tanh(p... | 1 |
Ruby | Ruby | fix deprecation warnings and call super | 570bcdaa65987ac2f5cc84fdf83678cd5c0bb7d8 | <ide><path>actionview/test/template/template_test.rb
<ide> def find_template(*args)
<ide> end
<ide>
<ide> class Context < ActionView::Base
<del> def initialize
<add> def initialize(*)
<ide> super
<ide> @output_buffer = "original"
<ide> @virtual_path = nil
<ide> def render(locals = {})
<ide>... | 1 |
Ruby | Ruby | fetch artifacts with no-resume strategy | c1ba9975b8349c9eff2bf55bd4319c0bbe45dc73 | <ide><path>Library/Homebrew/dev-cmd/pr-pull.rb
<ide> require "tmpdir"
<ide> require "bintray"
<ide>
<add>class CurlNoResumeDownloadStrategy < CurlDownloadStrategy
<add> private
<add>
<add> def _fetch(url:, resolved_url:)
<add> curl("--location", "--remote-time", "--create-dirs", "--output", temporary_path, resolv... | 2 |
Python | Python | remove unicode dash in comment | 241b7ed631c051f15e94b1a421d45f04f6099c20 | <ide><path>keras/preprocessing/sequence.py
<ide> def make_sampling_table(size, sampling_factor=1e-5):
<ide> We assume that the word frequencies follow Zipf's law (s=1) to derive
<ide> a numerical approximation of frequency(rank):
<ide> frequency(rank) ~ 1/(rank * (log(rank) + gamma) + 1/2 - ... | 1 |
Ruby | Ruby | fix absolute symlink | 5241932b45d8d0897cb1af0f9c6dccf6c2250d29 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def fix_install_names(options = {})
<ide> end
<ide> end
<ide> end
<add>
<add> symlink_files.each do |file|
<add> link = file.readlink
<add> # Don't fix relative symlinks
<add> next unless link.absolute?
<add> if link.to_s.start_w... | 1 |
Python | Python | remove special casing of 0d in maskedarray.__str__ | 91b83ac6a9477bfb469e270b6e8634b597a3d1ac | <ide><path>numpy/ma/core.py
<ide> def __str__(self):
<ide>
<ide> """
<ide> if masked_print_option.enabled():
<del> f = masked_print_option
<del> if self is masked:
<del> return str(f)
<del> m = self._mask
<del> if m is nomask:
<add> ... | 1 |
Javascript | Javascript | add readline support for meta-d | e49be4768be8c84daca6c98a1aa344bc5065590e | <ide><path>lib/readline.js
<ide> Interface.prototype._ttyWrite = function (b) {
<ide> }
<ide> this.cursor = this.line.length;
<ide> this._refreshLine();
<add> } else if (b[1] === 100 && this.cursor < this.line.length) { // meta-d delete forward word
<add> next_word = this.line.slice(this.cursor, this.line.lengt... | 2 |
Text | Text | add graphwrap to third-party-packages.md | c69e2e4eaafd7270565f0ecab7635f8988bc0f6d | <ide><path>docs/community/third-party-packages.md
<ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque
<ide> * [drf-action-serializer][drf-action-serializer] - Serializer providing per-action fields config for use with ViewSets to prevent having to write multiple serializers.
<ide> * [... | 1 |
Python | Python | drop some else clauses in roll | 8d83ae93706d3486447a9b40908995b406178111 | <ide><path>numpy/core/numeric.py
<ide> def roll(a, shift, axis=None):
<ide> reshape = False
<ide> if n == 0:
<ide> return a
<del> else:
<del> shift %= n
<del> indexes = concatenate((arange(n-shift,n),arange(n-shift)))
<del> res = a.take(indexes, axis)
<del> if reshape:... | 1 |
Text | Text | add v3.16.2 to changelog.md | c279c7a794779349396ef46bb30ba302b1142b04 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#18688](https://github.com/emberjs/ember.js/pull/18688) / [#18621](https://github.com/emberjs/ember.js/pull/18621) Updates Glimmer-VM to v0.46
<ide>
<add>### v3.16.2 (February 10, 2020)
<add>
<add>- [#18721](https://github.com/emberjs/ember.js/pull/18721) [BUGFIX release] Backpo... | 1 |
Javascript | Javascript | remove unused variable | 39289c9dece88d87638344da5616c8df0ef4a05c | <ide><path>src/extras/geometries/ParametricGeometry.js
<ide> THREE.ParametricGeometry = function ( func, slices, stacks ) {
<ide> var faces = this.faces;
<ide> var uvs = this.faceVertexUvs[ 0 ];
<ide>
<del> var i, il, j, p;
<add> var i, j, p;
<ide> var u, v;
<ide>
<ide> var stackCount = stacks + 1; | 1 |
Go | Go | remove broken container check from image prune | 3aa4f7f0d71f04c5cc93d5e80cbdd47b0b5fdb7f | <ide><path>daemon/prune.go
<ide> import (
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/filters"
<ide> timetypes "github.com/docker/docker/api/types/time"
<add> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/layer"
<i... | 1 |
Text | Text | remove reference to using sudo for make files | 9d39c5c3841f459bde91b92eea21b2daa7cdc06e | <ide><path>guide/english/bash/index.md
<ide> That is because it is a convention to let the interactive shell know what kind o
<ide>
<ide> Though it is only executed if you run your script as an executable. For example, when you type `./scriptname.extension`, it will look at the top line to find out the interpreter, wh... | 1 |
Javascript | Javascript | add test for selection.empty | 2ed5801e72f8001faef46930ca7ae36778598c32 | <ide><path>test/core/selection-empty-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.empty");
<add>
<add>suite.addBatch({
<add> "select(body)": {
<add> topic: function() {
<add> ... | 1 |
Text | Text | add example for destructuring nested objects | 172ec835d7ae8c3d4409253d3f39e317b7db5e63 | <ide><path>guide/english/javascript/es6/destructuring/index.md
<ide> The examples above show the benefit of using the ES6 Destructuring Assignment.
<ide> You can also use Destructuring on objects using a similar syntax
<ide>
<ide> ```js
<del>const fullName = { first: "John", last: "Smith"};
<add>const fullName = {firs... | 1 |
Ruby | Ruby | determine llvm location programmatically | 4c6e23c28f66206ea4d5316f4ac0732901bcef60 | <ide><path>Library/Homebrew/brewkit.rb
<ide> end
<ide>
<ide> if MACOS_VERSION >= 10.6 or ENV['HOMEBREW_USE_LLVM']
<del> ENV['PATH'] = "/Developer/usr/llvm-gcc-4.2/bin:#{ENV['PATH']}"
<add> # you can install Xcode wherever you like you know.
<add> prefix = `/usr/bin/xcode-select -print-path`.chomp
<add> prefix = "/... | 1 |
Javascript | Javascript | improve loose assertion message | 1d859ef53224c982aee659d0e17b1e5747b19fa0 | <ide><path>lib/internal/assert.js
<ide> let white = '';
<ide>
<ide> const kReadableOperator = {
<ide> deepStrictEqual: 'Expected inputs to be strictly deep-equal:',
<del> notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:',
<ide> strictEqual: 'Expected inputs to be strictly equal:',
<add> d... | 2 |
Javascript | Javascript | adjust suspenselist cpu bound heuristic | 79572e34d18c67768c93b1a4d60703a5929363a3 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js
<ide> function initSuspenseListRenderState(
<ide> workInProgress.memoizedState = ({
<ide> isBackwards: isBackwards,
<ide> rendering: null,
<add> renderingStartTime: 0,
<ide> last: lastContentRow,
<ide> tail: tail,
<ide> ... | 5 |
PHP | PHP | add table name as default morph type | 5d58b0fddbe81e6e6589b294c48a71ce095183e3 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
<ide> public function getMorphClass()
<ide> return array_search(static::class, $morphMap, true);
<ide> }
<ide>
<add> if (Relation::$tableNameAsMorphType) {
<add> return $this->getTable();
<add> }
<add... | 3 |
Text | Text | add example of arrow function with no brackets | 2b265e34046777a78657f4b7b689a7ca0c2ffb47 | <ide><path>guide/english/javascript/es6/arrow-functions/index.md
<ide> let newOneWithOneParam = a => {
<ide> }
<ide> ```
<ide>
<add>When there is only one statement or operation in the function body, braces are optional and the result is returned or undefined.
<add>
<add>```javascript
<add>let a = 10;
<add>let newOneP... | 1 |
Text | Text | fix misleading language in vm docs | 8781e618432a5c5d42a0e898eff0122dd573fa9a | <ide><path>doc/api/vm.md
<ide> let code =
<ide> vm.runInThisContext(code)(require);
<ide> ```
<ide>
<del>*Note*: The `require()` in the above case shares the state with context it is
<del>passed from. This may introduce risks when untrusted code is executed, e.g.
<del>altering objects from the calling thread's conte... | 1 |
Text | Text | update readme to emphasize 'global batch size' | 841bf60b8bd39d103c723bb99a98686bc280e934 | <ide><path>official/transformer/v2/README.md
<ide> tensorboard --logdir=$MODEL_DIR
<ide> Users need to adjust `batch_size` and `num_gpus` to get good performance
<ide> running multiple GPUs.
<ide>
<add> **Note that:**
<add> when using multiple GPUs or TPUs, this is the global batch size for all
<add> devic... | 1 |
Java | Java | clarify beanfactory#containsbean javadoc | 10be0ef9e763d368a24a7ac466da50a2224c5d41 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/BeanFactory.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2011 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 2 |
Mixed | Text | add support for unitless tabsize/tab-size | 60e1f5a1032201381da551ed0a6dec8978b2c937 | <ide><path>docs/tips/06-style-props-value-px.ko-KR.md
<ide> React.render(<div style={divStyle}>Hello World!</div>, mountNode);
<ide>
<ide> 개발 하다보면 CSS 속성들이 단위 없이 그대로 유지되어야 할 때가 있을 겁니다. 아래의 프로퍼티들은 자동으로 "px"가 붙지 않는 속성 리스트 입니다:
<ide>
<add>- `boxFlex`
<add>- `boxFlexGroup`
<ide> - `columnCount`
<ide> - `fillOpacity`
<ide... | 3 |
Python | Python | restore inadvertent change to f2py | 96853238f9a848100ad9e651bb64c8b2c6d1443e | <ide><path>scipy/test/testing.py
<ide> def _get_all_method_names(cls):
<ide> names.append(n)
<ide> return names
<ide>
<add># for debug build--check for memory leaks during the test.
<add>class _SciPyTextTestResult(unittest._TextTestResult):
<add> def startTest(self, test):
<add> unitt... | 1 |
PHP | PHP | move getconfigloader into application instance | 415d36679d8077f6903db7e3faf2c16d131c96f1 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> use Illuminate\Http\Response;
<ide> use Illuminate\Routing\Route;
<ide> use Illuminate\Routing\Router;
<add>use Illuminate\Config\FileLoader;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\Support\Faca... | 2 |
Go | Go | remove solaris build-tag, simplify and gofumpt | de705907a54f6c20ec1fd2ea2f7c56d94d24dbcb | <ide><path>client/client_unix.go
<del>//go:build linux || freebsd || openbsd || netbsd || darwin || solaris || illumos || dragonfly
<del>// +build linux freebsd openbsd netbsd darwin solaris illumos dragonfly
<add>//go:build !windows
<add>// +build !windows
<ide>
<ide> package client // import "github.com/docker/docke... | 1 |
Javascript | Javascript | use a getter for candefineproperty check | d95a2239a88440bbaa3ba33817ea91e0bd0c958a | <ide><path>src/shared/utils/canDefineProperty.js
<ide> var canDefineProperty = false;
<ide> if (__DEV__) {
<ide> try {
<del> Object.defineProperty({}, 'x', {});
<add> Object.defineProperty({}, 'x', {get: function() {}});
<ide> canDefineProperty = true;
<ide> } catch (x) {
<ide> // IE will fail on defi... | 1 |
Python | Python | fix failing tests from | 2c18a3f3b3208e7e7bfa0bdd4496dd6e727918a3 | <ide><path>airflow/www/views.py
<ide> def recurse_nodes(task, visited):
<ide>
<ide> # avoid spaces to reduce payload size
<ide> data = htmlsafe_json_dumps(data, separators=(',', ':'))
<del> # escape slashes to avoid JSON parse error in JS
<del> data = data.replace('\\', '\\\\')
<ide>
<id... | 2 |
Ruby | Ruby | prefer keg curl over system on 10.6 | aa49da260082deb6d3ec3492d6c836e6ad709ba7 | <ide><path>Library/Homebrew/utils.rb
<ide> def quiet_system cmd, *args
<ide> end
<ide>
<ide> def curl *args
<del> curl = Pathname.new '/usr/bin/curl'
<add> brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl"
<add> curl = if MacOS.version <= "10.6" && brewed_curl.exist?
<add> brewed_curl
<add> else
<add> Pathna... | 1 |
Text | Text | fix typo in changelog | dde78060742506a89cf4b106400abd12bc78545e | <ide><path>CHANGELOG.md
<ide> Below is a summary of the user-facing changes to be found in the io.js v1.0.0 re
<ide> current _stable_ Node.js release, v0.10.35. At the time of the v1.0.0 release, the latest _unstable_
<ide> Node.js release is v0.11.14 with much progress made towards a v0.11.15 release. The io.js codeba... | 1 |
Ruby | Ruby | fix unscope for less than | c6e05d68400361921c4ba6f0888979e92a4a801b | <ide><path>activerecord/lib/active_record/relation/where_clause.rb
<ide> def invert_predicate(node)
<ide> def predicates_except(columns)
<ide> predicates.reject do |node|
<ide> case node
<del> when Arel::Nodes::Between, Arel::Nodes::In, Arel::Nodes::NotIn, Arel::Nodes::Equality, Arel::N... | 2 |
Javascript | Javascript | add number for schema info | f18989c712894bba13ebfb6dfb3f50fc44b0d12a | <ide><path>lib/WebpackOptionsValidationError.js
<ide> function formatSchema(schema, prevSchemas) {
<ide> return "string";
<ide> case "boolean":
<ide> return "boolean";
<add> case "number":
<add> return "number";
<ide> case "object":
<ide> if(schema.properties) {
<ide> var required = schema.required ... | 1 |
Text | Text | add digitalocean logo | b2995be4453e8d2d7367dac1d573258f2a59148f | <ide><path>README.md
<ide> Our Xserve ESXi boxes for CI are hosted by [MacStadium](https://www.macstadium.c
<ide>
<ide> Our Jenkins CI installation is hosted by [DigitalOcean](https://m.do.co/c/7e39c35d5581).
<ide>
<add>:
<ide> units: Positive integer, dimensionality of the output space.
<ide> activation: Activation function to use
<ide> (see [activations](../activations.md)).
<del> If you pass None, no activation is applied
<ad... | 1 |
Text | Text | remove outdated vagrant docs | 45eb4e0d80a7ccc97746c36a0bd308e5b5135af0 | <ide><path>contrib/vagrant-docker/README.md
<del># Vagrant integration
<del>
<del>Currently there are at least 4 different projects that we are aware of that deals
<del>with integration with [Vagrant](http://vagrantup.com/) at different levels. One
<del>approach is to use Docker as a [provisioner](http://docs.vagrantup... | 1 |
PHP | PHP | reference the correct interface method | 2399dabe64136ccb851a4e0f1370c32fda0100d2 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> protected function replaceRouteableParameters($parameters = array())
<ide> {
<ide> if ($parameter instanceof RouteableInterface)
<ide> {
<del> $parameter = $parameter->getRouteParameter();
<add> $parameter = $parameter->getRouteKey();
<ide> }
<id... | 1 |
Python | Python | update train_ner_standalone example | 027a5d8b75c74fe2ae27d21ecb1d4ca36ec23cb3 | <ide><path>examples/training/train_ner_standalone.py
<ide> https://www.lt.informatik.tu-darmstadt.de/fileadmin/user_upload/Group_LangTech/data/GermEval2014_complete_data.zip
<ide>
<ide> Developed for: spaCy 1.7.1
<del>Last tested for: spaCy 1.7.1
<add>Last tested for: spaCy 2.0.0a13
<ide> '''
<ide> from __future__ imp... | 1 |
Ruby | Ruby | use the reflection name instead of the accessor | d300256ca4dd8b6f921afe8ef2de05d7e9c084e7 | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def self.define_callbacks(model, reflection)
<ide> # Post.first.comments and Post.first.comments= methods are defined by this method...
<ide> def define_accessors(model, reflection)
<ide> mixin = model.generated_feature_me... | 2 |
PHP | PHP | move null casting tests to main model tests file | 11813cc991ae4871afdd08ee8b4e864740a230f0 | <ide><path>tests/Database/DatabaseEloquentCastingSupportsNullableTest.php
<del><?php
<del>
<del>use Illuminate\Database\Eloquent\Model;
<del>
<del>class DatabaseEloquentCastingSupportsNullableTest extends PHPUnit_Framework_TestCase {
<del>
<del> public function testCastingStringToInteger()
<del> {
<del> $model = new E... | 2 |
Ruby | Ruby | create variable only in the test that uses it | af31cf067242757b2005197b10a2dfbe6bb89184 | <ide><path>actionpack/test/template/form_helper_test.rb
<ide> def @post.to_param; '123'; end
<ide> @post.tags = []
<ide> @post.tags << Tag.new
<ide>
<del> @blog_post = Blog::Post.new("And his name will be forty and four.", 44)
<del>
<ide> @car = Car.new("#000FFF")
<ide> end
<ide>
<ide> def test_form_... | 1 |
Javascript | Javascript | add a few querystring benchmarks | 35ed79932c0d5adccb80ff7e734da41691a3cd00 | <ide><path>benchmark/querystring/querystring-parse.js
<add>var common = require('../common.js');
<add>var querystring = require('querystring');
<add>var v8 = require('v8');
<add>
<add>var bench = common.createBenchmark(main, {
<add> type: ['noencode', 'encodemany', 'encodelast'],
<add> n: [1e6],
<add>});
<add>
<add>f... | 2 |
Ruby | Ruby | improve docs for ar relation | 2c050e1808b996e6a0ff2e26981087d8c080fc48 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def explain
<ide> exec_explain(queries)
<ide> end
<ide>
<add> # Converts relation objects to Array.
<ide> def to_a
<ide> # We monitor here the entire execution rather than individual SELECTs
<ide> # because from the point of view ... | 1 |
PHP | PHP | apply fixes from styleci | fb8d38c41cd68bafc2b34ade348935e7380bf958 | <ide><path>src/Illuminate/Collections/Enumerable.php
<ide> public function whereNotInStrict($key, $values);
<ide> * Filter the items, removing any items that don't match the given type(s).
<ide> *
<ide> * @template TWhereInstanceOf
<add> *
<ide> * @param class-string<TWhereInstanceOf>|array<arr... | 2 |
Javascript | Javascript | add first pass at shader | 2131b112e74e04c764b5a6960b4a5760b4fb49bc | <ide><path>examples/js/loaders/LDrawLoader.js
<ide>
<ide> THREE.LDrawLoader = ( function () {
<ide>
<add> var optionalLineVertShader = /* glsl */`
<add> attribute vec3 optionalControl0;
<add> attribute vec3 optionalControl1;
<add> attribute vec3 point0;
<add> attribute vec3 point1;
<add>
<add> varying vec4 controlOut... | 1 |
Python | Python | add param_name to size_dict logs & tidy | 55ba31908a1216c1767463e3333aa94a6414e6d6 | <ide><path>src/transformers/image_processing_utils.py
<ide> def preprocess(self, images, **kwargs) -> BatchFeature:
<ide> raise NotImplementedError("Each image processor must implement its own preprocess method")
<ide>
<ide>
<add>VALID_SIZE_DICT_KEYS = ({"height", "width"}, {"shortest_edge"}, {"shortest_edge"... | 12 |
Ruby | Ruby | remove redundant tests method | 77e25a777a074bc77c7aefed914ff3dd5e667ab1 | <ide><path>actionpack/test/controller/send_file_test.rb
<ide> def test_send_file_without_content_disposition_header
<ide> end
<ide> end
<ide>
<del> tests SendFileWithActionControllerLive
<del>
<ide> def test_send_file_with_action_controller_live
<ide> @controller = SendFileWithActionControllerLive.new
<id... | 1 |
Java | Java | refine sourcefile record to class conversion | afac8dd8af1ed06e48bb79c5eb334a4d797ba1ae | <ide><path>spring-core-test/src/main/java/org/springframework/core/test/tools/SourceFile.java
<ide> import java.io.InputStreamReader;
<ide> import java.io.StringReader;
<ide> import java.nio.charset.StandardCharsets;
<add>import java.util.regex.Matcher;
<add>import java.util.regex.Pattern;
<ide>
<ide> import com.thoug... | 2 |
Python | Python | update gyp to 828ce09 | 96dffb12177570a1311e97df501142e56b606c02 | <ide><path>tools/gyp/pylib/gyp/common.py
<ide> def close(self):
<ide> return Writer()
<ide>
<ide>
<add>def EnsureDirExists(path):
<add> """Make sure the directory for |path| exists."""
<add> try:
<add> os.makedirs(os.path.dirname(path))
<add> except OSError:
<add> pass
<add>
<add>
<ide> def GetFlavor(param... | 12 |
Ruby | Ruby | remove whitespaces from empty line | 360b98f0618873e5c0a41f0a5e029868b8deadf9 | <ide><path>railties/test/generators/plugin_new_generator_test.rb
<ide> def test_passing_dummy_path_as_a_parameter
<ide> assert_file "spec/dummy/config/application.rb"
<ide> assert_no_file "test/dummy"
<ide> end
<del>
<add>
<ide> def test_creating_dummy_without_tests_but_with_dummy_path
<ide> run_gener... | 1 |
Javascript | Javascript | fix directive usage | 03d4bbc16f620d13ac509ab93cabbc77bbfc3f59 | <ide><path>src/Angular.js
<ide> var csp = function() {
<ide> * @name ngJq
<ide> *
<ide> * @element ANY
<del> * @param {string=} the name of the library available under `window`
<add> * @param {string=} ngJq the name of the library available under `window`
<ide> * to be used for angular.element
<ide> * @description... | 1 |
Python | Python | fix error when last shard is not assigned a batch | bf29843973dbe9d073f12ccd7cb8e5de9cc8423c | <ide><path>official/recommendation/data_async_generation.py
<ide> def _construct_records(
<ide> num_workers: Number of multiprocessing workers to use for negative
<ide> generation.
<ide> cache_paths: Paths object with information of where to write files.
<del> num_readers: The number of reader datasets... | 1 |
Text | Text | complete the webui readme with more infos | 6cbf768c97e7a46984f4c24a19788e1b520096ad | <ide><path>glances/outputs/static/README.md
<ide> static
<ide> |
<ide> |--- templates (bottle)
<ide> ```
<add>
<add>## Data
<add>
<add>Each plugin receives the data in the following format:
<add>
<add>* stats
<add>* views
<add>* isBsd
<add>* isLinux
<add>* isMac
<add>* isWindows | 1 |
PHP | PHP | fix docblock for metadatabag namespace | 2d7c8c8bc29ca32c0fd474f82be3f48b97e6d153 | <ide><path>src/Illuminate/Session/Store.php
<ide> class Store implements SessionInterface {
<ide> /**
<ide> * The meta-data bag instance.
<ide> *
<del> * @var \Symfony\Component\Session\Storage\MetadataBag
<add> * @var \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag
<ide> */
<ide> protected $met... | 1 |
Java | Java | remove all layout index adjustments | d3b93f75787267629c4033a5aa61b62d623f3c08 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> import android.graphics.RectF;
<ide> import android.util.SparseArray;
<ide> import android.util.SparseBooleanArray;
<del>import android.util.SparseIntArray;
<ide> import android.view.Menu;
<ide> import android.view.... | 4 |
Javascript | Javascript | add more examples | a82a62e5a674c3a229a304844905ea758dc7461e | <ide><path>src/ngMessageFormat/messageFormatService.js
<ide> * For more information, see:
<ide> * https://docs.google.com/a/google.com/document/d/1pbtW2yvtmFBikfRrJd8VAsabiFkKezmYZ_PbgdjQOVU/edit
<ide> *
<del> * ## Example
<add> * @example
<add> * ## Gender
<ide> *
<del> * <example name="ngMessageFormat-example" mo... | 1 |
Ruby | Ruby | add guard to broadcast | 711d232f9344173d6a3f63d5239fe9a41f10e9bc | <ide><path>actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb
<ide> def remove_subscriber(channel, subscriber)
<ide> end
<ide>
<ide> def broadcast(channel, message)
<del> list = @sync.synchronize { @subscribers[channel].dup }
<add> list = @sync.synchronize do
<add> r... | 2 |
Ruby | Ruby | exclude order by clause for exists? | 24ac36be7150f97ac0a61cf7cbe7d212097ef1a6 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def find_with_associations
<ide> end
<ide>
<ide> def construct_relation_for_exists(relation, conditions)
<del> relation = relation.except(:select, :distinct)._select!(ONE_AS_ONE).limit!(1)
<add> relation = relation.exc... | 2 |
Javascript | Javascript | implement meridiemparse and ispm in russian | 1c86ed64f45c231a708be658fbfb3bc68a71af3c | <ide><path>lang/ru.js
<ide> yy : relativeTimeWithPlural
<ide> },
<ide>
<del> // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
<add> meridiemParse: /ночи|утра|дня|вечера/i,
<add> isPM : function (input) {
<add> ... | 1 |
Javascript | Javascript | fix a markdown format typo | 29c8d46ea1c9b9d14a7f334b9c51fb219e614059 | <ide><path>Libraries/vendor/react/browser/eventPlugins/PanResponder.js
<ide> var PanResponder = {
<ide> * - `onPanResponderMove: (e, gestureState) => {...}`
<ide> * - `onPanResponderTerminate: (e, gestureState) => {...}`
<ide> * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
<del> * - '... | 1 |
PHP | PHP | apply fixes from styleci | 4861b82bd1395fdcddd2fab1ae728c05ba2aba55 | <ide><path>src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
<ide>
<ide> namespace Illuminate\Foundation\Providers;
<ide>
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Support\Facades\URL;
<ide> use Illuminate\Support\AggregateServiceProvider; | 1 |
Go | Go | add progressbar and time | ebc36b879d4197a9455b325b529da212539e180c | <ide><path>utils/jsonmessage.go
<ide> import (
<ide> "encoding/json"
<ide> "fmt"
<ide> "io"
<add> "strings"
<ide> "time"
<ide> )
<ide>
<ide> func (e *JSONError) Error() string {
<ide> }
<ide>
<ide> type JSONProgress struct {
<del> Current int `json:"current,omitempty"`
<del> Total int `json:"total,omitempty"`
<... | 2 |
Javascript | Javascript | fix relative path | 822e0af79af5a8fbc20fc0347fac2090719351bd | <ide><path>index.js
<ide> var fs = require("fs"),
<add> path = require("path"),
<ide> document = require("jsdom").jsdom("<html><head></head><body></body></html>"),
<ide> window = document.createWindow();
<ide>
<ide> CSSStyleDeclaration_prototype.setProperty = function(name, value, priority) {
<ide> };
<ide>... | 1 |
Javascript | Javascript | remove unneeded comma in list.js | e496dd255b259a256d89100f731632b9d04fe4e1 | <ide><path>docs/list.js
<ide> var list = {
<ide> [ "Loader", "api/loaders/Loader" ],
<ide> [ "MaterialLoader", "api/loaders/MaterialLoader" ],
<ide> [ "ObjectLoader", "api/loaders/ObjectLoader" ],
<del> [ "TextureLoader", "api/loaders/TextureLoader" ],
<add> [ "TextureLoader", "api/loaders/TextureLoader" ]... | 1 |
Text | Text | remove stray comma in url.md | 77364b04565415fddad38a66347aa1c231c0b949 | <ide><path>doc/api/url.md
<ide> myURL.hostname = 'example.com:82';
<ide> console.log(myURL.href);
<ide> // Prints https://example.com:81/foo
<ide>
<del>// Use, myURL.host to change the hostname and port
<add>// Use myURL.host to change the hostname and port
<ide> myURL.host = 'example.org:82';
<ide> console.log(myURL.... | 1 |
PHP | PHP | add support for checking checkboxes | 770bc7c471ab367168bb29462c89cc2ff1ee59f6 | <ide><path>src/View/Input/MultiCheckbox.php
<ide> public function render($data) {
<ide> $checkbox['escape'] = $data['escape'];
<ide>
<ide> if ($this->_isSelected($key, $data['val'])) {
<del> $checkbox['selected'] = true;
<add> $checkbox['checked'] = true;
<ide> }
<ide> if ($this->_isDisabled($key, $d... | 2 |
Javascript | Javascript | emit ipc messages on next tick | 87d682b69a2ed1d6b74215ee8fbf9af9d6674ee9 | <ide><path>lib/internal/child_process.js
<ide> function setupChannel(target, channel) {
<ide> }
<ide> chunks[0] = jsonBuffer + chunks[0];
<ide>
<del> var nextTick = false;
<ide> for (var i = 0; i < numCompleteChunks; i++) {
<ide> var message = JSON.parse(chunks[i]);
<ide>
<ide> function... | 2 |
Javascript | Javascript | replace `sanity` language in combinereducers | 7e745ce543baecb835173220e7bb51f17b19c875 | <ide><path>src/combineReducers.js
<ide> function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
<ide> }
<ide> }
<ide>
<del>function assertReducerSanity(reducers) {
<add>function assertReducerShape(reducers) {
<ide> Object.keys(reducers).forEach(key => {
<ide> const reducer = reducers[k... | 1 |
Javascript | Javascript | eliminate multicast test freebsd flakiness | b3313aa6039dd20034206f755bee88d06022514e | <ide><path>test/internet/test-dgram-multicast-multi-process.js
<ide> 'use strict';
<del>var common = require('../common'),
<del> assert = require('assert'),
<del> dgram = require('dgram'),
<del> util = require('util'),
<del> Buffer = require('buffer').Buffer,
<del> fork = require('child_process').fork,
<... | 1 |
PHP | PHP | remove ref to jshelper | bd0d13cb23ead62d28d1405fe169c1d7dd533de5 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListener {
<ide> * An array containing the names of helpers this controller uses. The array elements should
<ide> * not contain the "Helper" part of the class name.
<ide> *
<del> * Example: `public $helpers = array('Html', 'Js', 'Time', ... | 1 |
Text | Text | add returned values and options to stream.md | a2c0fcc0d8bc9bd4559089f1182b13a2ae7bb318 | <ide><path>doc/api/stream.md
<ide> added: v0.9.4
<ide> * `destination` {stream.Writable} The destination for writing data
<ide> * `options` {Object} Pipe options
<ide> * `end` {boolean} End the writer when the reader ends. Defaults to `true`.
<add>* Returns: {stream.Writable} making it possible to set up chains of pi... | 1 |
Text | Text | fix some translate error | 1859bc2eabfb2caa44d585ffaa0d78f4feb0d40f | <ide><path>guide/chinese/javascript/es6/let-and-const/index.md
<ide> ---
<ide> title: Let and Const
<del>localeTitle: 让和Const
<add>localeTitle: let 和 const
<ide> ---
<del>## 让
<add>## let
<ide>
<del>let类似于var但是有范围。 let只能在定义的块级别中访问。
<add>let类似于var,但是let有作用域。 let只能在定义的块级作用域中访问。
<ide> ```
<ide> if (true) {
<ide> let a ... | 1 |
Java | Java | update documentation todos | 0bb24f2922c57e6ba8869a2a443044c3670e1fba | <ide><path>spring-test/src/main/java/org/springframework/test/context/support/AbstractGenericWebContextLoader.java
<ide> import org.springframework.web.context.support.GenericWebApplicationContext;
<ide>
<ide> /**
<del> * TODO [SPR-5243] Document AbstractGenericWebContextLoader.
<add> * TODO [SPR-9864] Document Abstra... | 7 |
Text | Text | add v4.0.0-beta.10 to changelog | d320f79978c929c221d8224ec492400d176297e6 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.0.0-beta.10 (November 15, 2021)
<add>
<add>- [#19833](https://github.com/emberjs/ember.js/pull/19833) [CLEANUP] Remove deprecated array observers
<add>- [#19836](https://github.com/emberjs/ember.js/pull/19836) [CLEANUP] Turn `template-only-glimmer-compo... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.