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 |
|---|---|---|---|---|---|
Go | Go | remove unnecessary job "initserverpidfile" | b4efcd53e0a62a8ce1080e94e28358ac1a2d6ae2 | <ide><path>builtins/builtins.go
<ide> func remote(eng *engine.Engine) error {
<ide> // These components should be broken off into plugins of their own.
<ide> //
<ide> func daemon(eng *engine.Engine) error {
<del> if err := eng.Register("initserverpidfile", server.InitPidfile); err != nil {
<del> return err
<del> }
<id... | 3 |
Javascript | Javascript | fix timer display in progress output | a08fcc02f8549635d6c79c11545777ce07ec185a | <ide><path>benchmark/_benchmark_progress.js
<ide> function fraction(numerator, denominator) {
<ide>
<ide> function getTime(diff) {
<ide> const time = Math.ceil(diff[0] + diff[1] / 1e9);
<del> const seconds = pad(time % 60, 2, '0');
<del> const minutes = pad(Math.floor(time / 60) % (60 * 60), 2, '0');
<del> const ... | 1 |
Java | Java | unregister jsdevsupport from debugcorepackage | c20963e11cc1c10f20a2a0a3c209f5b403c9e899 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java
<ide> @ReactModuleList(
<ide> nativeModules = {
<ide> JSCHeapCapture.class,
<del> JSDevSupport.class,
<ide> })
<ide> public class DebugCorePackage extends TurboReactPackage {
<ide> public DebugCorePackage() {}
<ide> publ... | 2 |
Go | Go | kill exec process on ctx cancel | 4b84a3321723a849295d5cbf7342ec36077f9179 | <ide><path>daemon/exec.go
<ide> import (
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide>
<del>// Seconds to wait after sending TERM before trying KILL
<del>const termProcessTimeout = 10 * time.Second
<del>
<ide> func (daemon *Daemon) registerExecCommand(container *container.Container, config *exec.Config) {
<ide> /... | 3 |
PHP | PHP | fix connection aliasing | cd1257bde64baf448a40863ebcf56a78df7370bb | <ide><path>src/Datasource/ConnectionManager.php
<ide> public static function parseDsn($config = null)
<ide> *
<ide> * You can remove aliases with ConnectionManager::dropAlias().
<ide> *
<del> * @param string $from The connection to add an alias to.
<del> * @param string $to The alias to create. $... | 2 |
Javascript | Javascript | swap the order of arguments | 2535aa5f7d080fa2f88dc9aeda08ee7fea8004b4 | <ide><path>test/parallel/test-fs-write-sync.js
<ide> tmpdir.refresh();
<ide> const fd = fs.openSync(filename, 'w');
<ide>
<ide> let written = fs.writeSync(fd, '');
<del> assert.strictEqual(0, written);
<add> assert.strictEqual(written, 0);
<ide>
<ide> fs.writeSync(fd, 'foo');
<ide>
<ide> tmpdir.refresh();
<i... | 1 |
Javascript | Javascript | add issue ref for known_issues test | a98426a771957ce37792e4666b3606e55df2adf7 | <ide><path>test/known_issues/test-fs-open-no-close.js
<ide> 'use strict';
<ide>
<add>// Refs: https://github.com/nodejs/node/issues/34266
<ide> // Failing to close a file should not keep the event loop open.
<ide>
<ide> const common = require('../common'); | 1 |
PHP | PHP | remove usage of realpath and getrealpath | 29e898e45886c5c4b141b3fc90e16e426f53527d | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function size($path)
<ide> */
<ide> public function lastModified($path)
<ide> {
<del> return filemtime(realpath($path));
<add> return filemtime($path);
<ide> }
<ide>
<ide> /**
<ide> public function directories($directory)
<ide>
<ide> foreach (... | 1 |
Ruby | Ruby | remove needless comments | 8a5f17e55ac9c429060b76c8e107eb529b4bbf34 | <ide><path>actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb
<del># Be sure to restart your server when you modify this file. Action Cable runs in
<del># a loop that does not support auto reloading.
<ide> module ApplicationCable
<ide> class Channel < ActionCable::Channel::Base
<ide> en... | 3 |
Go | Go | cleanup some assertions | ef01dea8935932486f03a37069720987e805dce6 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> type logStream struct {
<ide> sequenceToken *string
<ide> }
<ide>
<add>var _ logger.SizedLogger = &logStream{}
<add>
<ide> type api interface {
<ide> CreateLogGroup(*cloudwatchlogs.CreateLogGroupInput) (*cloudwatchlogs.CreateLogGroupOutput, error)
<ide> Cr... | 3 |
Javascript | Javascript | convert the hand tool to es6 syntax | bc49524ac76a834fd914ccb5c7e91a1d01fcc4bf | <ide><path>web/hand_tool.js
<ide> import { localized } from './ui_utils';
<ide> * @typedef {Object} HandToolOptions
<ide> * @property {HTMLDivElement} container - The document container.
<ide> * @property {EventBus} eventBus - The application event bus.
<add> * @property {BasePreferences} preferences - Object for re... | 1 |
PHP | PHP | remove redundant checks | 6ee25a0dd7799874c4f5f0db2318cbd9e3958429 | <ide><path>tests/TestCase/Cache/Engine/MemcachedEngineTest.php
<ide> public function testDeleteCache()
<ide> */
<ide> public function testDeleteMany()
<ide> {
<del> $this->skipIf(defined('HHVM_VERSION'), 'HHVM does not implement deleteMulti');
<ide> $this->_configCache();
<ide> $data... | 3 |
Javascript | Javascript | add note for ios9 url scheme changes | cab3bd6e860204a54f88fba21d660a3e9e65410b | <ide><path>Libraries/LinkingIOS/LinkingIOS.js
<ide> class LinkingIOS {
<ide> }
<ide>
<ide> /**
<del> * Determine wether or not an installed app can handle a given `url`
<add> * Determine whether or not an installed app can handle a given `url`
<ide> * The callback function will be called with `bool supporte... | 1 |
Ruby | Ruby | add missing require | 2692e38efac7287cffd0d31f46eed52938983763 | <ide><path>activesupport/lib/active_support/core_ext/string/zones.rb
<add>require 'active_support/core_ext/string/conversions'
<ide> require 'active_support/core_ext/time/zones'
<ide>
<ide> class String | 1 |
PHP | PHP | show error message if a task is not found | c186656ae3e6e94b5ec27f43594e1b90a7ee54db | <ide><path>cake/scripts/bake2.php
<ide> function defineConstants() {
<ide>
<ide> function executeTask($taskName, $params) {
<ide> $class = getTaskClass($taskName);
<del> $class->execute($params);
<add>
<add> if ($class != null) {
<add> $class->execute($params);
<add> } else {
<add> echo "Task not found: "... | 1 |
Javascript | Javascript | add compat support for nested array headers | 5dacbf594ef80f8eadea274f537cc17cc1e5ebe1 | <ide><path>lib/internal/http2/compat.js
<ide> class Http2ServerResponse extends Stream {
<ide> if (headers === undefined && typeof statusMessage === 'object')
<ide> headers = statusMessage;
<ide>
<del> if (typeof headers === 'object') {
<add> var i;
<add> if (Array.isArray(headers)) {
<add> for... | 2 |
Java | Java | ignore parse errors in httpputformcontentfilter | 2ff3d53962c1249dccfb493eb46f12e30612de05 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.java
<ide> public InputStream getBody() throws IOException {
<ide> else {
<ide> filterChain.doFilter(request, response);
<ide> }
<del>
<ide> }
<ide>
<ide> private boolean isFormContentType(HttpServletRequest request) {... | 2 |
Javascript | Javascript | disable the test if uglifyjs is used | e4ac0838d4e4b4c10674b2c6fd7ad0c372687415 | <ide><path>test/cases/parsing/optional-catch-binding/test.filter.js
<ide> const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
<ide>
<ide> module.exports = function(config) {
<add> // XXX: Disable this test if UglifyJS is used because it does not support ES 2019
<add> if (conf... | 1 |
Text | Text | release notes for 1.0.0rc1 | 5e3db61b1de79aae9cdec41173d930eb93c410dd | <ide><path>CHANGELOG.md
<ide> - The Latest Stable Release: <a href="#0.9.19">0.9.19 canine-psychokinesis</a>
<del>- The Latest Unstable Release: <a href="#0.10.6">0.10.6 bubblewrap-cape</a>
<add>- The Latest Unstable Release: <a href="#1.0.0rc1">1.0.0rc1 moiré-vision</a>
<add>
<add><a name="1.0.0rc1"></a>
<add># 1.0.0r... | 1 |
Python | Python | update basic_binary_tree.py (#748) | 56de3df784a8ff2bca54946b9218ca039776a2d7 | <ide><path>binary_tree/basic_binary_tree.py
<ide> def __init__(self, data):
<ide> self.left = None
<ide> self.right = None
<ide>
<add>def display(tree): #In Order traversal of the tree
<add>
<add> if tree is None:
<add> return
<add>
<add> if tree.left is not None:
<add> display(tre... | 1 |
Python | Python | refine bf16 test for deepspeed | 36d46479934c18eeb83599e75ade685159eb62d4 | <ide><path>src/transformers/utils/__init__.py
<ide> is_tokenizers_available,
<ide> is_torch_available,
<ide> is_torch_bf16_available,
<add> is_torch_bf16_cpu_available,
<add> is_torch_bf16_gpu_available,
<ide> is_torch_cuda_available,
<ide> is_torch_fx_available,
<ide> is_torch_fx_proxy,
<... | 3 |
Text | Text | add @kuriyosh to collaborators | e64613d5859b99de9f1fe617c5a9d8fc84b15592 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Juan José Arboleda** <<soyjuanarbol@gmail.com>> (he/him)
<ide> * [JungMinu](https://github.com/JungMinu) -
<ide> **Minwoo Jung** <<nodecorelab@gmail.com>> (he/him)
<add>* [kuriyosh](https://github.com/kuriyosh) -
<ad... | 1 |
Ruby | Ruby | remove magic comment in generated `schema.rb` | 2a71885a3f88562c57f81230d31518e5189c0dda | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def initialize(connection, options = {})
<ide> def header(stream)
<ide> define_params = @version ? "version: #{@version}" : ""
<ide>
<del> if stream.respond_to?(:external_encoding) && stream.external_encoding
<del> stream.pu... | 2 |
Javascript | Javascript | prefer object.create(null) for vertex by name map | d5bd2b9b9d1519791d0959fda997942e8ca714bc | <ide><path>packages/ember-application/lib/system/dag.js
<ide> function visit(vertex, fn, visited, path) {
<ide> */
<ide> function DAG() {
<ide> this.names = [];
<del> this.vertices = {};
<add> this.vertices = Object.create(null);
<add>}
<add>
<ide> /**
<ide> * DAG Vertex
<ide> *
<ide> function Vertex(name) {
<id... | 1 |
Ruby | Ruby | apply suggestions from code review | 62a63063bb4cc191acd268ac96fec6b96e9d3888 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report_args
<ide> end
<ide>
<ide> def update_report
<del> return update_report_impl if $stdout.tty?
<add> return output_update_report if $stdout.tty?
<ide>
<ide> redirect_stdout($stderr) do
<del> return update_report_impl
<add> ... | 3 |
Javascript | Javascript | enable imports for tests | 14df2c6722ea521a57ceceadb75dade7d100ae34 | <ide><path>karma.conf.js
<ide> module.exports = function(karma) {
<ide> ].concat((args.inputs || 'test/specs/**/*.js').split(';')),
<ide>
<ide> preprocessors: {
<add> 'test/specs/**/*.js': ['rollup'],
<ide> 'test/index.js': ['rollup'],
<ide> 'src/index.js': ['sources']
<ide> },
<ide><path>test/specs/help... | 2 |
Mixed | Ruby | remove most traces of python@2 | c46a30b5757f901d111dafc585e53df35a46e407 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_versioned_keg_only
<ide> bash-completion@2
<ide> gnupg@1.4
<ide> lua@5.1
<del> python@2
<ide> numpy@1.16
<ide> ].freeze
<ide>
<ide> def audit_specs
<ide> versioned_head_spec = %w[
<ide> bash-comp... | 8 |
Ruby | Ruby | convert extensions and basenames from array to set | ce33f593b4259d5710cdf36da808be884ddedeef | <ide><path>Library/Homebrew/metafiles.rb
<add>require "set"
<add>
<ide> class Metafiles
<ide> # https://github.com/github/markup#markups
<ide> EXTENSIONS = %w[
<ide> .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn
<ide> .org .pod .rdoc .rst .rtf .textile .txt .wiki
<del> ].freeze
<... | 1 |
Go | Go | avoid fallback to ssl protocols < tls1.0 | 7a062b2b8f7751fbb926e6ddc9f7df8a1b281eb6 | <ide><path>api/server/server.go
<ide> func ListenAndServe(proto, addr string, job *engine.Job) error {
<ide> tlsConfig := &tls.Config{
<ide> NextProtos: []string{"http/1.1"},
<ide> Certificates: []tls.Certificate{cert},
<add> // Avoid fallback on insecure SSL protocols
<add> MinVersion: tls.VersionTLS10,
... | 3 |
Java | Java | fix minor error in annotationutilstests | 8f0849f328ee5725af1c02d0aa02697a6ac93590 | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 1 |
Ruby | Ruby | show diff before trying to commit | 2e7c4236090c06def65b9d6fc64409337dcb9f55 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def merge
<ide>
<ide> update_or_add = has_bottle_block ? 'update' : 'add'
<ide>
<add> system 'git', 'diff'
<ide> safe_system 'git', 'commit', '--no-edit', '--verbose',
<ide> "--message=#{f.name}: #{update_or_add} #{f.version} bottle.",
<... | 1 |
Ruby | Ruby | add mocha mocking library | 1f505af56670599dbdb29d84ef2b683479315e6f | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> def shutup
<ide> end
<ide>
<ide> require 'test/unit' # must be after at_exit
<del>
<ide> require 'extend/ARGV' # needs to be after test/unit to avoid conflict with OptionsParser
<del>ARGV.extend(HomebrewArgvExtension)
<del>
<ide> require 'extend/ENV'
<add>ARGV.exte... | 1 |
Go | Go | add dynamic buffer sizing | 7ef34407509fa76e3ead12a20c8b731f434e1971 | <ide><path>pkg/tarsum/tarsum.go
<ide> import (
<ide> "github.com/docker/docker/pkg/log"
<ide> )
<ide>
<add>const (
<add> buf8K = 8 * 1024
<add> buf16K = 16 * 1024
<add> buf32K = 32 * 1024
<add>)
<add>
<ide> type TarSum struct {
<ide> io.Reader
<ide> tarR *tar.Reader
<ide> tarW *tar.Wri... | 1 |
PHP | PHP | support closures in sequences | 3c66f6cda2ac4ee2844a67fc98e676cb170ff4b1 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Sequence.php
<ide> public function __invoke()
<ide> $this->index = 0;
<ide> }
<ide>
<del> return tap($this->sequence[$this->index], function () {
<add> return tap(value($this->sequence[$this->index]), function () {
<ide> ... | 1 |
PHP | PHP | allow colon as first separator | dfff0dd133eff56b93dbc27f61f15fb4882fcfbc | <ide><path>src/Illuminate/View/Compilers/ComponentTagCompiler.php
<ide> protected function compileOpeningTags(string $value)
<ide> $pattern = "/
<ide> <
<ide> \s*
<del> x-([\w\-\:\.]*)
<add> x[-\:]([\w\-\:\.]*)
<ide> (?<attributes>
<ide> ... | 2 |
Python | Python | fix lxmert with dataparallel | 886ef35ce6216187a7eb3b9aaaaed072e8fa7fe3 | <ide><path>src/transformers/modeling_lxmert.py
<ide> def forward(
<ide> # positions we want to attend and -10000.0 for masked positions.
<ide> # Since we are adding it to the raw scores before the softmax, this is
<ide> # effectively the same as removing these entirely.
<del> extended_att... | 1 |
Javascript | Javascript | ensure correct attribute name in usage example | 31ebeeef7d1429dc1a4792f4678dd22c31d473b4 | <ide><path>src/ng/directive/form.js
<ide> function FormController(element, attrs) {
<ide> * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
<ide> * sub-group of controls needs to be determined.
<ide> *
<del> * @param {string=} name|ngForm Name of the form. If spe... | 1 |
Ruby | Ruby | fix regression in `brew deps` | aafae73cf980b59c34a7ec9c13a4ed6adc6180b3 | <ide><path>Library/Homebrew/cmd/deps.rb
<ide> def deps
<ide> puts_deps_tree ARGV.formulae
<ide> else
<ide> raise FormulaUnspecifiedError if ARGV.named.empty?
<del> all_deps = deps_for_formulae(ARGV.formulae, ARGV.one?)
<add> all_deps = deps_for_formulae(ARGV.formulae, !ARGV.one?)
<ide> a... | 1 |
Javascript | Javascript | simplify getstring method | a064db482a032e3c1539eca99611777ae24b00b8 | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> getString: function ( size ) {
<ide>
<del> var a = new Uint8Array( size );
<add> var a = new Uint8Array( this.getUint8Array( size ) );
<ide>
<del> for ( var i = 0; i < size; i ++ ) {
<add> // for ( var i = 0; i < size; i ++ ) {
<ide>
<del> a[ i ] ... | 1 |
Python | Python | drop alembic version_table in resetdb | d4c977b557daacfeecbb77addedab6e2d1d3cad0 | <ide><path>airflow/utils.py
<ide>
<ide> from alembic.config import Config
<ide> from alembic import command
<add>from alembic.migration import MigrationContext
<ide>
<ide> from contextlib import contextmanager
<ide>
<ide> def resetdb():
<ide>
<ide> logging.info("Dropping tables that exist")
<ide> models.Bas... | 1 |
Javascript | Javascript | add typed reactlink to reactprops | 3a49ee7d82f6b3481012e81bcd18506eea150641 | <ide><path>src/addons/link/ReactLink.js
<ide> * consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin.
<ide> */
<ide>
<add>var React = require('React');
<add>
<ide> /**
<ide> * @param {*} value current value of the link
<ide> * @param {function} requestChange callback to request a change
<ide>... | 2 |
Go | Go | remove errdefs dependency | a1afad3aabb6504a073bc44568fc40fcabc4f775 | <ide><path>api/server/router/network/network_routes.go
<ide> func (n *networkRouter) getNetworksList(ctx context.Context, w http.ResponseWrit
<ide> }
<ide>
<ide> if err := network.ValidateFilters(filter); err != nil {
<del> return err
<add> return errdefs.InvalidParameter(err)
<ide> }
<ide>
<ide> var list []typ... | 2 |
PHP | PHP | update docblock type | 09ed70308029817da9bcf6dd1e162485f6023dfb | <ide><path>src/Routing/RouteCollection.php
<ide> class RouteCollection
<ide> /**
<ide> * The routes connected to this collection.
<ide> *
<del> * @var array
<add> * @var array<string, array<\Cake\Routing\Route\Route>>
<ide> */
<ide> protected $_routeTable = [];
<ide>
<ide> public functio... | 1 |
Python | Python | improve example dag for ml engine | a001489b5928ebfc35f990a29d1c9c2ecb80bd61 | <ide><path>airflow/providers/google/cloud/example_dags/example_mlengine.py
<ide>
<ide> training >> create_version
<ide> training >> create_version_2
<del> create_model >> get_model >> get_model_result
<add> create_model >> get_model >> [get_model_result, delete_model]
<ide> create_model >> create_ver... | 1 |
Javascript | Javascript | eliminate var in function _memory | 024842f8f4f139a4af310976e7f78dff51f12654 | <ide><path>lib/repl.js
<ide> function _memory(cmd) {
<ide> let up = cmd.match(/[})]/g);
<ide> up = up ? up.length : 0;
<ide> dw = dw ? dw.length : 0;
<del> var depth = dw - up;
<add> let depth = dw - up;
<ide>
<ide> if (depth) {
<ide> (function workIt() {
<ide> function _memory(cmd) {
<ide>... | 1 |
Javascript | Javascript | remove remaining iifes from core | 518d2463af8cd73a6c21137728493ff98124f857 | <ide><path>src/Three.Legacy.js
<ide> Object.assign( Matrix4.prototype, {
<ide> },
<ide> getPosition: function () {
<ide>
<del> var v1;
<add> console.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' );
<add> return new Vector3().setFromMatrixColumn( this,... | 7 |
Javascript | Javascript | make normals and uvs optional | 0ed9bdc25b3b5474c3797ade3f444a506f3e0a99 | <ide><path>examples/js/loaders/SVGLoader.js
<ide> THREE.SVGLoader.pointsToStrokeWithBuffers = function () {
<ide> // This function can be called to update existing arrays or buffers.
<ide> // Accepts same parameters as pointsToStroke, plus the buffers and optional offset.
<ide> // Param vertexOffset: Offset verti... | 1 |
Python | Python | add ufunc argument parsing benchmarks | 2fa37890ccba346629e574ad1411928fb52cff43 | <ide><path>benchmarks/benchmarks/bench_ufunc.py
<ide> def time_add_scalar_conv(self):
<ide>
<ide> def time_add_scalar_conv_complex(self):
<ide> (self.y + self.z)
<add>
<add>
<add>class ArgParsing(Benchmark):
<add> # In order to benchmark the speed of argument parsing, all but the
<add> # out argument... | 1 |
Text | Text | clarify fs.utimes() arguments | 99ab686cd3684b965e40e85f96d089f8ef437fa1 | <ide><path>doc/api/fs.md
<ide> added: v0.1.31
<ide> Asynchronous realpath(3). The `callback` gets two arguments `(err,
<ide> resolvedPath)`. May use `process.cwd` to resolve relative paths.
<ide>
<del>Only paths that can be converted to UTF8 strings are supported.
<add>Only paths that can be converted to UTF8 strings... | 1 |
Ruby | Ruby | overwrite broken symlinks with --overwrite | ba93e6d3630c6007290567f160a9a16bc17253c5 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def make_relative_symlink src
<ide> raise <<-EOS.undent
<ide> Could not symlink file: #{src.expand_path}
<ide> Target #{self} already exists. You may need to delete it.
<del> To force the link and delete this file, do:
<ad... | 3 |
Javascript | Javascript | fix memory leak in ie | d72b8307de97a715c8916d571278b4bc35be23a6 | <ide><path>src/selector.js
<ide>
<ide> var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
<ide> done = 0,
<del> toString = Object.prototype.toString;
<add> toString = Object.prototype.toString,
<add> hasDuplicate = false;
<ide>
<ide> v... | 1 |
Javascript | Javascript | change didinit event to just init | 39d6bd88ae6ad0d465aec6dd6636ffd07d32a3c2 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> function makeCtor() {
<ide> m.proto = proto;
<ide> finishChains(this);
<ide> this.init.apply(this, arguments);
<del> sendEvent(this, "didInit");
<add> sendEvent(this, "init");
<ide> };
<ide>
<ide> Class.toString = Mixin.prototype.t... | 2 |
Ruby | Ruby | fix invalid range in comparison | 5ee797eb610205c232ab6d5f76c68bfc5834f6b9 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def uncached_version
<ide> case MacOS.llvm_build_version.to_i
<ide> when 1..2063 then "3.1.0"
<ide> when 2064..2065 then "3.1.4"
<del> when 2366..2325
<add> when 2066..2325
<ide> # we have no data for this range so we are ... | 1 |
Python | Python | add support for dynamic rnns in tensorflow. | 08014eea360fd8d66b7baab19cdb9335f52c167b | <ide><path>examples/imdb_lstm.py
<ide> '''Trains a LSTM on the IMDB sentiment classification task.
<del>
<ide> The dataset is actually too small for LSTM to be of any advantage
<ide> compared to simpler, much faster methods such as TF-IDF + LogReg.
<del>
<ide> Notes:
<ide>
<ide> - RNNs are tricky. Choice of batch size... | 5 |
Javascript | Javascript | remove extraneous binds from some fixtures | c31297b6d95b720d4e9f41985805001a31da30d2 | <ide><path>fixtures/src/components/fixtures/range-inputs/index.js
<ide> const RangeInputs = React.createClass({
<ide> <form>
<ide> <fieldset>
<ide> <legend>Controlled</legend>
<del> <input type="range" value={this.state.value} onChange={this.onChange.bind(this)} />
<add> <input... | 2 |
Ruby | Ruby | ignore empty version strings | 91ce799fe2c7432795a0f74e5ce84b6fd272d1f4 | <ide><path>Library/Homebrew/dev-cmd/bump-unversioned-casks.rb
<ide> def self.guess_cask_version(cask, installer)
<ide> def self.version_from_info_plist(info_plist_path)
<ide> plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", info_plist_path]).plist
<ide>
<del> short_version = plist["CFBu... | 1 |
Ruby | Ruby | fix message presentation | 567b5a96d6f7f95f36f1010986fb0e390ada6ffc | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_user_path_1
<ide> message = inject_file_list conflicts, <<~EOS
<ide> /usr/bin occurs before #{HOMEBREW_PREFIX}/bin
<ide> This means that system-provided programs will be used instead of those
<del> ... | 1 |
Ruby | Ruby | add formula#pkgshare path | 10495fb1fa29a4229d9f1edbc3ab5a90f84c3fd0 | <ide><path>Library/Homebrew/formula.rb
<ide> def sbin; prefix+'sbin' end
<ide> # `brew link` for formulae that are not keg-only.
<ide> def share; prefix+'share' end
<ide>
<add> # The directory where the formula's shared files should be installed,
<add> # with the name of the formula appended to avoid l... | 1 |
PHP | PHP | use table prefix in database sessions | 21cec23be8d22bd3ce608bb545d34edda02a0a89 | <ide><path>src/Illuminate/Session/SessionManager.php
<ide> protected function createNativeDriver()
<ide> */
<ide> protected function createDatabaseDriver()
<ide> {
<del> $pdo = $this->getDatabaseConnection()->getPdo();
<add> $connection = $this->getDatabaseConnection();
<ide>
<del> $table = $this->app['config']... | 1 |
Java | Java | fix textalign prop in fabric | 229fa32ab6c530d1d7fe8c8d4fe6930a8a8eab7d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java
<ide> public Object updateState(
<ide> textViewProps.getTopPadding(),
<ide> textViewProps.getEndPadding(),
<ide> textViewProps.getBottomPadding(),
<del> 0,
<add> textViewProps.getTextAlign... | 1 |
PHP | PHP | testaddinggeneratedcolumnwithcharset | e03d7156a74e00783213113da5f71634050d8c98 | <ide><path>tests/Database/DatabaseMySqlSchemaGrammarTest.php
<ide> public function testAddingGeneratedColumn()
<ide> $this->assertEquals('alter table `products` add `price` int not null, add `discounted_virtual` int as (price - 5), add `discounted_stored` int as (price - 5) stored', $statements[0]);
<ide> }... | 1 |
Ruby | Ruby | show linux formulae details and analytics | 727f9671c7a7ef0644b931fda17c1d4467cd4eb6 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def output_analytics(filter: nil)
<ide> end
<ide>
<ide> def output_formula_analytics(f)
<del> json = formulae_api_json("formula/#{f}.json")
<add> json = formulae_api_json("#{formula_path}/#{f}.json")
<ide> return if json.blank? || json["analytics"].blank?
<id... | 3 |
Javascript | Javascript | replace some flushexpired callsites | ca99ae97b485963249c81a933c08cb092d6ca14b | <ide><path>packages/react-reconciler/src/__tests__/ReactSuspense-test.internal.js
<ide> describe('ReactSuspense', () => {
<ide>
<ide> await LazyClass;
<ide>
<del> expect(Scheduler).toFlushExpired(['Hi', 'Did mount: Hi']);
<add> expect(Scheduler).toFlushUntilNextPaint(['Hi', 'Did mount: Hi']);
<ide> expe... | 5 |
Javascript | Javascript | fix some test failures | 86a52d030233944cdedc14bc1c5076c74826ea87 | <ide><path>src/core/core.scale.js
<ide> reverse: false,
<ide> show: true,
<ide> callback: function(value) {
<del> return value;
<add> return '' + value;
<ide> },
<ide> },
<ide> };
<ide><path>src/scales/scale.logarithmic.js
<ide>
<ide> // label settings
<ide> ticks: {
<del> template: "<%var r... | 2 |
Javascript | Javascript | fix dispatch config type for skipbubbling | b075f974229f5eee820e97e87c2c73056c12c0b7 | <ide><path>packages/react-native-renderer/src/ReactNativeTypes.js
<ide> export type ViewConfig = $ReadOnly<{
<ide> phasedRegistrationNames: $ReadOnly<{
<ide> captured: string,
<ide> bubbled: string,
<del> skipBubble?: ?boolean,
<add> skipBubbling?: ?boolean,
<ide> }>,
<ide> ... | 1 |
PHP | PHP | remove helper_tests constant | 90a6bcb9d50ade67a0cf3922d38ee39ba998a780 | <ide><path>lib/Cake/bootstrap.php
<ide> define('CAKE_TESTS', CAKE.'Test'.DS);
<ide> }
<ide>
<del>/**
<del> * Path to the helpers test directory.
<del> */
<del> define('HELPER_TESTS', TESTS.'Case'.DS.'View'.DS.'Helper'.DS);
<del>
<ide> /**
<ide> * Path to the models' test directory.
<ide> */ | 1 |
Javascript | Javascript | call `this.resume()` after `this.run()` | 6410534ec1062c8e3140bd3c2fc4f3d8a5bbdab7 | <ide><path>lib/_debugger.js
<ide> function Interface(stdin, stdout, args) {
<ide> // Run script automatically
<ide> this.pause();
<ide>
<del> setImmediate(() => { this.run(); });
<add> setImmediate(() => { this.run(() => this.resume()); });
<ide> }
<ide>
<ide>
<ide><path>test/parallel/test-debug-prompt.js
<add... | 2 |
Javascript | Javascript | remove 1 second delay from test | e98bcfa2cb3ea3442c785c9b95d4be0e4e02dcba | <ide><path>test/parallel/test-cluster-worker-wait-server-close.js
<ide> var assert = require('assert');
<ide> var cluster = require('cluster');
<ide> var net = require('net');
<ide>
<add>var serverClosed = false;
<add>
<ide> if (cluster.isWorker) {
<del> net.createServer(function(socket) {
<add> var server = net.cre... | 1 |
Javascript | Javascript | escape params that have <object> in their type | 2123772a653eeb969ef6f8c21d1daee878098fe1 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * - **headers** – `{function([headerName])}` – Header getter function.
<ide> * - **config** – `{Object}` – The configuration object that was used to generate the request.
<ide> *
<del> * @property {Array.<Object>} pendingRequests Ar... | 3 |
Javascript | Javascript | stabilize new dev test | 9b512a850cff7d4ff1329c3dcfff097c5c5f4e2b | <ide><path>test/integration/invalid-href/test/index.test.js
<ide> const showsError = async (
<ide>
<ide> const noError = async (pathname, click = false) => {
<ide> const browser = await webdriver(appPort, '/')
<add> await waitFor(2000)
<ide> await browser.eval(`(function() {
<ide> window.caughtErrors = []
<id... | 1 |
Python | Python | fix e714 flake8 warning (x8) | fd2f17a7a1197529474c24551f1f1d8f534168a3 | <ide><path>examples/summarization/modeling_bertabs.py
<ide> def unshape(x):
<ide>
<ide> attn = self.softmax(scores)
<ide>
<del> if not predefined_graph_1 is None:
<add> if predefined_graph_1 is not None:
<ide> attn_masked = attn[:, -1] * predefined_graph_1
<ide> attn_mask... | 8 |
Javascript | Javascript | fix lint errors | 8c59866b6954bc8333588b93ad2f9ee8be0439d2 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/DeprecatedAssetMap.js
<ide> class DeprecatedAssetMap {
<ide> fileWatcher,
<ide> ignoreFilePath,
<ide> helpers,
<del> activity
<add> activity,
<ide> }) {
<ide> if (roots == null || roots.length === 0) {
<ide> this._di... | 9 |
PHP | PHP | allow callable array syntax in route definition | d9d3c52d4ff380d901cca0c4d748bfed6e8ae9fe | <ide><path>src/Illuminate/Routing/RouteAction.php
<ide> public static function parse($uri, $action)
<ide> // as the "uses" property, because there is nothing else we need to do when
<ide> // it is available. Otherwise we will need to find it in the action list.
<ide> if (is_callable($action)) {
... | 2 |
Java | Java | add a unit test for debounce's backpressure issue | 8b6035208b8995a8d246b8bc743b9e86a70d88cd | <ide><path>src/test/java/rx/internal/operators/OperatorDebounceTest.java
<ide> import static org.mockito.Mockito.times;
<ide> import static org.mockito.Mockito.verify;
<ide>
<add>import java.util.Arrays;
<ide> import java.util.concurrent.TimeUnit;
<ide>
<ide> import org.junit.Before;
<ide> import rx.exceptions.TestEx... | 1 |
Javascript | Javascript | fix eslint crash on empty react effect hook | e8eff119e036485b74b2acb6f57045390703f6fb | <ide><path>packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
<ide> const tests = {
<ide> },
<ide> ],
<ide> },
<add> {
<add> code: normalizeIndent`
<add> function MyComponent() {
<add> useEffect()
<add> useLayoutEffect()
<add> useCal... | 2 |
Javascript | Javascript | remove animated prop | 1e9db7bd6df3055b9b81d23f15a54bb250621a41 | <ide><path>Libraries/Modal/Modal.js
<ide> export type Props = $ReadOnly<{|
<ide> */
<ide> onDismiss?: ?() => mixed,
<ide>
<del> /**
<del> * Deprecated. Use the `animationType` prop instead.
<del> */
<del> animated?: ?boolean,
<del>
<ide> /**
<ide> * The `supportedOrientations` prop allows the modal to ... | 1 |
PHP | PHP | handle `0.ctp` template name | a11a1032a455bfb5e0b4adcf0851afe460b5ded7 | <ide><path>src/Mailer/Mailer.php
<ide> public function send($action, $args = [], $headers = [])
<ide>
<ide> call_user_func_array([$this, $action], $args);
<ide>
<del> if (empty($this->template)) {
<add> if ($this->template === null) {
<ide> $this->template = $action;
<ide> }
... | 1 |
Go | Go | add option to enable networkdb debug | a97e45794ea8318a08daf763a5b63b04184a886b | <ide><path>cmd/dockerd/config.go
<ide> func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) {
<ide> flags.IntVar(&maxConcurrentDownloads, "max-concurrent-downloads", config.DefaultMaxConcurrentDownloads, "Set the max concurrent downloads for each pull")
<ide> flags.IntVar(&maxConcurrentUploads, "m... | 4 |
Mixed | Javascript | add resetcalls to mockfunctioncontext | 01b7ac60512fe6948dea108a03f06a951bdc02fa | <ide><path>doc/api/test.md
<ide> test('changes a mock behavior once', (t) => {
<ide> });
<ide> ```
<ide>
<add>### `ctx.resetCalls()`
<add>
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>Resets the call history of the mock function.
<add>
<ide> ### `ctx.restore()`
<ide>
<ide> <!-- YAML
<ide><path>lib/interna... | 3 |
Javascript | Javascript | add react production aliases | 87773b98dc08391d023898aea6413d922e80c89b | <ide><path>server/build/webpack.js
<ide> export default async function createCompiler (dir, { dev = false, quiet = false,
<ide> performance: { hints: false }
<ide> }
<ide>
<add> if (!dev) {
<add> webpackConfig.resolve.alias = {
<add> 'react': require.resolve('react/dist/react.min.js'),
<add> 'react... | 1 |
Go | Go | fix a longstanding todo | 61dad306b12f4d48d3643d9331c059b9cdef731c | <ide><path>daemon/oci_windows.go
<ide> func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) {
<ide> return nil, err
<ide> }
<ide>
<del> // TODO Windows - this can be removed. Not used (UID/GID)
<del> rootUID, rootGID := daemon.GetRemappedUIDGID()
<del> if err := c.SetupWorkingDirectory(root... | 1 |
Ruby | Ruby | check core tap is installed | 25e61f65dbd57836cd6a42af7c941b2a91c406df | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> args = update_report_args.parse
<ide>
<ide> # Run `brew update` (again) if we've got a linuxbrew-core CoreTap
<del> if CoreTap.instance.linuxbrew_core? && ENV["HOMEBREW_LINUXBREW_CORE_MIGRATION"].blank?
<add> if CoreTap.instan... | 1 |
Javascript | Javascript | add picture on github signin/up | 83397b7e1b302ceaadd1e9f22a6673000d3e7439 | <ide><path>common/models/User-Identity.js
<ide> function setProfileFromGithub(
<ide> username
<ide> },
<ide> {
<del> location,
<del> email: githubEmail,
<ide> id: githubId,
<add> 'avatar_url': picture,
<add> email: githubEmail,
<ide> 'created_at': joinedGithubOn,
<ide> blog: website,
<ad... | 2 |
Python | Python | add druidoperator template_fields_renderers fields | 5cd8085d27fc214465259161b802c244a0dce4bf | <ide><path>airflow/providers/apache/druid/operators/druid.py
<ide> class DruidOperator(BaseOperator):
<ide>
<ide> template_fields = ('json_index_file',)
<ide> template_ext = ('.json',)
<add> template_fields_renderers = {'json_index_file': 'json'}
<ide>
<ide> def __init__(
<ide> self, | 1 |
Python | Python | update standard name | a003256bdc63c13db6840058b3566c0b3bf90f9c | <ide><path>keras/utils/timeseries_dataset.py
<ide> def timeseries_dataset_from_array(
<ide> ```python
<ide> input_data = data[:-10]
<ide> targets = data[10:]
<del> dataset = tf.keras.preprocessing.timeseries_dataset_from_array(
<add> dataset = tf.keras.utils.timeseries_dataset_from_array(
<ide> ... | 1 |
Text | Text | put information about the past in details tags | 60646cade747d4b4a0ebbb8ef98d86eb95fdd379 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> * [Trott](https://github.com/Trott) -
<ide> **Rich Trott** <rtrott@gmail.com> (he/him)
<ide>
<add><details>
<add>
<add><summary>Emeriti</summary>
<add>
<ide> ### TSC emeriti
<ide>
<ide> * [addaleax](https://github.... | 1 |
Text | Text | improve text input docs | 76f8f4261509bfe37b46cf576269b260c4d14e1a | <ide><path>docs/HandlingTextInput.md
<ide> next: using-a-scrollview
<ide> ---
<ide>
<ide> [`TextInput`](/react-native/docs/textinput.html#content) is a basic component that allows the user to enter text. It has an `onChangeText` prop that takes
<del>a function to be called every time the text changed.
<add>a function ... | 1 |
Text | Text | remove unmaintained gem from readme [ci skip] | 32bb46899d7a0a8827cb43fe0382cd14a2d841c3 | <ide><path>activejob/README.md
<ide> their gem, or as a stand-alone gem. For discussion about this see the
<ide> following PRs: [23311](https://github.com/rails/rails/issues/23311#issuecomment-176275718),
<ide> [21406](https://github.com/rails/rails/pull/21406#issuecomment-138813484), and [#32285](https://github.com/ra... | 1 |
PHP | PHP | fix delete queries with alias on sqlite | 5369bec0dd94eb8f0b4cbff4da98c0dae4c74729 | <ide><path>src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
<ide> public function prepareBindingsForUpdate(array $bindings, array $values)
<ide> public function compileDelete(Builder $query)
<ide> {
<ide> if (isset($query->joins) || isset($query->limit)) {
<del> $selectSql = parent::c... | 2 |
Go | Go | fix typo in log-message | 5c3418e38b9603e8ff582d53c2face57f0f01cce | <ide><path>libcontainerd/remote_daemon.go
<ide> func (r *remote) monitorConnection(client *containerd.Client) {
<ide>
<ide> select {
<ide> case <-r.shutdownContext.Done():
<del> r.logger.Info("stopping healtcheck following graceful shutdown")
<add> r.logger.Info("stopping healthcheck following graceful shutdow... | 1 |
Text | Text | change incorrect link on contribute page | b8667061a100c904f57ff7dcf242c0f8db61c31f | <ide><path>docs/index.md
<ide> You can help expand and improve the curriculum. You can also update project user
<ide>
<ide> We are localizing freeCodeCamp.org to major world languages.
<ide>
<del>Certifications are already live in some major world languages like [Chinese (中文)](https://chinese.freecodecamp.org/learn),... | 1 |
Text | Text | remove duplicate code block | 0d483049f0296a5ec1f40d729afa9af98823bb1a | <ide><path>docs/devops.md
<ide> Provisioning VMs with the Code
<ide> cd client
<ide> ```
<ide>
<del> ```console
<del> git clone https://github.com/freeCodeCamp/client-config.git client
<del> cd client
<del> ```
<del>
<ide> Start placeholder instances for the web client, these will be updated with
<ide... | 1 |
Text | Text | move changelog to the top [ci skip] | 877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix associations with `:inverse_of` option when building association
<add> with a block. Inside the block the parent object was different then
<add> after the block.
<add>
<add> Example:
<add>
<add> parent.associat... | 1 |
Python | Python | use np.ndim not asarray, to allow duck-types | 24508c1220a608df116db9035df30418bfc74a9b | <ide><path>numpy/lib/function_base.py
<ide> def gradient(f, *varargs, **kwargs):
<ide> S0025-5718-1988-0935077-0/S0025-5718-1988-0935077-0.pdf>`_.
<ide> """
<ide> f = np.asanyarray(f)
<del> varargs = [asanyarray(d) for d in varargs]
<ide> N = f.ndim # number of dimensions
<ide>
<ide> ax... | 1 |
Go | Go | add todo for config reload logic | c46e2e85ee54d9c0b3addeec0a8058a247adeb6b | <ide><path>daemon/config/config.go
<ide> func Reload(configFile string, flags *pflag.FlagSet, reload func(*Config)) error
<ide> }
<ide> newConfig.Labels = newLabels
<ide>
<add> // TODO(thaJeztah) This logic is problematic and needs a rewrite;
<add> // This is validating newConfig before the "reload()" callback is ex... | 1 |
Text | Text | add contributing guide | 5f548627b319694f80ff9cbe4045633ccdd427ae | <ide><path>docs/index.md
<ide> * [Creating a Package](creating-a-package.md)
<ide> * [Creating a Theme](creating-a-theme.md)
<ide> * [Publishing a Package](publishing-a-package.md)
<add>* [Contributing](contributing.md)
<ide>
<ide> ### Advanced Topics
<ide> | 1 |
Javascript | Javascript | test absolute span | f0b3212aad1f029393d99bb917556994a865fdb0 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> var initialValue = curve.values[ i - 1 ];
<ide> var valuesSpan = curve.values[ i ] - initialValue;
<ide>
<del> if ( valuesSpan >= 180 ) {
<add> var absoluteSpan = Math.abs( valuesSpan );
<ide>
<del> var numSubIntervals = Math.abs( valuesSpan / 180 );
<add... | 1 |
Python | Python | maintain subclass info for `np.kron` | 730f3154f48e33f22b2ea8814eb10a45aa273e17 | <ide><path>numpy/lib/shape_base.py
<ide> def kron(a, b):
<ide> bs = (1,)*max(0, nda-ndb) + bs
<ide>
<ide> # Compute the product
<del> a_arr = _nx.asarray(a).reshape(a.size, 1)
<del> b_arr = _nx.asarray(b).reshape(1, b.size)
<del> result = a_arr * b_arr
<add> a_arr = a.reshape(a.size, 1)
<add> b_... | 1 |
Python | Python | fix browser mode with python3 | 2dc3de8956411f8076e6356e345bf88aa31c6003 | <ide><path>glances/outputs/glances_curses.py
<ide> def __init__(self, args=None):
<ide> 'OFFLINE': self.ifCRITICAL_color2,
<ide> 'PROTECTED': self.ifWARNING_color2,
<ide> }
<del> self.colors_list = dict(self.colors_list.items() + _colors_list.items())
<add> self.colors_list... | 1 |
Javascript | Javascript | fix typo in reactnativetypes | 053b8f6c9377fdef294d11088ff5d7ed2c311a2f | <ide><path>Libraries/Renderer/shims/ReactNativeTypes.js
<ide> export type ReactNativeEventTarget = {
<ide> ...
<ide> };
<ide>
<del>export type ReactFaricEventTouch = {
<add>export type ReactFabricEventTouch = {
<ide> identifier: number,
<ide> locationX: number,
<ide> locationY: number,
<ide> export type ReactF... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.