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 |
|---|---|---|---|---|---|
Ruby | Ruby | implement directory? on keg | 58e5ac6835fb0901f01180aeb2169e7f30a44443 | <ide><path>Library/Homebrew/keg.rb
<ide> def abv
<ide> path.abv
<ide> end
<ide>
<add> def directory?
<add> path.directory?
<add> end
<add>
<ide> def exist?
<ide> path.exist?
<ide> end | 1 |
Javascript | Javascript | remove unused variables | ac35b416fb818faba73ee4cbdf5837b4d9f31f38 | <ide><path>src/Angular.js
<ide> function copy(source, destination) {
<ide>
<ide> function copyRecurse(source, destination) {
<ide> var h = destination.$$hashKey;
<del> var result, key;
<add> var key;
<ide> if (isArray(source)) {
<ide> for (var i = 0, ii = source.length; i < ii; i++) {
<ide> ... | 8 |
Mixed | Javascript | add diagnostics channel and perf hooks detail | 60898eed65d49ce7a1a4a43791451ddc17876222 | <ide><path>doc/api/diagnostics_channel.md
<ide> Emitted when server receives a request.
<ide>
<ide> Emitted when server sends a response.
<ide>
<add>`net.client.socket`
<add>
<add>* `socket` {net.Socket}
<add>
<add>Emitted when a new TCP or pipe client socket is created.
<add>
<add>`net.server.socket`
<add>
<add>* `s... | 10 |
Text | Text | fix a typo | ecf8324c828c12d3d3adbf8a28d1af6c34a6e3da | <ide><path>docs/Homebrew-on-Linux.md
<ide> Homebrew does not currently support 32-bit x86 platforms. It would be possible f
<ide>
<ide> ## Alternative Installation
<ide>
<del>Extract or `git clone` Homebrew wherever you want. Use `/home/linuxbrew/.linuxbrew` if possible (to enabled the use of binary packages).
<add>E... | 1 |
Go | Go | move entrypoint build test to integration-cli | b25a9b7138e44950bee646c1bcb691a3dd273ea1 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildExpose(t *testing.T) {
<ide> logDone("build - expose")
<ide> }
<ide>
<add>func TestBuildEntrypoint(t *testing.T) {
<add> checkSimpleBuild(t,
<add> `
<add> FROM scratch
<add> ENTRYPOINT ["/bin/echo"]
<add> `,
<add> "testbuil... | 2 |
Javascript | Javascript | add comment for future intrepid travelers | 6fb0f61316b70e918fc3fe107a15ea8451fc2bd6 | <ide><path>packages/ember-metal-views/lib/renderer.js
<ide> var domHelper = environment.hasDOM ? new DOMHelper() : null;
<ide>
<ide> function Renderer() {
<ide> this._uuid = 0;
<add>
<add> // These sizes and values are somewhat arbitrary (but sensible)
<add> // pre-allocation defaults.
<ide> this._views = new Ar... | 1 |
Python | Python | add tests for pickling doc | 45d1dd90b1794897d72b25d9090bed785387560f | <ide><path>spacy/tests/doc/test_pickle_doc.py
<add>from __future__ import unicode_literals
<add>
<add>import pickle
<add>
<add>from ...language import Language
<add>
<add>
<add>def test_pickle_single_doc():
<add> nlp = Language()
<add> doc = nlp(u'pickle roundtrip')
<add> data = pickle.dumps(doc, 1)
<add> d... | 1 |
PHP | PHP | return command from test stub | 73944943476aef81a7c98b9d0615d551cf8226ba | <ide><path>tests/Bus/BusDispatcherTest.php
<ide> public function testDispatcherCanDispatchStandAloneHandler()
<ide>
<ide> $response = $dispatcher->dispatch(new StandAloneCommand);
<ide>
<del> $this->assertEquals('stone-alone-handler', $response);
<add> $this->assertInstanceOf(StandAloneCommand::... | 1 |
Text | Text | add changelog entry | 171b1f390d0150893d39ecc3f64742b284daffe0 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### Master
<add>
<add>* [BREAKING] Require Handlebars 2.0. See [blog post](http://emberjs.com/blog/2014/10/16/handlebars-update.html) for details.
<add>
<ide> ### Ember 1.8.0-beta.3 (September, 27, 2014)
<ide>
<ide> * [BUGFIX] Use contextualElements to proper... | 1 |
PHP | PHP | apply fixes from styleci | 9352d1edc22747417209adb4c314b7ec81120b4c | <ide><path>tests/Support/SupportTestingNotificationFakeTest.php
<ide>
<ide> use PHPUnit\Framework\TestCase;
<ide> use Illuminate\Foundation\Auth\User;
<del>use Illuminate\Support\Testing\Fakes\NotificationFake;
<ide> use Illuminate\Notifications\Notification;
<add>use Illuminate\Support\Testing\Fakes\NotificationFake;... | 1 |
Text | Text | add v3.7.0 to changelog | b025751325a93d61278c96952aaea220da1e8d88 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.7.0-beta.3 (December 24, 2018)
<add>### v3.7.0 (January 7, 2019)
<ide>
<add>- [#17254](https://github.com/emberjs/ember.js/pull/17254) [BREAKING] Explicitly drop support for Node 4
<add>- [#17426](https://github.com/emberjs/ember.js/pull/17426) [BUGFIX... | 1 |
Javascript | Javascript | check reason chars in writehead | ca5f8f80e31784fc2883b352d0c22d4b74200e7e | <ide><path>lib/_http_server.js
<ide> ServerResponse.prototype.writeHead = function(statusCode, reason, obj) {
<ide> if (statusCode < 100 || statusCode > 999)
<ide> throw new RangeError(`Invalid status code: ${statusCode}`);
<ide>
<add> if (common._checkInvalidHeaderChar(this.statusMessage))
<add> throw new E... | 2 |
Ruby | Ruby | add a new line after the textarea opening tag | a6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e | <ide><path>actionpack/lib/action_view/helpers/tags/text_area.rb
<ide> def render
<ide> options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split)
<ide> end
<ide>
<del> content_tag("textarea", ERB::Util.html_escape(options.delete('value') || value_before_type_cast(obje... | 3 |
PHP | PHP | use collection to remove soft delete scope | fdef01ac600d3f8aa83a2537ce95ccb165a98c8d | <ide><path>src/Illuminate/Database/Eloquent/SoftDeletingScope.php
<ide> public function remove(Builder $builder, Model $model)
<ide>
<ide> $query = $builder->getQuery();
<ide>
<del> foreach ((array) $query->wheres as $key => $where)
<add> $query->wheres = collect($query->wheres)->reject(function($where) use ($col... | 1 |
Javascript | Javascript | fix bug with getting the id of the track | 20e9a9feb58097ab91e2ee9ef785128fee43e623 | <ide><path>src/js/tracks.js
<ide> goog.inherits(vjs.TextTrackMenuItem, vjs.MenuItem);
<ide>
<ide> vjs.TextTrackMenuItem.prototype.onClick = function(){
<ide> goog.base(this, 'onClick');
<del> this.player_.showTextTrack(this.track.id(), this.track.kind());
<add> this.player_.showTextTrack(this.track.id_, this.track... | 1 |
Python | Python | remove dead code backporting py2.6 warnings | d4e4f1f39fba4bfa1df4ebd357f91ccdb35ebdaf | <ide><path>numpy/testing/_private/utils.py
<ide> def integer_repr(x):
<ide> raise ValueError("Unsupported dtype %s" % x.dtype)
<ide>
<ide>
<del># The following two classes are copied from python 2.6 warnings module (context
<del># manager)
<del>class WarningMessage(object):
<del>
<del> """
<del> Holds t... | 1 |
Python | Python | fix mypy errors at greedy best first algo | a4b7d12262d41969cf1fc9d5dbf9b9a01f165f4c | <ide><path>graphs/greedy_best_first.py
<ide>
<ide> from __future__ import annotations
<ide>
<add>from typing import Optional
<add>
<add>Path = list[tuple[int, int]]
<add>
<ide> grid = [
<ide> [0, 0, 0, 0, 0, 0, 0],
<ide> [0, 1, 0, 0, 0, 0, 0], # 0 are free path whereas 1's are obstacles
<ide> class Node:
<id... | 1 |
PHP | PHP | improve tests for mockservice() | 765a5a6927f600cf2ae99b9ad8bd4f801f5fe1d7 | <ide><path>tests/TestCase/TestSuite/IntegrationTestTraitTest.php
<ide> use Cake\Utility\Security;
<ide> use Laminas\Diactoros\UploadedFile;
<ide> use PHPUnit\Framework\AssertionFailedError;
<add>use stdClass;
<ide>
<ide> /**
<ide> * Self test of the IntegrationTestTrait
<ide> public function testViewVariableNotFoundS... | 1 |
Go | Go | replace `imagemutex` with `locker` pkg | 2764839ae1ccc55e08d6290ecbf7b58d837bbdd2 | <ide><path>graph/graph.go
<ide> import (
<ide> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/pkg/archive"
<ide> "github.com/docker/docker/pkg/idtools"
<add> "github.com/docker/docker/pkg/locker"
<ide> "github.com/docker/docker/pkg/progressreader"
<ide> "github.com/docker/docker/pkg/streamformatt... | 2 |
Javascript | Javascript | add space between error name and code | 7b4a72d797cc57bc69aa6be22c34505a456f7b3a | <ide><path>lib/internal/errors.js
<ide> function makeNodeError(Base) {
<ide> }
<ide>
<ide> get name() {
<del> return `${super.name}[${this[kCode]}]`;
<add> return `${super.name} [${this[kCode]}]`;
<ide> }
<ide>
<ide> get code() {
<ide><path>test/parallel/test-internal-errors.js
<ide> const e... | 2 |
Python | Python | add missing period in train data | 1e8147aec72e4187ac153562ec2b197d3f83e7eb | <ide><path>examples/training/train_parser.py
<ide> 'heads': [1, 1, 4, 4, 5, 1, 1],
<ide> 'deps': ['nsubj', 'ROOT', 'compound', 'punct', 'nmod', 'dobj', 'punct']
<ide> }),
<del> ("I like London and Berlin", {
<add> ("I like London and Berlin.", {
<ide> 'heads': [1, 1, 1, 2, 2, 1],
<ide>... | 1 |
Ruby | Ruby | fix bug in usage example of #unscoped | 2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c | <ide><path>activerecord/lib/active_record/base.rb
<ide> def arel_engine
<ide> # not use the default_scope:
<ide> #
<ide> # Post.unscoped {
<del> # limit(10) # Fires "SELECT * FROM posts LIMIT 10"
<add> # Post.limit(10) # Fires "SELECT * FROM posts LIMIT 10"
<ide> # }
<ide> ... | 1 |
Python | Python | accept small error in threaded random test | 3ea3dece5a5ef586a07310e12236669220eada07 | <ide><path>numpy/random/tests/test_random.py
<ide> assert_warns)
<ide> from numpy import random
<ide> from numpy.compat import asbytes
<add>import sys
<ide>
<ide> class TestSeed(TestCase):
<ide> def test_scalar(self):
<ide> def check_function(self, function, sz):
<ide> for s, o in zip(self.seeds, o... | 1 |
Javascript | Javascript | fix some issues with the webgl renderer | caa4066afb1b2fbda8335aa69c2bffe3a46de8a1 | <ide><path>src/extras/renderers/plugins/DepthPassPlugin.js
<ide> THREE.DepthPassPlugin = function () {
<ide>
<ide> _renderList.length = 0;
<ide> projectObject(scene,scene,camera);
<del>
<del> /*_renderList = scene.__webglObjects;
<del>
<del> for ( j = 0, jl = renderList.length; j < jl; j ++ ) {
<del>
<del> ... | 2 |
Mixed | Python | remove references to django-crispy-forms | 6aac9d2be1f3a40a85ca8068ceabf5d4507994e4 | <ide><path>docs/index.md
<ide> The following packages are optional:
<ide> * [coreapi][coreapi] (1.32.0+) - Schema generation support.
<ide> * [Markdown][markdown] (2.6.0+) - Markdown support for the browsable API.
<ide> * [django-filter][django-filter] (1.0.1+) - Filtering support.
<del>* [django-crispy-forms][django-c... | 2 |
Javascript | Javascript | fix stale values in before compile | 35101131b7cbc66b1ed377597a27c49a4051c0a1 | <ide><path>examples/jsm/csm/CSM.js
<ide> export default class CSM {
<ide> }
<ide>
<ide> const breaksVec2 = [];
<del> this.getExtendedBreaks( breaksVec2 );
<del>
<del> const far = Math.min( this.camera.far, this.maxFar );
<add> const self = this;
<ide> const shaders = this.shaders;
<del> const camera = this.c... | 1 |
Python | Python | add sunos support | fe7e00d51a05f379ad6323628226ea1b7c0ed339 | <ide><path>tools/gyp/pylib/gyp/generator/make.py
<ide>
<ide> def GetFlavor(params):
<ide> """Returns |params.flavor| if it's set, the system's default flavor else."""
<del> return params.get('flavor', 'mac' if sys.platform == 'darwin' else 'linux')
<add> flavors = {
<add> 'darwin': 'mac',
<add> 'sunos5': 'so... | 2 |
Javascript | Javascript | add shouldcomponentupdate to functional components | b717db00fbea7a8f12dba360c37f81278988f139 | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) {
<ide> var fn = workInProgress.type;
<ide> var props = workInProgress.pendingProps;
<ide>
<add> // TODO: Disable this before release, since it is not part of the public ... | 1 |
Javascript | Javascript | remove undocumented api | 5462373b5bbc5a0137054838ea6af3d236cfc8ac | <ide><path>src/ngResource/resource.js
<ide> angular.module('ngResource', ['ng']).
<ide> };
<ide> });
<ide>
<del> Resource.bind = function(additionalParamDefaults) {
<del> var extendedParamDefaults = extend({}, paramDefaults, additionalParamDefaults);
<del> return resourceFact... | 2 |
Javascript | Javascript | add extra caching layer | 0f190a5bed14bf9f7392af889f3f83306bedae97 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> const {
<ide>
<ide> const isWindows = process.platform === 'win32';
<ide>
<add>const relativeResolveCache = Object.create(null);
<add>
<ide> let requireDepth = 0;
<ide> let statCache = null;
<ide> function stat(filename) {
<ide> Module._resolveLookupPaths = function... | 1 |
PHP | PHP | make phpunit methods protected as per docs | 4745ce813ad3c727a208b18dfeb97c9710baa690 | <ide><path>src/TestSuite/TestCase.php
<ide> public function deprecated(callable $callable): void
<ide> *
<ide> * @return void
<ide> */
<del> public function setUp(): void
<add> protected function setUp(): void
<ide> {
<ide> parent::setUp();
<ide>
<ide> public function setUp(): void
<id... | 1 |
Text | Text | apply suggestions from code review | 78bf62ee5d05ca6d1fdaa30f48e2a6728968dce9 | <ide><path>docs/Formula-Cookbook.md
<ide> on_linux do
<ide> end
<ide> ```
<ide>
<del>Components can also be declared for specific macOS versions or version ranges. For example, to declare a dependency only on High Sierra, nest the `depends_on` call inside an `on_high_sierra` block. Add an `:or_older` or `:or_newer` pa... | 1 |
Javascript | Javascript | fix linting issues | b3e86a97e3659144c91eded04f7978e9ad986e7f | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> done();
<ide> });
<ide> compiler.run((err, stats) => {
<del> if(err) return done(err);
<add> if (err) return done(err);
<ide> runCb();
<ide> });
<ide> });
<ide> it("should call afterDone hook after other callbacks (instance cb)"... | 1 |
Go | Go | allow push by id when using a custom registry | e095a1572fb8a2ba17ea231abcb3704cf83a96e4 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdPush(args ...string) error {
<ide> return err
<ide> }
<ide>
<del> if len(strings.SplitN(name, "/", 2)) == 1 {
<del> return fmt.Errorf("Impossible to push a \"root\" repository. Please rename your repository in <user>/<repo> (ex: %s/%s)", cli.authConfig.Username... | 1 |
Mixed | Javascript | expose stream api in clearscreendown() | c31f7e595af85da8ada5d278e6e96e8537b57435 | <ide><path>doc/api/readline.md
<ide> added: v0.7.7
<ide> The `readline.clearLine()` method clears current line of given [TTY][] stream
<ide> in a specified direction identified by `dir`.
<ide>
<del>## readline.clearScreenDown(stream)
<add>## readline.clearScreenDown(stream[, callback])
<ide> <!-- YAML
<ide> added: v0.... | 3 |
Javascript | Javascript | fix bad ops.length assignment in tests | e6a0de54635ee003a29efa55e51dd6e97587d40e | <ide><path>src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
<ide> describe('ReactIncremental', () => {
<ide> }
<ide> }
<ide>
<del> ops.length = [];
<add> ops.length = 0;
<ide> ReactNoop.render(
<ide> <Intl locale="fr">
<ide> <ShowLocale />
<ide> describe('ReactIncremental... | 1 |
Javascript | Javascript | handle node_path in require('.') | 3ad82c335deff29a1db5a391f893dc6d2ff1e63a | <ide><path>lib/module.js
<ide> function tryExtensions(p, exts) {
<ide> }
<ide>
<ide>
<add>const noopDeprecateRequireDot = util.deprecate(function() {},
<add> "warning: require('.') resolved outside the package directory. " +
<add> "This functionality is deprecated and will be removed soon.");
<add>
<add>
<ide> Modu... | 3 |
Python | Python | remove unused private members | 5d6763496f6214c4a3240d3894328adf0e4cbebc | <ide><path>numpy/lib/_iotools.py
<ide> class StringConverter:
<ide> (nx.floating, float, nx.nan),
<ide> (nx.complexfloating, complex, nx.nan + 0j),])
<ide>
<del> (_defaulttype, _defaultfunc, _defaultfill) = zip(*_mapper)
<del>
<ide> @classmethod
<ide> def _getdtype(cl... | 1 |
Javascript | Javascript | fix uiexplorer drawer list | 893e9e315e055de52c7d625e81cb85b79d4a2480 | <ide><path>Examples/UIExplorer/UIExplorerApp.android.js
<ide> const styles = StyleSheet.create({
<ide> height: 56,
<ide> },
<ide> drawerContentWrapper: {
<add> flex: 1,
<ide> paddingTop: StatusBar.currentHeight,
<ide> backgroundColor: 'white',
<ide> }, | 1 |
Ruby | Ruby | adjust installer for updated link error handling | 4b4fc003df6771a5b9279f5935633d70a9d2a7b9 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def link
<ide>
<ide> begin
<ide> keg.link
<del> rescue Exception => e
<add> rescue Keg::LinkError => e
<ide> onoe "The `brew link` step did not complete successfully"
<ide> puts "The formula built, but is not symlinked into #{HOMEBREW_P... | 1 |
Ruby | Ruby | add new tests for fails_with dsl | 9dd6d74b44d857d9b5906dffd896d4109229b1df | <ide><path>Library/Homebrew/test/test_fails_with.rb
<add>require 'testing_env'
<add>require 'test/testball'
<add>
<add>class FailsWithTests < Test::Unit::TestCase
<add> class Double < Compiler
<add> attr_accessor :name, :build
<add> end
<add>
<add> def assert_fails_with(cc)
<add> assert @f.new.fails_with?(cc)
... | 1 |
Python | Python | fix mypy for cli package | f7a9fd757454e4e6e9686b765cb088caccaba8c3 | <ide><path>airflow/cli/commands/cheat_sheet_command.py
<ide> from airflow.cli.cli_parser import ActionCommand, GroupCommand, airflow_commands
<ide> from airflow.cli.simple_table import AirflowConsole, SimpleTable
<ide> from airflow.utils.cli import suppress_logs_and_warning
<del>from airflow.utils.helpers import partit... | 3 |
Python | Python | add missing unicode declaration | 337f9601f26d463f4f2ba6349a1ec81a60515c35 | <ide><path>spacy/tests/regression/test_issue743.py
<add># coding: utf8
<ide> from __future__ import unicode_literals
<ide> from ...vocab import Vocab
<ide> from ...tokens.doc import Doc | 1 |
Python | Python | fix custom init sorting script | 175da8d1821f108da7c0a61b32b6db861730f15f | <ide><path>src/transformers/__init__.py
<ide> # tokenizers-backed objects
<ide> if is_tokenizers_available():
<ide> # Fast tokenizers
<del> _import_structure["models.realm"].append("RealmTokenizerFast")
<del> _import_structure["models.xglm"].append("XGLMTokenizerFast")
<del> _import_structure["models.fnet"... | 3 |
Javascript | Javascript | avoid object.defineproperties for nodes | 95fb798980d7e404c413e29e20016db9052e2bf2 | <ide><path>src/data/Data.js
<ide> Data.prototype = {
<ide> return 0;
<ide> }
<ide>
<del> var descriptor = {},
<del> // Check if the owner object already has a cache key
<del> unlock = owner[ this.expando ];
<add> // Check if the owner object already has a cache key
<add> var unlock = owner[ this.expando ];... | 1 |
Python | Python | adjust info message | 761bd60d43748c5b85399d5c1a484f188c6a08de | <ide><path>spacy/cli/project/assets.py
<ide> def project_assets(project_dir: Path) -> None:
<ide> if dest.exists():
<ide> # If there's already a file, check for checksum
<ide> if checksum and checksum == get_checksum(dest):
<del> msg.good(f"Skipping downloa... | 1 |
Javascript | Javascript | fix non-determinism in test-crypto-domains | 1f11983350a7da56bb1d0ca560a7e5ec5c1c0d43 | <ide><path>test/simple/test-crypto-domains.js
<ide> var domain = require('domain');
<ide> var assert = require('assert');
<ide> var d = domain.create();
<ide> var expect = ['pbkdf2', 'randomBytes', 'pseudoRandomBytes']
<add>var errors = 0;
<add>
<add>process.on('exit', function() {
<add> assert.equal(errors, 3);
<add>... | 1 |
Javascript | Javascript | remove unreachable code | 6a8cedf9858cfef73f70784a377d5c008360e5a0 | <ide><path>src/renderers/shared/fiber/ReactFiberPendingWork.js
<ide> exports.findNextUnitOfWorkAtPriority = function(currentRoot : Fiber, priorityLev
<ide> current.pendingWorkPriority = NoWork;
<ide> }
<ide> if (current === currentRoot) {
<del> if (current.pendingWorkPriority <= priorityLevel) {
<del... | 1 |
Ruby | Ruby | fix inconsistent behavior from string#first/#last | 9e67954dcfdc92f1087a03c0b1c61251d993e270 | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<ide> def to(position)
<ide>
<ide> # Returns the first character. If a limit is supplied, returns a substring
<ide> # from the beginning of the string until it reaches the limit value. If the
<del> # given limit is greater than or equal to the ... | 2 |
Text | Text | remove redux comment | 6de3ff9d78108dc439cb49bbc22c8cf1bbcd8a5b | <ide><path>examples/with-apollo/README.md
<ide> In this simple example, we integrate Apollo seamlessly with Next by wrapping our
<ide> On initial page load, while on the server and inside `getInitialProps`, we invoke the Apollo method, [`getDataFromTree`](http://dev.apollodata.com/react/server-side-rendering.html#getD... | 1 |
Text | Text | fix typo in arm.md | 25cfa80119df7e2859729bdac4bae4a753b82d62 | <ide><path>ARM.md
<ide> A Scaleway C1 server can be easily purchased on demand on the Scaleway website:
<ide>
<ide> https://www.scaleway.com
<ide>
<del>It is a cheap and fast way to get access to a pysical ARM server.
<add>It is a cheap and fast way to get access to a physical ARM server.
<ide> It features a 4-cores ... | 1 |
Javascript | Javascript | add view_type meta to analytics | 3cee5509e61ef335f2ef86c9d98fc7d1eca9f832 | <ide><path>client/src/redux/ga-saga.js
<ide> import ga from '../analytics';
<ide> import {
<ide> emailSelector,
<ide> completionCountSelector,
<del> completedChallengesSelector
<add> completedChallengesSelector,
<add> recentlyClaimedBlockSelector
<ide> } from '../redux';
<ide> import { emailToABVariant } from '.... | 1 |
Text | Text | add 2.9.0-beta.1 to changelog.md | cb917916c9c69ad44e02905d7961f812b7aceab9 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.9.0-beta.1 (September 8, 2012)
<add>
<add>- [#14156](https://github.com/emberjs/ember.js/pull/14156) [FEATURE ember-glimmer] Enable by default.
<add>
<ide> ### 2.8.0 (September 8, 2016)
<ide>
<ide> - [#14229](https://github.com/emberjs/ember.js/pull/142... | 1 |
Javascript | Javascript | switch the param order in the assertion | 23416936bc3fd4c3d3d49e4025e82d42dc18036f | <ide><path>test/parallel/test-tls-sni-option.js
<ide> test({
<ide> function test(options, clientResult, serverResult, clientError, serverError) {
<ide> const server = tls.createServer(serverOptions, (c) => {
<ide> assert.deepStrictEqual(
<del> { sni: c.servername, authorized: c.authorized },
<del> serve... | 1 |
Python | Python | update hooks to use parameters | 19b6544a4d267494e95652ae264c443511524222 | <ide><path>airflow/operators/jdbc_operator.py
<ide> class JdbcOperator(BaseOperator):
<ide> @apply_defaults
<ide> def __init__(
<ide> self, sql,
<del> jdbc_conn_id='jdbc_default', autocommit=False,
<add> jdbc_conn_id='jdbc_default', autocommit=False, parameters=None,
<ide> ... | 5 |
PHP | PHP | add tests for schemavalue | 3649d42c2d250aad87f230dbc82b23c999682c74 | <ide><path>lib/Cake/Test/TestCase/Database/Driver/SqliteTest.php
<ide> public function testConnectionConfigCustom() {
<ide> $driver->connect($config);
<ide> }
<ide>
<add>/**
<add> * Data provider for schemaValue()
<add> *
<add> * @return array
<add> */
<add> public static function schemaValueProvider() {
<add> ret... | 1 |
PHP | PHP | fix tests on postgres | a5fb82d4da9ddf86b1d951ed074833fa6d1f94bc | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testSaveManyResultSet()
<ide> {
<ide> $table = TableRegistry::get('authors');
<ide>
<del> $entities = $table->find()->all();
<add> $entities = $table->find()
<add> ->order(['id' => 'ASC'])
<add> ->all();
<... | 1 |
Python | Python | fix oov_char=none case in imdb/reuters datasets | bcbfcc000ce07078786bae5f66f8b30dbe82fb64 | <ide><path>keras/datasets/imdb.py
<ide> def load_data(path='imdb.npz', num_words=None, skip_top=0,
<ide> for x in xs:
<ide> nx = []
<ide> for w in x:
<del> if w >= num_words or w < skip_top:
<add> if skip_top <= w < num_words:
<ide> nx.ap... | 2 |
Go | Go | fix libdm logging | e07d3cd9acf14219f33e12375fb8c2e3fe02ad0c | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> var (
<ide> DefaultThinpBlockSize uint32 = 128 // 64K = 128 512b sectors
<ide> MaxDeviceId int = 0xffffff // 24 bit, pool limit
<ide> DeviceIdMapSz int = (MaxDeviceId + 1) / 8
<add> // We retry device removal so... | 1 |
Mixed | Javascript | add pertinent info for fresh flatlisters | 2161f92aaf37e126c6906e7ae6202d196b72648c | <ide><path>Libraries/Lists/FlatList.js
<ide> type OptionalProps<ItemT> = {
<ide> * {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index}
<ide> * )}
<ide> *
<add> * Adding `getItemLayout` can be a great performance boost for lists of several hundred items.
<ide> * Remember to include separato... | 2 |
Python | Python | fix cloudsigma tests | d0f6d22dbefe1de31cd13bdff813bb82c18f1a3d | <ide><path>libcloud/test/compute/test_cloudsigma_v1_0.py
<ide> class CloudSigmaAPI10BaseTestCase(object):
<ide> driver_kwargs = {}
<ide>
<ide> def setUp(self):
<add> self.driver_klass.connectionCls.conn_class = CloudSigmaHttp
<add> CloudSigmaHttp.type = None
<ide> self.driver = self.drive... | 1 |
Javascript | Javascript | remove unused variable | 2de0611b43f1587c511de65ef50c647e77e28abb | <ide><path>lib/crypto.js
<ide> function Credentials(secureProtocol, context) {
<ide>
<ide> if (context) {
<ide> this.context = context;
<del> this.reuseContext = true;
<ide> } else {
<ide> this.context = new SecureContext();
<ide> | 1 |
PHP | PHP | allow connection in 'exists' validation | 94f11c1d741d921e25c6fb6cbb8373f7d97ad161 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateUnique($attribute, $value, $parameters)
<ide> {
<ide> $this->requireParameterCount(1, $parameters, 'unique');
<ide>
<del> list($connection, $table) = $this->parseUniqueTable($parameters[0]);
<add> list($connec... | 1 |
Ruby | Ruby | remove unused variable - offset_bind | f2d66cddce16e6fb6a91085f01e79044dd5f7db7 | <ide><path>lib/arel/visitors/oracle.rb
<ide> def visit_Arel_Nodes_SelectStatement o, collector
<ide> collector = super(o, collector)
<ide>
<ide> if offset.expr.is_a? Nodes::BindParam
<del> offset_bind = nil
<ide> collector << ') raw_sql_ WHERE rownum <= ('
<ide> c... | 1 |
Java | Java | fix typo in abstractdelegatingsmartcontextloader | fe6a9826c57705149610fd678f71f0f6e423ff9f | <ide><path>spring-test/src/main/java/org/springframework/test/context/support/AbstractDelegatingSmartContextLoader.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "... | 1 |
Javascript | Javascript | add http_simple_auto benchmark | 7535e3930a6d78674fb163d62ab818f8cb924df1 | <ide><path>benchmark/http_simple_auto.js
<add>//
<add>// Usage:
<add>// node benchmark/http_simple_auto.js <args> <target>
<add>//
<add>// Where:
<add>// <args> Arguments to pass to `ab`.
<add>// <target> Target to benchmark, e.g. `bytes/1024` or `buffer/8192`.
<add>//
<add>
<add>var path = require("path");
<ad... | 1 |
Ruby | Ruby | make current_url? work with a head method | f7277d99bf76e947fd404ac316eafeb993cc5bcd | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def current_page?(options)
<ide> "in a #request method"
<ide> end
<ide>
<del> return false unless request.get?
<add> return false unless request.get? || request.head?
<ide>
<ide> url_string = url_for(option... | 2 |
Java | Java | fix handshake handling issue | 9ca4672300aa59949ac1073c56feedee783af6ec | <ide><path>spring-websocket/src/main/java/org/springframework/websocket/CloseStatus.java
<ide> public boolean equals(Object other) {
<ide> return (this.code == otherStatus.code && ObjectUtils.nullSafeEquals(this.reason, otherStatus.reason));
<ide> }
<ide>
<add> public boolean equalsCode(CloseStatus other) {
<add> ... | 4 |
Ruby | Ruby | move mydumper to the boneyard | 174a9a76b48605904e37bce6b588230f8eadbe45 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "lmutil" => "homebrew/binary",
<ide> "mlkit" => "homebrew/boneyard",
<ide> "mlton" => "homebrew/boneyard",
<add> "mydumper" => "homebrew/boneyard",
<ide> "nlopt" => "homebrew/science",
<ide> "octave" => "homebrew/science",
<ide> "opencv" => "homebrew/scie... | 1 |
Text | Text | add v5.6.14 release notes | 0ebe9fede1566e4357b337da978bf5336b9c774e | <ide><path>CHANGELOG-5.6.md
<ide> # Release Notes for 5.6.x
<ide>
<add>## v5.6.14 (2018-03-28)
<add>
<add>### Added
<add>- Added `SlackMessage::info()` method ([#23711](https://github.com/laravel/framework/pull/23711))
<add>- Added `SessionGuard::logoutOtherDevices()` method ([9c51e49](https://github.com/laravel/frame... | 1 |
Python | Python | ignore the issue | 2f2197dece910fb72861423e419e2efaf1cbd399 | <ide><path>tests/plugins/test_plugins_manager.py
<ide> import importlib.metadata
<ide>
<ide> # only when we do not have importlib_metadata, the importlib.metadata is actually used
<del> importlib_metadata = 'importlib.metadata'
<add> importlib_metadata = 'importlib.metadata' # type: igno... | 1 |
Java | Java | add observable switchmapx and concatmapx operators | f6f6d82782b145ac4155707400db1b2f38cc221f | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> import io.reactivex.internal.fuseable.ScalarCallable;
<ide> import io.reactivex.internal.observers.*;
<ide> import io.reactivex.internal.operators.flowable.*;
<add>import io.reactivex.internal.operators.mixed.*;
<ide> import io.reactivex.internal.operators.obs... | 19 |
Python | Python | remove an unnecessary indexing | 7c5380d61e31db60f44bdc86047c71f2b1f63458 | <ide><path>numpy/_array_api/_creation_functions.py
<ide> def full(shape: Union[int, Tuple[int, ...]], fill_value: Union[int, float], *, d
<ide> # Note: Device support is not yet implemented on Array
<ide> raise NotImplementedError("Device support is not yet implemented")
<ide> if isinstance(fill_val... | 1 |
Text | Text | fix typo in readme.md | 3ef5d575f33b0ae9ccd65521f298e2c39b335623 | <ide><path>README.md
<ide> The Node.js project maintains multiple types of releases:
<ide> and security. Every second Stable release line (major version) will become an
<ide> LTS line and receive 18 months of _Active LTS_ support and a further 12
<ide> months of _Maintenance_. LTS release lines are given alphabet... | 1 |
Python | Python | fix examples/mnist_net2net.py for keras 2 | f569c75b7dfd3d7ccc3510a8717fb4f63a603a7b | <ide><path>examples/mnist_net2net.py
<ide> - Net2WiderNet experiment:
<ide> + Student model has a wider Conv2D layer and a wider FC layer.
<ide> + Comparison of 'random-padding' vs 'net2wider' weight initialization.
<del> + With both methods, student model should immediately perform as well as
<add> + With both m... | 1 |
Ruby | Ruby | remove ignored flag, fixes warnings | 9c4532bf74604ae1c52a44d1aa8c1022a312ff88 | <ide><path>actionpack/lib/action_dispatch/middleware/remote_ip.rb
<ide> def initialize(app, check_ip_spoofing = true, custom_proxies = nil)
<ide> @app = app
<ide> @check_ip_spoofing = check_ip_spoofing
<ide> if custom_proxies
<del> custom_regexp = Regexp.new(custom_proxies, "i")
<add> cu... | 1 |
Javascript | Javascript | improve tests related to custom `tostring` | f5917763130e2dedeb02ee4a09bc19323d1c1675 | <ide><path>test/ng/filter/filterSpec.js
<ide> describe('Filter: filter', function() {
<ide>
<ide> describe('should support comparator', function() {
<ide>
<del> it('not consider `object === "[object Object]"` in non-strict comparison', function() {
<add> it('not consider objects without a custom `toString` in... | 1 |
Text | Text | add docs for new prop types | 30646c9c1e207f813d97465068f03ea401353b20 | <ide><path>docs/docs/05-reusable-components.md
<ide> React.createClass({
<ide>
<ide> // You can ensure that your prop is limited to specific values by treating
<ide> // it as an enum.
<del> optionalEnum: React.PropTypes.oneOf(['News','Photos']),
<add> optionalEnum: React.PropTypes.oneOf(['News', 'Photos'... | 1 |
Java | Java | add rfc-5681 support to cachecontrol | 6c282096c68426c1f926ff3682a0bdca9a23ea21 | <ide><path>spring-web/src/main/java/org/springframework/http/CacheControl.java
<ide> public class CacheControl {
<ide>
<ide> private boolean proxyRevalidate = false;
<ide>
<add> private long staleWhileRevalidate = -1;
<add>
<add> private long staleIfError = -1;
<add>
<ide> private long sMaxAge = -1;
<ide>
<ide>
<... | 2 |
PHP | PHP | apply fixes from styleci | f0504da67feda7c77fcdddb5c3130d6308b50308 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> use Mockery as m;
<ide> use LogicException;
<ide> use ReflectionClass;
<del>use RuntimeException;
<ide> use DateTimeImmutable;
<ide> use DateTimeInterface;
<ide> use InvalidArgumentException; | 1 |
Python | Python | fix connection.description migration for mysql8 | cdaaff12c7c80311eba22dcb856fe9c24d7f49aa | <ide><path>airflow/migrations/versions/61ec73d9401f_add_description_field_to_connection.py
<ide>
<ide> def upgrade():
<ide> """Apply Add description field to connection"""
<add> conn = op.get_bind() # pylint: disable=no-member
<add>
<ide> with op.batch_alter_table('connection') as batch_op:
<del> ba... | 3 |
Go | Go | fix typo for download and upload retry messages | f8d14bd4c6a0e3c58130be159b05b8aa63374f6e | <ide><path>distribution/xfer/download.go
<ide> func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
<ide>
<ide> selectLoop:
<ide> for {
<del> progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d seconds", delay)
<add> progress.Updatef(progressOutput, descriptor.I... | 2 |
Javascript | Javascript | add regression test for smuggling content length | 7beff4de6f09ded170f9363e9e57dd32a42943b6 | <ide><path>test/parallel/test-http-request-smuggling-content-length.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const http = require('http');
<add>const net = require('net');
<add>const assert = require('assert');
<add>
<add>// Verify that a request with a space before the content length ... | 1 |
Python | Python | fix seq2seqtrainer predict without labels | 02b63702d9f9d5d992908e57c70f020a0d105808 | <ide><path>src/transformers/trainer_seq2seq.py
<ide> def prediction_step(
<ide> generated_tokens = self._pad_tensors_to_max_len(generated_tokens, gen_kwargs["max_new_tokens"] + 1)
<ide>
<ide> with torch.no_grad():
<del> with self.compute_loss_context_manager():
<del> outpu... | 1 |
Python | Python | fix small grammatical error in comment | 8e737cf28212ba65d93e62b58a21d929e0bced26 | <ide><path>django/db/models/sql/subqueries.py
<ide> def delete_qs(self, query, using):
<ide> if innerq.alias_refcount[t]]
<ide> if ((not innerq_used_tables or innerq_used_tables == self.tables)
<ide> and not len(innerq.having)):
<del> # There is only the base... | 1 |
Javascript | Javascript | fix benchmark linter issues | 54977cd33181b325e4b3523cbb7bdc808106e77c | <ide><path>benchmark/benchmark.js
<ide> const benchmarkOptions = {
<ide> };
<ide>
<ide> function runTimes(compiler, times, deferred) {
<del> fs.writeFileSync(path.join(fixtures, "0.js"), "module.exports = " + Math.random(), "utf-8");
<add> fs.writeFileSync(
<add> path.join(fixtures, "0.js"),
<add> "module.exports = ... | 7 |
Ruby | Ruby | extend ext list | b109e4f1f1c39fb4d7ba49dc954c4de9ab3d286b | <ide><path>Library/Homebrew/metafiles.rb
<ide> class Metafiles
<del> EXTENSIONS = %w[.md .html .rtf .txt]
<add> # https://github.com/github/markup#markups
<add> EXTENSIONS = %w[
<add> .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn
<add> .org .pod .rdoc .rst .rtf .textile .txt .wiki
<a... | 1 |
Ruby | Ruby | update rdoc comments for #redirect | d0bd1e93a1c26e5206a71d7966f2230f0823700e | <ide><path>actionpack/lib/action_dispatch/routing/redirection.rb
<ide> module Redirection
<ide> # This will redirect the user, while ignoring certain parts of the request, including query string, etc.
<ide> # <tt>/stories</tt>, <tt>/stories?foo=bar</tt>, etc all redirect to <tt>/posts</tt>.
<ide> #
<a... | 1 |
Ruby | Ruby | combine duplicated postfix conditionals | 2f542f657e656d2e13a5a7cd0acc406c71c036ab | <ide><path>Library/Homebrew/keg.rb
<ide> def link mode=OpenStruct.new
<ide> end
<ide> end
<ide>
<del> linked_keg_record.make_relative_symlink(self) unless mode.dry_run
<del>
<del> optlink unless mode.dry_run
<add> unless mode.dry_run
<add> linked_keg_record.make_relative_symlink(self)
<add> ... | 1 |
Python | Python | update return value | 35c0aff93069b331a56d5e76ae7f842be527030d | <ide><path>airflow/models.py
<ide> ID_LEN = 250
<ide> SQL_ALCHEMY_CONN = conf.get('core', 'SQL_ALCHEMY_CONN')
<ide> DAGS_FOLDER = os.path.expanduser(conf.get('core', 'DAGS_FOLDER'))
<del>RETURN_XCOM = '<Returned XCom>'
<add>RETURN_XCOM = '__return_value__'
<ide>
<ide>
<ide> if 'mysql' in SQL_ALCHEMY_CONN: | 1 |
PHP | PHP | fix missing precision, and remove charset/collate | b3acb2ef1e888d9e80cc93751856ce9fd48c04b5 | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function convertColumn($column) {
<ide> }
<ide>
<ide> $col = strtolower($matches[1]);
<del> $length = null;
<add> $length = $precision = null;
<ide> if (isset($matches[2])) {
<del> $length = (int)$matches[2];
<add> $length = $matches[2];
<add... | 4 |
Javascript | Javascript | update some apis/datastructures | f5ae5027ccca043fa67138f04d38a9ce57be7f15 | <ide><path>api-server/server/boot/settings.js
<ide> function updateMyCurrentChallenge(req, res, next) {
<ide> user,
<ide> body: { currentChallengeId }
<ide> } = req;
<del> return user
<del> .update$({ currentChallengeId })
<del> .subscribe(() => res.status(200), next);
<add> return user.updateAttribut... | 2 |
Java | Java | improve javadocs of connectable sources | c573219f520c30583f8a62f9c996c6c17b2de447 | <ide><path>src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java
<ide> import java.util.Objects;
<ide> import java.util.concurrent.TimeUnit;
<ide>
<del>import org.reactivestreams.Subscriber;
<add>import org.reactivestreams.*;
<ide>
<ide> import io.reactivex.rxjava3.annotations.*;
<ide> import io.react... | 3 |
Text | Text | remove a link | b494bb9d01da2a596c97aef55a9c66c39dbba9ea | <ide><path>readme.md
<ide> Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
<ide>
<i... | 1 |
Javascript | Javascript | update mutable_array example | 8ebca79ae105752cfd8452a8b2f41aeb1aedb54a | <ide><path>packages/ember-runtime/lib/mixins/mutable_array.js
<ide> export default Mixin.create(EmberArray, MutableEnumerable, {
<ide> want to reuse an existing array without having to recreate it.
<ide>
<ide> ```javascript
<del> var colors = ["red", "green", "blue"];
<add> var colors = ['red', 'green', ... | 1 |
Javascript | Javascript | use consistent option context for scales | fc65679a07d2d0ab20e252cee292c671569e9aab | <ide><path>src/core/core.scale.js
<ide> export default class Scale extends Element {
<ide> const items = [];
<ide>
<ide> let context = {
<add> chart,
<ide> scale: me,
<ide> tick: ticks[0],
<add> index: 0,
<ide> };
<ide> const axisWidth = gridLines.drawBorder ? resolve([gridLines.borderWidth, gridLine... | 1 |
PHP | PHP | add example test file | ae7faf1e45161d58f01c355b81ffdec6f5ff5a4b | <ide><path>phpunit.php
<ide> // --------------------------------------------------------------
<ide> // Override the framework paths if testing Laravel.
<ide> // --------------------------------------------------------------
<del>if (in_array('build.xml', $_SERVER['argv']))
<add>foreach ($_SERVER['argv'] as $argument)
... | 2 |
Javascript | Javascript | improve error property inspection | f7c96856f90f4fcd53bc3c166736a53e9c25d729 | <ide><path>lib/internal/util/inspect.js
<ide> function formatProperty(ctx, value, recurseTimes, key, type) {
<ide> return `${name}:${extra}${str}`;
<ide> }
<ide>
<del>function isBelowBreakLength(ctx, output, start) {
<add>function isBelowBreakLength(ctx, output, start, base) {
<ide> // Each entry is separated by a... | 4 |
Javascript | Javascript | add resource by @mikesherov to gruntfile | 8cc217eac3c49515b8aff591a9a5a7e304f6e597 | <ide><path>grunt.js
<add>// Resources
<add>// https://gist.github.com/2489540
<add>
<ide> /*global config:true, task:true*/
<ide> module.exports = function( grunt ) {
<ide> | 1 |
Text | Text | remove use of you | e3f4ec94b8360414ecff65d8c04d9fa15d510c7f | <ide><path>doc/api/n-api.md
<ide> available to the module code.
<ide>
<ide> N-API versions are additive and versioned independently from Node.js.
<ide> Version 4 is an extension to version 3 in that it has all of the APIs
<del>from version 3 with some additions. This means that you
<del>do not need to recompile for ne... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.