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 |
|---|---|---|---|---|---|
Python | Python | restore changes from nn-beam-parser to spacy/_ml | fe90dfc390c98b154c544c10f07f2138d9b03384 | <ide><path>spacy/_ml.py
<ide>
<ide> from thinc.neural._classes.convolution import ExtractWindow
<ide> from thinc.neural._classes.static_vectors import StaticVectors
<del>from thinc.neural._classes.batchnorm import BatchNorm
<add>from thinc.neural._classes.batchnorm import BatchNorm as BN
<ide> from thinc.neural._class... | 1 |
Javascript | Javascript | prevent non user from hitting delete page | 75090415118f37d564a15e9c68faeefd005e4051 | <ide><path>server/boot/user.js
<ide> module.exports = function(app) {
<ide> router.get('/email-signin', getEmailSignin);
<ide> router.get('/deprecated-signin', getDepSignin);
<ide> router.get('/update-email', getUpdateEmail);
<del> router.get('/delete-my-account', showDelete);
<add> router.get(
<add> '/delet... | 1 |
Javascript | Javascript | use test port instead of 8000 in test-http-304 | 141565046375db6fa427ba014113abcc9f4d5833 | <ide><path>test/simple/test-http-304.js
<ide> s = http.createServer(function (request, response) {
<ide> response.writeHead(304);
<ide> response.end();
<ide> })
<del>s.listen(8000);
<del>sys.puts('Server running at http://127.0.0.1:8000/')
<add>s.listen(PORT);
<add>sys.puts('Server running at http://127.0.0.1:'+POR... | 1 |
PHP | PHP | fix typehints and docblocks | 8a27ca2c824b9f40f533777cb74acfdca23f8f74 | <ide><path>src/Database/Type.php
<ide> class Type
<ide> /**
<ide> * Contains a map of type object instances to be reused if needed.
<ide> *
<del> * @var \Cake\Database\Type[]
<add> * @var \Cake\Database\TypeInterface[]
<ide> */
<ide> protected static $_builtTypes = [];
<ide>
<ide> class ... | 1 |
PHP | PHP | avoid string manipulation | a93e9272318f9a01e97a7912d931b3ed034a488b | <ide><path>src/Filesystem/File.php
<ide> public function exists(): bool
<ide> public function perms()
<ide> {
<ide> if ($this->exists()) {
<del> return substr(sprintf('%o', fileperms($this->path)), -3);
<add> return decoct(fileperms($this->path) & 0777);
<ide> }
<ide>
<ide... | 1 |
Javascript | Javascript | prefer param function check over args length | 7cf56797dddc7a00f76b6c9ffda7270c15f8c6d3 | <ide><path>lib/fs.js
<ide> function open(path, flags, mode, callback) {
<ide> callback = flags;
<ide> flags = 'r';
<ide> mode = 0o666;
<del> } else if (arguments.length === 3) {
<add> } else if (typeof mode === 'function') {
<ide> callback = mode;
<ide> mode = 0o666;
<ide> }
<ide> function readd... | 1 |
Text | Text | use serial comma in modules docs | 74cf01a8e8c66f1ffbb13282e45abc777ef4bd64 | <ide><path>doc/api/modules.md
<ide> wrapper that looks like the following:
<ide>
<ide> By doing this, Node.js achieves a few things:
<ide>
<del>* It keeps top-level variables (defined with `var`, `const` or `let`) scoped to
<add>* It keeps top-level variables (defined with `var`, `const`, or `let`) scoped to
<ide> ... | 1 |
Text | Text | fix typo rtc to rct | bc432ae3248d3a886ff61c131513babbcd544194 | <ide><path>docs/NativeModulesIOS.md
<ide> RCT_EXPORT_METHOD(doSomethingExpensive:(NSString *)param callback:(RCTResponseSe
<ide> ## Dependency Injection
<ide> The bridge initializes any registered RCTBridgeModules automatically, however you may wish to instantiate your own module instances (so you may inject dependenci... | 1 |
PHP | PHP | start tests for magic finder methods | ad11d7f04b2fd4fc3ce50022b7972507bfcc5913 | <ide><path>Cake/Test/TestCase/ORM/TableTest.php
<ide> public function testAfterValidate() {
<ide> $this->assertEquals(['Not good'], $entity->errors('username'));
<ide> }
<ide>
<add>/**
<add> * Test magic findByXX method.
<add> *
<add> * @return void
<add> */
<add> public function testMagicFindFirst() {
<add> $tabl... | 1 |
Java | Java | add value() attribute to @payload | bcfbd862c73db17d7bd8dfe5b669d1a8fc17bcbf | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Payload.java
<ide> @Documented
<ide> public @interface Payload {
<ide>
<add> /**
<add> * A SpEL expression to be evaluated against the payload object as the root context.
<add> * This attribute may or may not be supported depe... | 3 |
Ruby | Ruby | require test/unit and sort test order | 9342492e1445c47b02db392ba8430ecb9218fc47 | <ide><path>activerecord/test/cases/helper.rb
<ide>
<ide> require 'config'
<ide>
<del>require 'test/unit'
<add>require 'minitest/autorun'
<ide> require 'stringio'
<ide> require 'mocha'
<ide>
<ide><path>activesupport/lib/active_support/test_case.rb
<ide> def self.for_tag(tag)
<ide> yield if $tags[tag]
<ide> ... | 2 |
Javascript | Javascript | move auth functions to central location | a4e220e2bc77a7fd3233cb8443fded52a3ae11d1 | <ide><path>common/models/User-Identity.js
<del>import assign from 'object.assign';
<ide> import debugFactory from 'debug';
<ide>
<add>import {
<add> setProfileFromGithub,
<add> getFirstImageFromProfile
<add>} from '../../server/utils/auth';
<add>
<ide> const debug = debugFactory('freecc:models:userIdent');
<ide>
<i... | 3 |
PHP | PHP | fix cs error | e72ec8fd2aadcbd90f8b46182a72725a6c14132a | <ide><path>src/View/View.php
<ide> public function __get($name)
<ide> *
<ide> * @param string $name Name to property.
<ide> * @param mixed $value Value for property.
<add> * @return void
<ide> */
<ide> public function __set($name, $value)
<ide> { | 1 |
Text | Text | add datumo.io to airflow family | 4e352f9c5e0e8d6714fe5d9c20f9b7cf33697245 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [DataFox](https://www.datafox.com/) [[@sudowork](https://github.com/sudowork)]
<ide> 1. [DataSprints](https://datasprints.com/) [[@lopesdiego12](https://github.com/lopesdiego12) & [@rafaelsantanaep](https://github.com/rafaelsantanaep)]
<ide... | 1 |
Javascript | Javascript | fix property | a7de96e860559468081f752bee37220a307f8f73 | <ide><path>examples/jsm/controls/TrackballControls.js
<ide> class TrackballControls extends EventDispatcher {
<ide>
<ide> case 2:
<ide> _state = STATE.TOUCH_ZOOM_PAN;
<del> _moveCurr.copy( getMouseOnCircle( event.pageX - _movePrev.pageX, event.pageY - _movePrev.pageY ) );
<add> _moveCurr.copy( getMous... | 1 |
Python | Python | use threadpoolexecutor instead of threadpool | 204f9318e5d32a3616913d0d4f16e6c63efb6ce8 | <ide><path>numpy/distutils/ccompiler.py
<ide> def single_compile(args):
<ide>
<ide> if len(build) > 1 and jobs > 1:
<ide> # build parallel
<del> import multiprocessing.pool
<del> pool = multiprocessing.pool.ThreadPool(jobs)
<del> pool.map(single_compile, build_items)
<del> pool.... | 1 |
PHP | PHP | add missing coverage for attributes with secure() | 9201375dd1e3358844d880947744918bdda4db1d | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testFormSecurityInputUnlockedFields() {
<ide> );
<ide> $this->assertEquals($expected, $result);
<ide>
<del> $result = $this->Form->secure($expected);
<add> $result = $this->Form->secure($expected, ['data-foo' => 'bar']);
<ide>
<ide> ... | 1 |
PHP | PHP | fix cs errors | 9c32a1f1e1afb704f869817715786d60371b3500 | <ide><path>src/Shell/PluginAssetsShell.php
<ide> protected function _list() {
<ide> /**
<ide> * Process plugins
<ide> *
<add> * @param array $plugins List of plugins to process
<ide> * @return void
<ide> */
<ide> protected function _process($plugins) {
<ide> protected function _process($plugins) {
<ide> * Create ... | 1 |
Javascript | Javascript | fix error emit handling | 04ae4862e670a8849454e6d8db4d8f73d0492190 | <ide><path>lib/domain.js
<ide> EventEmitter.init = function() {
<ide> const eventEmit = EventEmitter.prototype.emit;
<ide> EventEmitter.prototype.emit = function emit(...args) {
<ide> const domain = this.domain;
<del> if (domain === null || domain === undefined || this === process) {
<del> return Reflect.apply(ev... | 2 |
Go | Go | fix the use for secret create | 5cef55ba9178604c67d99774526cf055c7d0aafe | <ide><path>cli/command/secret/create.go
<ide> func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> }
<ide>
<ide> cmd := &cobra.Command{
<del> Use: "create [OPTIONS] SECRET [SECRET...]",
<add> Use: "create [OPTIONS] SECRET",
<ide> Short: "Create a secret using stdin as content",
<d... | 1 |
Ruby | Ruby | add homebrew.install_gem_setup_path! function | 9e8103cf38f10a4240f0a796bbecdb635dbc74d4 | <ide><path>Library/Homebrew/cmd/man.rb
<ide> def man
<ide> end
<ide> end
<ide>
<del> which("ronn") || odie("You need to \"gem install ronn\" and put it in your path.")
<add> Homebrew.install_gem_setup_path! "ronn"
<ide>
<ide> if ARGV.include?("--server") || ARGV.include?("-s")
<ide> puts "Ma... | 3 |
Python | Python | set version to v2.1.0a6.dev0 | fe4e68cb71e4630283b445982e942b887566c635 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a5"
<add>__version__ = "2.1.0a6.dev0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
Ruby | Ruby | fix secret_key_base for railties | e0c6bce203237592ddd5ae5e227b463322f28c20 | <ide><path>railties/test/application/url_generation_test.rb
<ide> class MyApp < Rails::Application
<ide> config.active_support.deprecation = :log
<ide> config.eager_load = false
<ide> config.hosts << proc { true }
<add> config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
<ide> ... | 2 |
Mixed | Javascript | translate title and dashname correctly | 1b895e7809a6ab964a56099aa51db6bda01c4722 | <ide><path>curriculum/__fixtures__/chinese/challenge-stripped.md
<ide> ---
<del>localeTitle: 向HTML Elements说你好
<add>title: 向HTML Elements说你好
<ide> forumTopicId: 18276
<ide> ---
<ide>
<ide><path>curriculum/__fixtures__/chinese/challenge.md
<ide> ---
<ide> id: bd7123c8c441eddfaeb5bdef
<del>title: Say Hello to HTML Eleme... | 12 |
Go | Go | remove tagger and newtagger | ff81dc3544b018a85a7bad4d8934fe41cb3276ea | <ide><path>api/server/backend/build/backend.go
<ide> func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
<ide> options := config.Options
<ide> useBuildKit := options.Version == types.BuilderBuildKit
<ide>
<del> tagger, err := NewTagger(b.imageComponent, config.ProgressWriter.StdoutFormat... | 2 |
Javascript | Javascript | add missing semicolon | 9b70e82246e791f3045e9434d9282a555d5a97b0 | <ide><path>examples/quadratic/example.js
<ide> var QuadraticCalculator = React.createClass({
<ide> render: function() {
<ide> var a = this.state.a;
<ide> var b = this.state.b;
<del> var c = this.state.c
<add> var c = this.state.c;
<ide> var x1 = (-b + Math.sqrt(Math.pow(b, 2) - 4 * a * c)) / (2 * a)... | 1 |
PHP | PHP | put the opening { in the new line | e44fa69f127f47f1d4a3c54ed28f04f341db3bf9 | <ide><path>src/View/View.php
<ide> protected function _getViewFileName($name = null)
<ide> * @param string $name Name of file which should be inflected.
<ide> * @return string File name after conversion
<ide> */
<del> protected function _inflectViewFileName($name) {
<add> protected function _inflec... | 1 |
PHP | PHP | apply fixes from styleci | e0766cfd81a164bd5f0a0070216400b430d30185 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> use Illuminate\Database\Connection;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Database\Query\Expression;
<del>use Illuminate\Database\SQLiteConnection;
<ide> use Illuminate\Database\Schema\Grammars\Grammar;
<add>use Illuminate\Databa... | 1 |
Javascript | Javascript | update example to use ngmodel best practices | d40749caabfbdaf867973bb6e8de75f64902f13a | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> <script>
<ide> angular.module('textInputExample', [])
<ide> .controller('ExampleController', ['$scope', function($scope) {
<del> $scope.text = 'guest';
<del> $scope.word = /^\s*\w*\s*$/;
<add>... | 1 |
Javascript | Javascript | avoid stack overflow | 9e650b1807f58662fbe51ad4aaec4e753efe5f1e | <ide><path>lib/FileSystemInfo.js
<ide> class FileSystemInfo {
<ide> path: directory
<ide> });
<ide> }
<del> callback();
<add> process.nextTick(callback);
<ide> break;
<ide> }
<ide> case RBDT_DIRECTORY_DEPENDENCIES: { | 1 |
Python | Python | add a test for fix | 9cafdd1854ccd5215b7a188c5896fb498a59d725 | <ide><path>tests/test_routers.py
<ide> def detail_custom_route_get(self, request, *args, **kwargs):
<ide> return Response({'method': 'link2'})
<ide>
<ide>
<add>class SubDynamicListAndDetailViewSet(DynamicListAndDetailViewSet):
<add> pass
<add>
<add>
<ide> class TestDynamicListAndDetailRouter(TestCase):
<id... | 1 |
Python | Python | fix py3 compat bug | bb0084f5bef9b871a82f0451ed71131ffb7a43b3 | <ide><path>flask/testsuite/templating.py
<ide> def test_template_loader_debugging(self):
<ide> class _TestHandler(logging.Handler):
<ide> def handle(x, record):
<ide> called.append(True)
<del> text = unicode(record.msg)
<add> text = str(record.msg)
<ide>... | 1 |
Python | Python | create factorial_python.py (#530) | 459a4f35a5bba49248a220f18b9baef066535d15 | <ide><path>factorial_python.py
<add># Python program to find the factorial of a number provided by the user.
<add>
<add># change the value for a different result
<add>num = 10
<add>
<add># uncomment to take input from the user
<add>#num = int(input("Enter a number: "))
<add>
<add>factorial = 1
<add>
<add># check if the... | 1 |
PHP | PHP | remove unused argument | 5099ba134ece2fc00a0a15e8661bb824b91afc4a | <ide><path>src/ORM/EagerLoader.php
<ide> protected function _fixStrategies()
<ide> }
<ide> foreach ($configs as $loadable) {
<ide> if (strpos($loadable->aliasPath(), '.')) {
<del> $this->_correctStrategy($loadable, $alias);
<add> ... | 1 |
Python | Python | fix lint error in test file | be4fb940be3b09cee538ee72869267395bb2365f | <ide><path>libcloud/test/compute/test_dimensiondata.py
<ide> def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_07e3621a_a920
<ide> )
<ide> return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
<ide>
<del> def _caas_2_3_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server(sel... | 1 |
Text | Text | add markdown explanation to video challenge docs | b4c5bb9cf223fc6f6b5960525843d036eacdf848 | <ide><path>docs/how-to-help-with-video-challenges.md
<ide> An optional description with helpful information related to the video.
<ide> <section id='tests'>
<ide>
<ide> ```yml
<del>tests:
<add>question:
<ide> text: 'Question'
<ide> answers:
<ide> - 'Answer One'
<ide> You can add the question locally or directl... | 1 |
PHP | PHP | fix sortdir() to read default params | dde19f97c784952ba716b841eddd482a2c70184b | <ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
<ide> public function testSortKeyFallbackToParams() {
<ide>
<ide> $result = $this->Paginator->sortKey('Article');
<ide> $this->assertEquals('Article.body', $result);
<add>
<add> $this->Paginator->request->params['paging']['Article']['order'] = arra... | 2 |
Javascript | Javascript | fix eslint error | a90d0cbbba7a88f0ddacf95136a72abeb932363f | <ide><path>docs/app/src/directives.js
<ide> directivesModule
<ide> bindings: {
<ide> items: '<'
<ide> },
<del> controller: ['$location', function($location) {
<add> controller: ['$location', /** @this */ function($location) {
<ide> this.path = $location.path().replace(/^\/?(.+?)(\/index)?\/?$/, '$1');
<id... | 1 |
Text | Text | fix the example of linear radial axis | 48fefd92b6dc61345021c6508b23698830ff392f | <ide><path>docs/axes/radial/linear.md
<ide> This example sets up a chart with a y axis that creates ticks at `0, 0.5, 1, 1.5
<ide>
<ide> ```javascript
<ide> let options = {
<del> scales: {
<del> yAxes: [{
<del> ticks: {
<del> max: 5,
<del> min: 0,
<del> ... | 1 |
Java | Java | add test to assess claims in spr-10411 | b305f0005b2836faf49da234015cc1f9f83ffb85 | <ide><path>spring-beans/src/test/java/org/springframework/beans/factory/support/BeanFactoryGenericsTests.java
<ide>
<ide> package org.springframework.beans.factory.support;
<ide>
<del>import static org.junit.Assert.assertEquals;
<del>import static org.junit.Assert.assertNotSame;
<del>import static org.junit.Assert.as... | 1 |
Python | Python | fix race condition when starting dagprocessoragent | 525484388464619832a14d1b28e06e3a097aac97 | <ide><path>airflow/dag_processing/manager.py
<ide> def _run_processor_manager(
<ide> os.environ['AIRFLOW__LOGGING__COLORED_CONSOLE_LOG'] = 'False'
<ide> # Replicating the behavior of how logging module was loaded
<ide> # in logging_config.py
<add>
<add> # TODO: This reloading should be re... | 3 |
Javascript | Javascript | ignore debug code | dc743d2197f35f1d50bc453a24d69d5f4af5ffcc | <ide><path>lib/ChunkGroup.js
<ide> class ChunkGroup {
<ide> this.options.name = value;
<ide> }
<ide>
<add> /* istanbul ignore next */
<ide> /**
<ide> * get a uniqueId for ChunkGroup, made up of its member Chunk debugId's
<ide> * @returns {string} a unique concatenation of chunk debugId's
<ide> class ChunkGroup... | 1 |
PHP | PHP | fix doc comment errors in acl classes | 70589212755c0c5a5caf00e28e138290cd878552 | <ide><path>lib/Cake/Controller/Component/Acl/AclInterface.php
<ide> public function inherit($aro, $aco, $action = "*");
<ide> /**
<ide> * Initialization method for the Acl implementation
<ide> *
<del> * @param AclComponent $component
<add> * @param Component $component The AclComponent instance.
<ide> * @return void... | 3 |
Python | Python | ignore false positive lint warning | aef56dbc6302a6dc4cf6a2d7f6d180b49ac81afc | <ide><path>libcloud/common/google.py
<ide> def _receive_code_through_local_loopback(self):
<ide> class AccessCodeReceiver(BaseHTTPRequestHandler):
<ide>
<ide> # noinspection PyMethodParameters,PyPep8Naming
<del> def do_GET(self_):
<add> def do_GET(self_): # pylint: disable=no... | 1 |
Text | Text | change a word in performance docs | 0833d897835b1fd20ebca043b9448981e87521f7 | <ide><path>docs/docs/11-advanced-performance.md
<ide> One of the first questions people ask when considering React for a project is wh
<ide>
<ide> ## Use the production build
<ide>
<del>If you're benchmarking or seeing performance problems in your React apps, make sure you're testing with the [minified production bui... | 1 |
PHP | PHP | remove unused property | 60520dc6d218985f3ecdb35cd867dcfb193ee639 | <ide><path>tests/TestCase/View/ViewTest.php
<ide> class ViewPostsController extends Controller
<ide> */
<ide> public $name = 'Posts';
<ide>
<del> /**
<del> * uses property
<del> *
<del> * @var mixed
<del> */
<del> public $uses = null;
<del>
<ide> /**
<ide> * index method
<ide> ... | 1 |
Ruby | Ruby | form => form_for | 77c8cd75162e0771dd45930a4309d3183707731a | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def convert_to_model(object)
<ide> #
<ide> # Example:
<ide> #
<del> # <%= form(@post) do |f| %>
<add> # <%= form_for(@post) do |f| %>
<ide> # <% f.fields_for(:comments, :include_id => false) do |cf| %>
<ide> ... | 1 |
Javascript | Javascript | use custom elements on pane container element | 2a1e10a9f9fb0cffa843b6abee2de4aa14f5370d | <ide><path>spec/pane-container-element-spec.js
<ide> describe('PaneContainerElement', function() {
<ide> expect(document.activeElement).toBe(rightPaneElement);
<ide>
<ide> rightPane.destroy();
<add> expect(containerElement).toHaveClass('panes')
<ide> return expect(document.activeElement).toBe(le... | 3 |
Text | Text | add creditas to airflow users | a3c5783f51763901ffba399aaad6dd485b4eda14 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Cotap](https://github.com/cotap/) [[@maraca](https://github.com/maraca) & [@richardchew](https://github.com/richardchew)]
<ide> 1. [CreditCards.com](https://www.creditcards.com/)[[@vmAggies](https://github.com/vmAggies) & [@jay-wallaby](https... | 1 |
Python | Python | move function to compat | 579f77ceaa03a216a7a635c3d3a4d83b0e5868f8 | <ide><path>rest_framework/compat.py
<ide> def apply_markdown(text):
<ide> oauth2_provider_forms = None
<ide> oauth2_provider_scope = None
<ide> oauth2_constants = None
<add>
<add># Handle lazy strings
<add>from django.utils.functional import Promise
<add>
<add>if six.PY3:
<add> def is_non_str_iterable(ob... | 2 |
Go | Go | remove useless debug message | f1b59d64d21d5a0f54536b26161a31441697ca61 | <ide><path>daemon/execdriver/native/driver.go
<ide> func NewDriver(root, initPath string, options []string) (*driver, error) {
<ide> }
<ide> }
<ide>
<del> logrus.Debugf("Using %v as native.cgroupdriver", cgm)
<del>
<ide> f, err := libcontainer.New(
<ide> root,
<ide> cgm, | 1 |
Java | Java | add interface for reactshadownode | 08befb730b7abbb21c58176ea9d55962fae6a30b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java
<ide> import android.view.Display;
<ide> import android.view.Surface;
<ide> import android.view.WindowManager;
<del>
<del>import com.facebook.react.uimanager.ReactShadowNode;
<del>import com.facebook.yoga.YogaValue;
<add>import ... | 16 |
Mixed | Java | unify typeface logic (android) | 9d2fedc6e22ca1b45fbc2059971cd194de5d0170 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java
<ide> import android.graphics.Typeface;
<ide> import android.text.TextPaint;
<ide> import android.text.style.MetricAffectingSpan;
<del>import androidx.annotation.NonNull;
<ide> import androidx.annotation.Nullable;
<add>import com.f... | 7 |
Text | Text | fix unusual line terminators [ci skip] | ef896892390adc3440b7a18cf03c0f6386b61a67 | <ide><path>guides/source/security.md
<ide> Intranet and Admin Security
<ide>
<ide> Intranet and administration interfaces are popular attack targets, because they allow privileged access. Although this would require several extra-security measures, the opposite is the case in the real world.
<ide>
<del>In 2007 there ... | 1 |
Ruby | Ruby | fix syntax error | 23cb26cfac0725ab979d026f52bf8f03d2a01309 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def rails_gemfile_entry
<ide> if options.dev?
<ide> [GemfileEntry.path('rails', Rails::Generators::RAILS_DEV_PATH),
<ide> GemfileEntry.github('arel', 'rails/arel'),
<del> GemfileEntry.github('rack', 'rack/rack')]
<add> ... | 1 |
Ruby | Ruby | improve routing docs, mostly for #match | 277327bb7f389a140eb4ae7722d64d6cf45e06cf | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(set) #:nodoc:
<ide> #
<ide> # root :to => 'pages#main'
<ide> #
<del> # For options, see the +match+ method's documentation, as +root+ uses it internally.
<add> # For options, see +match+, as +root+ u... | 1 |
Text | Text | correct wrong spacing in readme | f72fe1f31aca235c7f675680832cc364efe4088e | <ide><path>model_cards/patrickvonplaten/bert2bert-cnn_dailymail-fp16/README.md
<ide> from transformers import BertTokenizer, EncoderDecoderModel
<ide> model = EncoderDecoderModel.from_pretrained("patrickvonplaten/bert2bert-cnn_dailymail-fp16")
<ide> tokenizer = BertTokenizer.from_pretrained("patrickvonplaten/bert2bert-... | 1 |
PHP | PHP | remove function that is no longer used | 0f2b3be9b8753ba2813595f9191aa8d8c31886b1 | <ide><path>src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
<ide> protected function loadRoutes()
<ide> $this->app->call([$this, 'map']);
<ide> }
<ide>
<del> /**
<del> * Load the standard routes file for the application.
<del> *
<del> * @param string $path
<del> * @... | 1 |
Python | Python | fix length of iterabledatasetshard and add test | 63cc5bda6028d64cb5399d4c0f7d2946bebb663b | <ide><path>src/transformers/trainer_pt_utils.py
<ide> def __iter__(self):
<ide> def __len__(self):
<ide> # Will raise an error if the underlying dataset is not sized.
<ide> if self.drop_last:
<del> return len(self.dataset) // self.num_processes
<add> return (len(self.dataset) /... | 3 |
Text | Text | remove semi-colons after class definition | 8174a0dc086268fb092f65f965fc769b08bd938a | <ide><path>docs/HeightAndWidth.md
<ide> class FixedDimensionsBasics extends Component {
<ide> </View>
<ide> );
<ide> }
<del>};
<add>}
<ide>
<ide> AppRegistry.registerComponent('AwesomeProject', () => FixedDimensionsBasics);
<ide> ```
<ide> class FlexDimensionsBasics extends Component {
<ide> </View>
... | 1 |
Go | Go | update the comment about mappingwithequals | 2cdc9c42eb138bcaffb1cbd4172bd18b69446394 | <ide><path>cli/compose/types/types.go
<ide> type StringList []string
<ide> type StringOrNumberList []string
<ide>
<ide> // MappingWithEquals is a mapping type that can be converted from a list of
<del>// key=value strings
<add>// key[=value] strings.
<add>// For the key with an empty value (`key=`), the mapped value i... | 1 |
Python | Python | fix pickle tests | e619f452877c54c2801415abaf0f93ff3889adb4 | <ide><path>spacy/tests/test_pickles.py
<ide> from __future__ import unicode_literals
<ide>
<ide> import pytest
<del>import dill as pickle
<ide> import numpy
<add>import srsly
<ide> from spacy.strings import StringStore
<ide> from spacy.vocab import Vocab
<ide> from spacy.attrs import NORM
<ide> def test_pickle_string_... | 1 |
PHP | PHP | fix error when generating xml | 5d6a6fa203eeaf32d87c77276f38fbb3451561a0 | <ide><path>lib/Cake/Test/Case/Utility/XmlTest.php
<ide> public function testFromArrayFail($value) {
<ide> }
<ide> }
<ide>
<add>/**
<add> * Test that there are not unterminated errors when building xml
<add> *
<add> * @return void
<add> */
<add> public function testFromArrayUnterminatedError() {
<add> $data = array... | 2 |
Text | Text | add a code of conduct | f1220c5fe2309353a7c37dc00c8cbcb5ed5b568d | <ide><path>CODE_OF_CONDUCT.md
<add>
<add># Contributor Covenant Code of Conduct
<add>
<add>## Our Pledge
<add>
<add>We as members, contributors, and leaders pledge to make participation in our
<add>community a harassment-free experience for everyone, regardless of age, body
<add>size, visible or invisible disability, e... | 3 |
Ruby | Ruby | use canonical_name to canonicalize aliases | ccc62a0cad3816389db805143f39013218b57bce | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search_formulae rx
<ide> results = (Formula.names+aliases).grep(rx).sort
<ide>
<ide> # Filter out aliases when the full name was also found
<del> results.reject do |alias_name|
<del> if aliases.include? alias_name
<del> resolved_name = (HOMEBRE... | 1 |
Java | Java | fix checkstyle errors | 9990bd2ea84560c64b44900754ddfd35d77de763 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/KotlinSerializationJsonDecoder.java
<ide> public Flux<Object> decode(Publisher<DataBuffer> inputStream, ResolvableType ele
<ide>
<ide> @Override
<ide> public Mono<Object> decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType... | 2 |
Javascript | Javascript | remove obsolete completer variable | ee176f1205ce6eba8848779d793ad40c8236fbfa | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> enumerable: true
<ide> });
<ide>
<del> // Figure out which "complete" function to use.
<del> self.completer = (typeof options.completer === 'function') ?
<del> options.completer : completer;
<del>
<ide> function completer(text, cb) {
<ide> ... | 1 |
Python | Python | make test less flakey | 2f7e9f390d26b0f2bb335b9767c762744b04783d | <ide><path>spacy/tests/regression/test_issue781.py
<ide> @pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])])
<ide> def test_issue781(EN, word, lemmas):
<ide> lemmatizer = EN.Defaults.create_lemmatizer()
<del> assert... | 1 |
Ruby | Ruby | expose uses_from_macos list | 9bd77b18197ecf5e3b4d048fb2452d7be474ee13 | <ide><path>Library/Homebrew/extend/os/mac/software_spec.rb
<ide> class SoftwareSpec
<ide> undef uses_from_macos
<ide>
<ide> def uses_from_macos(deps, **args)
<add> @uses_from_macos_elements ||= []
<add>
<ide> if deps.is_a?(Hash)
<ide> args = deps
<ide> deps = Hash[*args.shift]
<ide> end
<ide... | 3 |
Javascript | Javascript | remove mozopaque for driver | 95dd33d51a8b98d6bb0e8bd4944bc5b9873ba732 | <ide><path>test/driver.js
<ide> function load() {
<ide> var delay = params.delay || 0;
<ide>
<ide> canvas = document.createElement('canvas');
<del> canvas.mozOpaque = true;
<ide> stdout = document.getElementById('stdout');
<ide>
<ide> info('User Agent: ' + navigator.userAgent); | 1 |
Javascript | Javascript | fix nits in test-fs-mkdir-rmdir.js | 50b35460e34afcdc73d82cd5f29edf7f961771b8 | <ide><path>test/parallel/test-fs-mkdir-rmdir.js
<ide> fs.rmdirSync(d);
<ide> assert(!common.fileExists(d));
<ide>
<ide> // Similarly test the Async version
<del>fs.mkdir(d, 0o666, function(err) {
<add>fs.mkdir(d, 0o666, common.mustCall(function(err) {
<ide> assert.ifError(err);
<ide>
<del> fs.mkdir(d, 0o666, funct... | 1 |
Javascript | Javascript | add more info on `debuginfoenabled()` | 233a93f6e01f7f06d17cdea8a7b2a7098803639d | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> * binding information and a reference to the current scope on to DOM elements.
<ide> * If enabled, the compiler will add the following to DOM elements that have been bound to the scope
<ide> * * `ng-binding` C... | 1 |
Python | Python | fix roformer config doc | e2c1dd09667af5a535689c371b4658c36681131f | <ide><path>src/transformers/models/roformer/configuration_roformer.py
<ide> class RoFormerConfig(PretrainedConfig):
<ide> gradient_checkpointing (:obj:`bool`, `optional`, defaults to :obj:`False`):
<ide> If :obj:`True`, use gradient checkpointing to save memory at the expense of slower backward pass... | 1 |
Text | Text | correct typos and expressions | b4f2fa6fbc7477324ff0f83b1f440e1df6e72b04 | <ide><path>guide/spanish/swift/index.md
<ide> Swift es un lenguaje de programación de [código abierto](https://en.wikipedia.
<ide>
<ide> > Swift es un lenguaje de programación potente e intuitivo para macOS, iOS, watchOS y tvOS. Escribir código Swift es interactivo y divertido, la sintaxis es concisa pero expresiva, y... | 1 |
Javascript | Javascript | make hot loading work on oss | bba35f0415fa6868e4ce6744e4d044d60cb8a041 | <ide><path>local-cli/server/runServer.js
<ide> */
<ide> 'use strict';
<ide>
<add>const attachHMRServer = require('./util/attachHMRServer');
<ide> const connect = require('connect');
<ide> const cpuProfilerMiddleware = require('./middleware/cpuProfilerMiddleware');
<ide> const getDevToolsMiddleware = require('./middle... | 4 |
Ruby | Ruby | remove unused method | 8a5e217b47531764986f9d806fbf1464431684ae | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def add_from_legacy_details_hash(details)
<ide> }
<ide> }
<ide> end
<del>
<del> def deprecation_rename_warning(old_method_name, new_method_name)
<del> ActiveSupport::Deprecation.warn("ActiveModel::Errors##{old_method_name} is de... | 1 |
Text | Text | add new method | f6d8d01ed3c837df33960006076c41dd22b56b0a | <ide><path>guide/chinese/javascript/tutorials/add-new-properties-to-a-javascript-object/index.md
<ide> myObject['bark'] = "woof-woof";
<ide> var dynamicProperty = "bark";
<ide> myObject[dynamicProperty] = "woof-woof";
<ide>
<del>```
<ide>\ No newline at end of file
<add>```
<add>
<add>使用`Object.defineProperty(o, pr... | 1 |
PHP | PHP | use cookieinterface instead for typehint | 9f6bdbb403e1b866259e1007daafff9e4515cd1d | <ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php
<ide>
<ide> use ArrayAccess;
<ide> use Cake\Http\Cookie\Cookie;
<add>use Cake\Http\Cookie\CookieInterface;
<ide> use Cake\Http\Exception\InvalidCsrfTokenException;
<ide> use Cake\Http\Response;
<ide> use Cake\Utility\Hash;
<ide> protected function _validateTo... | 1 |
Javascript | Javascript | fix buffer.slice(0, 0) | 4f32a59307b15ce5c3b9d543b16ed90470b1132e | <ide><path>lib/buffer.js
<ide> Buffer.prototype.copy = function copy (target, target_start, start, end) {
<ide>
<ide> // slice(start, end)
<ide> Buffer.prototype.slice = function (start, end) {
<del> if (!end) end = this.length;
<add> if (end === undefined) end = this.length;
<ide> if (end > this.length) throw new... | 2 |
Python | Python | replace dynamic squeeze with reshape to 1d | ce7d80652ca4b4d95532dd55b7cff913c5f1c646 | <ide><path>official/nlp/bert/run_classifier.py
<ide> def get_loss_fn(num_classes):
<ide>
<ide> def classification_loss_fn(labels, logits):
<ide> """Classification loss."""
<del> labels = tf.squeeze(labels)
<add> labels = tf.reshape(labels, [-1])
<ide> log_probs = tf.nn.log_softmax(logits, axis=-1)
<ide... | 1 |
Java | Java | add doc & tests to jaxb2xmlencoder for collections | 1c628293a2eda10ab07d77f4d2ae832d134c578c | <ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlEncoder.java
<ide> import org.springframework.util.MimeTypeUtils;
<ide>
<ide> /**
<del> * Encode from {@code Object} stream to a byte stream containing XML elements.
<add> * Encode from single value to a byte stream containing XML elements.... | 2 |
Go | Go | add support for ipv6 addresses in --dns parameters | 899e9e74165b567c157756d56c47d33fac82c05a | <ide><path>docker/docker.go
<ide> func main() {
<ide> flRoot = flag.String([]string{"g", "-graph"}, "/var/lib/docker", "Path to use as the root of the Docker runtime")
<ide> flSocketGroup = flag.String([]string{"G", "-group"}, "docker", "Group to assign the unix socket specified by -H when runn... | 3 |
Text | Text | translate 10.9-perf.md to japanese | 2392217f32e839b385a654f70fe8c72e56634303 | <ide><path>docs/docs/10.9-perf.ja-JP.md
<add>---
<add>id: perf
<add>title: パフォーマンスツール
<add>permalink: perf-ja-JP.html
<add>prev: pure-render-mixin-ja-JP.html
<add>next: advanced-performance-ja-JP.html
<add>---
<add>
<add>Reactは普通、従来の枠を超えてとても速いです。しかし、アプリケーションにおいて、少しでもパフォーマンスを上げようという状況では、Reactの差分を取るアルゴリズムを最大限活用するヒントが得られる... | 1 |
Python | Python | remove accidental comment | bdf7e5de92d76ff6dd7cee317ffa43bed8c5d233 | <ide><path>src/transformers/generation_tf_utils.py
<ide> def generate(
<ide>
<ide> tokenizer = AutoTokenizer.from_pretrained('gpt2') # Initialize tokenizer
<ide> model = TFAutoModelWithLMHead.from_pretrained('gpt2') # Download model and configuration from S3 and cache.
<del> inp... | 1 |
Python | Python | add missing tags to verbs (resolves #948) | 808cd6cf7f184e20d9b8e42364f7e10f045028dc | <ide><path>spacy/en/tokenizer_exceptions.py
<ide> {ORTH: "does", LEMMA: "do"},
<ide> {ORTH: "did", LEMMA: "do", TAG: "VBD"},
<ide> {ORTH: "had", LEMMA: "have", TAG: "VBD"},
<del> {ORTH: "may"},
<del> {ORTH: "might"},
<del> {ORTH: "must"},
<add> {ORTH: "may", TAG: "MD"},
<add> {ORTH: "might", ... | 1 |
Ruby | Ruby | use source_path instead of homebrew_library | 1d8e59b31f060b6d60a98d888263d2be783637ce | <ide><path>Library/Homebrew/dev-cmd/man.rb
<ide> def regenerate_man_pages
<ide> convert_man_page(markup, TARGET_DOC_PATH/"brew.1.html")
<ide> convert_man_page(markup, TARGET_MAN_PATH/"brew.1")
<ide>
<del> cask_markup = (HOMEBREW_LIBRARY/"Homebrew/manpages/brew-cask.1.md").read
<add> cask_markup = (SOURCE... | 1 |
Javascript | Javascript | display actual reactdom api name in root type | 3ee7a004e59cc7d71e4d3fc698777b381f4ec719 | <ide><path>packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
<ide> describe('InspectedElement', () => {
<ide> "a": 1,
<ide> "b": "abc",
<ide> },
<add> "rootType": "render()",
<ide> "state": null,
<ide> }
<ide> `);
<ide> describe('InspectedElement'... | 5 |
Javascript | Javascript | enforce child outlets to be fragments. | 81884e31f9a6007719a42ba71e84cf2c1cce41ef | <ide><path>packages/ember-glimmer/lib/syntax/outlet.js
<ide> class OutletComponentDefinition extends AbstractOutletComponentDefinition {
<ide> }
<ide>
<ide> compile(builder) {
<del> builder.fromLayout(this.template.asLayout());
<add> builder.wrapLayout(this.template.asLayout());
<ide> }
<ide> }
<ide>
<ide... | 3 |
Mixed | Javascript | remove the comparrison doc page | 39140cca2e36333abb7ab4309a6b4ee2c52e4d95 | <ide><path>docs/docs/notes/comparison.md
<del>---
<del>title: Comparison with Other Libraries
<del>---
<del>
<del>Library Features
<del>
<del>| Feature | Chart.js | D3 | HighCharts | Chartist |
<del>| ------- | -------- | --- | ---------- | -------- |
<del>| Completely Free | ✓ | ✓ | | ✓ |
<del>| Canv... | 2 |
Javascript | Javascript | add missing iscanvastexture property | 54fdf6304b789b575b341f2008adcf31b96ab468 | <ide><path>src/textures/CanvasTexture.js
<ide> function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, for
<ide>
<ide> CanvasTexture.prototype = Object.create( Texture.prototype );
<ide> CanvasTexture.prototype.constructor = CanvasTexture;
<del>
<add>CanvasTexture.prototype.isCanvasTexture = true;... | 1 |
Python | Python | clarify use of unk_token in tokenizer docstrings | 99b9affa02a6ef02c765c541a5c6f3dcff592bae | <ide><path>src/transformers/tokenization_utils.py
<ide> def tokenize(self, text: TextInput, **kwargs) -> List[str]:
<ide> """
<ide> Converts a string in a sequence of tokens, using the tokenizer.
<ide>
<del> Note that, unlike Fast tokenizers (instances of PreTrainedTokenizerFast), this method wo... | 2 |
Text | Text | modify the return value of request.write() | 766eea6ca48d5ca5cd2e9a1442a9dd6fc4932d9d | <ide><path>doc/api/http.md
<ide> Defaults to `'utf8'`.
<ide> The `callback` argument is optional and will be called when this chunk of data
<ide> is flushed.
<ide>
<del>Returns `request`.
<add>Returns `true` if the entire data was flushed successfully to the kernel
<add>buffer. Returns `false` if all or part of the da... | 1 |
Ruby | Ruby | remove /cask/ from readall file filter | 99bccaae13b38eeb58c234e48386b2898845f2a1 | <ide><path>Library/Homebrew/cmd/readall.rb
<ide> module Homebrew
<ide> def readall
<ide> if ARGV.include?("--syntax")
<ide> scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb"
<del> ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ }
<add> ruby_files = Dir.glob(scan_files).reje... | 1 |
Java | Java | resolve android crash on display modal | 15656342a8401eb599090da7962928dd48d7d890 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java
<ide> public void addView(View child, int index) {
<ide>
<ide> @Override
<ide> public int getChildCount() {
<del> return mHostView.getChildCount();
<add> // This method may be called by the parent constructor
<add> ... | 1 |
Text | Text | fix small typos | f2a3eb987e1fc2c85320fc3849c67811f5736b50 | <ide><path>README.md
<ide> python ./examples/run_glue.py \
<ide> --warmup_steps=120
<ide> ```
<ide>
<del>On this machine we thus have a batch size of 32, please increase `gradient_accumulation_steps` to reach the same batch size if you have a smaller machine. These hyper-parameters should results in a Pearson corr... | 1 |
Python | Python | add openai gpt | eed51c5bdf0d26159127f82f0fe95265b076e1af | <ide><path>pytorch_pretrained_bert/__init__.py
<del>__version__ = "0.4.0"
<add>__version__ = "0.5.0"
<ide> from .tokenization import BertTokenizer, BasicTokenizer, WordpieceTokenizer
<add>from .tokenization_openai import OpenAIGPTTokenizer
<ide> from .modeling import (BertConfig, BertModel, BertForPreTraining,
<ide> ... | 8 |
PHP | PHP | convert rule object to string once | 05e4e9e43857adacffd87f4066a10b2ceccae774 | <ide><path>src/Illuminate/Validation/ValidationRuleParser.php
<ide> protected function explodeExplicitRule($rule)
<ide> if (is_string($rule)) {
<ide> return explode('|', $rule);
<ide> } elseif (is_object($rule)) {
<del> return [$rule];
<add> return [strval($rule)];
<ide... | 1 |
Java | Java | fix crash when removing root nodes | 39b68903463062f69c9120fab7e79fa2735b0b07 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> public synchronized void manageChildren(
<ide> tagsToDelete));
<ide> }
<ide> if (indexToRemove >= viewManager.getChildCount(viewToManage)) {
<add> if (mRootTags.get(tag... | 1 |
PHP | PHP | make exceptions raised by plugincollection better | 7be7aa393c3fb4693180351ceeb86288a3869f7f | <ide><path>src/Core/PluginCollection.php
<ide> namespace Cake\Core;
<ide>
<ide> use ArrayIterator;
<add>use Cake\Core\Exception\MissingPluginException;
<ide> use Countable;
<ide> use InvalidArgumentException;
<ide> use IteratorAggregate;
<ide> public function has($name)
<ide> *
<ide> * @param string $name Th... | 2 |
Go | Go | add disable flag for plugin install | 22e781e8e3ae1d1ab62ddcda983cabfde2e08ad4 | <ide><path>api/client/plugin/install.go
<ide> import (
<ide> type pluginOptions struct {
<ide> name string
<ide> grantPerms bool
<add> disable bool
<ide> }
<ide>
<ide> func newInstallCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> func newInstallCommand(dockerCli *client.DockerCli) *cobra.Comman... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.