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 | serialize the grammar registry | d52c4bc33b8ed13c1cb008ad7ec28e83760dda87 | <ide><path>spec/atom-environment-spec.js
<ide> describe('AtomEnvironment', () => {
<ide> })
<ide>
<ide> it('serializes the text editor registry', async () => {
<add> await atom.packages.activatePackage('language-text')
<ide> const editor = await atom.workspace.open('sample.js')
<del> atom.textE... | 5 |
Javascript | Javascript | fix param name and tidy up examples | e101c127af0b499d03b93c07460f28cfbffa2cc2 | <ide><path>src/ng/directive/input.js
<ide> var ngValueDirective = function() {
<ide> * @name ngModelOptions
<ide> *
<ide> * @description
<del> * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of events
<del> * that will trigger a model update and/or a debouncing delay ... | 1 |
Go | Go | use archive.copywithtar in vfs.create | b6db23cffe942b8d94c80d1e9b3f1f6fca87d139 | <ide><path>daemon/graphdriver/vfs/driver.go
<ide> import (
<ide> "path"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<add> "github.com/docker/docker/pkg/archive"
<ide> "github.com/docker/libcontainer/label"
<ide> )
<ide>
<ide> func isGNUcoreutils() bool {
<ide> return false
<ide> }
<ide>
<del>func c... | 1 |
Javascript | Javascript | fix merge issue | 1027871ead1a1131df4d22dac693e6ba06062f9d | <ide><path>test/HotModuleReplacementPlugin.test.js
<ide> describe("HotModuleReplacementPlugin", () => {
<ide> },
<ide> plugins: [new webpack.HotModuleReplacementPlugin()],
<ide> optimization: {
<del> namedChunks: true
<add> chunkIds: "named"
<ide> }
<ide> });
<ide> fs.writeFileSync(entryFile, "1",... | 1 |
Ruby | Ruby | add config to method calls in fixtures | 6223e2067608aa7fa2ecd2c50e2db74f26ad5914 | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> class FixtureSet
<ide>
<ide> @@all_cached_fixtures = Hash.new { |h,k| h[k] = {} }
<ide>
<del> def self.default_fixture_model_name(fixture_set_name) # :nodoc:
<del> ActiveRecord::Base.pluralize_table_names ?
<add> def self.default_fixture_model... | 2 |
Text | Text | remove dead taps | e4f607e4c8a4368a506edfcbbecfe6d24abc7f34 | <ide><path>share/doc/homebrew/Custom-GCC-and-cross-compilers.md
<ide> Rather than merging in brews for either of these cases at this time, we're listi
<ide>
<ide> * Homebrew provides a `gcc` formula for use with Xcode 4.2+ or when needing C++11 support on earlier versions.
<ide> * [Homebrew-versions](https://github.co... | 1 |
Python | Python | remove print statement in test_endian_recarray | da5ee659fcc7891794dd18dc48b057eb72f08025 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_endian_recarray(self,level=rlevel):
<ide> d = buf[0]['data'][0]
<ide> buf[0]['head'] = h
<ide> buf[0]['data'][0] = d
<del> print buf[0]['head']
<ide> assert_(buf[0]['head'] == 1)
<ide>
<del>
<ide> def test_mem_dot(... | 1 |
Text | Text | fix style of n-api.md | 12e62ea785258e8718f2cf48122b71993049308e | <ide><path>doc/api/n-api.md
<ide> added:
<ide>
<ide> > Stability: 1 - Experimental
<ide>
<del>````c
<add>```c
<ide> NAPI_EXTERN napi_status node_api_throw_syntax_error(napi_env env,
<ide> const char* code,
<ide> co... | 1 |
PHP | PHP | modify tests to also test the new behaviour | cbe8c41080e605622b68ec9ed6908e46e48a9171 | <ide><path>tests/Database/DatabaseEloquentBelongsToManyTest.php
<ide> public function testSyncMethodSyncsIntermediateTableWithGivenArray($list)
<ide> $relation->getRelated()->shouldReceive('touches')->andReturn(false);
<ide> $relation->getParent()->shouldReceive('touches')->andReturn(false);
<ide>
<del> $relation... | 1 |
Javascript | Javascript | add strict equalities in src/core/colorspace.js | 0012b8803c3f9871d74b6d8d286def608d067fb5 | <ide><path>src/core/colorspace.js
<ide> var ColorSpace = (function ColorSpaceClosure() {
<ide> var count = originalWidth * originalHeight;
<ide> var rgbBuf = null;
<ide> var numComponentColors = 1 << bpc;
<del> var needsResizing = originalHeight != height || originalWidth != width;
<add> var... | 1 |
Text | Text | improve examples in buffer docs | 9f7efd58a1e102737694f4e3f6946dac0eb283bf | <ide><path>doc/api/buffer.md
<ide> endian). `value` *should* be a valid 64-bit double. Behavior is undefined when
<ide> ```js
<ide> const buf = Buffer.allocUnsafe(8);
<ide>
<del>buf.writeDoubleBE(0xdeadbeefcafebabe, 0);
<add>buf.writeDoubleBE(123.456, 0);
<ide>
<ide> console.log(buf);
<del>// Prints: <Buffer 43 eb d5... | 1 |
PHP | PHP | update version in "since" tag | 5153f579c3c55867c0e67375122bd991dd3d46aa | <ide><path>src/Shell/Task/AssetsTask.php
<ide> public function copy($name = null)
<ide> * @param string|null $name Name of plugin for which to remove assets.
<ide> * If null all plugins will be processed.
<ide> * @return void
<del> * @since 3.5.11
<add> * @since 3.5.12
<ide> */
<ide> p... | 1 |
Javascript | Javascript | add beforeremoveinstance method to reactnoop | 434770c3b4b94315c789234c27ed9dc2ec8a78ad | <ide><path>packages/react-noop-renderer/src/createReactNoop.js
<ide> function createReactNoop(reconciler: Function, useMutation: boolean) {
<ide> getInstanceFromNode() {
<ide> throw new Error('Not yet implemented.');
<ide> },
<add>
<add> beforeRemoveInstance(instance: any): void {
<add> // NO-OP
<... | 1 |
Python | Python | update examples with updated lxd driver api | 5ea66a7c5389032f541486e317e023a8b9987016 | <ide><path>example_lxd.py
<ide> from libcloud.container.types import Provider
<ide> from libcloud.container.providers import get_driver
<ide> from pylxd import Client
<del>import requests
<del>
<ide>
<ide> def pylxdFunc():
<ide>
<ide> def pylxdFunc():
<ide> print("Image name: ", image.filename)
<ide>
<ide>
... | 1 |
Python | Python | fix vit test | 1ddf3c2b74214b770f511b15216144aac0e337eb | <ide><path>tests/test_pipelines_image_classification.py
<ide> def run_pipeline_test(self, image_classifier, examples):
<ide>
<ide> @require_torch
<ide> def test_small_model_pt(self):
<del> small_model = "lysandre/tiny-vit-random"
<add> small_model = "hf-internal-testing/tiny-random-vit"
<ide> ... | 1 |
PHP | PHP | fix the related test | 49da430987e873f5aa6e9054c7ca94f0edd7b820 | <ide><path>tests/TestCase/Console/Command/Task/TestTaskTest.php
<ide> public static function caseFileNameProvider() {
<ide> */
<ide> public function testTestCaseFileName($type, $class, $expected) {
<ide> $result = $this->Task->testCaseFileName($type, $class);
<del> $expected = ROOT . DS . 'Test/' . $expected;
<add... | 1 |
Javascript | Javascript | fix russian locale for calendar next week | 4aa10549f4dcdba2ec9428acf6418bf1a6bcc5c0 | <ide><path>src/locale/ru.js
<ide> export default moment.defineLocale('ru', {
<ide> sameDay: '[Сегодня в] LT',
<ide> nextDay: '[Завтра в] LT',
<ide> lastDay: '[Вчера в] LT',
<del> nextWeek: function () {
<del> return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
<ad... | 2 |
Java | Java | fix javadoc typo | c7babab2ddfe843a100bd67b63f2353df15ac1a8 | <ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/RuntimeTestWalker.java
<ide> * migrate to {@code ShadowMatch.getVariablesInvolvedInRuntimeTest()}
<ide> * or some similar operation.
<ide> *
<del> * <p>See <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=151593"/>.
<add> * <p>See <a href="htt... | 1 |
Ruby | Ruby | pass args to render's super method | 98ec4ebfe730438024b95bca904fe324740396ad | <ide><path>actionview/lib/action_view/rendering.rb
<ide> def view_renderer
<ide> # Render template to response_body
<ide> # :api: public
<ide> def render(*args, &block)
<del> super
<add> super(*args, &block)
<add>
<ide> options = _normalize_render(*args, &block)
<ide> self.response_bod... | 1 |
Javascript | Javascript | prevent a v8 deopt when profiling | 7a48c900b7d8c97580d62adfa3625a7b7567c998 | <ide><path>packages/react-reconciler/src/ReactFiber.js
<ide> function FiberNode(
<ide> this.alternate = null;
<ide>
<ide> if (enableProfilerTimer) {
<add> // Note: The following is done to avoid a v8 deopt.
<add> //
<add> // It is important to initialize the fields below with doubles.
<add> // Otherwis... | 1 |
Javascript | Javascript | fix typo when rejecting promise in getpage | 652dde48da59141a3d8ad7b0c124ae6b4efd19ac | <ide><path>src/display/api.js
<ide> var WorkerTransport = (function WorkerTransportClosure() {
<ide> getPage: function WorkerTransport_getPage(pageNumber, capability) {
<ide> if (pageNumber <= 0 || pageNumber > this.numPages ||
<ide> (pageNumber|0) !== pageNumber) {
<del> return new Promise.r... | 1 |
Ruby | Ruby | fix rubocop errors | 260fc858dfc538aaa3de3d82e3c5aaaf5301ae3d | <ide><path>Library/Homebrew/extend/os/linux/cleanup.rb
<ide> def use_system_ruby?
<ide> check_ruby_version = HOMEBREW_LIBRARY_PATH/"utils/ruby_check_version_script.rb"
<ide> rubies.uniq.any? do |ruby|
<ide> quiet_system ruby, "--enable-frozen-string-literal", "--disable=gems,did_you_mean,rubyopt",
<... | 1 |
PHP | PHP | extract change column | 32fa8266a8431305d6e57ccdb205ed1704be62cd | <ide><path>src/Illuminate/Database/Schema/Grammars/ChangeColumn.php
<add><?php
<add>
<add>namespace Illuminate\Database\Schema\Grammars;
<add>
<add>use RuntimeException;
<add>use Doctrine\DBAL\Types\Type;
<add>use Illuminate\Support\Fluent;
<add>use Doctrine\DBAL\Schema\Table;
<add>use Doctrine\DBAL\Schema\Column;
<add... | 3 |
Python | Python | pass kwargs correctly | 686040e8fcebde33977eb0891520036dbf10d7b2 | <ide><path>airflow/configuration.py
<ide> def test_mode():
<ide>
<ide>
<ide> def get(section, key, **kwargs):
<del> return conf.get(section, key, kwargs)
<add> return conf.get(section, key, **kwargs)
<ide>
<ide>
<ide> def getboolean(section, key): | 1 |
Ruby | Ruby | fix 1.9 issue | 1e95f019bb0b2f1f37c5897562da691eb72c0f1c | <ide><path>actionpack/lib/action_controller/railties/url_helpers.rb
<ide> module UrlHelpers
<ide> def self.with(router)
<ide> Module.new do
<ide> define_method(:inherited) do |klass|
<del> super
<add> super(klass)
<ide> klass.send(:include, router.named_url_help... | 1 |
Python | Python | remove testsuite package from setup.py | b93ab41ed12c3dd0c37fb7a85f1aa93966b46d77 | <ide><path>setup.py
<ide> def run(self):
<ide> description='A microframework based on Werkzeug, Jinja2 '
<ide> 'and good intentions',
<ide> long_description=__doc__,
<del> packages=['flask', 'flask.ext', 'flask.testsuite'],
<add> packages=['flask', 'flask.ext'],
<ide> include_package_d... | 1 |
Javascript | Javascript | improve vector2 closure performance | 5f2187fbef3960f2111d498adf5e6a8c50404946 | <ide><path>src/math/Vector2.js
<ide> Object.assign( Vector2.prototype, {
<ide>
<ide> clampScalar: function () {
<ide>
<del> var min, max;
<add> var min = new Vector2();
<add> var max = new Vector2();
<ide>
<ide> return function clampScalar( minVal, maxVal ) {
<ide>
<del> if ( min === undefined ) {
<del>
<de... | 1 |
Javascript | Javascript | improve fspromises writefile performance | e1ce7f1194ce81188e080fca0ec6fb80db842c5d | <ide><path>lib/internal/fs/promises.js
<ide> const kIoMaxLength = 2 ** 31 - 1;
<ide>
<ide> const kReadFileBufferLength = 512 * 1024;
<ide> const kReadFileUnknownBufferLength = 64 * 1024;
<del>const kWriteFileMaxChunkSize = 2 ** 14;
<add>const kWriteFileMaxChunkSize = 512 * 1024;
<ide>
<ide> const {
<ide> ArrayProto... | 2 |
Javascript | Javascript | add random attribute to user props | e035a4a1322620c67efd2da7497545a6eae86b4e | <ide><path>loopbackMigration.js
<ide> var users = dbObservable
<ide> user[provider + 'id'] = user[provider];
<ide> user[provider] = null;
<ide> });
<add> user.rand = Math.random();
<ide>
<ide> return user;
<ide> }) | 1 |
Javascript | Javascript | adapt interface of node-haste duplicates | a51e9a0704ecbd1bcfafe9cf87b21270708ba933 | <ide><path>packager/src/ModuleGraph/node-haste/Module.js
<ide> module.exports = class Module {
<ide> constructor(
<ide> path: string,
<ide> moduleCache: ModuleCache,
<del> info: Promise<TransformedFile>,
<add> info: TransformedFile,
<ide> ) {
<del> this.hasteID = info.then(({hasteID}) => hasteID);
... | 5 |
Go | Go | apply load balancer properly | f9442ee314600a13fb99f6b90313395fc3625c53 | <ide><path>libnetwork/osl/namespace_linux.go
<ide> func (n *networkNamespace) ApplyOSTweaks(types []SandboxType) {
<ide> for _, t := range types {
<ide> switch t {
<ide> case SandboxTypeLoadBalancer:
<del> kernel.ApplyOSTweaks(loadBalancerConfig)
<add> n.InvokeFunc(func() { kernel.ApplyOSTweaks(loadBalancerCon... | 1 |
Ruby | Ruby | avoid multiple hash lookups | 06dc88445463513b58ed47ae8b21f853efda6898 | <ide><path>activerecord/lib/active_record/relation/spawn_methods.rb
<ide> def apply_finder_options(options)
<ide>
<ide> options.assert_valid_keys(VALID_FIND_OPTIONS)
<ide>
<del> [:joins, :select, :group, :having, :limit, :offset, :from, :lock, :readonly].each do |finder|
<del> relation = relation.se... | 1 |
PHP | PHP | fix glob problem in migration resolver | 04f21380ca2304a2aa95f8dfcd76675b83d58437 | <ide><path>laravel/cli/tasks/migrate/resolver.php
<ide> protected function migrations($bundle)
<ide> {
<ide> $files = glob(Bundle::path($bundle).'migrations/*_*'.EXT);
<ide>
<add> // When open_basedir is enabled, glob will return false on an
<add> // empty directory, so we will return an empty array in this
<add>... | 1 |
Text | Text | update image url (#484) | af12df9fe8e18834e1c5cd28b4fad04a44c7d57e | <ide><path>README.md
<ide> where {\displaystyle \oplus } \oplus denotes the exclusive disjunction (XOR) op
<ide>
<ide> [caesar]: https://upload.wikimedia.org/wikipedia/commons/4/4a/Caesar_cipher_left_shift_of_3.svg
<ide>
<del>[ROT13-image]: https://en.wikipedia.org/wiki/File:ROT13_table_with_example.svg
<add>[ROT13-... | 1 |
Ruby | Ruby | exclude empty rack | 0d74967ceb15fe954ca722c11de91326d072fa05 | <ide><path>Library/Homebrew/formula.rb
<ide> def self.each
<ide> # @private
<ide> def self.racks
<ide> @racks ||= if HOMEBREW_CELLAR.directory?
<del> HOMEBREW_CELLAR.subdirs.reject(&:symlink?)
<add> HOMEBREW_CELLAR.subdirs.reject do |rack|
<add> rack.symlink? || rack.subdirs.empty?
<add> e... | 1 |
PHP | PHP | allow rlike in conditions | d0f75a03af584710db4094e5561a7f085ff3faa2 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> class DboSource extends DataSource {
<ide> *
<ide> * @var array
<ide> */
<del> protected $_sqlOps = array('like', 'ilike', 'or', 'not', 'in', 'between', 'regexp', 'similar to');
<add> protected $_sqlOps = array('like', 'ilike', 'rlike', 'or', 'not', 'in', 'bet... | 2 |
Java | Java | avoid unnecessary computation of cleaned url | 96a4e1150e608a66998988f5d4903297ef11e977 | <ide><path>spring-core/src/main/java/org/springframework/core/io/UrlResource.java
<ide> /*
<del> * Copyright 2002-2019 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> * you may not use th... | 1 |
Text | Text | fix some formatting | c86d50ed25d5cfdf0a3d083f76fdc76580bf117f | <ide><path>docs/basics/UsageWithReact.md
<ide> render(
<ide>
<ide> ## Next Steps
<ide>
<del>Read the [complete source code for this tutorial](ExampleTodoList.md) to better internalize the knowledge you have gained.
<add>Read the [complete source code for this tutorial](ExampleTodoList.md) to better internalize the k... | 1 |
Javascript | Javascript | reduce flake on multifilecertproject | 42ec3e2ecb00f75249255b60e1dc96eb00776fd4 | <ide><path>cypress/integration/learn/challenges/multifileCertProject.js
<ide> describe('multifileCertProjects', function () {
<ide> cy.preserveSession();
<ide> });
<ide>
<del> it('should show a save code button', function () {
<del> cy.get(selectors.saveCodeBtn);
<del> });
<del>
<del> it('should save to da... | 1 |
Python | Python | add about.py, adapt setup.py | 211913d689943b38a42dd7bd47bd8c5608fe439d | <ide><path>setup.py
<ide> #!/usr/bin/env python
<del>from __future__ import division, print_function
<add>from __future__ import print_function
<ide> import os
<ide> import shutil
<ide> import subprocess
<ide> from distutils.core import Extension, setup
<ide>
<ide>
<del>MAJOR = 0
<del>MINOR = 100
... | 5 |
Text | Text | add angular logo | d61fd5f661ccc7ed13043529f9e94aa82e2feb9e | <ide><path>guide/spanish/angularjs/index.md
<ide> title: AngularJS
<ide> localeTitle: AngularJS
<ide> ---
<ide> ## AngularJS
<add>
<ide>
<ide> AngularJS (versiones 1.x) es un marco de JavaScript de front-end de código abierto. AngularJS extiende HT... | 1 |
Python | Python | fix default tokenizer | ab44630db2b45577d9c7a3478e47ad1f2e2b1e4f | <ide><path>src/transformers/pipelines.py
<ide> def __call__(
<ide> "impl": SummarizationPipeline,
<ide> "tf": TFAutoModelWithLMHead if is_tf_available() else None,
<ide> "pt": AutoModelWithLMHead if is_torch_available() else None,
<del> "default": {
<del> "model": {"pt": "bart-... | 1 |
Javascript | Javascript | fix the typo error | 048b977d8e5cede2259df69fc7c0bbfedd84100d | <ide><path>lib/internal/repl/recoverable.js
<ide> const { tokTypes: tt, Parser: AcornParser } = acorn;
<ide> function isRecoverableError(e, code) {
<ide> let recoverable = false;
<ide>
<del> // Determine if the point of the any error raised is at the end of the input.
<add> // Determine if the point of any error r... | 1 |
Text | Text | add more highlighting to docs | e1ee94ca17835bd6ca933a5634042e7d049d8fc0 | <ide><path>docs/docs/jsx-in-depth.md
<ide> redirect_from:
<ide> Fundamentally, JSX just provides syntactic sugar for the `React.createElement(component, props, ...children)` function. The JSX code:
<ide>
<ide> ```js
<del><MyButton color="blue" shadowSize={2}>Click Me</MyButton>
<add><MyButton color="blue" shadowSize={... | 2 |
Mixed | Ruby | set retry_jitter to 0.0 for upgraded applications | 0ebc720a049743519311818035d5175b288ba41d | <ide><path>activejob/lib/active_job/exceptions.rb
<ide> module Exceptions
<ide> extend ActiveSupport::Concern
<ide>
<ide> included do
<del> class_attribute :retry_jitter, instance_accessor: false, instance_predicate: false, default: 0.15
<add> class_attribute :retry_jitter, instance_accessor: false, ... | 3 |
Text | Text | fix spelling of penryn (#580) | 1455aa3da6335b1eeb284e61171cff524c620fa3 | <ide><path>share/doc/homebrew/Bottles.md
<ide> Bottles will not be used if the user requests it (see above), if the formula req
<ide> ## Bottle Creation
<ide> Bottles are currently created using the [Brew Test Bot](Brew-Test-Bot.md). We will be slowly adding them to all formulae.
<ide>
<del>By default, bottles will be... | 1 |
Javascript | Javascript | improve test for crypto pbkdf2 | aeec6210170daed02fed0e9608e39bfe479b696a | <ide><path>test/parallel/test-crypto-pbkdf2.js
<ide> var crypto = require('crypto');
<ide> //
<ide> function testPBKDF2(password, salt, iterations, keylen, expected) {
<ide> var actual = crypto.pbkdf2Sync(password, salt, iterations, keylen, 'sha256');
<del> assert.equal(actual.toString('latin1'), expected);
<add> a... | 1 |
Text | Text | modify the links for docker container commands | e5e1729698404bd1789b1d4d404fd899cb1ddf08 | <ide><path>docs/reference/commandline/dockerd.md
<ide> membership.
<ide> If you need to access the Docker daemon remotely, you need to enable the `tcp`
<ide> Socket. Beware that the default setup provides un-encrypted and
<ide> un-authenticated direct access to the Docker daemon - and should be secured
<del>either usin... | 6 |
PHP | PHP | update paginatorhelper + tests | a9dceb4dadddb2963b80706ff8ec3236a0a1b431 | <ide><path>lib/Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide> namespace Cake\Test\TestCase\View\Helper;
<add>
<ide> use Cake\Core\Configure;
<ide> use Cake\Network\Request;
<ide> use Cake\Routing\Router;
<id... | 2 |
Go | Go | fix compilation errors after vendoring | c53d7e71046581775a8888706c0fd6baddb81a0b | <ide><path>builder/builder-next/adapters/containerimage/pull.go
<ide> import (
<ide> pkgprogress "github.com/docker/docker/pkg/progress"
<ide> "github.com/docker/docker/reference"
<ide> "github.com/moby/buildkit/cache"
<add> gw "github.com/moby/buildkit/frontend/gateway/client"
<ide> "github.com/moby/buildkit/sessi... | 3 |
Text | Text | add @shigeki and @mscdex to tc | 392e8fd64eb9cd1cd208f07416adc36f1c8189eb | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Nikolai Vavilov** <vvnicholas@gmail.com> ([@seishun](https://github.com/seishun))
<ide> * **Nicu Micleușanu** <micnic90@gmail.com> ([@micnic](https://github.com/micnic))
<ide> * **Aleksey Smolenchuk** <lxe@lxe... | 1 |
Python | Python | update the docstring of numpy.array_api | 21923a5fa71bfadf7dee0bb5b110cc2a5719eaac | <ide><path>numpy/array_api/__init__.py
<ide> """
<ide> A NumPy sub-namespace that conforms to the Python array API standard.
<ide>
<del>This submodule accompanies NEP 47, which proposes its inclusion in NumPy.
<add>This submodule accompanies NEP 47, which proposes its inclusion in NumPy. It
<add>is still considered ex... | 1 |
PHP | PHP | put use in alphabetical order | 2a993a6ee731985b9740e6392702acbe37e08b27 | <ide><path>src/Routing/Router.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Http\ServerRequest;
<del>use Cake\Utility\Inflector;
<ide> use Cake\Routing\Exception\MissingRouteException;
<add>use Cake\Utility\Inflector;
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide>
<ide> /** | 1 |
PHP | PHP | add last dot and put anchors to regex | e72875f51fc3aba1fc29f97df18905ee34827b06 | <ide><path>tests/TestCase/View/ViewTest.php
<ide> public function testPrefixElement()
<ide> public function testElementNonExistent()
<ide> {
<ide> $this->expectException(\Cake\View\Exception\MissingElementException::class);
<del> $this->expectExceptionMessageRegExp('$Element file \"Element[\\|/]n... | 1 |
Text | Text | move one or more tsc members to emeritus | 610696ac543bfad6146491450abac9f8ed8bceec | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Сковорода Никита Андреевич** <<chalkerx@gmail.com>> (he/him)
<ide> * [cjihrig](https://github.com/cjihrig) -
<ide> **Colin Ihrig** <<cjihrig@gmail.com>> (he/him)
<del>* [codebytere](https://github.com/codebytere) -
<... | 1 |
PHP | PHP | add failing test for | 54aef7216f8daca839df4ad6a530bb4a76b3b937 | <ide><path>lib/Cake/Test/Case/Utility/XmlTest.php
<ide> public function testWithModel() {
<ide> $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $expected);
<ide> }
<ide>
<add>/**
<add> * Test ampersand in text elements.
<add> *
<add> * @return void
<add> */
<add> public function testAmpInText... | 1 |
Go | Go | check tmpfs mounts before create anon volume | f464c31668db6fe781b3195f23dc786ee09e91c0 | <ide><path>daemon/create_unix.go
<ide> func (daemon *Daemon) createContainerOSSpecificSettings(container *container.Con
<ide>
<ide> // Skip volumes for which we already have something mounted on that
<ide> // destination because of a --volume-from.
<del> if container.IsDestinationMounted(destination) {
<add> if ... | 3 |
Mixed | Javascript | make rejectunauthorized default to true | 348cc80a3cbf0f4271ed30418c6ed661bdeede7b | <ide><path>doc/api/tls.md
<ide> added: v0.11.8
<ide> -->
<ide>
<ide> * `options` {Object}
<del> * `rejectUnauthorized` {boolean}
<add> * `rejectUnauthorized` {boolean} If not `false`, the server certificate is verified
<add> against the list of supplied CAs. An `'error'` event is emitted if
<add> verification ... | 4 |
Text | Text | update links to docker hub | 69004ff67eed6525d56a92fdc69466c41606151a | <ide><path>docs/admin/logging/fluentd.md
<ide> and [its documents](http://docs.fluentd.org/).
<ide>
<ide> To use this logging driver, start the `fluentd` daemon on a host. We recommend
<ide> that you use [the Fluentd docker
<del>image](https://registry.hub.docker.com/u/fluent/fluentd/). This image is
<add>image](https... | 9 |
Python | Python | add more weekday operator and sensor examples | dd6b2e4e6cb89d9eea2f3db790cb003a2e89aeff | <ide><path>airflow/example_dags/example_branch_day_of_week_operator.py
<ide> from airflow import DAG
<ide> from airflow.operators.empty import EmptyOperator
<ide> from airflow.operators.weekday import BranchDayOfWeekOperator
<add>from airflow.utils.weekday import WeekDay
<ide>
<ide> with DAG(
<ide> dag_id="example... | 3 |
Python | Python | preserve int division | 3042959faf7734d4a42e2cc88552ca3d025b2958 | <ide><path>airflow/www/app.py
<ide> from __future__ import print_function
<add>from __future__ import division
<ide> from builtins import str
<add>from past.utils import old_div
<ide> import copy
<ide> from datetime import datetime, timedelta
<ide> import dateutil.parser
<ide> def landing_times(self):
<ide> ... | 1 |
PHP | PHP | keep the former methods around | 4da6fbd953589822ca804621e38771e77e3128c3 | <ide><path>src/TestSuite/TestCase.php
<ide> public function assertTextNotContains($needle, $haystack, $message = '', $ignore
<ide> $this->assertNotContains($needle, $haystack, $message, $ignoreCase);
<ide> }
<ide>
<add>/**
<add> * Asserts HTML tags.
<add> *
<add> * @param array $expected An array, see above
<add> *... | 1 |
Mixed | Javascript | prefer path over port in connect | 6f1caadb85f70bb902c078d9b7a96e3c4b36b31f | <ide><path>doc/api/net.md
<ide> For TCP connections, available `options` are:
<ide> For [IPC][] connections, available `options` are:
<ide>
<ide> * `path` {string} Required. Path the client should connect to.
<del> See [Identifying paths for IPC connections][].
<add> See [Identifying paths for IPC connections][]. If... | 3 |
Ruby | Ruby | fix class_option description for api generators | 846f35203db958b0730018e23c30d9feaee3aa27 | <ide><path>railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
<ide> class ScaffoldControllerGenerator < NamedBase # :nodoc:
<ide> class_option :orm, banner: "NAME", type: :string, required: true,
<ide> desc: "ORM to generate the controller for"
<ide> ... | 2 |
Text | Text | add example to goroutines | e48814fd15cbecc6803ff6ae89a3d3346d59386b | <ide><path>guide/english/go/goroutines/index.md
<ide> title: Goroutines
<ide> ---
<ide> ## Goroutines
<ide>
<del>This is a stub. [Help our community expand it](https://github.com/freecodecamp/guides/tree/master/src/pages/go/goroutines/index.md).
<add>Goroutines are functions or methods that run concurrently with other... | 1 |
Python | Python | fix benchmark non standard model | aefc0c04294307dfe0eef42b607d4c877e72ed5b | <ide><path>src/transformers/benchmark/benchmark.py
<ide> def _prepare_inference_func(self, model_name: str, batch_size: int, sequence_len
<ide> if self.args.torchscript:
<ide> config.torchscript = True
<ide>
<del> has_model_class_in_config = hasattr(config, "architecture") and len(config.arc... | 2 |
Python | Python | fix model layer for resnet v1. | 89edd1c3687bb7fd364390a6ecfbfeb5b65eaaf4 | <ide><path>official/resnet/resnet_model.py
<ide> def __init__(self, resnet_size, bottleneck, num_classes, num_filters,
<ide> self.block_strides = block_strides
<ide> self.final_size = final_size
<ide> self.dtype = dtype
<add> self.pre_activation = resnet_version == 2
<ide>
<ide> def _custom_dtype_gett... | 1 |
Go | Go | simplify id generation | 141b5fc7d77fbe99fd42fb603688b842a5be34dd | <ide><path>image.go
<ide> package docker
<ide>
<ide> import (
<del> "bytes"
<del> "crypto/sha256"
<add> "crypto/rand"
<add> "encoding/hex"
<ide> "encoding/json"
<ide> "fmt"
<ide> "io"
<ide> "io/ioutil"
<del> "math/rand"
<ide> "os"
<ide> "path"
<ide> "strings"
<ide> func ValidateId(id string) error {
<ide> }
<id... | 1 |
Javascript | Javascript | remove firefox cors workaround | 0ca5426184f6900048588f3d2c2a4a65f9abe248 | <ide><path>src/ng/httpBackend.js
<ide> function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument,
<ide> if (xhr.readyState == 4) {
<ide> var responseHeaders = xhr.getAllResponseHeaders();
<ide>
<del> // TODO(vojta): remove once Firefox 21 gets released.
<del> /... | 2 |
Python | Python | add support for texture folder | 1998ee5fc09bbfffceb15794665e2da31cde0ba6 | <ide><path>utils/exporters/blender/addons/io_three/__init__.py
<ide> bl_info = {
<ide> 'name': "Three.js Format",
<ide> 'author': "repsac, mrdoob, yomotsu, mpk, jpweeks",
<del> 'version': (1, 2, 2),
<add> 'version': (1, 2, 3),
<ide> 'blender': (2, 7, 3),
<ide> 'location': "File > Export",
<ide> ... | 3 |
PHP | PHP | fix broken feature | 9e4a866cfb0420f4ea6cb4e86b1fbd97a4b8c264 | <ide><path>src/Illuminate/Database/Seeder.php
<ide> abstract class Seeder
<ide> protected $command;
<ide>
<ide> /**
<del> * Seed the given connection from the given path.
<add> * Run the given seeder class.
<ide> *
<ide> * @param array|string $class
<ide> * @param bool $silent
<del> ... | 2 |
Python | Python | check basedir for dataset path | a98eec34f7b7df642252733af31f42ec67209071 | <ide><path>keras/datasets/data_utils.py
<ide> def http_error_default(self, url, fp, errcode, errmsg, headers):
<ide>
<ide>
<ide> def get_file(fname, origin, untar=False):
<del> datadir = os.path.expanduser(os.path.join('~', '.keras', 'datasets'))
<del> if not os.access(datadir, os.W_OK):
<del> datadir = ... | 1 |
Python | Python | add type hints for m2m | 2848c9ce42eba9717fc4cf60ebbbeb0f18ee5c9a | <ide><path>src/transformers/models/m2m_100/modeling_m2m_100.py
<ide>
<ide> import math
<ide> import random
<del>from typing import Optional, Tuple, Union
<add>from typing import List, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> from torch import nn
<ide> def __init__(self, config: M2M100Config, embed_tokens... | 1 |
Go | Go | migrate some calls to new client function | 6977f468bbcf43864a5acf6c89c331a9180169e5 | <ide><path>integration-cli/daemon/daemon.go
<ide> func (d *Daemon) WaitRun(contID string) error {
<ide>
<ide> // Info returns the info struct for this daemon
<ide> func (d *Daemon) Info(t require.TestingT) types.Info {
<del> apiclient, err := request.NewClientForHost(d.Sock())
<add> apiclient, err := client.NewClientW... | 13 |
Python | Python | add first draft of spacy+keras integration example | f60cefc048c921e053d6ff8bc23f0f33ecb13187 | <ide><path>examples/deep_learning_keras.py
<add>import numpy
<add>from collections import defaultdict
<add>
<add>import spacy
<add>
<add>
<add>class SentimentAnalyser(object):
<add> @classmethod
<add> def load(cls, path, nlp):
<add> pass
<add>
<add> def __init__(self, model):
<add> self._model = ... | 1 |
PHP | PHP | remove duplicate linebreks | b4c81de41528e65d61e12b5959a6b24921e4c497 | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> public function buildCommand()
<ide> $command = $this->command.' > '.$this->output.' 2>&1 &';
<ide> }
<ide>
<del>
<ide> return $this->user ? 'sudo -u '.$this->user.' '.$command : $command;
<ide> }
<ide>
<ide><path>src/Illuminate/Database/Eloquent/Mo... | 4 |
Python | Python | add migration docs for legacy_tf_layers/pooling.py | a4f3d7d988712ba33bb91079517d77d1f4c616dc | <ide><path>keras/legacy_tf_layers/pooling.py
<ide> class AveragePooling1D(keras_layers.AveragePooling1D, base.Layer):
<ide> `(batch, length, channels)` while `channels_first` corresponds to
<ide> inputs with shape `(batch, channels, length)`.
<ide> name: A string, the name of the layer.
<add>
<add>
<add... | 1 |
Python | Python | fix model by making inputs a dict | d7aa51b4b6e20ded2056c20429cce3f2147591c1 | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def _get_keras_model(params):
<ide> softmax_logits = MetricLayer(params)([softmax_logits, dup_mask_input])
<ide>
<ide> keras_model = tf.keras.Model(
<del> inputs=[
<del> user_input,
<del> item_input,
<del> valid_pt_mask_inpu... | 1 |
Text | Text | add more places docker.service can be at | c0a1b2d6e99d5c6e29a016da39c1313a54c1cb34 | <ide><path>docs/sources/articles/systemd.md
<ide> If the `docker.service` file is set to use an `EnvironmentFile`
<ide> (often pointing to `/etc/sysconfig/docker`) then you can modify the
<ide> referenced file.
<ide>
<del>Or, you may need to edit the `docker.service` file, which can be in `/usr/lib/systemd/system`
<de... | 1 |
Java | Java | introduce delegatingfilterproxy constructors | 948aa4f589c65581a6d294095670cb83b65297da | <ide><path>org.springframework.web/src/main/java/org/springframework/web/filter/DelegatingFilterProxy.java
<ide> import javax.servlet.ServletRequest;
<ide> import javax.servlet.ServletResponse;
<ide>
<add>import org.springframework.context.ConfigurableApplicationContext;
<add>import org.springframework.util.Assert;
<i... | 2 |
Javascript | Javascript | add failing test for http client | 194eeac0d9e607080d4f9bcf74a9470015931eef | <ide><path>test/test-http-client-race.js
<add>include("mjsunit.js");
<add>PORT = 8888;
<add>
<add>var server = new node.http.Server(function (req, res) {
<add> res.sendHeader(200, [["content-type", "text/plain"]]);
<add> res.sendBody("hello world\n");
<add> res.finish();
<add>})
<add>server.listen(PORT);
<add>
<add>... | 1 |
Python | Python | pass the smp setting on to the api | 4c6e2d51ce52fdbbc43c88e6d7674eca5d145134 | <ide><path>libcloud/drivers/elastichosts.py
<ide> def create_node(self, **kwargs):
<ide>
<ide> node_data = {}
<ide> node_data.update({'name': kwargs['name'], 'cpu': size.cpu, 'mem': size.ram, 'ide:0:0': drive_uuid,
<del> 'boot': 'ide:0:0'})
<add> 'boot'... | 1 |
PHP | PHP | fix lint error | 003ee93675acb03b1cb6cee19c624c4e81b9692d | <ide><path>src/Validation/Validation.php
<ide> public static function extension($check, $extensions = ['gif', 'jpeg', 'png', 'j
<ide> {
<ide> if (is_array($check)) {
<ide> $check = isset($check['name']) ? $check['name'] : array_shift($check);
<add>
<ide> return static::extension($che... | 1 |
Mixed | Python | move transformerdecoderlayer to modeling/ | 58e805e093620e04168c2e07c92fc60e1e87d553 | <ide><path>official/nlp/modeling/layers/README.md
<ide> assemble new layers, networks, or models.
<ide> initialization parameters.
<ide>
<ide> * [MultiHeadAttention](attention.py) implements an optionally masked attention
<del> between two tensors, from_tensor and to_tensor, as described in
<add> between q... | 9 |
PHP | PHP | remove duplicate check | e9a82e9dbacf7225386c0885f4727e311eb0e886 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function getOldInput($key = null, $default = null)
<ide> // Input that is flashed to the session can be easily retrieved by the
<ide> // developer, making repopulating old forms and the like much more
<ide> // convenient, since the request's previous input ... | 1 |
Java | Java | update timing module to support web workers | e4766b79797119015caa68f0641645829fbd9591 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimersExecution.java
<ide> package com.facebook.react.modules.core;
<ide>
<ide> import com.facebook.react.bridge.JavaScriptModule;
<add>import com.facebook.react.bridge.SupportsWebWorkers;
<ide> import com.facebook.react.bridge.WritableArray;
<ide... | 3 |
Javascript | Javascript | add file attribute to timings data | 80533f5d6259654892e557dcf3d70e549453cb69 | <ide><path>run-tests.js
<ide> const timings = []
<ide> for (const timing of timings) {
<ide> const timeInSeconds = timing.time / 1000
<ide> junitData += `
<del> <testsuite name="${
<del> timing.file
<del> }" tests="1" errors="0" failures="0" skipped="0" timestamp="${new Date().toJ... | 1 |
Python | Python | use only simple types | 492e5b6591a9e7413478c66a038e1a30b0a59326 | <ide><path>keras/callbacks.py
<ide> import re
<ide> import sys
<ide> import time
<del>from typing import Iterable
<del>from typing import Optional
<del>from typing import Union
<ide>
<ide> import numpy as np
<ide> import tensorflow.compat.v2 as tf
<ide> class BaseLogger(Callback):
<ide> All others will be ... | 1 |
Python | Python | add imports in official/nlp/modeling/__init__.py | 0c53959ef0183737209557236501c94406db8cf9 | <ide><path>official/nlp/modeling/__init__.py
<del>
<add># Copyright 2021 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add>... | 1 |
Text | Text | replace link to the line on github with rdoc link | 4c6481f08fdc45af76b162e313f68b6fc6ef14f4 | <ide><path>guides/source/rails_application_templates.md
<ide> Advanced Usage
<ide> --------------
<ide>
<ide> The application template is evaluated in the context of a
<del>`Rails::Generators::AppGenerator` instance. It uses the `apply` action
<del>provided by
<del>[Thor](https://github.com/erikhuda/thor/blob/master/l... | 1 |
Text | Text | use serial comma in assert docs | 67843f81b5312d12e24b241a3ca1e4425c8cc436 | <ide><path>doc/api/assert.md
<ide> are also recursively evaluated by the following rules.
<ide> objects.
<ide> * [`Symbol`][] properties are not compared.
<ide> * [`WeakMap`][] and [`WeakSet`][] comparison does not rely on their values.
<del>* [`RegExp`][] lastIndex, flags and source are always compared, even if thes... | 1 |
Python | Python | add constraints and regularizers modules | babc0b9dd873de40ba459027a27865c330b4f58b | <ide><path>keras/constraints.py
<add>from __future__ import absolute_import
<add>import theano
<add>import theano.tensor as T
<add>import numpy as np
<add>
<add>def maxnorm(m=2):
<add> def maxnorm_wrap(p):
<add> norms = T.sqrt(T.sum(T.sqr(p), axis=0))
<add> desired = T.clip(norms, 0, m)
<add> p ... | 2 |
Javascript | Javascript | fix incorrect update of the webworker template | a6f0ca9c07a02d48dff86deca46d5926edbb9fc5 | <ide><path>lib/webworker/WebWorkerChunkTemplatePlugin.js
<ide> class WebWorkerChunkTemplatePlugin {
<ide> chunkTemplate.plugin("render", (modules, chunk) => {
<ide> const chunkCallbackName = chunkTemplate.outputOptions.chunkCallbackName || Template.toIdentifier("webpackChunk" + (chunkTemplate.outputOptions.library... | 2 |
Text | Text | change the statement for or operator | 994d0a161eeec2377791716e8e5581f2b812dfd6 | <ide><path>guide/english/logic/truth-tables/index.md
<ide> Here is the truth table for the OR operator
<ide> | T | F | T |
<ide> | T | T | T |
<ide>
<del>Just like above the OR operator operates on two variables, notice that the only time the OR operator evaluates to True is when `x` & `y` negate eachother.
<add... | 1 |
Java | Java | fix invalid characters in source files | 211f0bbf885a3d291f45c4a10db6cc5c0243b14f | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide... | 4 |
Go | Go | use formatter in docker checkpoint ls | f9d2636787e2c1c1bff02f51fded9094236e235a | <ide><path>cli/command/checkpoint/list.go
<ide> package checkpoint
<ide>
<ide> import (
<del> "fmt"
<del> "text/tabwriter"
<del>
<ide> "golang.org/x/net/context"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/cli/command"
<add> "github.com/doc... | 3 |
Ruby | Ruby | add a test for reflection keys as strings, fixes | be8d1a9b57175732f9dafe23f790da82d4b06135 | <ide><path>activerecord/test/cases/reflection_test.rb
<ide> def test_reflection_should_not_raise_error_when_compared_to_other_object
<ide> assert_not_equal Object.new, Firm._reflections['clients']
<ide> end
<ide>
<add> def test_reflections_should_return_keys_as_strings
<add> assert Category.reflections.keys.... | 1 |
Text | Text | add jungminu to collaborators | 5c6aac4d2775c192051bd3b053302d8cc78d0aa0 | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [jbergstroem](https://github.com/jbergstroem) - **Johan Bergström** <bugs@bergstroem.nu>
<ide> * [joaocgreis](https://github.com/joaocgreis) - **João Reis** <reis@janeasystems.com>
<ide> * [julianduque](https://g... | 1 |
Go | Go | remove redundant assignment to ep.network | 7fa78a97c4c54e1a79b65e725302635efe4c59a9 | <ide><path>libnetwork/store.go
<ide> func (n *network) getEndpointsFromStore() ([]*endpoint, error) {
<ide>
<ide> for _, kvo := range kvol {
<ide> ep := kvo.(*endpoint)
<del> ep.network = n
<ide> epl = append(epl, ep)
<ide> }
<ide> } | 1 |
Python | Python | add microversion support | 009d1e8c24d1700da02da57b4122280a6bca34a3 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> class OpenStack_1_1_NodeDriver(OpenStackNodeDriver):
<ide> _networks_url_prefix = "/os-networks"
<ide>
<ide> def __init__(self, *args, **kwargs):
<add> self.ex_force_microversion = str(kwargs.pop("ex_force_microversion", None))
<ide> self._e... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.