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 import actions for clarity | 23f811b6c16a06e26bfdbcbee4ab9fccb56f8622 | <ide><path>docs/basics/Reducers.md
<ide> Note that:
<ide> We have two more actions to handle! Just like we did with `SET_VISIBILITY_FILTER`, we'll import the `ADD_TODO` and `TOGGLE_TODO` actions and then extend our reducer to handle `ADD_TODO`.
<ide>
<ide> ```js
<add>import { VisibilityFilters, ADD_TODO, TOGGLE_TODO }... | 1 |
Ruby | Ruby | remove all testing temporaries when done | e9dbdadcacba4dda800dedf7511a510a149a4742 | <ide><path>Library/Homebrew/unittest.rb
<ide>
<ide> HOMEBREW_CELLAR.mkpath
<ide> raise "HOMEBREW_CELLAR couldn't be created!" unless HOMEBREW_CELLAR.directory?
<del>at_exit { HOMEBREW_CACHE.rmtree }
<add>at_exit { HOMEBREW_PREFIX.parent.rmtree }
<ide> require 'test/unit' # must be after at_exit
<ide>
<ide> | 1 |
Ruby | Ruby | use our bazaar formula for now | a9895432ce92fcb4cb3794805d2a82e409626493 | <ide><path>Library/Homebrew/brew.h.rb
<ide> def check_for_blacklisted_formula names
<ide>
<ide> names.each do |name|
<ide> case name
<del> when 'bazaar', 'bzr' then abort <<-EOS
<del>Bazaar can be installed thusly:
<del>
<del> brew install pip && pip install bzr==2.0.1
<del>
<del> EOS
<add> # bazaa... | 1 |
Python | Python | remove old upgrade script | e0cd80c6bff0d5ca3720f2f8dcac21274827caa5 | <ide><path>scripts/flask-07-upgrade.py
<del>#!/usr/bin/env python
<del># -*- coding: utf-8 -*-
<del>"""
<del> flask-07-upgrade
<del> ~~~~~~~~~~~~~~~~
<del>
<del> This command line script scans a whole application tree and attempts to
<del> output a unified diff with all the changes that are necessary to eas... | 1 |
Text | Text | add params to getstaticprops on err.sh | c52c0389fd2eb554761ced854eb3c833859b6ec4 | <ide><path>errors/invalid-getstaticprops-value.md
<ide> In one of the page's `getStaticProps` the return value had the incorrect shape.
<ide> Make sure to return the following shape from `getStaticProps`:
<ide>
<ide> ```js
<del>export async function getStaticProps() {
<add>export async function getStaticProps(ctx: {
<... | 1 |
Javascript | Javascript | use internet.addresses in internet tests | 5dca78799340c975d273e2babee128f978aeeb3c | <ide><path>test/internet/test-dns-cares-domains.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<add>const { addresses } = require('../common/internet');
<ide> const assert = require('assert');
<ide> const dns = require('dns');
<ide> const domain = require('domain');
<ide> co... | 6 |
Python | Python | improve batchnorm documentation | 58fb2b8af56c76c332cc7dfeada7496687d65163 | <ide><path>keras/layers/normalization.py
<ide>
<ide>
<ide> class BatchNormalization(Layer):
<del> '''Normalize the activations of the previous layer at each batch.
<add> '''Normalize the activations of the previous layer at each batch,
<add> i.e. applies a transformation that maintains the mean activation
<a... | 1 |
Ruby | Ruby | remove unused require | b6d86add73a659554a42918d54b607cec7b517bc | <ide><path>activestorage/app/models/active_storage/variant.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "ostruct"
<del>
<ide> # Image blobs can have variants that are the result of a set of transformations applied to the original.
<ide> # These variants are used to create thumbnails, fixed-size avatars, o... | 1 |
PHP | PHP | remove unnecessary sprintf | 72965f793c7c974a3e33548d1ec11a16ca35d155 | <ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php
<ide> protected function _setOptions() {
<ide>
<ide> if (!array_key_exists($this->settings['serializer'], self::$serializer)) {
<ide> throw new CacheException(
<del> __d('cake_dev', sprintf('%s is not a valid serializer engine for Memcached', $this->settings... | 1 |
Text | Text | fix spelling and grammar | 8bd3df35a22cbade28568a580fa05e820ef31489 | <ide><path>guide/english/r/functions/index.md
<ide> Functions can be named and called repeatedly or can be run anonymously in place
<ide> Developing full understanding of R functions requires understanding of environments.
<ide> Environments are simply a way to manage objects. An example of environments in action is t... | 1 |
Javascript | Javascript | add test for | 636be2466ef303b5a48ef35fb4014fce13398dd3 | <ide><path>test/integration/amphtml/test/index.test.js
<ide> describe('AMP Usage', () => {
<ide> })
<ide> })
<ide>
<add> describe('AMP dev no-warn', () => {
<add> let dynamicAppPort
<add> let ampDynamic
<add>
<add> it('should not warn on valid amp', async () => {
<add> let inspectPayload = ''
<add... | 1 |
Ruby | Ruby | inline the job wrappers | 501cc60ff2528ba75c0bf0715918516864546539 | <ide><path>lib/active_job/job_wrappers/delayed_job_wrapper.rb
<del>module ActiveJob
<del> module JobWrappers
<del> class DelayedJobWrapper
<del> def perform(job, *args)
<del> job.perform(*ActiveJob::Parameters.deserialize(args))
<del> end
<del> end
<del> end
<del>end
<ide><path>lib/active_job/j... | 8 |
Ruby | Ruby | use gem api rather than env to set paths | a5b12a33c2160cc1ff9ca9f42171d774ec392d5a | <ide><path>Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
<ide> def brew(*args)
<ide> ruby_args = HOMEBREW_RUBY_EXEC_ARGS.dup
<ide> if ENV["HOMEBREW_TESTS_COVERAGE"]
<ide> simplecov_spec = Gem.loaded_specs["simplecov"]
<del> specs = [simplecov_spec]
<del> ... | 3 |
Javascript | Javascript | add unit test for fix to | a2c2d68d7f29eb543d937a72bdf4b5399b7aa14a | <ide><path>test/unit/ajax.js
<ide> test("jQuery.getScript(String, Function) - no callback", function() {
<ide> });
<ide>
<ide> test("jQuery.ajax() - JSONP, Local", function() {
<del> expect(8);
<add> expect(9);
<ide>
<ide> var count = 0;
<del> function plus(){ if ( ++count == 8 ) start(); }
<add> function plus(){ if... | 1 |
Java | Java | add contextualname to http observations | b9070ae75222091ccb49267e27341689ec1687c6 | <ide><path>spring-web/src/main/java/org/springframework/http/client/observation/DefaultClientHttpObservationConvention.java
<ide> public String getName() {
<ide> return this.name;
<ide> }
<ide>
<add> @Override
<add> public String getContextualName(ClientHttpObservationContext context) {
<add> return "http " + cont... | 8 |
Python | Python | fix meta path | 8c758ed1ebc3d35f03707e593b83b214d40f434b | <ide><path>spacy/tests/test_misc.py
<ide> def test_load_model_version_compat():
<ide>
<ide> # additional compatible upper pin
<ide> nlp.meta["spacy_version"] = ">=2.3.0,<2.4.0"
<del> srsly.write_json(Path(d / "meta.json"), nlp.meta)
<add> srsly.write_json(meta_path, nlp.meta)
<ide> ... | 1 |
Javascript | Javascript | enhance dev error reports | f378f54ac3cda43073b4a45d31921359584b7fa0 | <ide><path>api-server/server/middlewares/error-handlers.js
<ide> import { homeLocation } from '../../../config/env';
<ide>
<ide> import { unwrapHandledError } from '../utils/create-handled-error.js';
<ide>
<add>const errTemplate = (error, req) => {
<add> const { message, stack } = error;
<add> return `
<add>Error: ... | 1 |
Python | Python | improve handing of files and subprocesses | 9c09f0105b6a62c0dfe9167fa78c0fb59878e222 | <ide><path>numpy/linalg/lapack_lite/make_lite.py
<ide> #!/usr/bin/env python
<add>"""
<add>Usage: make_lite.py <wrapped_routines_file> <lapack_dir> <output_dir>
<add>
<add>Typical invocation:
<add>
<add> make_lite.py wrapped_routines /tmp/lapack-3.x.x .
<add>
<add>Requires the following to be on the path:
<add> * f2... | 1 |
Javascript | Javascript | fix csm helper | d6ff1df09f8c9c30f7812eda0bf6516832f6671b | <ide><path>examples/jsm/csm/CSM.js
<ide> import Shader from './Shader.js';
<ide>
<ide> const _cameraToLightMatrix = new Matrix4();
<ide> const _lightSpaceFrustum = new Frustum();
<add>const _frustum = new Frustum();
<ide> const _center = new Vector3();
<ide> const _bbox = new FrustumBoundingBox();
<ide>
<ide> export ... | 1 |
Ruby | Ruby | remove unused method | 13cbe12aebc09053b06b93e6fe53062f424674a0 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def check_required_ivars
<ide> end
<ide> end
<ide> end
<del>
<del> def html_format?(parameters)
<del> return true unless parameters.key?(:format)
<del> Mime.fetch(parameters[:format]) { Mime["html"] }.h... | 1 |
Text | Text | remove set_primary_key, replace with primary_key= | df52eee15fc63b5224c0ff993c748ae9784b5b63 | <ide><path>guides/source/active_record_basics.md
<ide> end
<ide> ```
<ide>
<ide> It's also possible to override the column that should be used as the table's
<del>primary key using the `ActiveRecord::Base.set_primary_key` method:
<add>primary key using the `ActiveRecord::Base.primary_key=` method:
<ide>
<ide> ```ruby... | 1 |
Python | Python | profile hostname for celery executor | decf7e83d86bfacf7b1a5aaea3ab523426420569 | <ide><path>airflow/executors/base_executor.py
<ide> # Tuple of: command, priority, queue name, SimpleTaskInstance
<ide> QueuedTaskInstanceType = Tuple[CommandType, int, Optional[str], Union[SimpleTaskInstance, TaskInstance]]
<ide>
<add># Event_buffer dict value type
<add># Tuple of: state, info
<add>EventBufferValueTy... | 14 |
Text | Text | add 2.9.0-beta.3 to changelog.md | 620092fb2a5ee86967f1516ca4c49c2ea0443860 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.9.0-beta.3 (September 20, 2016)
<add>
<add>- [#14313](https://github.com/emberjs/ember.js/pull/14313) [BUGFIX] Ensure `id` attribute bindings of `undefined` are handled properly.
<add>- [#14291](https://github.com/emberjs/ember.js/pull/14291) [BUGFIX] Fi... | 1 |
Python | Python | fix error in test case parameterization | 123d3f2d38f86779cdbc03abd512a59fea169856 | <ide><path>spacy/tests/tokenizer/test_tokenizer.py
<ide> def test_tokenizer_handles_digits(tokenizer):
<ide> assert tokens[3].text == "1984"
<ide>
<ide>
<del>@pytest.mark.parametrize('text', ["google.com", "python.org", "spacy.io", "explosion.ai, http://www.google.com"])
<add>@pytest.mark.parametrize('text', ... | 1 |
Ruby | Ruby | add `sparkle` livecheck strategy | c24af82a25f9ce625a81dbe19a93b0242989ae11 | <ide><path>Library/Homebrew/livecheck/strategy.rb
<ide> def self.page_contents(url)
<ide> require_relative "strategy/pypi"
<ide> require_relative "strategy/follow_redirection"
<ide> require_relative "strategy/sourceforge"
<add>require_relative "strategy/sparkle"
<ide> require_relative "strategy/xorg"
<ide><path>Library... | 2 |
Python | Python | add dispatch to generate_umath | 9bb27e8559877eca5159b43b92b7436ffcb621d7 | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def english_upper(s):
<ide> docstrings.get('numpy.core.umath.floor_divide'),
<ide> 'PyUFunc_DivisionTypeResolver',
<ide> TD(ints, cfunc_alias='divide',
<del> dispatch=[('loops_arithmetic', 'BHILQ')]),
<add> ... | 1 |
Ruby | Ruby | fix disable_joins when foreign key is not id | 566c4033f70e82910ffa347d025380215e5c86a8 | <ide><path>activerecord/lib/active_record/associations/disable_joins_association_scope.rb
<ide> def scope(association)
<ide>
<ide> private
<ide> def last_scope_chain(reverse_chain, owner)
<del> first_scope = [reverse_chain.shift, false, [owner.id]]
<add> first_item = reverse_chain.shift... | 3 |
Ruby | Ruby | flatten array before matching | 27466b01da0aabb3681956c50141ddbfc4e45c6b | <ide><path>Library/Homebrew/searchable.rb
<ide> def simplify_string(string)
<ide> def search_regex(regex)
<ide> select do |*args|
<ide> args = yield(*args) if block_given?
<del> args = Array(args).compact
<add> args = Array(args).flatten.compact
<ide> args.any? { |arg| arg.match?(regex) }
<i... | 1 |
Python | Python | fix broken tag parsing | cf7653e7727f81b81a1daeab01f80206ff206326 | <ide><path>glances/exports/glances_export.py
<ide> def get_item_key(self, item):
<ide> else:
<ide> return ret
<ide>
<del> def parse_tags(self):
<del> """ Parses some tags into a dict"""
<del> if self.tags:
<add> def parse_tags(self, tags):
<add> """Parse tags into a dict.... | 3 |
Text | Text | add method reference | f0ca685a1612e97da0e5401b6f8ec7643f5b3044 | <ide><path>CONTRIBUTING.md
<ide> in the proper package's repository.
<ide> * Use [TomDoc](http://tomdoc.org/).
<ide> * Use [Markdown](https://daringfireball.net/projects/markdown/).
<ide> * Reference classes with `{ClassName}` style notation.
<add>* Reference methods with `{ClassName.methodName}` style notation.
<ide> ... | 1 |
Javascript | Javascript | handle position between rows correctly | 1e07b8df0553572369c4f8c2ea8249e646573be9 | <ide><path>spec/line-top-index-spec.js
<ide> describe("LineTopIndex", function () {
<ide> expect(lineTopIndex.rowForTopPixelPosition(70)).toBe(4)
<ide> expect(lineTopIndex.rowForTopPixelPosition(80)).toBe(5)
<ide> expect(lineTopIndex.rowForTopPixelPosition(90)).toBe(5)
<del> expect(lineTopIndex.r... | 2 |
PHP | PHP | fix assertcookie | 09ffc3a2eeddd31d43e1121ae865dd37e16f0cef | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> use Illuminate\Http\Response;
<ide> use Illuminate\Contracts\View\View;
<ide> use PHPUnit_Framework_Assert as PHPUnit;
<add>use Symfony\Component\HttpFoundation\Cookie;
<ide>
<ide> class TestResponse extends Response
<ide> {
<ide> public function asse... | 1 |
Text | Text | add link to react-redux docs | 841b4037b93fe900a143adc50e1a9c7998963aa7 | <ide><path>docs/basics/UsageWithReact.md
<ide> From the very beginning, we need to stress that Redux has no relation to React.
<ide>
<ide> That said, Redux works especially well with libraries like [React](http://facebook.github.io/react/) and [Deku](https://github.com/dekujs/deku) because they let you describe UI as ... | 1 |
Ruby | Ruby | check version mismatch | b1fff3205584e1e42ae750b2af7ca17963929aa9 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(resource)
<ide> super "Resource #{resource.inspect} is defined more than once"
<ide> end
<ide> end
<add>
<add>class BottleVersionMismatchError < RuntimeError
<add> def initialize bottle_file, bottle_version, formula, formula_version
<add> super <<... | 2 |
Python | Python | add missing module __spec__ | 35236b870ee4102fb82f7a1d4713dc83af78a00a | <ide><path>src/transformers/__init__.py
<ide> import sys
<ide>
<ide> sys.modules[__name__] = _LazyModule(
<del> __name__, globals()["__file__"], _import_structure, extra_objects={"__version__": __version__}
<add> __name__,
<add> globals()["__file__"],
<add> _import_structure,
<add> ... | 3 |
PHP | PHP | apply fixes from styleci | 469b7719a8dca40841a74f59f2e9f30f01d3a106 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
<ide>
<ide> use Illuminate\Database\Eloquent\Builder;
<ide> use Illuminate\Database\Eloquent\Model;
<del>use Illuminate\Database\Eloquent\Relations\MorphPivot;
<ide> use Illuminate\Support\Arr;
<ide>
<ide> class MorphToMany extends BelongsToMany | 1 |
Python | Python | support truncation off beginning of sequence | 7e069956787750724d30b59bd5c0db50c9eed43e | <ide><path>keras/preprocessing/sequence.py
<ide> import random
<ide> from six.moves import range
<ide>
<del>def pad_sequences(sequences, maxlen=None, dtype='int32', padding='pre', value=0.):
<add>def pad_sequences(sequences, maxlen=None, dtype='int32', padding='pre', truncating='pre', value=0.):
<ide> """
<ide> ... | 1 |
PHP | PHP | move common code into translatestrategytrait | 5dd316999218f7fb6fd5d9e28f3bc6d142d133aa | <ide><path>src/ORM/Behavior/Translate/EavStrategy.php
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\Datasource\QueryInterface;
<ide> use Cake\Event\Event;
<del>use Cake\I18n\I18n;
<ide> use Cake\ORM\Entity;
<ide> use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use Cake\ORM\PropertyMarshalInterface;
<ide> clas... | 3 |
Text | Text | fix typo occuring -> occurring | e98da3d0307b288f254e6e2dfcb3a7ce7bc4d555 | <ide><path>doc/api/util.md
<ide> supported encodings or an alias.
<ide> * Returns: {string}
<ide>
<ide> Decodes the `input` and returns a string. If `options.stream` is `true`, any
<del>incomplete byte sequences occuring at the end of the `input` are buffered
<add>incomplete byte sequences occurring at the end of the ... | 1 |
Javascript | Javascript | remove debug statement | f3410a3a95e072753509d1b73eeb14370231501f | <ide><path>server/boot/challenge.js
<ide> module.exports = function(app) {
<ide>
<ide> // create a stream of challenge blocks
<ide> const blocks$ = challenge$
<del> .doOnNext(() => debug('query challenges'))
<ide> .map(challenge => challenge.toJSON())
<ide> // group challenges by block | returns a strea... | 1 |
Ruby | Ruby | fix rubocop space before comma | 0699a3df9a137a97d50af4a29f96553bf2942d0e | <ide><path>activesupport/test/core_ext/object/blank_test.rb
<ide> def empty?
<ide> end
<ide>
<ide> BLANK = [ EmptyTrue.new, nil, false, "", " ", " \n\t \r ", " ", "\u00a0", [], {}, " ".encode("UTF-16LE")]
<del> NOT = [ EmptyFalse.new, Object.new, true, 0, 1, "a", [nil], { nil => 0 }, Time.now , "my value".e... | 1 |
Javascript | Javascript | remove use of object.assign module | cb5d37713f381aa8e57e9b314c03a25a2e11796b | <ide><path>Libraries/ReactNative/ReactNativeTextComponent.js
<ide> var ReactNativeTagHandles = require('ReactNativeTagHandles');
<ide> var UIManager = require('UIManager');
<ide>
<del>var assign = require('Object.assign');
<ide> var invariant = require('fbjs/lib/invariant');
<ide>
<ide> var ReactNativeTextComponent =... | 1 |
Javascript | Javascript | include stack with test errors | ab1f14246ac0c520909ffbfccf379780f4fbe77f | <ide><path>curriculum/test/test-challenges.js
<ide> function cleanup() {
<ide> }
<ide>
<ide> function runTests({ challengesForLang, meta }) {
<add> // rethrow unhandled rejections to make sure the tests exit with -1
<ide> process.on('unhandledRejection', err => {
<del> throw new Error(`unhandledRejection: ${err.... | 1 |
Ruby | Ruby | improve example in migrations docs, closes | f65ab3b233e112679fc7a183b488c5356a01c96c | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def initialize(version)
<ide> # add_column :people, :salary, :integer
<ide> # Person.reset_column_information
<ide> # Person.find(:all).each do |p|
<del> # p.salary = SalaryCalculator.compute(p)
<add> # p.update_attri... | 1 |
Java | Java | update license header for https (nohttp rule) | a22feac8036393725113222055166eb9e7211c9a | <ide><path>spring-core/src/main/java/org/springframework/cglib/beans/BeanMap.java
<ide> * you may not use this file except in compliance with the License.
<ide> * You may obtain a copy of the License at
<ide> *
<del> * http://www.apache.org/licenses/LICENSE-2.0
<add> * https://www.apache.org/licenses/LICEN... | 1 |
Javascript | Javascript | fix links to frostbite pbr document | 07d757661ebd729eb38a18ab2f0394dd3fa61d9b | <ide><path>src/lights/PointLight.js
<ide> function PointLight( color, intensity, distance, decay ) {
<ide> get: function () {
<ide>
<ide> // intensity = power per solid angle.
<del> // ref: equation (15) from http://www.frostbite.com/wp-content/uploads/2014/11/course_notes_moving_frostbite_to_pbr.pdf
<add> //... | 2 |
Go | Go | remove signal_freebsd (already in pkg/signal) | 3f8ffb461ab66535b3c3a96a564c06db12a27281 | <ide><path>utils/signal_freebsd.go
<del>package utils
<del>
<del>import (
<del> "os"
<del> "os/signal"
<del> "syscall"
<del>)
<del>
<del>func CatchAll(sigc chan os.Signal) {
<del> signal.Notify(sigc,
<del> syscall.SIGABRT,
<del> syscall.SIGALRM,
<del> syscall.SIGBUS,
<del> syscall.SIGCHLD,
<del> syscall.SIGCONT,
<... | 1 |
Ruby | Ruby | use dedicated exception for already tapped | 1cb7eca3a58a6297c833f4d6f3f8931ebc3a2e52 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def install_tap user, repo
<ide>
<ide> # we downcase to avoid case-insensitive filesystem issues
<ide> tapd = HOMEBREW_LIBRARY/"Taps/#{user.downcase}-#{repo.downcase}"
<del> raise "Already tapped!" if tapd.directory?
<add> raise AlreadyTappedError if tapd.dire... | 2 |
Go | Go | fix a panic introduced by | e28730d44b257597b6c37f9040eee3fbd3a7ff43 | <ide><path>libnetwork/sandbox.go
<ide> func (sb *sandbox) ResolveName(name string, ipType int) ([]net.IP, bool) {
<ide> newList := []*endpoint{}
<ide> if !sb.controller.isDistributedControl() {
<ide> newList = append(newList, getDynamicNwEndpoints(epList)...)
<del> newList = append(newList, getIngressNwEndpoint(ep... | 1 |
Javascript | Javascript | cover the error cases | 909d2e5503db90283a7a849a4fb2408f311a1ecb | <ide><path>packager/src/node-haste/Package.js
<ide> class Package {
<ide>
<ide> isHaste() {
<ide> return this._cache.get(this.path, 'package-haste', () =>
<del> Promise.resolve(!!this.read().name)
<add> Promise.resolve().then(() => !!this.read().name)
<ide> );
<ide> }
<ide>
<ide> getName(): Pr... | 1 |
PHP | PHP | add default type | 0565d80699af9fc9cb417241ddef6e4563d42551 | <ide><path>src/Database/Connection.php
<ide> public function inTransaction(): bool
<ide> * @param string|int|\Cake\Database\TypeInterface $type Type to be used for determining kind of quoting to perform
<ide> * @return string Quoted value
<ide> */
<del> public function quote($value, $type): string
<ad... | 2 |
Java | Java | polish forwardedheaderfilter and related code | ac495d7380e56b0160391a7764fb7e2f5eefb8c9 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java
<ide> public void setRemoveOnly(boolean removeOnly) {
<ide> }
<ide>
<ide> /**
<del> * Use this property to enable relative redirects as explained in and also
<del> * using the same response wrapper as {@link RelativeRedir... | 4 |
Python | Python | fix tf_idf output mode for lookup layers | 66290dec4381ebd9f618aa4d43360fd10866a9ec | <ide><path>keras/layers/preprocessing/index_lookup.py
<ide> def set_vocabulary(self, vocabulary, idf_weights=None):
<ide> idf_weights, (front_padding, back_padding),
<ide> "constant",
<ide> constant_values=(front_padding_value, back_padding_value))
<del> weights = tf.convert_to_tensor... | 2 |
Java | Java | fix handling of @enableloadtimeweaving autodetect | 2e5f3559d3bd2f9166d3a6cde7fc4c402bc0b802 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/LoadTimeWeavingConfiguration.java
<ide> public LoadTimeWeaver loadTimeWeaver() {
<ide> // AJ weaving is disabled -> do nothing
<ide> break;
<ide> case AUTODETECT:
<del> if (this.beanClassLoader.getResource(ASPECTJ_... | 2 |
Ruby | Ruby | ignore .ds_store files when listing keg contents | 8e8875f8f41d22cf03f7d14fdcd494bd9a8aef05 | <ide><path>Library/Homebrew/brew.h.rb
<ide> def initialize path
<ide> else
<ide> print_dir pn
<ide> end
<del> elsif not FORMULA_META_FILES.include? pn.basename.to_s
<add> elsif not (FORMULA_META_FILES.include? pn.basename.to_s or pn.basename.to_s == '.DS_Store')
<ide> ... | 1 |
Mixed | Python | update indonesian model | 81564cc4e819851e9b4473027b5fa672dbe072b6 | <ide><path>.github/contributors/aongko.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<ad... | 9 |
Javascript | Javascript | add splash to showcase | a0384dad3c582bdafbbf66585bba73bd0f255926 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=kr.dobbit.sharehows',
<ide> author: 'Dobbit Co., Ltd.'
<ide> },
<add> {
<add> name: 'ShareWis',
<add> icon: 'https://s3-ap-northeast-1.amazonaws.com/sw-misc/sharewis3_a... | 1 |
Ruby | Ruby | update doc about `change_column_default` [ci skip] | 2aab983fff209d5b696beb8d37564aeba9a6d7b3 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def initialize(current: nil, stored: nil)
<ide> #
<ide> # * <tt>change_column(table_name, column_name, type, options)</tt>: Changes
<ide> # the column to a different type using the same parameters as add_column.
<del> # * <tt>change_column_default(t... | 1 |
Ruby | Ruby | remove warning from generator named base test | f5c27446bfc112043d833148446aeb7d72dedd8e | <ide><path>railties/test/generators/named_base_test.rb
<ide> require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
<ide> require 'mocha/setup' # FIXME: stop using mocha
<ide>
<del># Mock out what we need from AR::Base.
<del>module ActiveRecord
<del> class Base
<del> class << self
<del>... | 1 |
Go | Go | add readererrwrapper to readers | bd130e72a06dc3e8de521ce365bf4933f36b2417 | <ide><path>pkg/ioutils/readers.go
<ide> func NewReadCloserWrapper(r io.Reader, closer func() error) io.ReadCloser {
<ide> }
<ide> }
<ide>
<add>type readerErrWrapper struct {
<add> reader io.Reader
<add> closer func()
<add>}
<add>
<add>func (r *readerErrWrapper) Read(p []byte) (int, error) {
<add> n, err := r.reader.R... | 1 |
Text | Text | remove news theme docs | c4139e292c0cd9752cdcdc14bc463764df64adc4 | <ide><path>docs/_sidebar.md
<ide> - [Work on localized client web app](how-to-work-on-localized-client-webapp.md)
<ide> - [Work on Cypress tests](how-to-add-cypress-tests.md)
<ide> - [Work on video challenges](how-to-help-with-video-challenges.md)
<del> - [Work on the news theme](how-to-work-on-the-news-theme.md... | 2 |
Go | Go | fix a typo in udp cleanup path | 7d2e851d8e921bf8f07f54c8afb8262580b36e8d | <ide><path>network.go
<ide> func (iface *NetworkInterface) Release() {
<ide> log.Printf("Unable to release port %s", nat)
<ide> }
<ide> } else if nat.Port.Proto() == "udp" {
<del> if err := iface.manager.tcpPortAllocator.Release(ip, hostPort); err != nil {
<add> if err := iface.manager.udpPortAllocator.Rel... | 1 |
Python | Python | add support for generators in numpy sum | a13aad3ac33b629f3e696b4d4d5dbf4b5605d567 | <ide><path>numpy/core/oldnumeric.py
<ide> 'compress', 'clip', 'sum', 'product', 'prod', 'sometrue', 'alltrue',
<ide> 'any', 'all', 'cumsum', 'cumproduct', 'cumprod', 'ptp', 'ndim',
<ide> 'rank', 'size', 'around', 'round_', 'mean', 'std', 'var', 'squeeze',
<del> 'amax', 'amin',... | 1 |
Text | Text | use gfm for clarity | 4e08daabc889a87a14ad130d3386fd042274e6e7 | <ide><path>benchmark/README.md
<ide> directory, see [the guide on benchmarks](../doc/guides/writing-and-running-bench
<ide>
<ide> ## Benchmark Directories
<ide>
<del><table>
<del> <thead>
<del> <tr>
<del> <th>Directory</th>
<del> <th>Purpose</th>
<del> </tr>
<del> </thead>
<del> <tbody>
<del> <t... | 1 |
Javascript | Javascript | remove unused initialpaths | e31a142a92e2c761976ee5f8383840b8756fe0d0 | <ide><path>src/main-process/atom-application.js
<ide> class AtomApplication extends EventEmitter {
<ide>
<ide> openWithOptions (options) {
<ide> const {
<del> initialPaths,
<ide> pathsToOpen,
<ide> executedFrom,
<ide> urlsToOpen,
<ide> class AtomApplication extends EventEmitter {
<ide> ... | 1 |
Ruby | Ruby | add change_rpath method | 4d5971518de4a6cc8307d5c31567bca35072b5b6 | <ide><path>Library/Homebrew/os/mac/keg.rb
<ide> def change_install_name(old, new, file)
<ide> raise
<ide> end
<ide>
<add> def change_rpath(old, new, file)
<add> return if old == new
<add>
<add> @require_relocation = true
<add> odebug "Changing rpath in #{file}\n from #{old}\n to #{new}"
<add> Ma... | 1 |
Python | Python | run the `check_migration` loop at least once | 84d7b5ba39b3ff1fb5b856faec8fd4e731d3f397 | <ide><path>airflow/utils/db.py
<ide> def check_migrations(timeout):
<ide> :param timeout: Timeout for the migration in seconds
<ide> :return: None
<ide> """
<add> timeout = timeout or 1 # run the loop at least 1
<ide> with _configured_alembic_environment() as env:
<ide> context = env.get_con... | 2 |
Mixed | Python | update slim include. | e92334255e48b557e699e94b2d560bf0d88f6e7c | <ide><path>research/audioset/vggish/README.md
<ide> $ sudo python -m pip install --upgrade pip
<ide> # Install dependences. Resampy needs to be installed after NumPy and SciPy
<ide> # are already installed.
<ide> $ sudo pip install numpy scipy soundfile
<del>$ sudo pip install resampy tensorflow six
<add>$ sudo pip ins... | 2 |
Ruby | Ruby | use didyoumean for broken link fixes in guides | 8b71dc15ef5d2c0f3f27c1f077320d8ac76c4987 | <ide><path>guides/rails_guides/generator.rb
<ide>
<ide> require "rails_guides/markdown"
<ide> require "rails_guides/helpers"
<del>require "rails_guides/levenshtein"
<ide>
<ide> module RailsGuides
<ide> class Generator
<ide> def check_fragment_identifiers(html, anchors)
<ide> html.scan(/<a\s+href="#([^"]+)/)... | 2 |
Python | Python | use an enum class for identity endpoint type | 5af1bf3635435ea84becc4365d2ceba7d8462939 | <ide><path>libcloud/common/openstack_identity.py
<ide> 'OpenStackServiceCatalog',
<ide> 'OpenStackServiceCatalogEntry',
<ide> 'OpenStackServiceCatalogEntryEndpoint',
<add> 'OpenStackIdentityEndpointType',
<ide>
<ide> 'OpenStackIdentityConnection',
<ide> 'OpenStackIdentity_1_0_Connection',
<ide> ... | 1 |
Go | Go | fix golint warnings for daemon/execdriver/* | 3d17c3bb663a5d7a65bd39a5ef32cb4668b48c53 | <ide><path>daemon/container_unix.go
<ide> func populateCommand(c *Container, env []string) error {
<ide> resources := &execdriver.Resources{
<ide> Memory: c.hostConfig.Memory,
<ide> MemorySwap: c.hostConfig.MemorySwap,
<del> CpuShares: c.hostConfig.CPUShares,
<add> CPUShares: c.host... | 20 |
Javascript | Javascript | fix instrumentation in shallow rendering | 510155e027d56ce3cf5c890c9939d894528cf007 | <ide><path>src/test/ReactTestUtils.js
<ide> var ReactElement = require('ReactElement');
<ide> var ReactBrowserEventEmitter = require('ReactBrowserEventEmitter');
<ide> var ReactCompositeComponent = require('ReactCompositeComponent');
<ide> var ReactInstanceMap = require('ReactInstanceMap');
<add>var ReactInstrumentatio... | 2 |
Ruby | Ruby | add flag to suppress whitespace fixes | d54e7fb4deb98b5572fcdf9a55eba702a2a10f52 | <ide><path>Library/Contributions/examples/brew-pull.rb
<ide> end
<ide>
<ide> HOMEBREW_REPOSITORY.cd do
<del> ARGV.each do|arg|
<add> ARGV.named.each do|arg|
<ide> if arg.to_i > 0
<ide> url = 'https://github.com/mxcl/homebrew/pull/' + arg + '.patch'
<ide> else
<ide>
<ide> # Makes sense to squash wh... | 1 |
Javascript | Javascript | fix small typos | 54f6ae9b1c0489784f6a95bbe26ffec31816d74a | <ide><path>packages/react-devtools-shared/src/__tests__/console-test.js
<ide> describe('console', () => {
<ide> );
<ide> }
<ide>
<del> it('should not patch console methods that are not explicitly overriden', () => {
<add> it('should not patch console methods that are not explicitly overridden', () => {
<ide> ... | 3 |
Python | Python | fix issue with custom application input_tensor | 68af216772980a7c8811bc1ad5421970fb6a978c | <ide><path>keras/applications/inception_v3.py
<ide> from ..models import Model
<ide> from ..layers import Flatten, Dense, Input, BatchNormalization, merge
<ide> from ..layers import Convolution2D, MaxPooling2D, AveragePooling2D
<add>from ..engine.topology import get_source_inputs
<ide> from ..utils.layer_utils import c... | 7 |
Javascript | Javascript | fix timing issue in signal test | 10a9c005630b53a015a03bb813dbf4263fe78b5a | <ide><path>test/fixtures/should_exit.js
<ide> process.removeListener('SIGINT', tmp);
<ide> setInterval(function() {
<ide> process.stdout.write('keep alive\n');
<ide> }, 1000);
<add>process.stdout.write('start\n');
<ide><path>test/sequential/test-signal-unregister.js
<ide> var common = require('../common');
<ide> var ... | 2 |
Javascript | Javascript | use process._rawdebug() during setup | d32f769d75dc31773ad34b5c28ddefd2dbd84a57 | <ide><path>lib/internal/process/coverage.js
<ide> exports.writeCoverage = writeCoverage;
<ide> function setup() {
<ide> const { Connection } = internalBinding('inspector');
<ide> if (!Connection) {
<del> console.warn('inspector not enabled');
<add> process._rawDebug('inspector not enabled');
<ide> return;... | 1 |
Text | Text | add the valid link for curl(1) in repl.md | f5011786ba6352e265b24dcbf19c418885735e2a | <ide><path>doc/api/repl.md
<ide> undefined
<ide> ```
<ide>
<ide> Unless otherwise scoped within blocks or functions, variables declared
<del>either implicitly, or using the `const`, `let`, or `var` keywords
<add>either implicitly or using the `const`, `let`, or `var` keywords
<ide> are declared at the global scope.
<i... | 1 |
Java | Java | improve reactive support for access to principal | 99cacaa72d075e86f458186e178348e6175bbfce | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/PrincipalArgumentResolver.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file exce... | 7 |
Python | Python | fix the tokenization warning noted in | c4734840876155a0f6c46f7100a486dfc7c78add | <ide><path>src/transformers/tokenization_utils.py
<ide> def _batch_prepare_for_model(
<ide> first_ids,
<ide> second_ids,
<ide> add_special_tokens=add_special_tokens,
<del> padding_strategy=PaddingStrategy.DO_NOT_PAD, # we pad in batch afterward
<del> ... | 1 |
PHP | PHP | add array pull and array forget tests | cebc939e8ea6a5a17921b729333808a9bc8e814b | <ide><path>tests/Support/SupportArrTest.php
<ide> public function testPull()
<ide> $name = Arr::pull($array, 'name');
<ide> $this->assertEquals('Desk', $name);
<ide> $this->assertEquals(['price' => 100], $array);
<add>
<add> // Only works on first level keys
<add> $array = ['joe@ex... | 1 |
PHP | PHP | enable strict typing for view tests | 5b3f8205ed32d71cde70b257731b961af39bed55 | <ide><path>src/View/View.php
<ide> public function getTemplate(): string
<ide> * Set the name of the template file to render. The name specified is the
<ide> * filename in /src/Template/<SubFolder> without the .ctp extension.
<ide> *
<del> * @param string $name Template file name to set.
<add> * ... | 34 |
Javascript | Javascript | improve docs for container / registry | a5fe52c575f09b38a5b9b133d8b24b206cfe13e2 | <ide><path>packages/container/lib/container.js
<ide> import Ember from 'ember-metal/core'; // Ember.assert
<ide> import emberKeys from "ember-metal/keys";
<ide> import dictionary from 'ember-metal/dictionary';
<ide>
<del>// A lightweight container that helps to assemble and decouple components.
<del>// Public api for ... | 2 |
Text | Text | add error type to package version doc | c24475c2c84b49eea2ed15b19959ce4dfd1efff2 | <ide><path>docs/apm-rest-api.md
<ide> name.
<ide> #### Returns
<ide>
<ide> - **201** - Successfully created. Returns created version.
<del>- **400** - Git tag not found / Repository inaccessible
<add>- **400** - Git tag not found / Repository inaccessible / package.json invalid
<ide> - **409** - Version exists
<ide>
... | 1 |
PHP | PHP | apply fixes from styleci | 0218f6b829ef31193565c895e9b67dfcad9e765c | <ide><path>tests/Queue/QueueSqsQueueTest.php
<ide> public function testGetQueueProperlyResolvesUrlWithPrefix()
<ide> public function testGetQueueProperlyResolvesFifoUrlWithPrefix()
<ide> {
<ide> $this->queueName = 'emails.fifo';
<del> $this->queueUrl = $this->prefix . $this->queueName;
<add> ... | 1 |
Javascript | Javascript | reduce loop times for preventing test from timeout | a506aa76a8cfb6438a0b4bc7604623bc6518a7c9 | <ide><path>test/parallel/test-vm-break-on-sigint.js
<ide> if (!process.env.HAS_STARTED_WORKER) {
<ide> }
<ide> } else {
<ide> const ctx = vm.createContext({});
<del> for (let i = 0; i < 10000; i++) {
<add> for (let i = 0; i < 100; i++) {
<ide> vm.runInContext('console.log(1)', ctx, { breakOnSigint: true });
<... | 1 |
Mixed | Python | review the docs | 3a666b497db59491d71ce671e3b01af90332e8b9 | <ide><path>docs/templates/backend.md
<ide> If you want the Keras modules you write to be compatible with both Theano (`th`)
<ide>
<ide> You can import the backend module via:
<ide> ```python
<del>*from keras import backend as K*
<add>from keras import backend as K
<ide> ```
<ide>
<ide> The code below instantiates an ... | 7 |
Javascript | Javascript | introduce multi-flush logger | f9dec992843c1b695d13067c98a3de06371d2832 | <ide><path>Libraries/Utilities/createPerformanceLogger.js
<ide> const infoLog = require('./infoLog');
<ide> const performanceNow: () => number =
<ide> global.nativeQPLTimestamp ?? global.performance.now.bind(global.performance);
<ide>
<del>type Timespan = {
<add>export type Timespan = {
<ide> startTime: number,
<i... | 1 |
PHP | PHP | get default connection name on null reconnect | fce4751277c823539d088add456a2f6a45bbc30b | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> public function connection($name = null)
<ide> */
<ide> public function reconnect($name = null)
<ide> {
<add> $name = $name ?: $this->getDefaultConnection();
<add>
<ide> unset($this->connections[$name]);
<ide>
<ide> return $this->connection($name); | 1 |
Javascript | Javascript | add missing await in fs-rm/fs-rmdir tests | 6b9d2aefdb01888fe33a67807974c0ea9f5bd0d6 | <ide><path>test/parallel/test-fs-rm.js
<ide> function removeAsync(dir) {
<ide> makeNonEmptyDirectory(4, 10, 2, dir, true);
<ide>
<ide> // Removal should fail without the recursive option set to true.
<del> assert.rejects(fs.promises.rm(dir), { syscall: 'rm' });
<del> assert.rejects(fs.promises.rm(dir, { recursiv... | 2 |
Javascript | Javascript | use new configuration in react-native public cli | a32620dc3b7a0ebd53feeaf7794051705d80f49e | <ide><path>local-cli/bundle/buildBundle.js
<ide> const log = require('../util/log').out('bundle');
<ide> /* $FlowFixMe(site=react_native_oss) */
<ide> const Server = require('metro/src/Server');
<ide>
<del>const {convert} = require('metro-config');
<del>
<ide> /* $FlowFixMe(site=react_native_oss) */
<ide> const output... | 7 |
Ruby | Ruby | change method visibility to be private | 6568cfd78c89fe70ac7304d03f8f4825fe0b7c72 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def match(path, *rest, &block)
<ide> end
<ide> end
<ide>
<del> def get_to_from_path(path, to, action)
<del> return to if to || action
<del>
<del> path_without_format = path.sub(/\(\.:format\)$/, "")
<del> ... | 1 |
Mixed | Python | add filepathfield, update docs | c20a0250dfbcd0b86ffd23f4657cf050ce6a2a2a | <ide><path>docs/api-guide/fields.md
<ide> A field that ensures the input is a valid UUID string. The `to_internal_value` m
<ide>
<ide> "de305d54-75b4-431b-adb2-eb6b9e546013"
<ide>
<add>## FilePathField
<add>
<add>A field whose choices are limited to the filenames in a certain directory on the filesystem
<add>
<ad... | 4 |
Text | Text | add discards file to csharp spanish guide | af6fa31f2aa33da13a5b1b803f58b89e6c54d408 | <ide><path>guide/spanish/csharp/discards/index.md
<add>---
<add>title: Discards
<add>localeTitle: Descartes
<add>---
<add># Descartes (Discards)
<add>Es una característica introducida en C# 7.
<add>
<add>Son variables que son asignadas pero nunca son leídas. Son representadas con la palabra clave `_`.
<add>
<add>```csh... | 1 |
Go | Go | remove tp4 support from main code | 331c8a86d489e573fcbf1df3c4f813bbc3168624 | <ide><path>builder/dockerfile/evaluator_windows.go
<del>// +build windows
<del>
<ide> package dockerfile
<ide>
<del>import (
<del> "fmt"
<del>
<del> "github.com/Microsoft/hcsshim"
<del>)
<add>import "fmt"
<ide>
<del>// platformSupports is a short-term function to give users a quality error
<del>// message if a Docker... | 11 |
PHP | PHP | improve docblock formatting | e10a52f9fdf0acbc9e92ab1d5f8ad2e9b6fe7d83 | <ide><path>src/ORM/Query.php
<ide> public function __debugInfo() {
<ide> *
<ide> * Part of JsonSerializable interface.
<ide> *
<del> * @return \Cake\ORM\ResultSet the data to convert to JSON
<add> * @return \Cake\ORM\ResultSet The data to convert to JSON.
<ide> */
<ide> public function jsonSerialize() {
<ide> re... | 1 |
PHP | PHP | add test for marshalling joindata | b11db452ccc55108c6f6910b15d7f72711bf60ad | <ide><path>Cake/Test/TestCase/ORM/MarshallerTest.php
<ide> public function setUp() {
<ide> $articles = TableRegistry::get('Articles');
<ide> $articles->belongsTo('Users');
<ide> $articles->hasMany('Comments');
<add> $articles->belongsToMany('Tags');
<ide>
<ide> $comments = TableRegistry::get('Comments');
<ide... | 1 |
Javascript | Javascript | fix line number calculation after v8 upgrade | 5981fb7faa13de95550b01272ebfbd8a5220aadb | <ide><path>lib/assert.js
<ide> function getErrMessage(message, fn) {
<ide> const call = err.stack[0];
<ide>
<ide> const filename = call.getFileName();
<del> const line = call.getLineNumber() - 1;
<add> let line = call.getLineNumber() - 1;
<ide> let column = call.getColumnNumber() - 1;
<ide> let identifier;
<... | 1 |
Python | Python | add control on receive stat. correct issue #145 | e83eeee67df9692c160f43b280c923669d32347d | <ide><path>glances/glances.py
<ide> def displayCpu(self, cpu, percpu, proclist):
<ide> offset_x = 0
<ide>
<ide> # Log
<del> if cpu:
<add> if cpu and hasattr(cpu, 'system'):
<ide> logs.add(self.__getCpuAlert(cpu['user']), "CPU user",
<ide> ... | 1 |
PHP | PHP | fix documented types for setconditions() | 75ba2b4eba647fd0fee62a59b221b0e1fb89cac0 | <ide><path>src/ORM/Association.php
<ide> public function target(Table $table = null)
<ide> * Sets a list of conditions to be always included when fetching records from
<ide> * the target association.
<ide> *
<del> * @param array $conditions list of conditions to be used
<add> * @param array|calla... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.