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 | Javascript | remove references to unsupported aix versions | cda60c56723e97ae88eceeec6974ddc6ab619d31 | <ide><path>doc/api/fs.md
<ide> added: v10.0.0
<ide> Change the file system timestamps of the object referenced by the {FileHandle}
<ide> then resolves the promise with no arguments upon success.
<ide>
<del>This function does not work on AIX versions before 7.1, it will reject the
<del>promise with an error using code ... | 2 |
Ruby | Ruby | add version token examples | e9b6a6df4bd6d04ecef771102c7ab257b0ac3079 | <ide><path>Library/Homebrew/test/pkg_version_spec.rb
<ide> expect(p1.hash).not_to eq(p4.hash)
<ide> end
<ide> end
<add>
<add> describe "#version" do
<add> it "returns package version" do
<add> expect(described_class.parse("1.2.3_4").version).to be == Version.create("1.2.3")
<add> end
<add> end
... | 1 |
Go | Go | bind a new data volume to a container | 1df5f4094bf31edba6f2a2f07bfdada54340c1e4 | <ide><path>commands.go
<ide> import (
<ide> "log"
<ide> "net/http"
<ide> "net/url"
<add> "path/filepath"
<ide> "runtime"
<ide> "strconv"
<ide> "strings"
<ide> func (opts AttachOpts) Get(val string) bool {
<ide> return false
<ide> }
<ide>
<add>// PathOpts stores a unique set of absolute paths
<add>type PathOpts ... | 3 |
Python | Python | fix bug in example of np.spacing. closes | 12e936a7f793df5b76b639382c7b302c3153c2b3 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide>
<ide> Examples
<ide> --------
<del> >>> np.spacing(1, 2) == np.finfo(np.float64).eps
<add> >>> np.spacing(1) == np.finfo(np.float64).eps
<ide> True
<ide>
<ide> """) | 1 |
Go | Go | fix typo in lxc_template.go | cb979edec0c8a8ba5a874abcbf74eae3a48fe52c | <ide><path>daemon/execdriver/lxc/lxc_template.go
<ide> lxc.cgroup.devices.allow = {{$allowedDevice.CgroupString}}
<ide> # Use mnt.putold as per https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986385
<ide> lxc.pivotdir = lxc_putold
<ide>
<del># lxc.autodev is not compativle with lxc --device switch
<add># lxc.autode... | 1 |
Ruby | Ruby | remove block from super | 96f0aad6ec8c3ae94485679ac8092c4089310481 | <ide><path>actionview/lib/action_view/helpers/tags/search_field.rb
<ide> module Helpers
<ide> module Tags # :nodoc:
<ide> class SearchField < TextField # :nodoc:
<ide> def render
<del> super do |options|
<del> if options["autosave"]
<del> if options["autosave"] == true... | 2 |
Ruby | Ruby | fix broken ipv6 addresses handling | c4a83b5454a3516b630b38cd8e8472f2166fc986 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> module ActionDispatch
<ide> module Http
<ide> module URL
<ide> IP_HOST_REGEXP = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
<del> HOST_REGEXP = /(^[^:]+:\/\/)?([^:]+)(?::(\d+$))?/
<add> HOST_REGEXP = /(^[^:]+:\/\/)?(\[[^\]]+\]|[^:]+)(?... | 2 |
Javascript | Javascript | fix server.listen argument parsing | be1b55289fdd0e654c660eca9bd1eb8a517f804c | <ide><path>lib/net_uv.js
<ide> function toPort(x) { return (x = Number(x)) >= 0 ? x : false; }
<ide>
<ide>
<ide> function listenip(self, ip, port) {
<del> var r = self._handle.bind(ip, port);
<add> var r = 0;
<add>
<add> if (ip && port) {
<add> debug("bind to " + ip);
<add> r = self._handle.bind(ip, port);
<... | 1 |
Go | Go | add ability to work with individual namespaces | 70f3b9f4ce67ee54ec226814cdd26db01f69378d | <ide><path>pkg/libcontainer/nsinit/command.go
<ide> func (c *DefaultCommandFactory) Create(container *libcontainer.Container, consol
<ide> // flags on clone, unshare, and setns
<ide> func GetNamespaceFlags(namespaces libcontainer.Namespaces) (flag int) {
<ide> for _, ns := range namespaces {
<del> flag |= ns.Value
<a... | 3 |
PHP | PHP | update deprecation suggestions | 82b9edd8512c857a75597a5d6c7f07d53c9edf5c | <ide><path>src/Http/ServerRequest.php
<ide> public function offsetGet($name)
<ide> * @param string $name Name of the key being written
<ide> * @param mixed $value The value being written.
<ide> * @return void
<del> * @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use setParam(), ... | 1 |
Mixed | Text | drop mysql 5.1 support | a338314d31b2a6d0f3cefcfc8c897369094098e4 | <ide><path>activerecord/CHANGELOG.md
<add>* Bump minimum MySQL version to 5.5.8.
<add>
<add> *Yasuo Honda*
<add>
<ide> * Use MySQL utf8mb4 character set by default.
<ide>
<ide> `utf8mb4` character set with 4-Byte encoding supports supplementary characters including emoji.
<ide><path>activerecord/lib/active_... | 2 |
PHP | PHP | add missing use | 2f9fd50688da18b69affb7a9679abc94f61c5d90 | <ide><path>lib/Cake/TestSuite/Reporter/HtmlReporter.php
<ide> use Cake\Core\Configure;
<ide> use Cake\TestSuite\Coverage\HtmlCoverageReport;
<ide> use Cake\Utility\Inflector;
<add>use PHPUnit_Util_Diff;
<ide>
<ide> /**
<ide> * HtmlReporter Reports Results of TestSuites and Test Cases | 1 |
Python | Python | implement no batch to text and image and add test | 854c819228e799f7568032bb9bcde5849b421f69 | <ide><path>keras/preprocessing/image_dataset.py
<ide> def image_dataset_from_directory(directory,
<ide> Whether the images will be converted to
<ide> have 1, 3, or 4 channels.
<ide> batch_size: Size of the batches of data. Default: 32.
<add> If `None`, the data will not be batched
<add> (t... | 6 |
Ruby | Ruby | fix error in deprecation | 13e28f5f55cf8fbefc4a81c4ee1c1497a219de22 | <ide><path>activerecord/lib/active_record/database_configurations/database_config.rb
<ide> class DatabaseConfigurations
<ide> # UrlConfig respectively. It will never return a DatabaseConfig object,
<ide> # as this is the parent class for the types of database configuration objects.
<ide> class DatabaseConfi... | 1 |
Ruby | Ruby | ignore apps found in time machine backups | 4f8af059dfd0e73f23571747cc703bda29de9b8f | <ide><path>Library/Homebrew/os/mac.rb
<ide> def compilers_standard?
<ide> end
<ide>
<ide> def app_with_bundle_id(*ids)
<del> path = mdfind(*ids).first
<add> path = mdfind(*ids)
<add> .reject { |p| p.include?("/Backups.backupdb/") }
<add> .first
<ide> Pathname.new(path) u... | 1 |
Javascript | Javascript | remove references to `window` | 2cec8f99f4a993d5a128ee682b061be9a3cfd496 | <ide><path>packages/loader/lib/main.js
<ide> var define, requireModule, require, requirejs, Ember;
<ide>
<ide> (function() {
<del> Ember = window.Ember = window.Ember || {};
<add> Ember = this.Ember = this.Ember || {};
<ide> if (typeof Ember === 'undefined') { Ember = {} };
<ide>
<ide> if (typeof Ember.__loader... | 2 |
Python | Python | fix comparison when version is none | 90e79bd64d139f7938660635cbce558c39d98053 | <ide><path>numpy/distutils/fcompiler/gnu.py
<ide> from numpy.distutils.fcompiler import FCompiler
<ide> from numpy.distutils.exec_command import exec_command
<ide> from numpy.distutils.misc_util import msvc_runtime_library
<add>from numpy.distutils.compat import get_exception
<ide>
<ide> compilers = ['GnuFCompiler', '... | 1 |
Go | Go | add test for successful ulimit parse | a97ca674f06cc7e70cc6defd617afa7775a8480a | <ide><path>pkg/ulimit/ulimit_test.go
<ide> package ulimit
<ide>
<ide> import "testing"
<ide>
<add>func TestParseValid(t *testing.T) {
<add> u1 := &Ulimit{"nofile", 1024, 512}
<add> if u2, _ := Parse("nofile=512:1024"); u1 == u2 {
<add> t.Fatalf("expected %s, but got %s", u1.String(), u2.String())
<add> }
<add>}
<add... | 1 |
Ruby | Ruby | add a disconnect callback | 55c956b346dfb26a0ac5a5686f4be7f96b28cff6 | <ide><path>lib/action_cable/channel/base.rb
<ide> class Base
<ide> include Callbacks
<ide> include Redis
<ide>
<del> on_subscribe :start_periodic_timers
<add> on_subscribe :start_periodic_timers
<ide> on_unsubscribe :stop_periodic_timers
<ide>
<add> on_unsubscribe :disconnect
<add>
... | 1 |
PHP | PHP | pass config name to database extensions | f66c859f8bdf47d2b58922759d0e2854fcfb084b | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> protected function makeConnection($name)
<ide> // Closure and pass it the config allowing it to resolve the connection.
<ide> if (isset($this->extensions[$name]))
<ide> {
<del> return call_user_func($this->extensions[$name], $config);
<add> return c... | 1 |
PHP | PHP | use strict typing for date/time classes | 98c5776251d342f04fa2042bc4b6b34bc7eda9af | <ide><path>src/I18n/Date.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class Date extends MutableDate implements JsonSerializable
<ide> * @para... | 8 |
Mixed | Python | sync dag specific permissions when parsing | d52ad87520e4bfe978794aed550d627e8a14a02a | <ide><path>UPDATING.md
<ide> The `default_queue` configuration option has been moved from `[celery]` section
<ide>
<ide> This allows Airflow to work more reliably with some environments (like Azure) by default.
<ide>
<add>### `sync-perm` CLI no longer syncs DAG specific permissions by default
<add>
<add>The `sync-per... | 10 |
Ruby | Ruby | remove hermesc build dir for non-hermes build | c05e6c47df95f36f0afa94a7aa6725a34bee4095 | <ide><path>scripts/cocoapods/jsengine.rb
<ide> def remove_copy_hermes_framework_script_phase(installer, react_native_path)
<ide> end
<ide> project.save()
<ide> end
<add>
<add>def remove_hermesc_build_dir(react_native_path)
<add> %x(rm -rf #{react_native_path}/sdks/hermes-engine/build_host_hermesc)
<add>end
<... | 2 |
PHP | PHP | add fire to fake | 7f36ae486df02fb5f56ac64ddf8488a3a441f308 | <ide><path>src/Illuminate/Support/Testing/Fakes/EventFake.php
<ide> public function flush($event)
<ide> //
<ide> }
<ide>
<add> /**
<add> * Fire an event and call the listeners.
<add> *
<add> * @param string|object $event
<add> * @param mixed $payload
<add> * @param bool $halt
<... | 1 |
PHP | PHP | apply fixes from styleci | 6cc389c9dbd5bf7337826a25f6f09cabfdbf58e8 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php
<ide> namespace Illuminate\Database\Eloquent\Concerns;
<ide>
<ide> use Illuminate\Support\Str;
<del>use LogicException;
<ide>
<ide> trait GuardsAttributes
<ide> { | 1 |
Java | Java | remove webworker support from timers | a20882f62ecc62de89938c5587c937da7dfca74e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimersExecution.java
<ide> package com.facebook.react.modules.core;
<ide>
<ide> import com.facebook.react.bridge.JavaScriptModule;
<del>import com.facebook.react.bridge.SupportsWebWorkers;
<ide> import com.facebook.react.bridge.WritableArray;
<ide... | 3 |
Javascript | Javascript | remove exception for node.js 8 and earlier | 0332d31b9424d25c8924ccdfaea92423a3267ec0 | <ide><path>.eslintrc.js
<ide> Module._findPath = (request, paths, isMain) => {
<ide> if (!r && hacks.includes(request)) {
<ide> try {
<ide> return require.resolve(`./tools/node_modules/${request}`);
<del> // Keep the variable in place to ensure that ESLint started by older Node.js
<del> // versions wo... | 1 |
Javascript | Javascript | add crypto dependant modules cannotusecache | 350bef6a103593f824e6a43ff52a86f1a48267db | <ide><path>lib/internal/bootstrap/cache.js
<ide> if (process.config.variables.v8_enable_inspector !== 1) {
<ide> if (!hasTracing) {
<ide> cannotUseCache.push('trace_events');
<ide> }
<add>if (!process.versions.openssl) {
<add> cannotUseCache.push('crypto');
<add> cannotUseCache.push('https');
<add> cannotUseCache.... | 1 |
Mixed | Ruby | add support for horizontal sharding | 384e7d139eb3c2da1ff857033605284d6e70aba7 | <ide><path>activerecord/CHANGELOG.md
<add>* Add support for horizontal sharding to `connects_to` and `connected_to`.
<add>
<add> Applications can now connect to multiple shards and switch between their shards in an application. Note that the shard swapping is still a manual process as this change does not include ... | 7 |
Go | Go | use a test table in the daemon delete unit tests | 8f51746997e4ea26fdc80703d3e9c881b87816f2 | <ide><path>daemon/delete_test.go
<ide> func newDaemonWithTmpRoot(t *testing.T) (*Daemon, func()) {
<ide> return d, func() { os.RemoveAll(tmp) }
<ide> }
<ide>
<del>// TestContainerDeletePaused tests that a useful error message and instructions is given when attempting
<del>// to remove a paused container (#30842)
<del... | 1 |
Python | Python | fix additional datatrainingarguments documentation | 0094eba36381da08bf4d199386e25db32f37753b | <ide><path>examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
<ide> class DataTrainingArguments:
<ide> train_split_name: str = field(
<ide> default="train+validation",
<ide> metadata={
<del> "help": "The name of the training data set split to use (via the datasets library).... | 1 |
Javascript | Javascript | fix constructor/instanceof checks | 82b8355e12435d47339dd9e2a1ca0b7f3d73fa80 | <ide><path>lib/util.js
<ide> function ensureDebugIsInitialized() {
<ide>
<ide> function inspectPromise(p) {
<ide> ensureDebugIsInitialized();
<add> // Only create a mirror if the object is a Promise.
<ide> if (!binding.isPromise(p))
<ide> return null;
<ide> const mirror = Debug.MakeMirror(p, true);
<ide> fu... | 2 |
Ruby | Ruby | use xcode_path for gcc as well as llvm | ec0ae5ee99e4b9e2de2917cced0741c51e2719ac | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def setup_build_environment
<ide> self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}"
<ide> end
<ide>
<add> xcode_path = `/usr/bin/xcode-select -print-path`.chomp
<add> xcode_path = "/Developer" if xcode_path.to_s.empty?
<ide> if MACOS_VERSION >= 10.6 an... | 1 |
Javascript | Javascript | remove unused property _maxlabellines | 1b1c7fc302f77ee4c1504d5a1202a167620d6ce1 | <ide><path>src/core/core.scale.js
<ide> class Scale extends Element {
<ide> /** @type {object} */
<ide> this._longestTextCache = {};
<ide> /** @type {number} */
<del> this._maxLabelLines = undefined;
<del> /** @type {number} */
<ide> this._startPixel = undefined;
<ide> /** @type {number} */
<ide> this._en... | 1 |
Python | Python | add missing cast to gpt-j | ec6cd7633f8c1aaf41d21d919c63fc8c170cd5df | <ide><path>src/transformers/models/gptj/modeling_tf_gptj.py
<ide> def call(
<ide> key = self._split_heads(key, True)
<ide> value = self._split_heads(value, False)
<ide>
<del> sincos = tf.gather(self.embed_positions, position_ids, axis=0)
<add> sincos = tf.cast(tf.gather(self.embed_positio... | 2 |
PHP | PHP | add an `exists` method to the arr class | caa75f37309e7fc32c3d9e6e0de60b466780abe3 | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function except($array, $keys)
<ide> return $array;
<ide> }
<ide>
<add> /**
<add> * Determine if the given key exists in the provided array.
<add> *
<add> * @param array|\ArrayAccess $array
<add> * @param string|int $key
<... | 2 |
Text | Text | fix the link to the old doc | a02098b855aad0847cddacc4bed2d280017b46c5 | <ide><path>docs/topics/release-notes.md
<ide> For older release notes, [please see the version 2.x documentation](old-release-
<ide> [2.1.0-notes]: https://groups.google.com/d/topic/django-rest-framework/Vv2M0CMY9bg/discussion
<ide> [ticket-582]: https://github.com/tomchristie/django-rest-framework/issues/582
<ide> [rf... | 1 |
Python | Python | add more tests for generic views | 0853316545ad39c314f56ee559ce56596e578d2b | <ide><path>rest_framework/tests/generics.py
<ide> def setUp(self):
<ide> {'id': obj.id, 'text': obj.text}
<ide> for obj in self.objects.all()
<ide> ]
<add> self.view = RootView.as_view()
<ide>
<ide> def test_get_root_view(self):
<ide> """
<ide> GET requests to... | 1 |
Python | Python | add test_connection method to azurefilesharehook | b27fc0367cd1125f4d312497ba5337115476315e | <ide><path>airflow/providers/microsoft/azure/hooks/fileshare.py
<ide> def load_stream(
<ide> self.get_conn().create_file_from_stream(
<ide> share_name, directory_name, file_name, stream, count, **kwargs
<ide> )
<add>
<add> def test_connection(self):
<add> """Test Azure FileShare co... | 2 |
Python | Python | add tests for ``deprecate`` | 944524fa0ba6a9a174e1e3af99be61f35c8b4503 | <ide><path>numpy/lib/tests/test_utils.py
<ide> from numpy.testing import *
<ide> import numpy.lib.utils as utils
<add>from numpy.lib import deprecate
<add>
<ide> from StringIO import StringIO
<ide>
<ide> def test_lookfor():
<ide> def test_lookfor():
<ide> import_modules=False)
<ide> out = out.get... | 1 |
Python | Python | add test and fix for | d6e30c75ff1de968c15cba1516dedb226eea97b3 | <ide><path>rest_framework/serializers.py
<ide> from __future__ import unicode_literals
<ide> from django.db import models
<ide> from django.db.models.fields import FieldDoesNotExist, Field as DjangoModelField
<del>from django.db.models import query
<ide> from django.utils.functional import cached_property
<ide> from dj... | 2 |
Python | Python | add a test for mixed precision | 2c891c156dab5403178ec864239313533d0223b8 | <ide><path>tests/test_modeling_tf_albert.py
<ide> def test_model_common_attributes(self):
<ide> name = model.get_bias()
<ide> assert name is None
<ide>
<add> def test_mixed_precision(self):
<add> # TODO JP: Make ALBERT float16 compliant
<add> pass
<add>
<ide> @slow
... | 20 |
Ruby | Ruby | convert app test to spec | 20e85cc96feaa4cb4a9ddac64758297aa2bff728 | <add><path>Library/Homebrew/cask/spec/cask/artifact/app_spec.rb
<del><path>Library/Homebrew/cask/test/cask/artifact/app_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::Artifact::App do
<ide> let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-caffein... | 1 |
Javascript | Javascript | add permission introduced in android 13 | 0a854c7c8b7ffc382c43fa460651a4b4de34c3c7 | <ide><path>Libraries/PermissionsAndroid/NativePermissionsAndroid.js
<ide> export type PermissionType =
<ide> | 'android.permission.USE_SIP'
<ide> | 'android.permission.PROCESS_OUTGOING_CALLS'
<ide> | 'android.permission.BODY_SENSORS'
<add> | 'android.permission.BODY_SENSORS_BACKGROUND'
<ide> | 'android.permiss... | 2 |
Python | Python | add inception v3 example | 0ed00e38f095ec7fe14e55c8e3fd7ce242a79df4 | <ide><path>examples/inception_v3.py
<add>'''This script demonstrates how to build the Inception v3 architecture
<add>using the Keras functional API.
<add>We are not actually training it here, for lack of appropriate data.
<add>
<add>For more information about this architecture, see:
<add>
<add>"Rethinking the Inception... | 1 |
Python | Python | fix fan_in renaming | 102c8c7e2f482b67d8fea8e4b9b341365da38565 | <ide><path>spacy/ml/_precomputable_affine.py
<ide> def init(model, X=None, Y=None):
<ide> pad = model.ops.alloc4f(1, nF, nO, nP)
<ide>
<ide> ops = model.ops
<del> W = normal_init(ops, W.shape, fan_in=nF * nI)
<add> scale = float(ops.xp.sqrt(1.0 / (nF * nI)))
<add> W = normal_init(ops, W.shape, mean=sc... | 1 |
Ruby | Ruby | move url munging to initialize | 867a87b50afda7fa6d8c81a37eb8ff1f898e5cf6 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def checkout_submodules(dst)
<ide> end
<ide>
<ide> class CVSDownloadStrategy < VCSDownloadStrategy
<add> def initialize(name, resource)
<add> super
<add> @url = @url.sub(%r[^cvs://], "")
<add> end
<add>
<ide> def stage
<ide> cp_r Dir[cached_location+... | 1 |
Ruby | Ruby | add an accessor to make the intent more clear here | 95af184a0c678d075841b956f776f6bc7c648ee7 | <ide><path>Library/Homebrew/options.rb
<ide> def split_name(name)
<ide> class Options
<ide> include Enumerable
<ide>
<add> attr_reader :options
<add> protected :options
<add>
<ide> def initialize(*args)
<ide> @options = Set.new(*args)
<ide> end
<ide>
<ide> def initialize_copy(other)
<ide> super
<del... | 1 |
Javascript | Javascript | use charat instead of regexp | 6c59e770084912d2345e7f83f983092a2d305ae3 | <ide><path>src/Angular.js
<ide> function bind(self, fn) {
<ide> function toJsonReplacer(key, value) {
<ide> var val = value;
<ide>
<del> if (/^\$+/.test(key)) {
<add> if (typeof key === 'string' && key.charAt(0) === '$') {
<ide> val = undefined;
<ide> } else if (isWindow(value)) {
<ide> val = '$WINDOW'; | 1 |
Java | Java | improve coverage, remove unused code | 421c5bbb2312b9364e11a0f02cf84126e94961fb | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> import io.reactivex.internal.functions.*;
<ide> import io.reactivex.internal.fuseable.*;
<ide> import io.reactivex.internal.operators.flowable.*;
<del>import io.reactivex.internal.operators.flowable.FlowableStrict.StrictSubscriber;
<ide> import io.reactivex.inte... | 24 |
Text | Text | fix casing for github in the contributing guide | 64c86623ee7c0d175b3344178fc222d67318ac81 | <ide><path>CONTRIBUTING.md
<ide> If you have a question, check StackOverflow using
<ide> Find an existing discussion or start a new one if necessary.
<ide>
<ide> If you suspect an issue, perform a search in the
<del>[Github issue tracker](https://github.com/spring-projects/spring-framework/issues), using a few differe... | 1 |
Text | Text | update directions in for html/css quiz | 25af8f9ee9f478d7193cf28fcb2b6c7f761c6096 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6140827cff96e906bd38fc2b.md
<ide> dashedName: step-9
<ide>
<ide> # --description--
<ide>
<del>As described in the [freeCodeCamp Style Guide](https://design-style-guide.freecodecamp.org/), the logo should retain... | 1 |
Ruby | Ruby | add assertion helpers for active job integration | b6b2001f51e46c63e992d819a7f0492b789373fc | <ide><path>activejob/test/integration/queuing_test.rb
<ide> class QueuingTest < ActiveSupport::TestCase
<ide> test "should run jobs enqueued on a listening queue" do
<ide> TestJob.perform_later @id
<ide> wait_for_jobs_to_finish_for(5.seconds)
<del> assert job_executed
<add> assert_job_executed
<ide> e... | 1 |
Javascript | Javascript | add another nexttick benchmark | c6347dcfb43273214dc872e60c8cd94a93fee027 | <ide><path>benchmark/next-tick-2.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without restriction, ... | 1 |
Javascript | Javascript | fix priority value mentioned in the docs | f3884df0a90c35945e9137562e39506b290f5be2 | <ide><path>src/ng/directive/ngController.js
<ide> *
<ide> * @element ANY
<ide> * @scope
<add> * @priority 500
<ide> * @param {expression} ngController Name of a constructor function registered with the current
<ide> * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
<ide... | 1 |
PHP | PHP | fix scheduling\event tests on windows | f3a216471239bc112b91f3d5ae2ccce7b3e9b706 | <ide><path>tests/Console/Scheduling/EventTest.php
<ide> class EventTest extends PHPUnit_Framework_TestCase
<ide> {
<ide> public function testBuildCommand()
<ide> {
<add> $quote = (DIRECTORY_SEPARATOR == '\\') ? '"' : "'";
<add>
<ide> $event = new Event('php -i');
<ide>
<ide> $defaultOutp... | 1 |
Javascript | Javascript | simplify unique titles test | 5e53ebded96b3a3668303f1373ae0b58d54cf5d8 | <ide><path>challengeTitles.js
<ide> class ChallengeTitles {
<ide> }
<ide> check(title) {
<ide> if (typeof title !== 'string') {
<del> throw new Error(`Expected a valid string for ${title}, got ${typeof title}`);
<add> throw new Error(`Expected a valid string for ${title}, but got a(n) ${typeof title}`... | 1 |
Ruby | Ruby | mark some methods as nodoc | 0abd0b54f06c8dc448846e0dc1b287ee4f957868 | <ide><path>activerecord/lib/active_record/core.rb
<ide> def allocate
<ide> super
<ide> end
<ide>
<del> def initialize_find_by_cache
<add> def initialize_find_by_cache # :nodoc:
<ide> self.find_by_statement_cache = {}.extend(Mutex_m)
<ide> end
<ide>
<del> def inherited(child_... | 1 |
Javascript | Javascript | keep commons chunk in mind when optimizing | 153be562db11e3bff9a2bdfa3456efdccf50ac3b | <ide><path>lib/Chunk.js
<ide> Chunk.prototype.size = function(options) {
<ide> }).reduce(function(a, b) {
<ide> return a + b;
<ide> }, 0);
<del> return modulesSize * (this.entry ? ENTRY_CHUNK_MULTIPLICATOR : 1) + CHUNK_OVERHEAD;
<add> return modulesSize * (this.id === 0 ? ENTRY_CHUNK_MULTIPLICATOR : 1) + CHUNK_OVER... | 2 |
Python | Python | update exception style, easy ones | cfd766456368777bcb0d5edabd360b3aeb02d3f8 | <ide><path>numpy/core/defchararray.py
<ide> def multiply(a, i):
<ide> a_arr = numpy.asarray(a)
<ide> i_arr = numpy.asarray(i)
<ide> if not issubclass(i_arr.dtype.type, integer):
<del> raise ValueError, "Can only multiply by integers"
<add> raise ValueError("Can only multiply by integers")
<ide... | 33 |
Python | Python | correct a minor bug. nice cpu label displayed | 483c01d9fddc45792def9ace89080f817dbdb903 | <ide><path>glances/plugins/glances_cpu.py
<ide> def msg_curse(self, args=None):
<ide> # Nice CPU
<ide> if 'nice' in self.stats:
<ide> msg = ' {0:8}'.format(_("nice:"))
<del> ret.append(self.curse_add_line(msg))
<add> ret.append(self.curse_add_line(msg, optional=True))
... | 1 |
Ruby | Ruby | link new tapped formula during brew update | 7280590e881635f4e47bb619043f5bfd1af05780 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def install_tap user, repo
<ide> raise "Already tapped!" if tapd.directory?
<ide> abort unless system "git clone https://github.com/#{user}/homebrew-#{repo} #{tapd}"
<ide>
<del> gitignores = (HOMEBREW_LIBRARY/"Formula/.gitignore").read.split rescue []
<del>
<del>... | 2 |
Javascript | Javascript | ignore invalid format specifiers | 00aac57df934b4727a3e6fc8cf70db40216f29ee | <ide><path>lib/util.js
<ide> exports.format = function(f) {
<ide> str += f.slice(lastPos, i);
<ide> str += '%';
<ide> break;
<add> default: // any other character is not a correct placeholder
<add> if (lastPos < i)
<add> str += f.slice(lastPos, i);
<add> ... | 2 |
Python | Python | drop unused patterns | 7560e8381f90c646bdfeaf1ee491482f39766f53 | <ide><path>tests/test_atomic_requests.py
<ide> from __future__ import unicode_literals
<ide>
<del>from django.conf.urls import patterns, url
<add>from django.conf.urls import url
<ide> from django.db import connection, connections, transaction
<ide> from django.http import Http404
<ide> from django.test import TestCas... | 1 |
Text | Text | update video.md with forward js 2014 talk | 34b4ed7316e204e971c94c14db9fceec39ad5750 | <ide><path>docs/docs/videos.md
<ide> by [Stoyan Stefanov](http://www.phpied.com/)
<ide> ### "Rethinking Web App Development at Facebook" - Facebook F8 Conference 2014
<ide>
<ide> <iframe width="650" height="315" src="//www.youtube.com/embed/nYkdrAPrdcw" frameborder="0" allowfullscreen></iframe>
<add>
<add>### React an... | 1 |
Python | Python | fix type annotations for integer_partition.py | 3acca3d1d188f89c6aa0fb4c0139ac62426ea296 | <ide><path>dynamic_programming/integer_partition.py
<ide> """
<ide>
<ide>
<del>def partition(m):
<del> memo = [[0 for _ in range(m)] for _ in range(m + 1)]
<add>def partition(m: int) -> int:
<add> memo: list[list[int]] = [[0 for _ in range(m)] for _ in range(m + 1)]
<ide> for i in range(m + 1):
<ide> ... | 1 |
Mixed | Javascript | add e2e test for object props | 70fc54a20bd86876b02c7da26fb57e3a419d8d79 | <ide><path>packages/react-native-codegen/buck_tests/java/ObjectPropsNativeComponentManager.java
<add>package com.facebook.react.uimanager;
<add>
<add>import android.view.ViewGroup;
<add>import com.facebook.react.bridge.ReadableMap;
<add>import com.facebook.react.viewmanagers.ObjectPropsNativeComponentManagerDelegate;
<... | 2 |
Python | Python | add authoring api for taskgroup mapping | 84d915c249617aedaf0c451e9f9d19a4e7ff767b | <ide><path>airflow/decorators/base.py
<ide> ValidationSource,
<ide> ensure_xcomarg_return_value,
<ide> get_mappable_types,
<del> prevent_duplicates,
<ide> )
<ide> from airflow.models.pool import Pool
<ide> from airflow.models.xcom_arg import XComArg
<ide> from airflow.typing_compat import ParamSpec, Prot... | 10 |
Javascript | Javascript | use different socket for win32 test | 8b0f373df0574b7cb3c6b531b4092cd670dac6e3 | <ide><path>test/unit/adapters/http.js
<ide> describe('supports http with nodejs', function () {
<ide> });
<ide>
<ide> it('should support sockets', function (done) {
<add> // Different sockets for win32 vs darwin/linux
<add> var socketName = './test.sock';
<add>
<add> if (process.platform === 'win32') {
<a... | 1 |
Python | Python | remove unused isscalar import | d22a71bab7b787527035d5eb87ca3bc5acb0f88e | <ide><path>numpy/lib/shape_base.py
<ide>
<ide> import numpy.core.numeric as _nx
<ide> from numpy.core.numeric import (
<del> asarray, zeros, outer, concatenate, isscalar, array, asanyarray
<add> asarray, zeros, outer, concatenate, array, asanyarray
<ide> )
<ide> from numpy.core.fromnumeric import product, re... | 2 |
Python | Python | remove preservena reference from docstrings | 3b579f7046a0751a1b1976390ece5ba8603b8585 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide>
<ide> add_newdoc('numpy.core.multiarray', 'copyto',
<ide> """
<del> copyto(dst, src, casting='same_kind', where=None, preservena=False)
<add> copyto(dst, src, casting='same_kind', where=None)
<ide>
<ide> Copies values from ... | 1 |
Go | Go | finish implementation and begin working on tests | 6bc05899aa5023fdda0441b76a829d0e9a6f6dea | <ide><path>networkdriver/portallocator/allocator.go
<ide> import (
<ide> "errors"
<ide> "github.com/dotcloud/docker/pkg/netlink"
<ide> "net"
<del> "sort"
<ide> "sync"
<ide> )
<ide>
<ide> var (
<ide> ErrNetworkAlreadyAllocated = errors.New("requested network overlaps with existing network")
<ide> ErrNetworkAlread... | 3 |
PHP | PHP | implement hasmethod() and call() | 6fa2d9decda2643a91203d9777180e6af4d82730 | <ide><path>Cake/Cache/CacheRegistry.php
<ide> protected function _throwMissingClassError($class, $plugin) {
<ide> *
<ide> * Part of the template method for Cake\Utility\ObjectRegistry::load()
<ide> * @param string|CacheEngine $class The classname or object to make.
<add> * @param string $alias The alias of the objec... | 10 |
Go | Go | remove unuset setuptest() | 4b13f69882a4b5583175b4f55e8976413db9d3a7 | <ide><path>integration/network/ipvlan/main_test.go
<ide> func TestMain(m *testing.M) {
<ide> testEnv.Print()
<ide> os.Exit(m.Run())
<ide> }
<del>
<del>func setupTest(t *testing.T) func() {
<del> environment.ProtectAll(t, testEnv)
<del> return func() { testEnv.Clean(t) }
<del>}
<ide><path>integration/network/macvlan/m... | 2 |
Python | Python | remove unused code `app.run()` | 928c88995cd250c4f23dc269c957feb9a2f2e827 | <ide><path>rebar/utils.py
<ide> def logSumExp(t, axis=0, keep_dims = False):
<ide> return tf.expand_dims(res, axis)
<ide> else:
<ide> return res
<del>
<del>if __name__ == '__main__':
<del> app.run() | 1 |
PHP | PHP | use safe container getter on pipeline carry | 97b2899ed23cb2ddd679702c349108c375525c99 | <ide><path>src/Illuminate/Pipeline/Pipeline.php
<ide> protected function carry()
<ide> : $pipe(...$parameters);
<ide>
<ide> return $response instanceof Responsable
<del> ? $response->toResponse($this->container->make(Request::class))
<add> ... | 1 |
PHP | PHP | add typehint for factory | 93e078a79dd3e6d5a74d767da30ea1483919161a | <ide><path>database/factories/ModelFactory.php
<ide> | database. Just tell the factory how a default model should look.
<ide> |
<ide> */
<del>
<add>/** @var $factory \Illuminate\Database\Eloquent\Factory */
<ide> $factory->define(App\User::class, function (Faker\Generator $faker) {
<ide> static $password;
<ide> | 1 |
Javascript | Javascript | move mkdtemp* functions near static functions | 79a5eb1a65199bdaa359d3b4d1ac102d1e284078 | <ide><path>lib/fs.js
<ide> fs.realpath = function realpath(path, options, callback) {
<ide> };
<ide>
<ide>
<add>fs.mkdtemp = function(prefix, options, callback_) {
<add> var callback = maybeCallback(callback_);
<add> if (!prefix || typeof prefix !== 'string')
<add> throw new TypeError('filename prefix is require... | 1 |
PHP | PHP | add gate authorize tests | 367e456bcbf73b16f60fababd366a21db802b14d | <ide><path>tests/Auth/AuthAccessGateTest.php
<ide>
<ide> use Illuminate\Auth\Access\Gate;
<ide> use Illuminate\Container\Container;
<add>use Illuminate\Auth\Access\Response;
<add>use Illuminate\Auth\Access\HandlesAuthorization;
<ide>
<ide> class GateTest extends PHPUnit_Framework_TestCase
<ide> {
<ide> public functio... | 1 |
Text | Text | use sentence-case for headers in security.md | 360bf9b289e371a2723a7a045ae9389e41294717 | <ide><path>SECURITY.md
<ide> # Security
<ide>
<del>## Reporting a Bug in Node.js
<add>## Reporting a bug in Node.js
<ide>
<ide> Report security bugs in Node.js via [HackerOne](https://hackerone.com/nodejs).
<ide>
<ide> you informed of the progress being made towards a fix and full announcement,
<ide> and may ask for... | 1 |
Python | Python | fix ticket #390 | ff52d4cebbc04639123e1ace44c26413ca050e49 | <ide><path>numpy/core/records.py
<ide> def __getitem__(self, indx):
<ide> return obj.view(ndarray)
<ide> return obj
<ide>
<add> def __repr__(self) :
<add> ret = ndarray.__repr__(self)
<add> return ret.replace("recarray", "rec.array", 1)
<add>
<ide> def field(self, attr, val=Non... | 1 |
Javascript | Javascript | fix base64 padding regression | 4231dab39f8d3769196fefede15e048f3ca09300 | <ide><path>lib/crypto.js
<ide> Cipher.prototype.final = function(outputEncoding) {
<ide>
<ide> if (outputEncoding && outputEncoding !== 'buffer') {
<ide> this._decoder = getDecoder(this._decoder, outputEncoding);
<del> ret = this._decoder.write(ret);
<add> ret = this._decoder.end(ret);
<ide> }
<ide>
<id... | 2 |
Python | Python | add test_connection method for sshhook | b5338b5825859355b017bed3586d5a42208f1391 | <ide><path>airflow/providers/ssh/hooks/ssh.py
<ide> def exec_ssh_client_command(
<ide> exit_status = stdout.channel.recv_exit_status()
<ide>
<ide> return exit_status, agg_stdout, agg_stderr
<add>
<add> def test_connection(self) -> tuple[bool, str]:
<add> """Test the ssh connection by execute ... | 2 |
Go | Go | add test for swarm error handling | d377b074fdcbf735d9fbafdb9bcab6878e5c0ae9 | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> package main
<ide>
<ide> import (
<ide> "fmt"
<add> "net"
<ide> "net/http"
<ide> "os"
<ide> "path/filepath"
<ide> func (s *DockerSwarmSuite) TestAPISwarmUnlockNotLocked(c *check.C) {
<ide> c.Assert(err, checker.NotNil)
<ide> c.Assert(err.Error(), checker.... | 1 |
Python | Python | update cifar10 example | dab55518bacc70c2f44ca11787c346b821343316 | <ide><path>examples/cifar10_cnn.py
<ide> X_test = X_test.astype("float32")
<ide> X_train /= 255
<ide> X_test /= 255
<del> model.fit(X_train, Y_train, batch_size=batch_size, nb_epoch=10)
<add> model.fit(X_train, Y_train, batch_size=batch_size, nb_epoch=nb_epoch)
<ide> score = model.evaluate(X_test,... | 1 |
Python | Python | set version to v2.0.18.dev1 | e1a4b0d7f7d9e860dce794e07aadedea193d470e | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.18'
<add>__version__ = '2.0.18.dev1'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
PHP | PHP | remove more deprecations, cleaner typehinting | 6956d782ca7896717988664b50fd9ea6b01b37fe | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function total($model = null)
<ide> * Gets the current key by which the recordset is sorted
<ide> *
<ide> * @param string|null $model Optional model name. Uses the default if none is specified.
<del> * @param array $options Options for pagin... | 2 |
Python | Python | fix flaubert gpu test | ec0267475c16a1913e64cb4f81fd54d153e3d815 | <ide><path>src/transformers/modeling_flaubert.py
<ide> def forward(
<ide> else:
<ide> bs, slen = inputs_embeds.size()[:-1]
<ide>
<add> device = input_ids.device if input_ids is not None else inputs_embeds.device
<add>
<ide> if lengths is None:
<ide> if input_ids is not No... | 1 |
PHP | PHP | fix viewtask not correctly handling plugin models | 96a1f36516257ffea22af2948fc32cddeac70c57 | <ide><path>src/Console/Command/Task/ViewTask.php
<ide> class ViewTask extends BakeTask {
<ide> public $controllerClass = null;
<ide>
<ide> /**
<del> * Name of the table views are being baked against.
<add> * Name with plugin of the model being used
<ide> *
<ide> * @var string
<ide> */
<del> public $tableName = nul... | 2 |
Python | Python | add seed in initialization | a1af5247e171354e8f39e577d861e63d7fa67a1e | <ide><path>run_classifier_pytorch.py
<ide> def main():
<ide> type=int,
<ide> default=-1,
<ide> help="local_rank for distributed training on gpus")
<del>
<add> parser.add_argument('--seed',
<add> type=int,
<add> ... | 2 |
Text | Text | add changes for 1.4.3 | 1622182737a41cf4619a514fd71529e07e82d594 | <ide><path>CHANGELOG.md
<add><a name="1.4.3"></a>
<add># 1.4.3 foam-acceleration (2015-07-06)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animateCss:** ensure animations execute if only a keyframeStyle is provided
<add> ([97d79eec](https://github.com/angular/angular.js/commit/97d79eec80092f5fae3336c23aa881a72436de55... | 1 |
Python | Python | remove usage of dummy_inputs | 099358675899f759110ad8ccecc22c2fab9b1888 | <ide><path>transformers/modeling_tf_pytorch_utils.py
<ide> def load_tf2_checkpoint_in_pytorch_model(pt_model, tf_checkpoint_path, tf_inputs
<ide> tf_model = tf_model_class(pt_model.config)
<ide>
<ide> if tf_inputs is None:
<del> tf_inputs = tf.constant(DUMMY_INPUTS)
<add> tf_inputs = tf_model.dum... | 1 |
PHP | PHP | fix insert queries failing with expression objects | bbbe6a9abe574113572727d5814e7c318cebabdc | <ide><path>src/Database/Expression/ValuesExpression.php
<ide> public function sql(ValueBinder $generator) {
<ide> foreach ($this->_values as $row) {
<ide> $row = array_merge($defaults, $row);
<ide> foreach ($row as $column => $value) {
<add> if ($value instanceof ExpressionInterface) {
<add> $value = $va... | 3 |
Python | Python | remove unnecessary try / except blocks | ccf8f4bcd24f6b8cc3ef0d8098ce069e2da94189 | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def test_detach_volume(self):
<ide> self.assertEqual(self.driver.detach_volume(volume), True)
<ide>
<ide> def test_ex_set_password(self):
<del> try:
<del> self.driver.ex_set_password(self.node, 'New1&53jPass')
<del> except Ex... | 1 |
Java | Java | fix minor logic error in socketutils | 767ea9db8370945a364b94d770b81d05d0209aef | <ide><path>spring-core/src/main/java/org/springframework/util/SocketUtils.java
<ide> int findAvailablePort(int minPort, int maxPort) {
<ide> int candidatePort;
<ide> int searchCounter = 0;
<ide> do {
<del> if (searchCounter++ > portRange) {
<add> if (searchCounter > portRange) {
<ide> throw new Ille... | 2 |
Javascript | Javascript | update closure library to latest | c88b119ef50fdb56c7a79703717efde8b48d6ae3 | <ide><path>i18n/closure/datetimeSymbols.js
<ide> goog.i18n.DateTimeSymbols_my = {
<ide> 'ဇွန်', 'ဇူလိုင်', 'ဩဂုတ်',
<ide> 'စက်တင်ဘာ', 'အောက်တိုဘာ',
<ide> 'နိုဝင်ဘာ', 'ဒီဇင်ဘာ'],
<del> SHORTMONTHS: ['ဇန်နဝါရီ', 'ဖေဖော်ဝါရီ',
<del> 'မတ်', 'ဧပြီ', 'မေ', 'ဇွန်',
<del> 'ဇူလိုင်', 'ဩဂုတ်', 'စက်တင်ဘာ',
<del... | 3 |
Javascript | Javascript | add nextcontext to componentwillreceiveprops | 04c3e2e4077aa70fdb45a35957005a06498a42a9 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponentInterface = {
<ide> * Use this as an opportunity to react to a prop transition by updating the
<ide> * state using `this.setState`. Current props are accessed via `this.props`.
<ide> *
<del> * componentWillReceiveProps: functio... | 2 |
Text | Text | remove old changelogs | fca53f2a895c33c2884d8c5e6ad70a76de297e9d | <ide><path>CHANGELOG-5.2.md
<del># Release Notes
<del>
<del>## [Unreleased]
<del>
<del>### Fixed
<del>- Fixed deferring write connection ([#16673](https://github.com/laravel/framework/pull/16673))
<del>
<del>
<del>## v5.2.45 (2016-08-26)
<del>
<del>### Fixed
<del>- Revert changes to Eloquent `Builder` that breaks `firs... | 3 |
PHP | PHP | send charset in content-type when content is json | ac0b9b285d33b1ebc86567894d813443c00f5f0c | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> protected function _setContentType() {
<ide> if (in_array($this->_status, array(304, 204))) {
<ide> return;
<ide> }
<del> if (strpos($this->_contentType, 'text/') === 0) {
<add> if (strpos($this->_contentType, 'text/') === 0 || $this->_contentType === 'applica... | 1 |
Go | Go | forbid users to push "root" repositories | b370acd679622239849b1dfbe05d61804aeb7162 | <ide><path>commands.go
<ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string
<ide>
<ide> tmp := strings.SplitN(local, "/", 2)
<ide> if len(tmp) == 1 {
<del> remote = srv.runtime.authConfig.Username + "/" + local
<add> return fmt.Errorf(
<add> "Impossible to push a \"root\" reposi... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.