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 |
|---|---|---|---|---|---|
PHP | PHP | add standalone paginator class | 8a6e88983b07d1ef11191e959c540abaf07b5d53 | <ide><path>src/Controller/Component/PaginatorComponent.php
<ide> namespace Cake\Controller\Component;
<ide>
<ide> use Cake\Controller\Component;
<del>use Cake\Datasource\QueryInterface;
<del>use Cake\Datasource\RepositoryInterface;
<add>use Cake\Controller\ComponentRegistry;
<add>use Cake\Core\InstanceConfigTrait;
<id... | 2 |
Text | Text | remove beta label from netlify plugins | 6ca00bfe312c8d3fc5c20d25a9cd8d2741a29332 | <ide><path>errors/no-cache.md
<ide> cache:
<ide>
<ide> #### Netlify CI
<ide>
<del>Use [Netlify Plugins (beta)](https://www.netlify.com/build/plugins-beta/) with [`netlify-plugin-cache-nextjs`](https://www.npmjs.com/package/netlify-plugin-cache-nextjs).
<add>Use [Netlify Plugins](https://www.netlify.com/products/build... | 1 |
Ruby | Ruby | update to_sql.rb. slightly performance improment | 47d89b18aef0125179386274c4445b90f66fa3c9 | <ide><path>lib/arel/visitors/to_sql.rb
<ide> def visit_Arel_Nodes_Values o, collector
<ide> collector << quote(value, attr && column_for(attr)).to_s
<ide> end
<ide> unless i == len
<del> collector << ', '
<add> collector << COMMA
<ide> end
<ide> }
... | 1 |
PHP | PHP | fix breaking change | 969f1014ec07efba803f887a33fde29e305c9cb1 | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function via($notifiable)
<ide> */
<ide> public function toMail($notifiable)
<ide> {
<del> $resetUrl = $this->resetUrl($notifiable);
<del>
<ide> if (static::$toMailCallback) {
<del> return call_user_func(s... | 1 |
PHP | PHP | fix overwrite() not replacing longer content | 938fba08c9135d2e7974a07e2c77dc9652e826e1 | <ide><path>src/Console/ConsoleIo.php
<ide> public function overwrite($message, $newlines = 1, $size = null)
<ide> if ($newlines) {
<ide> $this->out($this->nl($newlines), 0);
<ide> }
<add>
<add> // Store length of content + fill so if the new content
<add> // is shorter than the... | 2 |
Go | Go | increase coverage of pkg/idtools | 00c0ee885c671942f9bc751c80cbc45b7f6404f3 | <ide><path>pkg/idtools/idtools_unix_test.go
<ide> import (
<ide> "fmt"
<ide> "io/ioutil"
<ide> "os"
<add> "os/user"
<ide> "path/filepath"
<ide> "testing"
<ide>
<add> "github.com/gotestyourself/gotestyourself/skip"
<add> "github.com/stretchr/testify/assert"
<ide> "github.com/stretchr/testify/require"
<ide> "gola... | 1 |
Javascript | Javascript | remove obsolete encoding check | 751c92d9728da6f6f86e443783a61253791cfc2f | <ide><path>lib/internal/crypto/util.js
<ide> function getDefaultEncoding() {
<ide> // This is here because many functions accepted binary strings without
<ide> // any explicit encoding in older versions of node, and we don't want
<ide> // to break them unnecessarily.
<del>function toBuf(str, encoding) {
<del> if (type... | 1 |
PHP | PHP | support custom urls for aws storage | 7a322477934115b86dbd73953d15e61a929246f9 | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> public function url($path)
<ide> */
<ide> protected function getAwsUrl($adapter, $path)
<ide> {
<add> $config = $this->driver->getConfig();
<add>
<add> // If an explicit base URL has been set on the disk configuration then we wi... | 1 |
Ruby | Ruby | add a new constructor that runs load hooks | 8121eefc222fbd8979ab70d89725a2e330f5a9b2 | <ide><path>railties/lib/rails/application.rb
<ide> def instance
<ide> super.run_load_hooks!
<ide> end
<ide>
<add> def create(initial_variable_values = {}, &block)
<add> new(initial_variable_values, &block).run_load_hooks!
<add> end
<add>
<ide> # Makes the +new+ method public.
<ide>... | 2 |
Ruby | Ruby | remove explicit return | 1b531b7ee2054beadb23853d79b15d588b9ffd88 | <ide><path>activerecord/lib/active_record/associations/has_many_association.rb
<ide> def count_records
<ide> count = [ @reflection.options[:limit], count ].min
<ide> end
<ide>
<del> return count
<add> count
<ide> end
<ide>
<ide> def has_cached_counter? | 1 |
Go | Go | send error without headers when using chunks | fe0c0c208c0e816419b668a6fd6567520698c2d2 | <ide><path>api.go
<ide> func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
<ide> return err
<ide> }
<ide>
<del> file, _, err := r.FormFile("Dockerfile")
<add> dockerfile, _, err := r.FormFile("Dockerfile")
<ide> if err != nil {
<ide> return err
<ide> }
<ide> func postBuild(srv *Ser... | 1 |
Ruby | Ruby | simplify select_one method | 19291bff34ce8e36117f07e6e1d546d8ee47529f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def select_all(arel, name = nil, binds = [])
<ide> # Returns a record hash with the column names as keys and column values
<ide> # as values.
<ide> def select_one(arel, name = nil, binds = [])
<del> ... | 1 |
Ruby | Ruby | deduplicate multiple values when assigning | 29874cc4e220edadfdf50ba93db57d2df396e395 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def select(*fields)
<ide> end
<ide>
<ide> def _select!(*fields) # :nodoc:
<del> self.select_values += fields
<add> self.select_values |= fields
<ide> self
<ide> end
<ide>
<ide> def order(*args)
<ide> # Same as #o... | 1 |
Javascript | Javascript | unify another duplicated test | 93ae5ab1c7055edc455562cbab15cd7e8418612e | <ide><path>packages/ember-glimmer/tests/integration/components/attrs-lookup-test.js
<ide> moduleFor('Components test: attrs lookup', class extends RenderingTest {
<ide> assert.equal(instance.get('woot'), 'yes', 'component found attr after reset');
<ide> }
<ide>
<del> // HTMLBars runs `didReceiveAttrs` on `reren... | 1 |
Javascript | Javascript | improve assertionerror in case of "errors" | 2e8217c64e7bca1e982c82565faa7190cf01c355 | <ide><path>lib/internal/errors.js
<ide> class AssertionError extends Error {
<ide> if (typeof options !== 'object' || options === null) {
<ide> throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
<ide> }
<del> if (options.message) {
<del> super(options.message);
<add> var ... | 2 |
Ruby | Ruby | reduce number of strings a bit | 3c21237c37fed9d726bcf2816bf1adc4635f4956 | <ide><path>actionpack/lib/action_controller/metal/mime_responds.rb
<ide> def respond_to(*mimes, &block)
<ide> # 2. <tt>:action</tt> - overwrites the default render action used after an
<ide> # unsuccessful html +post+ request.
<ide> def respond_with(*resources, &block)
<del> raise "In order to use r... | 4 |
Ruby | Ruby | pass section to the constructor | 87f29857f0d5a8c862ed90b1740e192d5312c0db | <ide><path>Library/Homebrew/cask/artifact/manpage.rb
<ide> module Cask
<ide> module Artifact
<ide> class Manpage < Symlinked
<add> attr_reader :section
<add>
<ide> def self.from_args(cask, source)
<del> section = source.split(".").last
<add> section = source.to_s[/\.([1-8]|n|l)$/, 1]
<ide... | 2 |
Python | Python | use ast.literal_eval in safe_eval | 727655193aa9b4d4068650a3f8a9b49a6a2e0cb4 | <ide><path>numpy/lib/utils.py
<ide> class SafeEval(object):
<ide> This includes strings with lists, dicts and tuples using the abstract
<ide> syntax tree created by ``compiler.parse``.
<ide>
<del> For an example of usage, see `safe_eval`.
<del>
<ide> See Also
<ide> --------
<ide> safe_eval
<ide>... | 1 |
Ruby | Ruby | avoid string allocations in backtracecleaner | 9a959a0c454448353d2d9c00511a353f874d8d9d | <ide><path>railties/lib/rails/backtrace_cleaner.rb
<ide>
<ide> module Rails
<ide> class BacktraceCleaner < ActiveSupport::BacktraceCleaner
<del> APP_DIRS_PATTERN = /^\/?(app|config|lib|test|\(\w*\))/
<add> APP_DIRS_PATTERN = /\A\/?(?:app|config|lib|test|\(\w*\))/
<ide> RENDER_TEMPLATE_PATTERN = /:in `.*_\w... | 1 |
Javascript | Javascript | exclude watch test cases | 8ddcfb59e5a9a1a301fc8c9a5abe354bfa2d4885 | <ide><path>test/RemoveFiles.test.js
<ide> const createSingleCompiler = () => {
<ide> };
<ide>
<ide> describe("RemovedFiles", () => {
<add> if (process.env.NO_WATCH_TESTS) {
<add> it.skip("watch tests excluded", () => {});
<add> return;
<add> }
<add>
<ide> jest.setTimeout(20000);
<ide>
<ide> function cleanup() { | 1 |
Ruby | Ruby | remove a redundant test assertion | e49b7dea48e3c5011c8a5cd0256e96251e5798f0 | <ide><path>activerecord/test/cases/associations/eager_test.rb
<ide> def test_eager_loading_with_conditions_on_joined_table_preloads
<ide> assert_equal [posts(:welcome)], posts
<ide> assert_equal authors(:david), assert_no_queries { posts[0].author }
<ide>
<del> posts = assert_queries(2) do
<del> Post.a... | 1 |
Ruby | Ruby | expose inreplace as a class method | 4fd63dc4f8670df9b0ded98eb9a30f004069e4b8 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> EOS
<ide>
<ide> module Homebrew extend self
<del> class << self
<del> include Utils::Inreplace
<del> end
<del>
<ide> def keg_contains string, keg
<ide> if not ARGV.homebrew_developer?
<ide> return quiet_system 'fgrep', '--recursive', '--quiet', '--max-co... | 2 |
Text | Text | move upstream information to onboarding doc | dce6d53e6b0c8dfc72eaaf096f7a2ebed775e5b7 | <ide><path>doc/onboarding-extras.md
<ide> need to be attached anymore, as only important bugfixes will be included.
<ide> * Architecture labels
<ide> * `arm`, `mips`, `s390`, `ppc`
<ide> * No x86{_64}, since that is the implied default
<del>
<del>## Updating Node.js from Upstream
<del>
<del>* `git remote add upstre... | 2 |
Text | Text | update abort signal in fs promise api example | ceae1b47b771911718d87ffab0f03622634aae25 | <ide><path>doc/api/fs.md
<ide> import { readFile } from 'fs/promises';
<ide>
<ide> try {
<ide> const controller = new AbortController();
<del> const signal = controller.signal;
<del> readFile(fileName, { signal });
<add> const { signal } = controller;
<add> const promise = readFile(fileName, { signal });
<ide>
... | 1 |
Python | Python | fix failing test | 1c7585a5639970837a3e37b5c87ac8fe0f2ae212 | <ide><path>tests/auto/test_tasks.py
<ide> def test_vector_clf(self):
<ide> model.add(Dense(y_train.shape[-1]))
<ide> model.add(Activation('softmax'))
<ide> model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
<del> history = model.fit(X_train, y_train, nb_epoch=12, batch_si... | 1 |
Go | Go | handle escapes without swallowing all of them | 2dac82eb82b469f94ef26a153d2679663b048ad3 | <ide><path>builder/support.go
<ide> func (b *Builder) replaceEnv(str string) string {
<ide> continue
<ide> }
<ide>
<add> prefix := match[:idx]
<ide> stripped := match[idx+2:]
<del> str = strings.Replace(str, match, "$"+stripped, -1)
<add> str = strings.Replace(str, match, prefix+"$"+stripped, -1)
<ide>... | 2 |
Text | Text | ignore domains option when loader is set | d33d1dd00a6a7c65ca7158b83c787902afcac237 | <ide><path>docs/basic-features/image-optimization.md
<ide> In addition to [using properties](/docs/api-reference/next/image.md) available t
<ide> ### Domains
<ide>
<ide> To enable Image Optimization for images hosted on an external website, use an absolute url for the Image `src` and specify which
<del>`domains` are a... | 1 |
Javascript | Javascript | fix modal auto-submitting | 2186f360678bbc5ee6f73e8d4d379dce10402421 | <ide><path>client/commonFramework.js
<ide> var testSuccess = function() {
<ide> function ctrlEnterClickHandler(e) {
<ide> // ctrl + enter
<ide> if (e.ctrlKey && e.keyCode === 13) {
<add> $('#complete-courseware-dialog').off('keydown', ctrlEnterClickHandler);
<ide> $('#submit-challenge').click();
<ide> }
<i... | 1 |
PHP | PHP | handle optgroups with integer values better | 3d6eb08e0c34477661a94eebf49b576ea488aa6e | <ide><path>src/View/Widget/SelectBoxWidget.php
<ide> protected function _renderOptions($options, $disabled, $selected, $escape)
<ide> // Option groups
<ide> $arrayVal = (is_array($val) || $val instanceof Traversable);
<ide> if ((!is_int($key) && $arrayVal) ||
<del> (is... | 2 |
Javascript | Javascript | fix code comment at `ember.textfield` | ef48e0fbcad620406bd5201cc6381332ff985ec8 | <ide><path>packages/ember-handlebars/lib/controls/text_field.js
<ide> Ember.TextField = Ember.View.extend(Ember.TextSupport,
<ide> * `enter`: the user pressed enter
<ide> * `keypress`: the user pressed a key
<ide>
<del> @property on
<add> @property onEvent
<ide> @type String
<ide> @default enter
... | 1 |
Python | Python | add decode function to base16.py | 6fcefc04535357776124806f0fac40c005b35d1a | <ide><path>ciphers/base16.py
<ide> def encode_to_b16(inp: str) -> bytes:
<ide> """
<ide> Encodes a given utf-8 string into base-16.
<add>
<ide> >>> encode_to_b16('Hello World!')
<ide> b'48656C6C6F20576F726C6421'
<ide> >>> encode_to_b16('HELLO WORLD!')
<ide> b'48454C4C4F20574F524C4421'
<ide> ... | 1 |
Java | Java | allow registration of rsocket metadata extractors | 848804a22713e36b6198c3bed2f3d94827e4ee70 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultMetadataExtractor.java
<ide> * @author Rossen Stoyanchev
<ide> * @since 5.2
<ide> */
<del>public class DefaultMetadataExtractor implements MetadataExtractor {
<add>public class DefaultMetadataExtractor implements MetadataExtractor... | 6 |
Javascript | Javascript | render error as errorhtml | 8e55adf4ecf35d1edb105b2817a42d144645d46c | <ide><path>server/render.js
<ide> async function doRender (req, res, pathname, query, {
<ide> let html
<ide> let head
<ide> let errorHtml = ''
<add>
<ide> try {
<del> html = render(app)
<add> if (err && dev) {
<add> errorHtml = render(createElement(ErrorDebug, { error: err }))
<add> ... | 1 |
Javascript | Javascript | add missing semicolon | fc65d29dda72776d960529bab3fe6a547fb77615 | <ide><path>lib/DelegatedModule.js
<ide> class DelegatedModule extends Module {
<ide> str += `[${JSON.stringify(this.request)}]`;
<ide> break;
<ide> }
<add>
<add> str += ";";
<ide> }
<ide>
<ide> if(this.useSourceMap) { | 1 |
Python | Python | improve tensorboard callback tests | 5656e39f0fb9fea23376a297175fd4cfa58b36ef | <ide><path>keras/callbacks.py
<ide> def set_model(self, model):
<ide> self.sess = K.get_session()
<ide> if self.histogram_freq and self.merged is None:
<ide> for layer in self.model.layers:
<del>
<del> for weight in layer.trainable_weights:
<add> for weight ... | 2 |
Javascript | Javascript | add support for {{input type="checkbox"}} | cb648d37cce2efeda180e08b374a0d2eaadd226c | <ide><path>packages/ember-handlebars/lib/controls.js
<ide> Ember.Handlebars.registerHelper('input', function(options) {
<ide>
<ide> normalizeHash(hash, types);
<ide>
<del> return Ember.Handlebars.helpers.view.call(this, Ember.TextField, options);
<add> if (inputType === 'checkbox') {
<add> return Ember.Handleb... | 2 |
PHP | PHP | add validation guess for not null + text types | 70bb839de9fde351cb2a1379fe8b89788204fe36 | <ide><path>lib/Cake/Console/Command/Task/ModelTask.php
<ide> public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
<ide> $guess = $methods['uuid'];
<ide> } elseif ($metaData['type'] == 'string') {
<ide> $guess = $methods['notempty'];
<add> } elseif ($metaData['type'] == 'text') {... | 1 |
Ruby | Ruby | restore some things to failed install config dump | a8c05c9772636b334aa2421ac830a0212d919c74 | <ide><path>Library/Homebrew/cmd/--config.rb
<ide> def describe_clt
<ide> @describe_clt ||= if MacOS.clt_installed? then MacOS.clt_version else 'N/A' end
<ide> end
<ide>
<del> def sha
<del> sha = HOMEBREW_REPOSITORY.cd do
<add> def head
<add> head = HOMEBREW_REPOSITORY.cd do
<ide> `git rev-parse --v... | 1 |
Ruby | Ruby | do real transformations in a safe way | 76395e3c1b997da7b3853b1b3e94b712b1a29ecf | <ide><path>lib/active_storage/variant.rb
<ide> require "active_storage/blob"
<add>require "active_support/core_ext/object/inclusion"
<ide> require "mini_magick"
<ide>
<ide> class ActiveStorage::Variant
<ide> class_attribute :verifier
<ide>
<add> ALLOWED_TRANSFORMATIONS = %i(
<add> resize rotate format flip fill... | 1 |
Javascript | Javascript | move work to compile fn | bdd853cb83839eef9901af164293611eaa23ee2c | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide> priority: 1000,
<ide> terminal: true,
<ide> $$tlb: true,
<del> link: function($scope, $element, $attr, ctrl, $transclude){
<del> var expression = $attr.ngRepeat;
<del> ... | 1 |
Javascript | Javascript | add source for three.extend method | baa928e5814f9170346d14088e711a26d1376b68 | <ide><path>src/Three.js
<ide> String.prototype.trim = String.prototype.trim || function () {
<ide>
<ide> };
<ide>
<del>
<add>// based on http://stackoverflow.com/a/12317051
<ide> THREE.extend = function ( target, other ) {
<ide>
<ide> target = target || {};
<ide> THREE.extend = function ( target, other ) {
<ide> }... | 1 |
Go | Go | use args in cobra.command to validate args | fc5a4514fbe1b402d2a0bff170486ac3de4bf8cc | <ide><path>api/client/volume/cmd.go
<ide> func NewVolumeCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> cmd := &cobra.Command{
<ide> Use: "volume",
<ide> Short: "Manage Docker volumes",
<del> // TODO: remove once cobra is patched to handle this
<del> RunE: func(cmd *cobra.Command, args []string) er... | 7 |
Ruby | Ruby | remove some mocha stubs | 273054d6e1dbc9ee610a28f6349e48e76324fde1 | <ide><path>activesupport/test/time_zone_test.rb
<ide> def test_from_duration_to_map
<ide>
<ide> def test_now
<ide> with_env_tz 'US/Eastern' do
<del> Time.stubs(:now).returns(Time.local(2000))
<del> zone = ActiveSupport::TimeZone['Eastern Time (US & Canada)']
<add> zone = ActiveSupport::TimeZone['E... | 1 |
PHP | PHP | improve api docs for a few table methods | 83f0c80dca6f12d18e87beabce391852c279a7d2 | <ide><path>src/ORM/Table.php
<ide> public function removeBehavior($name)
<ide> /**
<ide> * Returns the behavior registry for this table.
<ide> *
<del> * @return \Cake\ORM\BehaviorRegistry
<add> * @return \Cake\ORM\BehaviorRegistry The BehaviorRegistry instance.
<ide> */
<ide> public funct... | 1 |
Python | Python | remove trailing whitespace | 2012acb11b4666ba45b5f30e9d1c864cef32792d | <ide><path>libcloud/drivers/elastichosts.py
<ide> def success(self):
<ide> raise InvalidCredsError()
<ide>
<ide> return self.status >= 200 and self.status <= 299
<del>
<add>
<ide> def parse_body(self):
<ide> if not self.body:
<ide> return self.body
<del>
<add>
<i... | 1 |
Javascript | Javascript | upgrade release dependencies | 967af73203378db0cc3637adee85c442e246e05a | <ide><path>build/release.js
<ide> module.exports = function( Release ) {
<ide> };
<ide>
<ide> module.exports.dependencies = [
<del> "archiver@1.3.0",
<del> "shelljs@0.7.7",
<del> "inquirer@7.0.4",
<del> "npm@4.4.1"
<add> "archiver@5.2.0",
<add> "shelljs@0.8.4",
<add> "inquirer@8.0.0"
<ide> ]; | 1 |
Javascript | Javascript | fix typo in invariant message | 9c353b5ab060be9392a7aaf437bba4ffc56d78ca | <ide><path>Libraries/ActionSheetIOS/ActionSheetIOS.js
<ide> const ActionSheetIOS = {
<ide> 'Options must be a valid object',
<ide> );
<ide> invariant(typeof callback === 'function', 'Must provide a valid callback');
<del> invariant(RCTActionSheetManager, "ActionSheetManager does't exist");
<add> inv... | 1 |
Python | Python | remove tag from da/sv tokenizer exceptions | 07639dd6ac9db6f874d1f01ccb5e37a910924feb | <ide><path>spacy/lang/da/tokenizer_exceptions.py
<ide>
<ide> from __future__ import unicode_literals
<ide>
<del>from ...symbols import ORTH, LEMMA, NORM, TAG, PUNCT
<add>from ...symbols import ORTH, LEMMA, NORM
<ide>
<ide>
<ide> _exc = {}
<ide> {ORTH: "Ons.", LEMMA: "onsdag"},
<ide> {ORTH: "Fre.", LEMMA: "f... | 2 |
Text | Text | fix code block in `readme.md` | b521160c92783b9d2a76d6bc3fa30df10d7251ac | <ide><path>README.md
<ide> Install using `pip`...
<ide> pip install djangorestframework
<ide>
<ide> Add `'rest_framework'` to your `INSTALLED_APPS` setting.
<del>
<del> INSTALLED_APPS = [
<del> ...
<del> 'rest_framework',
<del> ]
<add>```python
<add>INSTALLED_APPS = [
<add> ...
<add> 'res... | 1 |
Javascript | Javascript | fix suspense fixture | d42ed600266302034085551a465ee479e4ade9d1 | <ide><path>fixtures/unstable-async/suspense/src/cache.js
<del>import {createCache} from 'react-cache';
<del>
<del>export let cache;
<del>function initCache() {
<del> cache = createCache(initCache);
<del>}
<del>initCache();
<ide><path>fixtures/unstable-async/suspense/src/components/ContributorListPage.js
<ide> import R... | 4 |
Javascript | Javascript | add strict equalities in src/shared/util.js | ccd71e0a94971dbb175f34e879d0998edcf2f2b9 | <ide><path>src/shared/util.js
<ide>
<ide> var globalScope = (typeof window === 'undefined') ? this : window;
<ide>
<del>var isWorker = (typeof window == 'undefined');
<add>var isWorker = (typeof window === 'undefined');
<ide>
<ide> var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
<ide>
<ide> function combineU... | 1 |
Text | Text | add html to example readme | 03b4dc1a1c356fdff80c43ae630a8a0f24f31871 | <ide><path>examples/module-federation/README.md
<ide> const App = () => (
<ide> export default App;
<ide> ```
<ide>
<add># index.html
<add>
<add>```html
<add><html>
<add> <head>
<add> <style>
<add> .spinner {
<add> font-size: 10px;
<add> margin: 50px auto;
<add> text-indent: -9999em;
<add> width: 11em;
... | 2 |
Ruby | Ruby | fix inappropriate linking of info files | bc7469c819e18afa07f4c719d895e3c3c80f8c3f | <ide><path>Library/Homebrew/keg.rb
<ide> def link
<ide> link_dir('share') do |path|
<ide> case path.to_s
<ide> when 'locale/locale.alias' then :skip_file
<del> when INFOFILE_RX then :info if ENV['HOMEBREW_KEEP_INFO']
<add> when INFOFILE_RX then ENV['HOMEBREW_KEEP_INFO'] ? :info : :skip_file
<i... | 1 |
PHP | PHP | add cloud() method | 6e759658a78a5461e446c2efd047a175119b6365 | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> public function disk($name = null)
<ide> return $this->disks[$name] = $this->get($name);
<ide> }
<ide>
<add> /**
<add> * Get a default cloud filesystem instance.
<add> *
<add> * @return \Illuminate\Contracts\Filesystem\Filesyst... | 1 |
Text | Text | update documentation #any? #many? | 5d985f2ed15b91ba30298a67c68583d8c0165293 | <ide><path>guides/source/active_record_querying.md
<ide> You can also use `any?` and `many?` to check for existence on a model or relatio
<ide>
<ide> ```ruby
<ide> # via a model
<del>Order.any? # => SELECT 1 AS one FROM orders
<del>Order.many? # => SELECT COUNT(*) FROM orders
<add>Order.any?
<add># => SELECT 1 FROM... | 1 |
Text | Text | simplify some steps of the overlay network guide | db5ded0dfc28c71276acf8500fabe3c64c15fbe1 | <ide><path>docs/userguide/networking/get-started-overlay.md
<ide> key-value stores. This example uses Consul.
<ide> instance using the [consul image from Docker
<ide> Hub](https://hub.docker.com/r/progrium/consul/). You'll do this in the next step.
<ide>
<del>3. Start a `progrium/consul` container running on the `mh... | 1 |
Ruby | Ruby | fix exit logic | d6d857c154fb9cdb7dc1f81a1cc8a2302b9a3996 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade
<ide> opoo "#{f.full_specified_name} #{version} already installed"
<ide> end
<ide> end
<del> exit
<add> return if outdated.empty?
<ide> end
<ide>
<ide> pinned = outdated.select(&:pinned?) | 1 |
Text | Text | add example of using filter with cctest | b56f65e28c02249359f4f8b682522c7d8d7c5eff | <ide><path>doc/guides/writing-tests.md
<ide> The test can be executed by running the `cctest` target:
<ide> $ make cctest
<ide> ```
<ide>
<add>A filter can be applied to run single/multiple test cases:
<add>```console
<add>$ make cctest GTEST_FILTER=EnvironmentTest.AtExitWithArgument
<add>```
<add>
<add>`cctest` can a... | 1 |
PHP | PHP | remove unneeded alias | 5d409fe0d5f724ba110b6ec15c0e22610581a4a3 | <ide><path>app/config/app.php
<ide> 'DB' => 'Illuminate\Support\Facades\DB',
<ide> 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
<ide> 'Event' => 'Illuminate\Support\Facades\Event',
<del> 'EventSubscriber' => 'Illuminate\Events\Subscriber',
<ide> 'File' => 'Illumi... | 1 |
Javascript | Javascript | add unit tests for aborted life-cycles | 37ca3874af3e94f6d108d31779adaee742cb4684 | <ide><path>src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
<ide> describe('ReactIncremental', () => {
<ide> it('can call sCU while resuming a partly mounted component', () => {
<ide> var ops = [];
<ide>
<add> var instances = new Set();
<add>
<ide> class Bar extends React.Component {
<ide> ... | 1 |
Javascript | Javascript | follow ups to bundler configs | fc91508c1ffd7a00c261a567536b169989e5fab4 | <ide><path>packages/react-client/src/ReactFlightClient.js
<ide>
<ide> import {REACT_ELEMENT_TYPE} from 'shared/ReactSymbols';
<ide>
<del>// import type {ModuleMetaData} from './ReactFlightClientHostConfig';
<add>// import type {
<add>// ModuleReference,
<add>// ModuleMetaData,
<add>// } from './ReactFlightClientH... | 7 |
Text | Text | update changelog with release notes for 1.7.6 | c7671edbfdcdc161507fb57cff12523f4400b5ac | <ide><path>CHANGELOG.md
<add><a name="1.7.6"></a>
<add># 1.7.6 gravity-manipulation (2019-01-17)
<add>
<add>## Bug Fixes
<add>- **$compile:** fix ng-prop-* with undefined values
<add> ([772440](https://github.com/angular/angular.js/commit/772440cdaf9a9bfa40de1675e20a5f0e356089ed),
<add> [#16797](https://github.com/an... | 1 |
Java | Java | use contentnegotiationmanager for static resources | f1622569065374352b44a8e8dee9a16bbacef5a7 | <ide><path>spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManager.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * yo... | 6 |
Javascript | Javascript | add tests for eventemitter. | 871bc4e06b4cede9060972423c06e71d0d3ade22 | <ide><path>lib/EventEmitter.js
<ide> export default class EventEmitter {
<ide> this.listeners[event] = new Set()
<ide> }
<ide>
<add> if (this.listeners[event].has(cb)) {
<add> throw new Error(`The listener already exising in event: ${event}`)
<add> }
<add>
<ide> this.listeners[event].add(cb)
<... | 2 |
Python | Python | make training work with directories | 2efdbc08ffecba1555fea5b7af6444eed968d009 | <ide><path>spacy/cli/train.py
<ide> def evaluate(Language, gold_tuples, output_path):
<ide> def check_dirs(output_path, train_path, dev_path):
<ide> if not output_path.exists():
<ide> util.sys_exit(output_path.as_posix(), title="Output directory not found")
<del> if not train_path.exists() or not train_p... | 1 |
Python | Python | fix typo kill( -> os.kill( | 3ec624467e27c9c779fa399c313a1cdbf122eb13 | <ide><path>celery/pool.py
<ide>
<ide> def pid_is_dead(pid):
<ide> try:
<del> return kill(pid, 0)
<add> return os.kill(pid, 0)
<ide> except OSError, err:
<ide> if err.errno == errno.ESRCH:
<ide> return True # No such process.
<ide> def is_dead(self, process):
<ide> ... | 1 |
Ruby | Ruby | require xcode 13.1 on monterey | 5d670728f153c16583c08b43c18e2c9547eed084 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module Xcode
<ide> def latest_version(macos: MacOS.version)
<ide> latest_stable = "13.0"
<ide> case macos
<del> when "12" then "13.0"
<add> when "12" then "13.1"
<ide> when "11" then latest_stable
<ide> when "10.15" th... | 1 |
PHP | PHP | implement console command for clearing the cache | 13a27926dacc4c8683ead862de3fc31d8c7e1c78 | <ide><path>src/Illuminate/Cache/CommandsServiceProvider.php
<add><?php namespace Illuminate\Cache;
<add>
<add>use Illuminate\Support\ServiceProvider;
<add>
<add>class CommandsServiceProvider extends ServiceProvider {
<add>
<add> /**
<add> * Indicates if loading of the provider is deferred.
<add> *
<add> * @var bool
... | 2 |
Python | Python | replace xrange => range | 5fa4857530bcf5c0af7140109117449b54c000dd | <ide><path>examples/mnist_net2net.py
<ide> '''
<ide>
<ide> from __future__ import print_function
<del>from six.moves import xrange
<ide> import numpy as np
<ide> import keras
<ide> from keras.models import Sequential
<ide> def deeper2net_conv2d(teacher_w):
<ide> '''
<ide> filters, num_channel, kh, kw = teacher... | 1 |
Go | Go | add support for host port publishmode in services | 14ac9f60d0174256e0713701ebffaf5ca827da71 | <ide><path>api/types/swarm/network.go
<ide> type PortConfig struct {
<ide> TargetPort uint32 `json:",omitempty"`
<ide> // PublishedPort is the port on the swarm hosts
<ide> PublishedPort uint32 `json:",omitempty"`
<add> // PublishMode is the mode in which port is published
<add> PublishMode PortConfigPublishMode `js... | 15 |
Javascript | Javascript | prevent next tick when force.stop is called | 4f37a4869b54063b3376a10be7e696b25dbfa6c2 | <ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide> }
<ide>
<ide> function tick() {
<add> // simulated annealing, basically
<add> if ((alpha *= .99) < .005) return true;
<add>
<ide> var n = nodes.length,
<ide> m = links.length,
<ide> q,
<ide> d3.layout.force = function() {
... | 3 |
Go | Go | resolve race conditions in attach api call | 84d6240cfe7cc66a7d3f6ac78ea6faad0e3108b9 | <ide><path>container/container.go
<ide> func (container *Container) GetExecIDs() []string {
<ide> return container.ExecCommands.List()
<ide> }
<ide>
<del>// Attach connects to the container's stdio to the client streams
<del>func (container *Container) Attach(cfg *stream.AttachConfig) chan error {
<del> ctx := contai... | 4 |
Go | Go | simplify reading of resolv.conf | 0f0fce5dccee23a7de80db9a47edb23d498b4f6e | <ide><path>libnetwork/netutils/utils_linux.go
<ide> package netutils
<ide>
<ide> import (
<del> "fmt"
<ide> "net"
<add> "os"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/libnetwork/ipamutils"
<ide> import (
<ide> "github.com/vishvananda/netlink"
<ide> )
<ide>
<del>var (
<del> networkGetRoutesFct func(ne... | 2 |
Python | Python | fix doc string | 27f0781e545b892f9393bad35fec149ed0718864 | <ide><path>numpy/core/numeric.py
<ide> def filled(shape, val, dtype=None, order='C'):
<ide>
<ide> def filled_like(a, val, dtype=None, order='K', subok=True):
<ide> """
<del> Return an array of nans with the same shape and type as a given array.
<del>
<del> With default parameters, is equivalent to ``a.copy()... | 1 |
Text | Text | fix addons documentation of development only part | a9115134b5b6d866b68cfd734b4c90abc596e792 | <ide><path>docs/docs/10-addons.md
<ide> next: animation.html
<ide> - [`TransitionGroup` and `CSSTransitionGroup`](animation.html), for dealing with animations and transitions that are usually not simple to implement, such as before a component's removal.
<ide> - [`LinkedStateMixin`](two-way-binding-helpers.html), to si... | 1 |
PHP | PHP | add the ability add a sub query select | 9cb116d9f7d810b71f3e878db8ec9d27af148ada | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> protected function parseSub($query)
<ide> * Add a new select column to the query.
<ide> *
<ide> * @param array|mixed $column
<add> * @param \Closure|\Illuminate\Database\Query\Builder|string|null $query
<ide> * @return $this
<ide> ... | 2 |
Javascript | Javascript | use singleline if for uuid validation | f2e3a813b2b533145b80be1febd5db7a41447e28 | <ide><path>src/loaders/ObjectLoader.js
<ide> Object.assign( ObjectLoader.prototype, {
<ide>
<ide> for ( var i = 0; i < json.length; i ++ ) {
<ide>
<del> var clip = AnimationClip.parse( json[ i ] );
<add> var data = json[ i ];
<ide>
<del> if ( json[ i ].uuid !== undefined ) {
<add> var clip = AnimationClip.... | 1 |
Python | Python | fix lint issue | 9db6f5706fa54f7e3302e8a6e443d6c4e27270d1 | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def _to_node(self, element, groups=None):
<ide> 'status': findattr(element=element, xpath="instanceState/name",
<ide> namespace=NAMESPACE),
<ide> 'key_name': findattr(element=element, xpath="keyName",
<de... | 1 |
Mixed | Javascript | add isreadable helper | a698c49993050491c00d1127236d714c9e8ce2eb | <ide><path>doc/api/stream.md
<ide> added: v17.3.0
<ide>
<ide> Returns whether the stream has encountered an error.
<ide>
<add>### `stream.isReadable(stream)`
<add>
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>> Stability: 1 - Experimental
<add>
<add>* `stream` {Readable|Duplex|ReadableStream}
<add>* Retur... | 5 |
PHP | PHP | apply fixes from styleci | a0707c2f82da6a5320d68018d301887f4696b936 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php
<ide> protected function getDeleteQuery()
<ide> {
<ide> return $this->newQuery()->where([
<ide> $this->foreignKey => $this->getAttribute($this->foreignKey),
<del> $this->otherKey => $this->getAttribute($this->otherKey)
<a... | 1 |
Python | Python | fix typo in bert tokenization file | f778edb739a1ef2ff96b09cf6b9e80fa3824a6ba | <ide><path>src/transformers/models/bert/tokenization_bert.py
<ide> class BertTokenizer(PreTrainedTokenizer):
<ide>
<ide> This should likely be deactivated for Japanese (see this
<ide> [issue](https://github.com/huggingface/transformers/issues/328)).
<del> strip_accents: (`bool`, *optiona... | 5 |
Python | Python | remove unused variables | 34ebad029c59bf47d8fff7164c80779e02650df7 | <ide><path>celery/backends/dynamodb.py
<ide> from celery.exceptions import ImproperlyConfigured
<ide> from celery.five import string
<ide> from celery.utils.log import get_logger
<del>
<ide> from .base import KeyValueStoreBackend
<ide>
<ide> try:
<ide> def _get_table_ttl_description(self):
<ide> descriptio... | 3 |
Ruby | Ruby | remove chain delegate | a8775bba58fb9dd3b0a51a812fa6ec43d8084ff6 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> class AssociationScope #:nodoc:
<ide> attr_reader :association, :alias_tracker
<ide>
<ide> delegate :klass, :reflection, :to => :association
<del> delegate :chain, :to => :reflection
<ide>
<ide> def initialize(ass... | 1 |
Python | Python | add unit test | f646f1c78188a92b0fbdad67a1bd51224460c7fb | <ide><path>libcloud/test/compute/test_ecs.py
<ide> def _create_node_CreateInstance(self, method, url, body, headers):
<ide> 'InternetMaxBandwidthIn': '200',
<ide> 'HostName': 'hostname',
<ide> 'Password': 'password',
<del> 'IoOptimized': 'true',
<ad... | 1 |
Mixed | Javascript | add setnativevalue command to reactcheckboxmanager | cd1e34d4a27b32d33a636f16c1184e100aab9707 | <ide><path>Libraries/Components/CheckBox/AndroidCheckBoxNativeComponent.js
<ide>
<ide> 'use strict';
<ide>
<add>import * as React from 'react';
<add>
<add>import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
<add>
<ide> const requireNativeComponent = require('../../ReactNative/r... | 3 |
Java | Java | fix precondition assertions | 9e4cddf5db33a44675bba2a00cd25032b84ab87d | <ide><path>spring-orm/src/main/java/org/springframework/orm/jpa/support/InjectionCodeGenerator.java
<ide> class InjectionCodeGenerator {
<ide>
<ide>
<ide> InjectionCodeGenerator(ClassName targetClassName, RuntimeHints hints) {
<del> Assert.notNull(hints, "ClassName must not be null");
<add> Assert.notNull(targetCl... | 2 |
Text | Text | remove align from tables | 73f4dc8464bbcf7423304a3304b2c9fe18f49dd8 | <ide><path>doc/api/n-api.md
<ide> to recompile for new versions of Node.js which are
<ide> listed as supporting a later version.
<ide>
<ide> | | 1 | 2 | 3 | 4 | 5 |
<del>|:-----:|:-------:|:--------:|:--------:|:--------:|:---------:|
<add>|-------|---------|----------|--------... | 2 |
Javascript | Javascript | adjust highlighting on window resize | 6d53a2ec100c8d30ddb4ac180ab90a4320144a94 | <ide><path>src/devtools/views/Components/Tree.js
<ide> function InnerElementType({ style, ...rest }) {
<ide> // What we can do instead, is passively measure the width of the current rows,
<ide> // and ensure that once we've grown to a new max size, we don't shrink below it.
<ide> // This improves the user experie... | 1 |
Python | Python | add defensive check | 89c903c6a994817240910c30037f87af6ce0ed87 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _create_args_to_params(self, node, **kwargs):
<ide> name = security_group.name
<ide> server_params['security_groups'].append({'name': name})
<ide>
<del> if 'ex_blockdevicemappings' in kwargs:
<add> if 'ex_blockdevi... | 1 |
Text | Text | translate 10.4 to korean | d3ad46a461c70b51c294782949fdc29c0957d7b4 | <ide><path>docs/docs/10.4-test-utils.ko-KR.md
<add>---
<add>id: test-utils-ko-KR
<add>title: 테스트 유틸리티
<add>permalink: test-utils-ko-KR.html
<add>prev: class-name-manipulation-ko-KR.html
<add>next: clone-with-props-ko-KR.html
<add>---
<add>
<add>`React.addons.TestUtils`는 선택한 테스트 프레임워크(React는 [Jest](http://facebook.githu... | 1 |
Ruby | Ruby | fix implicit ordering expectation | 9047c9809deeb1aaa3735472287265720e5cd37f | <ide><path>actionpack/test/dispatch/test_request_test.rb
<ide> class TestRequestTest < ActiveSupport::TestCase
<ide>
<ide> req.cookies["login"] = "XJ-122"
<ide> assert_equal({"user_name" => "david", "login" => "XJ-122"}, req.cookies)
<del> assert_equal "login=XJ-122; user_name=david;", req.env["HTTP_COOKIE"... | 1 |
Python | Python | fix parser names in docstring | d417c6d1b9fb779f86b11e7526337f4101af414f | <ide><path>rest_framework/settings.py
<ide> )
<ide> 'DEFAULT_PARSER_CLASSES': (
<ide> 'rest_framework.parsers.JSONParser',
<del> 'rest_framework.parsers.TemplateHTMLParser',
<add> 'rest_framework.parsers.FormParser',
<add> 'rest_framework.parsers.MultiPartParser'
<ide> )
<ide> }... | 1 |
PHP | PHP | set security token as separate request attribute | c58bc97f573e4fc12a2bbd6689ec6d8fb46e66ca | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> public function generateToken(ServerRequest $request): ServerRequest
<ide> {
<ide> if ($request->is('requested')) {
<ide> if ($request->getSession()->check('_Token')) {
<del> $request = $request->withParam('_Token', $... | 4 |
Text | Text | add @annthurium weekly focus | 0306638abb123fafb1756bb768890bc0159db840 | <ide><path>docs/focus/2018-04-16.md
<ide> - GitHub Package
<ide> - Completed, merged, and shipped "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/1376), which I used to open this pull request :wink:
<ide> - Updated to Enzyme 3 [atom/github#1386](https://github.com/atom/github/pull/1386)... | 1 |
Text | Text | move sam-github to tsc emeriti | 1aa847f7438407b78cc0d1f9eab96adcfe9ff9df | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Matheus Marchini** <mat@mmarchini.me>
<ide> * [MylesBorins](https://github.com/MylesBorins) -
<ide> **Myles Borins** <myles.borins@gmail.com> (he/him)
<del>* [sam-github](https://github.com/sam-github) -
<del... | 1 |
PHP | PHP | add contextfactory class | 5625bc4454a8a55c5ef204ca2e3113cb53355a99 | <ide><path>src/View/Form/ContextFactory.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, ple... | 2 |
Go | Go | improve the debug function | 6576b19a28a688f00dbe21318b4073826001cf3c | <ide><path>utils.go
<ide> import (
<ide> "fmt"
<ide> "github.com/dotcloud/docker/rcli"
<ide> "io"
<del> "log"
<ide> "net/http"
<ide> "os"
<ide> "os/exec"
<ide> "path/filepath"
<add> "runtime"
<add> "strings"
<ide> "sync"
<ide> "time"
<ide> )
<ide> func Download(url string, stderr io.Writer) (*http.Response, er... | 1 |
Text | Text | fix movinet colab link | 862f8ca36d60d2a3277b46730e5a9ae3f82c55f0 | <ide><path>official/vision/beta/projects/movinet/README.md
<ide> # Mobile Video Networks (MoViNets)
<ide>
<del>[](https://colab.research.google.com/github/tensorflow/models/tree/master/official/vision/beta/projects/movinet/movinet_tutorial.ipynb... | 1 |
Javascript | Javascript | add more information | ff64c6722f03cb442859bb7f1bfef8a3adf09119 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> sawSIGINT = false;
<ide> return;
<ide> }
<del> self.output.write('(To exit, press ^C again or type .exit)\n');
<add> self.output.write('(To exit, press ^C again or ^D or type .exit)\n');
<ide> sawSIGINT = true;
<ide> ... | 3 |
PHP | PHP | fix some docblocks params | e558d8b5d91276fa377b5da46ebc072f8a3ac226 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php
<ide> public function setPivotKeys($foreignKey, $relatedKey)
<ide> /**
<ide> * Determine if the pivot model or given attributes has timestamp attributes.
<ide> *
<del> * @param $attributes array|null
<add> * @param array... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.