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 | update amp-first example to use gssp | b092ff72b9be4812cfd4a80b63478076170f6c6f | <ide><path>examples/amp-first/pages/index.js
<ide> const Home = props => (
<ide> )
<ide>
<ide> // amp-script requires absolute URLs, so we create a property `host` which we can use to calculate the script URL.
<del>Home.getInitialProps = async ({ req }) => {
<add>export async function getServerSideProps({ req }) {
<id... | 1 |
Javascript | Javascript | add missing copyright notices | 1df77a743890e6007126044c3331c936572e6e2a | <ide><path>lib/_tls_legacy.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without restriction, includ... | 2 |
Ruby | Ruby | fix scaffold generator with --helper=false option | 4ba0e2fc22614cb15a7a22fe75697f367c3bcaa8 | <ide><path>railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
<ide> class ScaffoldControllerGenerator < NamedBase # :nodoc:
<ide>
<ide> check_class_collision suffix: "Controller"
<ide>
<add> class_option :helper, type: :boolean
<ide> class_option :orm, banner: "N... | 2 |
Text | Text | fix indentation in bulleted list | 5ee80c011526e5d9f7cc19ff068cf081d8b78197 | <ide><path>docs/rfcs/002-atom-nightly-releases.md
<ide> The impact of not taking this approach is that we continue to have to wait 1-2 m
<ide> - Atom Reactor
<ide> - Atom Dev - Currently the name of dev builds but it might make sense to leave that for "normal" builds from `master`
<ide>
<del>According to a [Twitte... | 1 |
Javascript | Javascript | create error class for cache store errors | f12b8abcc09534202ca57ba124c10517a408c9fd | <ide><path>lib/Compilation.js
<ide> const ModuleGraph = require("./ModuleGraph");
<ide> const ModuleNotFoundError = require("./ModuleNotFoundError");
<ide> const ModuleProfile = require("./ModuleProfile");
<ide> const ModuleRestoreError = require("./ModuleRestoreError");
<add>const ModuleStoreError = require("./ModuleS... | 2 |
Go | Go | fix regression in docker-proxy | 4f9af99194125e948f5b108e064bab2798248236 | <ide><path>libnetwork/drivers/bridge/port_mapping.go
<ide> func (n *bridgeNetwork) allocatePortsInternal(bindings []types.PortBinding, cont
<ide> }
<ide> bs = append(bs, bIPv4)
<ide> }
<add>
<ide> // Allocate IPv6 Port mappings
<del> if ok := n.validatePortBindingIPv6(&bIPv6, containerIPv6, defHostIP); ok {
... | 1 |
PHP | PHP | remove unnecessary whitespace | 32325d9dbf3f4f0941f27d3c2496fed33d3cb975 | <ide><path>src/Illuminate/Redis/RedisManager.php
<ide> public function disableEvents()
<ide> {
<ide> $this->events = false;
<ide> }
<del>
<add>
<ide> /**
<ide> * Change the default driver.
<ide> * | 1 |
Javascript | Javascript | add {{debugger}} helper | f3245cb111a495c413e0f346e0af3fcc754a7674 | <ide><path>packages/ember-htmlbars/lib/helpers/debugger.js
<add>/*jshint debug:true*/
<add>
<add>/**
<add>@module ember
<add>@submodule ember-handlebars
<add>*/
<add>import Logger from "ember-metal/logger";
<add>
<add>/**
<add> Execute the `debugger` statement in the current context.
<add>
<add> ```handlebars
<add> ... | 2 |
Text | Text | update example for whitelisting arbitrary hashes | 17af429958a863ee25a9e847d84cf394259338b0 | <ide><path>guides/source/action_controller_overview.md
<ide> with a `has_many` association:
<ide> params.require(:book).permit(:title, chapters_attributes: [:title])
<ide> ```
<ide>
<del>#### Outside the Scope of Strong Parameters
<del>
<del>The strong parameter API was designed with the most common use cases
<del>in ... | 1 |
Javascript | Javascript | reach res._dump after abort clientrequest | f5b8853d4030bfd95be922a6dd38e671e1907109 | <ide><path>test/parallel/test-http-client-abort-response-event.js
<add>'use strict';
<add>const common = require('../common');
<add>const http = require('http');
<add>const net = require('net');
<add>const server = http.createServer(function(req, res) {
<add> res.end();
<add>});
<add>
<add>server.listen(0, common.must... | 1 |
Python | Python | fix generation of v8 constants on freebsd | 88217ec276be56d531912773045a262da4eb240c | <ide><path>tools/genv8constants.py
<ide> sys.exit(2);
<ide>
<ide> outfile = file(sys.argv[1], 'w');
<del>pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
<del> bufsize=-1, stdout=subprocess.PIPE).stdout;
<del>pattern = re.compile('(00000000|0000000000000000) <(.*)>:');
<add>try:
<add> pipe = subpr... | 1 |
Javascript | Javascript | add colorwrite support to loaders | 40a7b6fbe489bd131b3955779afb5500f0aae01f | <ide><path>src/loaders/Loader.js
<ide> THREE.Loader.prototype = {
<ide> break;
<ide> case 'depthTest':
<ide> case 'depthWrite':
<add> case 'colorWrite':
<ide> case 'opacity':
<ide> case 'reflectivity':
<ide> case 'transparent':
<ide><path>src/loaders/MaterialLoader.js
<ide> THREE.Mate... | 2 |
Ruby | Ruby | propagate frozen state during transaction changes | c6fd24643604b5779a76527e6364f21ee5cc3ce0 | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def with_transaction_returning_status
<ide> # Save the new record state and id of a record so it can be restored later if a transaction fails.
<ide> def remember_transaction_record_state #:nodoc:
<ide> @_start_transaction_state[:id] = id
<del... | 2 |
Ruby | Ruby | initialize instance variables in initialize... o_o | 38eb01863c9281d142c6494bae485b9c215ec9b7 | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_part.rb
<ide> class JoinPart # :nodoc:
<ide> def initialize(active_record)
<ide> @active_record = active_record
<ide> @cached_record = {}
<add> @column_names_with_alias = nil
<ide> ... | 1 |
Go | Go | move maxdeviceid check in loadmetadata | 94caae2477f42b55adeab22f14bcef22b90373d6 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo)
<ide> return fmt.Errorf("Error loading device metadata file %s", hash)
<ide> }
<ide>
<del> if dinfo.DeviceID > maxDeviceID {
<del> logrus.Errorf("Ignoring Invalid DeviceID=%d"... | 1 |
Javascript | Javascript | fix typo in gltfloader.js | 724c0bdf8a6ca5a02745fb2778c9e89431215604 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide> * Assigns final material to a Mesh, Line, or Points instance. The instance
<ide> * already has a material (generated from the glTF material options alone)
<ide> * but reuse of the same glTF material may require multiple th... | 1 |
Text | Text | clarify inspiration & thanks | 0bc1aa5de8ed60ddbfc7cd880d8b545f3cfc87d1 | <ide><path>README.md
<ide> function (state, action) {
<ide>
<ide> ## Inspiration and Thanks
<ide>
<del>* [Webpack Hot Module Replacement](https://github.com/webpack/docs/wiki/hot-module-replacement-with-webpack)
<del>* [The Elm Architecture](https://github.com/evancz/elm-architecture-tutorial)
<del>* [Turning the dat... | 1 |
Text | Text | fix typo in stream doc | 113846b21b37b58dedbfcbb537581feaf8af1d53 | <ide><path>doc/api/stream.md
<ide> const stream = require('stream');
<ide>
<ide> While it is important for all Node.js users to understand how streams work,
<ide> the `stream` module itself is most useful for developers that are creating new
<del>types of stream instances. Developer's who are primarily *consuming* str... | 1 |
PHP | PHP | remove php interpretation of plugin/theme assets | f25ee98144548f62af8914094608301f73d7c282 | <ide><path>lib/Cake/Routing/Filter/AssetDispatcher.php
<ide> <?php
<ide> /**
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> *
<ide> * @copyright Copyright 20... | 1 |
Javascript | Javascript | use commands instead of setnativeprops on android | ed5f9eeb2a5ae702be881ee08d599c2adddf743a | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> const {useEffect, useRef, useState} = React;
<ide> type ReactRefSetter<T> = {current: null | T, ...} | ((ref: null | T) => mixed);
<ide>
<ide> let AndroidTextInput;
<add>let AndroidTextInputCommands;
<ide> let RCTMultilineTextInputView;
<ide> let RCTSingleli... | 1 |
Javascript | Javascript | fix the lint error | d052f5502fcba157e80f7170d15a1a2561079574 | <ide><path>test/utils/identity.spec.js
<ide> import identity from '../../src/utils/identity';
<ide> describe('Utils', () => {
<ide> describe('identity', () => {
<ide> it('should return first argument passed to it', () => {
<del> var test = { 'a': 1 };
<add> const test = { 'a': 1 };
<ide> expect(id... | 1 |
Text | Text | replace anonymous functions in repl.md | 5f8aa1fcb17febd2ea899da0af62ec2c33a23760 | <ide><path>doc/api/repl.md
<ide> const repl = require('repl');
<ide> const replServer = repl.start({prompt: '> '});
<ide> replServer.defineCommand('sayhello', {
<ide> help: 'Say hello',
<del> action: function(name) {
<add> action(name) {
<ide> this.lineParser.reset();
<ide> this.bufferedCommand = '';
<ide> ... | 1 |
PHP | PHP | trim zwnbsp | 8a10e3f61e05c05829ca80ac23656b6bffe38aba | <ide><path>src/Illuminate/Foundation/Http/Middleware/TrimStrings.php
<ide> protected function transform($key, $value)
<ide> return $value;
<ide> }
<ide>
<del> return is_string($value) ? preg_replace('~^\s+|\s+$~iu', '', $value) : $value;
<add> return is_string($value) ? preg_replace('... | 2 |
Javascript | Javascript | extend url.format to support whatwg url | c5e9654b5bdb8495debaff6716d8409bc1b737d1 | <ide><path>lib/internal/url.js
<ide> 'use strict';
<ide>
<del>function getPunycode() {
<del> try {
<del> return process.binding('icu');
<del> } catch (err) {
<del> return require('punycode');
<del> }
<del>}
<del>const punycode = getPunycode();
<ide> const util = require('util');
<ide> const binding = process.... | 3 |
Ruby | Ruby | add regexp and notregexp nodes for postgresql | 6296617c159d5cee0ba1c76f4ea983e3b5e26b6b | <ide><path>lib/arel/nodes/binary.rb
<ide> def eql? other
<ide> Matches
<ide> NotEqual
<ide> NotIn
<add> NotRegexp
<ide> Or
<add> Regexp
<ide> Union
<ide> UnionAll
<ide> Intersect
<ide><path>lib/arel/visitors/depth_first.rb
<ide> def binary o
<ide> alias :visit_A... | 6 |
Ruby | Ruby | make version#<=> allocation-free | 9b75afcf4ae735cb197f0ef835e0052c94cdb666 | <ide><path>Library/Homebrew/version.rb
<ide> def <=>(other)
<ide> return 1 if head? && !other.head?
<ide> return -1 if !head? && other.head?
<ide>
<del> max = [tokens.length, other.tokens.length].max
<del> pad_to(max) <=> other.pad_to(max)
<add> ltokens = tokens
<add> rtokens = other.tokens
<add> ... | 1 |
Text | Text | fix ipam driver documentation | 6b209991aaa10fd90de54c611cbbe62c768a87aa | <ide><path>libnetwork/docs/ipam.md
<ide> It is the remote driver's responsibility to manage its database.
<ide>
<ide> ## Ipam Contract
<ide>
<del>The IPAM driver (internal or remote) has to comply with the contract specified in `ipamapi.contract.go`:
<add>The remote IPAM driver must serve the following requests:
<ide... | 1 |
Javascript | Javascript | use fullhash instead of hash | e9cb04efcadd6ab550d95250c78eee1bf83a88ea | <ide><path>test/HotTestCases.template.js
<ide> const describeCases = config => {
<ide> if (!options.output.filename)
<ide> options.output.filename = "bundle.js";
<ide> if (!options.output.chunkFilename)
<del> options.output.chunkFilename = "[name].chunk.[hash].js";
<add> options... | 8 |
Java | Java | eliminate trailing whitespace in spel classes | de2d8082121d3c2187b5555eb1e3a77f7128ba25 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/TypeReference.java
<ide>
<ide> /**
<ide> * Represents a reference to a type, for example "T(String)" or "T(com.somewhere.Foo)"
<del> *
<add> *
<ide> * @author Andy Clement
<ide> */
<ide> public class TypeReference extends SpelNodeIm... | 2 |
Ruby | Ruby | use double quotes for setting path." | 6e86976920f97eafaa8fcd2819b1ab3d63375059 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_user_path_1
<ide>
<ide> Consider setting your PATH so that #{HOMEBREW_PREFIX}/bin
<ide> occurs before /usr/bin. Here is a one-liner:
<del> echo export PATH="#{HOMEBREW_PREFIX}/bin:$PATH" >> ~/.bash_profile
<add> ... | 1 |
Text | Text | add vidora to inthewild.md | 37263d609a877f27257663b877823b6dc6f60629 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Vestiaire Collective](https://www.vestiairecollective.com/) [[@AdriMarteau](https://github.com/AdriMarteau), [@benbenbang](https://github.com/benbenbang)]
<ide> 1. [Vevo](https://www.vevo.com/) [[@csetiawan](https://github.com/csetiawan) &... | 1 |
Javascript | Javascript | remove invalid props | 8770151a77069da9ea3d4fc7a02027cce5318752 | <ide><path>RNTester/js/components/RNTesterExampleList.js
<ide> class RNTesterExampleList extends React.Component<Props, $FlowFixMeState> {
<ide> style={{backgroundColor: theme.SystemBackgroundColor}}
<ide> sections={filteredSections}
<ide> renderItem={this._re... | 1 |
Ruby | Ruby | fix tests for postgres 8.3.x | c5d37c0662a65ce9723d668f57b59457e79ee5ca | <ide><path>activerecord/test/cases/datatype_test_postgresql.rb
<ide> def setup
<ide> @connection.execute("INSERT INTO postgresql_arrays (commission_by_quarter, nicknames) VALUES ( '{35000,21000,18000,17000}', '{foo,bar,baz}' )")
<ide> @first_array = PostgresqlArray.find(1)
<ide>
<del> @connection.execute("I... | 2 |
Python | Python | fix outdated tokenizer doc | a0d386455b347508ea31fc88dd06cc5555255c37 | <ide><path>templates/adding_a_new_model/tokenization_xxx.py
<ide> class XxxTokenizer(PreTrainedTokenizer):
<ide>
<ide> Args:
<ide> vocab_file: Path to a one-wordpiece-per-line vocabulary file
<del> do_lower_case: Whether to lower case the input. Only has an effect when do_wordpiece_only=False
<add> ... | 3 |
Javascript | Javascript | update path to .env file | c1a8227e99042bafaa702bf31709af9512848dc1 | <ide><path>tools/scripts/seed/seedChallenges.js
<ide> const path = require('path');
<ide> const fs = require('fs');
<del>require('dotenv').config({ path: path.resolve(__dirname, '../.env') });
<add>require('dotenv').config({ path: path.resolve(__dirname, '../../../.env') });
<ide> const MongoClient = require('mongodb')... | 1 |
Python | Python | fix typo in file header (jsonimpl => json) | eaba4a73aa1013db908ea07af6028056c4fde706 | <ide><path>flask/json.py
<ide> # -*- coding: utf-8 -*-
<ide> """
<del> flask.jsonimpl
<del> ~~~~~~~~~~~~~~
<add> flask.json
<add> ~~~~~~~~~~
<ide>
<ide> Implementation helpers for the JSON support in Flask.
<ide> | 1 |
Text | Text | change wording of pr guidance | 82691be5e208a7d24cfbc8bf8748e03ebd4bc1cf | <ide><path>docs/how-to-open-a-pull-request.md
<ide> We recommend using [conventional title and messages](https://www.conventionalcom
<ide> >
<ide> > `fix(learn): tests for the do...while loop challenge`
<ide>
<del>When opening a Pull Request(PR), you can use the below to determine the type, scope (optional), and descr... | 1 |
Javascript | Javascript | use templates to test view.nearesttypeof | f892dc8390f40ba84e825e946dea131afbaa01c1 | <ide><path>packages/ember-views/tests/views/view/nearest_of_type_test.js
<ide> import run from "ember-metal/run_loop";
<ide> import { Mixin as EmberMixin } from "ember-metal/mixin";
<ide> import View from "ember-views/views/view";
<add>import compile from "ember-template-compiler/system/compile";
<ide>
<ide> var paren... | 1 |
Python | Python | implement review fixes | 895cf2090c665fac2a50549932acd55cd2dc3856 | <ide><path>keras/backend.py
<ide> def resize_images(x, height_factor, width_factor, data_format,
<ide> height_factor: Positive integer.
<ide> width_factor: Positive integer.
<ide> data_format: One of `"channels_first"`, `"channels_last"`.
<del> interpolation: A string any of `tf.image.ResizeMetho... | 2 |
Javascript | Javascript | fix 'private' keyword | 37315af515483bba60c2db3af643314225de7f8f | <ide><path>fonts.js
<ide> var Type1Parser = function() {
<ide> subrs: [],
<ide> charstrings: [],
<ide> properties: {
<del> private: {}
<add> 'private': {}
<ide> }
<ide> };
<ide> | 1 |
Javascript | Javascript | remove tvos from the e2e ci tests | dfdbf41cc3a9f4d8eb20ab4dd45a1d10a27d11c5 | <ide><path>scripts/run-ci-e2e-tests.js
<ide> * This script tests that React Native end to end installation/bootstrap works for different platforms
<ide> * Available arguments:
<ide> * --ios - 'react-native init' and check iOS app doesn't redbox
<del> * --tvos - 'react-native init' and check tvOS app doesn't redbox
<... | 1 |
Text | Text | remove unmaintained plugin from readme | 1e1d9ceecb6c8b123a92aa617bf0b5db86fb3122 | <ide><path>README.md
<ide> within webpack itself use this plugin interface. This makes webpack very
<ide> |:--:|:----:|:----------|
<ide> |[common-chunks-webpack-plugin][common]|![common-npm]|Generates chunks of common modules shared between entry points and splits them into separate bundles (e.g vendor.bundle.js && a... | 1 |
PHP | PHP | add test for parse() | 66314da73b9918a9700128587f57704db2e9e397 | <ide><path>tests/TestCase/Routing/ScopedRouteCollectionTest.php
<ide> public function testNestedPluginPathOption() {
<ide> });
<ide> }
<ide>
<add>/**
<add> * Test parsing routes.
<add> *
<add> * @return void
<add> */
<add> public function testParse() {
<add> $routes = new ScopedRouteCollection('/b', ['key' => 'val... | 1 |
Python | Python | set default network mode to auto | 0bae0e5c0845b3a3a02d68141466efe035581a56 | <ide><path>libcloud/compute/drivers/gce.py
<ide> def ex_create_subnetwork(self, name, cidr=None, network=None, region=None,
<ide>
<ide> return self.ex_get_subnetwork(name, region_name)
<ide>
<del> def ex_create_network(self, name, cidr, description=None, mode="legacy"):
<add> def ex_create_network(self,... | 1 |
Java | Java | allow bypass of active/default properties | da3ff29e88f4f7041714deb10e91f4ca68bac12c | <ide><path>spring-core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
<ide> public String[] getActiveProfiles() {
<ide> /**
<ide> * Return the set of active profiles as explicitly set through
<ide> * {@link #setActiveProfiles} or if the current set of active profiles
<del> * is empty, check f... | 2 |
Javascript | Javascript | reduce flakiness with ie11 test runs | f616b3bdd941f653438cb99c9e276fc161f3e732 | <ide><path>packages/ember-glimmer/tests/integration/helpers/input-test.js
<ide> moduleFor('Helpers test: {{input}}', class extends InputRenderingTest {
<ide> }
<ide>
<ide> ['@test triggers `focus-in` when focused'](assert) {
<del> assert.expect(1);
<add> let wasFocused = false;
<ide>
<ide> this.render(`... | 4 |
Java | Java | fix lazyreactpackage in oss | 42146a7a4ad992a3597e07ead3aafdc36d58ac26 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java
<ide>
<ide> package com.facebook.react;
<ide>
<del>import java.util.ArrayList;
<del>import java.util.Collections;
<del>import java.util.List;
<add>import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
<ide>
<ide> impor... | 2 |
Ruby | Ruby | fix typo in active job exceptions docs | 6a4e97c4bbce5433a8156059de154cadc6438757 | <ide><path>activejob/lib/active_job/exceptions.rb
<ide> module ClassMethods
<ide> #
<ide> # ==== Options
<ide> # * <tt>:wait</tt> - Re-enqueues the job with a delay specified either in seconds (default: 3 seconds),
<del> # as a computing proc that the number of executions so far as an argument,... | 1 |
Python | Python | set version to v2.1.3 | 85dcd9477edfc1970232d1e790b7e401ec36b882 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.1.2"
<add>__version__ = "2.1.3"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Text | Text | use serial comma in stream docs | 5ec2c9900722470d47a2e41294d08b60a6016a3b | <ide><path>doc/api/stream.md
<ide> added: v11.4.0
<ide> * {boolean}
<ide>
<ide> Is `true` if it is safe to call [`writable.write()`][stream-write], which means
<del>the stream has not been destroyed, errored or ended.
<add>the stream has not been destroyed, errored, or ended.
<ide>
<ide> ##### `writable.writableAbort... | 1 |
Javascript | Javascript | remove geometry check | e0cf3e37510a80d7de9d2515627ee05202c3ce77 | <ide><path>examples/js/utils/BufferGeometryUtils.js
<ide> THREE.BufferGeometryUtils = {
<ide> */
<ide> computeMorphedAttributes: function ( object ) {
<ide>
<del> if ( ! object.geometry ) {
<del>
<del> console.error( 'Please provide an object with a geometry' );
<del> return null;
<del>
<del> } else if ( ! ob... | 2 |
Javascript | Javascript | add test for attempted multiple ipc channels | ae4ce9fe73e9f65f00c6439f2c6ad7381d69d38e | <ide><path>test/parallel/test-child-process-stdio.js
<ide> assert.equal(child.stderr, null);
<ide> options = {stdio: 'ignore'};
<ide> child = common.spawnSyncCat(options);
<ide> assert.deepStrictEqual(options, {stdio: 'ignore'});
<add>
<add>assert.throws(() => {
<add> common.spawnPwd({stdio: ['pipe', 'pipe', 'pipe', '... | 1 |
Java | Java | remove style prefix in java and cs apis | 065af66deb7ff6b53910d3540995a3790deb8876 | <ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java
<ide> public void setPosition(int spacingType, float position) {
<ide>
<ide> private native float jni_CSSNodeStyleGetWidth(long nativePointer);
<ide> @Override
<del> public float getStyleWidth() {
<add> public float getWidth() {
<ide> ... | 4 |
Javascript | Javascript | remove some debug leftover | c663d181f907ba20304bf59857bd5af032386926 | <ide><path>PDFFont.js
<ide>
<del>var Font = new Dict();
<add>/*
<add> * This dictionary hold the decoded fonts
<add> */
<add>var Fonts = new Dict();
<ide>
<ide> var Type1Parser = function(aAsciiStream, aBinaryStream) {
<ide> var lexer = new Lexer(aAsciiStream);
<ide>
<ide> // Turn on this flag for additional deb... | 1 |
Text | Text | add redux-optimist and group it with redux-undo | cdde305e332c632854a0ec542b88b6cdfa816b09 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> * [redux-batched-subscribe](https://github.com/tappleby/redux-batched-subscribe) — Customize batching and debouncing calls to the store subscribers
<ide> * [redux-history-transitions](ht... | 1 |
Ruby | Ruby | detect versions in tag specs | 033ef09518f5da1fdb56adb4cb90abd30e7223a6 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_specs
<ide> problem "Invalid or missing #{spec} version"
<ide> else
<ide> version_text = s.version unless s.version.detected_from_url?
<del> version_url = Version.parse(s.url)
<add> version_url = Version.detect(s.url, s.specs)
... | 4 |
Python | Python | fix cyclic import (again) | 64b733396cb6465713ca514e6dd4ac65ff473160 | <ide><path>glances/__init__.py
<ide>
<ide> # Import Glances libs
<ide> # Note: others Glances libs will be imported optionally
<del>from glances.core.glances_globals import gettext_domain, locale_dir, logger
<add>from glances.core.glances_globals import gettext_domain, locale_dir
<add>from glances.core.glances_logging... | 25 |
PHP | PHP | resolve paginators from the container | 85fed0e37227f4fe85c362e7535455e461d0757b | <ide><path>src/Illuminate/Database/Concerns/BuildsQueries.php
<ide>
<ide> namespace Illuminate\Database\Concerns;
<ide>
<add>use Illuminate\Container\Container;
<add>use Illuminate\Pagination\Paginator;
<add>use Illuminate\Pagination\LengthAwarePaginator;
<add>
<ide> trait BuildsQueries
<ide> {
<ide> /**
<ide> pu... | 3 |
Python | Python | fix broken url naming in examples | a8980892c47677f159499f7711cf812907dfaa47 | <ide><path>examples/resourceexample/urls.py
<ide> from resourceexample.views import ExampleView, AnotherExampleView
<ide>
<ide> urlpatterns = patterns('',
<del> url(r'^$', ExampleView.as_view(), name='example'),
<add> url(r'^$', ExampleView.as_view(), name='example-resource'),
<id... | 1 |
Go | Go | fix docker cp dir with hard link | d58ffa0364c04d03a8f25704d7f0489ee6cd9634 | <ide><path>pkg/archive/copy.go
<ide> func RebaseArchiveEntries(srcContent io.Reader, oldBase, newBase string) io.Read
<ide> }
<ide>
<ide> hdr.Name = strings.Replace(hdr.Name, oldBase, newBase, 1)
<add> if hdr.Typeflag == tar.TypeLink {
<add> hdr.Linkname = strings.Replace(hdr.Linkname, oldBase, newBase, 1)
... | 1 |
Python | Python | create lookups if not passed in | fde4f8ac8e5f9678b8fe39efac2d94c5304dca54 | <ide><path>spacy/language.py
<ide> class BaseDefaults(object):
<ide> @classmethod
<ide> def create_lemmatizer(cls, nlp=None, lookups=None):
<add> if lookups is None:
<add> lookups = cls.create_lookups(nlp=nlp)
<ide> lemma_rules, lemma_index, lemma_exc, lemma_lookup = util.get_lemma_tab... | 1 |
Mixed | Go | use newer default values for mounts cli | 56f3422468a0b43da7bae7a01762ce4f0a92d9ff | <ide><path>api/client/service/opts.go
<ide> func (m *MountOpt) Set(value string) error {
<ide> }
<ide> }
<ide>
<add> // Set writable as the default
<ide> for _, field := range fields {
<ide> parts := strings.SplitN(field, "=", 2)
<del> if len(parts) == 1 && strings.ToLower(parts[0]) == "writable" {
<del> moun... | 8 |
Javascript | Javascript | improve tty.getcolordepth coverage | ce2ed584c826f22c94f89ceb2eb60a1facbb7c95 | <ide><path>test/pseudo-tty/test-tty-get-color-depth.js
<ide> const writeStream = new WriteStream(fd);
<ide>
<ide> {
<ide> const depth = writeStream.getColorDepth();
<del>
<ide> assert.equal(typeof depth, 'number');
<ide> assert(depth >= 1 && depth <= 24);
<del>
<del> if (depth === 1) {
<del> // Terminal does... | 1 |
Javascript | Javascript | fix wrong usage of error.preparestacktrace | 2948e96afd7fde91ec39bb5434bad93760ccfe13 | <ide><path>lib/internal/util.js
<ide> function isInsideNodeModules() {
<ide> // the perf implications should be okay.
<ide> getStructuredStack = runInNewContext(`(function() {
<ide> Error.prepareStackTrace = function(err, trace) {
<del> err.stack = trace;
<add> return trace;
<ide> };
<... | 1 |
PHP | PHP | use contract instead of email attribute directly | 45c997b569c0b3127f578087eb60b372e3605ca2 | <ide><path>src/Illuminate/Auth/MustVerifyEmail.php
<ide> public function sendEmailVerificationNotification()
<ide> {
<ide> $this->notify(new Notifications\VerifyEmail);
<ide> }
<add>
<add> /**
<add> * Get the email address to verify
<add> *
<add> * @return string
<add> */
<add> pub... | 3 |
Ruby | Ruby | move pjsip to the boneyard | de42ad52a545e36b0225d5d7c4c1a96c491c642b | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "octave" => "homebrew/science",
<ide> "opencv" => "homebrew/science",
<ide> "pan" => "homebrew/boneyard",
<add> "pjsip" => "homebrew/boneyard",
<ide> "pocl" => "homebrew/science",
<ide> "qfits" => "homebrew/boneyard",
<ide> "qrupdate" => "homebrew/science... | 1 |
Python | Python | add links to new modules for deprecated modules | b4770725a3aa03bd50a0a8c8e01db667bff93862 | <ide><path>airflow/contrib/hooks/aws_athena_hook.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del>"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.athena`."""
<add>"""This module is deprecated. Please use :mod:`airflow.providers.amazon... | 300 |
Javascript | Javascript | update parser for multi-file editor | 7bed07ee8a40f1f5b6ce64ec93e36590720728cd | <ide><path>curriculum/getChallenges.js
<ide> async function buildCurriculum(file, curriculum) {
<ide> async function parseTranslation(engPath, transPath, dict) {
<ide> const engChal = await parseMarkdown(engPath);
<ide> const translatedChal = await parseMarkdown(transPath);
<del> const codeLang =
<del> engChal.... | 2 |
Text | Text | extend v2.3 migration guide | c4d02094726a7e92325f9fc0911fcfad7f43db75 | <ide><path>website/docs/usage/v2-3.md
<ide> If you're adding data for a new language, the normalization table should be
<ide> added to `spacy-lookups-data`. See
<ide> [adding norm exceptions](/usage/adding-languages#norm-exceptions).
<ide>
<del>#### No preloaded lexemes/vocab for models with vectors
<add>#### No prelo... | 1 |
Go | Go | implement ref checker | 354c241041ec67d4c500cccfda476dc73435d38e | <ide><path>builder/builder-next/adapters/snapshot/snapshot.go
<ide> func (s *snapshotter) chainID(key string) (layer.ChainID, bool) {
<ide> return "", false
<ide> }
<ide>
<add>func (s *snapshotter) GetLayer(key string) (layer.Layer, error) {
<add> return s.getLayer(key, true)
<add>}
<add>
<ide> func (s *snapshotter) ... | 3 |
Python | Python | update deep dream config | 7481b5d060d77f73dc78e2fde37362d1b4656f2a | <ide><path>examples/deep_dream.py
<ide> # You can tweak these setting to obtain new visual effects.
<ide> settings = {
<ide> 'features': {
<del> 'mixed2': 0.5,
<del> 'mixed3': 1.,
<del> 'mixed4': 1.,
<add> 'mixed2': 0.2,
<add> 'mixed3': 0.5,
<add> 'mixed4': 2.,
<add> ... | 1 |
PHP | PHP | fix incorrect documentation | 272416540895fa42681f0037acdd7856fa504866 | <ide><path>src/Datasource/EntityTrait.php
<ide> public function hiddenProperties($properties = null)
<ide> /**
<ide> * Sets hidden properties.
<ide> *
<del> * @param array $properties An array of properties to treat as virtual.
<add> * @param array $properties An array of properties to hide from a... | 1 |
Ruby | Ruby | prevent deadlocks with load interlock and db lock | 1f9f6f6cfc57020ccb35f77872c56f069f337075 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> require "active_record/connection_adapters/sql_type_metadata"
<ide> require "active_record/connection_adapters/abstract/schema_dumper"
<ide> require "active_record/connection_adapters/abstract/schema_creation"
<add>require "active_s... | 3 |
Ruby | Ruby | show correct command name in help of rails runner | 06cd7ab6cb1e0ecae5a3fedaecb7facc4bf52ad9 | <ide><path>railties/lib/rails/commands/runner.rb
<ide>
<ide> options = { environment: (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || "development").dup }
<ide> code_or_file = nil
<add>command = 'bin/rails runner'
<ide>
<ide> if ARGV.first.nil?
<ide> ARGV.push "-h"
<ide> opts.separator ""
<ide> opts.separator "You ... | 1 |
Ruby | Ruby | remove old deprecation warning | 31911a409c2cfe4c6fef550d913487163b3b938e | <ide><path>activerecord/lib/active_record/querying.rb
<ide> module Querying
<ide> # Post.find_by_sql ["SELECT body FROM comments WHERE author = :user_id OR approved_by = :user_id", { :user_id => user_id }]
<ide> def find_by_sql(sql, binds = [])
<ide> result_set = connection.select_all(sanitize_sql(sql),... | 1 |
Javascript | Javascript | fix tap naming | c04bc487ff70ab656c895b9edec1c818fa40c21b | <ide><path>lib/dependencies/ImportMetaContextDependencyParserPlugin.js
<ide> module.exports = class ImportMetaContextDependencyParserPlugin {
<ide> apply(parser) {
<ide> parser.hooks.evaluateIdentifier
<ide> .for("import.meta.webpackContext")
<del> .tap("HotModuleReplacementPlugin", expr => {
<add> .tap("Impo... | 1 |
PHP | PHP | move tests under the orm namespace | e1843d018278a8e8a0873c477bd5deb5d47e8e31 | <ide><path>tests/TestCase/Database/QueryTests/CaseExpressionQueryTest.php
<ide> public function testInferredReturnType(): void
<ide> ];
<ide> $this->assertSame($expected, $query->execute()->fetchAll(StatementInterface::FETCH_TYPE_ASSOC));
<ide> }
<del>
<del> public function testOverwrittenReturnT... | 2 |
Javascript | Javascript | remove promise on checkmodule | f8456b2ecbf194d19d70ff057f251cbc5814bc34 | <ide><path>scripts/release/build-commands/check-package-dependencies.js
<ide> const check = async ({cwd, packages}) => {
<ide> });
<ide> };
<ide>
<del> await Promise.all(dependencies.map(checkModule));
<add> dependencies.forEach(checkModule);
<ide>
<ide> if (invalidDependencies.length) {
<ide> throw Err... | 1 |
PHP | PHP | use tableschema constants in sqlserver schema | 6b970c4e5eedf22804b13ff063a182c296007e19 | <ide><path>src/Database/Schema/SqlserverSchema.php
<ide> protected function _convertColumn($col, $length = null, $precision = null, $scal
<ide> return ['type' => $col, 'length' => null];
<ide> }
<ide> if (strpos($col, 'datetime') !== false) {
<del> return ['type' => 'timestamp', '... | 1 |
Text | Text | add missing changes to 1.2.16 release | cb6b976851b2114382cbd0d0ce1894eb4c49472f | <ide><path>CHANGELOG.md
<ide> to:
<ide> ## Bug Fixes
<ide>
<ide> - **$animate:**
<add> - ensure the CSS driver properly works with SVG elements
<add> ([38ea5426](https://github.com/angular/angular.js/commit/38ea542662b2b74703d583e3a637d65369fc26eb),
<add> [#6030](https://github.com/angular/angular.js/issues/6030))... | 1 |
Python | Python | add more type hints to podlauncher | b2045d6d1d4d2424c02d7d9b40520440aa4e5070 | <ide><path>airflow/providers/cncf/kubernetes/utils/pod_launcher.py
<ide> import math
<ide> import time
<ide> from datetime import datetime as dt
<del>from typing import Optional, Tuple, Union
<add>from typing import Iterable, Optional, Tuple, Union
<ide>
<ide> import pendulum
<ide> import tenacity
<ide> from kubernete... | 1 |
Javascript | Javascript | upgrade tapable for compiler | 31e9625dfe2fa7a01fa3cc756b9b14d4ff62c7ea | <ide><path>lib/Compiler.js
<ide>
<ide> const path = require("path");
<ide> const util = require("util");
<del>const Tapable = require("tapable-old");
<add>const Tapable = require("tapable").Tapable;
<add>const SyncHook = require("tapable").SyncHook;
<add>const SyncBailHook = require("tapable").SyncBailHook;
<add>const... | 3 |
PHP | PHP | use table name as default for morph map | cf2a9386b31b28019f744c66ba995ee6ae149aff | <ide><path>src/Illuminate/Database/Eloquent/Relations/Relation.php
<ide> namespace Illuminate\Database\Eloquent\Relations;
<ide>
<ide> use Closure;
<add>use Illuminate\Support\Arr;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Database\Eloquent\Builder;
<ide> use Illuminate\Database\Query\Expressi... | 2 |
Text | Text | fix minor typo in readme.md | 56e20b4ab5899127b67b4a31cfd7b4bf1fc79616 | <ide><path>README.md
<ide> The process to build `react.js` is built entirely on top of node.js, using many
<ide> #### Prerequisites
<ide>
<ide> * You have `node` installed at v4.0.0+ and `npm` at v2.0.0+.
<del>* You have `gcc` installed or are comfortable installing a compiler if needed. Some of our `npm` dependencies... | 1 |
Javascript | Javascript | remove socket ondata/onend in parser cleanup | 0a414f4caad3430b4d73a69f54345245e1fad016 | <ide><path>lib/http.js
<ide> ClientRequest.prototype.onSocket = function(socket) {
<ide> var freeParser = function() {
<ide> if (parser) {
<ide> parsers.free(parser);
<add> parser.socket.onend = null;
<add> parser.socket.ondata = null;
<add> parser.socket = null;
<ide> par... | 1 |
Javascript | Javascript | add node support in threads | d69078884b2f0401033c56f64dd6918184b594a1 | <ide><path>src/main-process/atom-window.js
<ide> module.exports = class AtomWindow extends EventEmitter {
<ide> // (Ref: https://github.com/atom/atom/pull/12696#issuecomment-290496960)
<ide> disableBlinkFeatures: 'Auxclick',
<ide> nodeIntegration: true,
<del> webviewTag: true
<add> ... | 1 |
Python | Python | make prettier e-mails on failure | 3c2797a9ef892852b4a9a4bdf1bbc1c76ffda2cf | <ide><path>celery/worker.py
<ide> from celery.registry import tasks
<ide> from celery.pool import TaskPool
<ide> from celery.datastructures import ExceptionInfo
<del>from celery.models import PeriodicTaskMeta
<ide> from celery.backends import default_backend, default_periodic_status_backend
<ide> from celery.timer impo... | 1 |
Ruby | Ruby | set the path on "fake" install receipts | 22cf99094f7944de1c7989235c628c599dc760c7 | <ide><path>Library/Homebrew/tab.rb
<ide> def self.dummy_tab f=nil
<ide> :stdlib => nil,
<ide> :compiler => "clang",
<ide> :source => {
<del> :path => nil,
<add> :path => f ? f.path.to_s : nil,
<ide> },
<ide> }
<ide> | 1 |
Javascript | Javascript | remove unneeded html5mock | c4b4ebea4a1679f4148a5f314d6c54c9b564170b | <ide><path>test/unit/player.js
<ide> test('should honor default inactivity timeout', function() {
<ide>
<ide> // default timeout is 2000ms
<ide> player = PlayerTest.makePlayer({});
<del> html5Mock = { player_: player };
<del>
<del> vjs.Html5.prototype.createEl.call(html5Mock);
<ide>
<ide> equal(play... | 1 |
Javascript | Javascript | create an ember subclass of morph | 13ff979099826cf89838776b4fd110559609e6c3 | <ide><path>packages/ember-application/lib/system/application.js
<ide> import EnumerableUtils from "ember-metal/enumerable_utils";
<ide> import ObjectController from "ember-runtime/controllers/object_controller";
<ide> import ArrayController from "ember-runtime/controllers/array_controller";
<ide> import Renderer from "... | 15 |
PHP | PHP | remove unneeded class | b9742ff9b9d6a24291d882a7e721a6b7841e85bd | <ide><path>src/Error/PHP7ErrorException.php
<del><?php
<del>declare(strict_types=1);
<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> * Redistributions o... | 1 |
Ruby | Ruby | remove unused `engine` | a0bebf352629010103ff7e3cc003ce69a2d9b2df | <ide><path>lib/arel/tree_manager.rb
<ide> module Arel
<ide> class TreeManager
<ide> include Arel::FactoryMethods
<ide>
<del> attr_reader :ast, :engine
<add> attr_reader :ast
<ide>
<ide> attr_accessor :bind_values
<ide>
<ide><path>test/test_select_manager.rb
<ide> def test_manager_stores_bind_values
<... | 2 |
Python | Python | fix ambiguous assert | e39cb02e227e168f8b3b55c455820c47e2d6c4c1 | <ide><path>numpy/lib/tests/test_io.py
<ide> def test_array(self):
<ide> c = StringIO.StringIO()
<ide> np.savetxt(c, a)
<ide> c.seek(0)
<del> assert(c.readlines(),
<add> assert(c.readlines() ==
<ide> ['1.000000000000000000e+00 2.000000000000000000e+00\n',
<ide> ... | 1 |
Python | Python | improve worst case of ma.clump_masked | 02fc99244721145896f8f17ec41cdc64567419ef | <ide><path>numpy/ma/extras.py
<ide> def _ezclump(mask):
<ide>
<ide> Returns a series of slices.
<ide> """
<del> #def clump_masked(a):
<ide> if mask.ndim > 1:
<ide> mask = mask.ravel()
<ide> idx = (mask[1:] ^ mask[:-1]).nonzero()
<ide> idx = idx[0] + 1
<del> slices = [slice(left, right... | 2 |
PHP | PHP | replace wrong comment | 00b531913ac4edfe82eb47982ef9240394e72567 | <ide><path>cake/libs/set.php
<ide> function format($data, $format, $keys) {
<ide> * - /Posts[title] (Selects all Posts that have a 'name' key)
<ide> * - /Comment/.[1] (Selects the contents of the first comment)
<ide> * - /Comment/.[:last] (Selects the last comment)
<del> * - /Comment/.[:first] (Selects the last comm... | 1 |
Text | Text | add ai-soco models | bf162ce8ca15fa0371cccb9ecf0d91404e39905f | <ide><path>model_cards/aliosm/ai-soco-c++-roberta-small-clas/README.md
<add>---
<add>language: "c++"
<add>tags:
<add>- exbert
<add>- authorship-identification
<add>- fire2020
<add>- pan2020
<add>- ai-soco
<add>- classification
<add>license: "mit"
<add>datasets:
<add>- ai-soco
<add>metrics:
<add>- accuracy
<add>---
<add... | 6 |
Ruby | Ruby | remove silly concatenation | c59a6381956a1a6408f6b6686476fecc437cca1d | <ide><path>Library/Homebrew/formula.rb
<ide> def cached_download
<ide>
<ide> def bin; prefix+'bin' end
<ide> def sbin; prefix+'sbin' end
<del> def doc; prefix+'share'+'doc'+name end
<add> def doc; prefix+'share/doc'+name end
<ide> def lib; prefix+'lib' end
<ide> def libexec; prefix+'libexec' end
<del> def m... | 1 |
PHP | PHP | add missing import | f14fa623902e96808696656bc40390fe2db146fe | <ide><path>src/Console/CommandRunner.php
<ide> use Cake\Console\Exception\StopException;
<ide> use Cake\Console\Shell;
<ide> use Cake\Core\ConsoleApplicationInterface;
<add>use Cake\Core\HttpApplicationInterface;
<ide> use Cake\Core\PluginApplicationInterface;
<ide> use Cake\Event\EventDispatcherInterface;
<ide> use Ca... | 1 |
PHP | PHP | fix primary key test | 10596b812f4841783923861c29c29c7512f5cae2 | <ide><path>tests/TestCase/View/Form/EntityContextTest.php
<ide> public function testPrimaryKey()
<ide> */
<ide> public function testIsPrimaryKey()
<ide> {
<add> $this->_setupTables();
<add>
<ide> $row = new Article();
<ide> $context = new EntityContext($this->request, [
<ide> ... | 1 |
Ruby | Ruby | simplify these tests | 67844c9012a8692d7435862b67a9c791a56abe01 | <ide><path>Library/Homebrew/test/test_bucket.rb
<ide> require 'testing_env'
<ide> require 'test/testball'
<ide>
<del>class MockFormula < Formula
<del> def initialize url
<del> @stable = SoftwareSpec.new(url)
<del> super 'test'
<del> end
<del>end
<del>
<del>class TestZip < Formula
<del> def initialize
<del> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.