content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
PHP
PHP
allow broadcast on demand notifications
d2b14466c27a3d62219256cea27088e6ecd9d32f
<ide><path>src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php <ide> use Illuminate\Broadcasting\PrivateChannel; <ide> use Illuminate\Bus\Queueable; <ide> use Illuminate\Contracts\Broadcasting\ShouldBroadcast; <add>use Illuminate\Notifications\AnonymousNotifiable; <ide> use Illuminate\Queue\SerializesM...
1
Javascript
Javascript
explain all 3 ways how to use ngclass
21dac2a3daae528471d5e767072b10e1491f2106
<ide><path>src/ng/directive/ngClass.js <ide> function classDirective(name, selector) { <ide> * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding <ide> * an expression that represents all classes to be added. <ide> * <add> * The directive operates in three different w...
1
Python
Python
fix override func style and regular usage
cad1b082602ce1367cae6a3a3668a64436fb4bde
<ide><path>rest_framework/relations.py <ide> class Hyperlink(str): <ide> in some contexts, or render as a plain URL in others. <ide> """ <ide> def __new__(cls, url, obj): <del> ret = str.__new__(cls, url) <add> ret = super().__new__(cls, url) <ide> ret.obj = obj <ide> return re...
1
Ruby
Ruby
use dir.mktmpdir in doctor
75642e6271205d8c3ac9436e67cb4d6ffc0f32de
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_multiple_volumes <ide> # Find the volumes for the TMP folder & HOMEBREW_CELLAR <ide> real_cellar = HOMEBREW_CELLAR.realpath <ide> <del> tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXXXX` }.strip <add> tmp = ...
1
Javascript
Javascript
fix saveasset scales filtering
b6e0f4a12d817af6968cd1461e4f92f1bf996544
<ide><path>local-cli/bundle/saveAssets.js <ide> function saveAssets( <ide> <ide> const filesToCopy = Object.create(null); // Map src -> dest <ide> assets <del> .forEach(asset => <del> filterPlatformAssetScales(platform, asset.scales).forEach((scale, idx) => { <add> .forEach(asset => { <add> const v...
1
Python
Python
acquire lock on db for the time of migration
5d96eb0e00b831daf398f14919cbd7dadc95d254
<ide><path>airflow/migrations/env.py <ide> def run_migrations_online(): <ide> ) <ide> <ide> with context.begin_transaction(): <add> if connection.dialect.name == 'mysql' and connection.dialect.server_version_info >= (5, 6): <add> connection.execute("select GET_LOCK('alembic',1...
1
Python
Python
deduplicate euclidean_length method in vector
a64c9f1e7cc9616c54296ca3983123e15ec486f1
<ide><path>linear_algebra/src/lib.py <ide> class Vector: <ide> component(i): gets the i-th component (0-indexed) <ide> change_component(pos: int, value: float): changes specified component <ide> euclidean_length(): returns the euclidean length of the vector <del> magnitude(): returns the ...
2
Text
Text
add missing deprecation number
37321a9e11f2198d03a525cddca20827636b786c
<ide><path>doc/api/deprecations.md <ide> Type: Runtime <ide> Passing a callback to [`worker.terminate()`][] is deprecated. Use the returned <ide> `Promise` instead, or a listener to the worker’s `'exit'` event. <ide> <del><a id="DEP0XXX"></a> <del>### DEP0XXX: http connection <add><a id="DEP0133"></a> <add>### DEP0133...
1
Python
Python
add __version__ to __init__.py
0d7d50fe22d0b574f64e9d534b36cd7d30d10caa
<ide><path>spacy/__init__.py <ide> from .cli.info import info as cli_info <ide> from .glossary import explain <ide> from .deprecated import resolve_load_name <add>from .about import __version__ <ide> from . import util <ide> <del> <ide> def load(name, **overrides): <ide> name = resolve_load_name(name, **overrides)...
1
Ruby
Ruby
fix bugs when running with use_codegen_discovery
bfb8f63c18c12204b20ba6a3d64a7e551ebcead1
<ide><path>scripts/react_native_pods.rb <ide> def get_react_codegen_spec(options={}) <ide> end <ide> <ide> def get_codegen_config_from_file(config_path, config_key) <del> empty = {'libraries': []} <add> empty = {'libraries' => []} <ide> if !File.exist?(config_path) <ide> return empty <ide> end <ide> def get_...
1
Go
Go
use router.cancellable for pull and push
c6ad1980a2eb2994940bdf7f79835ffdbed2b44d
<ide><path>api/server/router/image/image.go <ide> func (r *imageRouter) initRoutes() { <ide> router.NewGetRoute("/images/{name:.*}/json", r.getImagesByName), <ide> // POST <ide> router.NewPostRoute("/commit", r.postCommit), <del> router.NewPostRoute("/images/create", r.postImagesCreate), <ide> router.NewPostRo...
1
Text
Text
fix english grammar in computer vision
3aef85bceca826fb8151ecb553a2e4d272c77953
<ide><path>computer_vision/README.md <ide> Computer vision is a field of computer science that works on enabling computers to see, <ide> identify and process images in the same way that human vision does, and then provide appropriate output. <ide> It is like imparting human intelligence and instincts to a computer. <de...
1
Ruby
Ruby
fix m2 detection
449b872916c29a7b9d4155b176f7aca85b8c2c84
<ide><path>Library/Homebrew/extend/os/mac/hardware/cpu.rb <ide> def sysctl_bool(key) <ide> end <ide> <ide> def sysctl_int(key) <del> sysctl_n(key).to_i <add> if (x = sysctl_n(key).to_i) >= 0 <add> x <add> else <add> x & 0xffffffff <add> end <ide> end <ide...
1
PHP
PHP
apply fixes from styleci
cfc3433880a6cea6bcb93251e63ff101979456c3
<ide><path>src/Illuminate/Queue/Events/WorkerStopping.php <ide> <ide> namespace Illuminate\Queue\Events; <ide> <del>use Illuminate\Queue\WorkerOptions; <del> <ide> class WorkerStopping <ide> { <ide> /**
1
Java
Java
add stomp broker relay to configure "host" header
7c3749769a8d136eee5e3b01e156b9a5eac3ec49
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> <ide> <ide> /** <del> * A {@link MessageHandler} that handles messages by forwarding them to a STOMP broker and <del> * reversely sends any returned messages from the broker to the provided <de...
2
Javascript
Javascript
fix flaky cluster test on windows 10
25f8a0d2dc7be14dcdd28c69ed542c8d699a65ce
<ide><path>test/parallel/test-cluster-shared-leak.js <ide> if (cluster.isMaster) { <ide> worker2 = cluster.fork(); <ide> worker2.on('online', function() { <ide> conn = net.connect(common.PORT, common.mustCall(function() { <del> worker1.send('die'); <del> worker2.send('die'); <add> wor...
1
Javascript
Javascript
add /external/update-my-current-challenge endpoint
8380c8a1811e87c7748ce0e5ccb05a1e0bca3f1b
<ide><path>server/boot/settings.js <ide> export default function settingsController(app) { <ide> createValidatorErrorHandler(alertTypes.danger), <ide> updateMyCurrentChallenge <ide> ); <add> api.post( <add> '/external/update-my-current-challenge', <add> ifNoUser401, <add> updateMyCurrentChallengeVal...
1
Javascript
Javascript
fix auto transparency
0d1e85694731632281bdc351ae33d4d2b55c89ac
<ide><path>examples/js/nodes/NodeMaterial.js <ide> THREE.NodeMaterial.prototype.build = function() { <ide> } <ide> <ide> this.lights = this.requestAttribs.light; <del> this.transparent = this.requestAttribs.transparent || this.blendMode > THREE.NormalBlending; <add> this.transparent = this.requestAttribs.transparent...
1
Python
Python
add setup back
cca97db0e2cda358dd52d1f6b3a7822c1b8a4374
<ide><path>research/setup.py <add>"""Setup script for object_detection.""" <add> <add>from setuptools import find_packages <add>from setuptools import setup <add> <add> <add>REQUIRED_PACKAGES = ['Pillow>=1.0', 'Matplotlib>=2.1', 'Cython>=0.28.1'] <add> <add>setup( <add> name='object_detection', <add> version='0.1...
1
Javascript
Javascript
remove unused uncaughtexception handler
573ec5b0229da2fb6263987f1456595b7bac8b09
<ide><path>test/pseudo-tty/test-tty-stdout-end.js <ide> 'use strict'; <del>const common = require('../common'); <del> <del>process.on('uncaughtException', common.expectsError({ <del> code: 'ERR_STDOUT_CLOSE', <del> type: Error, <del> message: 'process.stdout cannot be closed' <del>})); <add>require('../common'); <id...
1
Javascript
Javascript
covert the `objectloader` to a "normal" class
6a935682fd6f81795e5fa8d855d5bde49d8ccb5c
<ide><path>src/core/object_loader.js <ide> import { Dict, isStream, Ref, RefSet } from "./primitives.js"; <ide> import { MissingDataException } from "./core_utils.js"; <ide> import { warn } from "../shared/util.js"; <ide> <add>function mayHaveChildren(value) { <add> return ( <add> value instanceof Ref || <add> ...
1
Text
Text
add support details for storage driver
feab8b179e20833dd0a65e58934cf24938da6d84
<ide><path>docs/userguide/storagedriver/selectadriver.md <ide> For example, the `btrfs` storage driver on a Btrfs backing filesystem. The <ide> following table lists each storage driver and whether it must match the host's <ide> backing file system: <ide> <del> |Storage driver |Must match backing filesystem | <del>...
1
Ruby
Ruby
fix index method for ruby 1.8
ea167399a293ac0a14d09150e0479ae849f9b2b8
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit <ide> class FormulaText <ide> def initialize path <ide> @text = path.open("rb", &:read) <del> @lines = @text.lines <add> @lines = @text.lines.to_a <ide> end <ide> <ide> def without_patch
1
Ruby
Ruby
raise errors when index creation fails
55d0d57bfc72c0bdbc81ae5d95c99729f16899af
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def add_index(table_name, column_name, options = {}) <ide> end <ide> <ide> if index_name.length > index_name_length <del> @logger.warn("Index name '#{index_name}' on table '#{table_name}' is too l...
1
Mixed
Javascript
change default autoskippadding to 3
a026b6065324fe8967de7789b091996a30557ed6
<ide><path>docs/docs/axes/cartesian/_common_ticks.md <ide> Namespace: `options.scales[scaleId].ticks` <ide> | `crossAlign` | `string` | `'near'` | The tick alignment perpendicular to the axis. Can be `'near'`, `'center'`, or `'far'`. See [Tick Alignment](./index#tick-alignment) <ide> | `sampleSize` | `number` | `ticks....
3
Javascript
Javascript
add react map
6c276338267434406efc812cffb31160b2b964c5
<ide><path>index.js <ide> Observable.combineLatest( <ide> var isComingSoon = !!challengeSpec.isComingSoon; <ide> var fileName = challengeSpec.fileName; <ide> var helpRoom = challengeSpec.helpRoom || 'Help'; <add> var time = challengeSpec.time || 'N/A'; <ide> <ide> console.log('parsed %s successfully...
1
PHP
PHP
fix consoleoutput styles() api
20952468597f99746bd39fbdac14df60a75d20fa
<ide><path>src/Console/ConsoleIo.php <ide> public function setOutputAs(int $mode): void <ide> } <ide> <ide> /** <add> * Gets defined styles. <add> * <ide> * @return array <ide> * @see \Cake\Console\ConsoleOutput::styles() <ide> */ <ide> public function styles(): array <ide> } <ide> ...
2
Javascript
Javascript
replace common.fixtiresdir with fixtures.readkey()
fa8aee8c598aa3dcc0cc35a11231502d31af5b38
<ide><path>test/parallel/test-tls-js-stream.js <ide> 'use strict'; <ide> const common = require('../common'); <add> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <add> <ide> const assert = require('assert'); <del>const tls = require('tls'...
1
PHP
PHP
fix failing test
81208d1fa71f10865a7742d5d3bf46badb298f13
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> class HelperTest extends CakeTestCase { <ide> * @return void <ide> */ <ide> public function setUp() { <add> parent::setUp(); <add> <ide> ClassRegistry::flush(); <ide> Router::reload(); <ide> $null = null; <ide> public function setUp() { <ide> * @return ...
1
Go
Go
fix fd leak on attach
0f5147701775a6c5d4980a7b7c0ed2e830688034
<ide><path>container/stream/attach.go <ide> package stream // import "github.com/docker/docker/container/stream" <ide> import ( <ide> "context" <ide> "io" <del> "sync" <ide> <ide> "github.com/docker/docker/pkg/pools" <ide> "github.com/docker/docker/pkg/term" <add> "github.com/pkg/errors" <ide> "github.com/sirupse...
2
Ruby
Ruby
use `def before_setup` instead of `setup do`
76836ef7db8d0b1e40492c9a62f7c637718d813d
<ide><path>railties/lib/rails/test_help.rb <ide> def create_fixtures(*fixture_set_names, &block) <ide> end <ide> <ide> class ActionController::TestCase <del> setup do <add> def before_setup <ide> @routes = Rails.application.routes <add> super <ide> end <ide> end <ide> <ide> class ActionDispatch::Integratio...
1
Ruby
Ruby
avoid unnecessary downloads in `audit`
e5d656bcce8b68bb11d4bd7a6f2160e6b7ba2bc7
<ide><path>Library/Homebrew/utils/curl.rb <ide> def url_protected_by_incapsula?(details) <ide> def curl_check_http_content(url, user_agents: [:default], check_content: false, strict: false) <ide> return unless url.start_with? "http" <ide> <add> secure_url = url.sub(/\Ahttp:/, "https:") <add> secure...
1
Ruby
Ruby
use assignment instead of call
6720efb8e33bb45d502cafc4d84da1ff9a5b5eeb
<ide><path>activerecord/lib/active_record/observer.rb <ide> module ClassMethods <ide> # # Same as above, just using explicit class references <ide> # ActiveRecord::Base.observers = Cacher, GarbageCollector <ide> def observers=(*observers) <del> observers = [ observers ].flatten.collect do |...
1
Ruby
Ruby
add test for hash visitor
12ff6e13498a1990af58d5bff30dbf44095348e6
<ide><path>spec/arel/visitors/to_sql_spec.rb <ide> module Visitors <ide> @visitor.accept 2.14 <ide> end <ide> <add> it "should visit_Hash" do <add> @visitor.accept({:a => 1}) <add> end <add> <ide> it "should visit_BigDecimal" do <ide> @visitor.accept BigDecimal.new('2.14') ...
1
Python
Python
accept doc input in pipelines
2f0bb7792081f9f0ab8caddaddf305244d7775d5
<ide><path>spacy/errors.py <ide> class Errors: <ide> E202 = ("Unsupported alignment mode '{mode}'. Supported modes: {modes}.") <ide> <ide> # New errors added in v3.x <add> E866 = ("Expected a string or 'Doc' as input, but got: {type}.") <ide> E867 = ("The 'textcat' component requires at least two labels...
3
Go
Go
remove outdated "experimental" annotation
90f19fc375562eeb8c8db9a453559dbcfe353cb6
<ide><path>cmd/dockerd/config_unix.go <ide> func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) error { <ide> flags.Var(&conf.NetworkConfig.DefaultAddressPools, "default-address-pool", "Default address pools for node specific local networks") <ide> // rootless needs to be explicitly specified for runni...
1
Go
Go
fix timeout issue of `inspectnetwork` on aarch64
8f5c1841a8bffb4a7e33f51174177b7ad0182969
<ide><path>integration/network/inspect_test.go <ide> func TestInspectNetwork(t *testing.T) { <ide> require.NoError(t, err) <ide> <ide> pollSettings := func(config *poll.Settings) { <del> if runtime.GOARCH == "arm" { <add> if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" { <ide> config.Timeout = 30 * time...
1
PHP
PHP
fix failing code in paginatorcomponent
20e9fd2c9729df350a516bc5995877707b01e173
<ide><path>Cake/Controller/Component/PaginatorComponent.php <ide> public function paginate($object, array $settings = []) { <ide> $parameters = compact('conditions', 'fields', 'order', 'limit', 'page'); <ide> $query = $object->find($type, array_merge($parameters, $extra)); <ide> <del> $results = $query->execute()...
2
Ruby
Ruby
make debug an installer mode
ce5e2aa65ccd8ef129fb879d8bdcdacf78122c0b
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install_formula f <ide> fi.interactive &&= :git if ARGV.flag? "--git" <ide> fi.verbose = ARGV.verbose? <ide> fi.verbose &&= :quieter if ARGV.quieter? <add> fi.debug = ARGV.debug? <ide> fi.prelude <ide> fi.install <ide> fi.caveats <ide><path...
5
PHP
PHP
apply fixes from styleci
64f11a3412d37b00f2bdbc2d3dda1d35cb9fccb5
<ide><path>src/Illuminate/Validation/Rules/In.php <ide> class In <ide> { <ide> /** <ide> * The name of the rule. <del> * <add> * <ide> * @var string <ide> */ <ide> protected $rule = 'in';
1
Go
Go
fix flakey logssincefuturefollow
acaef7caaf6078719d8e838efad0fb1b7ce153d8
<ide><path>integration-cli/docker_cli_logs_test.go <ide> func (s *DockerSuite) TestLogsSince(c *check.C) { <ide> } <ide> <ide> func (s *DockerSuite) TestLogsSinceFutureFollow(c *check.C) { <add> // TODO Windows TP5 - Figure out why this test is so flakey. Disabled for now. <add> testRequires(c, DaemonIsLinux) <ide> n...
1
PHP
PHP
fix bus fake
e72027960fd4d8ff281938edb4632e13e391b8fd
<ide><path>src/Illuminate/Support/Testing/Fakes/BusFake.php <ide> public function assertChained(array $expectedChain) <ide> if ($command instanceof Closure) { <ide> [$command, $callback] = [$this->firstClosureParameterType($command), $command]; <ide> } elseif (! is_string($command)) { <del> ...
1
Text
Text
add attribute selector to the list of selectors
a78b7b4ac2ff54998137abc7eb13c8008cd9cd55
<ide><path>guide/english/jquery/jquery-selectors/index.md <ide> As with the class selector, this can also be used in combination with a tag name <ide> $("h1#headline").css("font-size", "2em"); <ide> ``` <ide> <add>### Selecting by attribute value <add>If you want to select elements with a certain attribute, use ([attr...
1
Java
Java
fix typos in responseentity javadoc
6bc7e12bcd317cabdc5ec818976da6d98cddeacc
<ide><path>spring-web/src/main/java/org/springframework/http/ResponseEntity.java <ide> <ide> /** <ide> * Extension of {@link HttpEntity} that adds a {@link HttpStatus} status code. <del> * Used in {@code RestTemplate} as well {@code @Controller} methods. <add> * Used in {@code RestTemplate} as well as {@code @Control...
1
Ruby
Ruby
remove outdated docs
c9317a2325d3592673daa72e2c52109fdf1d90b1
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> module Base <ide> # <ide> # For options, see +match+, as +root+ uses it internally. <ide> # <del> # You can also pass a string which will expand <del> # <del> # root 'pages#main' <del> # <ide> ...
1
Ruby
Ruby
use our own popen implementation in formula.system
22afc5e1c7c1d2141232f85eeb1436061ddfd835
<ide><path>Library/Homebrew/formula.rb <ide> def deps <ide> # Pretty titles the command and buffers stdout/stderr <ide> # Throws if there's an error <ide> def system cmd, *args <del> full="#{cmd} #{args*' '}".strip <del> ohai full <add> ohai "#{cmd} #{args*' '}".strip <add> <ide> if ARGV.verbose? <id...
3
Javascript
Javascript
fix filename to relativefilename in parseimage()
37ab2c2420f40d233756e4249a4fdf66b44c2258
<ide><path>examples/js/loaders/FBXLoader.js <ide> <ide> var id = parseInt( nodeID ); <ide> <del> images[ id ] = videoNode.Filename; <add> images[ id ] = videoNode.RelativeFilename || videoNode.Filename; <ide> <ide> // raw image data is in videoNode.Content <ide> if ( 'Content' in videoNode ) {
1
Python
Python
use six.text_type instead of str everywhere
381771731f48c75e7d5951e353049cceec386512
<ide><path>rest_framework/compat.py <ide> <ide> # flake8: noqa <ide> from __future__ import unicode_literals <del>import django <del>import inspect <add> <ide> from django.core.exceptions import ImproperlyConfigured <ide> from django.conf import settings <ide> from django.utils import six <add>import django <add>impor...
8
Javascript
Javascript
add innerviewref prop to scrollview
10254a900a2332fc87063d9287da2403abbdf5c3
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const invariant = require('invariant'); <ide> const processDecelerationRate = require('./processDecelerationRate'); <ide> const resolveAssetSource = require('../../Image/resolveAssetSource'); <ide> const splitLayoutProps = require('../../StyleSheet/splitLay...
1
Javascript
Javascript
fix listener cleanup on unmount
9965b6b9dda2716e3618e4cb1acbf83ce29e3c2f
<ide><path>src/core/ReactNativeComponent.js <ide> ReactNativeComponent.Mixin = { <ide> * @internal <ide> */ <ide> unmountComponent: function() { <add> ReactEvent.deleteAllListeners(this._rootNodeID); <ide> ReactComponent.Mixin.unmountComponent.call(this); <ide> this.unmountMultiChild(); <del> Reac...
2
PHP
PHP
use getkey
1e1b4c5b0681141f0219dbf938d117d7239acd88
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function setKeysForSaveQuery(Builder $query) <ide> protected function getKeyForSaveQuery() <ide> { <ide> return $this->original[$this->getKeyName()] <del> ?? $this->getAttribute($this->getKeyName()); <add> ...
1
Text
Text
introduce categories to cpp style guide
fff4272fa7ce5044a800195be7c40664f9aa04ec
<ide><path>CPP_STYLE_GUIDE.md <ide> <ide> ## Table of Contents <ide> <del>* [Left-leaning (C++ style) asterisks for pointer declarations](#left-leaning-c-style-asterisks-for-pointer-declarations) <del>* [2 spaces of indentation for blocks or bodies of conditionals](#2-spaces-of-indentation-for-blocks-or-bodies-of-con...
1
Ruby
Ruby
remove rackmount const usage
a28d0ea33e04cd7bf785c26a95e74f78dff82ce0
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def call(env) <ide> <ide> @constraints.each { |constraint| <ide> if constraint.respond_to?(:matches?) && !constraint.matches?(req) <del> return Rack::Mount::Const::EXPECTATION_FAILED_RESPONSE <add> return ...
2
Ruby
Ruby
use didyoumean for associationnotfounderror
3bc7756036332dac7037de0061d9afc15f4f6e1a
<ide><path>activerecord/lib/active_record/associations.rb <ide> <ide> module ActiveRecord <ide> class AssociationNotFoundError < ConfigurationError #:nodoc: <add> attr_reader :record, :association_name <ide> def initialize(record = nil, association_name = nil) <add> @record = record <add> ...
2
PHP
PHP
update typehints for collection classes
47bd1b8bd79333d588c89e42f10823689eb4bd60
<ide><path>src/Collection/CollectionInterface.php <ide> interface CollectionInterface extends Iterator, JsonSerializable <ide> * in this collection <ide> * @return \Cake\Collection\CollectionInterface <ide> */ <del> public function each(callable $c): CollectionInterface; <add> public function each(...
8
Text
Text
fix fragment identifier
d4075e111612a7bfb5a1fbeabc219ae81c4eb099
<ide><path>docs/basics/UsageWithReact.md <ide> React bindings for Redux separate _presentational_ components from _container_ c <ide> </tbody> <ide> </table> <ide> <del>Most of the components we'll write will be presentational, but we'll need to generate a few container components to connect them to the Redux stor...
1
Javascript
Javascript
remove useless clearlines, updated test
39fec6003e2cd52dfcd4e25f6da7f6e54617630d
<ide><path>lib/_debugger.js <ide> function Interface(stdin, stdout, args) { <ide> this.breakpoints = []; <ide> <ide> // Run script automatically <del> this.clearline(); <ide> this.pause(); <ide> <ide> // XXX Need to figure out why we need this delay <ide> Interface.prototype.clearline = function() { <ide> ...
2
Javascript
Javascript
fix round option for time scales
7423c48eb7af78fb05008f49964d9520c0db83a4
<ide><path>src/scales/scale.time.js <ide> module.exports = function(Chart) { <ide> if (timeOpts.min) { <ide> var minMoment = timeHelpers.parseTime(me, timeOpts.min); <ide> if (timeOpts.round) { <del> minMoment.round(timeOpts.round); <add> minMoment.startOf(timeOpts.round); <ide> } <ide> minTi...
1
Javascript
Javascript
reap children when cluster-bind-twice fails
a90dc41df2a10858e7135cab55af335da9bc4b05
<ide><path>test/simple/test-cluster-bind-twice.js <ide> if (!id) { <ide> var b = fork(__filename, ['two']); <ide> <ide> a.on('exit', function(c) { <del> if (c) <add> if (c) { <add> b.send('QUIT'); <ide> throw new Error('A exited with ' + c); <add> } <ide> }); <ide> <ide> b.on('exit', funct...
1
Text
Text
fix napi_default_property name
11430a6de36b6511134b33d8a2dc23a7fd750b70
<ide><path>doc/api/n-api.md <ide> typedef enum { <ide> napi_default_method = napi_writable | napi_configurable, <ide> <ide> // Default for object properties, like in JS obj[prop]. <del> napi_default_property = napi_writable | <add> napi_default_jsproperty = napi_writable | <ide> napi_en...
1
Text
Text
linkify remaining references to fs.stats object
51e7bc8f79eb99d402d5633dcfd8b147318c4b40
<ide><path>doc/api/fs.md <ide> Synchronous fdatasync(2). Returns `undefined`. <ide> * `callback` {Function} <ide> <ide> Asynchronous fstat(2). The callback gets two arguments `(err, stats)` where <del>`stats` is a `fs.Stats` object. `fstat()` is identical to [`stat()`][], except that <del>the file to be stat-ed is spe...
1
Ruby
Ruby
improve blocks usage
d05fa0cc8da0ffa01333f8956acd4a24c9fd46be
<ide><path>lib/arel/algebra/relations/operations/having.rb <ide> class Having < Compound <ide> deriving :== <ide> requires :restricting <ide> <del> def initialize(relation, *predicates, &block) <add> def initialize(relation, *predicates) <ide> predicates = [yield(relation)] + predicates if bloc...
5
Javascript
Javascript
replace assert.throws w/ common.expectserror
20a8e83e44a6555a40c9d5f367a9a7be8fed0374
<ide><path>test/parallel/test-dgram-createSocket-type.js <ide> const errMessage = /^Bad socket type specified\. Valid types are: udp4, udp6$/; <ide> <ide> // Error must be thrown with invalid types <ide> invalidTypes.forEach((invalidType) => { <del> assert.throws(() => { <add> common.expectsError(() => { <ide> d...
10
Python
Python
use the new logging.nullhandler in python 2.7
b784c7912afcab34632bf60b935b929f218c9180
<ide><path>celery/app/log.py <ide> <ide> from logging.handlers import WatchedFileHandler <ide> <del>from kombu.log import NullHandler <ide> from kombu.utils.encoding import set_default_encoding_file <ide> <ide> from celery import signals <ide> def _detect_handler(self, logfile=None): <ide> return WatchedFile...
2
PHP
PHP
apply fixes from styleci
f185be865a02d147cb2793b419b61786e913a8b4
<ide><path>src/Illuminate/Queue/Queue.php <ide> use Closure; <ide> use DateTimeInterface; <ide> use Illuminate\Container\Container; <del>use Illuminate\Database\DatabaseTransactionManager; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\InteractsWithTime; <ide> use Illuminate\Support\Str;
1
Javascript
Javascript
improve assertion message in dgram test
75d41cf531c19496c854acf65d48d9c8421907bc
<ide><path>test/parallel/test-dgram-send-callback-recursive.js <ide> function onsend() { <ide> if (sent++ < limit) { <ide> client.send(chunk, 0, chunk.length, port, common.localhostIPv4, onsend); <ide> } else { <del> assert.strictEqual(async, true, 'Send should be asynchronous.'); <add> assert.strictEqual...
1
Text
Text
add line break
cd89f6b60268cdf041a06f5120660b80396993cc
<ide><path>.github/ISSUE_TEMPLATE.md <ide> If you're looking for help with your code, consider posting a question on StackO <ide> http://stackoverflow.com/questions/tagged/spacy --> <ide> <ide> <add> <ide> ## Your Environment <ide> <!-- Include details of your environment --> <ide> * **Operating System:**
1
Python
Python
add test for french tokenizer
c09a8ce5bb47db4ea4381925ec07199415ae5c39
<ide><path>spacy/tests/integration/test_load_languages.py <ide> def test_load_french(): <ide> nlp = French() <ide> doc = nlp(u'Parlez-vous français?') <add> assert doc[0].text == u'Parlez' <add> assert doc[1].text == u'-' <add> assert doc[2].text == u'vouz' <add> assert doc[3].text == u'français' <a...
1
Mixed
Go
move resources from config to hostconfig
837eec064d2d40a4d86acbc6f47fada8263e0d4c
<ide><path>daemon/container.go <ide> func populateCommand(c *Container, env []string) error { <ide> } <ide> <ide> resources := &execdriver.Resources{ <del> Memory: c.Config.Memory, <del> MemorySwap: c.Config.MemorySwap, <del> CpuShares: c.Config.CpuShares, <del> Cpuset: c.Config.Cpuset, <add> Memory: ...
12
Text
Text
use consistent capitalization for addons
3e9caaf5051961f640664a138297de11bb5c5c26
<ide><path>doc/api/addons.md <ide> <!--introduced_in=v0.10.0--> <ide> <!-- type=misc --> <ide> <del>Addons are dynamically-linked shared objects written in C++. The <del>[`require()`][require] function can load Addons as ordinary Node.js modules. <add>_Addons_ are dynamically-linked shared objects written in C++. The ...
1
Ruby
Ruby
improve documentation comments
c936a9420eed710d955346cbfb76140a24d1b551
<ide><path>Library/Homebrew/livecheck/strategy.rb <ide> module Strategy <ide> <ide> module_function <ide> <del> # Strategy priorities informally range from 1 to 10, where 10 is the <add> # {Strategy} priorities informally range from 1 to 10, where 10 is the <ide> # highest priority. 5 is the def...
7
Javascript
Javascript
add bigint to globals
bf1238498844645cef022b13989176d975ecfefd
<ide><path>.eslintrc.js <ide> module.exports = { <ide> 'node-core/no-unescaped-regexp-dot': 'error', <ide> }, <ide> globals: { <add> BigInt: false, <ide> COUNTER_HTTP_CLIENT_REQUEST: false, <ide> COUNTER_HTTP_CLIENT_RESPONSE: false, <ide> COUNTER_HTTP_SERVER_REQUEST: false, <ide><path>lib/interna...
3
Text
Text
adjust colour description to images
4906a6726b6a234f13af0dcf59869beb69b979c5
<ide><path>client/src/pages/guide/english/css/css3-gradients/index.md <ide> To create a linear gradient you must define at least two color stops. Color stop <ide> background: linear-gradient(direction, color-stop1, color-stop2, ...); <ide> <ide> ##### Linear Gradient - Top to Bottom (this is default) <del>The foll...
1
Javascript
Javascript
add backslash to path test for windows paths
83c6de01444b046095aaf4ac9fdeee6dc031acb0
<ide><path>curriculum/getChallenges.js <ide> Trying to parse ${fullPath}`); <ide> exports.createChallenge = createChallenge; <ide> <ide> function getEnglishPath(fullPath) { <del> const posix = path.posix.normalize(fullPath); <add> const posix = path <add> .normalize(fullPath) <add> .split(path.sep) <add> .j...
1
Ruby
Ruby
remove unused block parameters
1e784cb386d921127ad67ee5fe4bf6768567ccaf
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def setup_subscriptions <ide> @_layouts = Hash.new(0) <ide> @_files = Hash.new(0) <ide> <del> ActiveSupport::Notifications.subscribe("render_template.action_view") do |name, start, finish, id, payload| <add> ActiveSupport::Notificatio...
1
Javascript
Javascript
remove validateopts for server class
446995306a9f6fe7628aa9d39c0ad148cddb6c5e
<ide><path>packager/react-packager/react-packager.js <ide> exports.createServer = createServer; <ide> exports.Logger = Logger; <ide> <ide> type Options = { <add> nonPersistent: boolean, <add> projectRoots: Array<string>, <ide> reporter?: Reporter, <ide> watch?: boolean, <del> nonPersistent: boolean, <ide> }; <i...
3
PHP
PHP
change method names and vars
ea9b2832d557805cafeecc879a5192b3d5997b04
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php <ide> protected function getConfigurationFiles(Application $app) <ide> $configPath = realpath($app->configPath()); <ide> <ide> foreach (Finder::create()->files()->name('*.php')->in($configPath) as $file) { <del> $nesting = ...
1
Text
Text
fix syntax highlighting [ci-skip]
f3f36e7ef74d169caf7fa1d1f1e14422758901e1
<ide><path>guides/source/2_3_release_notes.md <ide> grouped_options_for_select([["Hats", ["Baseball Cap","Cowboy Hat"]]], <ide> <ide> returns <ide> <del>```ruby <add>```html <ide> <option value="">Choose a product...</option> <ide> <optgroup label="Hats"> <ide> <option value="Baseball Cap">Baseball Cap</option> <id...
11
Text
Text
install release for android
ce82428b1595526108bd90acf0c24ba2940569c6
<ide><path>docs/SignedAPKAndroid.md <ide> The generated APK can be found under `android/app/build/outputs/apk/app-release. <ide> Before uploading the release build to the Play Store, make sure you test it thoroughly. Install it on the device using: <ide> <ide> ```sh <del>$ cd android && ./gradlew installRelease <add>$...
1
Javascript
Javascript
fix jshint errors with long lines
269bc7e51f0ae4e4230308e43db934a9fff48756
<ide><path>src/ngResource/resource.js <ide> var $resourceMinErr = angular.$$minErr('$resource'); <ide> * <ide> * # ngResource <ide> * <del> * The `ngResource` module provides interaction support with RESTful services via the $resource service. <add> * The `ngResource` module provides interaction support with RESTful...
2
Javascript
Javascript
update translation of monday and saturday
0dcaaa689d02dde824029b09ab6aa64ff351ee2e
<ide><path>src/locale/tr.js <ide> export default moment.defineLocale('tr', { <ide> weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( <ide> '_' <ide> ), <del> weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), <add> weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'...
2
Python
Python
remove debug statements
eddef438696729d40092e3f8dfaf939b38ec8d5d
<ide><path>numpy/lib/function_base.py <ide> def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, <ide> <ide> else: <ide> # weight the points above and below the indices <del> #import pdb; pdb.set_trace() <ide> <ide> indices_below = not_scalar(floor(indices)).astype(i...
1
Javascript
Javascript
set textcontent rather than using element.text()
074a146d8b1ee7c93bf6d5892448a5c2a0143a28
<ide><path>src/ng/directive/ngBind.js <ide> var ngBindDirective = ['$compile', function($compile) { <ide> $compile.$$addBindingClass(templateElement); <ide> return function ngBindLink(scope, element, attr) { <ide> $compile.$$addBindingInfo(element, attr.ngBind); <add> element = element[0]; <i...
1
Python
Python
fix metrics support in theano
d9fae78e554db4bb4d4590564ce49b3d70e64d0e
<ide><path>keras/backend/theano_backend.py <ide> def __init__(self, inputs, outputs, updates=[], name=None, **kwargs): <ide> if v not in unique_variables_to_update: <ide> unique_variables_to_update[v] = nv <ide> updates = unique_variables_to_update.items() <add> self.outputs =...
5
Javascript
Javascript
fix small typo in comment
6aa4200a8cefa87bb4ec100c0b0369517e35ed6b
<ide><path>src/selector.js <ide> jQuery.extend({ <ide> // Match: :contains('foo') <ide> /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/, <ide> <del> // Match: :even, :last-chlid, #id, .class <add> // Match: :even, :last-child, #id, .class <ide> new RegExp("^([:.#]*)(" + chars + "+)") <ide> ], <ide>
1
Javascript
Javascript
ensure validation works during watch
d233cb35a3bf1d7275bca98a8a7ac57020a11d63
<ide><path>client/gatsby-config.js <ide> module.exports = { <ide> options: { <ide> name: 'challenges', <ide> source: buildChallenges, <del> onSourceChange: replaceChallengeNode, <add> onSourceChange: replaceChallengeNode(config.locale), <ide> curriculumPath: localeChallengesR...
3
Javascript
Javascript
reduce need for runtime template compilation
9fce04129121884c522a887dc57fe0c6d5bbb2c2
<ide><path>packages/ember-handlebars/lib/controls/checkbox.js <ide> Ember.Checkbox = Ember.View.extend({ <ide> _updateElementValue: function() { <ide> var input = get(this, 'title') ? this.$('input:checkbox') : this.$(); <ide> set(this, 'checked', input.prop('checked')); <del> }, <del> <del> init: function(...
3
Python
Python
replace getters/setters with properties - round 2
c5a2c25b35467e61cc1cc45bcd4c4e843c2a4266
<ide><path>glances/core/glances_logs.py <ide> def set_process_sort(self, item_type): <ide> else: <ide> # Default sort is... <ide> process_auto_by = 'cpu_percent' <del> glances_processes.setautosortkey(process_auto_by) <add> glances_processes.auto_sort = True <add> gl...
6
Ruby
Ruby
suggest homepage in usage
5144ac9e6af6b7b40e646056298e58e0ff45e520
<ide><path>Library/Homebrew/ARGV+yeast.rb <ide> def usage <ide> info [formula] [--github] <ide> make url <ide> prune <add> <add>To visit the Homebrew homepage type: <add> brew home <ide> EOS <ide> end <ide>
1
Ruby
Ruby
break each polymorphic type to it's own method
4b8ab797b4653d8764c687e73cb630c32ae8bb4b
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> def polymorphic_url(record_or_hash_or_array, options = {}) <ide> <ide> opts = options.except(:action, :routing_type) <ide> <add> if options[:action] == 'new' <add> inflection = SINGULAR_ROUTE_KEY <add> else <a...
2
Python
Python
use py3k compatible raise syntax
18d6b8f4246ea1b3f5718283b57f41de6211c4e7
<ide><path>numpy/testing/decorators.py <ide> def knownfail_decorator(f): <ide> from noseclasses import KnownFailureTest <ide> def knownfailer(*args, **kwargs): <ide> if fail_val(): <del> raise KnownFailureTest, msg <add> raise KnownFailureTest(msg) <ide> ...
1
Javascript
Javascript
replace date.now function by primordial datenow
0da6983cdad80dad8c1d4155b1bc887ce37d9c40
<ide><path>lib/internal/fs/utils.js <ide> <ide> const { <ide> ArrayIsArray, <add> DateNow, <ide> ObjectSetPrototypeOf, <ide> ReflectOwnKeys, <ide> } = primordials; <ide> function toUnixTimestamp(time, name = 'time') { <ide> } <ide> if (Number.isFinite(time)) { <ide> if (time < 0) { <del> return Dat...
2
Python
Python
add type hints for fnet pytorch
0dcdfe8630808bf284eebb370ed4c3cf77fa19f4
<ide><path>src/transformers/models/fnet/modeling_fnet.py <ide> import warnings <ide> from dataclasses import dataclass <ide> from functools import partial <del>from typing import Optional, Tuple <add>from typing import Optional, Tuple, Union <ide> <ide> import torch <ide> import torch.utils.checkpoint <ide> def set_ou...
1
Javascript
Javascript
remove unused variable e from try catch
f0c5c962ce971213c0c055b91bb747860defd492
<ide><path>lib/repl.js <ide> function defineDefaultCommands(repl) { <ide> this.outputStream.write('Failed to load: ' + file + <ide> ' is not a valid file\n'); <ide> } <del> } catch (e) { <add> } catch { <ide> this.outputStream.write('Failed to load: ...
1
PHP
PHP
convert another long test to use a dataprovider
1487357ba631bc34d19cabc08d93017294268401
<ide><path>lib/Cake/Test/Case/Routing/DispatcherTest.php <ide> public function testAssetFilterForThemeAndPlugins() { <ide> <ide> $this->assertFalse($Dispatcher->asset('js/cjs/debug_kit.js', $response)); <ide> } <add> <ide> /** <del> * testFullPageCachingDispatch method <add> * Data provider for cached actions. <ide...
1
Go
Go
fix typo in names-generator
6cf137860102b8df5db75dd68924375a7b74c1c3
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // http://en.wikipedia.org/wiki/John_Bardeen <ide> // http://en.wikipedia.org/wiki/Walter_Houser_Brattain <ide> // http://en.wikipedia.org/wiki/William_Shockley <del> right = [...]string{"lovelace", "franklin", "tesla", "einstein", "bohr", "davinci",...
1
Text
Text
clarify use of #update_all
71db79938dfabe03e330fa1ef4f70d3364dac3f9
<ide><path>guides/source/active_record_basics.md <ide> user = User.find_by(name: 'David') <ide> user.update(name: 'Dave') <ide> ``` <ide> <del>This is most useful when updating several attributes at once. If, on the other <del>hand, you'd like to update several records in bulk, you may find the <del>`update_all` class...
1
Go
Go
fix docker --init with /dev bind mount
bcacbf523b35b6cf22bd84ac33e4425784c5a0a2
<ide><path>daemon/oci_linux.go <ide> import ( <ide> "golang.org/x/sys/unix" <ide> ) <ide> <add>const ( <add> inContainerInitPath = "/sbin/" + daemonconfig.DefaultInitBinary <add>) <add> <ide> func setResources(s *specs.Spec, r containertypes.Resources) error { <ide> weightDevices, err := getBlkioWeightDevices(r) <id...
1
Text
Text
give package styling recommendations
492d7bc69a07f94f85df3f6182f691258219a994
<ide><path>docs/creating-a-package.md <ide> Any stylesheets in this directory will be loaded and attached to the DOM when <ide> your package is activated. Stylesheets can be written as CSS or [LESS] (but LESS <ide> is recommended). <ide> <add>Ideally you will not need much in the way of styling. We've provided a stand...
1
Text
Text
update changelog for
25ada9b5411808c4ae8dc72ba99cc09fe10ff884
<ide><path>activerecord/CHANGELOG.md <add>* Callbacks on has_many should access the in memory parent if a inverse_of is set. <add> <add> *arthurnn* <add> <ide> * `ActiveRecord::ConnectionAdapters.string_to_time` respects <ide> string with timezone (e.g. Wed, 04 Sep 2013 20:30:00 JST). <del> <add> <ide> ...
1