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 |
|---|---|---|---|---|---|
Javascript | Javascript | add defaultsource example | cb2eeb484d52c24853471025a49c136159429afa | <ide><path>Examples/UIExplorer/ImageExample.js
<ide> exports.examples = [
<ide> },
<ide> platform: 'ios',
<ide> },
<add> {
<add> title: 'defaultSource',
<add> description: 'Show a placeholder image when a network image is loading',
<add> render: function() {
<add> return (
<add> <Image
<... | 1 |
PHP | PHP | update filesystemadapter.php | 9c61823bc07b2e84583b1a9c9ccbc89cab2798e4 | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> public function get($path)
<ide> try {
<ide> return $this->driver->read($path);
<ide> } catch (FileNotFoundException $e) {
<del> throw new ContractFileNotFoundException($path, $e->getCode(), $e);
<add> thr... | 1 |
Ruby | Ruby | fix a typo affecting internet archive | c4787a0a8b315e296fe4523b7e50c392eb07b8a5 | <ide><path>Library/Homebrew/dev-cmd/pr-upload.rb
<ide> def check_bottled_formulae(bottles_hash)
<ide>
<ide> def archive?(bottles_hash)
<ide> @archive ||= bottles_hash.values.all? do |bottle_hash|
<del> bottle_hash["bottle"]["root_url"].start_with? "https://archive.com/"
<add> bottle_hash["bottle"]["roo... | 1 |
PHP | PHP | add test for factory config option | ef9cf327dd802a4608dd2a893011a9d7d565232b | <ide><path>tests/TestCase/Error/ExceptionTrapTest.php
<ide> public function testConfigExceptionRenderer()
<ide> $this->assertInstanceOf(ExceptionRenderer::class, $trap->renderer($error));
<ide> }
<ide>
<add> public function testConfigExceptionRendererFactory()
<add> {
<add> $trap = new Excepti... | 1 |
Text | Text | update plugin_volume apidocs for v2 | 48ccdf1f7aa28c14117076f940f66ce753283117 | <ide><path>docs/extend/plugins_volume.md
<ide> keywords: "Examples, Usage, volume, docker, data, volumes, plugin, api"
<ide> # Write a volume plugin
<ide>
<ide> Docker Engine volume plugins enable Engine deployments to be integrated with
<del>external storage systems, such as Amazon EBS, and enable data volumes to per... | 1 |
Go | Go | fix a minor but in utils parsing udp/tcp ports | 30e2ee9793410882381d98a2efac240fab9ba20e | <ide><path>libnetwork/netutils/utils.go
<ide> func ParseProtocol(s string) Protocol {
<ide> case "icmp":
<ide> return 1
<ide> case "udp":
<del> return 6
<del> case "tcp":
<ide> return 17
<add> case "tcp":
<add> return 6
<ide> default:
<ide> return 0
<ide> } | 1 |
Python | Python | fix equal schedules | 1f7b2aecc9da7c073accb282c98f463c68f14a39 | <ide><path>celery/beat.py
<ide> def __lt__(self, other):
<ide> return id(self) < id(other)
<ide> return NotImplemented
<ide>
<add> def editable_fields_equal(self, other):
<add> for attr in ('task', 'args', 'kwargs', 'options', 'schedule'):
<add> if getattr(self, attr) != getatt... | 2 |
Text | Text | update kloudless logo | 2aecef3460340add1b12d631304acc06bcf7c64d | <ide><path>docs/index.md
<ide> continued development by **[signing up for a paid plan][funding]**.
<ide> <li><a href="https://rollbar.com" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/rollbar2.png)">Rollbar</a></li>
<ide> <li><a href="https://cadre.com" style="background-image: url(... | 1 |
Python | Python | try catch on sensors module. correct issue #373 | e66dbe87eacdbc14ab456f38ed4fc3cf6ac0046a | <ide><path>glances/plugins/glances_sensors.py
<ide> def update(self):
<ide> self.reset()
<ide>
<ide> if self.get_input() == 'local':
<del> # Update stats using the standard system lib
<del> self.stats = self.__set_type(self.glancesgrabsensors.get(), 'temperature_core')
<del> ... | 1 |
Javascript | Javascript | avoid usage of deprecated apis | 849fb70e2936d621e4952996013ec5f88e9058ff | <ide><path>lib/internal/streams/readable.js
<ide> Readable.prototype.pipe = function(dest, pipeOpts) {
<ide> debug('onerror', er);
<ide> unpipe();
<ide> dest.removeListener('error', onerror);
<del> if (EE.listenerCount(dest, 'error') === 0) {
<add> if (dest.listenerCount('error') === 0) {
<ide> ... | 1 |
Javascript | Javascript | fix argument order in assert.strictequal() | 1ba701383f84d632f0cfe9107f769a052f2b5b8b | <ide><path>test/parallel/test-http-chunked.js
<ide> server.listen(0, common.mustCall(() => {
<ide> x.setEncoding('utf8');
<ide> x.on('data', (c) => data += c);
<ide> x.on('end', common.mustCall(() => {
<del> assert.strictEqual('string', typeof data);
<add> assert.strictEqual(typeof data, 'string')... | 1 |
Ruby | Ruby | move safe_fork into a standalone method | 06f72ab38f7330eaef9a4cc05dd31b35e8bf26f5 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> require 'cmd/tap'
<ide> require 'hooks/bottles'
<ide> require 'debrew'
<del>require 'fcntl'
<del>require 'socket'
<ide> require 'sandbox'
<ide>
<ide> class FormulaInstaller
<ide> def build_argv
<ide> end
<ide>
<ide> def build
<del> socket_path = "#{Dir.mkt... | 3 |
Javascript | Javascript | remove tab indentation | 2c57dcf26baade027b78a08309b50db97a2feb14 | <ide><path>packages/rsvp/lib/main.js
<ide> define("rsvp",
<ide> }
<ide>
<ide> function all(promises) {
<del> var i, results = [];
<del> var allPromise = new Promise();
<del> var remaining = promises.length;
<add> var i, results = [];
<add> var allPromise = new Promise();
<add> var re... | 1 |
Ruby | Ruby | go test to spec | f8ea9266410c0c2733b6de3c5a3e690842e7b9a8 | <ide><path>Library/Homebrew/test/language/go_spec.rb
<add>require "language/go"
<add>
<add>describe Language::Go do
<add> specify "#stage_deps" do
<add> ENV.delete("HOMEBREW_DEVELOPER")
<add>
<add> expect(described_class).to receive(:opoo).once
<add>
<add> Dir.mktmpdir do |path|
<add> shutup do
<add> ... | 2 |
Go | Go | add a missing unlock | 83c0bedba914fa08c9d1f2fe1e47b38a3264777d | <ide><path>daemon/cluster/swarm.go
<ide> func (c *Cluster) Init(req types.InitRequest) (string, error) {
<ide> // API handlers to finish before shutting down the node.
<ide> c.mu.Lock()
<ide> if !c.nr.nodeState.IsManager() {
<add> c.mu.Unlock()
<ide> return "", errSwarmNotManager
<ide> }
<ide> c.m... | 1 |
Ruby | Ruby | check resource placement | 557f6e33a9496513006a3ec69f9d3f3d0450e9e5 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_file
<ide> [/^ keg_only/, "keg_only"],
<ide> [/^ option/, "option"],
<ide> [/^ depends_on/, "depends_on"],
<add> [/^ (go_)?resource/, "resource"],
<ide> ... | 1 |
Go | Go | fix nonewmountns for containerd options | 97b0a9d5f195c7daf16cf9dcfb6c4d62044163fe | <ide><path>cmd/dockerd/daemon_unix.go
<ide> import (
<ide> "github.com/docker/docker/cmd/dockerd/hack"
<ide> "github.com/docker/docker/daemon"
<ide> "github.com/docker/docker/libcontainerd"
<del> "github.com/docker/docker/pkg/parsers/kernel"
<ide> "github.com/docker/libnetwork/portallocator"
<ide> "golang.org/x/sy... | 1 |
Javascript | Javascript | remove redundant condition | f985a25ba7452b015f41dda651d2d9d03cc553b9 | <ide><path>lib/_http_outgoing.js
<ide> function _writeRaw(data, encoding, callback) {
<ide> encoding = null;
<ide> }
<ide>
<del> if (conn && conn._httpMessage === this && conn.writable && !conn.destroyed) {
<add> if (conn && conn._httpMessage === this && conn.writable) {
<ide> // There might be pending dat... | 1 |
Python | Python | update the package links (fixes ) | 7d4658eedef4b9d87974e1a59e26c2da77b1f961 | <ide><path>celery/__init__.py
<ide> __version__ = '5.2.3'
<ide> __author__ = 'Ask Solem'
<ide> __contact__ = 'auvipy@gmail.com'
<del>__homepage__ = 'http://celeryproject.org'
<add>__homepage__ = 'https://docs.celeryq.dev/'
<ide> __docformat__ = 'restructuredtext'
<ide> __keywords__ = 'task job queue distributed messagi... | 2 |
Java | Java | reflect recent reactor changes | e4588628491889369119d73e801bdd7481ae13d3 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ChannelSendOperator.java
<ide> import org.reactivestreams.Publisher;
<ide> import org.reactivestreams.Subscriber;
<ide> import org.reactivestreams.Subscription;
<add>import reactor.core.CoreSubscriber;
<ide> import reactor.core.Scannable;
<ide... | 1 |
Text | Text | add tip for running binstubs on windows [ci skip] | eed34e2251fbaa03d86402f7d80ecc3f8a62fb51 | <ide><path>guides/source/getting_started.md
<ide> following in the `blog` directory:
<ide> $ bin/rails server
<ide> ```
<ide>
<add>TIP: If you are using Windows, you have to pass the scripts under the `bin`
<add>folder directly to the Ruby interpreter e.g. `ruby bin\rails server`.
<add>
<ide> TIP: Compiling CoffeeScr... | 1 |
Javascript | Javascript | fix validation snapshots | 794fe448fa09fd7f5f0c5eeaabf0d0d83b9725d5 | <ide><path>test/Validation.test.js
<ide> describe("Validation", () => {
<ide> expect(msg).toMatchInlineSnapshot(`
<ide> "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
<ide> - configuration.entry should be an non-empty string.
<del> ... | 1 |
Ruby | Ruby | convert column name to string only once | 872a17d2a985274923cb8adc8aec8c3d22fe0b67 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def without_prepared_statement?(binds)
<ide> end
<ide>
<ide> def column_for(table_name, column_name) # :nodoc:
<del> unless column = columns(table_name).detect { |c| c.name == column_name.to_s }
<add> colu... | 1 |
Ruby | Ruby | fix binary logic | 5413ddcb6557f1ceb3fbc9bcf28b4cf65ca1c218 | <ide><path>Library/Homebrew/requirements/tuntap_requirement.rb
<ide> class TuntapRequirement < Requirement
<ide> satisfy(:build_env => false) { self.class.binary_tuntap_installed? || Formula["tuntap"].installed? }
<ide>
<ide> def self.binary_tuntap_installed?
<del> File.exist?("/Library/Extensions/tun.kext") &&... | 1 |
Javascript | Javascript | remove markernote from js bindings | b07bbab392ae394e7e6e042862620371bc36ea4b | <ide><path>Libraries/Performance/QuickPerformanceLogger.js
<ide> const QuickPerformanceLogger = {
<ide> }
<ide> },
<ide>
<del> markerNote(
<del> markerId: number,
<del> actionId: number,
<del> instanceKey: number = DUMMY_INSTANCE_KEY,
<del> timestamp: number = AUTO_SET_TIMESTAMP,
<del> ): void {
<d... | 1 |
Go | Go | fix data race in run() | 11a5f1af01842acf9a25ccebb59f36472ae51170 | <ide><path>daemon/stats_collector.go
<ide> func (s *statsCollector) unsubscribe(c *Container, ch chan interface{}) {
<ide> }
<ide>
<ide> func (s *statsCollector) run() {
<add> type publishersPair struct {
<add> container *Container
<add> publisher *pubsub.Publisher
<add> }
<add> // we cannot determine the capacity h... | 1 |
Text | Text | update docs with no_proxy change, issue | 86d77504c2712ffd787873d0642e62a4e4c5de10 | <ide><path>CHANGELOG.md
<ide>
<ide> Fixes and Functionality:
<ide>
<add>- Added support for no_proxy env variable ([#434](https://github.com/axios/axios/pull/1693/files)) - Chance Dickson
<ide> - Unzip response body only for statuses != 204 ([#1129](https://github.com/axios/axios/pull/1129)) - drawski
<ide> - Destroy... | 1 |
Javascript | Javascript | use white backdrop when possible | ec311f303b40ed6457278ec157d49fb761144f36 | <ide><path>src/api.js
<ide> var PDFPageProxy = (function PDFPageProxyClosure() {
<ide> var stats = this.stats;
<ide> stats.time('Rendering');
<ide>
<del> gfx.beginDrawing(viewport);
<add> var operatorList = this.operatorList;
<add> gfx.beginDrawing(viewport, operatorList.transparency);
<ide>... | 5 |
Javascript | Javascript | fix eaddrinuse bug | e81a89b11610f4692d18f0515494a26a318119aa | <ide><path>lib/net_uv.js
<ide> function listenip(self, ip, port, addressType) {
<ide>
<ide> // assign handle in listen, and clean up if bind or listen fails
<ide> self._handle = new TCP();
<del> self._handle.socket = this;
<add> self._handle.socket = self;
<ide> self._handle.onconnection = onconnection;
<ide> ... | 1 |
Javascript | Javascript | remove unused variables | 81bf90e35ae3b57cea01926408d0ebbc3c742a57 | <ide><path>test/createStore.spec.js
<ide> describe('createStore', () => {
<ide> expect(listener3.calls.length).toBe(1)
<ide> expect(listener4.calls.length).toBe(1)
<ide> })
<del> const unsubscribe2 = store.subscribe(listener2)
<del> const unsubscribe3 = store.subscribe(listener3)
<add> store.su... | 1 |
PHP | PHP | remove leading slash | 037769e1aa908bc79d4d2aa58216971a51f1b3dd | <ide><path>database/factories/ModelFactory.php
<ide> |
<ide> */
<ide>
<del>$factory->define(App\User::class, function (\Faker\Generator $faker) {
<add>$factory->define(App\User::class, function (Faker\Generator $faker) {
<ide> return [
<ide> 'name' => $faker->name,
<ide> 'email' => $faker->email, | 1 |
Javascript | Javascript | increase http token check iterations | 39fdf0773d7066d33f562de8bb7220708f4ab619 | <ide><path>benchmark/http/check_is_http_token.js
<ide> const bench = common.createBenchmark(main, {
<ide> ':alternate-protocol', // fast bailout
<ide> 'alternate-protocol:' // slow bailout
<ide> ],
<del> n: [1e6],
<add> n: [5e8],
<ide> });
<ide>
<ide> function main(conf) { | 1 |
PHP | PHP | add tests for and remove nested ternaries | c6173a0054ca61c2b05c1cd3d1ed6d651ce03618 | <ide><path>lib/Cake/Test/Case/Utility/HashTest.php
<ide> public function testExtractAttributeEquality() {
<ide> $this->assertEquals(5, $result[3]['id']);
<ide> }
<ide>
<add>/**
<add> * Test extracting based on attributes with boolean values.
<add> *
<add> * @return void
<add> */
<add> public function testExtractAtt... | 2 |
Python | Python | simplify the test | 00e431fd4ad0feef73d0620fe1f7c58c101067ee | <ide><path>libcloud/test/storage/test_base.py
<ide> def test_upload_object_via_stream_illegal_seek_errors_are_ignored(self):
<ide>
<ide> iterator = BodyStream('a' * size)
<ide> iterator.seek = mock.Mock(side_effect=seek_error)
<del> self.assertTrue(hasattr(iterator, '__next__'))
<del> sel... | 1 |
PHP | PHP | remove extra not_in | 1a6230b82aa5a17341715e82ab99723d9351791d | <ide><path>app/lang/en/validation.php
<ide> "exists" => "The selected :attribute is invalid.",
<ide> "image" => "The :attribute must be an image.",
<ide> "in" => "The selected :attribute is invalid.",
<del> "not_in" => "The selected :attribute is invalid.",
<ide> "integer" ... | 1 |
Text | Text | fix typo in http2.md | 8cbbe73553d2c623f2528350062d57dbf5305246 | <ide><path>doc/api/http2.md
<ide> default behavior is to destroy the stream.
<ide>
<ide> When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
<ide> will be emitted immediately after queuing the last chunk of payload data to be
<del>sent. The `http2stream.sendTrilers()` method can then be used t... | 1 |
Ruby | Ruby | load correct version of tzinfo | 184986067a3294cb178a9dd8955b934ff3feb9a0 | <ide><path>activesupport/lib/active_support/vendor.rb
<ide> end
<ide>
<ide> begin
<del> gem 'tzinfo', '~> 0.3.12'
<add> gem 'tzinfo', '~> 0.3.13'
<ide> rescue Gem::LoadError
<del> $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.12"
<add> $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.13"
<ide> end... | 1 |
Ruby | Ruby | move fix from inside `github` module | 56ef168e7088962ba7b1cdc3da89d30842a8eb69 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/search.rb
<ide> def self.extract_regexp(string)
<ide> end
<ide>
<ide> def self.search_remote(query)
<del> return [] if ENV["HOMEBREW_NO_GITHUB_API"]
<ide> matches = GitHub.search_code(user: "caskroom", path: "Casks",
<ide> ... | 2 |
Mixed | Python | fix bug in format suffix patterns | 272fddc9526f09e4904af7c282edd003b12be55a | <ide><path>docs/index.md
<ide> Note that the base URL can be whatever you want, but you must include `rest_fram
<ide> ## Quickstart
<ide>
<ide>
<del>
<ide> ## Tutorial
<ide>
<ide> The tutorial will walk you through the building blocks that make up REST framework. It'll take a little while to get through, but it'll... | 2 |
Python | Python | add offset support for cursor pagination | dbb684117f6fe0f9c34f98d5e914fc106090cdbc | <ide><path>rest_framework/pagination.py
<add># coding: utf-8
<ide> """
<ide> Pagination serializers determine the structure of the output that should
<ide> be used for paginated responses.
<ide> def to_html(self):
<ide>
<ide>
<ide> def decode_cursor(encoded):
<del> tokens = urlparse.parse_qs(b64decode(encoded))
<a... | 2 |
Python | Python | fix capitalization in windows images | 78407d39a10920ac18bce3d99e2ece5c144deee3 | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide> def create_node(self,
<ide> }
<ide> }
<ide> elif isinstance(auth, NodeAuthPassword):
<del> if not "Windows" in image.id.lower():
<add> if not "windows" in image.id.lower():
<ide> data... | 1 |
Java | Java | fix screenshot tests for react with nodes | 7055c52288c94f5ef87a59f4f421c925e59fb05c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/AbstractClippingDrawCommand.java
<ide> public final float getClipBottom() {
<ide> }
<ide>
<ide> protected final void applyClipping(Canvas canvas) {
<del> canvas.clipRect(mClipLeft, mClipTop, mClipRight, mClipBottom);
<add> // We put this check her... | 1 |
Javascript | Javascript | favor strict equality in test-exec | 9604d2965986c4c11b876304443889c27c4386b9 | <ide><path>test/pummel/test-exec.js
<ide> exec(
<ide> console.log('error!: ' + err.code);
<ide> console.log('stdout: ' + JSON.stringify(stdout));
<ide> console.log('stderr: ' + JSON.stringify(stderr));
<del> assert.equal(false, err.killed);
<add> assert.strictEqual(false, err.killed);
<ide> ... | 1 |
Javascript | Javascript | add tests for relativedates | 5a4bbb8d7593e926749515678644ebbaba7c3b4e | <ide><path>lang/test/en.js
<ide> test("fromNow", 2, function() {
<ide> equal(moment().add({d:5}).fromNow(), "in 5 days", "in 5 days");
<ide> });
<ide>
<add>test("xxx", 14, function() {
<add> var getTodayAtTwo, prefixDay;
<add>
<add> getTodayAtTwo = function () {
<add> return moment().hours(2).minu... | 1 |
Text | Text | translate tip-18 to korean | 45a3332a382b3a63b44459656479ac5383d9742f | <ide><path>docs/docs/ref-03-component-specs.ko-KR.md
<ide> string displayName
<ide> `displayName` 문자열은 디버그 메시지에 사용됩니다. JSX는 이 값을 자동으로 설정합니다. [JSX 깊이 알기](/react/docs/jsx-in-depth-ko-KR.html#the-transform)를 참고하세요.
<ide>
<ide>
<add><a name="lifecycle-methods"></a>
<ide> ## 생명주기 메소드
<ide>
<ide> 컴포넌트의 생명주기에서 특정 시점마다 실행되는... | 2 |
Javascript | Javascript | add jsdoc typings for fs | 32404359b69f34d1c587e94eb6ceca8414d97f6d | <ide><path>lib/fs.js
<ide> function isFileType(stats, fileType) {
<ide> return (mode & S_IFMT) === fileType;
<ide> }
<ide>
<add>/**
<add> * Tests a user's permissions for the file or directory
<add> * specified by `path`.
<add> * @param {string | Buffer | URL} path
<add> * @param {number} [mode]
<add> * @param {(err... | 1 |
Javascript | Javascript | update colorkeyframetrack inheritance | 666923ebb40cf9c32cdb806203ce90f8484d745f | <ide><path>src/animation/tracks/ColorKeyframeTrack.js
<del>import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
<del>import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
<add>import { KeyframeTrack } from '../KeyframeTrack.js';
<ide>
<ide> /**
<ide> *
<ide> import { KeyframeTra... | 1 |
PHP | PHP | fix api documentation of formatresults() | 1e6018f97841eb4e187f551ac85fc7f2d26dae63 | <ide><path>src/Datasource/QueryTrait.php
<ide> use BadMethodCallException;
<ide> use Cake\Collection\Iterator\MapReduce;
<ide> use Cake\Datasource\Exception\RecordNotFoundException;
<del>use Cake\Datasource\ResultSetDecorator;
<ide>
<ide> /**
<ide> * Contains the characteristics for an object that is attached to a re... | 1 |
Go | Go | send push/pull progress bar as json | 9775f0bd145c607126ea22a17b291dea822be7b2 | <ide><path>api.go
<ide> import (
<ide> "strings"
<ide> )
<ide>
<del>const API_VERSION = 1.0
<add>const API_VERSION = 1.1
<ide>
<ide> func hijackServer(w http.ResponseWriter) (io.ReadCloser, io.Writer, error) {
<ide> conn, _, err := w.(http.Hijacker).Hijack()
<ide> func postImagesCreate(srv *Server, version float64,... | 5 |
Python | Python | add test for the create user job in helm chart | 18531f81848dbd8d8a0d25b9f26988500a27e2a7 | <ide><path>chart/tests/test_create_user_job.py
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this file
<add># to yo... | 1 |
Python | Python | fix old scipy issue173 | 43521c0bdbda97a41256e5c2c972189272e03dca | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def __init__ (self,
<ide> entry_point = ''
<ide>
<ide> if self.linker_dll == 'dllwrap':
<del> self.linker = 'dllwrap --driver-name g++'
<add> # Commented out '--driver-name g++' part that fixes weird
<add> # g+... | 1 |
Javascript | Javascript | remove useless test from network_utils_spec.js | 0ffe9b9289cc5cddc0e6c4414518285c5ab31bcf | <ide><path>test/unit/network_utils_spec.js
<ide> describe('network_utils', function() {
<ide> })).toEqual('filename.pdf');
<ide> });
<ide>
<del> it('returns null when content disposition is form-data', function() {
<del> expect(extractFilenameFromHeader((headerName) => {
<del> if (headerName =... | 1 |
Python | Python | update vectors_loc description | 7d5afadf5e77f65903e137da94058db4adebca93 | <ide><path>examples/vectors_fast_text.py
<ide>
<ide>
<ide> @plac.annotations(
<del> vectors_loc=("Path to vectors", "positional", None, str),
<add> vectors_loc=("Path to .vec file", "positional", None, str),
<ide> lang=("Optional language ID. If not set, blank Language() will be used.",
<ide> "pos... | 1 |
Java | Java | add javadoc to managedattribute | 1f72ab4816bc2b09244616f628f9f1137855a05e | <ide><path>spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedAttribute.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide>... | 1 |
Text | Text | use correct spelling of navigable | a0c00de32bdddb474fba911fd76b65a2a1afab23 | <add><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-links-navigable-with-html-access-keys.english.md
<del><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-links-navigatable-with-html-access-keys.english.md
<ide> ---
<ide> id: 587d7790367417... | 1 |
Ruby | Ruby | return correct type from `enumtype` | 8f290092f088c66a88addf82e0b4cdb88b64e854 | <ide><path>activerecord/lib/active_record/enum.rb
<ide> def inherited(base) # :nodoc:
<ide> end
<ide>
<ide> class EnumType < Type::Value # :nodoc:
<add> delegate :type, to: :subtype
<add>
<ide> def initialize(name, mapping, subtype)
<ide> @name = name
<ide> @mapping = mapping
<ide><p... | 2 |
Go | Go | remove offline mode from auth unit tests | 6dccdd657f715c164f2fe6fc786c8274a2425f1b | <ide><path>auth/auth_test.go
<ide> func TestEncodeAuth(t *testing.T) {
<ide> }
<ide>
<ide> func TestLogin(t *testing.T) {
<del> if os.Getenv("OFFLINE") != "" {
<del> t.Skip("Offline mode, skipping.")
<del> }
<ide> os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
<ide> defer os.Setenv("DOCKE... | 1 |
Ruby | Ruby | fix rubocop violations | 25d8afb3a6e5cdc7da3ab0bb6f18c2b14fcabbdd | <ide><path>activesupport/test/core_ext/hash_ext_test.rb
<ide> def test_deep_transform_keys_with_bang_mutates
<ide> end
<ide>
<ide> def test_deep_transform_values
<del> assert_equal({ "a" => "1", "b" => "2" }, @strings.deep_transform_values{ |value| value.to_s })
<add> assert_equal({ "a" => "1", "b" => "2" },... | 2 |
PHP | PHP | update handler.php | 75bf702169d0d32ee9b0c4fbf3cbd6d7447829a3 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> class Handler implements ExceptionHandlerContract
<ide> /**
<ide> * A map of exceptions with their corresponding custom log levels.
<ide> *
<del> * @var array<string, string>
<add> * @var array<class-string<\Throwable>, \Psr\Log\Log... | 1 |
Javascript | Javascript | add equirectangular projection | 93a0a0c3702160de3b920f897e34d3342b664f2f | <ide><path>src/geo/equirect.js
<add>d3.geo.equirect = function() {
<add> var scale = 500, translate = [480, 250];
<add>
<add> function equirect(coordinates) {
<add> var x = coordinates[0] / 360,
<add> y = -coordinates[1] / 360;
<add> return [
<add> scale * x + translate[0],
<add> scale * y + tr... | 1 |
Ruby | Ruby | fix style problem | f51587ee7474a6582d9a44ae54f2a7937b046125 | <ide><path>Library/brew.rb
<ide> def require?(path)
<ide> end
<ide>
<ide> if internal_cmd
<del> Homebrew.send cmd.to_s.gsub("-", "_").downcase
<add> Homebrew.send cmd.to_s.tr("-", "_").downcase
<ide> elsif which "brew-#{cmd}"
<ide> %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
<ide> ... | 1 |
Text | Text | add content for php strings | 0890dda96296e5cd37ac92409c950109eb9d513b | <ide><path>guide/english/php/strings/index.md
<ide> title: Strings
<ide> ---
<ide> ## Strings
<del>A string is a sequence of characters, like "Hello world!".
<ide>
<del>## PHP String Functions
<add>A string is series of characters. These can be used to store any textual information in your application.
<add>
<add>Ther... | 76 |
PHP | PHP | fix source of the path issues on windows | 3443e5162a1129f7a04af453b3eb3f267bc5a8a3 | <ide><path>lib/Cake/Core/App.php
<ide> public static function pluginPath($plugin) {
<ide> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/app.html#App::themePath
<ide> */
<ide> public static function themePath($theme) {
<del> $themeDir = 'Themed/' . Inflector::camelize($theme);
<add> $themeDir = 'The... | 3 |
Text | Text | remove stray period in yamnet readme.md. | a29fcd96c28b3a0050a012a97350afa1f2f89bc8 | <ide><path>research/audioset/yamnet/README.md
<ide> Here's a sample installation and test session:
<ide>
<ide> ```shell
<ide> # Upgrade pip first. Also make sure wheel is installed.
<del>python -m pip install --upgrade pip wheel.
<add>python -m pip install --upgrade pip wheel
<ide>
<ide> # Install dependences.
<ide> ... | 1 |
PHP | PHP | remove unnecessary parsing | 26903b7781664748d3fa8f273d010d9d4ef38953 | <ide><path>src/Illuminate/Routing/Route.php
<ide> protected function runController()
<ide> */
<ide> public function getController()
<ide> {
<del> $class = $this->parseControllerCallback()[0];
<del>
<del> if (! $this->controller) {
<add> if (! $this->controller) {
<add> ... | 1 |
Python | Python | add __repr__ to more common types | b147e5b7977f7afd34e6d92a706d9af82ce86a19 | <ide><path>libcloud/common/types.py
<ide> def __init__(self, value, body=None, driver=None):
<ide> self.driver = driver
<ide> self.body = body
<ide>
<add> def __str__(self):
<add> return self.__repr__()
<add>
<ide> def __repr__(self):
<ide> return ("<MalformedResponseException in ... | 1 |
Ruby | Ruby | move some of helper tests to abstractcontroller | 2d514e5352d17c8c3958b26397f1c808c7fa0b3c | <ide><path>actionpack/test/abstract/helper_test.rb
<ide> require 'abstract_unit'
<ide>
<add>ActionController::Base.helpers_dir = File.dirname(__FILE__) + '/../fixtures/helpers'
<add>
<ide> module AbstractController
<ide> module Testing
<ide>
<ide> class ControllerWithHelpers < AbstractController::Base
<ide> ... | 2 |
Javascript | Javascript | remove trailing spaces | 1c32e2ab8d0e65bdb9de40b945497f14f9c4de2f | <ide><path>lib/adapters/xhr.js
<ide> module.exports = function xhrAdapter(resolve, reject, config) {
<ide>
<ide> // Clean up request
<ide> requestData = (requestData === undefined)
<del> ? null
<add> ? null
<ide> : requestData;
<del>
<add>
<ide> // Send the reques... | 1 |
PHP | PHP | docblock absolute path | 4105c2dc5da469855e908c4856b551b4084d8fb5 | <ide><path>src/Auth/PasswordHasherFactory.php
<ide> class PasswordHasherFactory
<ide> * @param string|array $passwordHasher Name of the password hasher or an array with
<ide> * at least the key `className` set to the name of the class to use
<ide> * @return \Cake\Auth\AbstractPasswordHasher Password hash... | 23 |
Python | Python | fix failing test | 4a42092fb9714f7df78e91d0ba3593304a8ce32a | <ide><path>numpy/distutils/misc_util.py
<ide> def add_data_files(self,*files):
<ide> #. file.txt -> (., file.txt)-> parent/file.txt
<ide> #. foo/file.txt -> (foo, foo/file.txt) -> parent/foo/file.txt
<ide> #. /foo/bar/file.txt -> (., /foo/bar/file.txt) -> parent/file.txt
<del> #. ... | 1 |
Javascript | Javascript | remove unused global variable | 414a909d01495eed2f6a411965c8984758322664 | <ide><path>lib/url.js
<ide> var protocolPattern = /^([a-z0-9.+-]+:)/i,
<ide> 'javascript': true,
<ide> 'javascript:': true
<ide> },
<del> // protocols that always have a path component.
<del> pathedProtocol = {
<del> 'http': true,
<del> 'https': true,
<del> 'ftp': true,
<del> '... | 1 |
Go | Go | add check that the request is good | e4752c8c1a09fc3cc96dbb9be7183b271db3d6b7 | <ide><path>utils/utils.go
<ide> func GetReleaseVersion() string {
<ide> return ""
<ide> }
<ide> defer resp.Body.Close()
<add> if resp.ContentLength > 24 || resp.StatusCode != 200 {
<add> return ""
<add> }
<ide> body, err := ioutil.ReadAll(resp.Body)
<ide> if err != nil {
<ide> return "" | 1 |
Javascript | Javascript | enforce empty array providers in arvr/js | 6743d15329df1f52527709ce741033de61d56907 | <ide><path>Libraries/Animated/nodes/AnimatedTransform.js
<ide> export default class AnimatedTransform extends AnimatedWithChildren {
<ide> }
<ide>
<ide> __getNativeConfig(): any {
<del> const transConfigs = [];
<add> const transConfigs: Array<any> = [];
<ide>
<ide> this._transforms.forEach(transform => ... | 3 |
Javascript | Javascript | avoid tickdepth warnings on small writes" | bda45a8be1e80bb79343db019e450c1ded2382eb | <ide><path>lib/net.js
<ide> Socket.prototype._write = function(dataEncoding, cb) {
<ide> return this._destroy(errnoException(errno, 'write'), cb);
<ide>
<ide> writeReq.oncomplete = afterWrite;
<del> writeReq.cb = cb;
<ide> this._bytesDispatched += writeReq.bytes;
<add>
<add> // If it was entirely flushed, we... | 2 |
Text | Text | remove reference to docker/libcontainer | 691e3a3e7070ca43a9ad8f5f99c2563ccdce98a5 | <ide><path>docs/project/who-written-for.md
<ide> parent = "smn_develop"
<ide> +++
<ide> <![end-metadata]-->
<ide>
<del># README first
<add># README first
<ide>
<ide> This section of the documentation contains a guide for Docker users who want to
<ide> contribute code or documentation to the Docker project. As a comm... | 1 |
Javascript | Javascript | adopt sphere.js and box3.js in geometry.js | cb2b5cece276091dd253935e698621c3918a8913 | <ide><path>src/core/Box3.js
<ide> THREE.Box3.fromPoints = function ( points ) {
<ide>
<ide> var boundingBox = new THREE.Box3();
<del> for( var i = 0; i < points.length; i ++ ) {
<add> for( var i = 0, numPoints = points.length; i < numPoints; i ++ ) {
<ide> boundingBox.extendByPoint( points[i] );
<ide> }
<ide... | 3 |
PHP | PHP | remove duplicate code | 09f9596a482a8789ecfa5b04de6e8d609b903251 | <ide><path>src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
<ide> protected function setForeignAttributesForCreate(Model $model)
<ide> $model->setAttribute($this->getForeignKeyName(), $this->getParentKey());
<ide> }
<ide>
<del> /**
<del> * Perform an update on all the related models.
<del... | 3 |
Javascript | Javascript | improve reliability of http2-session-timeout | 9e4ae56cc7a81e299850c2525f8b1c071fabc6e6 | <ide><path>test/sequential/test-http2-session-timeout.js
<ide> const h2 = require('http2');
<ide>
<ide> const serverTimeout = common.platformTimeout(200);
<ide> const callTimeout = common.platformTimeout(20);
<del>const minRuns = Math.ceil(serverTimeout / callTimeout) * 2;
<ide> const mustNotCall = common.mustNotCall(... | 1 |
Python | Python | detect invalid package fiiters | 08faa9d181282c353d8a526d2dc2f0284c86cc0a | <ide><path>docs/build_docs.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide> import argparse
<del>import fnmatch
<ide> import os
<ide> import sys
<ide> from collections import defaultdict
<ide> )
<ide> from docs.exts.docs_build.fetch_inventories import fetch_inventories... | 3 |
Text | Text | add discord link in readme | b1aab9b78c88e86e16c2281bf01c653b2caa6f07 | <ide><path>README.md
<ide> The aim of the project is to create an easy to use, lightweight, 3D library with
<ide> [Migrating](https://github.com/mrdoob/three.js/wiki/Migration-Guide) —
<ide> [Questions](http://stackoverflow.com/questions/tagged/three.js) —
<ide> [Forum](https://discourse.threejs.org/) &mdas... | 1 |
Ruby | Ruby | convert dependency test to spec | 3abfdc9e8012fb7d36010237323a054306a1ea83 | <ide><path>Library/Homebrew/test/dependable_spec.rb
<add>require "dependable"
<add>
<add>RSpec::Matchers.alias_matcher :be_a_build_dependency, :be_build
<add>
<add>describe Dependable do
<add> subject { double(tags: tags).extend(described_class) }
<add> let(:tags) { ["foo", "bar", :build] }
<add>
<add> specify "#opt... | 3 |
Javascript | Javascript | change reactproptypes invariant's to console.warn | 2cac321b2704ea1356c8657f79a2b2bc4dab3927 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponentMixin = {
<ide> for (var contextName in contextTypes) {
<ide> maskedContext[contextName] = context[contextName];
<ide> }
<del> this._checkPropTypes(
<del> contextTypes,
<del> maskedContext,
<del> ... | 5 |
Python | Python | add `airflow_kpo_in_cluster` label to kpo pods | 5326da4b83ed4405553e88d5d5464508256498d0 | <ide><path>airflow/providers/cncf/kubernetes/hooks/kubernetes.py
<ide> def __init__(
<ide> self.disable_verify_ssl = disable_verify_ssl
<ide> self.disable_tcp_keepalive = disable_tcp_keepalive
<ide>
<add> self._is_in_cluster: Optional[bool] = None
<add>
<ide> # these params used for tran... | 6 |
Text | Text | fix lint errors for docs/advanced | a7df87c892ba8961a8313b085202acbb8cb9e891 | <ide><path>docs/advanced/AsyncActions.md
<ide> Let’s start by defining the several synchronous action types and action creato
<ide> #### `actions.js`
<ide>
<ide> ```js
<del>export const SELECT_REDDIT = 'SELECT_REDDIT';
<add>export const SELECT_REDDIT = 'SELECT_REDDIT'
<ide>
<ide> export function selectReddit(reddit) ... | 3 |
PHP | PHP | improve http\response test coverage | ab24f99c5e843cf7ce24c9ff0b12d1b7bbc96ca2 | <ide><path>tests/Http/HttpResponseTest.php
<ide> public function testJsonResponsesAreConvertedAndHeadersAreSet()
<ide> $response = new Illuminate\Http\Response(new JsonableStub);
<ide> $this->assertEquals('foo', $response->getContent());
<ide> $this->assertEquals('application/json', $response->headers->get('Conte... | 1 |
PHP | PHP | add a simple bc test | bd631672b6ffcc4b8c8dc1c3c0a0b65cd6ca9753 | <ide><path>tests/TestCase/Core/StaticConfigTraitTest.php
<ide> public function testCanUpdateClassMap()
<ide> $result = TestLogStaticConfig::dsnClassMap(['my' => 'Special\OtherLog']);
<ide> $this->assertEquals($expected, $result, "Should be possible to add to the map");
<ide> }
<add>
<add> /**
<ad... | 1 |
PHP | PHP | add tests for container method binding | 45306f63049eaa6e49b695e6a162ceb8e72843f0 | <ide><path>tests/Container/ContainerTest.php
<ide> public function testCallWithGlobalMethodName()
<ide> $this->assertEquals('taylor', $result[1]);
<ide> }
<ide>
<add> public function testCallWithBoundMethod()
<add> {
<add> $container = new Container;
<add> $container->bindMethod('Contai... | 1 |
Javascript | Javascript | preserve old behavior for special '@each' keys | f5dd39206f9727952b7a583ac60ba7630c2305b1 | <ide><path>packages/sproutcore-metal/lib/watching.js
<ide> var ChainNode = function(parent, key, value, separator) {
<ide> this._object = parent.value();
<ide> if (this._object) addChainWatcher(this._object, this._key, this);
<ide> }
<add>
<add> // Special-case: the EachProxy relies on immediate evaluation t... | 1 |
Python | Python | add __repr__ to serializeddagmodel | 1dc852d4afe8073cf9b410cc5e98955d2028cb4a | <ide><path>airflow/models/serialized_dag.py
<ide> def __init__(self, dag: DAG):
<ide> self.data = SerializedDAG.to_dict(dag)
<ide> self.last_updated = timezone.utcnow()
<ide>
<add> def __repr__(self):
<add> return f"<SerializedDag: {self.dag_id}>"
<add>
<ide> @classmethod
<ide> @provi... | 1 |
PHP | PHP | fix data normalization | 9d168c4af89e50e9de36398913aa69a4f04da730 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function tableCells(
<ide> bool $useCount = false,
<ide> bool $continueOddEven = true
<ide> ): string {
<del> if (is_string($data) || empty($data[0]) || !is_array($data[0])) {
<add> if (!is_array($data)) {
<add> $data = ... | 2 |
Go | Go | move "common" tests | 96f843ef3054c632a020670d007ae74508c09d88 | <ide><path>daemon/config/config_common_unix_test.go
<del>// +build !windows
<del>
<del>package config // import "github.com/docker/docker/daemon/config"
<del>
<del>import (
<del> "testing"
<del>
<del> "github.com/docker/docker/api/types"
<del>)
<del>
<del>func TestUnixValidateConfigurationErrors(t *testing.T) {
<del> t... | 2 |
Javascript | Javascript | add rtl option to flatlist example | 27bbb5ef37390fdef087327181cf5daaaf7f13f2 | <ide><path>packages/rn-tester/js/examples/FlatList/FlatList-basic.js
<ide> import * as React from 'react';
<ide> import {
<ide> Alert,
<ide> Animated,
<add> I18nManager,
<ide> Platform,
<ide> StyleSheet,
<ide> TextInput,
<ide> type State = {|
<ide> fadingEdgeLength: number,
<ide> onPressDisabled: boolean... | 1 |
Text | Text | add content to using css transitions stub | f6bcd196005e25f0d7177b0cfbefb6a8e18f88af | <ide><path>guide/english/css/using-css-transitions/index.md
<ide> title: Using CSS Transitions
<ide> ---
<ide> ## Using CSS Transitions
<ide>
<del>CSS Transitions are used to create smooth movement of the elements in a website. They require less code than CSS animations, and tend to be less complex.
<add>**CSS transit... | 1 |
PHP | PHP | use paginators as htmlable | 9b06643e404d11b3e14ab9711aeef1f5f72785dd | <ide><path>src/Illuminate/Pagination/AbstractPaginator.php
<ide>
<ide> use Closure;
<ide> use ArrayIterator;
<add>use Illuminate\Contracts\Support\Htmlable;
<ide>
<del>abstract class AbstractPaginator
<add>abstract class AbstractPaginator implements Htmlable
<ide> {
<ide> /**
<ide> * All of the items being p... | 1 |
Javascript | Javascript | remove delete messageport.prototype.hasref | b22903eacd727c0c0c163161d128aaffd94c946e | <ide><path>lib/internal/worker.js
<ide> Object.setPrototypeOf(MessagePort.prototype, EventEmitter.prototype);
<ide> // Finally, purge methods we don't want to be public.
<ide> delete MessagePort.prototype.stop;
<ide> delete MessagePort.prototype.drain;
<del>delete MessagePort.prototype.hasRef;
<ide> MessagePort.prototy... | 1 |
Javascript | Javascript | fix comments about yoga in layoutproptype | bac24dde16565cd1341fd91fe39f0d29088bb8fe | <ide><path>Libraries/StyleSheet/LayoutPropTypes.js
<ide> var ReactPropTypes = require('React').PropTypes;
<ide>
<ide> /**
<ide> * React Native's layout system is based on Flexbox and is powered both
<del> * on iOS and Android by an open source project called css-layout:
<del> * https://github.com/facebook/css-layout
... | 1 |
Java | Java | avoid java8 api | e3bb06c8783ca45633ee361bb637cc3236471479 | <ide><path>spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java
<ide> protected Object[] resolveArguments(ApplicationEvent event) {
<ide> if (declaredEventType == null) {
<ide> return null;
<ide> }
<del> if (this.method.getParameters().length == 0) {
<add> if (th... | 1 |
Python | Python | fix typo and indentation | f4a80fbfcb1c3da56955b70223ef1e268edf1cbf | <ide><path>sorts/comb_sort.py
<ide> Comb sort is a relatively simple sorting algorithm originally designed by Wlodzimierz Dobosiewicz in 1980.
<ide> Later it was rediscovered by Stephen Lacey and Richard Box in 1991. Comb sort improves on bubble sort.
<ide>
<del>This is pure python implementation of counting sort algo... | 1 |
Javascript | Javascript | fix docs for $window service | c4497d60bca23bd5d9176b3d09819d9e16d22862 | <ide><path>src/services.js
<ide> function angularServiceInject(name, fn, inject, eager) {
<ide> * @name angular.service.$window
<ide> *
<ide> * @description
<del> * Is reference to the browser's <b>window</b> object. While <b>window</b>
<add> * Is reference to the browser's `window` object. While `window`
<ide> * i... | 1 |
Go | Go | add id and hostname in docker info | 9a85f60c75f2017b14ed5e7f2bae5dc4961cb74c | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide> if remoteInfo.Exists("MemTotal") {
<ide> fmt.Fprintf(cli.out, "Total Memory: %s\n", units.BytesSize(float64(remoteInfo.GetInt64("MemTotal"))))
<ide> }
<add> if remoteInfo.Exists("Hostname") {
<add> fmt.Fprintf(cli.o... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.