content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | remove use of private method makearray in examples | ceea31a86e38e16f1d5775cefabc2fa092dd192a | <ide><path>packages/ember-runtime/lib/utils.js
<ide> export function isArray(obj) {
<ide> Ember.typeOf(new Number(101)); // 'number'
<ide> Ember.typeOf(true); // 'boolean'
<ide> Ember.typeOf(new Boolean(true)); // 'boolean'
<del> Ember.typeOf(Ember.makeArray); // 'function'
<... | 1 |
Python | Python | use shape utils for assertion in feature extractor | e25c014ed616ae9b14b6c2c924a2cc6b3036f068 | <ide><path>research/object_detection/models/faster_rcnn_mobilenet_v1_feature_extractor.py
<ide> import tensorflow as tf
<ide>
<ide> from object_detection.meta_architectures import faster_rcnn_meta_arch
<add>from object_detection.utils import shape_utils
<ide> from nets import mobilenet_v1
<ide>
<ide> slim = tf.contri... | 1 |
Ruby | Ruby | pass the route name explicitly | aa6637d140c2ebd28bbd23fc250af033a065dbe8 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def build_request_uri(action, parameters)
<ide> :relative_url_root => nil,
<ide> :_recall => @request.path_parameters)
<ide>
<del> url, query_string = @routes.path_for(options).split("?", 2)
<add> route_name = opti... | 2 |
Text | Text | add information about auth parameter to readme | f28ff933e491ad7b1dd77af6ad3abe126109bd9e | <ide><path>README.md
<ide> These are the available config options for making requests. Only the `url` is re
<ide> // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
<ide> // This will set an `Authorization` header, overwriting any existing
<ide> // `Authorization` custom headers yo... | 1 |
Text | Text | correct bad english | ad223520bf8dca33ced04a0af279527da49489fc | <ide><path>guides/source/getting_started.md
<ide> TIP: The examples below use # and $ to denote superuser and regular user termina
<ide>
<ide> Open up a command line prompt. On Mac OS X open Terminal.app, on Windows choose
<ide> "Run" from your Start menu and type 'cmd.exe'. Any commands prefaced with a
<del>dollar si... | 1 |
PHP | PHP | remove phpunit\util\invalidargumenthelper | fed2a297b89b8dadf3a3d95c608dfc3b025be532 | <ide><path>src/Illuminate/Testing/Assert.php
<ide> use PHPUnit\Framework\Constraint\LogicalNot;
<ide> use PHPUnit\Framework\Constraint\RegularExpression;
<ide> use PHPUnit\Framework\InvalidArgumentException;
<del>use PHPUnit\Util\InvalidArgumentHelper;
<ide>
<ide> /**
<ide> * @internal This class is not meant to be u... | 1 |
Ruby | Ruby | add test? method | fed96385acc2ee10909870997950f2e48a86026f | <ide><path>Library/Homebrew/sandbox.rb
<ide> def self.available?
<ide> OS.mac? && File.executable?(SANDBOX_EXEC)
<ide> end
<ide>
<add> def self.test?
<add> return false unless available?
<add> !ARGV.no_sandbox?
<add> end
<add>
<ide> def self.print_sandbox_message
<ide> unless @printed_sandbox_messa... | 2 |
Text | Text | update image styling doc | c9efbe1818641f77996d53925bf1959f7d8384d8 | <ide><path>docs/api-reference/next/image.md
<ide> Other properties on the `<Image />` component will be passed to the underlying
<ide>
<ide> ## Styling
<ide>
<del>`next/image` wraps the `img` element with other `div` elements to maintain the aspect ratio of the image and prevent [Cumulative Layout Shift](https://verc... | 1 |
Ruby | Ruby | allow ruby 2.6.8 | 943b79d2fbf6776067594a3f670bf7e045960707 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_if_xcode_needs_clt_installed
<ide> end
<ide>
<ide> def check_ruby_version
<del> return if RUBY_VERSION == HOMEBREW_REQUIRED_RUBY_VERSION
<add> # TODO: require 2.6.8 for everyone once enough have updated to Monterey
<add> ... | 1 |
Javascript | Javascript | add removein to record | ae6f5bf55672d086f30d416a8505ab9caa65597a | <ide><path>dist/immutable.js
<ide> var Record = function Record(defaultValues, name) {
<ide> }, {}, KeyedCollection);
<ide> var RecordPrototype = Record.prototype;
<ide> RecordPrototype[DELETE] = RecordPrototype.remove;
<add>RecordPrototype.removeIn = MapPrototype.removeIn;
<ide> RecordPrototype.merge = MapPrototype.me... | 3 |
Text | Text | add documentation for optimizers | dc5482ae4691c95358574bebb410dee499326435 | <ide><path>docs/sources/optimizers.md
<ide> # Optimizers
<ide>
<add>## Usage of optimizers
<add>
<add>An optimizer is one of the two arguments required for compiling a Keras model:
<add>
<add>```python
<add>model = Sequential()
<add>model.add(Dense(20, 64, init='uniform'))
<add>model.add(Activation('tanh'))
<add>model... | 1 |
Javascript | Javascript | add option to test-benchmark-timers | 862a22ab490818909f5dc448e1805bc846c8c6d0 | <ide><path>test/parallel/test-benchmark-timers.js
<ide> const runBenchmark = require('../common/benchmark');
<ide>
<ide> runBenchmark('timers',
<ide> [
<add> 'direction=start',
<add> 'n=1',
<ide> 'type=depth',
<del> 'n=1'
<ide> ],
<ide>... | 1 |
Go | Go | move the assertions outside of the goroutine | bb161b7789cf74541892282f18a4814ead4a34d2 | <ide><path>integration-cli/docker_api_exec_resize_test.go
<ide> import (
<ide> "io"
<ide> "net/http"
<ide> "strings"
<add> "sync"
<ide>
<ide> "github.com/go-check/check"
<ide> )
<ide> func (s *DockerSuite) TestExecResizeImmediatelyAfterExecStart(c *check.C) {
<ide> name := "exec_resize_test"
<ide> dockerCmd(c, "... | 1 |
Ruby | Ruby | fix bug in `brew list --pinned` | 776c08490fdc6451e8c53e33cd22756d4f0477ed | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list_pinned
<ide> else
<ide> ARGV.named.map{ |n| HOMEBREW_CELLAR+n }.select{ |pn| pn.exist? }
<ide> end.select do |d|
<del> (HOMEBREW_LIBRARY/"PinnedKegs"/d.basename.to_s).exist?
<add> keg_pin = (HOMEBREW_LIBRARY/"PinnedKegs"/d.basename.to_s)
<ad... | 1 |
Text | Text | improve readme, functional api guide | 263de77a5a19c05f6108fcbf7e3499f51bf234b6 | <ide><path>README.md
<ide> Keras is compatible with: __Python 2.7-3.5__.
<ide>
<ide> ## Getting started: 30 seconds to Keras
<ide>
<del>The core data structure of Keras is a __model__, a way to organize layers. There are two types of models: [`Sequential`](http://keras.io/models/#sequential) and [`Graph`](http://kera... | 2 |
Go | Go | fix call to nil stat | 811b138f7e6c742b821da15e34338651f33f9ec2 | <ide><path>daemon/start.go
<ide> func (daemon *Daemon) setHostConfig(container *Container, hostConfig *runconfig.
<ide> if err := parseSecurityOpt(container, hostConfig); err != nil {
<ide> return err
<ide> }
<add>
<add> // FIXME: this should be handled by the volume subsystem
<ide> // Validate the HostConfig bind... | 2 |
Ruby | Ruby | use 6.1 on mavericks." | f29376c867571c2416ef698ad11421a212caeb68 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> when "10.6" then "3.2.6"
<ide> when "10.7" then "4.6.3"
<ide> when "10.8" then "5.1.1"
<del> when "10.9" then "6.1"
<add> when "10.9" then "6.0.1"
<ide> when "10.10" then "6.1"
<ide> els... | 1 |
Python | Python | fix ndpointer and add tests from ticket #245 | a06ddf3e22ee65fe4009c8f0f304d4b26143e600 | <ide><path>numpy/lib/tests/test_utils.py
<add>from numpy.testing import *
<add>set_package_path()
<add>import numpy as N
<add>restore_path()
<add>
<add>class test_ndpointer(NumpyTestCase):
<add> def check_dtype(self):
<add> dt = N.intc
<add> p = N.ndpointer(dtype=dt)
<add> self.assert_(... | 2 |
Ruby | Ruby | make more `require`s in `namedargs` lazy | fddd589bc3f38378500bea962c2805e9db2c79fe | <ide><path>Library/Homebrew/cli/named_args.rb
<ide>
<ide> require "delegate"
<ide>
<del>require "cask/cask_loader"
<ide> require "cli/args"
<del>require "formula"
<del>require "formulary"
<del>require "keg"
<del>require "missing_formula"
<ide>
<ide> module Homebrew
<ide> module CLI
<ide> class NamedArgs < Array
<i... | 1 |
Text | Text | add mesteery to triagers | e5670f49682ced87451e5fc1e56d7d3fc396c6f2 | <ide><path>README.md
<ide> maintaining the Node.js project.
<ide> **Himadri Ganguly** <himadri.tech@gmail.com> (he/him)
<ide> * [marsonya](https://github.com/marsonya) -
<ide> **Akhil Marsonya** <akhil.marsonya27@gmail.com> (he/him)
<add>* [Mesteery](https://github.com/Mesteery) -
<add>**Mestery** <meste... | 1 |
Ruby | Ruby | make rackrequest#request_method respect _method | 1d002f6bcbd4e4f5cc421ee4da5be18839ccc4cb | <ide><path>actionpack/lib/action_controller/rack_process.rb
<ide> def remote_addr
<ide> @env['REMOTE_ADDR']
<ide> end
<ide>
<del> def request_method
<del> @env['REQUEST_METHOD'].downcase.to_sym
<del> end
<del>
<ide> def server_port
<ide> @env['SERVER_PORT'].to_i
<ide> end
<ide><path>... | 3 |
Ruby | Ruby | use version token helper methods | e27f7b0ed101608fbcb5e36e3cef77f3ffbda40d | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_file
<ide> !(versioned_formulae = formula.versioned_formulae).empty?
<ide> versioned_aliases = formula.aliases.grep(/.@\d/)
<ide> _, last_alias_version = versioned_formulae.map(&:name).last.split("@")
<del> major, minor, = f... | 1 |
Text | Text | fix spelling of built-in | c9b4add394970743fdfee3b4c8a84636a54c7f6e | <ide><path>readme.md
<ide> export default class Error extends React.Component {
<ide> }
<ide> ```
<ide>
<del>### Reusing the build in error page
<add>### Reusing the built-in error page
<ide>
<del>If you want to render the build in error page you can by using `next/error`:
<add>If you want to render the built-in erro... | 1 |
Ruby | Ruby | save flags in `with_full_permissions` | 642e355b4f042de80a78036f66d5810dc392cfdc | <ide><path>Library/Homebrew/cask/lib/hbc/pkg.rb
<ide> def rmdir(path)
<ide>
<ide> def with_full_permissions(path)
<ide> original_mode = (path.stat.mode % 01000).to_s(8)
<del> # TODO: similarly read and restore macOS flags (cf man chflags)
<add> original_flags = @command.run!("/usr/bin/stat", args: ... | 2 |
Text | Text | remove legacy in-page links in v8.md | 61e60a5e88effaf14516f6b03c1be6d9b6160590 | <ide><path>doc/api/v8.md
<ide> Called when the promise receives a resolution or rejection value. This may
<ide> occur synchronously in the case of `Promise.resolve()` or `Promise.reject()`.
<ide>
<ide> [HTML structured clone algorithm]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_... | 1 |
Python | Python | remove some comments out-dated | f97e0231ccf47f6b15152168fc5baae75134239c | <ide><path>official/nlp/bert/model_saving_utils.py
<ide> def export_bert_model(model_export_path: typing.Text,
<ide> raise ValueError('model must be a tf.keras.Model object.')
<ide>
<ide> if checkpoint_dir:
<del> # Keras compile/fit() was used to save checkpoint using
<del> # model.save_weights().
<ide> ... | 1 |
Text | Text | add note that `next build` output is compressed. | 8aa15a21f8f15faa5ea037b82e579d2cd7003878 | <ide><path>docs/api-reference/cli.md
<ide> NODE_OPTIONS='--inspect' next
<ide> - **Size** – The number of assets downloaded when navigating to the page client-side. The size for each route only includes its dependencies.
<ide> - **First Load JS** – The number of assets downloaded when visiting the page from the server.... | 1 |
Javascript | Javascript | fix vertex shader bug | 48123a33b10f51729cdd86ac63605409e09e2811 | <ide><path>src/renderers/shaders/ShaderLib.js
<ide> THREE.ShaderLib = {
<ide> "void main() {",
<ide>
<ide> THREE.ShaderChunk[ "color_vertex" ],
<del>
<del> " vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );",
<add> THREE.ShaderChunk[ "begin_vertex" ],
<add> THREE.ShaderChunk[ "project_vertex" ... | 1 |
Text | Text | add 1.10 migration docs | c8f263c73d0f3efd1834427346b3c5b170fcdab5 | <ide><path>docs/migration.md
<add><!--[metadata]>
<add>+++
<add>title = "Migrate to Engine 1.10"
<add>description = "Migrate to Engine 1.10"
<add>keywords = ["docker, documentation, engine, upgrade, migration"]
<add>[menu.main]
<add>parent = "engine_use"
<add>weight=79
<add>+++
<add><![end-metadata]-->
<add>
<add># Mig... | 1 |
Go | Go | remove unnecessary check for nil cstring | 11fda783f85e1f6027c997c6b044c65288c89099 | <ide><path>daemon/logger/journald/read.go
<ide> func (s *journald) readLogs(logWatcher *logger.LogWatcher, config logger.ReadCon
<ide> }
<ide> // Add a match to have the library do the searching for us.
<ide> cmatch = C.CString("CONTAINER_ID_FULL=" + s.vars["CONTAINER_ID_FULL"])
<del> if cmatch == nil {
<del> logWa... | 1 |
Ruby | Ruby | allow both python@3.8 and python@3.9 | be4723fac8d2d6b317d5b1eaf2149de74299a3d5 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_postgresql
<ide> lua@5.1
<ide> numpy@1.16
<ide> openssl@1.1
<add> python@3.8
<ide> python@3.9
<ide> ].freeze
<ide> | 1 |
Ruby | Ruby | remove ivar only when defined | 430b7c8b518fc628f2647323ba2bbb8dbb6cdd35 | <ide><path>activerecord/test/cases/adapters/mysql/quoting_test.rb
<ide> def test_type_cast_false
<ide>
<ide> def test_quoted_date_precision_for_gte_564
<ide> @conn.stubs(:full_version).returns('5.6.4')
<del> @conn.remove_instance_variable(:@version)
<add> @conn.remove_instance_variable(:@version) if @conn.... | 1 |
Python | Python | add tokenclassification test | e7b63eca61b69d4c344831abae25bcc61d638450 | <ide><path>keras/tests/integration_test.py
<ide> def test_serialization_v2_model(self):
<ide> loaded_model = keras.models.load_model(output_path)
<ide> self.assertEqual(model.summary(), loaded_model.summary())
<ide>
<add>@test_combinations.run_with_all_model_types
<add>@test_combinations.run_all_keras_modes
<a... | 1 |
PHP | PHP | fix tests that fail in phpunit 3.7 | f89fe0e1efcd77877a3fab8f13e41a7e129639f9 | <ide><path>lib/Cake/Test/Case/Event/CakeEventManagerTest.php
<ide> public function testDispatchWithKeyName() {
<ide> * @return void
<ide> */
<ide> public function testDispatchReturnValue() {
<add> $this->skipIf(
<add> version_compare(PHPUnit_Runner_Version::VERSION, '3.7', '<'),
<add> 'These tests fail in PHPUn... | 1 |
Text | Text | convert bare email addresses to mailto links | 414199d78d6df5e5fc22f6945f2fede29f376fb0 | <ide><path>doc/guides/cve-management-process.md
<ide> of contact points. Email aliases have been setup for these as follows:
<ide>
<ide> * **Public contact points**. Email address to which people will be directed
<ide> by Mitre when they are asked for a way to contact the Node.js team about
<del> CVE-related issue... | 1 |
Javascript | Javascript | fix typo in `unordered list` | ddef9c960a943f3ac81481caf45595a2977f331a | <ide><path>packages/ember-views/lib/views/collection_view.js
<ide> var get = Ember.get, set = Ember.set, fmt = Ember.String.fmt;
<ide> Given an empty `<body>` and the following code:
<ide>
<ide> ```javascript
<del> anUndorderedListView = Ember.CollectionView.create({
<add> anUnorderedListView = Ember.CollectionV... | 1 |
Mixed | Ruby | implement h2 early hints for rails | 59a02fb7bcbe68f26e1e7fdcec45c00c66e4a065 | <ide><path>actionpack/CHANGELOG.md
<add>* Add ability to enable Early Hints for HTTP/2
<add>
<add> If supported by the server, and enabled in Puma this allows H2 Early Hints to be used.
<add>
<add> The `javascript_include_tag` and the `stylesheet_link_tag` automatically add Early Hints if requested.
<add>
<add>... | 8 |
PHP | PHP | apply fixes from styleci | 5c8255b2a4b10593fa86013737a55560b96c8341 | <ide><path>src/Illuminate/Routing/CompiledRouteCollection.php
<ide>
<ide> namespace Illuminate\Routing;
<ide>
<del>use Exception;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Support\Collection; | 1 |
Javascript | Javascript | add test to ensure 'undefined' children is used | fe2002c3d855904c8f272c402f7a321d5bac5c37 | <ide><path>src/isomorphic/classic/element/__tests__/ReactElement-test.js
<ide> describe('ReactElement', function() {
<ide> expect(console.error.argsForCall.length).toBe(0);
<ide> });
<ide>
<add> it('overrides children if undefined is provided as an argument', function() {
<add> var element = React.createElem... | 2 |
Javascript | Javascript | add missing url prop | 3949c82bdfe268f841178979800aa8e71bbf412c | <ide><path>examples/with-apollo/lib/withData.js
<ide> export default ComposedComponent => {
<ide> // and extract the resulting data
<ide> const apollo = initApollo()
<ide> try {
<add> // create the url prop which is passed to every page
<add> const url = {
<add> query: ctx.query... | 1 |
Go | Go | change argument order of register function | 35df24c8e6195ebac6ea28ed4dda5b53b1021f38 | <ide><path>graph/graph.go
<ide> func (graph *Graph) Create(layerData archive.ArchiveReader, containerID, contain
<ide> img.ContainerConfig = *containerConfig
<ide> }
<ide>
<del> if err := graph.Register(nil, layerData, img); err != nil {
<add> if err := graph.Register(img, nil, layerData); err != nil {
<ide> retu... | 6 |
Ruby | Ruby | replace "data store" with database [ci skip] | 00824b09340e60c76d16550631ddccaecff03599 | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def discriminate_class_for_record(record)
<ide> end
<ide>
<ide> # Returns true if this object hasn't been saved yet -- that is, a record
<del> # for the object doesn't exist in the data store yet; otherwise, returns false.
<add> # for the obj... | 1 |
Javascript | Javascript | add test for transition.call | 8cc290a00a12d742ed208ad8b8e3f8025d248b96 | <ide><path>test/core/transition-test-call.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> return d3.select("body").append("div").transition();
<add> },
<add> "calls the function once": function(transition... | 2 |
PHP | PHP | add reply-to on config for mailer | 7b1474dcef74d1d0dd6bce8b73779c5508ed6be7 | <ide><path>src/Illuminate/Mail/MailServiceProvider.php
<ide> public function register()
<ide> if (is_array($to) && isset($to['address'])) {
<ide> $mailer->alwaysTo($to['address'], $to['name']);
<ide> }
<del>
<add>
<ide> $replyTo = $app['config']['mail.repl... | 2 |
Ruby | Ruby | fix typo in --config.rb | 0aea8d39e6a175a1cf6f81526928a2f4353cdc9a | <ide><path>Library/Homebrew/cmd/--config.rb
<ide> def dump_build_config
<ide> puts "/usr/bin/ruby => #{ruby.realpath}" unless ruby.realpath.to_s =~ %r{^/System}
<ide>
<ide> ponk = macports_or_fink_installed?
<del> puts "MacPorts/Fink: #{ponk?}" if ponk
<add> puts "MacPorts/Fink: #{ponk}" if ponk
<ide>
<... | 1 |
Javascript | Javascript | give function names | c28bdec39586de3721c9e1d14a68696f4ac24159 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> var EmberHandlebars = Ember.Handlebars, helpers = EmberHandlebars.helpers;
<ide> // Binds a property into the DOM. This will create a hook in DOM that the
<ide> // KVO system will look for and update if the property changes.
<ide> /** @private */
<del>va... | 2 |
Python | Python | migrate the swao plugin to psutil 2.0 | 060de6439fee6b59ac48628ef1c93f03a539d284 | <ide><path>glances/plugins/glances_mem.py
<ide> def update(self):
<ide> Update MEM (RAM) stats
<ide> """
<ide>
<del> # Grab CPU using the PSUtil cpu_times_percent method
<del> # !!! the first time this function is called with interval = 0.0 or None
<del> # !!! it will return a mea... | 2 |
Javascript | Javascript | document the new parameter | 6dd7dcd83b568bde9b1f91256b6065ffa6fd3f4e | <ide><path>src/text-editor.js
<ide> class TextEditor {
<ide> // Controls where the view is positioned relative to the `TextEditorMarker`.
<ide> // Values can be `'head'` (the default) or `'tail'` for overlay decorations, and
<ide> // `'before'` (the default) or `'after'` for block decorations.
<add> ... | 1 |
Ruby | Ruby | add options missing from earlier changeset | 91de20d6212b5203587d549ce2d63efcc5996eb0 | <ide><path>activerecord/lib/active_record/test_case.rb
<ide>
<ide> module ActiveRecord
<ide> class TestCase < ActiveSupport::TestCase #:nodoc:
<del> self.fixture_path = FIXTURES_ROOT
<del> self.use_instantiated_fixtures = false
<add> self.fixture_path = FIXTURES_ROOT
<add> self.use_instant... | 1 |
Javascript | Javascript | add jd(手机京东) to featured list in showcase | 584bd0da24cf8fb8be29439063b1495bbc85d278 | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.sleeperbot&hl=en',
<ide> infoLink: 'https://medium.com/sleeperbot-hq/switching-to-react-native-in-production-on-ios-and-android-e6b675402712#.cug6h6qhn',
<ide> infoT... | 1 |
PHP | PHP | remove test code | a39c52c67dae96854fe3addc95af68bddd95cb98 | <ide><path>routes/web.php
<ide> */
<ide>
<ide> Route::get('/', function () {
<del> dd(env('REDIS_PORT'));
<ide> return view('welcome');
<ide> }); | 1 |
Java | Java | fix broken javadoc tags | ab2c78a9d58f38a5cc7f8e9ba27555b9ee2aa65a | <ide><path>spring-core/src/main/java/org/springframework/util/ClassUtils.java
<ide> public static Method getInterfaceMethodIfPossible(Method method) {
<ide> * Note that, despite being synthetic, bridge methods ({@link Method#isBridge()}) are considered
<ide> * as user-level methods since they are eventually pointin... | 6 |
Javascript | Javascript | add formatdatetime back into ti log | 8fa976e514a411a1ecefa011f57416cf1fe09702 | <ide><path>airflow/www/static/js/ti_log.js
<ide> /* global document, window, $, */
<ide> import { escapeHtml } from './main';
<ide> import getMetaValue from './meta_value';
<add>import { formatDateTime } from './datetime_utils';
<ide>
<ide> const executionDate = getMetaValue('execution_date');
<ide> const dagId = getM... | 1 |
Text | Text | update translation linear-search | ae66b222950da57458a6ce51cb0db0f30190cc10 | <ide><path>guide/portuguese/algorithms/search-algorithms/linear-search/index.md
<ide> def linear_search(array, num):
<ide> return -1
<ide> ```
<ide>
<add>### Exemplo em Swift
<add>```swift
<add>func linearSearch(for number: Int, in array: [Int]) -> Int? {
<add> for (index, value) in array.enumerated() {
<add> ... | 1 |
Text | Text | add release notes for 1.3 | 399a7afafefb8818f255d5b9e6a42b2b57aabf97 | <ide><path>CHANGELOG.md
<add><a name="1.3.0"></a>
<add># 1.3.0 superluminal-nudge (2014-10-13)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$browser:**
<add> - account for IE deserializing history.state on each read
<add> ([1efaf3dc](https://github.com/angular/angular.js/commit/1efaf3dc136f822703a9cda55afac7895a923cc... | 1 |
Text | Text | clarify the section about dogfooding | 6c9da395144d7595f9ef8eff522d1d3d22b8b420 | <ide><path>docs/contributing/design-principles.md
<ide> If we want to deprecate a pattern that we don't like, it is our responsibility t
<ide>
<ide> ### Stability
<ide>
<del>We value API stability because at Facebook we have more than 20 thousand components using React. This means that we are reluctant to change publ... | 1 |
Java | Java | fix bad javadoc link | 317662465fe7c8f5ae7c9541b4bb05a06a0e524e | <ide><path>src/main/java/io/reactivex/package-info.java
<ide> * {@link io.reactivex.Flowable}, {@link io.reactivex.Observable}, {@link io.reactivex.Single}
<ide> * or {@link io.reactivex.Completable} class which then allow consumers to subscribe to them
<ide> * and receive events.</p>
<del> * <p>Usage examples can b... | 1 |
Go | Go | fix flaky testapistatsnostreamgetcpu | c141574d5d9ea7bb5188764d5d193450dc2b9bc8 | <ide><path>integration-cli/docker_api_stats_test.go
<ide> import (
<ide> var expectedNetworkInterfaceStats = strings.Split("rx_bytes rx_dropped rx_errors rx_packets tx_bytes tx_dropped tx_errors tx_packets", " ")
<ide>
<ide> func (s *DockerSuite) TestAPIStatsNoStreamGetCpu(c *check.C) {
<del> out, _ := dockerCmd(c, "r... | 1 |
Python | Python | enable specifying api version | f4caab373b18e3c02cdfe3e4580cb03efb7a9199 | <ide><path>libcloud/common/dimensiondata.py
<ide> class DimensionDataConnection(ConnectionUserAndKey):
<ide> allow_insecure = False
<ide>
<ide> def __init__(self, user_id, key, secure=True, host=None, port=None,
<del> url=None, timeout=None, proxy_url=None, **conn_kwargs):
<add> ... | 2 |
Python | Python | add register method to autoprocessor | cdc51ffd27f8f5a3151da161ae2b5dbb410d2803 | <ide><path>src/transformers/models/auto/processing_auto.py
<ide> def processor_class_from_name(class_name: str):
<ide>
<ide> module = importlib.import_module(f".{module_name}", "transformers.models")
<ide> return getattr(module, class_name)
<del> break
<add>
<add> for processor in... | 2 |
Text | Text | fix typos in contributing.md | c553c3ec575033e28e514acded2d0bce0dacd4fc | <ide><path>CONTRIBUTING.md
<ide> of documentation fix), then feel free to open a PR without discussion.
<ide> ### The small print
<ide>
<ide> Contributions made by corporations are covered by a different agreement than
<del>the one above, the
<add>the one above, see the
<ide> [Software Grant and Corporate Contributor ... | 1 |
Javascript | Javascript | add a separate button for logging values | 5b120d6b24e29972ec8bc8b00638051c55f08a43 | <ide><path>src/backend/agent.js
<ide> export default class Agent extends EventEmitter {
<ide> bridge.addListener('getProfilingSummary', this.getProfilingSummary);
<ide> bridge.addListener('highlightElementInDOM', this.highlightElementInDOM);
<ide> bridge.addListener('inspectElement', this.inspectElement);
<... | 6 |
Javascript | Javascript | fix dropdown [ci skip] | bb62e3c8fcdcf5c8b1d3da8104b68577981ec97b | <ide><path>website/src/components/dropdown.js
<ide> import { navigate } from 'gatsby'
<ide> import classes from '../styles/dropdown.module.sass'
<ide>
<ide> export default function Dropdown({ defaultValue, className, onChange, children }) {
<del> const defaultOnChange = ({ target }) => navigate(target.value)
<add> ... | 1 |
Javascript | Javascript | fix locale name | e96809208c9d1b1bbe22d605e76985770024de42 | <ide><path>src/locale/ar-ly.js
<ide> //! moment.js locale configuration
<del>//! locale : Arabic (Lybia) [ar-ly]
<add>//! locale : Arabic (Libya) [ar-ly]
<ide> //! author : Ali Hmer: https://github.com/kikoanis
<ide>
<ide> import moment from '../moment'; | 1 |
Python | Python | remove certifi test | bd404be03672ed5a7a0bddb242aa92f597fab957 | <ide><path>libcloud/test/test_httplib_ssl.py
<ide> def test_setup_ca_cert(self, _):
<ide>
<ide> self.assertTrue(self.httplib_object.ca_cert is not None)
<ide>
<del> def test_certifi_ca_bundle_in_search_path(self):
<del> mock_certifi_ca_bundle_path = '/certifi/bundle/path'
<del>
<del> # Certif... | 1 |
Text | Text | use consistent naming in stream doc | 1a9d6316b8e707ba4730ba421c7d1fb960dcb288 | <ide><path>doc/api/stream.md
<ide> method. This will be called when there is no more written data to be consumed,
<ide> but before the [`'end'`][] event is emitted signaling the end of the
<ide> [`Readable`][] stream.
<ide>
<del>Within the `transform._flush()` implementation, the `readable.push()` method
<add>Within t... | 1 |
Javascript | Javascript | add example and clear up wording for cp get/set | 3b0baff261c778c8b30f3a5b1b286a090663ba80 | <ide><path>packages/ember-metal/lib/computed.js
<ide> ComputedPropertyPrototype.teardown = function(obj, keyName) {
<ide> computed property function. You can use this helper to define properties
<ide> with mixins or via `Ember.defineProperty()`.
<ide>
<del> If you pass function as argument - it will be used as ge... | 1 |
Text | Text | add bartosz sosnowski to colaborators | 6ee9e296527b524309e92bbb91a386b49f525a2b | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [benjamingr](https://github.com/benjamingr) - **Benjamin Gruenbaum** <benjamingr@gmail.com>
<ide> * [bmeck](https://github.com/bmeck) - **Bradley Farias** <bradley.meck@gmail.com>
<ide> * [brendanashworth](https:... | 1 |
Ruby | Ruby | add error handling for metadata server | dfd19e1a76bd313bdfb35dc02c2e53f71611b953 | <ide><path>activestorage/lib/active_storage/service/gcs_service.rb
<ide> module ActiveStorage
<ide> # Wraps the Google Cloud Storage as an Active Storage service. See ActiveStorage::Service for the generic API
<ide> # documentation that applies to all services.
<ide> class Service::GCSService < Service
<add> c... | 1 |
Python | Python | enable docstrings for fmin and fmax | 8a455cbdae39233b18758d064f5959ae56e4922b | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def __init__(self, nin, nout, identity, docstring,
<ide> ),
<ide> 'fmax' :
<ide> Ufunc(2, 1, None,
<del> "",
<add> docstrings.get('numpy.core.umath.fmax'),
<ide> TD(noobj),
<ide> TD(O, f='npy_ObjectMax')
<i... | 1 |
Javascript | Javascript | provide api for retrieving function annotations | 4361efb03b79e71bf0cea92b94ff377ed718bad4 | <ide><path>src/auto/injector.js
<ide> var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m;
<ide> var FN_ARG_SPLIT = /,/;
<ide> var FN_ARG = /^\s*(_?)(.+?)\1\s*$/;
<ide> var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
<del>function inferInjectionArgs(fn) {
<del> assertArgFn(fn);
<del> if (!fn.$inject) {
<del> ... | 2 |
Text | Text | add common cask issues | 820e8303dfca47644b53467baba1c7bd7caa86b1 | <ide><path>docs/Common-Issues.md
<ide> xcode-select --install
<ide> brew upgrade
<ide> ```
<ide>
<add>## Cask - cURL error
<add>
<add>First, let's tackle a common problem: do you have a `.curlrc` file? Check with `ls -A ~ | grep .curlrc` (if you get a result, the file exists). Those are a frequent cause of issues of t... | 1 |
PHP | PHP | fix empty email with attachments | 1a146d2c170390def0b017146b21c9f8c21691ce | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> protected function parseView($view)
<ide> protected function addContent($message, $view, $plain, $raw, $data)
<ide> {
<ide> if (isset($view)) {
<del> $message->setBody($this->renderView($view, $data), 'text/html');
<add> $message->set... | 1 |
PHP | PHP | move view builder onto renderer instead of email | 326f9e413c1e6b5da15d96891f44bfefe8ffa787 | <ide><path>src/Mailer/Email.php
<ide> use Cake\Core\StaticConfigTrait;
<ide> use Cake\Log\Log;
<ide> use Cake\Utility\Text;
<del>use Cake\View\ViewVarsTrait;
<ide> use InvalidArgumentException;
<ide> use JsonSerializable;
<ide> use LogicException;
<ide> class Email implements JsonSerializable, Serializable
<ide> {
<ide... | 2 |
PHP | PHP | add type hints to database/expression | 67d33c620f763952b0abdb89fc4e4c56bb27a5e4 | <ide><path>src/Database/Expression/BetweenExpression.php
<ide> public function __construct($field, $from, $to, $type = null)
<ide> * @param \Cake\Database\ValueBinder $generator Placeholder generator object
<ide> * @return string
<ide> */
<del> public function sql(ValueBinder $generator)
<add> publ... | 13 |
Ruby | Ruby | add launchctl_instructions method | d23366ae9a39390a31f5c1a424209c8169cfa7cb | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula f
<ide> puts f.caveats
<ide> end
<ide>
<add> f.launchctl_instructions
<add>
<ide> rescue FormulaUnavailableError
<ide> # check for DIY installation
<ide> d = HOMEBREW_PREFIX+name
<ide><path>Library/Homebrew/formula.rb
<ide> def prefi... | 3 |
Javascript | Javascript | deal ie8 out of size error | 54a74d95bb19a1f1cbe36aeff42f20a302b53658 | <ide><path>src/browser/ui/dom/DOMChildrenOperations.js
<ide> function insertChildAt(parentNode, childNode, index) {
<ide> // browsers so we must replace it with `null`.
<ide>
<ide> // fix render order error in safari
<del> if (!(document.all && !document.addEventListener)) {
<del> parentNode.insertBefore(
<del... | 1 |
Mixed | Javascript | move queuemicrotask to stable | 9f1282d536dc8f0a11714980b4b78ee0b979e1de | <ide><path>doc/api/globals.md
<ide> added: v11.0.0
<ide>
<ide> <!-- type=global -->
<ide>
<del>> Stability: 1 - Experimental
<del>
<ide> * `callback` {Function} Function to be queued.
<ide>
<ide> The `queueMicrotask()` method queues a microtask to invoke `callback`. If
<ide><path>lib/internal/bootstrap/node.js
<ide>... | 4 |
Text | Text | fix typo in docs | 2a4492d74f425dd420a2c85e715cbd60974487a9 | <ide><path>docs/templates/getting-started/sequential-model-guide.md
<ide> Such a two-branch model can then be trained via e.g.:
<ide>
<ide> ```python
<ide> final_model.compile(optimizer='rmsprop', loss='categorical_crossentropy')
<del>final_model.fit([input_data_1, input_data_2], targets) # we pass on data array per ... | 1 |
Python | Python | use yaml to create metadata | 255a17a089a507c23f0c786d704bf876d3eb5b4d | <ide><path>setup.py
<ide> "parameterized",
<ide> "protobuf",
<ide> "psutil",
<add> "pyyaml",
<ide> "pydantic",
<ide> "pytest",
<ide> "pytest-sugar",
<ide> def run(self):
<ide> deps["huggingface-hub"],
<ide> deps["numpy"],
<ide> deps["packaging"], # utilities from PyPA to e.g., co... | 3 |
Javascript | Javascript | remove superfluous call to geterror | 9124a941ae634d30b80b380e59b587d27e03efd8 | <ide><path>schemas/ajv.absolutePath.js
<ide> module.exports = (ajv) => ajv.addKeyword("absolutePath", {
<ide> function callback(data) {
<ide> const passes = expected === /^(?:[a-zA-Z]:)?(?:\/|\\)/.test(data);
<ide> if(!passes) {
<del> getErrorFor(expected, data, schema);
<ide> callback.errors = [getError... | 1 |
Java | Java | remove unused field | 7c433712d1149ddb11c31e4a9f31ba362ed6dbb5 | <ide><path>org.springframework.context/src/main/java/org/springframework/ui/binding/UserValue.java
<ide> public Object getValue() {
<ide> return value;
<ide> }
<ide>
<del> /**
<del> * Is the user-entered value a String?
<del> */
<del> public boolean isString() {
<del> return value instanceof String;
<del> }
<de... | 1 |
Javascript | Javascript | fix duplicate react when running examples | 7245b589262c56c6d3b4540c3cd3f17edda65467 | <ide><path>examples/counter/webpack.config.js
<ide> module.exports = {
<ide> ],
<ide> resolve: {
<ide> alias: {
<del> 'redux': path.join(__dirname, '../../src')
<add> 'redux': path.join(__dirname, '..', '..', 'src'),
<add> 'react': path.join(__dirname, '..', '..', 'node_modules', 'react')
<ide> ... | 2 |
Javascript | Javascript | fetch node to unmount separately from unmounting | 622db4ee4fb61451b32fceb13d68a9589a2faecd | <ide><path>src/renderers/dom/client/__tests__/ReactMount-test.js
<ide> describe('ReactMount', function() {
<ide> 'render the new components instead of calling ReactDOM.render.'
<ide> );
<ide> });
<add>
<add> it('should not crash in node cache when unmounting', function() {
<add> var Component = React.cr... | 8 |
PHP | PHP | add ability and command to clear queues | f34af246d57c51b320f9c5331936399daa9ee364 | <ide><path>src/Illuminate/Contracts/Queue/ClearableQueue.php
<add><?php
<add>
<add>namespace Illuminate\Contracts\Queue;
<add>
<add>interface ClearableQueue
<add>{
<add> /**
<add> * Clear all jobs from the queue.
<add> *
<add> * @param string $queue
<add> * @return int
<add> */
<add> public ... | 8 |
Javascript | Javascript | add getenv to jest's type definition | e293f8e01fa605c5f6791ccbe1c65140862e1ace | <ide><path>flow/jest.js
<ide> declare function spyOn(value: mixed, method: string): Object;
<ide> /** Holds all functions related to manipulating test runner */
<ide> declare var jest: JestObjectType;
<ide>
<add>/**
<add> * https://jasmine.github.io/2.4/custom_reporter.html
<add> */
<add>type JasmineReporter = {
<add>... | 1 |
Java | Java | fix a typo in package description | 6900645d59b7fa808cac9bae369611b73793a8ce | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/package-info.java
<del>
<ide> /**
<ide> *
<ide> * The classes in this package make JDBC easier to use and
<ide> * reduce the likelihood of common errors. In particular, they:
<ide> * <ul>
<del> * <li>Simplify error handling, avoiding the need for try/cat... | 1 |
Ruby | Ruby | add homebrew_repository prefix for `brew up` | d3954d3d77e9e95327e2d54d98a9dae806acc24e | <ide><path>Library/Homebrew/global.rb
<ide>
<ide> HOMEBREW_PREFIX = (Pathname.getwd+__FILE__).dirname.parent.parent.cleanpath
<ide> HOMEBREW_CELLAR = HOMEBREW_PREFIX+'Cellar'
<add>HOMEBREW_REPOSITORY = HOMEBREW_CELLAR.realpath.parent
<ide> HOMEBREW_VERSION = 0.4
<ide> HOMEBREW_WWW = 'http://bit.ly/Homebrew'
<ide>
<id... | 2 |
Python | Python | remove unused import | 3c45bc35234faa07a4ac095fccbc4998c2481bdf | <ide><path>numpy/lib/scimath.py
<ide> import numpy.core.numeric as nx
<ide> import numpy.core.numerictypes as nt
<ide> from numpy.core.numeric import asarray, any
<del>from numpy.lib.type_check import isreal, asscalar
<add>from numpy.lib.type_check import isreal
<ide>
<ide>
<ide> __all__.extend([key for key in dir(nx... | 1 |
PHP | PHP | fix issues with stateless authentication | e457c14dec4dab203cb0cd38c0e9dca47ef0f549 | <ide><path>lib/Cake/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component {
<ide> */
<ide> public static $sessionKey = 'Auth.User';
<ide>
<add>/**
<add> * The current user, used for stateless authentication when
<add> * sessions are not available.
<add> *
<add> * @var array
<add> */
<add... | 2 |
Text | Text | add 2.4.1 to changelog | e6de34d152b64c989a44f24cd7cd4cde63f94a9e | <ide><path>CHANGELOG.md
<ide> - [#13024](https://github.com/emberjs/ember.js/pull/13024) [BUGFIX] Change internal async acceptance test helpers to be somewhat more efficient in determining router transition status.
<ide> - [FEATURE] Add helper method named `Ember.assign` to roughly emulate `Object.assign`.
<ide>
<add>... | 1 |
Go | Go | fix a nil dereference in buildfile_test.go | aa8ea84d11ccac8f68fa1b0337633dd7d49a44fe | <ide><path>buildfile_test.go
<ide> package docker
<ide>
<ide> import (
<ide> "io/ioutil"
<add> "sync"
<ide> "testing"
<ide> )
<ide>
<ide> func TestBuild(t *testing.T) {
<ide> }
<ide> defer nuke(runtime)
<ide>
<del> srv := &Server{runtime: runtime}
<add> srv := &Server{
<add> runtime: runtime,
<add> lock:... | 1 |
Python | Python | remove old comment | c8949ce88a8498d3b28466e39960a171e81954c3 | <ide><path>spacy/lang/nb/__init__.py
<ide> from ...attrs import LANG, NORM
<ide> from ...util import update_exc, add_lookups
<ide>
<del># Borrowing french syntax parser because both languages use
<del># universal dependencies for tagging/parsing.
<del># Read here for more:
<del># https://github.com/explosion/spaCy/pul... | 1 |
Java | Java | fix typo in dispatcherservlet javadoc | 1e0bdc0337843203f0971b2de7b9c5e2f221fbc5 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
<ide> public class DispatcherServlet extends FrameworkServlet {
<ide> public static final String FLASH_MAP_MANAGER_ATTRIBUTE = DispatcherServlet.class.getName() + ".FLASH_MAP_MANAGER";
<ide>
<ide> /**
<del> * Name of reque... | 1 |
Javascript | Javascript | fix chunkasset hook call | 7473ed490215d0a18b6062f4ea97f97b71789a4e | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> module.exports = class HotModuleReplacementPlugin {
<ide> hotUpdateMainContent.c[chunkId] = true;
<ide> currentChunk.files.push(filename);
<ide> compilation.hooks.chunkAsset.call(
<del> "HotModuleReplacementPlugin",
<ide> c... | 1 |
Python | Python | remove unnecessary newline replace | d64cfce546739f498173ca1bfec5213ce4efc420 | <ide><path>spacy/lang/it/punctuation.py
<ide> from ..char_classes import ALPHA
<ide>
<ide>
<del>ELISION = " ' ’ ".strip().replace(" ", "").replace("\n", "")
<add>ELISION = " ' ’ ".strip().replace(" ", "")
<ide>
<ide>
<ide> _infixes = TOKENIZER_INFIXES + [
<ide><path>spacy/lang/lb/punctuation.py
<ide> from ..char_cl... | 2 |
Go | Go | fix bug in bitsequence.pushreservation | 90711b0deff96169aafa8c5b9a25f0bb70a9123a | <ide><path>libnetwork/bitseq/sequence.go
<ide> func pushReservation(bytePos, bitPos uint64, head *sequence, release bool) *sequ
<ide> }
<ide> removeCurrentIfEmpty(&newHead, newSequence, current)
<ide> mergeSequences(previous)
<del> } else if precBlocks == current.count-2 { // Last in sequence (B)
<add> } else if ... | 2 |
Ruby | Ruby | fix some bottling logic | a24197bcc995781caa14855fecf7f31ac0ac43d8 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula(f)
<ide> end
<ide>
<ide> if devel = f.devel
<del> s = "devel #{devel.version}"
<del> s += " (bottled)" if devel.bottled?
<del> specs << s
<add> specs << "devel #{devel.version}"
<ide> end
<ide>
<ide> specs << "HEAD" if ... | 3 |
Javascript | Javascript | call ensurepage only in the dev mode | 893884302507e01b1a44b3bedf06103cb142de51 | <ide><path>server/index.js
<ide> export default class Server {
<ide> const paths = params.path || ['']
<ide> const pathname = `/${paths.join('/')}`
<ide>
<del> await this.hotReloader.ensurePage(pathname)
<add> if (this.dev) {
<add> await this.hotReloader.ensurePage(pathname)
<add... | 1 |
Text | Text | fix docs for tension | 568c61c56d733a5cc66fd128d1559b6b3cd075e9 | <ide><path>docs/00-Getting-Started.md
<ide> arc | Object | - | -
<ide> *arc*.borderColor | Color | "#fff" | Default stroke color for arcs
<ide> *arc*.borderWidth | Number | 2 | Default stroke width for arcs
<ide> line | Object | - | -
<del>*line*.lineTension | Number | 0.4 | Default bezier curve tension. Set to `0` for... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.