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
use safeemail instead
00e5c4465cd42c4ed8be3c8ee8aa9c6f09df5f87
<ide><path>database/factories/ModelFactory.php <ide> $factory->define(App\User::class, function (Faker\Generator $faker) { <ide> return [ <ide> 'name' => $faker->name, <del> 'email' => $faker->email, <add> 'email' => $faker->safeEmail, <ide> 'password' => bcrypt(str_random(10)), <ide> ...
1
Java
Java
fix typo in javadoc
e95391765ce7632bcef77b957855f2e100c5fee0
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java <ide> public String getNamespaceURI(Node node) { <ide> } <ide> <ide> /** <del> * Ges the local name for the supplied {@link Node}. <add> * Get the local name for the supplied {@link Node}. <ide> * <p>The...
1
Ruby
Ruby
create readme in tap path
881d68d35556097ef62031b7e5728e445d74d558
<ide><path>Library/Homebrew/cmd/tap-readme.rb <ide> def tap_readme <ide> EOS <ide> <ide> puts template if ARGV.verbose? <del> path = Pathname.new("./README.md") <add> path = HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-#{name}/README.md" <ide> raise "#{path} already exists" if path.exist? <ide> path....
1
Python
Python
add f2py2e f2cmap flag test
55b16bf711c7d1d1e7405320a0ead7d664c1278e
<ide><path>numpy/f2py/tests/test_f2py2e.py <ide> def retreal_f77(tmpdir_factory): <ide> fn.write_text(fdat, encoding="ascii") <ide> return fn <ide> <add>@pytest.fixture(scope="session") <add>def f2cmap_f90(tmpdir_factory): <add> """Generates a single f90 file for testing""" <add> fdat = util.getpath("tes...
1
Python
Python
replace deprecated get_or_create_global_step
a2b2088c52635b86f4a2ac70391118b9419b3c55
<ide><path>research/adversarial_text/graphs.py <ide> class VatxtModel(object): <ide> """ <ide> <ide> def __init__(self, cl_logits_input_dim=None): <del> self.global_step = tf.contrib.framework.get_or_create_global_step() <add> self.global_step = tf.train.get_or_create_global_step() <ide> self.vocab_freqs...
7
Text
Text
modify example of usage
235777ccc99ddfaa6d0e8c6510fb804c5deef234
<ide><path>model_cards/mrm8488/electricidad-small-discriminator/README.md <ide> import torch <ide> discriminator = ElectraForPreTraining.from_pretrained("mrm8488/electricidad-small-discriminator") <ide> tokenizer = ElectraTokenizerFast.from_pretrained("mrm8488/electricidad-small-discriminator") <ide> <del>sentence = "...
1
Javascript
Javascript
add $touched and $untouched states
adcc5a00bf582d2b291c18e99093bb0854f7217c
<ide><path>src/ng/directive/input.js <ide> -VALID_CLASS, <ide> -INVALID_CLASS, <ide> -PRISTINE_CLASS, <del> -DIRTY_CLASS <add> -DIRTY_CLASS, <add> -UNTOUCHED_CLASS, <add> -TOUCHED_CLASS <ide> */ <ide> <ide> var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=...
3
Ruby
Ruby
move methods to analytics_table function
1ab86acb0fb13bb9f52189a2ca410c461ce084fc
<ide><path>Library/Homebrew/cmd/info.rb <ide> def formulae_api_json(endpoint) <ide> end <ide> <ide> def analytics_table(category, days, results, os_version: false, cask_install: false) <add> valid_days = %w[30 90 365] <add> if days.present? <add> raise UsageError, "day must be one of #{valid_days.join("...
1
Javascript
Javascript
use cache api in reducecomputed
b1fe599c68339d69a34ce78f5b4611a5b30c34ec
<ide><path>packages/ember-metal/lib/computed.js <ide> Ember.computed = function(func) { <ide> to return <ide> @return {Object} the cached value <ide> */ <del>Ember.cacheFor = function cacheFor(obj, key) { <add>var cacheFor = Ember.cacheFor = function cacheFor(obj, key) { <ide> var meta = obj[META_KEY], <ide> ...
2
Javascript
Javascript
improve modal docs describing ios only support
ca9f0adee22280f20ba96563be1553b7a975923f
<ide><path>Libraries/Modal/Modal.js <ide> var RCTModalHostView = requireNativeComponent('RCTModalHostView', null); <ide> * Navigator instead of Modal. With a top-level Navigator, you have more control <ide> * over how to present the modal scene over the rest of your app by using the <ide> * configureScene property. ...
1
Java
Java
fix javadoc in mockrestserviceserver
ccb1153440e87c57f229f559f7754e7096a70b11
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java <ide> * &#47;&#47; Use the hotel instance... <ide> * <ide> * mockServer.verify(); <add> * </pre> <ide> * <ide> * <p>To create an instance of this class, use {@link #createServer(RestTemplate)} <ide> * and provi...
1
Javascript
Javascript
remove unused function
c820054a20766645e2812f50b0eb763eec080118
<ide><path>lib/Module.js <ide> const sortByDebugId = (a, b) => { <ide> <ide> const getFrozenArray = set => Object.freeze(Array.from(set)); <ide> <del>/* istanbul ignore next */ <del>const getDebugIdent = set => { <del> set.sortWith(sortByDebugId); <del> const chunks = set; <del> const list = []; <del> for(const chunk...
1
Python
Python
fix position biases + better tests
268d4f2099f90bb62949988c3b78596242e1d753
<ide><path>transformers/modeling_t5.py <ide> def forward(self, hidden_states, attention_mask=None, position_bias=None, <ide> position_bias=position_bias, <ide> head_mask=head_mask) <ide> hidden_states = self_attentio...
2
Text
Text
wrap the tip from at 80 chars [ci skip]
0e9a7059664eb9dee8e3afae60d26ff858d0d84b
<ide><path>guides/source/active_record_migrations.md <ide> change_column_default :products, :approved, false <ide> This sets `:name` field on products to a `NOT NULL` column and the default <ide> value of the `:approved` field to false. <ide> <del>TIP: Unlike `change_column` (and `change_column_default`), `change_colu...
1
Python
Python
use dict instead of if/else logic
0e79aba40d2497218736448ced708fcf4f8943b3
<ide><path>flask/sessions.py <ide> class TaggedJSONSerializer(object): <ide> def dumps(self, value): <ide> return json.dumps(_tag(value), separators=(',', ':')) <ide> <add> LOADS_MAP = { <add> ' t': tuple, <add> ' u': uuid.UUID, <add> ' b': b64decode, <add> ' m': Markup, <add...
1
Ruby
Ruby
move assertion setup into formula_assertions.rb
4bdfb27d9fb4958a5845e598fd7b9c7cefab94e7
<ide><path>Library/Homebrew/cmd/test.rb <ide> require "extend/ENV" <ide> require "timeout" <ide> require "debrew" <add>require "formula_assertions" <ide> <ide> module Homebrew <ide> TEST_TIMEOUT_SECONDS = 5*60 <ide> <del> if defined?(Gem) <del> begin <del> gem "minitest", "< 5.0.0" <del> rescue Gem::Loa...
2
Ruby
Ruby
fix failure with minitest 5.0.7
b77781c012ebb60bfeee114aef6597ab8d3d3016
<ide><path>actionview/test/template/url_helper_test.rb <ide> # encoding: utf-8 <ide> require 'abstract_unit' <add>require 'minitest/mock' <ide> <ide> class UrlHelperTest < ActiveSupport::TestCase <ide>
1
Javascript
Javascript
prevent default on all key navigations
5b480a85cb17b7455c6896e4d9b2f28abd080fc8
<ide><path>src/devtools/views/Components/Tree.js <ide> export default function Tree(props: Props) { <ide> // eslint-disable-next-line default-case <ide> switch (event.key) { <ide> case 'ArrowDown': <del> selectNextElementInTree(); <ide> event.preventDefault(); <add> selec...
1
PHP
PHP
fix empty string check
0e44e08cc3628e463d8ec654c081022ba70f93fb
<ide><path>src/Controller/Component/AuthComponent.php <ide> public function authCheck(EventInterface $event): ?Response <ide> /** @var \Cake\Controller\Controller $controller */ <ide> $controller = $event->getSubject(); <ide> <del> $action = $controller->getRequest()->getParam('action', ''); <de...
1
Ruby
Ruby
add shebang tests
3955e7e13b980ad4f8d38ffc3c0253d86204902e
<ide><path>Library/Homebrew/test/language/perl/shebang_spec.rb <add># frozen_string_literal: true <add> <add>require "language/perl" <add>require "utils/shebang" <add> <add>describe Language::Perl::Shebang do <add> let(:file) { Tempfile.new("perl-shebang") } <add> let(:perl_f) do <add> formula "perl" do <add> ...
2
Text
Text
add more valid triples to the test
67450094902c69ca53bd2d9b340056abe5f3b3f8
<ide><path>curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-9-special-pythagorean-triplet.english.md <ide> There exists exactly one Pythagorean triplet for which <var>a</var> + <var>b</va <ide> ```yml <ide> tests: <ide> - text: <code>specialPythagoreanTriplet(1000)</code> should return 318...
1
Javascript
Javascript
resolve default onrecoverableerror at root init
efd8f6442d1aa7c4566fe812cba03e7e83aaccc3
<ide><path>packages/react-art/src/ReactARTHostConfig.js <ide> export function preparePortalMount(portalInstance: any): void { <ide> export function detachDeletedInstance(node: Instance): void { <ide> // noop <ide> } <del> <del>export function logRecoverableError(error) { <del> // noop <del>} <ide><path>packages/reac...
16
Ruby
Ruby
check dom equality
3a62e0e868c8bf8e2c9312b4610ee057d514f038
<ide><path>actionpack/test/controller/html-scanner/sanitizer_test.rb <ide> def test_should_sanitize_div_style_expression <ide> end <ide> <ide> def test_should_sanitize_img_vbscript <del> assert_sanitized %(<img src='vbscript:msgbox("XSS")' />), '<img />' <add> assert_sanitized %(<img src='vbscript:msgbox("X...
1
Javascript
Javascript
change var to let
615ec972de176f7d14124e96f57595c2e3c05ad1
<ide><path>lib/buffer.js <ide> Buffer.from = function from(value, encodingOrOffset, length) { <ide> // Refs: https://esdiscuss.org/topic/isconstructor#content-11 <ide> const of = (...items) => { <ide> const newObj = createUnsafeBuffer(items.length); <del> for (var k = 0; k < items.length; k++) <add> for (let k = 0;...
1
Javascript
Javascript
add tests for querystring-relative urls
17716d149913f03f8010ed835c0dd9d411130b99
<ide><path>test/integration/client-navigation/pages/nav/query-only.js <add>import Link from 'next/link' <add>import { useRouter } from 'next/router' <add> <add>export async function getServerSideProps({ query: { prop = '' } }) { <add> return { props: { prop } } <add>} <add> <add>export default function Page({ prop }) ...
2
Javascript
Javascript
destroy components when changed on re-render
ac846c375b44089c6e0d9d6c3cb953ced5c30d7d
<ide><path>packages/ember-htmlbars/lib/keywords/component.js <ide> export default { <ide> }, <ide> <ide> render(morph, ...rest) { <add> if (morph.state.manager) { <add> morph.state.manager.destroy(); <add> } <add> <ide> // Force the component hook to treat this as a first-time render, <ide> // b...
4
Javascript
Javascript
use jpx and jpeg in error messages
e3a3ec6f2e3b57bd310ed8cb0d663946dae9b2d2
<ide><path>src/jpx.js <ide> var JpxImage = (function JpxImageClosure() { <ide> } <ide> r = 0; <ide> } <del> error('Out of packets'); <add> error('JPX error: Out of packets'); <ide> }; <ide> } <ide> function ResolutionLayerComponentPositionIterator(context) { <ide> var JpxImage = ...
3
Javascript
Javascript
add some detail about `$onchanges`
f63c46406f4fe98394e1cfb00d57a535c77cffdc
<ide><path>src/ng/compile.js <ide> * * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The <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, pre...
1
Python
Python
make django rest framework as zip unsafe
60f5b5d9f364c383662fb6ae8d210f31e9621c09
<ide><path>setup.py <ide> def get_package_data(package): <ide> packages=get_packages('rest_framework'), <ide> package_data=get_package_data('rest_framework'), <ide> install_requires=[], <add> zip_safe=False, <ide> classifiers=[ <ide> 'Development Status :: 5 - Production/Stable', <ide> ...
1
Ruby
Ruby
make use of tab#to_s
ad58cd88ab04a2c4047fe799b27da78dd67fbb32
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info_formula f <ide> kegs.reject! {|keg| keg.basename.to_s == '.DS_Store' } <ide> kegs = kegs.map {|keg| Keg.new(keg) }.sort_by {|keg| keg.version } <ide> kegs.each do |keg| <del> print "#{keg} (#{keg.abv})" <del> print " *" if keg.linked...
1
Text
Text
eliminate _you_ from n-api doc
4970e2bec8a15739739ac4317158233c8cf32c6d
<ide><path>doc/api/n-api.md <ide> napi_status napi_fatal_exception(napi_env env, napi_value err); <ide> ``` <ide> <ide> - `[in] env`: The environment that the API is invoked under. <del>- `[in] err`: The error you want to pass to `'uncaughtException'`. <add>- `[in] err`: The error that is passed to `'uncaughtException...
1
Go
Go
trim quotes from tls flags
abe32de6b46825300f612864e6b4c98606a5bb0e
<ide><path>cli/flags/common.go <ide> func (commonOpts *CommonOptions) InstallFlags(flags *pflag.FlagSet) { <ide> <ide> // TODO use flag flags.String("identity"}, "i", "", "Path to libtrust key file") <ide> <del> commonOpts.TLSOptions = &tlsconfig.Options{} <add> commonOpts.TLSOptions = &tlsconfig.Options{ <add> CAF...
4
Java
Java
fix bug with deriving sockjs path
81bce424cb0abac468ea5c5e1cfa6f8d071e48ba
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/AbstractSockJsService.java <ide> public abstract class AbstractSockJsService implements SockJsService, SockJsConf <ide> <ide> private final TaskScheduler taskScheduler; <ide> <del> private final List<String> sockJsPrefixes = new ArrayLis...
2
Text
Text
move new changelog entry to the top
d9039cd9600bcdc7adff41a54787f62658488173
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Prevent raising EOFError on multipart GET request (IE issue). *Adam Stankiewicz* <add> <ide> * Rename all action callbacks from *_filter to *_action to avoid the misconception that these <ide> callbacks are only suited for tra...
1
Go
Go
add test coverage to pkg/jsonlog
e7a9a0bed84dc04db8d68dfc48fe095c5ce3edcb
<ide><path>pkg/jsonlog/jsonlog_marshalling.go <ide> // buf.WriteString(`}`) <ide> // return nil <ide> // } <add>// func (mj *JSONLog) MarshalJSONBuf(buf *bytes.Buffer) error { <add>// if len(mj.Log) != 0 { <add>// - if first == true { <add>// - first = false <...
5
Javascript
Javascript
remove old run script
7d517458278bd364935e58abcae0944ea0766157
<ide><path>benchmark/run.js <del>var path = require("path"); <del>var util = require("util"); <del>var childProcess = require("child_process"); <del>var benchmarks = [ "timers.js" <del> , "process_loop.js" <del> , "static_http_server.js" <del> ]; <del> <del>var benchmarkD...
1
Text
Text
add v3.14.1 to changelog.md
b8ebef5d0a14f1f4a67436e6a46699266e81c635
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.14.1 (October 30, 2019) <add> <add>- [#18244](https://github.com/emberjs/ember.js/pull/18244) [BUGFIX] Fix query param assertion when using the router services `transitionTo` to redirect _during_ an existing transition. <add> <ide> ### v3.14.0 (October ...
1
PHP
PHP
fix failing test on windows
691df6f17f1e8ac0c88704d5fb7a05f3c5b4d9ab
<ide><path>lib/Cake/Test/TestCase/BasicsTest.php <ide> public function testFileExistsInPath() { <ide> <ide> $this->assertEquals(fileExistsInPath('file1.php'), $file1); <ide> $this->assertEquals(fileExistsInPath('file2.php'), $file2); <del> $this->assertEquals(fileExistsInPath('folder1/file2.php'), $file2); <add> ...
1
Go
Go
fix hijackedconn reading from buffer
f094a05e260d8748f0fd2018a8a908b4189e454d
<ide><path>client/hijack.go <ide> func (cli *Client) setupHijackConn(req *http.Request, proto string) (net.Conn, e <ide> // object that implements CloseWrite iff the underlying connection <ide> // implements it. <ide> if _, ok := c.(types.CloseWriter); ok { <del> c = &hijackedConnCloseWriter{c, br} <add> c = ...
1
Text
Text
add franziska hinkelmann to the ctc
c7e8aff83972fe907c63cbffe25865ec38ff1189
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Colin Ihrig** &lt;cjihrig@gmail.com&gt; <ide> * [evanlucas](https://github.com/evanlucas) - <ide> **Evan Lucas** &lt;evanlucas@me.com&gt; (he/him) <add>* [fhinkel](https://github.com/fhinkel) - <add>**Franziska Hinkelma...
1
Ruby
Ruby
fix stack trace lines on class_eval
13e00ce6064fd1ce143071e3531e65f64047b013
<ide><path>actionpack/lib/action_controller/polymorphic_routes.rb <ide> def polymorphic_path(record_or_hash_or_array, options = {}) <ide> end <ide> <ide> %w(edit new).each do |action| <del> module_eval <<-EOT, __FILE__, __LINE__ <add> module_eval <<-EOT, __FILE__, __LINE__ + 1 <ide> def #{act...
15
Text
Text
fix title level at tls.md
33aa953f918f624a44e538baf2a3ee41570ac303
<ide><path>doc/api/tls.md <ide> As with checking for the server [`secureConnection`](#tls_event_secureconnection <ide> event, `pair.cleartext.authorized` should be inspected to confirm whether the <ide> certificate used is properly authorized. <ide> <del>## tls.createSecurePair([context][, isServer][, requestCert][, r...
1
Javascript
Javascript
add more data passed through with projectsettings
1483c0c96d38cdce574960df2662f237168eeea0
<ide><path>src/atom-environment.js <ide> class AtomEnvironment { <ide> }) <ide> this.config.resetUserSettings(userSettings) <ide> <del> if (projectSettings != null) { <del> this.project.resetProjectSettings(projectSettings) <add> if (projectSettings != null && projectSettings.paths != null || projec...
6
Javascript
Javascript
add buffer testcase for resetting kzerofill
fea3070ec46d8d231b95ff100170d16306814ee8
<ide><path>test/parallel/test-buffer.js <ide> assert.equal(SlowBuffer.prototype.offset, undefined); <ide> // Check pool offset after that by trying to write string into the pool. <ide> assert.doesNotThrow(() => Buffer.from('abc')); <ide> } <add> <add> <add>// Test failed or zero-sized Buffer allocations not affecti...
1
Text
Text
add newline formatting for notes tip
5bfc6de78bf39a523bc51a3619224e14e87f7b51
<ide><path>docs/how-to-work-on-coding-challenges.md <ide> The following is an example of code: <ide> ``` <ide> ```` <ide> <del>- Additional information in the form of a note should be formatted `**Note:** Rest of note text...` <del>- If multiple notes are needed, then list all of the notes in separate sentences using ...
1
Python
Python
add api conversion interface for dense layer
5516c8fb42f01622c9a4a31c19cb46ae68cfa0f6
<ide><path>keras/layers/core.py <ide> from ..utils.generic_utils import func_dump <ide> from ..utils.generic_utils import func_load <ide> from ..utils.generic_utils import deserialize_keras_object <add>from ..legacy import interfaces <ide> <ide> <ide> class Masking(Layer): <ide> class Dense(Layer): <ide> the ...
3
Text
Text
fix typo in blogpost
96bd63cc4bc36791aa6b7fc4559e5c5e9e00bab7
<ide><path>docs/_posts/2013-07-17-react-v0-4-0.md <ide> When you're ready, [go download it](/react/downloads.html)! <ide> <ide> * Support for comment nodes `<div>{/* this is a comment and won't be rendered */}</div>` <ide> * Children are now transformed directly into arguments instead of being wrapped in an array <del...
1
PHP
PHP
fix double printing of models in consoleshell
810fd28186b05462a2b7a1da3bf570c157f985d3
<ide><path>lib/Cake/Console/Command/ConsoleShell.php <ide> public function startup() { <ide> <ide> foreach ($this->models as $model) { <ide> $class = $model; <del> $this->models[$model] = $class; <ide> App::uses($class, 'Model'); <ide> $this->{$class} = new $class(); <ide> }
1
Javascript
Javascript
add tests for server.connections
97f001ab167875c8e8e8418fa55ff14ef76a4064
<ide><path>lib/net.js <ide> function Server(options, connectionListener) { <ide> return this._connections; <ide> }, 'Server.connections property is deprecated. ' + <ide> 'Use Server.getConnections method instead.'), <del> set: internalUtil.deprecate((val) => { <del> return (this._connections = ...
3
Mixed
Ruby
treat invalid uuid as nil
f378f23653259dee98061b279b628eb774e6faf1
<ide><path>activerecord/CHANGELOG.md <add>* PostgreSQL invalid `uuid` are convert to nil. <add> <add> *Abdelkader Boudih* <add> <ide> * Fix the schema dump generated for tables without constraints and with <ide> primary key with default value of custom PostgreSQL function result. <ide> <ide><path>active...
3
Python
Python
add test for poisson exceptions
df09a3feb85079eadb91a5d200494ee3de721c56
<ide><path>numpy/random/tests/test_random.py <del>from numpy.testing import TestCase, run_module_suite, assert_ <add>from numpy.testing import TestCase, run_module_suite, assert_,\ <add> assert_raises <ide> from numpy import random <ide> import numpy as np <ide> <ide> def test_poisson(self): <ide> ...
1
PHP
PHP
add all method to console kernel
81614916082260c524b5a178e896f3f0ce79b820
<ide><path>src/Illuminate/Contracts/Console/Kernel.php <ide> public function handle($input, $output = null); <ide> */ <ide> public function call($command, array $parameters = array()); <ide> <add> /** <add> * Get all of the commands registered with the console. <add> * <add> * @return array <add> */ <add> publi...
2
Javascript
Javascript
fix some bugs in keystream
7bb4a5bb8339c0aa0db9afe707989a6fd4aecef7
<ide><path>packages/ember-metal/lib/streams/key-stream.js <ide> function KeyStream(source, key) { <ide> <ide> this.init(); <ide> this.source = source; <del> this.obj = undefined; <add> this.dependency = this.addDependency(source); <add> this.observedObject = undefined; <ide> this.key = key; <ide> } <ide> <id...
1
Javascript
Javascript
add test for `#with view as foo`
c6a8f46f3e9337ccfa962f6a86ee3204758210e8
<ide><path>packages/ember-handlebars/tests/helpers/with_test.js <ide> test("it should support #with Foo.bar as qux", function() { <ide> equal(view.$().text(), "updated", "should update"); <ide> }); <ide> <add>module("Handlebars {{#with keyword as foo}}"); <add> <add>test("it should support #with view as foo", functi...
1
Text
Text
add 4.1.0-beta.1 to changelog
0c0f62e5e13e856d228c44becd0fd5c5fbf99db7
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.1.0-beta.1 (November 19, 2021) <add> <add>- [#19772](https://github.com/emberjs/ember.js/pull/19772) / [#19826](https://github.com/emberjs/ember.js/pull/19826) [FEATURE] Add a `@cached` decorator per [RFC #0566](https://github.com/emberjs/rfcs/blob/af64...
1
Ruby
Ruby
use the association directly in other places too
31d101879f1acae604d24d831a4b82a4482acf31
<ide><path>activerecord/lib/active_record/associations/association_collection.rb <ide> def count(column_name = nil, options = {}) <ide> <ide> @reflection.klass.count_by_sql(custom_counter_sql) <ide> else <del> <ide> if @reflection.options[:uniq] <ide> # This is needed because 'S...
3
Go
Go
add only legacy plugins to the legacy lookup map
8fd779dc28a11d8727d76e9553379b0c854f7c4c
<ide><path>pkg/plugins/plugins.go <ide> func (p *Plugin) Client() *Client { <ide> return p.client <ide> } <ide> <add>// IsLegacy returns true for legacy plugins and false otherwise. <add>func (p *Plugin) IsLegacy() bool { <add> return true <add>} <add> <ide> // NewLocalPlugin creates a new local plugin. <ide> func Ne...
4
Mixed
Ruby
add support for conditional values to tagbuilder
f1c63d8673e87589a0543075534e7ad03b8bd93f
<ide><path>actionview/CHANGELOG.md <add>* Add support for conditional values to TagBuilder. <add> <add> *Joel Hawksley* <add> <ide> * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present. <ide> <ide> *Younes SERRAJ* <ide><path>actionview/lib/action_view/helpers/tag_helper.rb ...
3
Ruby
Ruby
move skeleton methods from av to absc
aea02eb43001d85def0e69dce76fde0757040089
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> module Rendering <ide> self.protected_instance_variables = [] <ide> end <ide> <add> # Normalize arguments, options and then delegates render_to_body and <add> # sticks the result in self.response_body. <add> # :api: public <add> def...
2
Text
Text
remove dot character from "pagination_class"
d0995fac70549bd8a4bba4510ab89b95f59ba622
<ide><path>docs/api-guide/pagination.md <ide> If you want to modify particular aspects of the pagination style, you'll want to <ide> page_size_query_param = 'page_size' <ide> max_page_size = 1000 <ide> <del>You can then apply your new style to a view using the `.pagination_class` attribute: <add>You ca...
1
Go
Go
make libnetwork compile on freebsd (again)
94ca1f5bba1aff9c58f9c53390c18a3aef7629f0
<ide><path>libnetwork/sandbox/interface_freebsd.go <add>package sandbox <add> <add>// IfaceOption is a function option type to set interface options <add>type IfaceOption func() <ide><path>libnetwork/sandbox/namespace_unsupported.go <del>// +build !linux,!windows <add>// +build !linux,!windows,!freebsd <ide> <ide> pac...
5
Javascript
Javascript
use the worker
c466450aae05bd29e72d2356b647a6e595a377c8
<ide><path>worker.js <ide> var WorkerPDFDoc = (function() { <ide> <ide> this.pageCache = []; <ide> <del> var useWorker = false; <add> var useWorker = true; <ide> <ide> if (useWorker) { <ide> var worker = new Worker("../worker/boot.js");
1
Python
Python
update configure for node.js 12
41ba699973388f7ff7464e1606457c630a8189f9
<ide><path>configure.py <ide> def check_compiler(o): <ide> ok, is_clang, clang_version, gcc_version = try_check_compiler(CXX, 'c++') <ide> if not ok: <ide> warn('failed to autodetect C++ compiler version (CXX=%s)' % CXX) <del> elif sys.platform.startswith('aix') and gcc_version < (6, 3, 0): <del> warn('C++ ...
1
Text
Text
fix syntax in n-api documentation
b4f745ec5ae515c35aa57c576b997bb1d7f96437
<ide><path>doc/api/n-api.md <ide> napiVersion: 1 <ide> ```C <ide> NAPI_EXTERN napi_status napi_reference_unref(napi_env env, <ide> napi_ref ref, <del> uint32_t* result);); <add> uint32_t*...
1
Python
Python
add testcase for the fix to bug
00ee332e9d95362a3d487f784cdc8fc06cf0832c
<ide><path>numpy/ma/tests/test_core.py <ide> def test_fillvalue_exotic_dtype(self): <ide> control = np.array((0, 0, 0), dtype="int, float, float").astype(ndtype) <ide> assert_equal(_check_fill_value(0, ndtype), control) <ide> <add> def test_fillvalue_datetime_timedelta(self): <add> # Test def...
1
Go
Go
add daniel lewin to names collection
bc0e2f1a6ebf6f9235ee8aa921570533db1ec57a
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Henrietta Swan Leavitt - she was an American astronomer who discovered the relation between the luminosity and the period of Cepheid variable stars. https://en.wikipedia.org/wiki/Henrietta_Swan_Leavitt <ide> "leavitt", <ide> <add> //Daniel Lewi...
1
Ruby
Ruby
add pre-defined variant examples
0d1633c8c7a3e7d645c7d0aa8e9c59594c6ea94b
<ide><path>activestorage/app/models/active_storage/attachment.rb <ide> def purge_later <ide> <ide> # Returns an ActiveStorage::Variant or ActiveStorage::VariantWithRecord <ide> # instance for the attachment with the set of +transformations+ provided. <add> # Example: <add> # <add> # avatar.variant(resize_to_l...
1
Javascript
Javascript
improve docs for coreobject#concatenatedproperties
d74fb5479b8b0a0a9dc2c6f78d728b6bc8bc048f
<ide><path>packages/ember-runtime/lib/system/core_object.js <ide> CoreObject.PrototypeMixin = Mixin.create({ <ide> are also concatenated, in addition to `classNames`. <ide> <ide> This feature is available for you to use throughout the Ember object model, <del> although typical app developers are likely to u...
1
Ruby
Ruby
generate unique patch filenames
54f1837d237b2c1b09d96815bd8a990ac1c951e5
<ide><path>Library/Homebrew/patches.rb <ide> class Patches <ide> def initialize patches <ide> @patches = [] <ide> return if patches.nil? <del> <add> n = 0 <ide> normalize_patches(patches).each do |patch_p, urls| <ide> # Wrap the urls list in an array if it isn't already; <ide> # DATA.each d...
1
PHP
PHP
replace regex with instanceof check
2d6ab89201cbc07e25ecfcb9007fa98873641154
<ide><path>src/Database/Driver/Sqlserver.php <ide> class Sqlserver extends \Cake\Database\Driver <ide> 'username' => '', <ide> 'password' => '', <ide> 'database' => 'cake', <del> 'encoding' => PDO::SQLSRV_ENCODING_UTF8, <add> // PDO::SQLSRV_ENCODING_UTF8 <add> 'encoding' => ...
3
Text
Text
add table of contents in building.md
a21af5b1f2e337395482d1af788c1838bac7b713
<ide><path>BUILDING.md <ide> If you can reproduce a test failure consistently, search for it in the <ide> [Node.js issue tracker](https://github.com/nodejs/node/issues) or <ide> file a new issue. <ide> <add>## Table of Contents <add> <add>* [Supported platforms](#supported-platforms) <add> * [Input](#input) <add> * ...
1
Java
Java
expand scope of springfailontimeouttests
4f3a7dd9b4b4b95ccebf276185163cbdd815cb8d
<ide><path>spring-test/src/main/java/org/springframework/test/context/junit4/statements/SpringFailOnTimeout.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License...
3
Text
Text
add translation kr/threejs-material-table.md
7be4e4279a6f2cf549bc7eaba9b346cdc6b4a223
<ide><path>threejs/lessons/kr/threejs-material-table.md <add>Title: 재질(Material) 속성표 <add>Description: Three.js의 각 재질이 지원하는 속성에 대한 표입니다 <add>TOC: 재질(Material) 속성표 <add> <add>Three.js에서 주로 쓰는 재질(material)은 Mesh 재질입니다. 아래는 각 재질이 지원하는 속성을 표로 나타낸 것입니다. <add> <add><div> <add><div id="material-table" class="threejs_center"><...
1
Ruby
Ruby
preserve installed_on_request for dependencies
ef82b188f2a3977b56db463ef2f0cb0c8f5727e9
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install_dependency(dep, inherited_options) <ide> end <ide> <ide> fi = FormulaInstaller.new(df) <del> fi.options |= tab.used_options <del> fi.options |= Tab.remap_deprecated_options(df.deprecated_options, dep.options) <del> ...
1
Ruby
Ruby
provide a post title for sqlite3
18aa19c68a0ff2dbb3ab77eb35343b2e2a145441
<ide><path>activerecord/test/cases/associations/eager_test.rb <ide> def test_duplicate_middle_objects <ide> end <ide> <ide> def test_including_duplicate_objects_from_belongs_to <del> popular_post = Post.create!(:body => "I like cars!") <add> popular_post = Post.create!(:title => 'foo', :body => "I like cars!...
1
Python
Python
remove unused import
0e02b74d418d742211c782dfa3e1377a270225e8
<ide><path>libcloud/test/test_httplib_ssl.py <ide> import os <ide> import sys <ide> import os.path <del>import warnings <ide> <ide> from mock import patch <ide>
1
Ruby
Ruby
remove dead code
f906d13ef29c102839fd55250adbb01109e8404d
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def initialize test, command, options={} <ide> @time = 0 <ide> end <ide> <del> def log_file_path full_path=true <add> def log_file_path <ide> file = "#{@category}.#{@name}.txt" <del> return file unless @test.log_root and full_path <del> @tes...
1
Python
Python
update is_new_osx function
1bf2082ac48ab02300177c8a630e2fa5e74b7b7d
<ide><path>setup.py <ide> #!/usr/bin/env python <ide> import sys <add>import platform <ide> from distutils.command.build_ext import build_ext <ide> from distutils.sysconfig import get_python_inc <ide> import distutils.util <ide> <ide> <ide> def is_new_osx(): <del> """Check whether we're on OSX >= 10.10""" <add> ...
1
Ruby
Ruby
remove trailing newline check
3546c39581aac81e811c7ab26aab0be10c490a8a
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_file <ide> problem "'inreplace ... do' was used for a single substitution (use the non-block form instead)." <ide> end <ide> <del> problem "File should end with a newline" unless text.trailing_newline? <del> <ide> if formula.core_for...
1
Javascript
Javascript
replace fixturesdir with fixtures module
b93285454ac96952a33ed9655661c2bbea35667f
<ide><path>test/es-module/test-esm-encoded-path-native.js <ide> 'use strict'; <del>const common = require('../common'); <add>require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const { spawn } = require('child_process'); <ide> <del>const native = `${...
1
Javascript
Javascript
improve implementation accordingly to pr reviews
4510e9311f7477547e82cbed7894772635e88a84
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> } else { <ide> <del> geometryKey = primitiveDef.indices + ':' + createAttributesKey( primitiveDef.attributes ) + primitiveDef.mode; <add> geometryKey = primitiveDef.indices + ':' + createAttributesKey( primitiveDef...
1
PHP
PHP
add language line for the in_array validation rule
789c75c24ace662218d4656d3754fc343e34bac6
<ide><path>resources/lang/en/validation.php <ide> 'filled' => 'The :attribute field is required.', <ide> 'image' => 'The :attribute must be an image.', <ide> 'in' => 'The selected :attribute is invalid.', <add> 'in_array' => 'The :attribute field...
1
Javascript
Javascript
fix nit and comment
fdc6beed1a3aab063752a395a42432251b3443fe
<ide><path>src/core/ReactNativeComponent.js <ide> ReactNativeComponent.Mixin = { <ide> if (nextProp) { <ide> nextProp = nextProps.style = merge(nextProp); <ide> } <del> if (lastProp) { <del> for (styleName in lastProp) { <del> if (lastProp.hasOwnProperty(styleName) &...
2
PHP
PHP
clear commands
fe1cbdf3b51ce1235b8c91f5e603f1e9306e4f6f
<ide><path>src/Illuminate/Foundation/Console/OptimizeClearCommand.php <add><?php <add> <add>namespace Illuminate\Foundation\Console; <add> <add>use Illuminate\Console\Command; <add> <add>class OptimizeClearCommand extends Command <add>{ <add> /** <add> * The console command name. <add> * <add> * @var str...
3
Go
Go
send warnings to stderr
b0efbcc34a77d5d8869cc381064d3741b67f9776
<ide><path>cli/command/stack/deploy.go <ide> func runDeploy(dockerCli *command.DockerCli, opts deployOptions) error { <ide> <ide> unsupportedProperties := loader.GetUnsupportedProperties(configDetails) <ide> if len(unsupportedProperties) > 0 { <del> fmt.Printf("Ignoring unsupported options: %s\n\n", <add> fmt.Fpri...
1
Text
Text
move tunniclm to emeritus
dd03709148ec49b55792a1e29144634a323326b0
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Trivikram Kamat** &lt;trivikr.dev@gmail.com&gt; <ide> * [Trott](https://github.com/Trott) - <ide> **Rich Trott** &lt;rtrott@gmail.com&gt; (he/him) <del>* [tunniclm](https://github.com/tunniclm) - <del>**Mike Tunnicl...
1
Ruby
Ruby
remove unused defined association
c073240f70de81639a340ab68b001a77ffb6237e
<ide><path>activerecord/test/cases/relation/merging_test.rb <ide> class MergingDifferentRelationsTest < ActiveRecord::TestCase <ide> assert_equal ["Mary", "Mary", "Mary", "David"], posts_by_author_name <ide> end <ide> <del> test "relation merging (using a proc argument)" do <add> test "relation merging (using...
2
Ruby
Ruby
initialize instance variables
580333fdc200eb7d2422f087e28d912bc324c42c
<ide><path>railties/lib/rails/application.rb <ide> def inherited(base) <ide> <ide> def initialize <ide> super <del> @initialized = false <del> @reloaders = [] <add> @initialized = false <add> @reloaders = [] <add> @routes_reloader = nil <add> @env_config = n...
1
PHP
PHP
remove alias that isnt needed
a14a1208adc2e94e85d1afb0c36c5250a5668b4d
<ide><path>app/Http/Kernel.php <ide> class Kernel extends HttpKernel <ide> protected $routeMiddleware = [ <ide> 'auth' => \App\Http\Middleware\Authenticate::class, <ide> 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, <del> 'bindings' => \Illuminate\Routing\Middl...
1
Javascript
Javascript
set headers with falsy values
e9a222418a029d830698444cf95bf13f8ad75805
<ide><path>src/ng/httpBackend.js <ide> function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, <ide> var xhr = new XHR(); <ide> xhr.open(method, url, true); <ide> forEach(headers, function(value, key) { <del> if (value) xhr.setRequestHeader(key, value); <add> if ...
2
Javascript
Javascript
add a new sample with some comments
519c514092e98750fdc541b50361f9fe1544efb9
<ide><path>spec/fixtures/sample-with-comments.js <add>var quicksort = function () { <add> /* <add> this is a multiline comment <add> it is, I promise <add> */ <add> var sort = function(items) { <add> // This is a collection of <add> // single line comments. <add> // Wowza <add> if (items.length <= ...
1
Ruby
Ruby
duplicate column_defaults properly (closes )
c5176023a0585278c533610daf1eaf6ba7d19cd8
<ide><path>activerecord/lib/active_record/core.rb <ide> require 'active_support/concern' <ide> require 'active_support/core_ext/hash/indifferent_access' <add>require 'active_support/core_ext/object/duplicable' <ide> require 'thread' <ide> <ide> module ActiveRecord <ide> def relation #:nodoc: <ide> # # Instantiat...
3
Python
Python
fix polynomial tests
a2a9dfb692e36bdaf5667fb0d41e05c79d77f981
<ide><path>numpy/lib/tests/test_polynomial.py <ide> def test_polyfit(self) : <ide> x = np.linspace(0,2,7) <ide> y = np.polyval(c,x) <ide> err = [1,-1,1,-1,1,-1,1] <del> weights = arange(8,1,-1)**2/7.0 <add> weights = np.arange(8,1,-1)**2/7.0 <ide> <ide> # check 1D case <id...
1
Go
Go
increase memory limit in test cases
64fd3e89c7f6164b5522b5e611e7daf4a2bdae9c
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestRunEchoStdout(t *testing.T) { <ide> <ide> // "test" should be printed <ide> func TestRunEchoStdoutWithMemoryLimit(t *testing.T) { <del> runCmd := exec.Command(dockerBinary, "run", "-m", "4m", "busybox", "echo", "test") <add> runCmd := exec.Command(docker...
1
Ruby
Ruby
add -dbuild_testing=off to std_cmake_args
0db7c0ba8a1e5234c6265c93da96dcf57ceb8f38
<ide><path>Library/Homebrew/formula.rb <ide> def std_cmake_args <ide> -DCMAKE_FIND_FRAMEWORK=LAST <ide> -DCMAKE_VERBOSE_MAKEFILE=ON <ide> -Wno-dev <add> -DBUILD_TESTING=OFF <ide> ] <ide> <ide> # Avoid false positives for clock_gettime support on 10.11.
1
PHP
PHP
fix sqlite fixture generation
47cad96da0cf5765de3e2105b5b714de96feb931
<ide><path>src/Database/Schema/SqliteSchema.php <ide> public function columnSql(Table $table, $name) <ide> if (in_array($data['type'], $hasUnsigned, true) && <ide> isset($data['unsigned']) && $data['unsigned'] === true <ide> ) { <del> $out .= ' UNSIGNED'; <add> if ($dat...
1
PHP
PHP
add stricter validation to testtask
8981f49bd5ab679b894c70809a47346f7b5b08d1
<ide><path>lib/Cake/Console/Command/Task/TestTask.php <ide> public function getClassName($objectType) { <ide> $this->out(++$key . '. ' . $option); <ide> $keys[] = $key; <ide> } <del> $selection = $this->in(__d('cake_console', 'Choose an existing class, or enter the name of a class that does not exist')); <del>...
1
Text
Text
hide solution from tests in chinese challenge
b1206f0b53062d65f962834c64f014fe03ccbd00
<ide><path>curriculum/challenges/chinese/01-responsive-web-design/css-grid/use-grid-area-without-creating-an-areas-template.chinese.md <ide> localeTitle: 在不创建网格区域模板的情况下使用网格区域 <ide> <ide> ```yml <ide> tests: <del> - text: <code>item5</code>类应该具有值为<code>3/1/4/4</code>的<code>grid-area</code>属性。 <del> testString: 'ass...
1
Python
Python
increase timeout of running wpt
a157e5565898936b467b416e0215136d9d28ea2f
<ide><path>tools/test.py <ide> def GetVm(self, arch, mode): <ide> <ide> def GetTimeout(self, mode, section=''): <ide> timeout = self.timeout * TIMEOUT_SCALEFACTOR[ARCH_GUESS or 'ia32'][mode] <del> if section == 'pummel' or section == 'benchmark' or section == 'wpt': <add> if section == 'pummel' or section ...
1
Javascript
Javascript
add a way to disable fonts that won't load
d7edbe28e97a0be7d951f9111f27fbd4baf00265
<ide><path>fonts.js <ide> var kMaxWaitForFontFace = 1000; <ide> var fontCount = 0; <ide> var fontName = ""; <ide> <add>/** <add> * If for some reason one want to debug without fonts activated, it just need <add> * to turn this pref to true/false. <add> */ <add>var kDisableFonts = false; <add> <ide> /** <ide> * Hold ...
2