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 | escape commands and paths | ef07687262716984db51c173a0378d1eb0664289 | <ide><path>README.md
<ide> end
<ide> ## Installation
<ide>
<ide> 1. Add `require "active_storage"` to config/application.rb.
<del>2. Run rails activestorage:install to create needed directories, migrations, and configuration.
<del>3. Configure the storage service in config/environments/* with `config.active_storage.se... | 1 |
Text | Text | fix imports in the lstm example | f8d8def510659a161da0bc8dffd2e5154e2baf6f | <ide><path>README.md
<ide> model.fit(X_train, Y_train, batch_size=32, nb_epoch=1)
<ide>
<ide> ```python
<ide> from keras.models import Sequential
<del>from keras.layers.core import Dense, Dropout, Activation, Embedding
<add>from keras.layers.core import Dense, Dropout, Activation
<add>from keras.layers.embeddings impo... | 1 |
Javascript | Javascript | remove legacypromise in src/core/worker.js | 87d38b0692489a2122cd744b4460c427abc51f5c | <ide><path>src/core/pdf_manager.js
<ide> var BasePdfManager = (function BasePdfManagerClosure() {
<ide>
<ide> updatePassword: function BasePdfManager_updatePassword(password) {
<ide> this.pdfDocument.xref.password = this.password = password;
<del> if (this.passwordChangedPromise) {
<del> this.pas... | 2 |
Python | Python | handle unset fields with 'many=true' | 5185cc934862a5ab13316c85402c12a6d744f94c | <ide><path>rest_framework/relations.py
<ide> from django.utils.translation import gettext_lazy as _
<ide>
<ide> from rest_framework.fields import (
<del> Field, empty, get_attribute, is_simple_callable, iter_options
<add> Field, SkipField, empty, get_attribute, is_simple_callable, iter_options
<ide> )
<ide> from... | 2 |
Ruby | Ruby | add homebrew_temp to testing environment | 3656f595089d9c6c5f0ece8e5a1cee59667d79d8 | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> HOMEBREW_CACHE_FORMULA = HOMEBREW_PREFIX.parent+'formula_cache'
<ide> HOMEBREW_CELLAR = HOMEBREW_PREFIX.parent+'cellar'
<ide> HOMEBREW_LOGS = HOMEBREW_PREFIX.parent+'logs'
<add>HOMEBREW_TEMP = Pathname.new(ENV.fetch('HOMEBREW_TEMP', '/tmp'))... | 1 |
Go | Go | make list of commands for help less static | 4f00b1020e8bf28d5d3dfb88730894888666fd9a | <ide><path>docker/flags.go
<ide> import (
<ide> "os"
<ide> "path/filepath"
<ide> "runtime"
<add> "sort"
<ide>
<ide> "github.com/docker/docker/opts"
<ide> "github.com/docker/docker/pkg/homedir"
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> )
<ide>
<add>type command struct {
<add> name string
<add>... | 1 |
Javascript | Javascript | add warnings for common root api mistakes | 8c4cd65cfaa4614bac7fd7783b4ec502a337eba3 | <ide><path>packages/react-dom/src/__tests__/ReactDOMRoot-test.js
<ide> describe('ReactDOMRoot', () => {
<ide> // Still works in the legacy API
<ide> ReactDOM.render(<div />, commentNode);
<ide> });
<add>
<add> it('warn if no children passed to hydrateRoot', async () => {
<add> expect(() =>
<add> Reac... | 2 |
Javascript | Javascript | remove ie8 specific branch | 4ebbd7e210a45619a953b5e4b0ceba0e2ece59e2 | <ide><path>src/Angular.js
<ide> function makeMap(str) {
<ide> }
<ide>
<ide>
<del>if (msie < 9) {
<del> nodeName_ = function(element) {
<del> element = element.nodeName ? element : element[0];
<del> return lowercase(
<del> (element.scopeName && element.scopeName != 'HTML')
<del> ? element.scopeName + ... | 1 |
Text | Text | add some kindness | ade701045f0f80399d99151e5583d4f86c68678e | <ide><path>CONTRIBUTING.md
<ide> Ruby on Rails is a volunteer effort. We encourage you to pitch in. [Join the team](http://contributors.rubyonrails.org)!
<ide>
<del>Read the [Contributing to Ruby on Rails](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) guide before submitting any code, it is a c... | 1 |
Javascript | Javascript | add missing spaces in concatenations | c9da05d37b6ed6beed5b4c5ecf7e72f556169e5a | <ide><path>test/parallel/test-child-process-default-options.js
<ide> child.stdout.on('data', function(chunk) {
<ide>
<ide> process.on('exit', function() {
<ide> assert.ok(response.includes('HELLO=WORLD'),
<del> 'spawn did not use process.env as default' +
<add> 'spawn did not use process.env as... | 3 |
Mixed | Go | allow git@ prefixes for any hosted git service | c7e4cc4a531b5337d64bda22df8553e646a96fe7 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> Supported formats are: bzip2, gzip and xz.
<ide> This will clone the GitHub repository and use the cloned repository as
<ide> context. The Dockerfile at the root of the
<ide> repository is used as Dockerfile. Note that you
<del>can specify an arbitrary Git repo... | 3 |
Javascript | Javascript | add @providesmodule annotations | a23a3c319c7452e5f58d38f067c22dae65d5b84b | <ide><path>Examples/Movies/MovieCell.js
<ide> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide> *
<ide> * @flow
<add> * @providesModule MovieCell
<ide> */
<ide> 'use strict';
<ide>
<ide><path>Examples/Movies/MovieScreen.js
<ide> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER D... | 127 |
Ruby | Ruby | support mailer tests using spec dsl | 58434e05fe828a89ac11dd4aa051bd1d5d1cfb09 | <ide><path>actionmailer/lib/action_mailer/test_case.rb
<ide> def mailer_class
<ide> end
<ide>
<ide> def determine_default_mailer(name)
<del> name.sub(/Test$/, '').constantize
<del> rescue NameError
<del> raise NonInferrableMailerError.new(name)
<add> mailer = determine... | 2 |
PHP | PHP | remove unneeded tests | 6bae9b5b2c60767d91ed18f198859998af4d81f4 | <ide><path>tests/Database/DatabaseMigrationMakeCommandTest.php
<ide> public function testBasicCreateGivesCreatorProperArgumentsWhenTableIsSet()
<ide> }
<ide>
<ide>
<del> public function testPackagePathsMayBeUsed()
<del> {
<del> $command = new DatabaseMigrationMakeCommandTestStub($creator = m::mock('Illuminate\Datab... | 3 |
Text | Text | add v3.7.2 to changelog.md | 45b1f2e0c40a563471f9b13bdb4c0f73fcd2639c | <ide><path>CHANGELOG.md
<ide> - [#17357](https://github.com/emberjs/ember.js/pull/17357) Allow notifyPropertyChange to be imported from @ember/object
<ide> - [#17413](https://github.com/emberjs/ember.js/pull/17413) Fix missing import in instance-initializer blueprint for ember-mocha
<ide>
<add>### v3.7.2 (January 22, ... | 1 |
Go | Go | update push to use mount blob endpoint | e9b590d85e9c622316b8be71004737f63e6b9503 | <ide><path>graph/push.go
<ide> func (s *TagStore) CmdPush(job *engine.Job) engine.Status {
<ide> return job.Errorf("Could not get tar layer: %s", err)
<ide> }
<ide>
<del> _, err = r.PutV2ImageBlob(remoteName, sumParts[0], manifestSum, utils.ProgressReader(arch, int(img.Size), job.Stdout, sf, false, utils.Trun... | 2 |
Text | Text | pass the resource to the url helper [ci skip] | 538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812 | <ide><path>guides/source/getting_started.md
<ide> it look as follows:
<ide> ```html+erb
<ide> <h1>Editing post</h1>
<ide>
<del><%= form_for :post, url: post_path(@post.id), method: :patch do |f| %>
<add><%= form_for :post, url: post_path(@post), method: :patch do |f| %>
<ide> <% if @post.errors.any? %>
<ide> <div ... | 1 |
Javascript | Javascript | fix large file downloads failing | 0f0af55a0aadf3ca1a960de1b6072f6f4175434e | <ide><path>lib/net.js
<ide> function afterWrite(status, handle, req, buffer) {
<ide> return;
<ide> }
<ide>
<del> timers.active(this);
<add> timers.active(self);
<ide>
<ide> self._pendingWriteReqs--;
<ide>
<ide><path>test/simple/test-net-write-slow.js
<add>// Copyright Joyent, Inc. and other Node contributo... | 2 |
Javascript | Javascript | add types to stats | f89b59919710252f1746606530ac3568c15daf6b | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> this.contextTimestamps = undefined;
<ide> /** @type {Set<string>=} */
<ide> this.compilationDependencies = undefined;
<add> /** @type {boolean} */
<add> this.needAdditionalPass = false;
<ide> /** @private @type {Map<Module, Callback[]>} */
<ide> ... | 3 |
Text | Text | fix typo in saving and loading usage docs | cc71ec901f26ae1c3bfb62b6bd776295200f418e | <ide><path>website/docs/usage/saving-loading.md
<ide> installed in the same environment – that's it.
<ide>
<ide> When you load a pipeline, spaCy will generally use its `config.cfg` to set up
<ide> the language class and construct the pipeline. The pipeline is specified as a
<del>list of strings, e.g. `pipeline = ["tag... | 1 |
Python | Python | fix long lines | 510e383a1e9332fa8e1c74847c8ee3948131c568 | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_lower_align(self):
<ide>
<ide> @pytest.mark.parametrize("dtype", ['d', 'f', 'int32', 'int64'])
<ide> def test_noncontiguous(self, dtype):
<del> data = np.array([-1.0, 1.0, -0.0, 0.0, 2.2251e-308, -2.5, 2.5, -6, 6,
<del> ... | 1 |
PHP | PHP | remove extra single quote | 5ab11510c4a2d03d41b97670595613722911c376 | <ide><path>src/Cache/Cache.php
<ide> public static function remember($key, $callable, $config = 'default') {
<ide> * Parses a DSN into a valid connection configuration
<ide> *
<ide> * This method allows setting a DSN using PEAR::DB formatting, with added support for drivers
<del> * in the SQLAlchemy format. The foll... | 5 |
Javascript | Javascript | use prettier config api | 052a5f27f35f453ee33a075df81bddf9ced7300a | <ide><path>.prettierrc.js
<add>const {esNextPaths} = require('./scripts/shared/pathsByLanguageVersion');
<add>
<add>module.exports = {
<add> bracketSpacing: false,
<add> singleQuote: true,
<add> jsxBracketSameLine: true,
<add> trailingComma: 'es5',
<add> printWidth: 80,
<add>
<add> overrides: [
<add> {
<add> ... | 2 |
Text | Text | add license report and scan status | 5acc5c53a2d35b2a7bec12b919fd2d27522bd5f6 | <ide><path>README.md
<ide>
<ide> [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]
<ide> [](https://c... | 1 |
Ruby | Ruby | remove redundant check for frozen keys on deep dup | 96c52a9d3c170b0bebdacba6e295153bc753afce | <ide><path>activesupport/lib/active_support/core_ext/object/deep_dup.rb
<ide> class Hash
<ide> def deep_dup
<ide> hash = dup
<ide> each_pair do |key, value|
<del> if (::String === key && key.frozen?) || ::Symbol === key
<add> if ::String === key || ::Symbol === key
<ide> hash[key] = value.de... | 1 |
Javascript | Javascript | expand selections on mouse drag | 5594c9d82f26f024895181ddc88d0dd0d396297f | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> }, clientPositionForCharacter(component, 3, 11)))
<ide> expect(editor.getSelectedScreenRange()).toEqual([[2, 0], [4, 0]])
<ide> })
<add>
<add> it('expands the last selection on drag', () => {
<add> ... | 2 |
PHP | PHP | add viewbuilder serializer | 4eecd3a901ebd67d67a7a4f4b10cd640c762f67a | <ide><path>src/Mailer/Email.php
<ide> protected function _getContentTypeCharset()
<ide> public function jsonSerialize()
<ide> {
<ide> $properties = [
<del> '_to', '_from', '_sender', '_replyTo', '_cc', '_bcc', '_subject', '_returnPath', '_readReceipt',
<del> '_template', '_layout',... | 4 |
PHP | PHP | use identifierexpression for join on clause | bea0655dc2f0287a25bc9980c8709b15d533af8f | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testSubqueryJoinClause()
<ide> $query = $this->getTableLocator()->get('Authors')->find();
<ide> $query
<ide> ->select(['Authors.id', 'total_articles' => $query->func()->count('articles.author_id')])
<del> ->leftJoin... | 1 |
Ruby | Ruby | add some tests for env.{append,prepend} behavior | 870e47e68ca5d2f9b1ceb1ead9cddd5ffbd951a6 | <ide><path>Library/Homebrew/test/test_ENV.rb
<ide> def test_with_build_environment_does_not_mutate_interface
<ide> assert_equal expected, @env.methods
<ide> end
<ide>
<add> def test_append_existing_key
<add> @env['foo'] = 'bar'
<add> @env.append 'foo', '1'
<add> assert_equal 'bar 1', @env['foo']
<add> ... | 1 |
Javascript | Javascript | add another test case | 9598f6484e9b05a3010c1648b20c94c745e4efa0 | <ide><path>test/Validation.test.js
<ide> describe("Validation", function() {
<ide> " })",
<ide> " ]"
<ide> ]
<add> }, {
<add> name: "enum",
<add> config: {
<add> entry: "a",
<add> devtool: true
<add> },
<add> message: [
<add> " - configuration.devtool should be one of these:",
<add> " st... | 1 |
Text | Text | add people to cc for async_wrap | 62eee49d92c6856b3f75f07febc2028a315caef3 | <ide><path>doc/onboarding-extras.md
<ide> | `src/node_crypto.*` | @nodejs/crypto |
<ide> | `test/*` | @nodejs/testing |
<ide> | `tools/eslint`, `.eslintrc` | @silverwind, @trott |
<add>| async_hooks | @nodejs/diagnostics |
<ide> | upgrading V8 | @nodejs/v8, @nodejs/post-mortem |
<ide> | upgrading npm | @fishrock123, @t... | 1 |
Javascript | Javascript | improve the description of err_invalid_arg_value | 3ec79216f9d2300faac2a4fe07e0ca92afd9dcb9 | <ide><path>lib/internal/errors.js
<ide> const { kMaxLength } = process.binding('buffer');
<ide> const { defineProperty } = Object;
<ide>
<ide> // Lazily loaded
<del>var util = null;
<add>var util_ = null;
<ide> var buffer;
<ide>
<add>function lazyUtil() {
<add> if (!util_) {
<add> util_ = require('util');
<add> ... | 2 |
Python | Python | fix owlvit torchscript tests | a64bcb564dbc2a6329235016613a888ca21d513b | <ide><path>src/transformers/models/owlvit/modeling_owlvit.py
<ide> def forward(
<ide>
<ide> class OwlViTForObjectDetection(OwlViTPreTrainedModel):
<ide> config_class = OwlViTConfig
<del> main_input_name = "pixel_values"
<ide>
<ide> def __init__(self, config: OwlViTConfig):
<ide> super().__init__(co... | 1 |
PHP | PHP | remove unnecessary imports | 8a6089af017c610e908885ed3f872945e76ae995 | <ide><path>src/I18n/RelativeTimeFormatter.php
<ide> */
<ide> namespace Cake\I18n;
<ide>
<del>use Cake\I18n\FrozenDate;
<del>use Cake\I18n\FrozenTime;
<del>
<ide> /**
<ide> * Helper class for formatting relative dates & times.
<ide> * | 1 |
Javascript | Javascript | remove lingering templatedata | 800b09465da06f54996893ea8e744bc3d3569cf3 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> function bind(property, options, preserveContext, shouldDisplay, valueNormalizer
<ide> lazyValue: lazyValue,
<ide> previousContext: currentContext,
<ide> isEscaped: !options.hash.unescaped,
<del> templateData: options.data,
<ide> templ... | 10 |
Ruby | Ruby | add include_hidden option to checkbox tag | 9fbb1767b5b072007678b1df2bd59dce17c37dc8 | <ide><path>actionpack/lib/action_view/helpers/tags/check_box.rb
<ide> def render
<ide> add_default_name_and_id(options)
<ide> end
<ide>
<del> hidden = hidden_field_for_checkbox(options)
<add> include_hidden = options.delete("include_hidden") { true }
<ide> checkbox =... | 2 |
Go | Go | move defaultshmsize in daemon pkg | 2969abc6c55a9ab126b90d0af4b67860b4103f3f | <ide><path>api/server/router/local/image.go
<ide> import (
<ide> "fmt"
<ide> "io"
<ide> "net/http"
<add> "strconv"
<ide> "strings"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> func (s *router) postBuild(ctx context.Context, w http.ResponseWriter, r *http.R
<ide> buildConfig.ForceRemove = httputils.BoolValue(r,... | 5 |
PHP | PHP | implement presence and equality attributes | 6c87be97ef0900da27603c793f61e4ac0535143c | <ide><path>lib/Cake/Test/Case/Utility/Set2Test.php
<ide> public static function articleData() {
<ide> ),
<ide> array(
<ide> 'Article' => array(
<del> 'id' => '3',
<add> 'id' => '2',
<ide> 'user_id' => '1',
<ide> 'title' => 'Second Article',
<ide> 'body' => 'Second Article Body',
<ide> p... | 2 |
Javascript | Javascript | remove variable redeclaration | ba81d152ec14c2cb190279be8d3a519e220e7872 | <ide><path>lib/repl.js
<ide> REPLServer.prototype.complete = function(line, callback) {
<ide> // list of completion lists, one for each inheritance "level"
<ide> var completionGroups = [];
<ide>
<del> var completeOn, match, filter, i, group, c;
<add> var completeOn, i, group, c;
<ide>
<ide> // REPL commands (... | 1 |
Text | Text | fix typo in image-optimization.md | 1231ddb001da4ca9b3377f3fc8b990a986bcff1f | <ide><path>docs/basic-features/image-optimization.md
<ide> Instead of optimizing images at build time, Next.js optimizes images on-demand,
<ide>
<ide> Images are lazy loaded by default. That means your page speed isn't penalized for images outside the viewport. Images load as they are scrolled into viewport.
<ide>
<d... | 1 |
Javascript | Javascript | add url validation for form | 3fc42b1ea8b5ada252796e8ba43fc776b996347f | <ide><path>client/src/components/settings/Certification.js
<ide> class CertificationSettings extends Component {
<ide> );
<ide>
<ide> renderProjectsFor = (certName, isCert) => {
<del> console.log(isCert);
<ide> const { username, isHonest, createFlashMessage, verifyCert } = this.props;
<ide> const { supe... | 1 |
Mixed | Python | adjust more arguments [ci skip] | c53b1433b9f54192dedc41919877e9e672641e31 | <ide><path>spacy/cli/convert.py
<ide> def convert_cli(
<ide> file_type: FileTypes = Opt("spacy", "--file-type", "-t", help="Type of data to produce"),
<ide> n_sents: int = Opt(1, "--n-sents", "-n", help="Number of sentences per doc (0 to disable)"),
<ide> seg_sents: bool = Opt(False, "--seg-sents", "-s", he... | 3 |
PHP | PHP | remove useless foreach | cb7efa7e1d265e2afc44ad375987ca093cea187a | <ide><path>src/Illuminate/Session/Store.php
<ide> public function all()
<ide> */
<ide> public function replace(array $attributes)
<ide> {
<del> foreach ($attributes as $key => $value)
<del> {
<del> $this->put($key, $value);
<del> }
<add> $this->put($attributes);
<ide> }
<ide>
<ide> /** | 1 |
Python | Python | use assertwarns and assertwarnsregex | 2a82e8518b8ff1c59f4715a6890bd69928aabc12 | <ide><path>celery/apps/worker.py
<ide> def run(self):
<ide> self.redirect_stdouts_to_logger()
<ide>
<ide> if getattr(os, "getuid", None) and os.getuid() == 0:
<del> warnings.warn(
<del> "Running celeryd with superuser privileges is discouraged!")
<add> warnings.warn... | 11 |
Javascript | Javascript | fix grabquestion on mobile | 835a47828229db7dd5d8d78642466389bcd8e546 | <ide><path>common/app/routes/Hikes/flux/Actions.js
<ide> export default Actions({
<ide> },
<ide>
<ide> grabQuestion(e) {
<del> const { pageX, pageY } = e;
<add> let { pageX, pageY, touches } = e;
<add> if (touches) {
<add> e.preventDefault();
<add> // these re-assigns the values of pageX, pageY ... | 1 |
Ruby | Ruby | remove unused table | 531063543b99c02e69470e39b3eee677aa85e66f | <ide><path>activerecord/test/schema/postgresql_specific_schema.rb
<ide> end
<ide> end
<ide>
<del> begin
<del> execute <<_SQL
<del> CREATE TABLE postgresql_xml_data_type (
<del> id SERIAL PRIMARY KEY,
<del> data xml
<del> );
<del>_SQL
<del> rescue #This version of PostgreSQL either has no XML sup... | 1 |
Python | Python | add a comment, use a better variable name | e1c634d03eae0261b4a71cf5cb4693de13f9fdf4 | <ide><path>libcloud/storage/drivers/cloudfiles.py
<ide>
<ide> CDN_HOST = 'cdn.clouddrive.com'
<ide> API_VERSION = 'v1.0'
<add>
<add># Keys which are used to select a correct endpoint from the service catalog.
<ide> INTERNAL_ENDPOINT_KEY = 'internalURL'
<ide> PUBLIC_ENDPOINT_KEY = 'publicURL'
<ide>
<ide> def __init__(... | 1 |
PHP | PHP | add new error pages | 2265a8c9a110679c041da2f9bbe407e732e49071 | <ide><path>src/Illuminate/Foundation/Exceptions/views/403.blade.php
<add>@extends('errors::layout')
<add>
<add>@section('code', '403')
<add>@section('title', 'Unauthorized')
<add>
<add>@section('image')
<add><div style="background-image: url('/svg/403.svg');" class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-c... | 8 |
PHP | PHP | deprecate $autorender property | c8f5aff1e42fc983a9c344fab7c0261c819ae938 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListenerInterface, EventDispatcherInterface
<ide> * after action logic.
<ide> *
<ide> * @var bool
<add> * @deprecated 3.5.0 Use enableAutoRender()/disableAutoRender() and isAutoRenderEnabled() instead.
<ide> */
<ide>... | 1 |
Go | Go | improve testservicelogs for the goroutine issue | f8a93d0c9d157dddc4e4d4d9c43a6fe7c7c0c242 | <ide><path>integration-cli/docker_cli_service_logs_experimental_test.go
<ide> func (s *DockerSwarmSuite) TestServiceLogs(c *check.C) {
<ide>
<ide> d := s.AddDaemon(c, true, true)
<ide>
<del> name := "TestServiceLogs"
<add> // we have multiple services here for detecting the goroutine issue #28915
<add> services := m... | 1 |
Ruby | Ruby | pass missing name attribute to execute_hook | e15583c32e292acdd595dbf137d1c7cb0ea73e58 | <ide><path>activesupport/lib/active_support/lazy_load_hooks.rb
<ide> def self.extended(base) # :nodoc:
<ide> # * <tt>:run_once</tt> - Given +block+ will run only once.
<ide> def on_load(name, options = {}, &block)
<ide> @loaded[name].each do |base|
<del> execute_hook(base, options, block)
<add> ... | 2 |
Javascript | Javascript | add position to picker onvaluechange's call | b454d31ab8d778c393a3a99869c50d1967baaaad | <ide><path>Libraries/Components/Picker/PickerAndroid.android.js
<ide> var PickerAndroid = React.createClass({
<ide> var position = event.nativeEvent.position;
<ide> if (position >= 0) {
<ide> var value = this.props.children[position].props.value;
<del> this.props.onValueChange(value);
<add> ... | 2 |
Javascript | Javascript | fix sky shader on android/s6 | e62a212bcd32fa063bd6a03746ba9a3b7213a9a7 | <ide><path>examples/js/SkyShader.js
<ide> THREE.ShaderLib[ 'sky' ] = {
<ide>
<ide> "float sunIntensity(float zenithAngleCos)",
<ide> "{",
<del> "return EE * max(0.0, 1.0 - exp(-((cutoffAngle - acos(zenithAngleCos))/steepness)));",
<add> // This function originally used `exp(n)`, but it returns an incorrect valu... | 1 |
Ruby | Ruby | define the test_defined? method dynamically | 281646b0895de6d1f8404730d1b94d4f90700161 | <ide><path>Library/Homebrew/formula.rb
<ide> def test
<ide> end
<ide>
<ide> def test_defined?
<del> not self.class.instance_variable_get(:@test_defined).nil?
<add> false
<ide> end
<ide>
<ide> protected
<ide> def self.method_added method
<ide> when :brew
<ide> raise "You cannot override Formula... | 1 |
Text | Text | fix the syntax error in doc tutorial | dde5e02c019ba75e7fd25a06ab449d4524f2f948 | <ide><path>docs/Tutorial.md
<ide> class AwesomeProject extends Component {
<ide> </View>
<ide> );
<ide> }
<del>});
<add>}
<ide>
<ide> var styles = StyleSheet.create({
<ide> container: { | 1 |
Mixed | Text | improve use_sha1_digests deprecation message | a03a2c4188bb7370fb24418488776157a59dfac7 | <ide><path>activesupport/CHANGELOG.md
<ide>
<ide> *Adrianna Chang*
<ide>
<add>* Allow the digest class used to generate non-sensitive digests to be configured with `config.active_support.hash_digest_class`.
<add>
<add> `config.active_support.use_sha1_digests` is deprecated in favour of `config.active_support... | 4 |
Python | Python | fix model names in conftest (see ) | b8ef9c1000696541df4366bfaacfdf71938595db | <ide><path>spacy/tests/conftest.py
<ide> 'it', 'nb', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'tr', 'ar', 'xx']
<ide>
<ide> _models = {'en': ['en_core_web_sm'],
<del> 'de': ['de_core_news_md'],
<add> 'de': ['de_core_news_sm'],
<ide> 'fr': ['fr_core_news_sm'],
<del> 'xx... | 1 |
Javascript | Javascript | make nested focus work as expected | c73ab39c1f5f466991b97c9e0c782910e3b1cf37 | <ide><path>packages/react-events/src/Focus.js
<ide> function createFocusEvent(
<ide> }
<ide>
<ide> function dispatchFocusInEvents(
<del> event: null | ReactResponderEvent,
<ide> context: ReactResponderContext,
<ide> props: FocusProps,
<ide> state: FocusState,
<ide> ) {
<del> if (event != null) {
<del> const... | 2 |
PHP | PHP | put array helper tests in correct function | 5493147220256090fd510cb424fb870911c28638 | <ide><path>tests/Support/SupportHelpersTest.php
<ide> public function testArrayPluck()
<ide> public function testArrayExcept()
<ide> {
<ide> $array = array('name' => 'taylor', 'age' => 26);
<del> $this->assertEquals(array('name' => 'taylor'), array_only($array, array('name')));
<add> $this->assertEquals(array('ag... | 1 |
PHP | PHP | improve http\redirectresponse test coverage | 663a586c79048051dcd394ceda9965dce60d3d99 | <ide><path>tests/Http/HttpResponseTest.php
<ide> public function testGetOriginalContent()
<ide> $response->setContent($arr);
<ide> $this->assertTrue($arr === $response->getOriginalContent());
<ide> }
<add>
<add>
<add> public function testHeaderOnRedirect()
<add> {
<add> $response = new RedirectResponse('foo.bar... | 1 |
Ruby | Ruby | pass lookup context to the layout handlers | 1cf3878927c086828d7a3010012334859c98d643 | <ide><path>actionview/lib/action_view/layouts.rb
<ide> def _write_layout_method # :nodoc:
<ide> end
<ide>
<ide> class_eval <<-RUBY, __FILE__, __LINE__ + 1
<del> def _layout(formats)
<add> def _layout(lookup_context, formats)
<ide> if _conditional_layout?
<ide> ... | 2 |
Javascript | Javascript | add expect to globalcontext | 37e002cd38dda8ff47f58a87ba35c7a206819fbb | <ide><path>test/ConfigTestCases.test.js
<ide> describe("ConfigTestCases", () => {
<ide> }
<ide>
<ide> const globalContext = {
<del> console: console
<add> console: console,
<add> expect: expect
<ide> };
<ide>
<ide> function _require(currentDirectory, module) { | 1 |
Text | Text | fix minor text issues in stream.md | 54e29221c35839cdd58cac3c05c73e9e9d8f4170 | <ide><path>doc/api/stream.md
<ide> There are four fundamental stream types within Node.js:
<ide> * [`Transform`][] - `Duplex` streams that can modify or transform the data as it
<ide> is written and read (for example, [`zlib.createDeflate()`][]).
<ide>
<del>Additionally this module includes the utility functions [pi... | 1 |
Text | Text | fix syntax + link to community page | 78528742f169fb9481865aa25726ceca5499e036 | <ide><path>README.md
<ide> At some point in the future, you'll be able to seamlessly move from pre-training
<ide> 12. **[T5](https://github.com/google-research/text-to-text-transfer-transformer)** (from Google AI) released with the paper [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer... | 1 |
Python | Python | fix gpu training for textcat. closes | f77bf2bdb1b62b97e9582fcc14d4550448a6340d | <ide><path>spacy/_ml.py
<ide> def build_bow_text_classifier(nr_class, ngram_size=1, exclusive_classes=False,
<ide> no_output_layer=False, **cfg):
<ide> with Model.define_operators({">>": chain}):
<ide> model = (
<del> extract_ngrams(ngram_size, attr=ORTH)
<del> >> with_cpu(Mod... | 1 |
Python | Python | fix customdata on azure arm | c23bbba04310fac656a74f79fbf3be09eb7a86b8 | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide> def create_node(self,
<ide>
<ide> if ex_customdata:
<ide> data["properties"]["osProfile"]["customData"] = \
<del> base64.b64encode(ex_customdata)
<add> base64.b64encode(ex_customdata.encode()).decode()
<ide>
<ide>... | 1 |
PHP | PHP | use $this instead of parent | 50357d8bab3c43ac6b76a82038847c1061bf21c6 | <ide><path>app/Providers/AuthServiceProvider.php
<ide> class AuthServiceProvider extends ServiceProvider
<ide> */
<ide> public function boot(GateContract $gate)
<ide> {
<del> parent::registerPolicies($gate);
<add> $this->registerPolicies($gate);
<ide>
<ide> //
<ide> } | 1 |
Go | Go | remove deadlock in containerwait | 4d2d2ea39336aade783c5c415b83d129bdd339bb | <ide><path>client/container_wait.go
<ide> func (cli *Client) ContainerWait(ctx context.Context, containerID string, condit
<ide> }
<ide>
<ide> resultC := make(chan container.ContainerWaitOKBody)
<del> errC := make(chan error)
<add> errC := make(chan error, 1)
<ide>
<ide> query := url.Values{}
<ide> query.Set("con... | 1 |
Text | Text | add program in c to show variable | 8e843dc35207c598953d801713d96e3c3f3878a1 | <ide><path>guide/english/c/variables/index.md
<ide> We get `15.300000`. So, say we just want two places after the decimal to give us
<ide> * Variables are created in the following format: `datatype variable_name = number`.
<ide> * Format specifiers allow for variables to be printed.
<ide> * The equals sign `=` allows f... | 1 |
PHP | PHP | add outline of tests for encryptedcookiemiddleware | 87271cf2472dc37b6c5f5bee66c44d68e2ed9405 | <ide><path>src/Http/Middleware/EncryptedCookieMiddleware.php
<ide> protected function encodeCookies(Response $response)
<ide> $cookies = $response->getCookieCollection();
<ide> foreach ($cookies as $cookie) {
<ide> if (in_array($cookie->getName(), $this->cookieNames, true)) {
<del> ... | 2 |
PHP | PHP | close directory handle to prevent locking issues | f05e227cd8a93c907a26296a8a46a91c0817c676 | <ide><path>src/Cache/Engine/FileEngine.php
<ide> protected function _clearDirectory($path, $now, $threshold)
<ide> //@codingStandardsIgnoreEnd
<ide> }
<ide> }
<add>
<add> $dir->close();
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | fix lint errors | 3d40f55747fd905a61393d2630377e7eead4fd69 | <ide><path>src/main-process/main.js
<ide> if (typeof snapshotResult !== 'undefined') {
<del> snapshotResult.setGlobals(global, process, global, {}, require)
<add> snapshotResult.setGlobals(global, process, global, {}, require) // eslint-disable-line no-undef
<ide> }
<ide>
<ide> const startTime = Date.now()
<ide><pat... | 3 |
Javascript | Javascript | upgrade importparserplugin to es6 | ee24fb8ddd8282f98c6eaa19cdb46e4ba334dade | <ide><path>lib/dependencies/ImportParserPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ImportContextDependency = require("./ImportContextDependency");
<del>var ImportDependenciesBlock = require("./ImportDependenciesBlock");
<del>var ... | 1 |
Javascript | Javascript | add protractor test to example | d18172625af3f8e02673b9e8bf6349052685681d | <ide><path>src/ng/directive/input.js
<ide> var minlengthDirective = function() {
<ide> * <textarea ng-model="list" ng-list=" " ng-trim="false"></textarea>
<ide> * <pre>{{ list | json }}</pre>
<ide> * </file>
<add> * <file name="protractor.js" type="protractor">
<add> * it("should split the text by ... | 1 |
PHP | PHP | fix code style and annotations | cc187617026203eb59dbf4a9cbb86830f820f58a | <ide><path>src/Database/Connection.php
<ide> use Cake\Database\Log\QueryLogger;
<ide> use Cake\Database\Retry\ReconnectStrategy;
<ide> use Cake\Database\Schema\CachedCollection;
<del>use Cake\Database\Schema\Collection as SchemaCollection;
<ide> use Cake\Database\Schema\CollectionInterface as SchemaCollectionInterface;... | 2 |
Text | Text | fix typo in http.md | e995a33c7661f0774f5f26234586d268b9d142af | <ide><path>doc/api/http.md
<ide> There are a few special headers that should be noted.
<ide> * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
<ide> the server should be persisted until the next request.
<ide>
<del>* Sending a 'Content-length' header will disable the default chunked enc... | 1 |
Text | Text | update tutorial to django 2.0 routing syntax | fc2143207b985e16cf408d214e1cc1cf2f4eff28 | <ide><path>docs/tutorial/1-serialization.md
<ide> We'll also need a view which corresponds to an individual snippet, and can be us
<ide>
<ide> Finally we need to wire these views up. Create the `snippets/urls.py` file:
<ide>
<del> from django.conf.urls import url
<add> from django.urls import path
<ide> fr... | 7 |
Go | Go | fix dead lock in volume store dereference | f5310652d30e72fe88a3edc70b2911397c28b7e4 | <ide><path>volume/store/store.go
<ide> func (s *VolumeStore) Dereference(v volume.Volume, ref string) {
<ide> defer s.locks.Unlock(v.Name())
<ide>
<ide> s.globalLock.Lock()
<add> defer s.globalLock.Unlock()
<ide> refs, exists := s.refs[v.Name()]
<ide> if !exists {
<ide> return
<ide> func (s *VolumeStore) Derefer... | 1 |
Python | Python | improve fabfile, removing fabtools dependency | 74d5d398f881a9a8c91aa9e96ab913b36832d9dc | <ide><path>fabfile.py
<ide> # coding: utf-8
<ide> from __future__ import unicode_literals, print_function
<ide>
<add>import contextlib
<add>from pathlib import Path
<ide> from fabric.api import local, lcd, env, settings, prefix
<del>from fabtools.python import virtualenv
<ide> from os import path, environ
<ide>
<ide>... | 1 |
Javascript | Javascript | simplify "each" stylesheet iteration test | fcb6c4d1d6552c7e54df16a36b171858bdf0553f | <ide><path>test/unit/core.js
<ide> test("jQuery.each(Object,Function)", function() {
<ide> jQuery.each( document.styleSheets, function() {
<ide> i++;
<ide> });
<del> equal( i, 2, "Iteration over document.styleSheets" );
<add> equal( i, document.styleSheets.length, "Iteration over document.styleSheets" );
<ide> });
... | 1 |
Java | Java | avoid mimetype garbage creation | ba8849dda3b22e33588734ec2aea9e4457070e94 | <ide><path>spring-core/src/main/java/org/springframework/util/MimeType.java
<ide> public class MimeType implements Comparable<MimeType>, Serializable {
<ide>
<ide> private final Map<String, String> parameters;
<ide>
<add> private String mimetype;
<add>
<ide>
<ide> /**
<ide> * Create a new {@code MimeType} for th... | 3 |
Go | Go | fix containerd proto for connection | 6889c3276c6895a8440dc8883b8cd608793199f3 | <ide><path>integration-cli/docker_cli_daemon_experimental_test.go
<ide> func (s *DockerDaemonSuite) TestDaemonRestartWithKilledRunningContainer(t *check
<ide> }
<ide>
<ide> // kill the container
<del> runCmd := exec.Command(ctrBinary, "--address", "/var/run/docker/libcontainerd/docker-containerd.sock", "containers",... | 3 |
Go | Go | use correct type for containerexecattach | 5fee8bddfeb9b268f3e0b3c91e0932ee9a5eff83 | <ide><path>client/container_exec.go
<ide> func (cli *Client) ContainerExecStart(ctx context.Context, execID string, config
<ide> // It returns a types.HijackedConnection with the hijacked connection
<ide> // and the a reader to get output. It's up to the called to close
<ide> // the hijacked connection by calling types... | 2 |
PHP | PHP | update doc blocks for cakephp/cakephp | 0da3c4c5f67ea5f1efa4b72e5590ec0e878ce8d6 | <ide><path>src/Routing/DispatcherFilter.php
<ide> * When the above filter is connected to a dispatcher it will only fire
<ide> * its `beforeDispatch` and `afterDispatch` methods on requests that start with `/blog`.
<ide> *
<add> * The for condition can also be a regular expression by using the `preg:` prefix:
<add> ... | 1 |
Python | Python | add field == value | 2c92670771061f7eb63588494032cb34cf4958bb | <ide><path>glances/plugins/glances_plugin.py
<ide> def get_stats_value(self, item, value):
<ide> if not isinstance(self.stats, list):
<ide> return None
<ide> else:
<del> if value.isdigit():
<add> if not isinstance(value, int) and value.isdigit():
<ide> v... | 1 |
Text | Text | move blur example from step 34 to step 35 rothko | c356ecfa29728686b6e959780461e73dd2a64148 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998c.md
<ide> The colors and shapes of your painting are too sharp to pass as a Rothko.
<ide>
<ide> Use the `filter` property to `blur` the painting by `2px` in the `.canvas` e... | 2 |
Python | Python | fix lint issues | c4e0ba88dfdcbad4a8600ca227bb00ab00262bb0 | <ide><path>numpy/distutils/ccompiler_opt.py
<ide> class _Config:
<ide> VSX3 = dict(interest=3, implies="VSX2", implies_detect=False),
<ide> # IBM/Z
<ide> ## VX(z13) support
<del> VX = dict(interest=1, headers="vecintrin.h"),
<add> VX = dict(interest=1, headers="vecintrin.h"),
<ide... | 2 |
Javascript | Javascript | make filerecoveryservice async | 0390548e2c569277a5ed4590f9b4966e599967b2 | <ide><path>spec/main-process/file-recovery-service.test.js
<del>/** @babel */
<del>
<del>import {dialog} from 'electron'
<del>import FileRecoveryService from '../../src/main-process/file-recovery-service'
<del>import fs from 'fs-plus'
<del>import sinon from 'sinon'
<del>import {escapeRegExp} from 'underscore-plus'
<add... | 7 |
Javascript | Javascript | use slab allocator | 7651228ab2149c252eaa3ed7ad3e050deb005d16 | <ide><path>lib/tls.js
<ide> function checkServerIdentity(host, cert) {
<ide> exports.checkServerIdentity = checkServerIdentity;
<ide>
<ide>
<add>
<add>function SlabBuffer() {
<add> this.create();
<add>};
<add>
<add>
<add>SlabBuffer.prototype.create = function create() {
<add> this.isFull = false;
<add> this.pool =... | 1 |
Javascript | Javascript | convert `imageurisource` to interface | 123d184944ae6c8255c5c615e062df3d39bf5a66 | <ide><path>Libraries/Image/ImageSource.js
<ide> * This type is intentinoally inexact in order to permit call sites that supply
<ide> * extra properties.
<ide> */
<del>export type ImageURISource = $ReadOnly<{
<add>export interface ImageURISource {
<ide> /**
<ide> * `uri` is a string representing the resource ide... | 1 |
Ruby | Ruby | fix html sanitizer allowed_css_properties comment | 74f9bdd215f59386ed89faf9d66b7018ce3381f0 | <ide><path>actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
<ide> class WhiteListSanitizer < Sanitizer
<ide> self.allowed_protocols = Set.new(%w(ed2k ftp http https irc mailto news gopher nntp telnet webcal xmpp callto
<ide> feed svn urn aim rsync tag ssh sftp rtsp afs))
<ide>
<del... | 1 |
Python | Python | remove deprecated function from app.log.logging | 5a0c45857640f2415567736ad7ad2b7ae69e1304 | <ide><path>celery/app/log.py
<ide> def _is_configured(self, logger):
<ide> return self._has_handler(logger) and not getattr(
<ide> logger, '_rudimentary_setup', False)
<ide>
<del> def setup_logger(self, name='celery', *args, **kwargs):
<del> """Deprecated: No longer used."""
<del> ... | 2 |
Ruby | Ruby | add test_float_limits to mysql2 | fde487328fff6e7157a50a0aa47898c2bc3b73b1 | <ide><path>activerecord/test/cases/adapters/mysql/schema_test.rb
<ide> def setup
<ide> self.table_name = "#{db}.#{table}"
<ide> def self.name; 'Post'; end
<ide> end
<del>
<del> @connection.create_table "mysql_doubles"
<del> end
<del>
<del> teardown do
<del> @connectio... | 2 |
Go | Go | fix an issue with service logs hanging | 80c3ec027d9fd4f7ea2080adc08fc741f8909b2e | <ide><path>daemon/cluster/executor/container/controller.go
<ide> func (r *controller) Logs(ctx context.Context, publisher exec.LogPublisher, opti
<ide> return err
<ide> }
<ide>
<del> if err := r.waitReady(ctx); err != nil {
<del> return errors.Wrap(err, "container not ready for logs")
<del> }
<add> // if we're fol... | 2 |
Mixed | Go | add filter for events emitted by docker daemon | 62014aaf9abeb4256cb66e7ae06bfdf5a77d1140 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) Reload(config *Config) error {
<ide> } else {
<ide> attributes["labels"] = "[]"
<ide> }
<add> attributes["max-concurrent-downloads"] = fmt.Sprintf("%d", *daemon.configStore.MaxConcurrentDownloads)
<add> attributes["max-concurrent-uploads"] = fmt.Sprintf("%d", ... | 7 |
Javascript | Javascript | move common boot concerns to engineinstance | e087ae693f690e9476156ce68ec09610edcb10b7 | <ide><path>packages/ember-application/lib/system/application-instance.js
<ide> const ApplicationInstance = EngineInstance.extend({
<ide> // appended to the rootElement, in the case of apps, to the fixture harness
<ide> // in tests, or rendered to a string in the case of FastBoot.
<ide> this.register('-appli... | 2 |
Go | Go | add cap_kill to unprivileged containers | fa72eb3a58ebfec8ef1b27d8e7aa8cbdb41733a2 | <ide><path>daemon/execdriver/native/template/default_template.go
<ide> func New() *libcontainer.Container {
<ide> "SETPCAP",
<ide> "NET_BIND_SERVICE",
<ide> "SYS_CHROOT",
<add> "KILL",
<ide> },
<ide> Namespaces: map[string]bool{
<ide> "NEWNS": true, | 1 |
Text | Text | fix invalid link to list of free programming books | ac3d90968fcc8e23f572a0b6871e2969d08bfcaf | <ide><path>guides/source/getting_started.md
<ide> curve diving straight into Rails. There are several curated lists of online reso
<ide> for learning Ruby:
<ide>
<ide> * [Official Ruby Programming Language website](https://www.ruby-lang.org/en/documentation/)
<del>* [List of Free Programming Books](https://github.com/... | 1 |
Ruby | Ruby | add hint to actionview's fields_for | c6cb78349a25b9326d5f39556a338627dfbc6716 | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def form_with(model: nil, scope: nil, url: nil, format: nil, **options, &block)
<ide> # <% end %>
<ide> #
<ide> # Note that fields_for will automatically generate a hidden field
<del> # to store the ID of the record. There are c... | 1 |
Javascript | Javascript | fix mistake in example | 1296e7a72e3ff984dccf23e8de527daf7b3633f1 | <ide><path>src/ng/directive/attrs.js
<ide> *
<ide> * The buggy way to write it:
<ide> * ```html
<del> * <img src="http://www.gravatar.com/avatar/{{hash}} 2x"/>
<add> * <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x"/>
<ide> * ```
<ide> *
<ide> * The correct way to write it: | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.