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 | remove empty line in yaml block | b809792931ec89c67eabd3efb082847171c3e690 | <ide><path>doc/api/process.md
<ide> changes:
<ide> - v12.19.0
<ide> pr-url: https://github.com/nodejs/node/pull/32499
<ide> description: Calling `process.umask()` with no arguments is deprecated.
<del>
<ide> -->
<ide>
<ide> > Stability: 0 - Deprecated. Calling `process.umask()` with no argument causes | 1 |
Text | Text | turn names into links | 1e2cb0fd650a5b5990d82541251585425b2d62fe | <ide><path>SUPPORTERS.md
<ide> until then.
<ide> These wonderful people supported our Kickstarter by giving us £10 or more:
<ide>
<ide> * Simon Rascovsky
<del>* silsha (http://felixarndt.de)
<del>* Martin Kopischke (http://martin.kopischke.net)
<del>* John Kary (http://johnkary.net)
<del>* David M. Carr (http://david.... | 1 |
Ruby | Ruby | convert x11requirement test to spec | 23767a378bf4c10d2e78e49050ab566d9f8cdaed | <ide><path>Library/Homebrew/test/x11_requirement_spec.rb
<add>require "requirements/x11_requirement"
<add>
<add>describe X11Requirement do
<add> let(:default_name) { "x11" }
<add>
<add> describe "#name" do
<add> it "defaults to x11" do
<add> expect(subject.name).to eq(default_name)
<add> end
<add> end
<ad... | 2 |
Ruby | Ruby | skip the formula in .brew/formula.rb | 03ae6aae3b95447bc79398b3c58a9fcee67e98ef | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def text_files
<ide> next true if pn.symlink?
<ide> next true if pn.directory?
<ide> next false if pn.basename.to_s == "orig-prefix.txt" # for python virtualenvs
<add> next true if pn == self/".brew/#{name}.rb"
<ide> next true if M... | 1 |
Javascript | Javascript | add conda install for lookups [ci skip] | e7ddc6f6629fde9475ae97945ddf423d1dbfb3be | <ide><path>website/src/widgets/quickstart-install.js
<ide> const QuickstartInstall = ({ id, title }) => (
<ide> set PYTHONPATH=/path/to/spaCy
<ide> </QS>
<ide> <QS package="source">pip install -r requirements.txt</QS>
<del> <QS data="loo... | 1 |
Go | Go | remove cli-only tests from integration-cli | 98d8c96885593f8f085bf9607b7d817e23d7164c | <ide><path>integration-cli/docker_cli_help_test.go
<del>package main
<del>
<del>import (
<del> "fmt"
<del> "runtime"
<del> "strings"
<del> "unicode"
<del>
<del> "github.com/docker/docker/integration-cli/checker"
<del> "github.com/docker/docker/integration-cli/cli"
<del> "github.com/docker/docker/pkg/homedir"
<del> icmd... | 2 |
Javascript | Javascript | use lodash replace | e8dcc43e235133773231ba6dae78a3853bdfc735 | <ide><path>common/utils/encode-decode.js
<del>import flow from 'lodash/flow';
<add>import _ from 'lodash/fp';
<ide>
<ide> // we don't store loop protect disable key
<del>export function removeNoprotect(val) {
<del> return val.replace(/noprotect/gi, '');
<del>}
<add>export const removeNoprotect = _.replace(/noprotect/... | 2 |
Javascript | Javascript | remove unneeded runtime requirements | a105b663e97fc83314a5758e12a3cd2e445670cc | <ide><path>lib/dependencies/HarmonyExportSpecifierDependency.js
<ide>
<ide> "use strict";
<ide>
<del>const RuntimeGlobals = require("../RuntimeGlobals");
<ide> const makeSerializable = require("../util/makeSerializable");
<ide> const HarmonyExportInitFragment = require("./HarmonyExportInitFragment");
<ide> const Null... | 1 |
Javascript | Javascript | remove test that's testing a test helper | bdbb664e6a3cc5e71c973aeccc8880b95ee801c5 | <ide><path>spec/spec-helper-spec.js
<del>describe('spec-helper', () => {
<del> describe('jasmine.any', () => {
<del> it('equals uses jasmine.any', () => {
<del> const func = () => {};
<del> expect(func).toEqual(jasmine.any(Function));
<del> });
<del> });
<del>}); | 1 |
Python | Python | fix disjunctive features in english tag map | 6f983132544e1d20684930b7157d92a70f16a32c | <ide><path>spacy/lang/en/tag_map.py
<ide> "VBN": {POS: VERB, "VerbForm": "part", "Tense": "past", "Aspect": "perf"},
<ide> "VBP": {POS: VERB, "VerbForm": "fin", "Tense": "pres"},
<ide> "VBZ": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": 3},
<del> "WDT": ... | 1 |
Javascript | Javascript | make challenge links on profile page work | 70b7080833c8a08ae47642d09ecb5fb80426c971 | <ide><path>api-server/common/models/challenge.js
<ide> import { Observable } from 'rx';
<ide> import { isEmpty } from 'lodash';
<add>import { dasherize } from '../utils';
<ide>
<ide> export default function(Challenge) {
<ide> let challengeIdToNameMap;
<ide> export default function(Challenge) {
<ide> throw Er... | 2 |
PHP | PHP | update paginator.php | 2000c97988d40dd873dba1d2e787d8c2312a98c9 | <ide><path>src/Illuminate/Pagination/Paginator.php
<ide> public function render($view = null, $data = [])
<ide> /**
<ide> * Manually indicate that the paginator does have more pages.
<ide> *
<del> * @param bool $value
<add> * @param bool $hasMore
<ide> * @return $this
<ide> */
<del> ... | 1 |
Javascript | Javascript | take advantage of native speed when we can | 8709b562efee98fd6a456ca991a45c152ea5c648 | <ide><path>moment.js
<ide> toISOString : function () {
<ide> var m = moment(this).utc();
<ide> if (0 < m.year() && m.year() <= 9999) {
<del> return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
<add> if ('function' === typeof Date.prototype.toISOString) {... | 1 |
Javascript | Javascript | add type support for template base class | 86aa18d6990f4102704854ad5dc76b1cc45323f0 | <ide><path>lib/Template.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>"use strict";
<add>/** @typedef {typeof import("./Module")} Module */
<add>/** @typedef {typeof import("./Chunk")} Chunk */
<add>/** @typedef {typeof import("./ModuleTemplat... | 1 |
Javascript | Javascript | add dispose spec | 3a5c8271629f6ebd9d4b03779f3b019d1bad5bc9 | <ide><path>spec/auto-update-manager-spec.js
<ide> fdescribe('AutoUpdateManager (renderer)', () => {
<ide> })
<ide> })
<ide> })
<add>
<add> describe('::dispose', () => {
<add> it('subscribes to "update-not-available" event', () => {
<add> const spy = jasmine.createSpy('spy')
<add> const doneInd... | 1 |
Python | Python | add coverage for blueprint.app_errorhandler | 9fddecd4d92763f38a42a3842abab70b0a6f4678 | <ide><path>tests/test_blueprints.py
<ide> def blue_func_test():
<ide> assert c.get('/decorator').data == b'boom'
<ide> assert c.get('/function').data == b'bam'
<ide>
<add>def test_blueprint_app_error_handling():
<add> errors = flask.Blueprint('errors', __name__)
<add>
<add> @errors.app_errorhandler(403)
... | 1 |
Python | Python | add seed parameter for image augmentation method. | cebf2084ebb0a603383ceb6807653921796cd095 | <ide><path>keras/preprocessing/image.py
<ide> def standardize(self, x):
<ide> 'first by calling `.fit(numpy_data)`.')
<ide> return x
<ide>
<del> def random_transform(self, x):
<add> def random_transform(self, x, seed=None):
<ide> """Randomly augment a single image te... | 1 |
Text | Text | add dot in documentations | fa939f0cf59fdafae6748b390bcfc733f188b425 | <ide><path>README.md
<ide> Binaries, installers, and source tarballs are available at
<ide> The [latest](https://nodejs.org/download/release/latest/) directory is an
<ide> alias for the latest Current release. The latest LTS release from an LTS
<ide> line is available in the form: latest-_codename_. For example:
<del><... | 1 |
Ruby | Ruby | require time extension for 3.seconds default | b00214d214c6b0a2208d5861de1a7b158accddf0 | <ide><path>activejob/lib/active_job/exceptions.rb
<add>require 'active_support/core_ext/numeric/time'
<add>
<ide> module ActiveJob
<ide> # Provides behavior for retrying and discarding jobs on exceptions.
<ide> module Exceptions | 1 |
Python | Python | pull xcode_emulation.py from node-gyp | 0673dfc0d8944a37e17fbaa683022f4b9e035577 | <ide><path>tools/gyp/pylib/gyp/mac_tool.py
<ide> import sys
<ide> import tempfile
<ide>
<add>PY3 = bytes != str
<add>
<ide>
<ide> def main(args):
<ide> executor = MacTool()
<ide> def ExecFilterLibtool(self, *cmd_list):
<ide> env['ZERO_AR_DATE'] = '1'
<ide> libtoolout = subprocess.Popen(cmd_list, stderr=subp... | 2 |
Mixed | Ruby | add fail fast to test runner | 2310fb9d810f11681c1eecdb88518c23c8b379cf | <ide><path>railties/CHANGELOG.md
<add>* Add fail fast to `bin/rails test`
<add>
<add> Adding `--fail-fast` or `-f` when running tests will interrupt the run on
<add> the first failure:
<add>
<add> ```
<add> # Running:
<add>
<add> ................................................S......E
<add>
<add> A... | 5 |
PHP | PHP | apply fixes from styleci | d30bc52df0d290dec11c3822f26a89335d15d815 | <ide><path>src/Illuminate/View/ComponentAttributeBag.php
<ide> public function whereStartsWith($string)
<ide> return Str::startsWith($key, $string);
<ide> });
<ide> }
<del>
<add>
<ide> /**
<ide> * Return a bag of attributes with keys that do not start with the given value / pattern.... | 1 |
Javascript | Javascript | update google strategy | 3016af41e56f397a9c47328427c5652f468cc9fe | <ide><path>config/passport.js
<ide> passport.use(new GoogleStrategy(secrets.google, function(req, accessToken, refre
<ide> } else {
<ide> User.findOne({ google: profile.id }, function(err, existingUser) {
<ide> if (existingUser) return done(null, existingUser);
<del> User.findOne({ email: profile._json... | 1 |
PHP | PHP | fix coding style error | fdeec5e73354e2cf6455483fc884b23efe8a7c5a | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function describeForeignKeySql($table) {
<ide> */
<ide> public function convertForeignKey(Table $table, $row) {
<ide> }
<add>
<ide> /**
<ide> * Generate the SQL to truncate a table.
<ide> * | 1 |
Javascript | Javascript | replace concatenation with template literals | 3566195196b81390d8dc1a7ccbca9a2c118df624 | <ide><path>test/parallel/test-path-parse-format.js
<ide> function checkFormat(path, testCases) {
<ide> }, common.expectsError({
<ide> code: 'ERR_INVALID_ARG_TYPE',
<ide> type: TypeError,
<del> message: 'The "pathObject" argument must be of type Object. Received ' +
<del> 'type ' + typ... | 1 |
Javascript | Javascript | save profile now working in firefox | 77bb1023986225a12aaa1b45b85703df5deaf95a | <ide><path>packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js
<ide> export default function ProfilingImportExportButtons() {
<ide> const {profilerStore} = store;
<ide>
<ide> const inputRef = useRef<HTMLInputElement | null>(null);
<add> const downloadRef = useRef<HTMLAnchorE... | 2 |
Python | Python | use numpy versions of getargspec, formatargspec | 6a548b8d3effcb2754414444159f1757b2715d6d | <ide><path>numpy/lib/utils.py
<ide> from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype
<ide> from numpy.core import ndarray, ufunc, asarray
<ide>
<add># getargspec and formatargspec were removed in Python 3.6
<add>from numpy.compat import getargspec, formatargspec
<add>
<ide> __all__ = [
<ide> ... | 1 |
Javascript | Javascript | change var to const | f86f5736da72ad4f3fb50692461222590e2f0258 | <ide><path>benchmark/fs/readfile-partitioned.js
<ide> function main(conf) {
<ide> fs.writeFileSync(filename, data);
<ide> data = null;
<ide>
<del> var zipData = Buffer.alloc(1024, 'a');
<add> const zipData = Buffer.alloc(1024, 'a');
<ide>
<ide> var reads = 0;
<ide> var zips = 0;
<ide><path>benchmark/fs/writ... | 44 |
Python | Python | add testcfg.py to test/abort/ | 5251fe52c337515235e72343e93788aecf148bc4 | <ide><path>test/abort/testcfg.py
<add>import sys, os
<add>sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
<add>import testpy
<add>
<add>def GetConfiguration(context, root):
<add> return testpy.SimpleTestConfiguration(context, root, 'abort') | 1 |
Javascript | Javascript | handle windows unc paths as windows paths | 058951faa101476a5fb2d8fe016d3ecf39f538d2 | <ide><path>lib/util/fs.js
<ide> const relative = (fs, rootPath, targetPath) => {
<ide> return fs.relative(rootPath, targetPath);
<ide> } else if (rootPath.startsWith("/")) {
<ide> return path.posix.relative(rootPath, targetPath);
<del> } else if (rootPath.length > 1 && rootPath[1] === ":") {
<add> } else if ((root... | 1 |
PHP | PHP | update wherepivot phpdoc | 283d57edfedf4b9eb045c3352153c6a64f6cc5f8 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function as($accessor)
<ide> * Set a where clause for a pivot table column.
<ide> *
<ide> * @param string $column
<del> * @param string|null $operator
<add> * @param mixed $operator
<ide> * @param mix... | 1 |
Python | Python | remove ca_cert argument from docker driver | 3c6b7eba8b34007b2dc1e8f5726beabdd207dc78 | <ide><path>libcloud/container/drivers/docker.py
<ide> class DockertlsConnection(KeyCertificateConnection):
<ide>
<ide> def __init__(self, key, secret, secure=True,
<ide> host='localhost',
<del> port=4243, ca_cert='', key_file='', cert_file='', **kwargs):
<add> port=... | 1 |
Python | Python | fix a test failure with python 2.5 | 7ff9df3865d4d601724e5ac6208b31ac9d8cc103 | <ide><path>libcloud/test/compute/test_ssh_client.py
<ide> # limitations under the License.
<ide>
<ide> from __future__ import absolute_import
<add>from __future__ import with_statement
<ide>
<ide> import sys
<ide> import unittest | 1 |
PHP | PHP | remove duplicate alias for debugger renderers | 5c62a2eeab1987ca36995cd1486c48846fdd07ac | <ide><path>src/Error/Debugger.php
<ide> class Debugger
<ide> * @var array<string, class-string>
<ide> */
<ide> protected $renderers = [
<del> // Backwards compatible alias for text that will be deprecated.
<ide> 'txt' => TextErrorRenderer::class,
<del> 'text' => TextErrorRenderer::cl... | 1 |
Go | Go | normalize comment formatting | 9de5d3da894950d4dbcae35f8d4136a0810cc63b | <ide><path>pkg/chrootarchive/archive_test.go
<ide> func TestChrootUntarWithHugeExcludesList(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide> options := &archive.TarOptions{}
<del> //65534 entries of 64-byte strings ~= 4MB of environment space which should overflow
<del> //on most systems when passed via environment... | 2 |
Text | Text | update changelog [ci skip] | 7da998b3c28c4cd67c65814c0718dac52252cae0 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#17846](https://github.com/emberjs/ember.js/pull/17846) [BUGFIX] Fix issues with template-only components causing errors in subsequent updates.
<ide> - [#17870](https://github.com/emberjs/ember.js/pull/17870) / [#17871](https://github.com/emberjs/ember.js/pull/17871) [BUGFIX] Fix... | 1 |
Python | Python | add a note about tf.image.convert_image_dtype | 6eeec4e70eca4883a3e7aa7f0955793ded0130d1 | <ide><path>official/resnet/imagenet_main.py
<ide> def parse_record(raw_record, is_training):
<ide> image = tf.image.decode_image(
<ide> tf.reshape(parsed['image/encoded'], shape=[]),
<ide> _NUM_CHANNELS)
<add>
<add> # Note that tf.image.convert_image_dtype scales the image data to [0, 1).
<ide> image =... | 1 |
Python | Python | fix pkg-config search for libnghttp2 | efb406ccd55dc091ea28a6bcb8f4e792bbd3e380 | <ide><path>configure.py
<ide>
<ide> shared_optgroup.add_option('--shared-cares',
<ide> action='store_true',
<del> dest='shared_libcares',
<add> dest='shared_cares',
<ide> help='link to a shared cares DLL instead of static linking')
<ide>
<ide> shared_optgroup.add_option('--shared-cares-includes',
<ide> ... | 1 |
Text | Text | update links and add new public spinenet link | 6fa901c983b75575621670e01196057bd6102de6 | <ide><path>research/object_detection/g3doc/deepmac.md
<ide> segmentation task.
<ide> * The field `allowed_masked_classes_ids` controls which classes recieve mask
<ide> supervision during training.
<ide> * Mask R-CNN based ablations in the paper are implemented in the
<del> [TF model garden](../../../official... | 1 |
Mixed | Ruby | update the documentation and add changelog entry | eedc513503785490a7caed23cd0a0aef3536759f | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* `truncate` now accepts a block to show extra content when the text is truncated. *Li Ellis Gallardo*
<add>
<ide> * Add `week_field`, `week_field_tag`, `month_field`, `month_field_tag`, `datetime_local_field`,
<ide> `datetime_l... | 3 |
Javascript | Javascript | remove unused todom method | ba1fcb82fe5cde4e40eac7a29f2623f9f38a4aaf | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> ClassSet.prototype = {
<ide> this.seen[string] = true;
<ide>
<ide> this.list.push(string);
<del> },
<del>
<del> toDOM: function() {
<del> return this.list.join(" ");
<ide> }
<ide> };
<ide> | 1 |
Ruby | Ruby | add explicit testing for `uncached` vs. `cached` | 5118a3b8b00b9f15dc2b71c281f2b814ea5d14ab | <ide><path>activerecord/test/cases/query_cache_test.rb
<ide> def test_cache_is_not_available_when_using_a_not_connected_connection
<ide> Task.connection_specification_name = spec_name
<ide> end
<ide>
<add> def test_query_cache_executes_new_queries_within_block
<add> ActiveRecord::Base.connection.enable_query... | 1 |
Javascript | Javascript | update js file | 9e4fb7174fdec07e576521d9647819a065537d5a | <ide><path>examples/js/lines/LineSegments2.js
<del>import { Matrix4, Vector3, Line, Math as MathUtils } from "../../../build/three.module.js";
<del>
<ide> /**
<ide> * @author WestLangley / http://github.com/WestLangley
<ide> *
<ide> THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototy
<ide... | 1 |
Python | Python | add library sources to some dependencies | 777c6e5346251c0c2fc9fba4d1295a7cc8fc83d7 | <ide><path>numpy/core/setup.py
<ide> def get_mathlib_info(*args):
<ide> subst_dict["posix_mathlib"] = posix_mlib
<ide> subst_dict["msvc_mathlib"] = msvc_mlib
<ide>
<add> npymath_sources = [join('src', 'npymath', 'npy_math.c.src'),
<add> join('src', 'npymath', 'ieee754.c.src'),
... | 1 |
Javascript | Javascript | add reference to materials to obj loader | 13febe3f3d9fd9c9a3762baaa02e5069303837f8 | <ide><path>examples/js/loaders/OBJLoader.js
<ide> THREE.OBJLoader = function ( manager ) {
<ide>
<ide> this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
<add>
<add> this.materials = null;
<ide>
<ide> };
<ide>
<ide> THREE.OBJLoader.prototype = {
<ide> this.crossOrigin = value;
<ide... | 1 |
Javascript | Javascript | add release argument to sentrywebpackplugin | d98cd8ad31b765ce6477193e02e737d26c9558eb | <ide><path>examples/with-sentry-simple/next.config.js
<ide> module.exports = withSourceMaps({
<ide> include: '.next',
<ide> ignore: ['node_modules'],
<ide> urlPrefix: '~/_next',
<add> release: options.buildId,
<ide> })
<ide> )
<ide> } | 1 |
Python | Python | add test for ticket #882 fix | d0db38aea3d8e4f15808a87a1051cf2f8bf30601 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_for_object_scalar_creation(self, level=rlevel):
<ide> assert c.dtype == object
<ide> assert d.dtype == object
<ide>
<add> def test_for_zero_length_in_choose(self, level=rlevel):
<add> "Ticket #882"
<add> a = np.array(1)
<add... | 1 |
Javascript | Javascript | change "defaultedproduction" to undefined | 002f45ae72a9fa4ca10670765d47a4545427f906 | <ide><path>lib/WebpackOptionsApply.js
<ide> class WebpackOptionsApply extends OptionsApply {
<ide> new ImportPlugin(options.module).apply(compiler);
<ide> new SystemPlugin(options.module).apply(compiler);
<ide>
<del> if(typeof options.mode !== "string" || options.mode === "defaultedProduction")
<add> if(typeof o... | 4 |
Javascript | Javascript | remove redundant renormalization and add comment | d1c244492a18bb8e0bbe3ca3343a0688df66f9f0 | <ide><path>examples/js/animation/MMDPhysics.js
<ide> THREE.MMDPhysics = ( function () {
<ide> thQ.set( q.x(), q.y(), q.z(), q.w() );
<ide> thQ2.setFromRotationMatrix( this.bone.matrixWorld );
<ide> thQ2.conjugate();
<del> thQ2.multiply( thQ ).normalize();
<add> thQ2.multiply( thQ );
<ide>
<ide> //this.... | 1 |
Javascript | Javascript | allow falsy values in statics | 13aa8d37e6099afd06c86e7140105f76a0fd95f9 | <ide><path>src/core/ReactCompositeComponent.js
<ide> function mixStaticSpecIntoComponent(ConvenienceConstructor, statics) {
<ide> }
<ide> for (var name in statics) {
<ide> var property = statics[name];
<del> if (!statics.hasOwnProperty(name) || !property) {
<add> if (!statics.hasOwnProperty(name)) {
<ide>... | 2 |
Go | Go | fix issues with plugin and `--live-restore` | cb6633175c0de0a7ae155c4d378cd2379681554b | <ide><path>integration-cli/docker_cli_daemon_plugins_test.go
<ide> func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C)
<ide>
<ide> // TestDaemonShutdownWithPlugins shuts down running plugins.
<ide> func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
<del> testRequires(c... | 2 |
PHP | PHP | remove an else | e0e887c588948476508e4fef29961986bf011383 | <ide><path>src/Routing/Middleware/RoutingMiddleware.php
<ide> public function __invoke(ServerRequestInterface $request, ResponseInterface $res
<ide> $runner = new Runner();
<ide>
<ide> return $runner->run($middleware, $request, $response);
<del> } else {
<del> return $next($re... | 1 |
Text | Text | remove extra paren in `run --link` docs | 484fbe236dcab9fb5b8d48844a8cdc9d614e32e9 | <ide><path>docs/reference/run.md
<ide> If the operator uses `--link` when starting a new client container in the
<ide> default bridge network, then the client container can access the exposed
<ide> port via a private networking interface.
<ide> If `--link` is used when starting a container in a user-defined network as
... | 1 |
Javascript | Javascript | set default to working color space | dbbde82cd84be119c28f588e259bc19518ace55a | <ide><path>src/math/Color.js
<ide> import { clamp, euclideanModulo, lerp } from './MathUtils.js';
<ide> import { ColorManagement, SRGBToLinear, LinearToSRGB } from './ColorManagement.js';
<del>import { SRGBColorSpace, LinearSRGBColorSpace } from '../constants.js';
<add>import { SRGBColorSpace } from '../constants.js';
... | 1 |
Go | Go | add an api test for docker build -f dockerfile | 198ff76de59a600ce900497fd4a6131ee4448c48 | <ide><path>builder/evaluator.go
<ide> import (
<ide> "fmt"
<ide> "io"
<ide> "os"
<del> "path"
<add> "path/filepath"
<ide> "strings"
<ide>
<ide> log "github.com/Sirupsen/logrus"
<ide> func (b *Builder) Run(context io.Reader) (string, error) {
<ide>
<ide> // Reads a Dockerfile from the current context. It assumes ... | 3 |
Ruby | Ruby | use another method to find jenkins pr | b3ed00b791b5e95519b3a59a578a09dd084c44ab | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def diff_formulae(start_revision, end_revision, path, filter)
<ide> @url = ENV["ghprbPullLink"]
<ide> @hash = nil
<ide> test "git", "checkout", "origin/master"
<add> elsif ENV["GIT_BRANCH"] && ENV["GIT_URL"]
<add> %r{origin/pr/(\d... | 1 |
Javascript | Javascript | fix doc typo | 3218b6aaea40490d19c7891dfeb865802e1d1f6a | <ide><path>packages/rsvp/lib/main.js
<ide> define("rsvp/defer",
<ide>
<ide> deferred.resolve("Success!");
<ide>
<del> defered.promise.then(function(value){
<add> deferred.promise.then(function(value){
<ide> // value here is "Success!"
<ide> });
<ide> ``` | 1 |
Ruby | Ruby | add additional tests for | a31a44a266ad2e2ad2b9ce5aa56cd5e1d108d48a | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def test_shorthand_route_with_dashes_in_path
<ide> assert_equal '/about-us/index', about_us_index_path
<ide> end
<ide>
<add> def test_resource_routes_with_dashes_in_path
<add> draw do
<add> resources :photos, only: [:show] do
<add> get 'us... | 1 |
Javascript | Javascript | unify xform @enumerable edition | ced3ad465c50f0448427587403b6418a3f378299 | <ide><path>packages/ember-runtime/lib/mixins/enumerable.js
<ide> function iter(key, value) {
<ide>
<ide> /** @private */
<ide> function xform(target, method, params) {
<del> method.call(target, params[0], params[2], params[3]);
<add> var args = [].slice.call(params, 2);
<add> method.apply(target, args);
<ide> }
<id... | 1 |
Ruby | Ruby | move oldest_cpu to hardware | 159b9d8e2dd08ab4ad913e56669e961a7767b3d9 | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def set_cpu_flags flags, default, map = {}
<ide> append flags, xarch unless xarch.empty?
<ide>
<ide> if ARGV.build_bottle?
<del> append flags, Hardware::CPU.optimization_flags[MacOS.oldest_cpu]
<add> append flags, Hardware::CPU.optimization_flags[Hardwa... | 3 |
PHP | PHP | update doc blocks | 6ce10b28c92226252bb414511dcb64b72c9bf95f | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function getVersion() {
<ide> * Returns a quoted and escaped string of $data for use in an SQL statement.
<ide> *
<ide> * @param string $data String to be prepared for use in an SQL statement
<del> * @param string $column The column into which this data... | 1 |
Text | Text | add two more protocol attacks | 6648cdcca99bfd48876460a840b1b3ac919db8b2 | <ide><path>guide/english/security/cyberattacks/index.md
<ide> no one can be 100% that their data is secure.
<ide> * Cross-Site Scripting (XSS)
<ide> * Password Attacks
<ide> * Denial of Service Attacks (DoS)
<del>* Man in the Middle (MITM)
<add>* Man in the Middle (MITM)
<add>* False Data Injection
<add>* Repla... | 1 |
PHP | PHP | apply fixes from styleci | be631a66933c99f599ca2bd88c61b21ff0a059b3 | <ide><path>config/mail.php
<ide> 'username' => env('MAIL_USERNAME'),
<ide>
<ide> 'password' => env('MAIL_PASSWORD'),
<del>
<add>
<ide> /*
<ide> |--------------------------------------------------------------------------
<ide> | Sendmail System Path
<ide> | been provided here, which will wor... | 1 |
Javascript | Javascript | update hints path to forum | 7bc6367d684a7ea9a6eca7df5aaab7be29eac0c6 | <ide><path>client/src/templates/Challenges/utils/index.js
<del>const guideBase = '/guide/certifications';
<add>const guideBase = 'https://www.freecodecamp.org/forum/search?q=';
<ide>
<ide> export function createGuideUrl(slug = '') {
<del> return guideBase + slug.replace(/^\/learn\//, '/');
<add> return (
<add> gu... | 1 |
Text | Text | titleize header [ci skip] | 93e154ac2c632d689d1624176544395ad6a54230 | <ide><path>guides/source/action_controller_overview.md
<ide> class AdminsController < ApplicationController
<ide> before_action :authenticate
<ide>
<ide> private
<del>
<ide> def authenticate
<ide> authenticate_or_request_with_http_digest do |username|
<ide> USERS[username]
<ide> end
<ide>
<ide> ... | 1 |
Go | Go | fix docker run -a stderr | 3ba279a3705b3417fea36e8d2eb7d54e95d60fad | <ide><path>commands.go
<ide> func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in io.Rea
<ide> defer term.RestoreTerminal(cli.terminalFd, oldState)
<ide> }
<ide>
<del> if stdout != nil {
<add> if stdout != nil || stderr != nil {
<ide> receiveStdout = utils.Go(func() (err error) {
<ide> def... | 1 |
Javascript | Javascript | add minimal example to actionsheet | bbc3f603f1c06a4e1368990a76ee35d9371a5d02 | <ide><path>Libraries/ActionSheetIOS/ActionSheetIOS.js
<ide> var ActionSheetIOS = {
<ide> *
<ide> * The 'callback' function takes one parameter, the zero-based index
<ide> * of the selected item.
<add> *
<add> * Minimal example:
<add> *
<add> * ```
<add> * ActionSheetIOS.showActionSheetWithOptions({
... | 1 |
Java | Java | update unprocessableentity to allow body | 0524a82c09689fab901e4718058f8c68f132d52a | <ide><path>spring-web/src/main/java/org/springframework/http/ResponseEntity.java
<ide> public static HeadersBuilder<?> notFound() {
<ide> * @return the created builder
<ide> * @since 4.1.3
<ide> */
<del> public static HeadersBuilder<?> unprocessableEntity() {
<add> public static BodyBuilder unprocessableEntity() ... | 2 |
Javascript | Javascript | expose transition id | 553bd4e36b48151b05e524fa8eb29c21f3f9e32e | <ide><path>d3.js
<ide> function d3_selection_transition() {
<ide> }
<ide> }
<ide>
<del> return d3_transition(subgroups);
<add> return d3_transition(subgroups, d3_transitionInheritId || ++d3_transitionId);
<ide> }
<del>function d3_transition(groups) {
<add>function d3_transition(groups, id) {
<ide> d3_arraySu... | 11 |
Text | Text | correct small typo | 62a5d8ad08d0181c2243d7febe66b4d336cf133d | <ide><path>guides/source/asset_pipeline.md
<ide> above. By default Rails assumes assets have been precompiled and will be
<ide> served as static assets by your web server.
<ide>
<ide> During the precompilation phase an MD5 is generated from the contents of the
<del>compiled files, and inserted into the filenames as th... | 1 |
Ruby | Ruby | add fetch_artifact api | 5b1d0786a45e69b4af1d71d433cc11bb676fd6b6 | <ide><path>Library/Homebrew/utils/github.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "uri"
<add>require "download_strategy"
<ide> require "tempfile"
<add>require "uri"
<ide>
<ide> module GitHub
<ide> module_function
<ide> def dispatch_event(user, repo, event, **payload)
<ide> scopes:... | 1 |
PHP | PHP | marshal empty string to null for booltype | 04e06e5fcccac30f50ed1c5370147f68ce360fe8 | <ide><path>src/Database/Type/BoolType.php
<ide> public function toStatement($value, Driver $driver): int
<ide> */
<ide> public function marshal($value): ?bool
<ide> {
<del> if ($value === null) {
<add> if ($value === null || $value === '') {
<ide> return null;
<ide> }
<ide... | 2 |
PHP | PHP | remove unneeded check | c7c3a3dcb5104b42630bf23447bc4e86f276e289 | <ide><path>src/Controller/ControllerFactory.php
<ide> class ControllerFactory implements ControllerFactoryInterface
<ide> * @param \Psr\Http\Message\ServerRequestInterface $request The request to build a controller for.
<ide> * @return \Cake\Controller\Controller
<ide> * @throws \Cake\Http\Exception\Miss... | 1 |
Python | Python | fix comment typo | 9ebb7ac0e1b3cc3d1c5a1c67683cce57cc780543 | <ide><path>celery/utils/dispatch/signal.py
<ide> class Signal(object): # pragma: no cover
<ide>
<ide> .. attribute:: receivers
<ide> Internal attribute, holds a dictionary of
<del> `{receriverkey (id): weakref(receiver)}` mappings.
<add> `{receiverkey (id): weakref(receiver)}` mappings.
<ide... | 1 |
Go | Go | move "images -viz" to client | 2a5998baf172f94a8d6866e46207a0d7d75e70e5 | <ide><path>api.go
<ide> func getImagesJSON(srv *Server, version float64, w http.ResponseWriter, r *http.
<ide> }
<ide> }
<ide>
<del>func getImagesViz(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<del> if err := srv.ImagesViz(w); err != nil {
<del> return err
<... | 3 |
Ruby | Ruby | do nothing if no args | 7ed76725c4c1b4871cb085709f737af52ffd5188 | <ide><path>Library/Homebrew/cmd/uses.rb
<ide>
<ide> module Homebrew extend self
<ide> def uses
<add> return if ARGV.formulae.empty?
<add>
<ide> uses = Formula.all.select do |f|
<ide> ARGV.formulae.all? do |ff|
<ide> # For each formula given, show which other formulas depend on it.
<ide> ... | 1 |
Javascript | Javascript | fix iterations for takewhile | d3f05e52a717f37dc9ad35ef35de20708f0287e4 | <ide><path>dist/Immutable.js
<ide> var $Sequence = Sequence;
<ide> }
<ide> var iterations = 0;
<ide> sequence.__iterate((function(v, k, c) {
<del> if (predicate.call(thisArg, v, k, c) && fn(v, k, $__0) !== false) {
<del> iterations++;
<del> } else {
<del> return false;
... | 3 |
Text | Text | remove extra whitespace from features.md | 1c77b908ec3f431b150db9a89e3f964a0d13e509 | <ide><path>FEATURES.md
<ide> for a detailed explanation.
<ide>
<ide> Deprecates `Route#serialize` and introduces a `serialize` option to the router DSL as a replacement (as per the [Route Serializers RFC](https://github.com/emberjs/rfcs/blob/master/text/0120-route-serializers.md)).
<ide>
<del> * `ember-runtime-comp... | 1 |
Javascript | Javascript | fix eslint usage for node.js 8 and before | 5f18991f270754a3dca7f64ba56afe10fbb7627c | <ide><path>.eslintrc.js
<ide> Module._findPath = (request, paths, isMain) => {
<ide> if (!r && hacks.includes(request)) {
<ide> try {
<ide> return require.resolve(`./tools/node_modules/${request}`);
<del> } catch {
<add> // Keep the variable in place to ensure that ESLint started by older Node.js
<add... | 1 |
Text | Text | fix broken links in changelogs | 3d54ea430458c1a11d9a9e96bbd5a5ddc466cc68 | <ide><path>doc/changelogs/CHANGELOG_ARCHIVE.md
<ide> https://github.com/nodejs/node/commit/fdf91afb494a7a2fff2913d817f589c191a2c88f
<ide> <a id="0.8.14"></a>
<ide> ## 2012.10.25, Version 0.8.14 (Stable)
<ide>
<del>https://github.com/nodejs/node/commit/b00527fcf05c3d9f https://github.com/nodejs/node/commit/b5d5d790f947... | 4 |
Go | Go | fix some go_vet issues | 9c831243022f9b5bf028be819c62bb0b5b23b977 | <ide><path>pkg/mount/mounter_linux.go
<ide> func mount(device, target, mType string, flags uintptr, data string) error {
<ide> flags: flags & pflags,
<ide> err: err,
<ide> }
<del> return err
<ide> }
<ide> }
<ide>
<ide><path>pkg/system/lstat_unix.go
<ide> import (
<ide> func Lstat(path string) (*Sta... | 3 |
PHP | PHP | add arrayaccess support to data_get | 08c89f5124dac73e5283c11ff78f2b2dd9e9535f | <ide><path>src/Illuminate/Support/helpers.php
<ide> function data_get($target, $key, $default = null)
<ide>
<ide> $target = $target[$segment];
<ide> }
<add> elseif ($target instanceof ArrayAccess)
<add> {
<add> if ( ! isset($target[$segment]))
<add> {
<add> return value($default);
<add> }
<add>... | 2 |
Mixed | Javascript | support readable hwm in incomingmessage | 11276af5dd60354af3db1b578804ca3839044420 | <ide><path>doc/api/http.md
<ide> the request body should be sent.
<ide> ## Class: http.IncomingMessage
<ide> <!-- YAML
<ide> added: v0.1.17
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/30135
<add> description: The `readableHighWaterMark` value mirrors that of the soc... | 3 |
Javascript | Javascript | fix build date formatting | 5b59a63b2b9247b326c654ca941a1dfe77914024 | <ide><path>Gruntfile.js
<ide> module.exports = function( grunt ) {
<ide> // Embed Date
<ide> compiled = compiled.replace( /@VERSION/g, version )
<ide> .replace( "@DATE", function () {
<del> var date = new Date();
<del>
<ide> // YYYY-MM-DD
<del> return [
<del> date.getFullYear(),
<del> d... | 1 |
Python | Python | add more tests | 56f8bc73ef1880ded2abe9da5a5ff26ca6babc20 | <ide><path>spacy/tests/pipeline/test_initialize.py
<ide> def test_initialize_arguments():
<ide> name = "test_initialize_arguments"
<ide>
<add> class CustomTokenizer:
<add> def __init__(self, tokenizer):
<add> self.tokenizer = tokenizer
<add> self.from_initialize = None
<add>
<add> ... | 1 |
Ruby | Ruby | capitalize descriptions of --head, --devel | a70a80511146ec35d9da82f678a0d36efe5c72d4 | <ide><path>Library/Homebrew/cmd/options.rb
<ide> def dump_options_for_formula f
<ide> f.options.sort_by(&:flag).each do |opt|
<ide> puts "#{opt.flag}\n\t#{opt.description}"
<ide> end
<del> puts "--devel\n\tinstall development version #{f.devel.version}" if f.devel
<del> puts "--HEAD\n\tinstall HEAD ... | 1 |
Text | Text | clarify instructions for cafe menu step 41 | 399eaa01ed6c5cdff4f3d08b60c5cc51237fb2e4 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3cade9fa77275d9f4efe62.md
<ide> dashedName: step-41
<ide>
<ide> That worked, but there is still a little space on the right of the price.
<ide>
<del>You could keep trying various percentages for the widths. ... | 1 |
Python | Python | change compute_accuracy() argument order and names | bfd800ad38132b924af2421008acda970823bb8a | <ide><path>examples/mnist_siamese_graph.py
<ide> def create_base_network(input_dim):
<ide> return seq
<ide>
<ide>
<del>def compute_accuracy(predictions, labels):
<add>def compute_accuracy(y_true, y_pred):
<ide> '''Compute classification accuracy with a fixed threshold on distances.
<ide> '''
<del> pred... | 1 |
Ruby | Ruby | use the tab in place of build during tests | 5ccce044ca04b9586667b538f818d4a018f21fa7 | <ide><path>Library/Homebrew/formula.rb
<ide> def verify_download_integrity fn
<ide> end
<ide>
<ide> def test
<del> # Adding the used options allows us to use `build.with?` inside of tests
<del> tab = Tab.for_name(name)
<del> tab.used_options.each { |opt| build.args << opt unless build.has_opposite_of? opt... | 1 |
PHP | PHP | add templates option to create() | 31003389b9865525da0b7d362918de30138adbb0 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _isRequiredField($validationRules) {
<ide> * - `url` The URL the form submits to. Can be a string or a URL array. If you use 'url'
<ide> * you should leave 'action' undefined.
<ide> * - `encoding` Set the accept-charset encoding for the form. Defa... | 2 |
Javascript | Javascript | move plugin into folder | faa56f175158a6c9d8868b40eec9329f0c64acce | <ide><path>lib/WebpackOptionsApply.js
<ide> const SourceMapDevToolPlugin = require("./SourceMapDevToolPlugin");
<ide> const EntryOptionPlugin = require("./EntryOptionPlugin");
<ide> const RecordIdsPlugin = require("./RecordIdsPlugin");
<ide>
<del>const InferAsyncModulesPlugin = require("./InferAsyncModulesPlugin");
<a... | 2 |
Python | Python | remove redundant method in kubernetesexecutor | bcb24373436962849cfc83d6d35389d7258da72c | <ide><path>airflow/executors/kubernetes_executor.py
<ide> For more information on how the KubernetesExecutor works, take a look at the guide:
<ide> :ref:`executor:KubernetesExecutor`
<ide> """
<del>import base64
<add>
<ide> import functools
<ide> import json
<ide> import multiprocessing
<ide> def clear_not_laun... | 1 |
Ruby | Ruby | fix numericdata.average test on ruby 2.6 | 89b4612ffc97e6648f5cf807906ae210e05acdda | <ide><path>activerecord/test/cases/calculations_test.rb
<ide> def test_should_return_integer_average_if_db_returns_such
<ide> assert_equal 3, value
<ide> end
<ide>
<del> def test_should_return_nil_as_average
<del> assert_nil NumericData.average(:bank_balance)
<add> def test_should_return_nil_to_d_as_average... | 1 |
Text | Text | add new course for angular 2++ | edd427277756e9a3331f95a3cc935293906088d1 | <ide><path>guide/english/angular/angular-resources/index.md
<ide> A collection of helpful Angular resources
<ide> * <a href='https://frontendmasters.com/courses/building-apps-angular' target='_blank' rel='nofollow'>FrontendMasters - Building Awesomer Apps with Angular</a>
<ide> * <a href='https://ultimateangular.com/' ... | 1 |
Python | Python | add tests for generalized linalg functions | 9bfa19b11f38b5fe710d872db6a8628fc6a72359 | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def test_matrix_a_and_b(self):
<ide> b = matrix([2., 1.]).T
<ide> self.do(a, b)
<ide>
<del>
<ide> class LinalgNonsquareTestCase(object):
<ide> def test_single_nsq_1(self):
<ide> a = array([[1.,2.,3.], [3.,4.,6.]], dtype=single)
<ide> def te... | 1 |
PHP | PHP | add doesntexpectjobs method | 1d8463250f8a44868d19df77aa701df8f39f1fe7 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MocksApplicationServices.php
<ide> trait MocksApplicationServices
<ide> */
<ide> protected $firedEvents = [];
<ide>
<add> /**
<add> * All of the dispatched jobs.
<add> *
<add> * @var array
<add> */
<add> protected $dispatchedJobs = []... | 1 |
Text | Text | improve hints for cat photo app step 46 | 86901091a63d7ac16e31dcfe93551caeed153678 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md
<ide> Create another radio button below the first one. Nest it inside a `label` elemen
<ide>
<ide> # --hints--
<ide>
<del>You will need to add a new `label` element in which to nest ... | 1 |
Text | Text | add omitted word in readme | 95bb1579c48376bdc3818361fc4c946a4ce41033 | <ide><path>README.md
<ide> webpack can do many optimizations to **reduce the output size**. It also can mak
<ide>
<ide>
<ide>
<del># A small example what's possible
<add># A small example of what's possible
<ide>
<ide> ``` javascript
<ide> // webpack is a module bundler | 1 |
Ruby | Ruby | fix bug when url_for changes controller | e154823935859ae918ca26a7e73477d331e4a142 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def normalize_options!
<ide>
<ide> if options[:controller]
<ide> options[:action] ||= 'index'
<del> options[:controller] = options[:controller].to_s
<add> options[:controller] = options[:controller]... | 2 |
Javascript | Javascript | fix error message check for openssl-1.0.2a | deb9d23d7b6f85f8631cd5fe804eb7e6411d4034 | <ide><path>test/parallel/test-tls-no-sslv3.js
<ide> server.listen(common.PORT, '127.0.0.1', function() {
<ide> });
<ide>
<ide> server.once('clientError', common.mustCall(function(err, conn) {
<del> assert(/SSL3_GET_CLIENT_HELLO:wrong version number/.test(err.message));
<add> assert(/:wrong version number/.test(err.m... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.