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 |
|---|---|---|---|---|---|
Mixed | Ruby | add additional options to time `change` methods | 851b7f866e13518d900407c78dcd6eb477afad06 | <ide><path>activesupport/CHANGELOG.md
<add>* Add support for `:offset` and `:zone` to `ActiveSupport::TimeWithZone#change`
<add>
<add> *Andrew White*
<add>
<add>* Add support for `:offset` to `Time#change`
<add>
<add> Fixes #28723.
<add>
<add> *Andrew White*
<add>
<ide> * Add `fetch_values` for `HashWith... | 6 |
PHP | PHP | apply fixes from styleci | 3f93af4fa18a16caf32b916cea813984ba4243c7 | <ide><path>tests/Routing/RoutingUrlGeneratorTest.php
<ide> public function testBasicRouteGeneration()
<ide> * With Default Parameter
<ide> */
<ide> $url->defaults(['locale' => 'en']);
<del> $route = new Route(['GET'], 'foo', ['as' => 'defaults', 'domain' => '{locale}.example.com', funct... | 1 |
Javascript | Javascript | add test for 06cfff9 regression | 6bf85bc81e7e61b4126c50d05555d5928343423b | <ide><path>test/parallel/test-http-request-dont-override-options.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const http = require('http');
<add>
<add>var requests = 0;
<add>
<add>http.createServer(function(req, res) {
<add> res.writeHead(200);
<add>... | 1 |
Javascript | Javascript | fix layout in casting screen | d34a75e9e5932adcac4a16f5b815bb909c3aa0dd | <ide><path>Libraries/Components/StatusBar/StatusBar.js
<ide> class StatusBar extends React.Component<Props> {
<ide> if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {
<ide> NativeStatusBarManagerAndroid.setHidden(mergedProps.hidden.value);
<ide> }
<del> if (!oldProps... | 1 |
Javascript | Javascript | add todo notes for nativeid hack | 8fc8cd9aeacde05cc9e85452bf25eed3e055e79b | <ide><path>Libraries/Animated/src/createAnimatedComponent.js
<ide> function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
<ide> {...passthruProps}
<ide> style={mergedStyle}
<ide> ref={this._setComponentRef}
<del> nativeID={this._isFabric() ? 'animatedComponent... | 3 |
Javascript | Javascript | add a key to line number divs | c2dcc0121b71e770f4c542c975129efae5296e1b | <ide><path>src/text-editor-component.js
<ide> class TextEditorComponent {
<ide> children = new Array(visibleTileCount)
<ide>
<ide> let previousBufferRow = (firstTileStartRow > 0) ? this.getModel().bufferRowForScreenRow(firstTileStartRow - 1) : -1
<add> let softWrapCount = 0
<ide> for (let tileSt... | 1 |
Ruby | Ruby | allow overriding filename in `blob#service_url` | 8f52d93576ec23c8e87c96f048585445f871efe5 | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> def representable?
<ide> # with users. Instead, the +service_url+ should only be exposed as a redirect from a stable, possibly authenticated URL.
<ide> # Hiding the +service_url+ behind a redirect also gives you the power to change services without up... | 2 |
Javascript | Javascript | set background to null only if it's a color | 4f708fbcd1d22f3e79b07bbf30a1e6189aa05bca | <ide><path>src/extras/PMREMGenerator.js
<ide> class PMREMGenerator {
<ide> if ( background && background.isColor ) {
<ide>
<ide> _backgroundColor.copy( background );
<add> scene.background = null;
<ide>
<ide> } else {
<ide>
<ide> class PMREMGenerator {
<ide> _backgroundColor.multiplyScalar( Math.pow( 2.0,... | 1 |
Go | Go | create the working directory on container creation | cde0ed67a14e3983ba83af8c75434558c865b2bc | <ide><path>daemon/create_unix.go
<ide> func (daemon *Daemon) createContainerPlatformSpecificSettings(container *contain
<ide> }
<ide> defer daemon.Unmount(container)
<ide>
<add> if err := container.SetupWorkingDirectory(); err != nil {
<add> return err
<add> }
<add>
<ide> for spec := range config.Volumes {
<ide> ... | 3 |
Python | Python | simplify code in cov function a bit | a0bd6c78671a63b9aa1f875bffb4937e4991bbd6 | <ide><path>numpy/lib/function_base.py
<ide> def cov(m, y=None, rowvar=1, bias=0, ddof=None, fweights=None, aweights=None):
<ide> # Determine the normalization
<ide> if w is None:
<ide> fact = float(X.shape[1] - ddof)
<add> elif ddof == 0:
<add> fact = w_sum
<add> elif aweights is None:
<add... | 1 |
PHP | PHP | fix failing test | 6406e528f07923ccd357762eed3e87e58ef97af6 | <ide><path>lib/Cake/Routing/Route/RedirectRoute.php
<ide> public function parse($url) {
<ide> if (isset($this->options['status']) && ($this->options['status'] >= 300 && $this->options['status'] < 400)) {
<ide> $status = $this->options['status'];
<ide> }
<del> $this->response->header(array('Location' => Router::... | 2 |
Ruby | Ruby | remove unused attribute | 375c073cec0ce0c18e11fa039e2cbbd4baaa9751 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def message
<ide> end
<ide>
<ide> class BuildError < Homebrew::InstallationError
<del> attr_reader :exit_status, :command, :env
<add> attr_reader :command, :env
<ide>
<del> def initialize formula, cmd, args, es
<add> def initialize formula, cmd, args
<ide> @comm... | 2 |
Python | Python | add axis to bn config | 8823fa520bf35478f9d6d4b36f291d1e14300a05 | <ide><path>keras/layers/normalization.py
<ide> def get_config(self):
<ide> config = {"name": self.__class__.__name__,
<ide> "epsilon": self.epsilon,
<ide> "mode": self.mode,
<add> "axis": self.axis,
<ide> "momentum": self.momentum}
<ide> ... | 1 |
Text | Text | stabilize subpath patterns | 0c3e10005e524a27f190856e3415baaa2267e3c6 | <ide><path>doc/api/packages.md
<ide> analogous to the exports field.
<ide>
<ide> ### Subpath patterns
<ide>
<del>> Stability: 1 - Experimental
<del>
<ide> For packages with a small number of exports or imports, we recommend
<ide> explicitly listing each exports subpath entry. But for packages that have
<ide> large nu... | 1 |
Mixed | Python | sentiment analysis implmenttion in pure keras. | 61ec6026722e71771b902f9bec1ff0ce36d49b54 | <ide><path>research/sentiment_analysis/README.md
<ide> ## Overview
<ide> This is an implementation of the Sentiment Analysis model as described in the [this paper](https://arxiv.org/abs/1412.1058). The implementation is with the reference to [paddle version](https://github.com/mlperf/reference/tree/master/sentiment_ana... | 6 |
PHP | PHP | fix incorrect definition | 1d95529e3c98ab71eccae397da9e29ccaa53abd9 | <ide><path>src/Illuminate/Foundation/Console/VendorPublishCommand.php
<ide> class VendorPublishCommand extends Command
<ide> * @var string
<ide> */
<ide> protected $signature = 'vendor:publish {--force : Overwrite any existing files.}
<del> {--provider? : The service provider that has assets yo... | 1 |
Text | Text | release notes for 1.2.10 | 4f827f587b340ff7563ca01fe68c244a6cd0d5c4 | <ide><path>CHANGELOG.md
<add><a name="1.2.10"></a>
<add># 1.2.10 augmented-serendipity (2014-01-24)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$parse:** do not use locals to resolve object properties
<add> ([f09b6aa5](https://github.com/angular/angular.js/commit/f09b6aa5b58c090e3b8f8811fb7735e38d4b7623),
<add> [#5... | 1 |
Javascript | Javascript | check number of message events | b5b6f5d6a9a5402e55f5080928d740e12e7295a4 | <ide><path>test/parallel/test-child-process-fork-ref2.js
<ide> if (process.argv[2] === 'child') {
<ide>
<ide> setTimeout(function() {
<ide> console.log('child -> will this keep it alive?');
<del> process.on('message', common.noop);
<add> process.on('message', common.mustNotCall());
<ide> }, 400);
<ide>
... | 2 |
Javascript | Javascript | add missing semicolon | b32fbef7c51462287b4e56ec989398d994b093ee | <ide><path>src/core/__tests__/ReactCompositeComponent-test.js
<ide> describe('ReactCompositeComponent', function() {
<ide> getInitialState: function() {
<ide> return {
<ide> flag: false
<del> }
<add> };
<ide> },
<ide>
<ide> render: function() { | 1 |
Python | Python | remove side effects from tests | bb19b9179ac645156a59054a34f147ca6b146b9f | <ide><path>tests/api_connexion/endpoints/test_connection_endpoint.py
<ide> from parameterized import parameterized
<ide>
<ide> from airflow.models import Connection
<del>from airflow.utils.session import create_session, provide_session
<add>from airflow.utils.session import provide_session
<ide> from airflow.www impor... | 14 |
Python | Python | fix behaviour when pool does not exist | 7ce64e925b25c5b8ef42a38763c91951a53f4cf3 | <ide><path>libcloud/loadbalancer/drivers/dimensiondata.py
<ide> def _to_balancer(self, element):
<ide> port = findtext(element, 'port', TYPES_URN)
<ide> extra = {}
<ide>
<del> extra['pool_id'] = element.find(fixxpath(
<add> pool_element = element.find(fixxpath(
<ide> 'pool',
<... | 1 |
Ruby | Ruby | use .find here as it is simpler and faster | 69f97f469747777ed1c457715f5361f6b8a0ab7b | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def name_for_action(as, action)
<ide> end
<ide>
<ide> candidate = name.select(&:present?).join("_").presence
<del> candidate unless as.nil? && @set.routes.map(&:name).include?(candidate)
<add> candidate unle... | 1 |
Text | Text | clarify getauthtag with authtaglength | dd601619d38d76efbc7f014a9d4b8afd0d4e8045 | <ide><path>doc/api/crypto.md
<ide> added: v1.0.0
<ide> The `cipher.getAuthTag()` method should only be called after encryption has
<ide> been completed using the [`cipher.final()`][] method.
<ide>
<add>If the `authTagLength` option was set during the `cipher` instance's creation,
<add>this function will return exactly... | 1 |
PHP | PHP | add support for testing eloquent model events | 0ca99db6739195971a76df6efd7dc5621698ed4e | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MocksApplicationServices.php
<ide>
<ide> use Mockery;
<ide> use Exception;
<add>use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Contracts\Notifications\Dispatcher as NotificationDispatcher;
<ide>
<ide> trait MocksApplicationServices
<ide> trait MocksA... | 3 |
Java | Java | fix classcastexception in formhttpmessageconverter | b94e8c4bef90c78231063ad2c6f5bec8fc11b899 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/FormHttpMessageConverter.java
<ide> public void write(MultiValueMap<String, ?> map, @Nullable MediaType contentType,
<ide> throws IOException, HttpMessageNotWritableException {
<ide>
<ide> if (!isMultipart(map, contentType)) {
<del> writeFor... | 1 |
Ruby | Ruby | optimize uri escaping | a61792574d9c8904590895f7a2f56803e02a6c52 | <ide><path>actionpack/lib/action_dispatch/journey/router/utils.rb
<del>require 'uri'
<del>
<ide> module ActionDispatch
<ide> module Journey # :nodoc:
<ide> class Router # :nodoc:
<ide> def self.normalize_path(path)
<ide>
<ide> # URI path and fragment escaping
<ide> # http://tools.ietf.org/html/rf... | 1 |
Text | Text | fix the locale id | a869a0f7b07aa44ea51a58da115522716e82d8c0 | <add><path>docs/docs/getting-started.ja-JP.md
<del><path>docs/docs/getting-started.jp.md
<ide> ---
<del>id: getting-started-ja
<add>id: getting-started-ja-JP
<ide> title: 始めてみましょう
<del>next: tutorial-ja.html
<del>redirect_from: "docs/index-ja.html"
<add>next: tutorial-ja-JP.html
<add>redirect_from: "docs/index-ja-JP.ht... | 2 |
Ruby | Ruby | enable zeitwerk by default on truffleruby | a011422bc20d62960f3a677b1c77a052d9bf71d3 | <ide><path>railties/lib/rails/application/configuration.rb
<ide> def load_defaults(target_version)
<ide> when "6.0"
<ide> load_defaults "5.2"
<ide>
<del> self.autoloader = :zeitwerk if RUBY_ENGINE == "ruby"
<add> self.autoloader = :zeitwerk if %w[ruby truffleruby].include?(RUBY_ENGI... | 1 |
Ruby | Ruby | add a test case for comparing rails versions | ec92d8440fa51aea40de1567eed7974422bff000 | <ide><path>railties/test/rails_info_test.rb
<ide> def test_property_with_block
<ide> assert_property 'Goodbye', 'World'
<ide> end
<ide>
<add> def test_rails_version
<add> assert_property 'Rails version',
<add> File.read(File.realpath('../../../RAILS_VERSION', __FILE__)).chomp
<add> end
<add>
<ide> d... | 1 |
Ruby | Ruby | add nodoc to arel filter classes | e27c419d448ce7eed78aa8e42f22af3522a76a1f | <ide><path>activerecord/lib/arel/filter_predications.rb
<ide> # frozen_string_literal: true
<ide>
<del>module Arel
<add>module Arel # :nodoc: all
<ide> module FilterPredications
<ide> def filter(expr)
<ide> Nodes::Filter.new(self, expr)
<ide><path>activerecord/lib/arel/nodes/filter.rb
<ide> # frozen_string... | 2 |
PHP | PHP | remove deprecated code in shell package | 89965ad221f9aa08b1312d40c7c68a27eed73839 | <ide><path>src/Shell/CommandListShell.php
<del><?php
<del>/**
<del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * For full copyright and license information, pleas... | 4 |
Java | Java | add systrace to reactrootview | 658f632f595828673fffe683b048ded73ce3d8f1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java
<ide> public ReactRootView(Context context, AttributeSet attrs, int defStyle) {
<ide>
<ide> @Override
<ide> protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
<del> setMeasuredDimension(
<add> Systrace.beginSecti... | 1 |
Javascript | Javascript | set color based on theme | 8f73a92e1660b33a407e96ebfdec493a4959b3fd | <ide><path>client/src/components/Donation/components/DonateForm.js
<ide> const propTypes = {
<ide> isSignedIn: PropTypes.bool,
<ide> stripe: PropTypes.shape({
<ide> createToken: PropTypes.func.isRequired
<del> })
<add> }),
<add> theme: PropTypes.string
<ide> };
<ide> const initialState = {
<ide> donationAm... | 2 |
Python | Python | increase timeouts even longer for on_kill test | 5a4eb84a12bca055e9fcba086cb2559b3243c8c2 | <ide><path>tests/task/task_runner/test_standard_task_runner.py
<ide> def test_on_kill(self):
<ide> processes = list(self._procs_in_pgroup(runner_pgid))
<ide>
<ide> logging.info("Waiting for the task to start")
<del> with timeout(seconds=4):
<add> with timeout(seconds=20):
... | 1 |
Python | Python | list the language_data package in the setup.py | 97521c95b3efa1d8b6d5dcade30c030b0e984163 | <ide><path>setup.py
<ide> 'spacy.it',
<ide> 'spacy.pt',
<ide> 'spacy.nl',
<add> 'spacy.language_data',
<ide> 'spacy.serialize',
<ide> 'spacy.syntax',
<ide> 'spacy.munge', | 1 |
Text | Text | add profiling reference links for python | c861c03f9d1f7356fd25ed5d2f427c0c57a0f80d | <ide><path>guide/english/python/index.md
<ide> As stated python is a general purpose language. You can use it to do anything yo
<ide> ## Want to learn more?
<ide>
<ide> Free Code Camp has some great resources. The web is a big place, there's plenty more to explore:
<add>
<ide> * [Python Practice Book](http://anandolog... | 1 |
Text | Text | add changelog entry for | b8de7ae9a35b029c92445a112d20d943249c3f42 | <ide><path>activerecord/CHANGELOG.md
<add>* Support foreign key creation for SQLite3.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Remove `initialize_schema_migrations_table` and `initialize_internal_metadata_table`
<ide> internal public methods.
<ide>
<ide>
<ide> *Kevin Glowacz*
<ide>
<del>* Raise `A... | 1 |
Text | Text | add missing shasums for v0.10.19 release | cfa03ad2e3423693f6bc56a82696f9c362d71ed0 | <ide><path>doc/blog/release/v0.10.19.md
<ide> Documentation: http://nodejs.org/docs/v0.10.19/api/
<ide>
<ide> Shasums:
<ide> ```
<add>74f1db96742fcc0128d1c14d3cb808ef5c847749 node-v0.10.19-darwin-x64.tar.gz
<add>71ef9bd63d3926a2b78a43a5d077838c43e7e2ea node-v0.10.19-darwin-x86.tar.gz
<add>ebc6dc67276f7461dbd45496924... | 1 |
Ruby | Ruby | improve formula/cask disambiguation | 7d5216c500a5754da766937de3d61ebf8d70d643 | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide> if formulae_and_casks
<ide> Livecheck.load_other_tap_strategies(formulae_and_casks)
<ide>
<add> ambiguous_casks = []
<add> if !args.formula? && !args.cask?
<add> ambiguous_casks = formulae_and_casks
<add> ... | 3 |
Python | Python | open the temporaryfile in ascii mode | df813e52675cf873d4b82347b53ed8eda5c6cc06 | <ide><path>numpy/distutils/tests/test_exec_command.py
<ide> def test_exec_command_stdout():
<ide>
<ide> def test_exec_command_stderr():
<ide> # Test posix version:
<del> with redirect_stdout(TemporaryFile()):
<add> with redirect_stdout(TemporaryFile(mode='w+')):
<ide> with redirect_stderr(StringIO.St... | 1 |
Text | Text | reduce repetitiveness on consensus seeking | 2f27f1144edd5772467597da26c8faf41a1dbd99 | <ide><path>doc/guides/collaborator-guide.md
<ide> pull request creator pushed new code since the last CI run.
<ide>
<ide> ### Consensus Seeking
<ide>
<del>If there are no objecting Collaborators, a pull request may land if it has the
<del>needed [approvals](#code-reviews), [CI](#testing-and-ci), and
<del>[wait time](... | 1 |
Javascript | Javascript | add flowtype to function signature | 5cff212072beb58b00e6475d1cd2d57413f73e2c | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js
<ide> export function reconcileChildren(
<ide> }
<ide> }
<ide>
<del>function updateForwardRef(current, workInProgress, renderExpirationTime) {
<add>function updateForwardRef(
<add> current: Fiber | null,
<add> workInProgress: Fiber,
<add> renderExpir... | 1 |
PHP | PHP | remove unused parameter | 76e30db8fe666f11648bc21d731a0cdbb56ebf8e | <ide><path>src/Illuminate/Translation/Translator.php
<ide> public function choice($key, $number, array $replace = [], $locale = null)
<ide> $replace['count'] = $number;
<ide>
<ide> return $this->makeReplacements(
<del> $this->getSelector()->choose($line, $number, $locale), $replace
<add> ... | 2 |
Go | Go | allow push of a single tag | e648a186d68dcb3ee0d6123b041c5aa66438cc89 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdImport(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdPush(args ...string) error {
<del> cmd := cli.Subcmd("push", "NAME", "Push an image or a repository to the registry")
<add> cmd := cli.Subcmd("push", "NAME[:TAG]", "Push an image... | 3 |
Ruby | Ruby | improve the test case introduced by bd0d47e | 39542fba54328ca048fb75a5d5b37f8e1d4c1f37 | <ide><path>activerecord/test/cases/calculations_test.rb
<ide> def test_pluck_columns_with_same_name
<ide> end
<ide>
<ide> def test_calculation_with_polymorphic_relation
<del> sp = ShipPart.create! name: "no trinket"
<del> sp_with_trinket = ShipPart.create! name: "has_trinket"
<del> sp_with_trinket.trinket... | 1 |
Ruby | Ruby | fix a typo | 9cb12265d8a08c219c82e4e4d305a6d60b0af35c | <ide><path>actionpack/lib/action_view/template/resolver.rb
<ide> def initialize(options = {})
<ide> NAME_BLOCK = lambda {|cache, name| cache[name] = SmallCache.new(&PREFIX_BLOCK)}
<ide> KEY_BLOCK = lambda {|cache, key| cache[key] = SmallCache.new(&NAME_BLOCK)}
<ide>
<del> # usuall... | 1 |
Text | Text | add docs for ip-forward | 85fffe1341fc4e957a9a40dbc3cedded8cb44e70 | <ide><path>docs/man/docker.1.md
<ide> unix://[/path/to/socket] to use.
<ide> Default IP address to use when binding container ports. Default is `0.0.0.0`.
<ide>
<ide> **--ip-forward**=*true*|*false*
<del> Docker will enable IP forwarding. Default is true. If `--fixed-cidr-v6` is set. IPv6 forwarding will be activat... | 2 |
Python | Python | remove redundant raise from docstring | 5ab9ebeec4f5d34dac00545691e7daae62ed6448 | <ide><path>celery/app/task.py
<ide> def retry(self, args=None, kwargs=None, exc=None, throw=True,
<ide> ... twitter.post_status_update(message)
<ide> ... except twitter.FailWhale as exc:
<ide> ... # Retry in 5 minutes.
<del> ... raise self.retry... | 1 |
Ruby | Ruby | add a `time` method for use as the build time | 3776ba9756de63fad533167baa2db77088ba1817 | <ide><path>Library/Homebrew/formula.rb
<ide> def rpath
<ide> "@loader_path/../lib"
<ide> end
<ide>
<add> # Creates a new `Time` object for use in the formula as the build time.
<add> #
<add> # @see https://www.rubydoc.info/stdlib/time/Time Time
<add> sig { returns(Time) }
<add> def time
<add> if ENV["SOU... | 1 |
Ruby | Ruby | remove forgotten puts | aaa85cde6068f4db6fabe7bfef664f73bbc6938f | <ide><path>activesupport/lib/active_support/testing/performance.rb
<ide> module Performance
<ide> :output => 'tmp/performance',
<ide> :benchmark => true }
<ide> else
<del> puts "not"
<ide> { :runs => 1,
<ide> :output => 'tmp/performance',
<ide> ... | 1 |
PHP | PHP | add test for overwriting keys | e227c3762b1b2216e3b98ab507a61d23450e1248 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testNth()
<ide> $this->assertEquals(['d'], $data->nth(4, 3)->all());
<ide> }
<ide>
<add> public function testMapWithKeysOverwritingKeys()
<add> {
<add> $data = new Collection([
<add> ['id' => 1, 'name' => 'A'],... | 1 |
Javascript | Javascript | feature detect el.matches() for ie11 | fded30f8f8969b1beb780b9d93ee0da0f5755ce6 | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> */
<ide> documentFullscreenChange_(e) {
<ide> const fsApi = FullscreenApi;
<add> const el = this.el();
<add> let isFs = document[fsApi.fullscreenElement] === el;
<ide>
<del> this.isFullscreen(document[fsApi.fullscreenElement] ==... | 1 |
Javascript | Javascript | fix eslint errors | c26405508704bcceea751f3769a282024dc2730b | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> files: [
<ide> 'packages/*/tests/**/*.js',
<ide> 'packages/@ember/*/tests/**/*.js',
<add> 'packages/@ember/-internals/*/tests/**/*.js',
<ide> 'packages/internal-test-helpers/**/*.js',
<ide> ],
<ide> env: {
<ide><path... | 8 |
Text | Text | fix a typo [ci skip] | 1a2341038080155ca691a198f6497dba31bc8ce5 | <ide><path>guides/source/constant_autoloading_and_reloading.md
<ide> derivation.
<ide>
<ide> ### Loading Mechanism
<ide>
<del>Rails autoloads files with `Kerne#load` when `config.cache_classes` is false,
<add>Rails autoloads files with `Kernel#load` when `config.cache_classes` is false,
<ide> the default in developme... | 1 |
Ruby | Ruby | allow namespaced configuration on generators | 7022b58842ec3490d85efc5b947d86a0fd72d0cb | <ide><path>railties/lib/generators.rb
<ide>
<ide> module Rails
<ide> module Generators
<del> DEFAULT_ALIASES = {
<del> :actions => '-a',
<del> :fixture_replacement => '-r',
<del> :orm => '-o',
<del> :resource_controller => '-c',
<del> :scaffold_controller => '-c',
<del> :stylesheets ... | 9 |
Text | Text | add link to patchwelcome and help wanted issues | 924b7ce825962bfe4c16e02eb411c7f66ee75a55 | <ide><path>CONTRIBUTING.md
<ide> More information on how to contribute to this and other jQuery organization proj
<ide>
<ide> When opening a pull request, you'll be asked to sign our Contributor License Agreement. Both the Corporate and Individual agreements can be [previewed on GitHub](https://github.com/openjs-found... | 1 |
Text | Text | fix typo in docs | f394b1d77614d33e85c93ecb10f0a6676538b2e7 | <ide><path>docs/api/v1.22.md
<ide> Create a container
<ide> `"BlkioDeviceWriteBps": [{"Path": "/dev/sda", "Rate": "1024"}]"`
<ide> - **BlkioDeviceReadIOps** - Limit read rate (IO per second) from a device in the form of: `"BlkioDeviceReadIOps": [{"Path": "device_path", "Rate": rate}]`, for example:
<ide> ... | 3 |
Javascript | Javascript | improve normalize encoding performance | 341770fedf77ff5b8e0c646070029152b58fc746 | <ide><path>benchmark/buffers/buffer-normalize-encoding.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>
<add>const bench = common.createBenchmark(main, {
<add> encoding: [
<add> 'ascii',
<add> 'ASCII',
<add> 'base64',
<add> 'BASE64',
<add> 'binary',
<add> 'BINARY',
<add>... | 4 |
PHP | PHP | add tests for templatevars & textarea widget | 2cedf1a1b2e7840b6cc50b9c0d4374961d79c800 | <ide><path>tests/TestCase/View/Widget/TextareaWidgetTest.php
<ide> public function testRenderWithValue()
<ide> ];
<ide> $this->assertHtml($expected, $result);
<ide> }
<add>
<add> /**
<add> * Ensure templateVars option is hooked up.
<add> *
<add> * @return void
<add> */
<add> pu... | 1 |
Text | Text | fix 2 more entries | cbec8c1a890c809f104d826d970f41a4498e38fb | <ide><path>docs/cookbook/11-dom-event-listeners.md
<ide> var Box = React.createClass({
<ide> this.setState({windowWidth: window.innerWidth});
<ide> },
<ide> componentDidMount: function() {
<del> window.addEventListener("resize", this.handleResize);
<add> window.addEventListener('resize', this.handleResize... | 2 |
PHP | PHP | update deprecation message | eb888b469d07e4514edd6ab04197caa875b2ff5e | <ide><path>src/View/ViewVarsTrait.php
<ide> trait ViewVarsTrait
<ide> * Variables for the view
<ide> *
<ide> * @var array
<del> * @deprecated 3.7.0 Use `$this->viewBuilder()->setVar()/getVar()` instead.
<add> * @deprecated 3.7.0 Use `$this->set()` instead.
<ide> */
<ide> public $viewVars... | 1 |
Ruby | Ruby | add broken test | 2ca6f57f85fe06932f64685bea2687fec7d6c3d3 | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def test_default_route_should_work_with_action_but_no_id
<ide> o = {:controller => 'accounts', :action => 'list_all'}
<ide> assert_equal '/accounts/list_all', default_route.generate(o, o, {})
<ide> end
<add>
<add> def test_default_route_should_esc... | 1 |
PHP | PHP | fix failing tests around prefixes | 12c5f5bb72dc4d55161ccb242b918ef90b26788a | <ide><path>src/Routing/Route/Route.php
<ide> public function getName() {
<ide> return $this->_name;
<ide> }
<ide> $name = '';
<del> if (isset($this->defaults['plugin'])) {
<del> $name = $this->defaults['plugin'] . '.';
<del> }
<del> if (strpos($this->template, ':plugin') !== false) {
<del> $name = '_plugi... | 6 |
Ruby | Ruby | use different variable name | 73956a1b77af135600888750148cc303b2d999f1 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def formula formula
<ide>
<ide> installed_gcc = false
<ide> begin
<del> dependencies = formula_object.stable.deps
<add> deps = formula_object.stable.deps
<ide> if formula_object.devel && !ARGV.include?('--HEAD')
<del> dependenci... | 1 |
Javascript | Javascript | fix title [ci skip] | 2f83848b1fd75371278a7c6060b7d9ca619a9e07 | <ide><path>website/src/components/title.js
<ide> const Title = ({
<ide> children,
<ide> ...props
<ide> }) => {
<del> const hasApiDetails = Object.values(apiDetails).some(v => v)
<add> const hasApiDetails = Object.values(apiDetails || {}).some(v => v)
<ide> const metaIconProps = { className: classes.me... | 1 |
Javascript | Javascript | use common.js to check platform | f6b1eb2ec4addc3d8d7da3839b89614eeaae6e42 | <ide><path>test/parallel/test-fs-readfile-error.js
<ide> const path = require('path');
<ide>
<ide> // `fs.readFile('/')` does not fail on FreeBSD, because you can open and read
<ide> // the directory there.
<del>if (process.platform === 'freebsd') {
<add>if (common.isFreeBSD) {
<ide> common.skip('platform not suppor... | 1 |
Javascript | Javascript | create plnkr examples with correct angular version | db02008fe274410d2b8e2715fa4a3c8c9b2ce809 | <ide><path>docs/app/src/examples.js
<ide> angular.module('examples', [])
<ide> filePromises.push($http.get(exampleFolder + '/' + filename, { transformResponse: [] })
<ide> .then(function(response) {
<ide>
<del> // The manifests provide the production index file but Plunkr wants
<del>... | 3 |
PHP | PHP | make test check for failure instead of pass | 16726e65f0c687745a83de1d99d8a8749b7289a3 | <ide><path>tests/TestCase/Controller/Component/SecurityComponentTest.php
<ide> public function testValidatePostOnGetWithData()
<ide> $event = new Event('Controller.startup', $this->Controller);
<ide> $this->Controller->Security->startup($event);
<ide>
<del> $fields = '68730b0747d4889ec2766f91174... | 1 |
Text | Text | make instructions for cafe css step 24 specificer | 2d7b01aac9ae1de0f63e90e6fe2b0f8e7a137ca9 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f356ed63e0fa262326eef05.md
<ide> dashedName: step-24
<ide>
<ide> # --description--
<ide>
<del>Now make the background color of the `div` element to be `burlywood`.
<add>Now use the existing `div` selector to ... | 1 |
Javascript | Javascript | fix fs.realpath to work on windows | 424bca15c8e227a9170cfe00f9ba7d9daae6fb03 | <ide><path>lib/fs.js
<ide> var normalize = pathModule.normalize;
<ide> // result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
<ide> var nextPartRe = /(.*?)(?:[\/]+|$)/g;
<ide>
<add>// Regex to split a windows path into three parts: [*, device, slash,
<add>// tail] windows-only
<add>var splitDeviceRe =
<add... | 1 |
Python | Python | make docstring match args | 76779363160a598f130433209a77f8a747351b61 | <ide><path>src/transformers/modeling_bart.py
<ide> def forward(
<ide> **unused
<ide> ):
<ide> r"""
<del> masked_lm_labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`, defaults to :obj:`None`):
<add> lm_labels (:obj:`torch.LongTensor` of shape :obj... | 5 |
Python | Python | add update_exc and expand_exc to util | 60db497525a88fd44351d91e260c36f7fabe878c | <ide><path>spacy/language_data/__init__.py
<ide> from .punctuation import *
<ide> from .tag_map import *
<ide> from .entity_rules import *
<del>from .util import *
<ide> from .tokenizer_exceptions import *
<ide><path>spacy/language_data/util.py
<del># coding: utf8
<del>from __future__ import unicode_literals
<del>
<del... | 3 |
Javascript | Javascript | make cache print less noisy | d5f15d5b3a4e0190b999f434f9f618a1a8a61368 | <ide><path>tooling/print-cache-file.js
<ide> const printData = async (data, indent) => {
<ide> if (item === ESCAPE) {
<ide> const nextItem = read();
<ide> if (nextItem === ESCAPE_ESCAPE_VALUE) {
<del> printLine(`- null`);
<add> printLine("null");
<ide> } else if (nextItem === ESCAPE_UNDEFINED) {
<del> ... | 1 |
Python | Python | add decorator to flaky test | 31ec424b3df6938418128b8fa3e165a5f3e0f10d | <ide><path>examples/pytorch/test_accelerate_examples.py
<ide> import torch
<ide>
<ide> from accelerate.utils import write_basic_config
<del>from transformers.testing_utils import TestCasePlus, get_gpu_count, run_command, slow, torch_device
<add>from transformers.testing_utils import TestCasePlus, get_gpu_count, is_fla... | 1 |
Javascript | Javascript | add link to the guides in deprecation warning | 9acdd097555d566382f626bd2ee4f6ce9e2bc7fb | <ide><path>packages/ember-metal/lib/computed.js
<ide> function ComputedProperty(config, opts) {
<ide> config.__ember_arity = config.length;
<ide> this._getter = config;
<ide> if (config.__ember_arity > 1) {
<del> Ember.deprecate("Using the same function as getter and setter is deprecated");
<ad... | 1 |
Python | Python | check regexp in monitored list. correct issue #378 | 58c34d70446260e37511f7cee3ecd301c31ed566 | <ide><path>glances/core/glances_monitor_list.py
<ide> def __set_monitor_list(self, section, key):
<ide> if description is not None and regex is not None:
<ide> # Build the new item
<ide> value["description"] = description
<del> value["regex"] = ... | 1 |
PHP | PHP | remove the count | 666241ebc6c99cd3af0c3ce7fc63d7107c6edc3b | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> protected function addHasWhere(Builder $hasQuery, Relation $relation, $operator,
<ide> {
<ide> $this->mergeWheresToHas($hasQuery, $relation);
<ide>
<del> $count = new Expression((int) $count);
<del>
<ide> return $this->where(new Expression('('.$hasQue... | 1 |
Ruby | Ruby | add missing require | e9b6659c4ccd4272a363835274ec2e36e778dcd8 | <ide><path>activerecord/test/cases/adapters/postgresql/utils_test.rb
<add>require 'cases/helper'
<add>
<ide> class PostgreSQLUtilsTest < ActiveSupport::TestCase
<ide> include ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Utils
<ide> | 1 |
Text | Text | fix the rxclojure project link | 1e871051f309dbc64159cf94c10fe392b37c88f3 | <ide><path>README.md
<ide> Some of the goals of RxJava are:
<ide>
<ide> - Stay close to other Rx implementations while adjusting naming conventions and idioms to Java
<ide> - Match contracts of Rx should be the same
<del>- Target the JVM not a language to allow JVM-language bindings (such as [Scala](https://github.com... | 1 |
Text | Text | translate 02-displaying-data.md to japanese | af34ca7b41fa83efde6c6bce03f7fb2ed2873be5 | <ide><path>docs/docs/02-displaying-data.ja-JP.md
<add>---
<add>id: displaying-data-ja-JP
<add>title: データを表示する
<add>permalink: displaying-data-ja-JP.html
<add>prev: why-react-ja-JP.html
<add>next: jsx-in-depth-ja-JP.html
<add>
<add>---
<add>
<add>UIについて、最も基本的なことは、いくつかのデータを表示することです。Reactはデータを表示し、変更された時にはインターフェースを最新の状態に自動... | 1 |
Go | Go | add ipvlan_flag option, support l3s ipvlan_mode | f70a9788c54d720aaad9e63b2d9f79959e0b2930 | <ide><path>libnetwork/drivers/ipvlan/ipvlan.go
<ide> const (
<ide> vethLen = 7
<ide> containerVethPrefix = "eth"
<ide> vethPrefix = "veth"
<del> ipvlanType = "ipvlan" // driver type name
<del> modeL2 = "l2" // ipvlan mode l2 is the default
<del> modeL3 = "l... | 6 |
Javascript | Javascript | fix prefilter comment typo | 1326510324380aaab162331b2d271a986a634c48 | <ide><path>src/ajax.js
<ide> jQuery.extend({
<ide> // Apply prefilters
<ide> inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
<ide>
<del> // If request was aborted inside a prefiler, stop there
<add> // If request was aborted inside a prefilter, stop there
<ide> if ( state === 2 ) {
<ide> ret... | 1 |
Python | Python | add failing test for | f02b7f1329012aafca3851df3340b719c28d4586 | <ide><path>tests/test_filters.py
<ide> def test_must_call_distinct(self):
<ide> )
<ide>
<ide>
<add>class Blog(models.Model):
<add> name = models.CharField(max_length=20)
<add>
<add>
<add>class Entry(models.Model):
<add> blog = models.ForeignKey(Blog, on_delete=models.CASCADE)
<add> headline = mod... | 1 |
Python | Python | update hubconf for gpt2 torchhub compatibility | 2576a5c6db0b2b97b79c1e649a2546d9ca6182bc | <ide><path>hubconf.py
<ide> openAIGPTModel,
<ide> openAIGPTLMHeadModel,
<ide> openAIGPTDoubleHeadsModel
<del>)
<ide>\ No newline at end of file
<add>)
<add>from hubconfs.gpt2_hubconf import (
<add> gpt2Tokenizer,
<add> gpt2Model,
<add> gpt2LMHeadModel,
<add> gpt2DoubleHeadsModel
<add>) | 1 |
Text | Text | clarify serverresponse explanations | 16accff90f25543b31c4e3dc0e71c5766795dc18 | <ide><path>doc/api/http.md
<ide> the data is read it will consume memory that can eventually lead to a
<ide> Node.js does not check whether Content-Length and the length of the
<ide> body which has been transmitted are equal or not.
<ide>
<del>The request implements the [Writable Stream][] interface. This is an
<del>[... | 2 |
Javascript | Javascript | replace obsolete tt element | 7a04968673228e3d0afa957a271add6934a6cafc | <ide><path>src/ng/directive/form.js
<ide> function FormController(element, attrs, $scope, $animate, $interpolate) {
<ide> <form name="myForm" ng-controller="FormController" class="my-form">
<ide> userType: <input name="input" ng-model="userType" required>
<ide> <span class="error" ng-show="myFo... | 1 |
Javascript | Javascript | add test case for loading 404 on invalid bundle | 1c057e779256d8f153d33651301e603e5cf9d276 | <ide><path>test/integration/client-404/pages/invalid-link.js
<add>import Link from 'next/link'
<add>
<add>export default () => (
<add> <Link href="/[id]/non-existent" as="/another/non-existent">
<add> <a id="to-nonexistent">to 404</a>
<add> </Link>
<add>)
<ide><path>test/integration/client-404/test/client-navigati... | 3 |
Javascript | Javascript | add modelview and normalview matrices | b59ce1721c59b687e0870958a4b477ea195b3269 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> object.onBeforeRender( _this, scene, camera, geometry, material, group );
<ide> currentRenderState = renderStates.get( scene, _currentArrayCamera || camera );
<ide>
<del> object.modelViewMatrix.multiplyMatrices( camera.ma... | 3 |
Text | Text | add changelog for | f186a00aac8f5b79aaee06cdd9d52dbedb427b3c | <ide><path>activesupport/CHANGELOG.md
<add>* Allow serializing any module or class to JSON by name
<add>
<add> *Tyler Rick*, *Zachary Scott*
<add>
<ide> * Raise `ActiveSupport::EncryptedFile::MissingKeyError` when the
<ide> `RAILS_MASTER_KEY` environment variable is blank (e.g. `""`).
<ide> | 1 |
Java | Java | fix checkstyle violation | b1b25fab00739eafad82bb80b9409cac61b0a5be | <ide><path>spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java
<ide> import java.io.Reader;
<ide> import java.io.Writer;
<ide> import java.util.Map;
<add>
<ide> import javax.xml.stream.XMLEventReader;
<ide> import javax.xml.stream.XMLEventWriter;
<ide> import javax.xml.stream.XMLStreamReader; | 1 |
Ruby | Ruby | ignore unused parameter | 95a8a50aa0d968f6ab762bef7ca9f78bb7043463 | <ide><path>Library/Homebrew/install_renamed.rb
<ide> module InstallRenamed
<del> def install_p src, new_basename = nil
<add> def install_p _, new_basename = nil
<ide> super do |src, dst|
<ide> dst += "/#{File.basename(src)}" if File.directory? dst
<ide> | 1 |
Ruby | Ruby | relation#sum compatibility with array#sum | e7bec4e435d05eb517f515a4661186ce8d088238 | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def maximum(column_name, options = {})
<ide> # +calculate+ for examples with options.
<ide> #
<ide> # Person.sum('age') # => 4562
<del> def sum(column_name, options = {})
<del> calculate(:sum, column_name, options)
<add> d... | 2 |
PHP | PHP | remove unused filesystem | f27fd58b42ef1b84215879aee21729e4202e4f3f | <ide><path>src/Illuminate/Foundation/start.php
<ide> */
<ide>
<ide> use Illuminate\Http\Request;
<del>use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\Support\Facades\Facade;
<ide> use Illuminate\Foundation\AliasLoader;
<ide> use Illuminate\Config\Repository as Config;
<ide>
<ide> if (file_exists($routes)) ... | 1 |
Go | Go | reset removalinprogress flag on daemon restart | ce724731973159a4fcedf16d0996571684cc3843 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> mapLock.Unlock()
<ide> }
<ide>
<add> if c.RemovalInProgress {
<add> // We probably crashed in the middle of a removal, reset
<add> // the flag.
<add> //
<add> // We DO NOT remove the container here as we do not
<add> ... | 1 |
Java | Java | use bytebuf instead of buffer in reactor-netty | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8 | <ide><path>spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpRequest.java
<ide> import java.net.URI;
<ide> import java.util.Collection;
<ide>
<add>import io.netty.buffer.ByteBuf;
<add>import io.netty.buffer.Unpooled;
<ide> import io.netty.handler.codec.http.cookie.DefaultCooki... | 8 |
PHP | PHP | remove unneeded property. can use ignore method | ce3e006d61299bdd3bd2b99ec5489577e55a296a | <ide><path>app/Exceptions/Handler.php
<ide>
<ide> class Handler extends ExceptionHandler
<ide> {
<del> /**
<del> * A list of the exception types that are not reported.
<del> *
<del> * @var array
<del> */
<del> protected $dontReport = [
<del> //
<del> ];
<del>
<ide> /**
<ide> * ... | 1 |
PHP | PHP | fix failing test | 9fd3a007655260dc50608011be4fe60a4c850aa6 | <ide><path>lib/Cake/Test/TestCase/Database/Schema/TableTest.php
<ide> public function testPrimaryKey() {
<ide> $table->addColumn('id', 'integer')
<ide> ->addColumn('title', 'string')
<ide> ->addColumn('author_id', 'integer')
<del> ->addIndex('author_idx', [
<add> ->addConstraint('author_idx', [
<ide> 'c... | 1 |
Go | Go | add containercreateresponse type | f57c26553b91e16fa3ee6a815943eaf8f29af82b | <ide><path>api/client/commands.go
<ide> func (cid *cidFile) Write(id string) error {
<ide> return nil
<ide> }
<ide>
<del>func (cli *DockerCli) createContainer(config *runconfig.Config, hostConfig *runconfig.HostConfig, cidfile, name string) (engine.Env, error) {
<add>func (cli *DockerCli) createContainer(config *runc... | 3 |
Ruby | Ruby | ask the form builder for form tag attributes | 497c4bbd474fce78bed9289a1788c09fbf9b514a | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def form_for(record, options = {}, &proc)
<ide> builder = options[:parent_builder] = instantiate_builder(object_name, object, options)
<ide> fields_for = fields_for(object_name, object, options, &proc)
<ide> default_options = bui... | 1 |
Ruby | Ruby | fix syntax error | ea5840ed6192a2c2602223faf53dfcd5f32a26d7 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def fix_install_names(options = {})
<ide>
<ide> each_install_name_for(file) do |bad_name|
<ide> # Don't fix absolute paths unless they are rooted in the build directory
<del> next if bad_name.start_with? "/" && !bad_name.start_with?(HOMEBREW_... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.