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
tweak a method
68b2fd0ae1e996ff9faac977eea8dda265797745
<ide><path>src/Illuminate/Routing/ResourceRegistrar.php <ide> protected function getResourceName($resource, $method, $options) <ide> // the resource action. Otherwise we'll just use an empty string for here. <ide> $prefix = isset($options['as']) ? $options['as'].'.' : ''; <ide> <del> if (empty($this->router->getG...
2
Text
Text
update pr template
b1eeb0fb117e780f567e9cc6d5578043546b2b2e
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> Checklist: <ide> - [ ] I have read [freeCodeCamp's contribution guidelines](https://contribute.freecodecamp.org). <ide> - [ ] My pull request has a descriptive title (not a vague title like `Update index.md`) <ide> - [ ] My pull request targets the `main` branch of free...
1
Go
Go
fix nits in comments
6fb05778ba241b344dd9014ff1091e3f70a8b40c
<ide><path>api/types/time/timestamp.go <ide> func GetTimestamp(value string, reference time.Time) (string, error) { <ide> } <ide> <ide> if err != nil { <del> // if there is a `-` then its an RFC3339 like timestamp otherwise assume unixtimestamp <add> // if there is a `-` then it's an RFC3339 like timestamp otherwi...
10
Python
Python
add option `--skip-init` to db reset command
44c0edb34ec5a91b1e0021eba2b37707c378ce11
<ide><path>airflow/cli/cli_parser.py <ide> def string_lower_type(val): <ide> action="store_true", <ide> default=False, <ide> ) <add>ARG_DB_SKIP_INIT = Arg( <add> ("-s", "--skip-init"), <add> help="Only remove tables; do not perform db init.", <add> action="store_true", <add> default=False, <add>) <i...
5
Python
Python
add cinder support libcloud-874
557e1e5fa661eb2dedc914913606ea5cdb7fcb90
<ide><path>libcloud/compute/drivers/openstack.py <ide> def create_volume(self, size, name, location=None, snapshot=None, <ide> volume['snapshot_id'] = snapshot.id <ide> <ide> resp = self.volumev2_connection.request('/volumes', <del> method='POST', <del> ...
1
Javascript
Javascript
ignore .gitignore (and more) from bower packages
ceec907bee33d39da68cb7af111400622aefee23
<ide><path>gulpfile.js <ide> function bowerTask() { <ide> homepage: package.homepage, <ide> license: package.license, <ide> version: package.version, <del> main: outDir + "Chart.js" <add> main: outDir + "Chart.js", <add> ignore: [ <add> '.github', <add> '.codeclimate.yml',...
1
Text
Text
remove new v2 tags
3478ff1eb0fd57c48a332e7787efe6ea47492e13
<ide><path>website/README.md <ide> import Tag from 'components/tag' <ide> <ide> > ```jsx <ide> > <Tag>method</Tag> <del>> <Tag variant="new">2.1</Tag> <add>> <Tag variant="new">4</Tag> <ide> > <Tag variant="model">tagger, parser</Tag> <ide> > ``` <ide> <ide> installed. <ide> <ide> <InlineList> <ide> <del><Tag>metho...
13
Java
Java
add type variances for dooneach actions
e42777f61bb5d7df18a0e54955cdddd3b3facf48
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public Observable<T> doOnEach(Observer<? super T> observer) { <ide> * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#dooneach">RxJava Wiki: doOnEach()</a> <ide> * @see <a href="http://msdn.microsoft.com/en-us/libr...
1
Python
Python
chain some exceptions.
489de42a9585615ca9962a83882896069357ab97
<ide><path>numpy/core/_dtype.py <ide> def _kind_name(dtype): <ide> try: <ide> return _kind_to_stem[dtype.kind] <del> except KeyError: <add> except KeyError as e: <ide> raise RuntimeError( <ide> "internal dtype error, unknown kind {!r}" <ide> .format(dtype.kind) <del> ...
4
Javascript
Javascript
fix ssr usecallback in render phase
ccb14e270c3376ed47ca43c0c39722ba6bf6eced
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationHooks-test.internal.js <ide> describe('ReactDOMServerHooks', () => { <ide> expect(domNode.tagName).toEqual('SPAN'); <ide> expect(domNode.textContent).toEqual('Count: 0'); <ide> }); <add> <add> itRenders('should support render time c...
2
Javascript
Javascript
keep autofocus attribute in the dom
2228f497f34e623367796a3db03d6582b36fb2f9
<ide><path>fixtures/ssr/src/components/Page.js <ide> import React, {Component} from 'react'; <ide> <ide> import './Page.css'; <ide> <add>const autofocusedInputs = [ <add> <input key="0" autoFocus placeholder="Has auto focus" />, <add> <input key="1" autoFocus placeholder="Has auto focus" />, <add>]; <add> <ide> exp...
5
Ruby
Ruby
simplify conditional as suggested
76607bbb6fae52fcd32cda339c22121c3e0a23ec
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> bottle do <ide> <% if [HOMEBREW_BOTTLE_DEFAULT_DOMAIN.to_s, <ide> "#{HOMEBREW_BOTTLE_DEFAULT_DOMAIN}/bottles"].exclude?(root_url) %> <del> root_url "<%= root_url %>"<% unless download_strategy.blank? %>, <add> root_url "<%= root_url %>"<% if dow...
1
Text
Text
fix typo in contributing.md
30c93b4a9521e74f7cffe7faa04eee2b4f7f1bd9
<ide><path>CONTRIBUTING.md <ide> Example: <ide> > 2. This is the second step <ide> > 3. Further steps, etc. <ide> > <del>> Screenshot (if usefull) <add>> Screenshot (if useful) <ide> > <ide> > Any other information you want to share that is relevant to the issue being <ide> > reported. This might include the lines of c...
1
PHP
PHP
fix php cs
94e55961871d1f0be8869efecb55e5089de26dc0
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function lists($column, $key = null) <ide> */ <ide> public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null) <ide> { <del> if( $perPage <= 0) { <add> if ($perPage <= 0) { <ide> ...
1
Javascript
Javascript
fix modren typo
7b1de1ea2f58e16b42cf76882369ccfe2ab91b5c
<ide><path>common/app/routes/Challenges/utils/index.js <ide> export const viewTypes = { <ide> [ challengeTypes.bonfire ]: 'classic', <ide> [ challengeTypes.frontEndProject ]: 'project', <ide> [ challengeTypes.backEndProject ]: 'project', <del> [ challengeTypes.modern ]: 'modren', <add> [ challengeTypes.modern ]...
1
Python
Python
fix missing return
7fbac39e5e1715fea4dd51fee79554e789447bd2
<ide><path>numpy/linalg/linalg.py <ide> def cholesky(a): <ide> s = triu(a, k=0).transpose() <ide> if (s.dtype != result_t): <ide> return s.astype(result_t) <add> return s <ide> <ide> # Eigenvalues <ide> def eigvals(a):
1
Ruby
Ruby
extract checkout from #stage
02ad6442e771d63a365cd9502e1c994780a1b12b
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> Dir.chdir(@clone) do <ide> config_repo <ide> fetch_repo <add> checkout <add> update_submodules if submodules? <ide> end <ide> elsif @clone.exist? <ide> puts "Removing invalid .git repo from cache" ...
1
Text
Text
fix broken links in image.md
e4a9f09d45541399627730b9bae353780e386f2a
<ide><path>docs/api-reference/next/image.md <ide> When using `layout="intrinsic"`, `layout="fixed"`, or `layout="raw"`, the `width <ide> <ide> When using `layout="responsive"`, `layout="fill"`, the `width` property represents the _original_ width in pixels, so it will only affect the aspect ratio. <ide> <del>The `wid...
1
Mixed
Go
add formatter for service inspect
54ba82beab8ef8b71f5a6a2f7082ed7759b40df3
<ide><path>cli/command/formatter/formatter.go <ide> import ( <ide> "github.com/docker/docker/utils/templates" <ide> ) <ide> <add>// Format keys used to specify certain kinds of output formats <ide> const ( <del> // TableFormatKey is the key used to format as a table <del> TableFormatKey = "table" <del> // RawFormatKe...
7
Python
Python
update tokenizer.explain tests
2e7c896fe5541c188b9e9984210687e57cef614c
<ide><path>spacy/tests/tokenizer/test_explain.py <ide> # coding: utf-8 <ide> from __future__ import unicode_literals <ide> <del>import importlib <ide> import pytest <ide> from spacy.util import get_lang_class <ide> <del> <del># fmt: off <ide> # Only include languages with no external dependencies <del># excluded: ja,...
1
Ruby
Ruby
increase readall test timeout
ec81d43519e9d334f994c8dc10fdba17779def82
<ide><path>Library/Homebrew/test/cmd/readall_spec.rb <ide> it_behaves_like "parseable arguments" <ide> end <ide> <del>describe "brew readall", :integration_test, timeout: 180 do <add>describe "brew readall", :integration_test, timeout: 240 do <ide> it "imports all Formulae for a given Tap" do <ide> formula_fil...
1
Javascript
Javascript
remove morph target changes
6406684fdfd294f7523c05fe2967727a6dd368e8
<ide><path>examples/js/loaders/FBXLoader.js <ide> THREE.FBXLoader = ( function () { <ide> <ide> }, <ide> <add> <ide> // Parse single node mesh geometry in FBXTree.Objects.Geometry <ide> parseMeshGeometry: function ( relationships, geoNode, deformers ) { <ide> <ide> var skeletons = deformers.skeletons; <del>...
1
Ruby
Ruby
add note about xeon
7e723c107b81f24498ec851161b0e12d68e89394
<ide><path>Library/Homebrew/hw.model.rb <ide> def hw_model <ide> <ide> when "MacPro" <ide> $unknown_hw_model=true if major > 3 <add> # 'Xeon' is a marketing term, not a specific CPU: <add> # http://en.wikipedia.org/wiki/Xeon <add> # adamv says: I have a Mac Pro at work (MacPr...
1
Mixed
Go
fix a minor typo
471006c02f03d9451721dfbd7e3d62f0db0fc7c7
<ide><path>docker/flags.go <ide> func init() { <ide> {"images", "List images"}, <ide> {"import", "Create a new filesystem image from the contents of a tarball"}, <ide> {"info", "Display system-wide information"}, <del> {"inspect", "Return low-level information on a container"}, <add> {"inspect", "Return lo...
2
Javascript
Javascript
add integration test for suspense and streaming
57b4134c8811e18421c78555226112739be35232
<ide><path>test/integration/react-streaming-and-server-components/app/pages/streaming.js <add>import { Suspense } from 'react' <add> <add>let result <add>let promise <add>function Data() { <add> if (result) return result <add> if (!promise) <add> promise = new Promise((res) => { <add> setTimeout(() => { <add>...
2
Text
Text
add 2048-react to open-source demos
f627ddfb742089d50e6846c36de2a1985a8e7cd5
<ide><path>docs/docs/examples.md <ide> prev: complementary-tools.html <ide> * **[Khan Academy question editor](https://github.com/khan/perseus)** (Browse their GitHub account for many more production apps!) <ide> * **[github-issue-viewer](https://github.com/jaredly/github-issues-viewer)** <ide> * **[hn-react](https://g...
1
Javascript
Javascript
unify glimmer and htmlbars `{{#each}}` tests
a6f3fc4fbbe4371820f66a7c952822aa2e784e60
<ide><path>packages/ember-glimmer/tests/integration/syntax/each-test.js <ide> class ArrayLike { <ide> <ide> // The following methods are APIs used by the tests <ide> <del> clear() { <del> this._array.length = 0; <del> propertyDidChange(this, 'length'); <del> } <del> <ide> objectAt(idx) { <ide> return ...
1
Javascript
Javascript
name anonymous functions
de03b362cffe26a8d58cea00568259df2707cb1c
<ide><path>pdf.js <ide> function shadow(obj, prop, value) { <ide> configurable: true, <ide> writable: false }); <ide> } catch (e) { <del> obj.__defineGetter__(prop, function() { <add> obj.__defineGetter__(prop, function shadowDefineGe...
1
PHP
PHP
convert spaces to tabs
0cd120a75090480af98b32e3b7f3adc24890c842
<ide><path>src/Illuminate/Routing/Router.php <ide> public function dispatchToRoute(Request $request) <ide> { <ide> $route = $this->findRoute($request); <ide> <del> $this->events->fire('router.matched', array($route, $request)); <add> $this->events->fire('router.matched', array($route, $request)); <ide> <id...
1
PHP
PHP
add tests for
901bb07c7126e27bdfed30aed7cac21c667da24b
<ide><path>tests/TestCase/I18n/TranslatorFactoryTest.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license infor...
1
Ruby
Ruby
add missing require
e6d4dc3ec4e6e3d4dd9e5db6cdd91f691d546609
<ide><path>activesupport/lib/active_support/core_ext/time/calculations.rb <ide> require 'active_support/duration' <ide> require 'active_support/core_ext/time/conversions' <add>require 'active_support/time_with_zone' <ide> <ide> class Time <ide> COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31...
1
Text
Text
add new templates and update readme files
9c1429cf48c56d9ee47d5e35f3253a51e257db13
<ide><path>.github/PULL_REQUEST_TEMPLATE/pull_request_template.md <add># Description <add> <add>> :memo: Please include a summary of the change. <add>> <add>> * Please also include relevant motivation and context. <add>> * List any dependencies that are required for this change. <add> <add>## Type of change <add...
7
Ruby
Ruby
require the files we test
19dd2166103cc1d39d7346714c46f32191958981
<ide><path>activerecord/test/cases/tasks/database_tasks_test.rb <ide> require 'cases/helper' <add>require 'active_record/tasks/database_tasks' <ide> <ide> module ActiveRecord <ide> module DatabaseTasksSetupper
1
Javascript
Javascript
use const in viewer_compatibility.js
b777e775f4865222d24281ca51724ac3f210b6a2
<ide><path>web/viewer_compatibility.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <add>/* eslint no-var: error, prefer-const: error */ <ide> <del>let compatibilityParams = Object.create(null); <add>const compatibilityParams = Object.cr...
1
Ruby
Ruby
improve hash#compact! documentation and tests
0dd23446a32b4e4974572a39582ea4c11475b80a
<ide><path>activesupport/lib/active_support/core_ext/hash/compact.rb <ide> class Hash <ide> # Returns a hash with non +nil+ values. <ide> # <ide> # hash = { a: true, b: false, c: nil } <del> # hash.compact # => { a: true, b: false } <del> # hash # => { a: true, b: false, c: nil } <del>...
2
Python
Python
use only ascii chars to build the progress bar
ee6d7e4b5c9acc14e9646519afbd9a3fdb95f3f8
<ide><path>glances/outputs/glances_bars.py <ide> <ide> """Manage bars for Glances output.""" <ide> <del># Import system lib <del>import locale <add>from __future__ import division <add> <ide> from math import modf <ide> <add>curses_bars = [' ', ' ', ' ', ' ', '|', '|', '|', '|', '|'] <add> <ide> <ide> class Bar(obj...
2
Go
Go
reduce string-matching in tests
de10c7d0136dc054abdb40ca624211c04334bdc0
<ide><path>client/checkpoint_create_test.go <ide> func TestCheckpointCreateError(t *testing.T) { <ide> Exit: true, <ide> }) <ide> <del> if err == nil || err.Error() != "Error response from daemon: Server error" { <del> t.Fatalf("expected a Server Error, got %v", err) <del> } <ide> if !errdefs.IsSystem(err...
91
Ruby
Ruby
fix ci failure due to remaining tagging records
b2b559c75cf7c8f1dc6f22057b7780c72f45af51
<ide><path>activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb <ide> def setup <ide> ActiveRecord::Base.store_full_sti_class = store_full_sti_class <ide> <ide> post = Namespaced::Post.create(title: "Great stuff", body: "This is not", author_id: 1) <del> @tagging = Tagging.create(...
1
PHP
PHP
bugfix - alternative
4d770fd9a31ad02f724428ec0d15ca38a81cc3d1
<ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php <ide> public function command($method, array $parameters = []) <ide> try { <ide> return parent::command($method, $parameters); <ide> } catch (RedisException $e) { <del> if (str_contains($e->getMessage(), 'went away...
1
Text
Text
fix typo + grammar in viewsets docs
df11198c6cfd543925eabc95d10c596c40ab3ab5
<ide><path>docs/api-guide/viewsets.md <ide> A `ViewSet` class is simply **a type of class-based View, that does not provide <ide> <ide> The method handlers for a `ViewSet` are only bound to the corresponding actions at the point of finalizing the view, using the `.as_view()` method. <ide> <del>Typically, rather than ...
1
Javascript
Javascript
remove unused flag
b4e314891826da7e65ce600cdcf320041dafc0d2
<ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.js <ide> import { <ide> warnAboutUnmockedScheduler, <ide> flushSuspenseFallbacksInTests, <ide> disableSchedulerTimeoutBasedOnReactExpirationTime, <del> enableTrainModelFix, <ide> } from 'shared/ReactFeatureFlags'; <ide> import ReactSharedInternals from ...
10
Text
Text
update changelog with pr changes
ca114316475326962493c294df3e9a1b3922474e
<ide><path>actionpack/CHANGELOG.md <add>* Add the following permissions policy directives: `hid`, `idle-detection`, `screen-wake-lock`, <add> `serial`, `sync-xhr`, `web-share`. <add> <add> *Guillaume Cabanel* <add> <ide> * The `speaker`, `vibrate`, and `vr` permissions policy directives are now <ide> depr...
1
Javascript
Javascript
remove trailing whitespace
22392ef949904c699f409d0cfa14756cf86df7a1
<ide><path>src/ng/compile.js <ide> * `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an <ide> * object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a <ide> * component such as cloning the bo...
1
Text
Text
add reference to wiki for deploying to github
0fdd379eee33ac9708a74cd994ba3fdfbffbdee0
<ide><path>readme.md <ide> Then you've a static version of your app in the “out" directory. <ide> <ide> > You can also customize the output directory. For that run `next export -h` for the help. <ide> <del>Now you can deploy that directory to any static hosting service. <add>Now you can deploy that directory to any ...
1
Python
Python
change weight path
c9e5b0d67b211a88ad2d849327df4b748ffbe2d6
<ide><path>keras/applications/convnext.py <ide> import tensorflow.compat.v2 as tf <ide> from tensorflow.python.util.tf_export import keras_export <ide> <del>BASE_WEIGHTS_PATH = "https://storage.googleapis.com/convnext-tf/keras-applications-temp/convnext/" <add>BASE_WEIGHTS_PATH = "https://storage.googleapis.com/tensor...
1
Ruby
Ruby
adjust rebuild handling
95b44eab4964c9b6ebf615a0fc58d013fb23582c
<ide><path>Library/Homebrew/github_packages.rb <ide> def upload_bottles(bottles_hash, dry_run:) <ide> end <ide> end <ide> <del> def self.version_rebuild(version, rebuild) <del> return version.to_s unless rebuild.to_i.positive? <add> def self.version_rebuild(version, rebuild, bottle_tag = nil) <add> bottl...
1
Javascript
Javascript
remove todo and add a description instead
57fd70fc7d3918a6bd4c714fe479488391a563f6
<ide><path>lib/_stream_transform.js <ide> function done(stream, er, data) { <ide> if (data != null) // Single equals check for both `null` and `undefined` <ide> stream.push(data); <ide> <del> // TODO(BridgeAR): Write a test for these two error cases <del> // if there's nothing in the write buffer, then that me...
1
Text
Text
add chat badge
9fd7a9f58f06bae8122c9c243f71a9af863e5444
<ide><path>README.md <ide> [![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/) <ide> [![Open Source Helpers](https://www.codetriage.com/freecodecamp/freecodecamp/badges/users.svg)](https://www.codetriage.com/freecodecamp/freecodecamp) <ide...
1
Ruby
Ruby
simplify logic (#538)
91a47a9ed6d85c1bf8f507cdfef4462a07f61831
<ide><path>Library/Homebrew/os/mac/linkage_checker.rb <ide> def check_dylibs <ide> def check_undeclared_deps <ide> filter_out = proc do |dep| <ide> next true if dep.build? <del> dep.optional? && !dep.option_names.any? { |n| formula.build.with?(n) } <add> next false unless dep.optional? || ...
1
Javascript
Javascript
simplify assert usage in test-stream2-basic
7bb9fd203522cb37424629dad777f966a81dd03d
<ide><path>test/pummel/test-stream2-basic.js <ide> function run() { <ide> const fn = next[1]; <ide> console.log('# %s', name); <ide> fn({ <del> same: assert.deepStrictEqual, <del> ok: assert, <del> equal: assert.strictEqual, <ide> end: function() { <ide> count--; <ide> run(); <ide> test('...
1
Javascript
Javascript
bugfix some edge cases
e44e51fa5b9268445090dc0071584239f89def27
<ide><path>lib/Compilation.js <ide> BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si <ide> */ <ide> _addEntryItem(context, entry, target, options, callback) { <ide> const { name } = options; <del> let entryData = name ? this.entries.get(name) : this.globalEntry; <add> let entryDat...
2
Ruby
Ruby
fix debug strategy info printing
e73524b09325c4aa2e45a945bb2a62fafdfda62f
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> def latest_version( <ide> end <ide> <ide> if debug <del> puts "URL (strategy): #{strategy_data[:url]}" if strategy_data[:url] != url <del> puts "URL (final): #{strategy_data[:final_url]}" if strategy_data[:final_url] <del...
1
Ruby
Ruby
fix reloader to work with new executor signature
f9a2ad03943d5c2ba54e1d45f155442b519c75da
<ide><path>activesupport/lib/active_support/reloader.rb <ide> def self.reload! <ide> prepare! <ide> end <ide> <del> def self.run! # :nodoc: <add> def self.run!(reset: false) # :nodoc: <ide> if check! <ide> super <ide> else
1
Ruby
Ruby
add sh.brew.tab to the image manifest
f35baa27522997712b6c1a45ef19793ad839b6f9
<ide><path>Library/Homebrew/github_packages.rb <ide> def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) <ide> "org.opencontainers.image.title" => "#{formula_full_name} #{tag}", <ide> "com.github.package.type" => GITHUB_PACKAGE_TYPE, <ide> "sh....
1
Java
Java
consider negative border radii and widths invalid
99d294bf3d2be24cb2950e0785bebd645a660771
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java <ide> public void setAccessible(ReactViewGroup view, boolean accessible) { <ide> defaultFloat = YogaConstants.UNDEFINED <ide> ) <ide> public void setBorderRadius(ReactViewGroup view, int index, float borderRadius) { <add> ...
1
Javascript
Javascript
fix strict javascript warning in canvasgraphics
7da3c68c48a4e3351fca50e049f6c0e44e23b26a
<ide><path>pdf.js <ide> var CanvasGraphics = (function canvasGraphics() { <ide> var tmpCtx = tmpCanvas.getContext('2d'); <ide> if (imageObj.imageMask) { <ide> var fillColor = this.current.fillColor; <del> tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ? <del> fillColo...
1
PHP
PHP
return a new collection from shuffle
238f638b08428a86a5fb6ee06715620bcbcf8532
<ide><path>src/Illuminate/Support/Collection.php <ide> public function shift() <ide> /** <ide> * Shuffle the items in the collection. <ide> * <del> * @return $this <add> * @return static <ide> */ <ide> public function shuffle() <ide> { <del> shuffle($this->items); <add> $items = $this->items; <ide> <del> ...
1
Python
Python
improve laguerre and legendre efficiency
1f79addc9d546690984896fc4a35298aab289ba5
<ide><path>numpy/polynomial/laguerre.py <ide> def laggauss(deg): <ide> # matrix is symmetric in this case in order to obtain better zeros. <ide> c = np.array([0]*deg + [1]) <ide> m = lagcompanion(c) <del> x = la.eigvals(m) <del> x.sort() <add> x = la.eigvalsh(m) <ide> <ide> # improve roots by ...
2
Ruby
Ruby
remove another unused default argument
0fc906b03d9d385a77512acd895520092e244c93
<ide><path>Library/Homebrew/formula_versions.rb <ide> def formula_at_revision(rev) <ide> end <ide> end <ide> <del> def bottle_version_map(branch="HEAD") <add> def bottle_version_map(branch) <ide> map = Hash.new { |h, k| h[k] = [] } <ide> rev_list(branch) do |rev| <ide> formula_at_revision(rev) do...
1
Ruby
Ruby
remove warnings on as/test/cache/stores
5606c35697fbde4f3fccc8fdf49a530b50daa8e1
<ide><path>activesupport/test/cache/stores/mem_cache_store_test.rb <ide> def setup <ide> end <ide> <ide> def after_teardown <add> return unless defined?(@_stores) # because skipped test <add> <ide> stores, @_stores = @_stores, [] <ide> stores.each do |store| <ide> # Eagerly closing Dalli connectio...
2
Python
Python
remove legacy code from regularizers
1c630c3e3c8969b40a47d07b9f2edda50ec69720
<ide><path>keras/regularizers.py <ide> from __future__ import absolute_import <ide> from . import backend as K <ide> from .utils.generic_utils import get_from_module <del>import warnings <ide> <ide> <ide> class Regularizer(object): <ide> """Regularizer base class. <ide> """ <ide> <ide> def __call__(self,...
1
Javascript
Javascript
provide event parameters as object
28f56a383e9d1ff378e3568a3039e941c7ffb1d8
<ide><path>src/ngScenario/browserTrigger.js <ide> * not specified. <ide> * <ide> * @param {Object} element Either a wrapped jQuery/jqLite node or a DOMElement <del> * @param {string} eventType Optional event type. <del> * @param {Array.<string>=} keys Optional list of pressed keys <del> * (valid v...
4
Text
Text
fix version cakephp 3.4
2f29fc4023bc8d23da2c187c56ec33cff77920de
<ide><path>README.md <ide> recommend using the [app skeleton](https://github.com/cakephp/app) as <ide> a starting point. For existing applications you can run the following: <ide> <ide> ``` bash <del>$ composer require cakephp/cakephp:"~3.3" <add>$ composer require cakephp/cakephp:"~3.4" <ide> ``` <ide> <ide> ## Runn...
1
Ruby
Ruby
fix fallback dependencies with multiple kegs
01e1f7d49e91b6f02037997ffb465b37d2426b80
<ide><path>Library/Homebrew/keg.rb <ide> def self.find_some_installed_dependents(kegs) <ide> # <ide> # This happens after the initial dependency check because it's sloooow. <ide> remaining_formulae = Formula.installed.select do |f| <del> f.installed_kegs.any? { |k| Tab.for_keg(k).runtime_dependencies.n...
2
Javascript
Javascript
add remainingtimedisplay method to player
445eb267227b1b0ac4f37f124fa4a8811a54752c
<ide><path>src/js/control-bar/time-controls/remaining-time-display.js <ide> class RemainingTimeDisplay extends TimeDisplay { <ide> return; <ide> } <ide> <del> this.updateFormattedTime_(this.player_.remainingTime()); <add> this.updateFormattedTime_(this.player_.remainingTimeDisplay()); <ide> } <ide> ...
2
Python
Python
remove similar branches from linalg.lstsq
a1af647b13b33963eca3f9504f1d4b2603c3e4a3
<ide><path>numpy/linalg/linalg.py <ide> def lstsq(a, b, rcond="warn"): <ide> 0, work, lwork, iwork, 0) <ide> if results['info'] > 0: <ide> raise LinAlgError('SVD did not converge in Linear Least Squares') <del> resids = array([], result_real_t) <del> if is_1d: <del> ...
1
Ruby
Ruby
write bottles in correct order
3dccea251fd03fd35626de1654ab0e930ae6c53d
<ide><path>Library/Homebrew/software_spec.rb <ide> def checksum_for(tag) <ide> <ide> def checksums <ide> tags = collector.keys.sort_by do |tag| <del> "#{OS::Mac::Version.from_symbol(tag)}_#{tag}" <add> version = OS::Mac::Version.from_symbol(tag) <add> # Give arm64 bottles a higher priority so they...
2
PHP
PHP
apply fixes from styleci
cab1de36ad2e5e42a0111b1e5070d5c62e933f86
<ide><path>src/Illuminate/Queue/Jobs/Job.php <ide> public function maxExceptions() <ide> } <ide> <ide> /** <del> * The number of seconds to wait before retrying a job that encountered an uncaught exception <add> * The number of seconds to wait before retrying a job that encountered an uncaught exceptio...
2
Python
Python
remove some vestigial print statements
d7e2d9ad427fe276d1d4f22d86a02433df99c99e
<ide><path>numpy/core/tests/test_defchararray.py <ide> def test_decode(self): <ide> <ide> def test_encode(self): <ide> B = self.B.encode('unicode_escape') <del> print B[0][0] <ide> assert B[0][0] == r' \u03a3 ' <ide> <ide> def test_expandtabs(self): <ide> T = self.A.expandtabs()...
1
Python
Python
add examples telemetry
3cab90279fdd0c81c892de1f2e28923b3b7acbfc
<ide><path>examples/flax/image-captioning/run_image_captioning_flax.py <ide> HfArgumentParser, <ide> is_tensorboard_available, <ide> ) <del>from transformers.utils import get_full_repo_name, is_offline_mode <add>from transformers.utils import get_full_repo_name, is_offline_mode, send_example_telemetry <ide> <i...
53
Python
Python
fix poly_val description for 'x' input
33140978603936fe2c93555e6badce55a841d432
<ide><path>numpy/lib/polynomial.py <ide> def poly(seq_of_zeros): <ide> <ide> See Also <ide> -------- <del> polyval : Evaluate a polynomial at a point. <add> polyval : Compute polynomial values. <ide> roots : Return the roots of a polynomial. <ide> polyfit : Least squares polynomial fit. <ide> ...
1
PHP
PHP
add test case for abort()
f2cecec85ae3e76ac505b21bc120284319ddc0a1
<ide><path>src/Console/ConsoleIo.php <ide> public function success($message = null, $newlines = 1, $level = self::NORMAL) <ide> } <ide> <ide> /** <del> * @param string $message <del> * @param int $code <add> * Halts the the current process with a StopException. <add> * <add> * @param string...
3
Text
Text
fix added version for readable.closed/destroyed
fc032498891a521d7b8a02cb67a6df7b894c663f
<ide><path>doc/api/stream.md <ide> Implementors should not override this method, but instead implement <ide> ##### `readable.closed` <ide> <ide> <!-- YAML <del>added: v8.0.0 <add>added: v18.0.0 <ide> --> <ide> <ide> * {boolean} <ide> Is `true` after `'close'` has been emitted. <ide> ##### `readable.destroyed` <ide> ...
1
Javascript
Javascript
seperate instanceinitializer into its own section
16eb4f803ca751c1f869f2c1e7e2c9b7ae79a7e6
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Namespace.extend(RegistryProxy, { <ide> }); <ide> <ide> Application.reopenClass({ <add> /** <add> Instance initializers run after all initializers have run. Because <add> instance initializers run after the app is fully set ...
1
Javascript
Javascript
remove old reference to inst._wrapperstate
d0d4280640967eca2faad0d96be6fca08ac846a6
<ide><path>packages/react-dom/src/events/ChangeEventPlugin.js <ide> function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) { <ide> } <ide> } <ide> <del>function handleControlledInputBlur(inst, node) { <del> // TODO: In IE, inst is occasionally null. Why? <del> if (inst == null) { <del> return; <d...
1
Text
Text
update version numbers of ruby and rails
c332393f751fdbd2bf1c821e2ac1fa5f06fea7b6
<ide><path>guides/source/getting_started.md <ide> Open up a command line prompt. On a mac this is called terminal, on windows it i <ide> <ide> ```bash <ide> $ ruby -v <del>ruby 1.9.3p194 <add>ruby 1.9.3p327 <ide> ``` <ide> <ide> To install Rails, use the `gem install` command provided by RubyGems: <ide> To verify tha...
1
Text
Text
add activeclassname to link examples
8217597848ae06596c64c553a5f7bf805fca2b06
<ide><path>docs/api-reference/next/link.md <ide> description: Enable client-side transitions between routes with the built-in Lin <ide> <summary><b>Examples</b></summary> <ide> <ul> <ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/hello-world">Hello World</a></li> <add> <li><a href="...
1
Java
Java
remove activities from module constructors
c06efc0831b9156ee6261d7ddd2086ed87cbc0aa
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> * have a static method, and so cannot (in Java < 8), be one. <ide> */ <ide> public abstract class ReactInstanceManager { <add> <add> /** <add> * Listener interface for react instance events. <add> */ <add> public interface ...
4
Python
Python
fix docs for flask.test_client_class
22933a8cb424ffd65f2bec5bbfdbfa7e42105470
<ide><path>src/flask/app.py <ide> class Flask(Scaffold): <ide> #: .. versionadded:: 1.1.0 <ide> url_map_class = Map <ide> <del> #: the test client that is used with when `test_client` is used. <add> #: The :meth:`test_client` method creates an instance of this test <add> #: client class. Defaults to :...
1
Python
Python
add line separators in the terminal output
13ba034e929ddbea57852080b159acdff51e360d
<ide><path>glances/main.py <ide> def init_args(self): <ide> help='display modules (plugins & exports) list and exit', <ide> ) <ide> parser.add_argument( <del> '--disable-plugin', '--disable-plugins', dest='disable_plugin', help='disable plugin (comma separed list)' <add> ...
3
Python
Python
use unittest.mock as we are py3 now
4b8f80c3d31dffce153e4954b309cf52afc2c51a
<ide><path>official/recommendation/ncf_test.py <ide> import math <ide> import unittest <ide> <del>import mock <ide> import numpy as np <ide> import tensorflow as tf <ide> <ide> def test_hit_rate_and_ndcg(self): <ide> _BASE_END_TO_END_FLAGS = ['-batch_size', '1044', '-train_epochs', '1'] <ide> <ide> @unittest.ski...
1
PHP
PHP
update typehints for cache/
b49634da57bc1d470fe1c0f628e09a1f26a56207
<ide><path>src/Cache/Cache.php <ide> protected static function _buildEngine(string $name): void <ide> * @return \Cake\Cache\CacheEngine <ide> * @deprecated 3.7.0 Use Cache::pool() instead. This method will be removed in 5.0. <ide> */ <del> public static function engine(string $config) <add> public ...
13
Text
Text
fix broken link to recaptcha.net [ci skip]
88dc74b78468546748fdfdc4133e153efcc1f1c9
<ide><path>guides/source/security.md <ide> Depending on your web application, there may be more ways to hijack the user's a <ide> <ide> INFO: _A CAPTCHA is a challenge-response test to determine that the response is not generated by a computer. It is often used to protect registration forms from attackers and comment ...
1
Text
Text
use sup tag for power in readme.md instead of ^
0f3ab059997e5fb039cfe6457a4e5c4684ede0cb
<ide><path>README.md <ide> These are for demonstration purposes only. There are many implementations of sor <ide> From [Wikipedia][bubble-wiki]: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and...
1
Javascript
Javascript
move html and svg configs into domproperty
8ec2ed4089053e6eaf00de6e9bddc793d27b74e8
<ide><path>packages/react-dom/src/client/ReactDOM.js <ide> import type { <ide> } from 'react-reconciler/src/ReactFiberRoot'; <ide> <ide> import '../shared/checkReact'; <del>import '../shared/ReactDOMInjection'; <ide> import './ReactDOMClientInjection'; <ide> <ide> import ReactFiberReconciler from 'react-reconciler'; ...
7
Ruby
Ruby
remove travis seed
5c5c416d1cb2df75f430c30a8044c82e041f530c
<ide><path>Library/Homebrew/cask/cmd/brew-cask-tests.rb <ide> def run_tests(executable, files, args = []) <ide> rspec = ARGV.flag?("--rspec") || !ARGV.flag?("--minitest") <ide> minitest = ARGV.flag?("--minitest") || !ARGV.flag?("--rspec") <ide> <del> # TODO: setting the --seed here is an ugly temporary hack, to r...
1
Javascript
Javascript
fix bad assumption in pummel/test-vm-memleak
7e648da834faa7b837806cd5e214582b0359a03a
<ide><path>test/pummel/test-vm-memleak.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <add>// Flags: --max_old_space_size=32 <add> <ide> var assert = require('assert'); <ide> var common = require('../common'); <ide> <ide> var...
1
Ruby
Ruby
update formula template for new x11 dependency
168ccb2821f1e4adb1129b2a73b51805743aee51
<ide><path>Library/Homebrew/cmd/create.rb <ide> class #{Formula.class_s name} < Formula <ide> <% elsif mode == nil %> <ide> # depends_on 'cmake' => :build <ide> <% end %> <add> depends_on :x11 # if your formula requires any X11/XQuartz components <ide> <ide> def install <del> # ENV.x11 # ...
1
Python
Python
add basic example for using the lxdcontainerdriver
4e66df468b104d8e95184322082a7775838a4f87
<ide><path>example_lxd.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Apache License, V...
1
Text
Text
fix a typo
41a6d2de955fc7cc9006789ca017ca8020d8297e
<ide><path>docs/recipes/ReducingBoilerplate.md <ide> We just modified how `addTodo` action creator behaves, completely invisible to t <ide> <ide> Some frameworks like [Flummox](https://github.com/acdlite/flummox) generate action type constants automatically from the action creator function definitions. The idea is tha...
1
Text
Text
add v4.0.0-beta.7 to changelog
dfd1da52eaafcb02e6c019ae0c10a914b07e0c5a
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.0.0-beta.7 (November 1, 2021) <add> <add>- [#19677](https://github.com/emberjs/ember.js/pull/19677) [CLEANUP] Remove jQuery from build <add> <ide> ### v4.0.0-beta.6 (October 26, 2021) <ide> <ide> - [#19799](https://github.com/emberjs/ember.js/pull/1979...
1
Go
Go
keep walkroot clean if source is /
7410f1a859063d4ed3d8fca44f27bdde4c2cb5a3
<ide><path>pkg/archive/archive_unix.go <ide> import ( <ide> "errors" <ide> "os" <ide> "path/filepath" <add> "strings" <ide> "syscall" <ide> <ide> "github.com/docker/docker/pkg/idtools" <ide> func fixVolumePathPrefix(srcPath string) string { <ide> // can't use filepath.Join(srcPath,include) because this will clean...
1
PHP
PHP
give a path to fix deprecation
282575c95abef18bb6b1b212e9b5d3ff7e78400e
<ide><path>src/Http/ServerRequest.php <ide> protected function normalizeHeaderName($name) <ide> * <ide> * @param string $name Name of the header you want. <ide> * @return string|null Either null on no header being set or the value of the header. <del> * @deprecated 4.0.0 The automatic fallback to env...
1
Javascript
Javascript
add example for a custom put request
3174f7333672c96613825976c883f79ad4d41016
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * when a param value needs to be obtained for a request (unless the param was overridden). <ide> * <ide> * Each key value in the parameter object is first bound to url template if present and then any <del> * excess keys...
1
Javascript
Javascript
fix flashvar name
f4e68d1a47872176a67394c575fe53c2569c7a72
<ide><path>compare/compare.js <del>_V_.flash.prototype.swf = "../flash/video-js.swf"; <add>_V_.options.flash.swf = "../flash/video-js.swf"; <ide> <ide> $(function(){ <ide> var tech, i, tname, player, <ide> techList = ["html5","flash"], <ide> props = "error,currentSrc,networkState,buffered,readyState,seek...
2
PHP
PHP
fix broken case. add test
9d2a7ca049e71d39e453ba8c34addb657b71b237
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> class Builder <ide> */ <ide> protected $passthru = [ <ide> 'insert', 'insertGetId', 'getBindings', 'toSql', <del> 'exists', 'count', 'min', 'max', 'avg', 'sum', 'getConnection', <add> 'exists', 'doesntExist', 'count', 'min', 'm...
4
Text
Text
update pairwise in spanish
f96953edff885f2bc5b9825f1eca155cee268495
<ide><path>curriculum/challenges/spanish/08-coding-interview-prep/algorithms/pairwise.spanish.md <ide> localeTitle: Por pares <ide> --- <ide> <ide> ## Description <del><section id="description"> Dada una matriz <code>arr</code> , encuentre pares de elementos cuya suma sea igual al segundo argumento <code>arg</code> y ...
1
Go
Go
get tests to compile again
a2812895154da7a32a1b24a0535b5cba4088eb89
<ide><path>integration/service/network_test.go <ide> func TestDockerNetworkReConnect(t *testing.T) { <ide> ctx := context.Background() <ide> <ide> name := t.Name() + "dummyNet" <del> net.CreateNoError(t, ctx, client, name, <add> net.CreateNoError(ctx, t, client, name, <ide> net.WithDriver("overlay"), <ide> net.W...
1
Java
Java
use computeifabsent in resourcebundlemessagesource
d60c55c2960ca6c86ce4cfb219e6bba4cf723815
<ide><path>spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java <ide> * <ide> * @author Rod Johnson <ide> * @author Juergen Hoeller <add> * @author Qimiao Chen <ide> * @see #setBasenames <ide> * @see ReloadableResourceBundleMessageSource <ide> * @see java.util.Resource...
1
Ruby
Ruby
add a space after the emoji for terminals
14ae87d5c907165dcce7554edaf0c82ec89c2881
<ide><path>Library/Homebrew/test/emoji_spec.rb <ide> ENV.delete("HOMEBREW_INSTALL_BADGE") <ide> end <ide> <del> it "returns 🍺 by default" do <add> it "returns 🍺 by default" do <ide> expect(subject).to eq "🍺" <ide> end <ide>
1