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 |
|---|---|---|---|---|---|
PHP | PHP | use fqn in docblock, remove description | 7aabd8f0a8f8e0a3420359f807f42ceacb5c4140 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> protected function cycleRememberToken(AuthenticatableContract $user)
<ide> * @param string $attribute
<ide> * @return bool|null
<ide> *
<del> * @throws AuthenticationException If the password is invalid.
<add> * @throws \Illuminate\Auth\Auth... | 1 |
Ruby | Ruby | sinatra app for browsing formula | d2d5993f995138ab7a6e489e9d7e93c0ed999d26 | <ide><path>website/formulas.rb
<add>require 'rubygems'
<add>require 'sinatra'
<add>
<add>$LOAD_PATH << File.join(File.dirname(__FILE__), "../Library/Homebrew")
<add>$LOAD_PATH << File.join(File.dirname(__FILE__), "../Library/Formula")
<add>
<add>require 'global'
<add>require 'formula'
<add>
<add>get '/' do
<add> body ... | 1 |
Text | Text | add guidelines regarding email | 64e8fa9199fb345e017c8ef5299ca69cee01ab4c | <ide><path>CONTRIBUTING.md
<ide> guidelines for the community as a whole:
<ide> to an email you are potentially sending to a large number of people. Please
<ide> consider this before you update. Also remember that nobody likes spam.
<ide>
<add>* Don't send email to the maintainers: There's no need to send email to... | 1 |
Text | Text | add link to migration issue | 6ab16392344509151eeb1bde8671668b3d96e241 | <ide><path>packages/README.md
<ide> See [RFC 003](https://github.com/atom/atom/blob/master/docs/rfcs/003-consolidate
<ide> | **one-dark-syntax** | [`atom/one-dark-syntax`][one-dark-syntax] | [#17853](https://github.com/atom/atom/issues/17853) |
<ide> | **one-dark-ui** | [`atom/one-dark-ui`][one-dark-ui] | [#17854](http... | 1 |
Text | Text | add links to jenkins jobs | 0915f0c6681890e47f94aab523a796f7e835f9e4 | <ide><path>share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md
<ide> If a build has run and passed on `brew test-bot` then it can be used to quickly
<ide>
<ide> There are three types of Jenkins jobs:
<ide>
<del>## Homebrew
<add>## [Homebrew](http://bot.brew.sh/job/Homebrew/)
<ide> This job automatically builds ... | 1 |
Text | Text | fix typo in the legend documentation | a191921b1553d0af05dbb6ee621f171aeabf9baa | <ide><path>docs/configuration/legend.md
<ide> # Legend Configuration
<ide>
<del>The chart legend displays data about the datasets that area appearing on the chart.
<add>The chart legend displays data about the datasets that are appearing on the chart.
<ide>
<ide> ## Configuration options
<ide> The legend configuratio... | 1 |
PHP | PHP | fix styleci issue | 88a61f5fdb5a7c397b3fc06618f1f65992eb845d | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function exists($array, $key)
<ide> public static function first($array, callable $callback = null, $default = null)
<ide> {
<ide> if (is_null($callback)) {
<del> return !empty($array) ? reset($array) : value($default);
<add> ... | 1 |
Javascript | Javascript | make order of bundle transports deterministic | 925e2eba32e3d926749f275c2c36472bc63811e6 | <ide><path>packager/react-packager/src/Bundler/Bundle.js
<ide> class Bundle extends BundleBase {
<ide> }
<ide>
<ide> addModule(resolver, resolutionResponse, module, moduleTransport) {
<add> const index = super.addModule(moduleTransport);
<ide> return resolver.wrapModule({
<ide> resolutionResponse,
<id... | 3 |
Ruby | Ruby | add mime.fetch so we can have default mime types | 7ef6a27f89ee2cccc3a8f73123d2a7173c85f52f | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def build_request_uri(action, parameters)
<ide>
<ide> def html_format?(parameters)
<ide> return true unless parameters.is_a?(Hash)
<del> format = Mime[parameters[:format]]
<del> format.nil? || format.html?
<add> Mime.fetc... | 2 |
Text | Text | add link to homebrew blog in changelog.md | 95cef86f885cf40f791769ef903cc2b43d4941a1 | <ide><path>CHANGELOG.md
<ide> See Homebrew's [releases on GitHub](https://github.com/Homebrew/brew/releases) for the changelog.
<add>
<add>Release notes for major and minor releases can also be found in the [Homebrew blog](https://brew.sh/blog/). | 1 |
Javascript | Javascript | add delays so firefox can catch up | b8d0d78f81fcf26f62b1a9f18a082fbd951b999a | <ide><path>client/commonFramework/update-preview.js
<ide> window.common = (function(global) {
<ide> .first()
<ide> // the delay here is to give code within the iframe
<ide> // control to run
<del> .delay(100);
<add> .delay(400);
<ide> })
<ide> .map(() => code)... | 2 |
Javascript | Javascript | make test less flakey-prone | 3983a66eda1bef8bcfe28ce7f85566b0c27df05e | <ide><path>test/e2e/fixtures/ng-route-promise/script.js
<ide> angular.
<ide> return {
<ide> letters: function($q) {
<ide> return $q(function(resolve) {
<del> window.setTimeout(resolve, 1000, ['a', 'b', 'c', 'd', 'e']);
<add> window.setTimeout(resolve, 2000, ['a', 'b', 'c', ... | 2 |
Text | Text | fix api_view decorator useage | ff4804a36079f9c1d480a788397af3a7f8391371 | <ide><path>docs/api-guide/authentication.md
<ide> You can also set the authentication policy on a per-view basis, using the `APIVi
<ide>
<ide> Or, if you're using the `@api_view` decorator with function based views.
<ide>
<del> @api_view(('GET',)),
<add> @api_view(['GET'])
<ide> @authentication_classes((Ses... | 1 |
Javascript | Javascript | add tests for warncasesensitivemodulesplugin | 0542f4ae565491f4d17998890401fcb8dc8399eb | <ide><path>test/WarnCaseSensitiveModulesPlugin.test.js
<add>var should = require("should");
<add>var sinon = require("sinon");
<add>var PluginEnvironment = require("./helpers/PluginEnvironment");
<add>var applyPluginWithOptions = require("./helpers/applyPluginWithOptions");
<add>var WarnCaseSensitiveModulesPlugin = req... | 1 |
Text | Text | update translation of titles | 04062a98899e412a738c236e503d5714cf7e1b96 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/basic-css/add-borders-around-your-elements.portuguese.md
<ide> videoUrl: ''
<ide> localeTitle: Adicionar bordas ao redor de seus elementos
<ide> ---
<ide>
<del>## Description
<add>## Descrição
<ide> <section id="description"> As bordas CSS têm propri... | 1 |
Python | Python | remove masked_lm_labels from returned dictionary | c6e865ac2bdad9f65c5bc51561563c46c427b506 | <ide><path>src/transformers/data/data_collator.py
<ide> def __call__(self, examples: List[Dict[str, torch.Tensor]]) -> Dict[str, torch.T
<ide> "labels": mlm_labels if self.mlm else None,
<ide> "next_sentence_label": torch.tensor(nsp_labels),
<ide> }
<del> if self.mlm:
<del> ... | 1 |
Javascript | Javascript | keep auth in `url.resolve()` if host matches | 51f96dfcfc7e596866ac2a65f2984b55e760bff5 | <ide><path>lib/url.js
<ide> Url.prototype.resolveObject = function(relative) {
<ide> if (isRelAbs) {
<ide> // it's absolute.
<ide> if (relative.host || relative.host === '') {
<add> if (result.host !== relative.host) result.auth = null;
<ide> result.host = relative.host;
<ide> result.port = r... | 2 |
Ruby | Ruby | create symlinks in opt for formula aliases | 14ef15f591795c517b7771c5eb01863b2b577a46 | <ide><path>Library/Homebrew/keg.rb
<ide> def optlinked?
<ide>
<ide> def remove_opt_record
<ide> opt_record.unlink
<add> unless aliases.empty?
<add> aliases.each do |a|
<add> (opt_record.parent/a).unlink
<add> end
<add> end
<ide> opt_record.parent.rmdir_if_possible
<ide> end
<ide>
<i... | 1 |
Javascript | Javascript | use common.buildtype in embedding test | c3204a8787452e3c3727353ab397de7ee407e5cb | <ide><path>test/embedding/test-embedding.js
<ide> const child_process = require('child_process');
<ide> const path = require('path');
<ide>
<ide> common.allowGlobals(global.require);
<del>let binary = process.features.debug ?
<del> 'out/Debug/embedtest' : 'out/Release/embedtest';
<add>let binary = `out/${common.build... | 1 |
Ruby | Ruby | remove args from `default_render` | 63d96adb685ae3cf464327c59a090ede25c55414 | <ide><path>actionpack/lib/action_controller/metal/basic_implicit_render.rb
<ide> def send_action(method, *args)
<ide> super.tap { default_render unless performed? }
<ide> end
<ide>
<del> def default_render(*args)
<add> def default_render
<ide> head :no_content
<ide> end
<ide> end
<ide><path... | 2 |
Go | Go | fix golint issues on the windows graph driver | 1fffc7a89dd69800317e881009188871906cce6a | <ide><path>daemon/graphdriver/windows/windows.go
<ide> import (
<ide> "github.com/microsoft/hcsshim"
<ide> )
<ide>
<add>// init registers the windows graph drivers to the register.
<ide> func init() {
<ide> graphdriver.Register("windowsfilter", InitFilter)
<ide> graphdriver.Register("windowsdiff", InitDiff)
<ide> }... | 1 |
Python | Python | add docstrings to compat and compat._inspect | 4fb4c64cae2ce1ba16082d918e94e845fa2c87f3 | <ide><path>numpy/compat/__init__.py
<add>"""Compatibility module.
<add>
<add>This module contains duplicated code from python itself or 3rd party
<add>extensions, which may be included for the following reasons:
<add> - compatibility
<add> - we may only need a small subset of the copied library/module
<add>"""
<i... | 2 |
Text | Text | fix zh_cn links | a8be80b94fb5538c7107944fc44b97ec86cc4c27 | <ide><path>threejs/lessons/zh_cn/threejs-fundamentals.md
<ide> ES6的语法。[点击这里查看你需要提前掌握的东西](threejs-prereq
<ide>
<ide> 上图需要注意的事项:
<ide>
<del>* 首先有一个[渲染器](`Renderer`)。这可以说是three.js的主要对象。你传入一个[场景](`Scene`)和一个[摄像机](`Camera`)到[渲染器](`Renderer`)中,然后它会将摄像机视椎体中的三维场景渲染成一个二维图片显示在画布上。
<add>* 首先有一个[渲染器(`Renderer`)](Renderer)。这可以说是t... | 1 |
Text | Text | add guide to using mailhog with docker | 54df230b8e04b1ed1af6f1af4545e20ee07ff696 | <ide><path>docs/how-to-catch-outgoing-emails-locally.md
<ide> MailHog can be installed on macOS, Windows and Linux.
<ide>
<ide> - [Introduction](#introduction)
<ide> - [Installing MailHog](#installing-mailhog)
<add> - [Installing MailHog with Docker](#installing-mailhog-with-docker)
<ide> - [Installing MailHog on m... | 1 |
Javascript | Javascript | use highest priority lane to detect interruptions | 4a99c5c3a780d8178d9278c29d0b7f44be6a0dce | <ide><path>packages/react-reconciler/src/ReactFiberLane.new.js
<ide> export function getNextLanes(root: FiberRoot, wipLanes: Lanes): Lanes {
<ide> // bother waiting until the root is complete.
<ide> (wipLanes & suspendedLanes) === NoLanes
<ide> ) {
<del> getHighestPriorityLanes(wipLanes);
<del> const wi... | 2 |
Javascript | Javascript | improve coverage for internal/readline | 731c55a08e6f91ac44d860243ce52ebbc380cb62 | <ide><path>test/parallel/test-readline-keys.js
<ide> addTest('\x1b[31ma\x1b[39ma', [
<ide> { name: 'a', sequence: 'a' },
<ide> ]);
<ide>
<add>// rxvt keys with modifiers
<add>addTest('\x1b[a\x1b[b\x1b[c\x1b[d\x1b[e', [
<add> { name: 'up', sequence: '\x1b[a', code: '[a', shift: true },
<add> { name: 'down', sequenc... | 1 |
Javascript | Javascript | fix some missing braces in core.js | b7a3b220a8a2b5b0378c9f176ca5ae0f786a6fcf | <ide><path>src/core.js
<ide> jQuery.fn = jQuery.prototype = {
<ide> var match, elem, ret;
<ide>
<ide> // Handle $(""), $(null), or $(undefined)
<del> if ( !selector ) return this;
<add> if ( !selector ) {
<add> return this;
<add> }
<ide>
<ide> // Handle $(DOMElement)
<ide> if ( selector.nodeType ) {
<ide... | 1 |
Javascript | Javascript | remove timermixin from listview | 8ceb1586ee596a1bdf44bbb8e4c6ab54cbaa7c8b | <ide><path>Libraries/Lists/ListView/ListView.js
<ide> const RCTScrollViewManager = require('NativeModules').ScrollViewManager;
<ide> const ScrollView = require('ScrollView');
<ide> const ScrollResponder = require('ScrollResponder');
<ide> const StaticRenderer = require('StaticRenderer');
<del>const TimerMixin = require... | 1 |
PHP | PHP | update doc blocks | 3b57704a279ec409417a251c5850938422176831 | <ide><path>lib/Cake/View/View.php
<ide> * but can also take the form of JSON, XML, PDF's or streaming files.
<ide> *
<ide> * CakePHP uses a two-step-view pattern. This means that the view content is rendered first,
<del> * and then inserted into the selected layout. A special `$content_for_layout` variable is avai... | 1 |
PHP | PHP | add table name quoting to update queries | e67599835044fb7d1b073ac5480b9f1987c2ea0d | <ide><path>src/Database/IdentifierQuoter.php
<ide> public function quote(Query $query)
<ide>
<ide> if ($query->type() === 'insert') {
<ide> $this->_quoteInsert($query);
<add> } elseif ($query->type() === 'update') {
<add> $this->_quoteUpdate($query);
<ide> } else {
<ide> ... | 1 |
PHP | PHP | add sqlite query driver | 295c3b80c26c4b55d13e03640f71c82bd14dbca1 | <ide><path>laravel/database/connection.php
<ide> protected function grammar()
<ide> case 'mysql':
<ide> return $this->grammar = new Query\Grammars\MySQL($this);
<ide>
<add> case 'sqlite':
<add> return $this->grammar = new Query\Grammars\SQLite($this);
<add>
<ide> case 'sqlsrv':
<ide> return $this->g... | 3 |
Go | Go | use checker on integration test when possible | 710817a71b40287acc546fe2e08367b2a02dae54 | <ide><path>integration-cli/docker_api_resize_test.go
<ide> import (
<ide> "net/http"
<ide> "strings"
<ide>
<add> "github.com/docker/docker/pkg/integration/checker"
<ide> "github.com/go-check/check"
<ide> )
<ide>
<ide> func (s *DockerSuite) TestResizeApiResponseWhenContainerNotStarted(c *check.C) {
<ide> c.Assert(... | 5 |
PHP | PHP | use phpunit appropriate methods in getmockformodel | fb52be5d51fa6060b069525c5e9220d0dcb0ac75 | <ide><path>src/TestSuite/TestCase.php
<ide> public function getMockForModel(string $alias, array $methods = [], array $optio
<ide> [, $baseClass] = pluginSplit($alias);
<ide> $options += ['alias' => $baseClass, 'connection' => $connection];
<ide> $options += $locator->getConfig($alias);
<add> ... | 3 |
Python | Python | add more info about max pid in docstring | e1b2f7cbd3b1dd1a2fb031b41cf01fc5cdc82a88 | <ide><path>glances/processes.py
<ide> def disable_extended(self):
<ide>
<ide> @property
<ide> def pid_max(self):
<del> """Get the maximum number of PID
<del> On a Linux operating system, the value is read from
<del> the /proc/sys/kernel/pid_max file.
<add> """
<add> Get the m... | 1 |
Mixed | Javascript | use secure links | 3bcf17dca032d8c9cae9b35bd4dcd1c9464defa7 | <ide><path>CONTRIBUTING.md
<ide> that include your webpack.config.js and relevant files are more likely to receiv
<ide> If you have created your own loader/plugin please include it on the relevant
<ide> documentation pages:
<ide>
<del>[List of loaders](http://webpack.github.io/docs/list-of-loaders.html)
<del>[List of ... | 8 |
Javascript | Javascript | add note about mistaken named / default export | 5bfb87874391e635cb2458a29a7c878cb4dec89c | <ide><path>packages/react-dom/src/__tests__/ReactComponent-test.js
<ide> describe('ReactComponent', () => {
<ide> 'Element type is invalid: expected a string (for built-in components) ' +
<ide> 'or a class/function (for composite components) but got: undefined. ' +
<ide> "You likely forgot to expo... | 6 |
Python | Python | fix bug #738 and add corresponding tests | 5fc5deb1d60e83c9d15fb2f8d623dbef52751e3b | <ide><path>numpy/lib/_datasource.py
<ide> def abspath(self, path):
<ide> if len(splitpath) > 1:
<ide> path = splitpath[1]
<ide> scheme, netloc, upath, uparams, uquery, ufrag = urlparse(path)
<del> return os.path.join(self._destpath, netloc, upath.strip(os.sep))
<add> netloc = s... | 2 |
Go | Go | fix container cleanup on daemon restart | c0d56ab71701ba47ca6066c7952e724f4f5977c0 | <ide><path>integration/container/daemon_linux_test.go
<add>package container
<add>
<add>import (
<add> "context"
<add> "fmt"
<add> "io/ioutil"
<add> "strconv"
<add> "strings"
<add> "testing"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/api/types/container"
<add> "github.com/docker/do... | 2 |
Javascript | Javascript | update correct path to use when exporting 404 page | 1496ad62993de66ea3fdd39cd4bfd099f0ce902a | <ide><path>packages/next/export/index.js
<ide> export default async function (dir, options, configuration) {
<ide> }
<ide>
<ide> if (page === '/_error') {
<del> defaultPathMap['/404'] = { page }
<add> defaultPathMap['/404.html'] = { page }
<ide> continue
<ide> }
<ide>
<ide><path>test/integ... | 2 |
Ruby | Ruby | move os checks to extend/os | 01b93117cddd2b90277bf1b8030675868328940b | <ide><path>Library/Homebrew/dependency_collector.rb
<ide> require "requirements"
<ide> require "set"
<ide>
<del>if OS.mac?
<del> require "extend/os/mac/dependency_collector"
<del>elsif OS.linux?
<del> require "extend/os/linux/dependency_collector"
<del>end
<del>
<ide> ## A dependency is a formula that another formul... | 2 |
Go | Go | fix testparallel "bad file descriptor" | f39b83e232e398d1c89b0484752e46168e486a5d | <ide><path>libnetwork/libnetwork_linux_test.go
<ide> func runParallelTests(t *testing.T, thrNumber int) {
<ide> <-thrdone
<ide> }
<ide>
<del> testns.Close()
<add> if testns != origins {
<add> testns.Close()
<add> }
<ide> if err := net2.Delete(); err != nil {
<ide> t.Fatal(err)
<ide> } | 1 |
Ruby | Ruby | ignore `info.plist` for nested apps | cb2facfec13f38ccd0926a35af4678b0ca6eb777 | <ide><path>Library/Homebrew/unversioned_cask_checker.rb
<ide> def guess_cask_version
<ide> end
<ide>
<ide> info_plist_paths = apps.flat_map do |app|
<del> Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist")
<add> Pathname.glob(dir/"**"/app.source.basename/"Contents"/"I... | 1 |
Ruby | Ruby | use an empty hash for magical speed | 547881594b32a447178c3e90c88e1b6437ee51e0 | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def apply_form_for_options!(record, object, options) #:nodoc:
<ide> method: method
<ide> )
<ide>
<del> options[:url] ||= polymorphic_path(record, format: options.delete(:format))
<add> options[:url] ||= if options.key?(:... | 1 |
Ruby | Ruby | replace use of missingsourcefile with loaderror | 370bfda55ff11e289a8ff2464f4a6284e1f0977a | <ide><path>actionpack/lib/abstract_controller/helpers.rb
<ide> def default_helper_module!
<ide> module_name = name.sub(/Controller$/, '')
<ide> module_path = module_name.underscore
<ide> helper module_path
<del> rescue MissingSourceFile => e
<add> rescue LoadError => e
<ide> ra... | 3 |
PHP | PHP | allow specifying name for application rules | b625cb7b3bc47d6cf764f044ed0f72885289dc8a | <ide><path>src/ORM/RulesChecker.php
<ide> public function __construct(array $options)
<ide> *
<ide> * @param callable $rule A callable function or object that will return whether
<ide> * the entity is valid or not.
<add> * @param string $name The alias for a rule.
<ide> * @param array $options L... | 2 |
Text | Text | use code markup/markdown in headers | adc9fa240e31daf689c3b4b1d90b9e3221559a6d | <ide><path>doc/api/console.md
<ide> myConsole.warn(`Danger ${name}! Danger!`);
<ide> // Prints: Danger Will Robinson! Danger!, to err
<ide> ```
<ide>
<del>## Class: Console
<add>## Class: `Console`
<ide> <!-- YAML
<ide> changes:
<ide> - version: v8.0.0
<ide> const { Console } = require('console');
<ide> const { Cons... | 1 |
Go | Go | remove defaultsleepimage constant | 27f432ca57fb6d4d0409fc3c5358b74feae228cc | <ide><path>integration-cli/benchmark_test.go
<ide> func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *check.C) {
<ide> go func() {
<ide> defer innerGroup.Done()
<ide> for i := 0; i < numIterations; i++ {
<del> args := []string{"run", "-d", defaultSleepImage}
<add> args := []string{"run", "-... | 5 |
Go | Go | add secretupdate method to client | 77b8465d7e68ca102d7aae839c7b3fe0ecd28398 | <ide><path>cli/command/service/update_test.go
<ide> func (s secretAPIClientMock) SecretRemove(ctx context.Context, id string) error
<ide> func (s secretAPIClientMock) SecretInspectWithRaw(ctx context.Context, name string) (swarm.Secret, []byte, error) {
<ide> return swarm.Secret{}, []byte{}, nil
<ide> }
<add>func (s s... | 4 |
Python | Python | add example to savez | f826c7b7f2719a95731da14102d28cc7f3147c01 | <ide><path>numpy/lib/io.py
<ide> def savez(file, *args, **kwds):
<ide> The .npz file format is a zipped archive of files named after the variables
<ide> they contain. Each file contains one variable in .npy format.
<ide>
<add> Examples
<add> --------
<add> >>> x = np.random.random((3, 3))
<add> >>... | 1 |
Ruby | Ruby | update small typo in documentation | 20613519c25808cf5b6b405dd76eb6cea4ae8bd2 | <ide><path>actionpack/lib/action_controller/metal/helpers.rb
<ide> module ActionController
<ide> # end
<ide> # end
<ide> #
<del> # Then, in any view rendered by <tt>EventController</tt>, the <tt>format_time</tt> method can be called:
<add> # Then, in any view rendered by <tt>EventsController</tt>, the <tt... | 1 |
Go | Go | use proper wait function for --pid=host | 489ab77f4aea9bc3e7ada751cab5d827040b1e8b | <ide><path>daemon/execdriver/native/driver.go
<ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
<ide> logrus.Warnf("Your kernel does not support OOM notifications: %s", err)
<ide> }
<ide> waitF := p.Wait
<del> if nss := cont.Config().Namespaces; nss.Contains(configs.NEWPID) {
<a... | 1 |
Text | Text | fix code example for `generating reducers` | b8b596efc334982c470f449e06f80c34913fed22 | <ide><path>docs/recipes/ReducingBoilerplate.md
<ide> Let's write a function that lets us express reducers as an object mapping from a
<ide>
<ide> ```js
<ide> export const todos = createReducer([], {
<del> [ActionTypes.ADD_TODO](state, action) {
<add> [ActionTypes.ADD_TODO]: (state, action) => {
<ide> let text = ... | 1 |
PHP | PHP | remove methods that simply call parent | 178ad5513cad4550771df5b815c6bebeda417446 | <ide><path>src/I18n/FrozenTime.php
<ide> public static function listTimezones($filter = null, $country = null, $options =
<ide>
<ide> return array_combine($identifiers, $identifiers);
<ide> }
<del>
<del> /**
<del> * Returns true this instance will happen within the specified interval
<del> *
<de... | 1 |
PHP | PHP | correct doc block | c321ee5fecfd1da30f1b30e0a73d48770d4a80d7 | <ide><path>lib/Cake/Utility/String.php
<ide> public static function wordWrap($text, $width = 72, $break = "\n", $cut = false)
<ide> * - `html` If true, will ignore any HTML tags, ensuring that only the correct text is highlighted
<ide> * - `regex` a custom regex rule that is used to match words, default is '|$tag|iu'... | 1 |
Ruby | Ruby | add missing require | f249d07c44d2f18e508ac83153c9f9cb8bce340b | <ide><path>actionpack/lib/action_controller/caching/pages.rb
<ide> require 'fileutils'
<add>require 'active_support/concern'
<ide> require 'active_support/core_ext/class/attribute_accessors'
<ide>
<ide> module ActionController #:nodoc: | 1 |
PHP | PHP | fix parse errors in 7.2 | 2246029d7f4ba1ca1023cf20b5ee6e01826b2ae6 | <ide><path>tests/TestCase/Console/ConsoleIoTest.php
<ide> public function testVerboseOut()
<ide> ->withConsecutive(
<ide> ['Verbose', 1],
<ide> ['Normal', 1],
<del> ['Quiet', 1],
<add> ['Quiet', 1]
<ide> );
<ide>
<ide> $this-... | 1 |
Javascript | Javascript | fix reponder logic in text | e2ce22b823661a7dcf6b70a825921a2910383bd1 | <ide><path>Libraries/Text/Text.js
<ide> class TouchableText extends React.Component<Props, State> {
<ide> onResponderGrant: (event: SyntheticEvent<>, dispatchID: string): void => {
<ide> nullthrows(this.touchableHandleResponderGrant)(event, dispatchID);
<ide> if (this.props.onResponderGrant != nul... | 1 |
Javascript | Javascript | make combined scripts | 23d11dadc157377d984197590bfd42d43ac382ce | <ide><path>d3.layout.js
<ide> d3.layout.partition = function() {
<ide> n = children.length,
<ide> c,
<ide> d;
<del> dx /= node.value;
<add> dx = node.value === 0
<add> ? 0 : dx / node.value;
<ide> while (++i < n) {
<ide> position(c = children[i], x, d = c.val... | 2 |
PHP | PHP | remove unused classes | bb9e851d19ac5c4a5bccabd0594405ae254e7b5e | <ide><path>tests/TestCase/TestSuite/ControllerTestCaseTest.php
<ide> use Cake\TestSuite\Reporter\HtmlReporter;
<ide> use Cake\TestSuite\TestCase;
<ide>
<del>/**
<del> * AppController class
<del> *
<del> */
<del>class AppController extends Controller {
<del>
<del>/**
<del> * helpers property
<del> *
<del> * @var array
... | 1 |
PHP | PHP | add implementation for path method | 9582a6d4404c301230cb32462db66f56b7e0507d | <ide><path>src/Illuminate/Contracts/Pagination/Paginator.php
<ide> public function hasPages();
<ide> */
<ide> public function hasMorePages();
<ide>
<add> /**
<add> * Get the base path
<add> *
<add> * @return string|null
<add> */
<add> public function path();
<add>
<ide> /**
<ide> ... | 4 |
Text | Text | add upcoming breaking change | fb39e322ea49f31fab7f42e5dba9883fc68aa3ae | <ide><path>CHANGELOG.md
<add># NOTICE: Pending Breaking Change
<add>
<add>The next 1.3.0 release candidate (1.3.0-rc.2) will contain a perf-related change that is likely to
<add>introduce breakages in some applications. The change will affect filters and function call
<add>expressions, and will not call the function if... | 1 |
PHP | PHP | fix timestamps in mysql | 568104a51d4696ea50c5ce3623b2653c1e6566b2 | <ide><path>src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
<ide> protected function typeTime(Fluent $column)
<ide> */
<ide> protected function typeTimestamp(Fluent $column)
<ide> {
<add> if ( ! $column->nullable) return 'timestamp default 0';
<add>
<ide> return 'timestamp';
<ide> }
<ide> | 1 |
Javascript | Javascript | update the unsub route | e5de7d18376e6b10ed0b183e9477ac567b361def | <ide><path>server/boot/randomAPIs.js
<ide> module.exports = function(app) {
<ide>
<ide> function unsubscribeById(req, res, next) {
<ide> const { unsubscribeId } = req.params;
<add> if (!unsubscribeId) {
<add> req.flash('info', {
<add> msg: 'We could not find an account to unsubscribe'
<add> }... | 1 |
Ruby | Ruby | add precision assignment back to timestamps method | a7703ce10b7ab0127d65fbbbbcc351163aac2ad1 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> def check_constraint(expression, **options)
<ide> def timestamps(**options)
<ide> options[:null] = false if options[:null].nil?
<ide>
<add> if !options.key?(:precision) && @conn.supports_datetime_wit... | 2 |
Javascript | Javascript | assert delegation type in delegatedmodule test | fcae4da622da251748d66ac4632b192723e0deb9 | <ide><path>test/DelegatedModule.test.js
<ide> describe("DelegatedModule", function() {
<ide> const delegatedModule = new DelegatedModule(sourceRequest, data, type, userRequest);
<ide> delegatedModule.updateHash(hash);
<ide> });
<del> it("calls hash function with delegated module ID", function() {
<add> it("up... | 1 |
Python | Python | fix subsequent pipe detection in entityruler | 6c221d4841126ae6e923b02df28c303bba5d3bd6 | <ide><path>spacy/pipeline/entityruler.py
<ide> def add_patterns(self, patterns):
<ide>
<ide> # disable the nlp components after this one in case they hadn't been initialized / deserialised yet
<ide> try:
<del> current_index = self.nlp.pipe_names.index(self.name)
<add> current_inde... | 1 |
Python | Python | fix the other test for | 4768f39c95ea702788eafe86c6206fb605773965 | <ide><path>tests/regressiontests/comment_tests/tests/feed_tests.py
<ide> class CommentFeedTests(CommentTestCase):
<ide> def test_feed(self):
<ide> response = self.client.get(self.feed_url)
<ide> self.assertEqual(response.status_code, 200)
<del> self.assertEqual(response['Content-Type'], 'appl... | 1 |
Text | Text | add an example of an arg with the emitter | 1bba80c2b22b8ce18a0963673cf87774186cb554 | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> class Something
<ide> @emitter.on 'did-change', callback
<ide>
<ide> methodThatFiresAChange: ->
<del> @emitter.emit 'did-change'
<add> @emitter.emit 'did-change', {data: 2}
<add>
<add>something = new Something
<add>something.onDidChange (eventObject... | 1 |
Go | Go | change inode map to struct from bool | d072f316e300231b5d6dbfbaca348cdf65aad75d | <ide><path>utils/fs.go
<ide> import (
<ide>
<ide> // TreeSize walks a directory tree and returns its total size in bytes.
<ide> func TreeSize(dir string) (size int64, err error) {
<del> data := make(map[uint64]bool)
<add> data := make(map[uint64]struct{})
<ide> err = filepath.Walk(dir, func(d string, fileInfo os.File... | 1 |
Go | Go | fix race/deadlock in v1 plugin handlers | 2938dce794be7559ba73b4e9630015020a7fa937 | <ide><path>integration-cli/docker_cli_external_graphdriver_unix_test.go
<ide> func (s *DockerExternalGraphdriverSuite) SetUpTest(c *check.C) {
<ide> })
<ide> }
<ide>
<add>func (s *DockerExternalGraphdriverSuite) OnTimeout(c *check.C) {
<add> s.d.DumpStackAndQuit()
<add>}
<add>
<ide> func (s *DockerExternalGraphdriver... | 3 |
Go | Go | add missing error-check (errcheck) | 6ff727b13c52658e20bb63494d595beeeb5407ea | <ide><path>api/types/filters/parse_test.go
<ide> func TestWalkValues(t *testing.T) {
<ide> f.Add("status", "running")
<ide> f.Add("status", "paused")
<ide>
<del> f.WalkValues("status", func(value string) error {
<add> err := f.WalkValues("status", func(value string) error {
<ide> if value != "running" && value != ... | 1 |
Javascript | Javascript | add quaternion tests | 2a2cafcac2af98a008b3761d2bc4e63c905ef6a3 | <ide><path>test/unit/src/math/Quaternion.tests.js
<ide> export default QUnit.module( 'Maths', () => {
<ide>
<ide> } );
<ide>
<del> QUnit.todo( "clone", ( assert ) => {
<add> QUnit.test( "clone", ( assert ) => {
<ide>
<del> assert.ok( false, "everything's gonna be alright" );
<add>
<add> var a = new Quaternio... | 1 |
Python | Python | allow input for tty tests | d0fc382c4b18a7021d0a93194bc4b304ed6f7d6f | <ide><path>test/pseudo-tty/testcfg.py
<ide>
<ide> class TTYTestCase(test.TestCase):
<ide>
<del> def __init__(self, path, file, expected, arch, mode, context, config):
<add> def __init__(self, path, file, expected, input, arch, mode, context, config):
<ide> super(TTYTestCase, self).__init__(context, path, arch, ... | 2 |
Python | Python | make like= in python functions strict | adc261a50b11310c97ffbcf57d6e20a5980bfed9 | <ide><path>numpy/core/_asarray.py
<ide> """
<ide> from .overrides import (
<ide> array_function_dispatch,
<add> array_function_dispatch_like,
<ide> set_array_function_like_doc,
<ide> set_module,
<ide> )
<ide> def asarray(a, dtype=None, order=None, *, like=None):
<ide>
<ide> """
<ide> if like is ... | 4 |
Javascript | Javascript | use deepmerge in deepmerge | 82030ae054ba10bbd25ef00b304990632780f11d | <ide><path>lib/utils.js
<ide> function deepMerge(/* obj1, obj2, obj3, ... */) {
<ide> var result = {};
<ide> function assignValue(val, key) {
<ide> if (typeof result[key] === 'object' && typeof val === 'object') {
<del> result[key] = merge(result[key], val);
<add> result[key] = deepMerge(result[key], ... | 1 |
Go | Go | fix network alias issue | d63a5a1ff593f14957f3e0a9678633e8237defc9 | <ide><path>api/server/router/network/network_routes.go
<ide> func (n *networkRouter) postNetworkConnect(ctx context.Context, w http.ResponseW
<ide> return err
<ide> }
<ide>
<del> // Always make sure there is no ambiguity with respect to the network ID/name
<del> nw, err := n.backend.FindNetwork(vars["id"])
<del> if... | 2 |
Python | Python | remove unreachable code | d9aaa0147d13535ee137694765f61cc1d68371aa | <ide><path>glances/password_list.py
<ide> def get_password(self, host=None):
<ide> return self._password_dict['default']
<ide> except (KeyError, TypeError):
<ide> return None
<del> return None
<ide>
<ide> def set_password(self, host, password):... | 1 |
Python | Python | add roberta to doc | ae1d03fc51bb22ed59517ee6f92c560417fdb049 | <ide><path>examples/run_ner.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>""" Fine-tuning the library models for named entity recognition on CoNLL-2003 (Bert). ""... | 1 |
Javascript | Javascript | update example to use a module | 39c7c909fb3a6ec5f79d66227ea84b075159b888 | <ide><path>src/ng/directive/input.js
<ide> var minlengthDirective = function() {
<ide> * specified in form `/something/` then the value will be converted into a regular expression.
<ide> *
<ide> * @example
<del> <example name="ngList-directive">
<add> <example name="ngList-directive" module="listExample">
<i... | 1 |
Javascript | Javascript | fix regression from | 24d660eebe1b38bf602ffaf21a25e8f757fb7f87 | <ide><path>web/viewer.js
<ide> var RenderingStates = {
<ide> FINISHED: 3
<ide> };
<ide>
<del>PDFJS.workerSrc = '../build/pdf.js';
<add>//#if (GENERIC || CHROME)
<add>//PDFJS.workerSrc = '../build/pdf.js';
<add>//#endif
<ide>
<ide> var mozL10n = document.mozL10n || document.webL10n;
<ide> | 1 |
Python | Python | fix conv3d tests | 8ad686595202c6aabc44af3d16c0440e016e3fae | <ide><path>keras/layers/convolutional.py
<ide> def __init__(self, nb_filter, kernel_dim1, kernel_dim2, kernel_dim3,
<ide> super(Convolution3D, self).__init__(**kwargs)
<ide>
<ide> def build(self, input_shape):
<add> assert len(input_shape) == 5
<add> self.input_spec = [InputSpec(shape=input_s... | 4 |
Javascript | Javascript | introduce a supported way to slice children | d50148591b9a8bf7a49f873e1eaf5f8af364cb70 | <ide><path>src/utils/__tests__/sliceChildren-test.js
<add>/**
<add> * Copyright 2013 Facebook, Inc.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License at
<add> *
<add> * htt... | 2 |
Javascript | Javascript | fix resolve caching with different resolve options | da5ab282e6f929d9882edfdcffef4190dab93e2d | <ide><path>lib/ResolverFactory.js
<ide> module.exports = class ResolverFactory {
<ide> resolveOptions: new HookMap(
<ide> () => new SyncWaterfallHook(["resolveOptions"])
<ide> ),
<del> /** @type {HookMap<SyncHook<[Resolver, Object]>>} */
<del> resolver: new HookMap(() => new SyncHook(["resolver", "resolve... | 2 |
Python | Python | remove skipping tests of mssql for python 3.8 | d51957165b2836fe0006d318c299c149fb5d35b0 | <ide><path>tests/always/test_deprecations.py
<ide> # under the License.
<ide>
<ide> import importlib
<del>import sys
<ide> import warnings
<ide> from inspect import isabstract
<ide> from unittest import mock
<ide> def assert_proper_import(self, old_resource, new_resource):
<ide> importlib.reload(importlib.... | 1 |
Python | Python | improve memory usage in pep3118 format parsing | e0fb54f5751e93bcb36eccc00681a9afc35e1c37 | <ide><path>numpy/core/_internal.py
<ide> def _view_is_safe(oldtype, newtype):
<ide> }
<ide> _pep3118_standard_typechars = ''.join(_pep3118_standard_map.keys())
<ide>
<del>def _dtype_from_pep3118(spec):
<ide>
<del> class Stream(object):
<del> def __init__(self, s):
<del> self.s = s
<del> ... | 2 |
Go | Go | fix race on shutting down | ce9e9ff4a101eec5632704003fae772e8762eb15 | <ide><path>server/server.go
<ide> import (
<ide> "strconv"
<ide> "strings"
<ide> "sync"
<add> "sync/atomic"
<ide> "syscall"
<ide> "time"
<ide>
<ide> func InitServer(job *engine.Job) engine.Status {
<ide> c := make(chan os.Signal, 1)
<ide> gosignal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
<ide> ... | 1 |
Python | Python | check response status in slack webhook hook. | 4fb5c017fe5ca41ed95547a857c9c39efc4f1476 | <ide><path>airflow/providers/slack/hooks/slack_webhook.py
<ide> def execute(self) -> None:
<ide> endpoint=self.webhook_token,
<ide> data=slack_message,
<ide> headers={'Content-type': 'application/json'},
<del> extra_options={'proxies': proxies},
<add> extra_opti... | 1 |
Java | Java | move metadataextractor to the rsocket package | d33e4878a0dad8745925188c5334f45076a0ea3b | <add><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultMetadataExtractor.java
<del><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/annotation/support/DefaultMetadataExtractor.java
<ide> * See the License for the specific language governing permissions and
<ide... | 7 |
PHP | PHP | fix deprecation warning | d39d92df9b3c509d40b971207f03eb7f04087370 | <ide><path>src/Illuminate/Collections/Arr.php
<ide> public static function exists($array, $key)
<ide> return $array->offsetExists($key);
<ide> }
<ide>
<add> if (is_float($key)) {
<add> $key = (string) $key;
<add> }
<add>
<ide> return array_key_exists($key, $array);
... | 1 |
Javascript | Javascript | remove a duplicate test | 33c3121f43bfbfa18d6ab0b98f3d447b713023a8 | <ide><path>src/renderers/shared/shared/__tests__/ReactStatelessComponent-test.js
<ide> describe('ReactStatelessComponent', () => {
<ide> expect(() => ReactTestUtils.renderIntoDocument(<Child />)).not.toThrow();
<ide> });
<ide>
<del> it('should warn when using non-React functions in JSX', () => {
<del> spyOn(... | 1 |
Javascript | Javascript | fix bugs related to paths with trailing slashes" | 7be27240b5b4f9a362c63b854e5e55890b858912 | <ide><path>lib/path.js
<ide> if (isWindows) {
<ide> // 'root' is just a slash, or nothing.
<ide> var splitPathRe =
<ide> /^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/;
<del> var trailingSlash = /\/+$/;
<ide> var splitPath = function(filename) {
<del>
<del> // removes trailing slashes... | 2 |
Text | Text | add my pronoun | e75163f73e6556d6b091167945ad1fa947f40be0 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> * [brendanashworth](https://github.com/brendanashworth) -
<ide> **Brendan Ashworth** <brendan.ashworth@me.com>
<ide> * [BridgeAR](https://github.com/BridgeAR) -
<del>**Ruben Bridgewater** <ruben@bridgewater.d... | 1 |
PHP | PHP | update listenermakecommand.php | 346d352d15802b4fdbd692595235e23e2e12ba6c | <ide><path>src/Illuminate/Foundation/Console/ListenerMakeCommand.php
<ide> protected function buildClass($name)
<ide> {
<ide> $event = $this->option('event');
<ide>
<del> if (! Str::startsWith($event, $this->laravel->getNamespace()) &&
<del> ! Str::startsWith($event, 'Illuminate')) {
<add... | 1 |
Java | Java | set event category for touch events on android | 155a1a8ac94023e7b0c114f735a2dbd4ceab79e2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
<ide> import com.facebook.react.config.ReactFeatureFlags;
<ide> import com.facebook.react.fabric.events.EventBeatManager;
<add>import com.facebook.react.fabric.events.... | 6 |
Ruby | Ruby | reproduce the preloader regression in | c9a9dcd383de529cec6499677e3231265da00123 | <ide><path>activerecord/test/cases/associations_test.rb
<ide> require "models/bird"
<ide> require "models/treasure"
<ide> require "models/price_estimate"
<add>require "models/invoice"
<add>require "models/discount"
<add>require "models/line_item"
<add>require "models/shipping_line"
<ide>
<ide> class AssociationsTest <... | 6 |
Javascript | Javascript | support texture format in gltfloader | cfacb47f9ab14e17d926a2cea888df4ab0f69a0e | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> if ( texture.name !== undefined ) _texture.name = texture.name;
<ide>
<add> _texture.format = texture.format !== undefined ? WEBGL_TEXTURE_FORMATS[ texture.format ] : THREE.RGBAFormat;
<add>
<add> if (... | 1 |
PHP | PHP | add missing articles | 6319d94ccaf8169b103813a82139814573ddef09 | <ide><path>src/Illuminate/Auth/GuardHelpers.php
<ide> trait GuardHelpers
<ide> protected $provider;
<ide>
<ide> /**
<del> * Determine if current user is authenticated. If not, throw an exception.
<add> * Determine if the current user is authenticated. If not, throw an exception.
<ide> *
<ide> ... | 36 |
Python | Python | add intel em64t fortran compiler support | 50e69de29085387db2e0ab7768bc9b81c2712169 | <ide><path>numpy/distutils/cpuinfo.py
<ide> def _is_Itanium(self):
<ide>
<ide> def _is_XEON(self):
<ide> return re.match(r'.*?XEON\b',
<del> self.info[0]['model name']) is not None
<add> self.info[0]['model name'],re.IGNORECASE) is not None
<ide>
<ide> _is... | 4 |
Go | Go | remove some redundant formatting | 838fc976c82c5d09e622cdf275ebd4032e06819c | <ide><path>integration-cli/docker_cli_inspect_test.go
<ide> func (s *DockerCLIInspectSuite) TestInspectTypeFlagWithInvalidValue(c *testing.T
<ide>
<ide> out, exitCode, err := dockerCmdWithError("inspect", "--type=foobar", "busybox")
<ide> assert.Assert(c, err != nil, "%d", exitCode)
<del> assert.Equal(c, exitCode, 1... | 2 |
Java | Java | remove todos (replaced with jira tickets) | 1c47c8f35c91b1c77b27ab5092ff01b5733ec116 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHandler.java
<ide> public interface MessageHandler {
<ide> */
<ide> void handleMessage(Message<?> message) throws MessagingException;
<ide>
<del> /*
<del> * TODO: exceptions
<del> * @throws org.springframework.integration.MessageReject... | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.