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 | apply fixes from styleci | e9c65cdd243d802784b193595227bfa29147f367 | <ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
<ide> use Illuminate\Auth\Console\ClearResetsCommand;
<ide> use Illuminate\Cache\Console\CacheTableCommand;
<ide> use Illuminate\Foundation\Console\ServeCommand;
<del>use Illuminate\Queue\Console\FailedTableCommand;
<ide> use Illuminate\Foundatio... | 1 |
PHP | PHP | remove cheeck for "requestaction()" requests | f5996c3e84886024175f87fe193150c93450ab5b | <ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php
<ide> public function __invoke(ServerRequestInterface $request, ResponseInterface $res
<ide> $request = $request->withAttribute('params', $params);
<ide> }
<ide>
<del> $requested = $request->getParam('requested');
<del> if ($... | 2 |
Text | Text | update animation docs for createelement | 0dd942b1214d1b3cdd3524f9331031024c4ef602 | <ide><path>docs/docs/09.1-animation.md
<ide> This is called when the `willLeave` `callback` is called (at the same time as `c
<ide> By default `ReactTransitionGroup` renders as a `span`. You can change this behavior by providing a `component` prop. For example, here's how you would render a `<ul>`:
<ide>
<ide> ```java... | 1 |
Go | Go | add util to fetch container status | 5d1cb9d0051c5263e23f06ccb431481f8e5b3d57 | <ide><path>integration-cli/docker_utils.go
<ide> func getIDByName(name string) (string, error) {
<ide> return inspectField(name, "Id")
<ide> }
<ide>
<add>// getContainerState returns the exit code of the container
<add>// and true if it's running
<add>// the exit code should be ignored if it's running
<add>func getCo... | 1 |
Python | Python | add language codes | 08b59d10e507d2235de70430da5ae6e19afd90cc | <ide><path>src/transformers/tokenization_bart.py
<ide> # limitations under the License.
<ide>
<ide> import logging
<add>from typing import List, Optional
<ide>
<ide> from .tokenization_roberta import RobertaTokenizer
<add>from .tokenization_utils import BatchEncoding
<ide> from .tokenization_xlm_roberta import XLMRob... | 2 |
PHP | PHP | add test for find('list') with assocaited table | 8e1bf95bfa490567b351f6dd211bb1656455c2b3 | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testFindListWithVirtualField()
<ide> $this->assertEmpty($query->clause('select'));
<ide> }
<ide>
<add> /**
<add> * Test find('list') with value field from associated table
<add> *
<add> * @return void
<add> */
<add> pub... | 1 |
Python | Python | move the rest of the ops to gpu | 0d1b00b1e9ff3fbe39735839423e8f15d471e70d | <ide><path>swivel/swivel.py
<ide> def __init__(self, config):
<ide> sys.stdout.flush()
<ide>
<ide> # ===== CREATE VARIABLES ======
<del>
<del> with tf.device('/cpu:0'):
<del> # embeddings
<del> self.row_embedding = embeddings_with_init(
<del> embedding_dim=config.embedding_size,
<del> ... | 1 |
Go | Go | use gotest.tools compare utilities | c207947508d88b9bbb0f2ae044389c9a39788724 | <ide><path>integration-cli/docker_cli_plugins_test.go
<ide> import (
<ide> "github.com/docker/docker/integration-cli/daemon"
<ide> "github.com/docker/docker/testutil/fixtures/plugin"
<ide> "gotest.tools/v3/assert"
<add> is "gotest.tools/v3/assert/cmp"
<ide> "gotest.tools/v3/skip"
<ide> )
<ide>
<ide> func (ps *Dock... | 1 |
Javascript | Javascript | avoid materializing arraybuffer for creation | 6a0f4636d9f8e94ebe905f0807edd0f5d9fbdd51 | <ide><path>lib/buffer.js
<ide> let poolSize, poolOffset, allocPool;
<ide> const zeroFill = bindingZeroFill || [0];
<ide>
<ide> function createUnsafeBuffer(size) {
<del> return new FastBuffer(createUnsafeArrayBuffer(size));
<del>}
<del>
<del>function createUnsafeArrayBuffer(size) {
<ide> zeroFill[0] = 0;
<ide> try... | 1 |
Javascript | Javascript | add more valid results to test-trace-atomics-wait | e06037abc4e319d30604000f430e94e6ae5393c1 | <ide><path>test/parallel/test-trace-atomics-wait.js
<ide> const expectedTimelines = [
<ide> [Thread 0] Atomics.wait(<address> + 4, 0, inf) started
<ide> [Thread 1] Atomics.wait(<address> + 4, -1, inf) started
<ide> [Thread 0] Atomics.wait(<address> + 4, 0, inf) was woken up by another thread
<add>[Thread 1] Atomics.wai... | 1 |
Text | Text | fix typo cppu | 5fa89262d87561dd1485b2ab585d4ec2606b3a23 | <ide><path>guide/arabic/computer-hardware/cpu/index.md
<ide> localeTitle: وحدة المعالجة المركزية
<ide>
<ide> Gigahertz ليس العامل الوحيد الذي يحدد السرعة الفعلية للمعالج ، حيث أن المعالجات المختلفة بنفس السرعة gigahertz (المعروفة أيضًا بسرعة الساعة) قد تؤدي مهام في العالم الحقيقي بسرعات مختلفة بسبب استخدام مجموعات مخت... | 1 |
Javascript | Javascript | show message for legacy donors | 81bb677defc6b5fac433597469148b323e7ade4d | <ide><path>client/src/pages/donation/settings.js
<ide> export class DonationSettingsPage extends Component {
<ide> }
<ide>
<ide> renderServicebotEmbed() {
<add> const { donationEmails } = this.props;
<add> if (!donationEmails || donationEmails.length === 0) {
<add> return null;
<add> }
<ide> cons... | 1 |
Javascript | Javascript | add .autoupdate to lod | 9c0b8a57be4464b30f420357af2cd9308fda0442 | <ide><path>src/objects/LOD.js
<ide> function LOD() {
<ide> }
<ide> } );
<ide>
<add> this.autoUpdate = true;
<add>
<ide> }
<ide>
<ide> LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
<ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> groupOr... | 2 |
Ruby | Ruby | allow setting of any libpq connection parameters | 8ee6406acc67aa721127d69486bf8e244ea6d576 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> module ConnectionHandling
<ide> # Establishes a connection to the database that's used by all Active Record objects
<ide> def postgresql_connection(config) # :nodoc:
<ide> config = config.symbolize_keys
<del> ho... | 1 |
Python | Python | add spacy.info module | e3e25c0a33de8c68f9fe744e92546c18c163b5d3 | <ide><path>spacy/info.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import plac
<add>import platform
<add>import sys
<add>from pathlib import Path
<add>from . import about
<add>from . import util
<add>
<add>
<add>@plac.annotations(
<add> model=("Model to download", "positional", None... | 1 |
Javascript | Javascript | fix timeout handling | e05652e535082807b16afe5fbeb53a7a5b47b335 | <ide><path>test/configCases/plugins/profiling-plugin/test.config.js
<add>module.exports = {
<add> timeout: 60000
<add>};
<ide><path>test/helpers/createLazyTestEnv.js
<ide> module.exports = (globalTimeout = 2000, nameSuffix = "") => {
<ide> describe(
<ide> nameSuffix ? `exported tests ${nameSuffix}` : "exported tests... | 2 |
Python | Python | add an option to create a static public ip address | cc99a1a937b314dc2663c69d33e5def004bf9375 | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide> def ex_list_public_ips(self, resource_group):
<ide> params={"api-version": "2015-06-15"})
<ide> return [self._to_ip_address(net) for net in r.object["value"]]
<ide>
<del> def ex_create_public_ip(self, name, resource_g... | 1 |
Python | Python | add test for get_version (cli) | 9121e109bdcd8b2a50bf53cac73b470232d126df | <ide><path>tests/test_cli.py
<ide>
<ide> from flask.cli import AppGroup, FlaskGroup, NoAppException, ScriptInfo, \
<ide> find_best_app, locate_app, with_appcontext, prepare_exec_for_file, \
<del> find_default_import_path
<add> find_default_import_path, get_version
<ide>
<ide>
<ide> def test_cli_name(test_a... | 1 |
Javascript | Javascript | adjust nomenclature (pt) | 9cc102d195c234bc644616aac456b5f7859b2947 | <ide><path>src/locale/pt.js
<ide> import moment from '../moment';
<ide>
<ide> export default moment.defineLocale('pt', {
<del> months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
<del> monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.spli... | 1 |
Ruby | Ruby | add shared method for upgrading casks | b1ca2f7e3c4499d347a831d988e91ea93d01d65e | <ide><path>Library/Homebrew/cask/cmd/upgrade.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "env_config"
<ide> require "cask/config"
<ide>
<ide> module Cask
<ide> def initialize(*)
<ide> end
<ide>
<ide> def run
<del> outdated_casks = casks(alternative: lambda {
<add> self.class.u... | 3 |
Javascript | Javascript | fix error handling with async iteration | 9c48926dba20a507968d4152fafa9d51d69cf970 | <ide><path>lib/internal/streams/async_iterator.js
<ide> function onError(iter, err) {
<ide> iter[kLastReject] = null;
<ide> reject(err);
<ide> }
<del> iter.error = err;
<add> iter[kError] = err;
<ide> }
<ide>
<ide> function wrapForNext(lastPromise, iter) {
<ide><path>test/parallel/test-stream-readable-asyn... | 2 |
Javascript | Javascript | fix quaternion.slerp for special case t=0 and t=1 | 1965a19f3d62f01d54767f94b64612d265991833 | <ide><path>src/math/Quaternion.js
<ide> THREE.Quaternion.prototype = {
<ide>
<ide> slerp: function ( qb, t ) {
<ide>
<add> if (t === 0) {
<add>
<add> return this;
<add>
<add> }
<add>
<add> else if (t === 1) {
<add>
<add> return this.copy( qb );
<add>
<add> }
<add>
<ide> var x = this._x, y = this._y, z = th... | 2 |
Ruby | Ruby | fix checkout on initial clone | 017a5014715d21b8fc8b8aa2d0f42fec1d47f933 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> end
<ide> end
<ide>
<del> def stage
<del> ohai "Checking out #{@ref_type} #{@ref}" if @ref_type && @ref
<del> end
<del>
<ide> def cached_location
<ide> @clone
<ide> end
<ide> def fetch_repo(target, url, revision = nil, ignore_ext... | 1 |
Text | Text | fix inaccuracy in https.request docs | ca57912e0529937f736e284e2fb03c9f9bd0d8b0 | <ide><path>doc/api/https.md
<ide> The options argument has the following options
<ide> - `false`: opts out of connection pooling with an Agent, defaults request to
<ide> `Connection: close`.
<ide>
<del>The following options from [`tls.connect()`][] can also be specified. However, a
<del>[`globalAgent`][] silently ... | 1 |
Python | Python | handle more node states in rackspace better | b2f11d9eec4ec9b904d9f964dc38b76f38b4fe67 | <ide><path>libcloud/drivers/rackspace.py
<ide> class RackspaceNodeDriver(NodeDriver):
<ide> features = {"create_node": ["generates_password"]}
<ide>
<ide> NODE_STATE_MAP = { 'BUILD': NodeState.PENDING,
<add> 'REBUILD': NodeState.PENDING,
<ide> 'ACTIVE': NodeState.RU... | 1 |
Ruby | Ruby | add methods to architecturelistextension | 43f77f6ad085b8dbe0a64da1914326b98d33aed1 | <ide><path>Library/Homebrew/utils.rb
<ide> module ArchitectureListExtension
<ide> def universal?
<ide> self.include? :i386 and self.include? :x86_64
<ide> end
<add>
<add> def remove_ppc!
<add> self.delete :ppc7400
<add> self.delete :ppc64
<add> end
<add>
<add> def as_arch_flags
<add> self.collect{ |... | 1 |
Javascript | Javascript | move remaining things to named exports | 549e41883046def7033a6939ecc9817a22847a61 | <ide><path>packages/eslint-plugin-react-hooks/index.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> */
<ide>
<del>'use strict';
<del>
<del>module.exports = require('./src/index');
<add>export * from './src/index';
<ide><path>packages/react-art/Circle.js
<ide> * @flow
<ide> */
<ide>
<del>'... | 40 |
Java | Java | remove an unnecessary intermediate variable | 826db885093360e8dd27f3ef566c392af1e01aa9 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java
<ide> protected String createMessage(HttpServletRequest request, String prefix, String
<ide> protected String getMessagePayload(HttpServletRequest request) {
<ide> ContentCachingRequestWrapper wrapper =
<ide> Web... | 1 |
PHP | PHP | apply fixes from styleci | 50e60dc6a0239a38d533efc00efe8e16de8605c9 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testGetOriginalCastsAttributes()
<ide> 'foo' => 'bar2',
<ide> ];
<ide> $model->collectionAttribute = collect([
<del> 'foo' => 'bar2'
<add> 'foo' => 'bar2',
<ide> ]);
<ide>
<ide> ... | 1 |
PHP | PHP | update enumerable interface | 0c710c5769ed8bb8e5c487c9885afec9be96f76e | <ide><path>src/Illuminate/Collections/Enumerable.php
<ide> public function splitIn($numberOfGroups);
<ide> /**
<ide> * Sort through each item with a callback.
<ide> *
<del> * @param (callable(TValue, TValue): bool)|null|int $callback
<add> * @param (callable(TValue, TValue): int)|null|int $cal... | 1 |
Ruby | Ruby | avoid postgres 9.x syntax | 51c2ef0b819d4732fff59cf1a86336dac38f2280 | <ide><path>activerecord/test/cases/adapters/postgresql/schema_test.rb
<ide> def teardown
<ide> end
<ide>
<ide> def test_schema_change_with_prepared_stmt
<add> altered = false
<ide> @connection.exec_query "select * from developers where id = $1", 'sql', [[nil, 1]]
<ide> @connection.exec_query "alter tabl... | 1 |
Javascript | Javascript | add spec for dialogmanagerandroid | 32340d377bb1f9492a640ef543ffdb0440b17c16 | <ide><path>Libraries/Alert/Alert.js
<ide>
<ide> 'use strict';
<ide>
<del>const NativeModules = require('../BatchedBridge/NativeModules');
<add>import NativeModules from '../BatchedBridge/NativeModules';
<add>import Platform from '../Utilities/Platform';
<add>import DialogManagerAndroid, {
<add> type DialogOptions,
<... | 4 |
PHP | PHP | fix warnings in http/client tests | 792f1b97e17b4fc14dab0906693170419d98613e | <ide><path>src/Http/Client.php
<ide> use Cake\Core\App;
<ide> use Cake\Core\Exception\Exception;
<ide> use Cake\Core\InstanceConfigTrait;
<del>use Cake\Http\Client\CookieCollection;
<ide> use Cake\Http\Client\Request;
<add>use Cake\Http\Cookie\CookieCollection;
<ide> use Cake\Http\Cookie\CookieInterface;
<ide> use Cake... | 6 |
Python | Python | fix bart shift | 18ecd36f657b07b032fecd199fa37d8ae0a6b9ff | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> def shift_tokens_right(input_ids: torch.Tensor, pad_token_id: int):
<ide> # replace possible -100 values in labels by `pad_token_id`
<ide> prev_output_tokens.masked_fill_(prev_output_tokens == -100, pad_token_id)
<ide>
<del> index_of_eos = (inpu... | 1 |
Text | Text | use alphabetic order | a6dfe5f0249a4825a79407fb15ae42eac0647d4f | <ide><path>guides/source/configuring.md
<ide> These configuration methods are to be called on a `Rails::Railtie` object, such
<ide>
<ide> * `config.action_view.cache_template_loading` controls whether or not templates should be reloaded on each request. Defaults to whatever is set for `config.cache_classes`.
<ide>
<a... | 1 |
Java | Java | add support for `overflow` on android (take 2) | b81c8b51fc6fe3c2dece72e3fe500e175613c5d4 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java
<ide> public class ViewProps {
<ide> public static final String ALIGN_ITEMS = "alignItems";
<ide> public static final String ALIGN_SELF = "alignSelf";
<ide> public static final String ALIGN_CONTENT = "alignContent";
<del> public st... | 2 |
Go | Go | move "image_export" to graph/export.go | 6e28d11d1fde757cf5b9418a2e752717d854f3f3 | <ide><path>graph/export.go
<add>package graph
<add>
<add>import (
<add> "encoding/json"
<add> "io"
<add> "io/ioutil"
<add> "os"
<add> "path"
<add>
<add> "github.com/docker/docker/archive"
<add> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/pkg/parsers"
<add> "github.com/docker/docker/utils"
<add>)
<... | 4 |
Javascript | Javascript | add count to interleavedbuffer | 1753badadedeea82ef33200a565e6c62f833a373 | <ide><path>src/core/InterleavedBuffer.js
<ide> THREE.InterleavedBuffer.prototype = {
<ide>
<ide> },
<ide>
<add> get count () {
<add>
<add> return this.array.length / this.stride;
<add>
<add> },
<add>
<ide> copyAt: function ( index1, attribute, index2 ) {
<ide>
<ide> index1 *= this.stride;
<ide><path>src/core/In... | 3 |
Ruby | Ruby | fix a bunch of minor spelling mistakes | ccf9577aee86ce1f766c5e8854e0c285dc38f8ac | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> module ActionMailer #:nodoc:
<ide> #
<ide> # If you want to explicitly render only certain templates, pass a block:
<ide> #
<del> # mail(:to => user.emai) do |format|
<add> # mail(:to => user.email) do |format|
<ide> # format.text
<ide> # f... | 42 |
Python | Python | update runtest settings to include staticfiles app | 24ed6dcfdadb5c1e7b18a1b1dfabad871ee91f09 | <ide><path>rest_framework/runtests/settings.py
<ide> 'django.contrib.sessions',
<ide> 'django.contrib.sites',
<ide> 'django.contrib.messages',
<add> 'django.contrib.staticfiles',
<ide> # Uncomment the next line to enable the admin:
<ide> # 'django.contrib.admin',
<ide> # Uncomment the next li... | 1 |
Ruby | Ruby | remove useless begin..end | 70c83f49f8fcefdf52c2ed22706a14e29559cea5 | <ide><path>railties/lib/rails/application.rb
<ide> def reload_routes!
<ide> def key_generator
<ide> # number of iterations selected based on consultation with the google security
<ide> # team. Details at https://github.com/rails/rails/pull/6952#issuecomment-7661220
<del> @caching_key_generator ||= ... | 1 |
Python | Python | remove invalid information | b2634ff922176acd12ddd3725434d3dfaaf25422 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> Errors result if second argument is also supplied with scalar input or
<ide> if first and second arguments have different shapes.
<ide>
<del> Numpy's definitions for positive infinity (PINF) and negative ... | 2 |
PHP | PHP | add tests for hasone & belongsto saving | baa696a0d2fff00888af1c4655fa3dbd03ea69c5 | <ide><path>Cake/Test/TestCase/ORM/Association/BelongsToTest.php
<ide> public function testCascadeDelete() {
<ide> $this->assertTrue($association->cascadeDelete($entity));
<ide> }
<ide>
<add>/**
<add> * Test that save() ignores non entity values.
<add> *
<add> * @return void
<add> */
<add> public function testSaveOn... | 2 |
PHP | PHP | remove typo in method comment | 00b512a87686c847e9de758ef7275f5aacf87485 | <ide><path>laravel/url.php
<ide> public static function base()
<ide> // By removing the basename of the script, we should be left with the path
<ide> // in which the framework is installed. For example, if the framework is
<ide> // installed to http://localhost/laravel/public, the path we'll get from
<del> /... | 1 |
Ruby | Ruby | use pkg_version accessor | 58464287bc35282a5001a1f9a3f69cecc7c552c7 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def merge
<ide> end
<ide> end
<ide>
<del> version = f.version.to_s
<del> version += "_#{f.revision}" if f.revision.to_i > 0
<del>
<ide> HOMEBREW_REPOSITORY.cd do
<ide> safe_system "git", "commit", "--no-edit", "--verbose"... | 1 |
Python | Python | avoid enumerate to avoid long waiting at 0% | 9cf965c26056065d6476b2a4336a42423bef3600 | <ide><path>bin/wiki_entity_linking/wikipedia_processor.py
<ide> def read_el_docs_golds(nlp, entity_file_path, dev, line_ids, kb, labels_discard=
<ide> if not labels_discard:
<ide> labels_discard = []
<ide>
<del> texts = []
<del> entities_list = []
<add> max_index = max(line_ids)
<ide>
<del> wi... | 1 |
Python | Python | add distillation+finetuning option in run_squad | 764a7923ec1ca27a3c35e6c3eb7c1574f75e741c | <ide><path>examples/run_squad.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>""" Finetuning the library models for question-answering on SQuAD (Bert, XLM, XLNet)."... | 1 |
Ruby | Ruby | move origin_branch from utils/git | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f | <ide><path>Library/Homebrew/dev-cmd/bump-cask-pr.rb
<ide> def bump_cask_pr
<ide> old_hash = cask.sha256.to_s
<ide>
<ide> tap_full_name = cask.tap&.full_name
<del> origin_branch = Utils::Git.origin_branch(cask.tap.path) if cask.tap
<del> origin_branch ||= "origin/master"
<add> default_remote_branch = c... | 7 |
Javascript | Javascript | create polyvinyl type | f0aad07234dbd63f08c0a1030030c75cd9ac0803 | <ide><path>client/new-framework/polyvinyl.js
<del>// originally base off of https://github.com/gulpjs/vinyl
<del>import path from 'path';
<del>import replaceExt from 'replace-ext';
<del>
<del>export default class File {
<del> constructor({
<del> path,
<del> history = [],
<del> base,
<del> contents = ''
<de... | 1 |
Ruby | Ruby | fix radio_button_tag comment | 11a89674aff171155043fa284035243982842d8d | <ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb
<ide> def check_box_tag(name, value = "1", checked = false, options = {})
<ide> # # => <input checked="checked" id="receive_updates_no" name="receive_updates" type="radio" value="no" />
<ide> #
<ide> # radio_button_tag 'time_slot', "... | 1 |
PHP | PHP | remove preference for snake case from model | ca5b9bdcde45ea49dd85be465cc62cdd0daf18b1 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function belongsTo($related, $foreignKey = null)
<ide> * Define an polymorphic, inverse one-to-one or many relationship.
<ide> *
<ide> * @param string $name
<add> * @param string $type
<add> * @param string $id
<ide> * @return Illuminate... | 1 |
Javascript | Javascript | fix failing tests | 7c4e925553ac3a0bdfcc14ba44d19c5719ab6c95 | <ide><path>packages/ember-runtime/tests/helpers/array.js
<ide> const ArrayTestsObserverClass = EmberObject.extend({
<ide> return this;
<ide> },
<ide>
<del> observe(obj) {
<add> observe(obj, ...keys) {
<ide> if (obj.addObserver) {
<del> let keys = Array.prototype.slice.call(arguments, 1);
<ide> l... | 2 |
Javascript | Javascript | add asobject compat mode for ember-htmlbars | 73499f627f1c6151dc05ce38f82f1b4b8db578e4 | <ide><path>packages/ember-htmlbars/lib/compat/precompile.js
<del>import { compile } from "htmlbars-compiler/compiler";
<add>import { compile, compileSpec } from "htmlbars-compiler/compiler";
<ide>
<del>export default compile;
<add>export default function(string) {
<add> var asObject = arguments[1] === undefined ? tru... | 2 |
Javascript | Javascript | allow retrying symbolication | d6b9ec1c1f5d1f6e44c2b8beedab2381ae281584 | <ide><path>Libraries/YellowBox/Data/YellowBoxSymbolication.js
<ide> export type Stack = Array<StackFrame>;
<ide> const cache: Map<CacheKey, Promise<Stack>> = new Map();
<ide>
<ide> const YellowBoxSymbolication = {
<add> delete(stack: Stack): void {
<add> cache.delete(getCacheKey(stack));
<add> },
<add>
<ide> sy... | 4 |
Javascript | Javascript | use constructor name | b1c8f15c5f169e021f7c46eb7b219de95fe97603 | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes, ln) {
<ide> return ctx.stylize('[Circular]', 'special');
<ide>
<ide> if (recurseTimes != null) {
<del> if (recurseTimes < 0) {
<del> if (Array.isArray(value))
<del> return ctx.stylize('[Array]', 'special');
<del> retu... | 2 |
PHP | PHP | use the `pass` option when matching routes | 82a94ab10a741dce48f2bd2df50b210167eb2124 | <ide><path>src/Routing/Route/Route.php
<ide> public function match(array $url, array $context = []) {
<ide> return false;
<ide> }
<ide>
<add> // If this route uses pass option, and the passed elements are
<add> // not set, rekey elements.
<add> if (isset($this->options['pass'])) {
<add> foreach ($this->optio... | 2 |
Ruby | Ruby | tell the user why we didn't bump a package | 9ad3a9cefe8e7dd592cd11b743dc2c45cc414363 | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, a
<ide> EOS
<ide>
<ide> return unless args.open_pr?
<add>
<add> if repology_latest > current_version &&
<add> repology_latest > livecheck_latest &&
<add> livecheck_str... | 1 |
Text | Text | add protocols on layer 4 | 118d46bc8e45f8ff87ef201b6024e4a1c5bf710b | <ide><path>guide/english/network-engineering/osi-layers/index.md
<ide> In the diagram above, to the extreme left is the unit of data that is used in ea
<ide>
<ide> * _**Layer 3 - Network Layer:**_ The network layer is responsible for forwarding packets to other networks. Usually, a network is divided into multiple sub... | 1 |
Python | Python | remove bert pretraining files for now | 5676d6f799afd75f17a4b14c6ca2ee11f1a5ea08 | <ide><path>create_pretraining_data_pytorch.py
<del># coding=utf-8
<del># Copyright 2018 The Google AI Language Team Authors.
<del>#
<del># Licensed under the Apache License, Version 2.0 (the "License");
<del># you may not use this file except in compliance with the License.
<del># You may obtain a copy of the License a... | 2 |
Ruby | Ruby | handle edge cases in the previous patch | 558ee6e95ccd6c2098595f2edfa59e8aa9108167 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def app_name
<ide> end
<ide>
<ide> def defined_app_const_base
<del> Rails.application.class.name.sub(/::Application$/, "") if Rails.application.instance_of?(Rails::Application)
<add> Rails.respond_to?(:application) && d... | 1 |
Go | Go | fix os tweaks call | 233aa636d7b3dafa418c4be496645658772cd72d | <ide><path>libnetwork/drivers/overlay/overlay.go
<ide> func Fini(drv driverapi.Driver) {
<ide> }
<ide>
<ide> func (d *driver) configure() error {
<add>
<add> // Apply OS specific kernel configs if needed
<add> d.initOS.Do(applyOStweaks)
<add>
<ide> if d.store == nil {
<ide> return nil
<ide> }
<ide> func (d *driver... | 1 |
Python | Python | fix broken static check on master | b0d6069d25cf482309af40eec068bcccb2b62552 | <ide><path>airflow/providers/apache/hive/hooks/hive.py
<ide> import time
<ide> from collections import OrderedDict
<ide> from tempfile import NamedTemporaryFile, TemporaryDirectory
<del>from typing import Any, Dict, List, Optional, Text, Union
<add>from typing import Any, Dict, List, Optional, Union
<ide>
<ide> import... | 1 |
PHP | PHP | fix import ordering | 1c068b459b5928b55a87dbf39e40d711792be620 | <ide><path>tests/TestCase/Http/MiddlewareStackTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Http;
<ide>
<del>use Cake\TestSuite\TestCase;
<ide> use Cake\Http\MiddlewareStack;
<add>use Cake\TestSuite\TestCase;
<ide> use TestApp\Middleware\SampleMiddleware;
<ide>
<ide> /** | 1 |
Ruby | Ruby | rewrite missing_options in a more obvious way | 6b9a929e40933db5e21ba91913445212f1d2b1c1 | <ide><path>Library/Homebrew/dependency.rb
<ide> def satisfied?(inherited_options)
<ide> end
<ide>
<ide> def missing_options(inherited_options)
<del> missing = options | inherited_options
<del> missing -= Tab.for_formula(to_formula).used_options
<del> missing
<add> required = options | inherited_options... | 1 |
PHP | PHP | fix failing tests | 1585f119bfc695356d5dc866b663937bb75c0d7c | <ide><path>src/Console/Command/Task/SimpleBakeTask.php
<ide> public function main($name = null) {
<ide> if (empty($name)) {
<ide> return $this->error('You must provide a name to bake a ' . $this->name());
<ide> }
<del> $name = Inflector::classify($name);
<add> $name = Inflector::camelize($name);
<ide> $this-... | 3 |
Java | Java | add @functionalinterface on candidate interfaces | e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932 | <ide><path>spring-aop/src/main/java/org/aopalliance/intercept/MethodInterceptor.java
<ide> *
<ide> * @author Rod Johnson
<ide> */
<add>@FunctionalInterface
<ide> public interface MethodInterceptor extends Interceptor {
<ide>
<ide> /**
<ide><path>spring-aop/src/main/java/org/springframework/aop/ClassFilter.java
<i... | 110 |
Javascript | Javascript | remove dead code | b0307a33ebb338405590345f281885cb6e17404d | <ide><path>src/ng/parse.js
<ide> CONSTANTS['this'].sharedGetter = true;
<ide>
<ide> //Operators - will be wrapped by binaryFn/unaryFn/assignment/filter
<ide> var OPERATORS = extend(createMap(), {
<del> /* jshint bitwise : false */
<ide> '+':function(self, locals, a,b){
<ide> a=a(self, locals); b=b(self, l... | 1 |
Python | Python | update isfortran docs with return value | be9a134202e097d7d279425bdb137409084fe115 | <ide><path>numpy/core/numeric.py
<ide> def count_nonzero(a, axis=None):
<ide> @set_module('numpy')
<ide> def isfortran(a):
<ide> """
<del> Returns True if the array is Fortran contiguous but *not* C contiguous.
<del>
<add> Check if the array is Fortran contiguous but *not* C contiguous.
<add>
<ide> Th... | 1 |
Javascript | Javascript | add unit test for nested event managers | 17a06e487e23cacc890b9c9a8177f97e4fb9acf5 | <ide><path>packages/sproutcore-touch/tests/system/nested_event_managers.js
<add>// ==========================================================================
<add>// Project: SproutCore Runtime
<add>// Copyright: ©2011 Strobe Inc. and contributors.
<add>// License: Licensed under MIT license (see license.js)
<add>//... | 1 |
Javascript | Javascript | ignore events on text nodes | 5a1e30a868b96753504a4a29a60a820f9c81ed76 | <ide><path>src/renderers/shared/shared/event/EventPluginHub.js
<ide> var EventPluginHub = {
<ide> return null;
<ide> }
<ide> } else {
<add> if (typeof inst._currentElement === 'string') {
<add> // Text node, let it bubble through.
<add> return null;
<add> }
<ide> const pr... | 1 |
PHP | PHP | simplify log levels | 2bf2b1680b7d70a9ed9aa11ac271e10c26ccc4c7 | <ide><path>src/Illuminate/Log/Writer.php
<ide> class Writer implements LogContract, PsrLoggerInterface {
<ide> */
<ide> protected $dispatcher;
<ide>
<add> /**
<add> * The Log levels.
<add> *
<add> * @var array
<add> */
<add> protected $levels = [
<add> 'debug' => MonologLogger::DEBUG,
<add> 'info' =>... | 1 |
Python | Python | use spdx license expression in project metadata | e0b0af6c7af9f7a127ae0321dc4e798433c89592 | <ide><path>setup.py
<ide> def run_tests(self):
<ide> author=meta['author'],
<ide> author_email=meta['contact'],
<ide> url=meta['homepage'],
<del> license='BSD',
<add> license='BSD-3-Clause',
<ide> platforms=['any'],
<ide> install_requires=install_requires(),
<ide> python_requires=">=3.7", | 1 |
PHP | PHP | fix bug when using raw_where with eloquent | 4a52aabd15485e6c047238372142aaae9609dbb8 | <ide><path>laravel/database/grammars/grammar.php
<ide> protected function where_not_null($where)
<ide> /**
<ide> * Compile a raw WHERE clause.
<ide> *
<del> * @param string $where
<add> * @param array $where
<ide> * @return string
<ide> */
<ide> protected function where_raw($where)
<ide> {
<del> retu... | 1 |
Python | Python | use amax and amin in ma.py | f2f568d9572d2b37139095a1caec4021cd5e0327 | <ide><path>scipy/base/ma.py
<ide> import umath
<ide> import oldnumeric
<ide> import function_base
<add>from function_base import amax, amin
<ide> from numeric import e, pi, newaxis, ndarray
<ide> from oldnumeric import typecodes
<ide> from numerictypes import *
<ide> def __call__ (self, a, b=None):
<ide> if b i... | 2 |
Ruby | Ruby | avoid type casting in uniqueness validator | aa062318c451512035c10898a1af95943b1a3803 | <ide><path>activerecord/lib/active_record/validations/uniqueness.rb
<ide> def validate_each(record, attribute, value)
<ide>
<ide> record.errors.add(attribute, :taken, error_options)
<ide> end
<add> rescue RangeError
<ide> end
<ide>
<ide> protected
<ide> def build_relation(klass, table... | 1 |
Python | Python | use common tf_utils | e5c71d51346027a704b980324387a4ba058d8538 | <ide><path>official/nlp/xlnet/xlnet_modeling.py
<ide> import numpy as np
<ide>
<ide> import tensorflow as tf
<add>from official.modeling import tf_utils
<ide> from official.nlp.xlnet import data_utils
<ide>
<ide>
<ide> def is_special_none_tensor(tensor):
<ide> return tensor.shape.ndims == 0 and tensor.dtype == tf.... | 1 |
Python | Python | fix tfbert tests in python 3.5 | 798da627ebb24cf729bb55575e69e5d8caf91332 | <ide><path>pytorch_transformers/tests/modeling_tf_auto_test.py
<ide>
<ide> from pytorch_transformers import is_tf_available
<ide>
<del># if is_tf_available():
<del>if False:
<add>if is_tf_available():
<ide> from pytorch_transformers import (AutoConfig, BertConfig,
<ide> TFAut... | 2 |
Python | Python | fix incorrect assertion syntax in example | 90c90b69cf35c0457ae52e97e363b82562fe1920 | <ide><path>examples/deep_dream.py
<ide> def deprocess_image(x):
<ide> loss = K.variable(0.)
<ide> for layer_name in settings['features']:
<ide> # Add the L2 norm of the features of a layer to the loss.
<del> assert (layer_name in layer_dict.keys(),
<del> 'Layer ' + layer_name + ' not found in model.')... | 1 |
PHP | PHP | fix cs errors | c997f20e07d9cb7b5be9c3e5067b5da059d227f2 | <ide><path>src/Core/functions.php
<ide> * Define DS as short form of DIRECTORY_SEPARATOR.
<ide> */
<ide> define('DS', DIRECTORY_SEPARATOR);
<del>
<ide> }
<ide>
<ide> if (!function_exists('h')) {
<ide><path>src/Network/Http/Auth/Oauth.php
<ide> public function authentication(Request $request, array $crede... | 5 |
Javascript | Javascript | shorten deprecation warning | 3d61e14704bb82ffc1442e6f6c3756f4432b03b4 | <ide><path>lib/buffer.js
<ide> function alignPool() {
<ide> }
<ide>
<ide> var bufferWarn = true;
<del>const bufferWarning = 'The Buffer() and new Buffer() constructors are not ' +
<del> 'recommended for use due to security and usability ' +
<del> 'concerns. Please use the Buff... | 2 |
Javascript | Javascript | improve text perf | 4ce03582a0013e60417dedbf2f760d00e687e540 | <ide><path>Libraries/Text/Text.js
<ide> */
<ide> 'use strict';
<ide>
<del>var NativeMethodsMixin = require('NativeMethodsMixin');
<del>var Platform = require('Platform');
<del>var React = require('React');
<del>var ReactInstanceMap = require('ReactInstanceMap');
<del>var ReactNativeViewAttributes = require('ReactNati... | 1 |
Javascript | Javascript | remove unnecessary import of `metafor` | 36371e07fa7bff743e9ed15b1ee420845ed6be90 | <ide><path>packages/ember-glimmer/lib/utils/references.js
<ide> import {
<ide> set,
<ide> tagFor,
<ide> didRender,
<del> meta as metaFor,
<ide> watchKey,
<ide> isFeatureEnabled,
<ide> runInDebug
<ide> export class RootPropertyReference extends PropertyReference {
<ide> }
<ide>
<ide> if (isFeatureE... | 1 |
Python | Python | apply reviewer comments | 5db1d5fb64ff35429205aec4b6927a4b2c6b552b | <ide><path>numpy/f2py/rules.py
<ide> def buildmodule(m, um):
<ide> 'C It contains Fortran 77 wrappers to fortran functions.\n')
<ide> lines = []
<ide> for l in ('\n\n'.join(funcwrappers) + '\n').split('\n'):
<del> i = l.find('!')
<del> if i >= 0 ... | 2 |
Javascript | Javascript | fix invariant parity for ssr | 1454f9c10c4f487bd87227aad0162d0c888b20e3 | <ide><path>src/renderers/dom/ReactDOMNodeStreamRenderer.js
<ide> function renderToStream(element) {
<ide> if (disableNewFiberFeatures) {
<ide> invariant(
<ide> React.isValidElement(element),
<del> 'renderToStream(): You must pass a valid ReactElement.',
<add> 'renderToStream(): Invalid component e... | 6 |
Java | Java | preserve etag http header for versioned resources | 473cf9c40e266a416930249569550d19e92c2494 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License"... | 5 |
Python | Python | fix startswith operation on character arrays | 9f036ecd5ae67db2af4d486199f2b64c73670acb | <ide><path>numpy/core/defchararray.py
<ide> def _typedmethod(self, name, myiter, dtype):
<ide> for k, val in enumerate(myiter):
<ide> newval = []
<ide> for chk in val[1:]:
<del> if chk.dtype is object_ and chk.item() is None:
<add> if not chk or (chk.dtype i... | 1 |
Text | Text | simplify documentation. use good defaults | e6ef62d197dc6e02d2c37665e850d6db618f1016 | <ide><path>src/ORM/README.md
<ide> ConnectionManager::setConfig('default', [
<ide> 'database' => 'test',
<ide> 'username' => 'root',
<ide> 'password' => 'secret',
<del> 'cacheMetadata' => false // If set to `true` you need to install the optional "cakephp/cache" package.
<add> 'cacheMetadata' => true,
<add> 'quoteId... | 1 |
Text | Text | fix style for rescue responses doc [ci skip] | d76380cf1ccec7ffeff19827ae9b6d9b71327418 | <ide><path>guides/source/configuring.md
<ide> encrypted cookies salt value. Defaults to `'signed encrypted cookie'`.
<ide>
<ide> ```ruby
<ide> config.action_dispatch.rescue_responses = {
<del> 'ActionController::RoutingError' => :not_found,
<del> 'AbstractController::ActionNotFound' => ... | 1 |
Text | Text | update showline location in defaults | e529775d5ed82c431e60fc8ef5c64b39ff0c69d8 | <ide><path>docs/docs/configuration/index.md
<ide> The following example would set the `showLine` option to 'false' for all line da
<ide>
<ide> ```javascript
<ide> // Do not show lines for all datasets by default
<del>Chart.defaults.datasets.line.showLine = false;
<add>Chart.defaults.controllers.line.showLine = false;
... | 1 |
Python | Python | add missing indent in docstring | 0c339d4238d55cc3dd45236f5e7ccff503e007bf | <ide><path>numpy/lib/arraysetops.py
<ide> def in1d(ar1, ar2, assume_unique=False, invert=False, kind=None):
<ide> False where an element of `ar1` is in `ar2` and True otherwise).
<ide> Default is False. ``np.in1d(a, b, invert=True)`` is equivalent
<ide> to (but is faster than) ``np.invert(in1d(a... | 1 |
Mixed | Go | add network --format flag to ls | a8aaafc4a3fc716bdb2c4e571e34c66eb80bbab2 | <ide><path>api/client/cli.go
<ide> func (cli *DockerCli) ImagesFormat() string {
<ide> return cli.configFile.ImagesFormat
<ide> }
<ide>
<add>// NetworksFormat returns the format string specified in the configuration.
<add>// String contains columns and format specification, for example {{ID}}\t{{Name}}
<add>func (cli... | 9 |
Text | Text | standardize usage of hostname vs. host name | 486ffa2abcee3be1210044a1654df2fb50eaa42f | <ide><path>doc/api/dns.md
<ide> changes:
<ide> the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a
<ide> bug in the name resolution service used by the operating system.
<ide>
<del>Resolves a hostname (e.g. `'nodejs.org'`) into the first found A (IPv4) or
<add>Resolves a host name (e.g. ... | 1 |
Java | Java | add immutable multivaluemap wrapper | 0a58419df4fee5e50b6831c065c1a14bedc5f5f8 | <ide><path>spring-core/src/main/java/org/springframework/util/CollectionUtils.java
<ide> public static <K, V> MultiValueMap<K, V> unmodifiableMultiValueMap(
<ide> MultiValueMap<? extends K, ? extends V> targetMap) {
<ide>
<ide> Assert.notNull(targetMap, "'targetMap' must not be null");
<del> Map<K, List<V>> resu... | 4 |
Text | Text | remove es6 notice from readme | 3ba9efe3af770e63abcb8d5de020c5d07ff73d27 | <ide><path>README.md
<ide>
<ide> A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.
<ide>
<del>- - - - - - -
<del>
<del>**Important notice**: Moment is undergoing major refactoring for version
<del>**2.10**, that would result in ES6 code that is transpiled to ES5 for
<d... | 1 |
Javascript | Javascript | change scoping of variables with let | fcae05e4b5ee7c0817ca0c9f0bc3df012c1664c7 | <ide><path>lib/url.js
<ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
<ide>
<ide> // find the first instance of any hostEndingChars
<ide> var hostEnd = -1;
<del> for (var i = 0; i < hostEndingChars.length; i++) {
<del> var hec = rest.indexOf(hostEndingChars[i]);
<add> ... | 1 |
Java | Java | add onsubscribe hook to parallelflowable operators | 22c5e0bfe0ca9a68cd726d23fb696fe56a059a84 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Scheduler.java
<ide> public abstract class Scheduler {
<ide> /**
<ide> * Value representing whether to use {@link System#nanoTime()}, or default as clock for {@link #now(TimeUnit)}
<del> * and {@link Scheduler.Worker#now(TimeUnit)}
<add> * and {@link S... | 17 |
Javascript | Javascript | use const in secondary_toolbar.js | 5ea91273918423d844475a52d16924f5eafb2869 | <ide><path>web/secondary_toolbar.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<add>/* eslint no-var: error, prefer-const: error */
<ide>
<ide> import { SCROLLBAR_PADDING, ScrollMode, SpreadMode } from './ui_utils';
<ide> import { Curs... | 1 |
PHP | PHP | add support for persistent smtp connections | 1879c3f8a7ed2ce34398defff664c9e5bf666aa3 | <ide><path>src/Network/Email/SmtpTransport.php
<ide> class SmtpTransport extends AbstractTransport {
<ide> 'username' => null,
<ide> 'password' => null,
<ide> 'client' => null,
<del> 'tls' => false
<add> 'tls' => false,
<add> 'autoDisconnect' => true,
<add> 'keepAlive' => false
<ide> ];
<ide>
<ide> /**
<ide... | 2 |
PHP | PHP | use array values first | 00e9ed76483ea6ad1264676e7b1095b23e16a433 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide> public function getQueueableRelations()
<ide> if (count($relations) === 0 || $relations === [[]]) {
<ide> return [];
<ide> } elseif (count($relations) === 1) {
<del> return $relations[0];
<add> return arra... | 1 |
Java | Java | add flushing support | aeb35787d7214f5f9d0636cce19105dec2a53193 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the Lice... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.