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 | add v3.28.10 to changelog | 701ee45b79b4ee3f860d2c380aa3d87212e3fad5 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>## v3.28.10 (November 2, 2022)
<add>
<add>- [CVE pending](https://emberjs.com/blog/ember-4-8-1-released) Fix a prototype pollution vulnerability in `set` and `setProperties`
<add>
<ide> ### v3.24.7 (November 2, 2022)
<ide>
<ide> - [CVE pending](https://emberj... | 1 |
Javascript | Javascript | avoid exception from "new shadermaterial()" | 8b201481846a936986c3d0cc3de3d087b90e6c0e | <ide><path>src/materials/ShaderMaterial.js
<ide> THREE.ShaderMaterial = function ( parameters ) {
<ide> this.uniforms = {};
<ide> this.attributes = [];
<ide>
<del> if ( parameters.attributes !== undefined && Array.isArray( parameters.attributes ) === false ) {
<del>
<del> console.warn( 'THREE.ShaderMaterial: attrib... | 1 |
Javascript | Javascript | use generatetransform for geometry transforms | ad44277f5554cee5928c8f013114a1ba56fcc286 | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> }, null );
<ide>
<del> var preTransform = new THREE.Matrix4();
<del>
<ide> // TODO: if there is more than one model associated with the geometry, AND the models have
<ide> // different geometric transforms, then this will cause problems
<ide> // if ( mo... | 1 |
Python | Python | fix typo in comment | b00ec66ba948077b61e25cf7dc004857c432b01a | <ide><path>keras/backend/tensorflow_backend.py
<ide>
<ide> # This dictionary holds a mapping {graph: UID_DICT}.
<ide> # each UID_DICT is a dictionary mapping name prefixes to a current index,
<del># used for generic graph-specific string UIDs
<add># used for generating graph-specific string UIDs
<ide> # for various na... | 1 |
Ruby | Ruby | use bytesize rather than force encoding | 3f81230a723a04a49aa28baf038566768bd392ce | <ide><path>actionpack/test/dispatch/request/multipart_params_parsing_test.rb
<ide> def teardown
<ide>
<ide> # Rack doesn't handle multipart/mixed for us.
<ide> files = params['files']
<del> files.force_encoding('ASCII-8BIT')
<del> assert_equal 19756, files.size
<add> assert_equal 19756, files.bytesize... | 1 |
Go | Go | fix incorrect ping, and cleanup | a3b1b66bb35485a5728590a25467de1c19d0bf59 | <ide><path>integration/system/ping_test.go
<ide> func TestPingSwarmHeader(t *testing.T) {
<ide> ctx := context.TODO()
<ide>
<ide> t.Run("before swarm init", func(t *testing.T) {
<del> res, _, err := request.Get("/_ping")
<add> p, err := client.Ping(ctx)
<ide> assert.NilError(t, err)
<del> assert.Equal(t, res.St... | 1 |
Python | Python | rewrite tests for issue | 0e62809a4311afcddd16a4dc57700026c2fea662 | <ide><path>spacy/tests/regression/test_issue1769.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from ...lang.da.lex_attrs import like_num as da_like_num
<del># from ...lang.en.lex_attrs import like_num as en_like_num
<del># from ...lang.fr.lex_attrs import like_num as fr_like_num
<del># from ...lang.id.l... | 1 |
Text | Text | add link to github draft pr page | 941a09bad225f1294ad4295ab9362eb30fae633f | <ide><path>.github/CONTRIBUTING.md
<ide> When you’ve decided to make changes, start with the following:
<ide>
<ide> * Once done with a patch / feature do not add more commits to a feature branch
<ide> * Create separate branches per patch or feature.
<del>* If you make a PR but it is not actually ready to be pulled int... | 1 |
Ruby | Ruby | fix pathname concatenation | b681ed42006ed92565ab97c8a4dee8fa4f8c0be7 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def initialize name, package
<ide> @co = HOMEBREW_CACHE + "#{name}--svn"
<ide> end
<ide>
<del> @co << "-HEAD" if ARGV.build_head?
<add> @co + "-HEAD" if ARGV.build_head?
<ide> end
<ide>
<ide> def cached_location | 1 |
Ruby | Ruby | add branch param | ddcb0519b6740eb4147e7520de424e895c0318bc | <ide><path>Library/Homebrew/dev-cmd/pr-publish.rb
<ide> def pr_publish_args
<ide> switch "--autosquash",
<ide> description: "If supported on the target tap, automatically reformat and reword commits "\
<ide> "in the pull request to our preferred format."
<add> flag "-... | 1 |
Python | Python | remove uses of scalar aliases | 4be513d47212a28c000107d7c532c0a5a4312953 | <ide><path>numpy/core/tests/test_api.py
<ide> def test_array_astype_warning(t):
<ide>
<ide> @pytest.mark.parametrize(["dtype", "out_dtype"],
<ide> [(np.bytes_, np.bool_),
<del> (np.unicode, np.bool_),
<add> (np.unicode_, np.bool_),
<ide> (np.dtype("S10,S9"), np.dtype("?,?"))])
<ide> de... | 4 |
Go | Go | remove unnecessary signal conditional | c8ec36d1b9bfbe1e22acd0124409ecb5a109d406 | <ide><path>commands.go
<ide> func (cli *DockerCli) monitorTtySize(id string) error {
<ide> }
<ide> cli.resizeTty(id)
<ide>
<del> c := make(chan os.Signal, 1)
<del> signal.Notify(c, syscall.SIGWINCH)
<add> sigchan := make(chan os.Signal, 1)
<add> signal.Notify(sigchan, syscall.SIGWINCH)
<ide> go func() {
<del> for ... | 1 |
Python | Python | remove unneeded stuffs | 17e078e3c614588b7b6c365336f44047c237e7bd | <ide><path>libcloud/container/drivers/rancher.py
<ide>
<ide> class RancherResponse(JsonResponse):
<ide>
<del> def parse_body(self):
<del> if len(self.body) == 0 and not self.parse_zero_length_body:
<del> return self.body
<del> valid_content_types = ['application/json',
<del> ... | 1 |
Text | Text | add design documentation | 4f7eb502bf69ba32ab10a6e0ae8b7cbf133e3e8b | <ide><path>libnetwork/ROADMAP.md
<del># libnetwork: what's next?
<add># Roadmap
<ide>
<del>This document is a high-level overview of where we want to take libnetwork next.
<del>It is a curated selection of planned improvements which are either important, difficult, or both.
<add>Libnetwork is a young project and is st... | 5 |
Javascript | Javascript | fix reopen project when there are no open windows | 9f453e64fe4f55c243c32e7c0cfeec2cbcb3278c | <ide><path>spec/main-process/atom-application.test.js
<ide> describe('AtomApplication', function () {
<ide> )
<ide> atomApplication.promptForPathToOpen.reset()
<ide> })
<add>
<add> it('allows reopening an existing project after all windows are closed', async () => {
<add> const tempDirPath = mak... | 4 |
Python | Python | fix nasty `bnb` bug | 81d82e4f783925d100365458ccd8eea9aa16d0ab | <ide><path>src/transformers/modeling_utils.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
<ide> load_in_8bit=load_in_8bit,
<ide> )
<ide>
<del> cls.is_loaded_in_8bit = load_in_8bit
<add> model.is_loaded_in_8bit = load_in_8bit
<ide>
<i... | 1 |
Python | Python | fix mypy in providers/grpc and providers/imap | 4fa9cfd7de13cd79956fbb68f8416a5a019465a4 | <ide><path>airflow/providers/grpc/operators/grpc.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del>from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Sequence
<add>from typing import TYPE_CHECKING, Any, Callable, List, Optional, Sequence
<ide> ... | 2 |
Java | Java | add support for rx.completable as return value | 143b5c89dd7c9e9d603ccb289943ae45e262c8c5 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java
<ide> protected Mono<Void> writeBody(Object body, MethodParameter bodyType, ServerWebE
<ide> ResolvableType elementType;
<ide> if (adapter != null) {
<ide> publisher = ad... | 9 |
Javascript | Javascript | make dot optional when parsing months | 6fec7d3f836e6aa5294036b897362e26d5349b98 | <ide><path>src/locale/fr.js
<ide>
<ide> import moment from '../moment';
<ide>
<add>var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
<add> monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
... | 2 |
Go | Go | prefer crypto rand seed for pkg/rand | 4742a3964fd276a825a5ff4d1cf8417ae88abcb1 | <ide><path>pkg/random/random.go
<ide> package random
<ide>
<ide> import (
<add> cryptorand "crypto/rand"
<ide> "io"
<add> "math"
<add> "math/big"
<ide> "math/rand"
<ide> "sync"
<ide> "time"
<ide> func (r *lockedSource) Seed(seed int64) {
<ide> // NewSource returns math/rand.Source safe for concurrent use and initi... | 1 |
Mixed | Text | fix coffeescript syntax in code examples | 502d47d7f6b5bf9533676c44b9e325dc3feca3c0 | <ide><path>README.md
<ide> class WebNotificationsChannel < ApplicationCable::Channel
<ide> ```coffeescript
<ide> # Somewhere in your app this is called, perhaps from a NewCommentJob
<ide> ActionCable.server.broadcast \
<del> "web_notifications_1", { title: 'New things!', body: 'All shit fit for print' }
<add> "web_not... | 2 |
Text | Text | add release notes for 1.6.5 | 1991e77e43e09b55792af5ca082482d2f0cfaf05 | <ide><path>CHANGELOG.md
<add><a name="1.6.5"></a>
<add># 1.6.5 toffee-salinization (2017-07-03)
<add>
<add>
<add>## Bug Fixes
<add>- **core:**
<add> - correctly detect Error instances from different contexts
<add> ([6daca0](https://github.com/angular/angular.js/commit/6daca023e42098f7098b9bf153c8e53a17af84f1),
<add> ... | 1 |
Ruby | Ruby | make sure thread runs | 12e330fc566489d0a40b360e179037370d10403b | <ide><path>test/visitors/test_to_sql.rb
<ide> module Visitors
<ide> @visitor.send(:visit_Arel_Attributes_Attribute, @attr)
<ide> end
<ide>
<add> sleep 0.2
<ide> @visitor.accept(@table[:name])
<ide> assert_equal(:string, @visitor.last_column.type)
<ide> visit_integer_col... | 1 |
Javascript | Javascript | fix guard expression in timer.unref() | ebf9f297b30d6cf2e5060da91d63cebbedc448e2 | <ide><path>lib/timers.js
<ide> var Timeout = function(after) {
<ide> };
<ide>
<ide> Timeout.prototype.unref = function() {
<del> if (!this._handle) {
<add> if (this._handle) {
<add> this._handle.unref();
<add> } else if (typeof(this._onTimeout) === 'function') {
<ide> var now = Timer.now();
<ide> if (!th... | 2 |
Javascript | Javascript | fix all the linting errors in boot | 7c2f171d311ff693756fbba0ea939ea50d171462 | <ide><path>server/boot/challenge.js
<ide> exports.returnCurrentChallenge = function(req, res, next) {
<ide> exports.returnIndividualChallenge = function(req, res, next) {
<ide> var dashedName = req.params.challengeName;
<ide>
<del> var challengeName = /^(bonfire|waypoint|zipline|basejump)/i.test(dashedName) ? dashe... | 11 |
Javascript | Javascript | add check for wrk to test-keep-alive | 5fdd55473047b8e4fca79dae42b9ca2d0d5b08ae | <ide><path>test/pummel/test-keep-alive.js
<ide>
<ide> // This test requires the program 'wrk'.
<ide> const common = require('../common');
<del>if (common.isWindows)
<del> common.skip('no `wrk` on windows');
<add>
<add>const child_process = require('child_process');
<add>const result = child_process.spawnSync('wrk', [... | 1 |
Javascript | Javascript | remove ie9 soft-fails check | 3be6ce4c2900ec377560056236e79f8a9c2fea7f | <ide><path>packages/ember-metal/tests/descriptor_test.js
<ide> import {
<ide> descriptor
<ide> } from '..';
<ide>
<del>// IE9 soft-fails when trying to delete a non-configurable property
<del>const hasCompliantDelete = (function() {
<del> let obj = {};
<del>
<del> Object.defineProperty(obj, 'zomg', { configurable:... | 1 |
Text | Text | add an example vue integration.md | 4c277fd0f6436d72160c44749f127d69e3a86610 | <ide><path>docs/guides/player-workflows.md
<ide> This document outlines many considerations for using Video.js for advanced playe
<ide> * [React](#react)
<ide> * [Ember](#ember)
<ide> * [Angular](#angular)
<add> * [Vue](#vue)
<ide>
<ide> ## Accessing a player that has already been created on a page
<ide>
<ide>... | 2 |
Javascript | Javascript | add onbeforerender(), onafterrender() | a1b201556d6d3763112a0495ea19f0916ceb3321 | <ide><path>src/renderers/webgl/plugins/SpritePlugin.js
<ide> function SpritePlugin( renderer, sprites ) {
<ide>
<ide> if ( material.visible === false ) continue;
<ide>
<add> sprite.onBeforeRender( renderer, scene, camera, undefined, material, undefined );
<add>
<ide> gl.uniform1f( uniforms.alphaTest, material... | 1 |
PHP | PHP | remove the responsetransformer from use | ef090d02db82e567dc565185f0a3c53b004d9911 | <ide><path>src/Http/ActionDispatcher.php
<ide> public function __construct($factory = null, $eventManager = null, array $filter
<ide> $this->addFilter($filter);
<ide> }
<ide> $this->factory = $factory ?: new ControllerFactory();
<add>
<add> // Force aliases to be autoloaded.
<add> ... | 6 |
Python | Python | fix fab install command | 67cd2d42b045b0d2cbdf3a24e7b113a30b390647 | <ide><path>fabfile.py
<ide> def make():
<ide> with virtualenv(VENV_DIR) as venv_local:
<ide> venv_local('pip install cython')
<ide> venv_local('pip install murmurhash')
<add> venv_local('pip install wheel')
<ide> venv_local('pip install -r requirements.txt')
<ide> ... | 1 |
PHP | PHP | apply fixes from styleci | 6fc9fb08f3f1f4c272a8899621adec2af90c59a9 | <ide><path>src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
<ide> namespace Illuminate\Console\Scheduling;
<ide>
<ide> use Illuminate\Console\Command;
<del>use Illuminate\Support\Facades\Date;
<del>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Console\Events\ScheduledTaskFinished;
<ide> use ... | 1 |
Javascript | Javascript | add safeguards to reactcomponenttreedevtool | 900a588f6309ce1c8ab1670df95f7981ccf04277 | <ide><path>src/isomorphic/devtools/ReactComponentTreeDevtool.js
<ide>
<ide> var invariant = require('invariant');
<ide>
<del>var isTopLevelWrapperByID = {};
<ide> var unmountedContainerIDs = [];
<ide> var allChildIDsByContainerID = {};
<ide> var tree = {};
<ide>
<ide> function updateTree(id, update) {
<del> if (isT... | 2 |
Javascript | Javascript | replace `mountdepth` with `istoplevel` | fc7cf2ff639099538fbfea1bbf1a74907348c9ed | <ide><path>src/browser/server/ReactServerRendering.js
<ide> function renderToString(element, context) {
<ide>
<ide> return transaction.perform(function() {
<ide> var componentInstance = instantiateReactComponent(element, null);
<del> var markup = componentInstance.mountComponent(id, transaction, 0, cont... | 12 |
Javascript | Javascript | return this from outgoingmessage#destroy() | 94e5b5c77dade0d8f7358c66144b75c369679cab | <ide><path>lib/_http_outgoing.js
<ide> OutgoingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
<ide> // it, since something else is destroying this connection anyway.
<ide> OutgoingMessage.prototype.destroy = function destroy(error) {
<ide> if (this.destroyed) {
<del> return;
<add> return ... | 2 |
Python | Python | add tests for gce region & zone related attributes | 88667ea6fe4d4bca612588e4cca064889dd3ae37 | <ide><path>libcloud/test/compute/test_gce.py
<ide> def test_ex_get_zone(self):
<ide> zone_no_mw = self.driver.ex_get_zone("us-central1-a")
<ide> self.assertIsNone(zone_no_mw.time_until_mw)
<ide>
<add> def test_driver_zone_attributes(self):
<add> zones = self.driver.ex_list_zones()
<add> ... | 1 |
Ruby | Ruby | install the brew command with a relative symlink | 3c3f1a1c921b8f5fdcc7d71e59d189fec5421771 | <ide><path>Cellar/homebrew/brewkit.rb
<ide> def system cmd
<ide> if $0 == __FILE__
<ide> d=$cellar.parent+'bin'
<ide> d.mkpath unless d.exist?
<del> (d+'brew').make_symlink $cellar+'homebrew'+'brew'
<add> Dir.chdir d
<add> Pathname.new('brew').make_symlink Pathname.new('../Cellar')+'homebrew'+'brew'
<ide> end
<i... | 1 |
Text | Text | specify missing step | 6eaa789ec0b74fda3d51bdd6ec4600c23cfdce3e | <ide><path>docs/GettingStarted.md
<ide> next: tutorial
<ide> 2. [Xcode](https://developer.apple.com/xcode/downloads/) 6.3 or higher is recommended.
<ide> 3. [Homebrew](http://brew.sh/) is the recommended way to install io.js, watchman, and flow.
<ide> 4. Install [io.js](https://iojs.org/) 1.0 or newer. io.js is the mod... | 1 |
Javascript | Javascript | add example for composite navigation | 1dc33b5f23640a60682ac879b9a3e94a4aa519d9 | <ide><path>Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js
<ide> const View = require('View');
<ide> */
<ide> const EXAMPLES = {
<ide> 'NavigationCardStack Example': require('./NavigationCardStack-example'),
<add> 'Header + Scenes + Tabs Example': require('./NavigationHeaderScenesTabs-ex... | 2 |
Text | Text | make corrections to the translation of index.md | f39f86197dd4d060d926d6ce7989cb798c78cd64 | <ide><path>guide/russian/working-in-tech/women-in-tech/index.md
<ide> ---
<ide> title: Women in Tech
<del>localeTitle: Женщины в технике
<add>localeTitle: Женщины в сфере технологий
<ide> ---
<del>## Женщины в технике
<add>## Женщины в сфере технологий
<ide>
<del>Из статьи [«Последняя статистика по женщинам в технике»... | 1 |
Javascript | Javascript | add inverted test case | 49f5d148a7ed74055b1cddd5eb091b4b351be83a | <ide><path>packages/rn-tester/js/examples/SectionList/SectionList-inverted.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * ... | 4 |
PHP | PHP | fix a typo in docblock | 031965af630947c21b5e8414042fa754e1d84bad | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> class FixtureManager
<ide> * Modify the debug mode.
<ide> *
<ide> * @param bool $debug Whether or not fixture debug mode is enabled.
<del> * @retun void
<add> * @return void
<ide> */
<ide> public function setDebug($debug)
<ide> ... | 1 |
PHP | PHP | correct doc blocks | e343d46ddeff9c5cb10165356cc66535b5fc35eb | <ide><path>src/View/Helper.php
<ide> class Helper implements EventListener {
<ide> /**
<ide> * The View instance this helper is attached to
<ide> *
<del> * @var View
<add> * @var \Cake\View\View
<ide> */
<ide> protected $_View;
<ide>
<ide> /**
<ide> * Default Constructor
<ide> *
<del> * @param View $View The Vie... | 4 |
Go | Go | use ms_private instead of ms_slave"" | 557e4fef4418a251dd3a6817b97e5c1be055cbf3 | <ide><path>pkg/libcontainer/nsinit/mount.go
<ide> const defaultMountFlags = syscall.MS_NOEXEC | syscall.MS_NOSUID | syscall.MS_NOD
<ide> // is no longer in use, the mounts will be removed automatically
<ide> func setupNewMountNamespace(rootfs, console string, readonly bool) error {
<ide> // mount as slave so that the ... | 1 |
Ruby | Ruby | add missing require | a01cf703e23a96bad044766efad58b4d56d8bf11 | <ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb
<ide> require "active_support/core_ext/hash/keys"
<ide> require "active_support/core_ext/hash/reverse_merge"
<add>require "active_support/core_ext/hash/indifferent_access"
<ide>
<ide> module ActiveSupport
<ide> # Implements a hash where keys... | 1 |
Text | Text | add oncontextmenu to events doc | 1aa9580484bed39d57713ab60bb6a6b901a9b902 | <ide><path>docs/docs/ref-05-events.md
<ide> For more information about the onChange event, see [Forms](/react/docs/forms.htm
<ide> Event names:
<ide>
<ide> ```
<del>onClick onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave
<del>onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
<add>on... | 2 |
Javascript | Javascript | remove space at end of line | 4f314fff397a7036f176bda77bb3739ae97cdb99 | <ide><path>extensions/firefox/bootstrap.js
<ide> let Factory = {
<ide> },
<ide>
<ide> // nsIFactory
<del> lockFactory: function lockFactory(lock) {
<add> lockFactory: function lockFactory(lock) {
<ide> // No longer used as of gecko 1.7.
<ide> throw Cr.NS_ERROR_NOT_IMPLEMENTED;
<ide> } | 1 |
PHP | PHP | add support for testing eloquent model events | e6f806cf35e1352d849d97b62e217398ab2c7f99 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MocksApplicationServices.php
<ide>
<ide> use Mockery;
<ide> use Exception;
<add>use Illuminate\Database\Eloquent\Model;
<ide>
<ide> trait MocksApplicationServices
<ide> {
<ide> protected function withoutEvents()
<ide> $this->firedEvents[] = $called;
<i... | 1 |
PHP | PHP | add withoutmiddleware docbloc | 6e14167dd25827128e38429f4fa3c7985c497d89 | <ide><path>src/Illuminate/Support/Facades/Route.php
<ide> * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
<ide> * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
<ide> * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
<add> * @method static \Illumina... | 1 |
PHP | PHP | use newemptyentity() as more clear name | 5df5f02b146af1eb0087d1f98e32615b0be1cde7 | <ide><path>src/Datasource/RepositoryInterface.php
<ide> public function delete(EntityInterface $entity, $options = []): bool;
<ide> *
<ide> * @return \Cake\Datasource\EntityInterface
<ide> */
<del> public function createEntity(): EntityInterface;
<add> public function newEmptyEntity(): EntityInterf... | 14 |
Ruby | Ruby | add limit to repology api | afe9a48373cf2c1a423464b45a464d3971ee114b | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide>
<ide> response
<ide> else
<del> Repology.parse_api_response
<add> Repology.parse_api_response(requested_limit)
<ide> end
<ide>
<ide> validated_formulae = {}
<ide><path>Library/Homebrew/utils/repology.rb
<ide> module Repology
... | 2 |
Ruby | Ruby | use hash#each_value rather than discarding key | 46f8be1d9ed12aa54cd472f2ae70aef7c6e35e6b | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_tmpdir
<ide> def check_missing_deps
<ide> return unless HOMEBREW_CELLAR.exist?
<ide> s = Set.new
<del> Homebrew.missing_deps(Formula.installed).each do |_, deps|
<add> Homebrew.missing_deps(Formula.installed).each_value do |deps|
<ide> s.merge deps
<id... | 1 |
Javascript | Javascript | update other authentication methods | 01e86c74bce313b12172256d8829358741890758 | <ide><path>config/passport.js
<ide> passport.use(new LinkedInStrategy(secrets.linkedin, function(req, accessToken, r
<ide> User.findOne({ linkedin: profile.id }, function(err, existingUser) {
<ide> if (existingUser) return done(null, existingUser);
<ide> User.findOne({ email: profile._js... | 1 |
Ruby | Ruby | handle additional cask exception | 183cbe00014803eef4e9e3f4f6e87043c1d3b3a3 | <ide><path>Library/Homebrew/cli/named_args.rb
<ide> def load_formula_or_cask(name, only: nil, method: nil, prefer_loading_from_api:
<ide> end
<ide>
<ide> return cask
<del> rescue Cask::CaskUnreadableError => e
<add> rescue Cask::CaskUnreadableError, Cask::CaskInvalidError => e... | 1 |
Text | Text | correct anchors for buffer.md | b8573d05552b7df6c496ab5e56a1fe2a7c82eda6 | <ide><path>doc/api/buffer.md
<ide> console.log(buf);
<ide>
<ide> [iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
<ide> [`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
<add>[`Buffer#indexOf()`]: #buffer... | 1 |
Javascript | Javascript | update lensflare.js to properly dispose textures | 05437e236ed552fc42fef12cea69bb35ce2dd818 | <ide><path>examples/js/objects/Lensflare.js
<ide> THREE.Lensflare = function () {
<ide>
<ide> //
<ide>
<del> var elements = [];
<add> this.elements = [];
<ide>
<ide> var shader = THREE.LensflareElement.Shader;
<ide>
<ide> THREE.Lensflare = function () {
<ide>
<ide> this.addElement = function ( element ) {
<ide>... | 1 |
Text | Text | add jsdoc types to docs snippets | 3b9786925d43bb85a959db9f414494396c709f0f | <ide><path>docs/api-reference/next.config.js/introduction.md
<ide> For custom advanced behavior of Next.js, you can create a `next.config.js` in th
<ide> Take a look at the following `next.config.js` example:
<ide>
<ide> ```js
<del>module.exports = {
<add>/**
<add> * @type {import('next').NextConfig}
<add> */
<add>con... | 1 |
Python | Python | expose missing mappings (see ) | f8823bad9a23f6623e91e71719e65342de877cb9 | <ide><path>examples/run_language_modeling.py
<ide> from tqdm import tqdm, trange
<ide>
<ide> from transformers import (
<del> CONFIG_MAPPING,
<ide> MODEL_WITH_LM_HEAD_MAPPING,
<ide> WEIGHTS_NAME,
<ide> AdamW,
<ide> def main():
<ide> elif args.model_name_or_path:
<ide> config = AutoConfig.fro... | 2 |
Javascript | Javascript | add mention of antroid 2.x browser | 58f5da86645990ef984353418cd1ed83213b111e | <ide><path>src/ng/q.js
<ide> *
<ide> * Because `finally` is a reserved word in JavaScript and reserved keywords are not supported as
<ide> * property names by ES3, you'll need to invoke the method like `promise['finally'](callback)` to
<del> * make your code IE8 compatible.
<add> * make your code IE8 and And... | 1 |
PHP | PHP | move route registration into booted callback | 8ac6ed8c8af8e684ac7a304713091b7b55a88a80 | <ide><path>src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
<ide> class RouteServiceProvider extends ServiceProvider
<ide> protected $namespace;
<ide>
<ide> /**
<del> * Bootstrap any application services.
<add> * Register any application services.
<ide> *
<ide> * @return v... | 1 |
PHP | PHP | fix mistakes in default configuration arrays | d70c449dff9a3d31e2adfc1243f263fd84edd446 | <ide><path>src/Error/ErrorTrap.php
<ide> class ErrorTrap
<ide> */
<ide> protected $_defaultConfig = [
<ide> 'errorLevel' => E_ALL,
<del> 'ignoredDeprecationPaths' => [],
<ide> 'log' => true,
<ide> 'logger' => ErrorLogger::class,
<ide> 'errorRenderer' => null,
<del> ... | 2 |
Text | Text | fix the slow tests doc | e1638dce16dfe2854bf8277deafd1fc2b5dc7c63 | <ide><path>CONTRIBUTING.md
<ide> and for the examples:
<ide> $ pip install -r examples/requirements.txt # only needed the first time
<ide> $ python -m pytest -n auto --dist=loadfile -s -v ./examples/
<ide> ```
<del>
<del>and for the slow tests:
<del>
<del>```bash
<del>RUN_SLOW=yes python -m pytest -n auto --dist=loadf... | 1 |
Go | Go | run volume-tests again remote daemons as well | 2a5405bedd7c06ffc914ad576b83238533e4a4e0 | <ide><path>integration/volume/volume_test.go
<ide> import (
<ide> )
<ide>
<ide> func TestVolumesCreateAndList(t *testing.T) {
<del> skip.If(t, testEnv.IsRemoteDaemon, "cannot run daemon when remote daemon")
<ide> defer setupTest(t)()
<ide> client := testEnv.APIClient()
<ide> ctx := context.Background()
<ide> func T... | 1 |
Ruby | Ruby | remove unnecessary dup from formtaghelper#field_id | c9cdf7410e1cccef6ab0ba5e9023929d70bd6368 | <ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb
<ide> def field_id(object_name, method_name, *suffixes, index: nil)
<ide>
<ide> # a little duplication to construct fewer strings
<ide> if sanitized_object_name.empty?
<del> sanitized_method_name.dup
<add> sanitized_meth... | 1 |
Javascript | Javascript | provide usable error on missing internal module | 4d798e1b1bbbbbf0a45fb478e153621fc37bb242 | <ide><path>lib/internal/bootstrap/loaders.js
<ide> function nativeModuleRequire(id) {
<ide> }
<ide>
<ide> const mod = NativeModule.map.get(id);
<add> // Can't load the internal errors module from here, have to use a raw error.
<add> // eslint-disable-next-line no-restricted-syntax
<add> if (!mod) throw new Type... | 1 |
Text | Text | update the link of the scrum guide | 8730c8760f51ac3aeb31ff822020c057d86897e2 | <ide><path>guide/english/agile/sprint-planning/index.md
<ide> The purpose of Sprint Planning meeting is to achiev the following goals:
<ide>
<ide> #### More Information:
<ide> * https://www.mountaingoatsoftware.com/agile/scrum/meetings/sprint-planning-meeting
<del>* [Scrum Guide](http://www.scrumguides.org/scrum-guide... | 1 |
Mixed | Go | add volume --format flag to ls | a488ad1a090eb0b6069f79cd045badaaa8ec1bda | <ide><path>api/client/cli.go
<ide> func (cli *DockerCli) NetworksFormat() string {
<ide> return cli.configFile.NetworksFormat
<ide> }
<ide>
<add>// VolumesFormat returns the format string specified in the configuration.
<add>// String contains columns and format specification, for example {{ID}}\t{{Name}}
<add>func (... | 7 |
Ruby | Ruby | use appropriate assertion based on expectation | 307065f959f2b34bdad16487bae906eb3bfeaf28 | <ide><path>activesupport/test/json/decoding_test.rb
<ide> def self.json_create(object)
<ide> }
<ide>
<ide> TESTS.each_with_index do |(json, expected), index|
<add> fail_message = "JSON decoding failed for #{json}"
<add>
<ide> test "json decodes #{index}" do
<ide> with_tz_default "Eastern Time (US & Ca... | 1 |
Text | Text | add api challenges - arabic translation | f2e5f44da63d0ce1535bd22cde2191270b5c85af | <ide><path>curriculum/challenges/arabic/05-apis-and-microservices/apis-and-microservices-projects/exercise-tracker.arabic.md
<add>---
<add>id: 5a8b073d06fa14fcfde687aa
<add>title: Exercise Tracker
<add>localeTitle: متتبع التمرين
<add>challengeType: 4
<add>isRequired: true
<add>---
<add>
<add>## Description
<add><sectio... | 39 |
Text | Text | update rename documentation | a3505b29c66a43f54554d03e8d63adb0c002ba88 | <ide><path>share/doc/homebrew/Rename-A-Formula.md
<ide> you need:
<ide>
<ide> 1. Rename formula file and its class to new formula. New name must meet all the rules of naming. Fix any test failures that may occur due to the stricter requirements for new formula than existing formula (e.g. brew audit --strict must pass ... | 1 |
Javascript | Javascript | fix externalmodule and test case | f0271d93c6716af3d0d39420c89c9723416be625 | <ide><path>lib/ExternalModule.js
<ide> class ExternalModule extends Module {
<ide> .slice(1)
<ide> .map(r => `[${JSON.stringify(r)}]`)
<ide> .join("");
<del> return `module.exports = require(${moduleName})${objectLookup};`;
<add> return `module.exports = require(${JSON.stringify(
<add> moduleName
<add> )}... | 5 |
Ruby | Ruby | add more api test coverage | 8c8c6964c8371988b8d7831b2c2141596b67c814 | <ide><path>Library/Homebrew/test/formulary_spec.rb
<ide> def formula_json_contents(extra_items = {})
<ide> "reason" => ":provided_by_macos",
<ide> "explanation" => "",
<ide> },
<del> "build_dependencies" => [],
<del> "dependencies" => ... | 1 |
Java | Java | improve javadoc for databasepopulator | 87e58a6d7b7209f5f932b0d34e509452c62405d6 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java
<ide> import java.sql.SQLException;
<ide>
<ide> /**
<del> * Strategy used to populate a database during initialization.
<add> * Strategy used to populate, initialize, or clean up a database.
<ide> *
<ide> * @author K... | 1 |
PHP | PHP | add file headers | f17097ce890c2b4b44390ee534447aaa5f855942 | <ide><path>App/Config/app.php
<ide> <?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * Redistributions of files must retain the above copyrigh... | 6 |
Javascript | Javascript | teach yellowbox to count | ab87033185b3bf9b08b69c8e0e3ed2cbc651376d | <ide><path>Libraries/ReactIOS/YellowBox.js
<ide> function updateWarningMap(format, ...args): void {
<ide> ].join(' ');
<ide>
<ide> const count = _warningMap.has(warning) ? _warningMap.get(warning) : 0;
<del> _warningMap.set(warning, count + 2);
<add> _warningMap.set(warning, count + 1);
<ide> _warningEmitter.e... | 1 |
PHP | PHP | fix getcrumbs() with no crumbs and first link | c54ac257f1f55bfa64a8545572dbf614f2404445 | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testBreadcrumb() {
<ide> * Test the array form of $startText
<ide> */
<ide> public function testGetCrumbFirstLink() {
<add> $result = $this->Html->getCrumbList(null, 'Home');
<add> $this->assertTags(
<add> $result,
<add> array(
... | 2 |
Go | Go | fix apparent typo | 14b2b2b7c2db83ef1413a7469608f655cd15958e | <ide><path>utils/utils.go
<ide> func (k *KernelVersionInfo) String() string {
<ide> }
<ide>
<ide> // Compare two KernelVersionInfo struct.
<del>// Returns -1 if a < b, = if a == b, 1 it a > b
<add>// Returns -1 if a < b, 0 if a == b, 1 it a > b
<ide> func CompareKernelVersion(a, b *KernelVersionInfo) int {
<ide> if a... | 1 |
PHP | PHP | fix failing test | 93518190e2043642ece186776c72721034adedaa | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _initInputField($field, $options = []) {
<ide> }
<ide> if (!isset($options['val']) && isset($options['default'])) {
<ide> $options['val'] = $options['default'];
<del> unset($options['default']);
<ide> }
<add> unset($options['value'], $option... | 1 |
Ruby | Ruby | favor composition over inheritence | 307e6b2b74ba3ae72602dc33e6d45cd3e46181c7 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> module ActiveModel
<ide> # p.validate! # => ["can not be nil"]
<ide> # p.errors.full_messages # => ["name can not be nil"]
<ide> # # etc..
<del> class Errors < ActiveSupport::OrderedHash
<add> class Errors
<add> include Enumerable
<ad... | 1 |
Python | Python | break long lines | 5bc6926d063866731cbe568366137f9e12182648 | <ide><path>numpy/lib/function_base.py
<ide> def unwrap(p, discont=None, axis=-1, *, period=2*pi):
<ide> difference from their predecessor of more than ``max(discont, period/2)``
<ide> to their `period`-complementary values.
<ide>
<del> For the default case where `period` is :math:`2\pi` and is `discont` is ... | 1 |
Go | Go | add minimum limit for memory reservation | 50a61810056a421fb94acf26277995f2c1f31ede | <ide><path>daemon/daemon_unix.go
<ide> func verifyContainerResources(resources *containertypes.Resources, sysInfo *sysi
<ide> logrus.Warnf("Your kernel does not support memory soft limit capabilities. Limitation discarded.")
<ide> resources.MemoryReservation = 0
<ide> }
<add> if resources.MemoryReservation > 0 && ... | 2 |
Python | Python | fix a bug for `callbackhandler.callback_list` | 7bff0af0a4b09b9bfc3ade2532c2a3acdff95eda | <ide><path>src/transformers/trainer_callback.py
<ide> def remove_callback(self, callback):
<ide>
<ide> @property
<ide> def callback_list(self):
<del> return "\n".join(self.callbacks)
<add> return "\n".join(cb.__class__.__name__ for cb in self.callbacks)
<ide>
<ide> def on_init_end(self, args... | 2 |
Javascript | Javascript | add support for min & max on html 5 inputs | 8eb4e53a478c086d93d2414114e0bd8704237ecc | <ide><path>packages/ember-handlebars/lib/controls/text_field.js
<ide> Ember.TextField = Ember.Component.extend(Ember.TextSupport,
<ide>
<ide> classNames: ['ember-text-field'],
<ide> tagName: "input",
<del> attributeBindings: ['type', 'value', 'size', 'pattern', 'name'],
<add> attributeBindings: ['type', 'value',... | 1 |
PHP | PHP | remove incorrect phpdoc tags | 424f2eb1f292a64bd53dfc29e478dd995eebe38d | <ide><path>src/Cache/Cache.php
<ide> * See Cache engine documentation for expected configuration keys.
<ide> *
<ide> * @see config/app.php for configuration settings
<del> * @param string $name Name of the configuration
<del> * @param array $config Optional associative array of settings passed to the engine
<del> * ... | 2 |
PHP | PHP | fix deprecation comments | cc569504434599ad656ae81ca4fc745f4e7b6ab6 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
<ide> public function getRelationName()
<ide> * Get the name of the relationship.
<ide> *
<ide> * @return string
<del> * @deprecated The getRelationName() method should be used instead. Will be removed in Laravel 5.9.
<add> * @de... | 2 |
PHP | PHP | stop email re-verification with same link | be70858192281f00006adc1a76c5e136476063f4 | <ide><path>src/Illuminate/Foundation/Auth/VerifiesEmails.php
<ide> public function verify(Request $request)
<ide> if ($request->route('id') != $request->user()->getKey()) {
<ide> throw new AuthorizationException;
<ide> }
<del>
<add>
<ide> if ($request->user()->hasVerifiedEmai... | 1 |
Javascript | Javascript | follow up to 15150 | daeda44d8f5abdb7354742bb69a967302d34d7f9 | <ide><path>packages/react-events/index.js
<ide>
<ide> 'use strict';
<ide>
<del>const ReactEvents = require('./src/ReactEvents');
<del>
<del>// TODO: decide on the top-level export form.
<del>// This is hacky but makes it work with both Rollup and Jest.
<del>module.exports = ReactEvents.default || ReactEvents;
<add>ex... | 2 |
Text | Text | fix broken link caused by case sensitivity | 9634cea47478507f915bcc0074f7a248df6fd027 | <ide><path>docs/api-guide/serializers.md
<ide> To serialize a queryset or list of objects instead of a single object instance,
<ide>
<ide> #### Deserializing multiple objects
<ide>
<del>The default behavior for deserializing multiple objects is to support multiple object creation, but not support multiple object upda... | 1 |
PHP | PHP | apply fixes from styleci | c0ed2e420d1853e213c7b39729346a3c9c51a6e5 | <ide><path>src/Illuminate/Mail/MailManager.php
<ide> protected function createSendmailTransport(array $config)
<ide> protected function createSesTransport(array $config)
<ide> {
<ide> $config = array_merge(
<del> $this->app['config']->get('services.ses', []),
<del> ['version' => '... | 1 |
PHP | PHP | define contract for message bag | 672d6f8b8aec7f4231777667906c8405d8b25e83 | <ide><path>src/Illuminate/Contracts/Support/MessageBag.php
<add><?php namespace Illuminate\Contracts\Support;
<add>
<add>interface MessageBag {
<add>
<add> /**
<add> * Get the keys present in the message bag.
<add> *
<add> * @return array
<add> */
<add> public function keys();
<add>
<add> /**
<add> * Add a message... | 3 |
Javascript | Javascript | kill double `.normalize` | 305c488ad56bb21e49cbd0a8651f05b766979206 | <ide><path>src/extras/core/Curve.js
<ide> class Curve {
<ide> const u = i / segments;
<ide>
<ide> tangents[ i ] = this.getTangentAt( u, new Vector3() );
<del> tangents[ i ].normalize();
<ide>
<ide> }
<ide> | 1 |
Text | Text | fix typos in contributing guide [ci skip] | 60cb61dba69b131dcb468afae570da56f14276c9 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> Having a way to reproduce your issue will be very helpful for others to help con
<ide> * Template for Action Pack (controllers, routing) issues: [gem](https://github.com/rails/rails/blob/master/guides/bug_report_templates/action_controller_gem.rb) / [maste... | 1 |
Java | Java | remove parameterized type from websockethandler | f347988428b50286ab9d5a7d19553917def76883 | <ide><path>spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
<ide> public abstract class AbstractSockJsSession implements WebSocketSession {
<ide> * @param sessionId
<ide> * @param webSocketHandler the recipient of SockJS messages
<ide> */
<del> public AbstractSockJsSession(Stri... | 37 |
Javascript | Javascript | assign bufferrow property to line number nodes | 5b073349938308a205b0e924e2dac725245f9a9a | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> await component.getNextUpdatePromise()
<ide> expect(element.classList.contains('has-selection')).toBe(false)
<ide> })
<add>
<add> it('assigns a buffer-row to each line number as a data field', async () =... | 2 |
Go | Go | ignore hns networks with type private | b91fd26bb57c94a7ea7f77e5e548233506b78d21 | <ide><path>daemon/daemon_windows.go
<ide> func (daemon *Daemon) initNetworkController(config *config.Config, activeSandbox
<ide> // discover and add HNS networks to windows
<ide> // network that exist are removed and added again
<ide> for _, v := range hnsresponse {
<add> if strings.ToLower(v.Type) == "private" {
<... | 1 |
Javascript | Javascript | use s_client instead of curl | 4d5489667cb073ec9d82ef292ecd0749de494238 | <ide><path>test/simple/test-https-foafssl.js
<ide> var assert = require('assert');
<ide> var join = require('path').join;
<ide>
<ide> var fs = require('fs');
<del>var exec = require('child_process').exec;
<del>
<add>var spawn = require('child_process').spawn;
<ide> var https = require('https');
<ide>
<ide> var option... | 1 |
Go | Go | lock container when set state to restarting | 155714c59650a7b9b8f890f4d20c83ea9b80206b | <ide><path>container/monitor.go
<ide> func (m *containerMonitor) start() error {
<ide> m.resetMonitor(err == nil && exitStatus.ExitCode == 0)
<ide>
<ide> if m.shouldRestart(exitStatus.ExitCode) {
<del> m.container.SetRestarting(&exitStatus)
<add> m.container.SetRestartingLocking(&exitStatus)
<ide> m.logEven... | 1 |
Javascript | Javascript | add some better documentation to the async counter | 8a86259f6134d5c099093903da2c94adbe472141 | <ide><path>examples/universal/api/counter.js
<ide> function getRandomInt(min, max) {
<ide> }
<ide>
<ide> export function fetchCounter(callback) {
<add> // Rather than immediately returning, we delay our code with a timeout to simulate asynchronous behavior
<ide> setTimeout(() => {
<ide> callback(getRandomInt(1,... | 1 |
Go | Go | fix validation of plugins without rootfs in config | 6c7cb520094866cacbecb96695aed2d67d8a64a0 | <ide><path>plugin/manager.go
<ide> func configToRootFS(c []byte) (*image.RootFS, error) {
<ide> if err := json.Unmarshal(c, &pluginConfig); err != nil {
<ide> return nil, err
<ide> }
<add> // validation for empty rootfs is in distribution code
<add> if pluginConfig.Rootfs == nil {
<add> return nil, nil
<add> }
<id... | 1 |
PHP | PHP | remove useless foreach | 2c4c93175db79b37331b07e561d7e2232894b7f8 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> protected function replaceRouteParameters($path, array &$parameters)
<ide> return $match[0];
<ide> }
<ide>
<del> foreach ($parameters as $key => $value) {
<del> return array_shift($parameters)... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.