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
remove constructor ... move to app
d51fb166aa48feaf1cd6eaaddd265f11f3f7d092
<ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php <ide> trait ResetsPasswords { <ide> */ <ide> protected $passwords; <ide> <del> /** <del> * Create a new password controller instance. <del> * <del> * @param Guard $auth <del> * @param PasswordBroker $passwords <del> * @return void <del> */ <del...
1
Text
Text
add changelog for custom content type
2263769c792a32d02826837ef8df5ae5ad1e3682
<ide><path>actionmailer/CHANGELOG.md <ide> <ide> *Jeremy Daer* <ide> <add>* Mime type: allow to custom content type when setting body in headers <add> and attachments. <add> <add> Example: <add> <add> def test_emails <add> attachments["invoice.pdf"] = "This is test File content" <add> ...
2
Java
Java
fix undertow zero-copy-support
45aa1edf871e7e86cbd9523146a94b911d944736
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java <ide> import io.undertow.util.HttpString; <ide> import org.reactivestreams.Processor; <ide> import org.reactivestreams.Publisher; <add>import org.xnio.channels.Channels; <ide> import org.xnio.channels.StreamSink...
1
Text
Text
fix wrong script name (showdown -> marked)
94325ea3ef28b8fc50113d1117f3e46dd268321a
<ide><path>docs/docs/tutorial.ja-JP.md <ide> var Comment = React.createClass({ <ide> }); <ide> ``` <ide> <del>このコードでは Showdown のライブラリを呼び出すことしかしていません。`this.props.children` は React によってラップされたテキストですが、これを Showdown が理解できる生の文字列に変換する必要があります。そのため、上のコードでは明示的に `toString()` を呼び出しているのです。 <add>このコードでは marked のライブラリを呼び出すことしかしていません。...
1
Go
Go
fix typos in error message
ebf005491268eaa0c5eb759cdd5d02f59db81a4f
<ide><path>libnetwork/ipam/allocator.go <ide> func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error) <ide> } <ide> <ide> if as != localAddressSpace && as != globalAddressSpace { <del> return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces") <add> ...
1
Text
Text
fix appearance of video thumbnail
384e8fe195c1a49d21d5c95ccc5db1287cecf2e1
<ide><path>docs/docs/videos.md <ide> A [tagtree.tv](http://tagtree.tv/) video conveying the principles of [Thinking i <ide> ### Going big with React ### <ide> <ide> "On paper, all those JS frameworks look promising: clean implementations, quick code design, flawless execution. But what happens when you stress test Jav...
1
Python
Python
add list locations to linode driver
fed66e0eeddccb22b10c70bb38c11d686019086b
<ide><path>libcloud/drivers/linode.py <ide> # <ide> <ide> from libcloud.types import Provider, NodeState <del>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node <add>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node, NodeLocation <ide> from libcloud.base import No...
1
Go
Go
devmapper backend plugin
86dd2473c1351df87520111b1b1ba9953f9e5f09
<ide><path>devmapper/plugin.go <add>package devmapper <add> <add>import ( <add> "github.com/dotcloud/docker/archive" <add>) <add> <add>type Image interface { <add> ID() string <add> Parent() (Image, error) <add> Path() string <add>} <add> <add>type DMBackend struct { <add> *DeviceSet <add>} <add> <add>func (b *DMBacken...
1
Python
Python
add weight to all objective functions
d6eb8a47d7293ed2d81d77e2e855acecd855487d
<ide><path>keras/objectives.py <ide> <ide> epsilon = 1.0e-15 <ide> <del>def mean_squared_error(y_true, y_pred): <del> return T.sqr(y_pred - y_true).mean() <add>def mean_squared_error(y_true, y_pred, weight=None): <add> if weight is not None: <add> return T.sqr(weight*(y_pred - y_true)).mean() <add> el...
1
Javascript
Javascript
fix some regexp nits
8beff648518aa8e846221d03e31bea5f78f62010
<ide><path>benchmark/buffers/buffer-write.js <ide> function main(conf) { <ide> var buff = new clazz(8); <ide> var fn = `write${conf.type}`; <ide> <del> if (fn.match(/Int/)) <add> if (/Int/.test(fn)) <ide> benchInt(buff, fn, len, noAssert); <ide> else <ide> benchFloat(buff, fn, len, noAssert); <ide><pat...
5
Javascript
Javascript
add unit tests for 0 hour bighour checking
ff17d895fad59bd9559264c7a65d7a97de1489ff
<ide><path>src/test/moment/is_valid.js <ide> test('oddball permissiveness', function (assert) { <ide> //https://github.com/moment/moment/issues/1122 <ide> assert.ok(moment('3:25', ['h:mma', 'hh:mma', 'H:mm', 'HH:mm']).isValid()); <ide> }); <add> <add>test('0 hour is invalid in strict', function (assert) { <add>...
1
PHP
PHP
use proper assertion
ebbae988f5697b0a456f27c0c865515b4c0ab51a
<ide><path>tests/Cache/CacheArrayStoreTest.php <ide> public function testItemsCanBeFlushed() <ide> public function testCacheKey() <ide> { <ide> $store = new ArrayStore; <del> $this->assertEquals('', $store->getPrefix()); <add> $this->assertEmpty($store->getPrefix()); <ide> } <ide> } <i...
7
Javascript
Javascript
remove all listeners of animatednode when detached
cd8319433b79fd403c97b9e20d6d329c2db9a288
<ide><path>Libraries/Animated/nodes/AnimatedNode.js <ide> <ide> import type {PlatformConfig} from '../AnimatedPlatformConfig'; <ide> <add>import ReactNativeFeatureFlags from '../../ReactNative/ReactNativeFeatureFlags'; <ide> import NativeAnimatedHelper from '../NativeAnimatedHelper'; <ide> import invariant from 'inva...
2
Javascript
Javascript
change http back to a 1.1 client
9a70abbf1378060d1b46240eed0dcd0dffd526ff
<ide><path>lib/http.js <ide> function ClientRequest (method, uri, headers) { <ide> } <ide> this.closeOnFinish = true; <ide> <del> this.sendHeaderLines(method + " " + uri + " HTTP/1.0\r\n", headers); <add> this.sendHeaderLines(method + " " + uri + " HTTP/1.1\r\n", headers); <ide> } <ide> node.inherits(ClientReque...
1
Ruby
Ruby
fix handling of default non-host cellar
2ed333947874ea4291a9007afbda15c2f56b2e35
<ide><path>Library/Homebrew/software_spec.rb <ide> class BottleSpecification <ide> def initialize <ide> @rebuild = 0 <ide> @prefix = Homebrew::DEFAULT_PREFIX <del> @all_tags_cellar = Homebrew::DEFAULT_CELLAR <ide> @repository = Homebrew::DEFAULT_REPOSITORY <ide> @collector = Utils::Bottles::Collect...
2
Ruby
Ruby
fix segmentation fault in ruby 2.0.0-p353
8033d3370c56d8d69673c000182922228504706c
<ide><path>activesupport/lib/active_support/duration.rb <ide> def sum(sign, time = ::Time.current) #:nodoc: <ide> <ide> private <ide> <add> # We define it as a workaround to Ruby 2.0.0-p353 bug. <add> # For more information, check rails/rails#13055. <add> # It should be dropped once a new Ruby patc...
2
Text
Text
fix spelling mistake in readme.md
ee31c9f8c63497d6e2931d5ed45e3638c25ef7e6
<ide><path>README.md <ide> Keras is compatible with: __Python 2.7-3.6__. <ide> <ide> - __User friendliness.__ Keras is an API designed for human beings, not machines. It puts user experience front and center. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the...
1
Python
Python
fix logic in train cli timing eval on gpu
c045a9c7f637f85f7beccdae48a4cb765516d558
<ide><path>spacy/cli/train.py <ide> def train( <ide> gpu_wps = nwords / (end_time - start_time) <ide> # Only evaluate on CPU in the first iteration (for <ide> # timing) if GPU is enabled <del> if i >= 1: <add> ...
1
PHP
PHP
add a command to run all options
a0506536e790181ed186be97ccf06b4333337ef1
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> function startup() { <ide> $this->out('<warning>Dry-run mode enabled!</warning>', 1, Shell::QUIET); <ide> } <ide> } <add> <add> function all() { <add> foreach($this->OptionParser->subcommands() as $command) { <add> $name = $command->name(); <add> if ...
1
Java
Java
view resolution with content negotiation
8cc72b320bc86e5acb380f3588d1ec926ed1e681
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/View.java <ide> public interface View { <ide> <ide> /** <del> * Return the list of media types this encoder supports. <add> * Return the list of media types this View supports, or an empty list. <ide> */ <ide> List<MediaTyp...
3
Mixed
Javascript
restore js implementation of realpath
08996fde3c08c0cfabc7cc3fe332d83f674ab099
<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> <add>Only paths that can be converted to UTF8 strings are supported. <add> <ide> The optional `options` argument can be a ...
4
Ruby
Ruby
use backticks instead of popen
8b4645d895e6d998e56603dcd05362e20df0ac71
<ide><path>Library/Homebrew/utils.rb <ide> def archs_for_command cmd <ide> cmd = `/usr/bin/which #{cmd}` unless Pathname.new(cmd).absolute? <ide> cmd.gsub! ' ', '\\ ' # Escape spaces in the filename. <ide> <del> archs = IO.popen("/usr/bin/file -L #{cmd}").readlines.inject([]) do |archs, line| <add> lines = `/us...
1
Mixed
Ruby
add more documentation for create_join_table
743d15bba182df80d003d205690ead988970299c
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def create_table(table_name, options = {}) <ide> # Set to true to drop the table before creating it. <ide> # Defaults to false. <ide> # <add> # Note that +create_join_table+ does not create any i...
2
Python
Python
add global pooling layers
065fb2a74ccde5f411483df9cfa1e95c64800c73
<ide><path>docs/autogen.py <ide> sys.setdefaultencoding('utf8') <ide> <ide> from keras.layers import convolutional <add>from keras.layers import pooling <ide> from keras.layers import local <ide> from keras.layers import recurrent <ide> from keras.layers import core <ide> { <ide> 'page': 'layers/poolin...
3
Java
Java
add unit tests for handlerthreadscheduler
0959aa599fa3089efb508b85ebd51bf634c5c02c
<ide><path>rxjava-contrib/rxjava-android/src/main/java/rx/concurrency/HandlerThreadScheduler.java <ide> package rx.concurrency; <ide> <ide> import android.os.Handler; <add>import org.junit.Test; <add>import org.junit.runner.RunWith; <add>import org.mockito.ArgumentCaptor; <ide> import rx.Scheduler; <ide> import rx.Sub...
1
Go
Go
use const for clocktickspersecond
b42ac8d370a8ef8ec720dff0ca9dfb3530ac0a6a
<ide><path>daemon/stats/collector.go <ide> type Collector struct { <ide> interval time.Duration <ide> publishers map[*container.Container]*pubsub.Publisher <ide> bufReader *bufio.Reader <del> <del> // The following fields are not set on Windows currently. <del> clockTicksPerSecond uint64 <ide> } <ide> <ide> // N...
3
Javascript
Javascript
remove reactinstancemap_do_not_use shim
b43b36dd91dcd09282a334b61e79dd89e2a08dcf
<ide><path>scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js <del>/** <del> * Copyright (c) Facebook, Inc. and its affiliates. <del> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <del> */ <del> <del>'use strict'; ...
1
Text
Text
add issue and pr templates
31ed2dba2469be0da82dcfe83c0869147aa7dcf9
<ide><path>.github/ISSUE_TEMPLATE.md <add>### Resume <add> <add>| Q | A <add>| ------------- | --- <add>| Bug? | yes/no <add>| New feature? | yes/no <add> <add>### Description <add> <add> <add>### Versions <add> <add><!-- You can use `glances -V` to retrieve Glances and PSutil versions --> <add> <...
2
Javascript
Javascript
set default encoding in sendbody
4e16e386fec675b576669e67f25efe47854ffef6
<ide><path>lib/http.js <ide> OutgoingMessage.prototype.sendHeaderLines = function (first_line, headers) { <ide> }; <ide> <ide> OutgoingMessage.prototype.sendBody = function (chunk, encoding) { <add> encoding = encoding || "ascii"; <ide> if (this.chunked_encoding) { <ide> this.send(process._byteLength(chunk, enc...
1
Javascript
Javascript
fix typo in lib/internal/http2/core.js
8c33b71bdfe36038c3661dc64027271130ffaea8
<ide><path>lib/internal/http2/core.js <ide> class Http2Session extends EventEmitter { <ide> } <ide> <ide> // Sets the local window size (local endpoints's window size) <del> // Returns 0 if sucess or throw an exception if NGHTTP2_ERR_NOMEM <add> // Returns 0 if success or throw an exception if NGHTTP2_ERR_NOMEM ...
1
Javascript
Javascript
fix comma expression in animationaction
84a68f359a06c33ce5042b8e7c57993cff2d0450
<ide><path>src/animation/AnimationAction.js <ide> AnimationAction.prototype = { <ide> <ide> if ( interpolant === null ) { <ide> <del> interpolant = mixer._lendControlInterpolant(), <add> interpolant = mixer._lendControlInterpolant(); <ide> this._timeScaleInterpolant = interpolant; <ide> <ide> } <ide> Anim...
1
Ruby
Ruby
use db_config to retrieve adapter in resolver
da75da6c3f68e43f08845af663b196b815ce5e05
<ide><path>activerecord/lib/active_record/connection_adapters/resolver.rb <ide> def spec(config) <ide> pool_name = config if config.is_a?(Symbol) <ide> <ide> db_config = resolve(config, pool_name) <del> spec = db_config.configuration_hash <ide> <del> raise(AdapterNotSpecified, "database ...
1
Ruby
Ruby
add missing newline in verbose mode
59458eac515c87455f83c823b292fe3bfd52e015
<ide><path>Library/Homebrew/cmd/link.rb <ide> module Homebrew extend self <ide> def link <ide> ARGV.kegs.each do |keg| <ide> print "Linking #{keg}... " <add> puts if ARGV.verbose? <ide> begin <ide> puts "#{keg.link} symlinks created" <ide> rescue Exception
1
Javascript
Javascript
fix symbolicate logspew for `/debuggerworker.js`
5e73c070e8ed2c125ed5face64f4334af384bfc6
<ide><path>packager/react-packager/src/Server/__tests__/Server-test.js <ide> describe('processRequest', () => { <ide> requestHandler, <ide> 'index.ios.includeRequire.bundle' <ide> ).then(response => { <del> expect(response.body).toEqual('this is the source') <add> expect(response.body).toEqual...
2
PHP
PHP
reduce code nesting and improve readability
d015a9311a605deb6a4b7b3d08b9cf24b6032949
<ide><path>src/View/View.php <ide> public function exists(string $name): bool <ide> */ <ide> public function extend(string $name) <ide> { <del> if ($name[0] === '/' || $this->_currentType === static::TYPE_TEMPLATE) { <del> $parent = $this->_getTemplateFileName($name); <del> } else ...
1
Go
Go
remove unused constants
3cc0963ad16a5abd67aeba22cefac34a40ac70ef
<ide><path>term/term.go <ide> type Termios struct { <ide> Ospeed uint32 <ide> } <ide> <del>const ( <del> // Input flags <del> inpck = 0x010 <del> istrip = 0x020 <del> icrnl = 0x100 <del> ixon = 0x200 <del> <del> // Output flags <del> opost = 0x1 <del> <del> // Control flags <del> cs8 = 0x300 <del> <del> // Local ...
1
PHP
PHP
remove comment bloat from string class
fa6489be6caed26ebbc87ab49cf9c216c834ce18
<ide><path>laravel/str.php <ide> class Str { <ide> * <code> <ide> * // Convert a string to lowercase <ide> * echo Str::lower('STOP YELLING'); <del> * <del> * // Convert a UTF-8 string to lowercase <del> * echo Str::lower('Τάχιστη'); <ide> * </code> <ide> * <ide> * @param string $value <ide> public ...
1
Text
Text
remove cmake dependency
49a32dd2dcfc059fa46b34b929101253b2718f09
<ide><path>docs/building-atom.md <ide> atom][download]. <ide> <ide> * Use OS X 10.8 or later <ide> * Install the latest node 0.10.x release (32bit preferable) <del>* Install cmake <ide> * Clone [atom][atom-git] to `~/github/atom` <ide> * Run `~/github/atom/script/build` <ide>
1
Javascript
Javascript
fix preview cursor position
af5ddf21234a4508d7889c8dd172245cf7d4c422
<ide><path>lib/internal/repl/utils.js <ide> function setupPreview(repl, contextSymbol, bufferSymbol, active) { <ide> const { cursorPos, displayPos } = getPreviewPos(); <ide> const rows = displayPos.rows - cursorPos.rows; <ide> moveCursor(repl.output, 0, rows); <del> const { cols: resultCols } = r...
4
Ruby
Ruby
remove unused require
a027a750d0a3790965de9faa78c3eeb7f79f517e
<ide><path>actionpack/lib/action_dispatch/testing/test_process.rb <ide> require 'action_dispatch/middleware/cookies' <ide> require 'action_dispatch/middleware/flash' <del>require 'active_support/core_ext/hash/indifferent_access' <ide> <ide> module ActionDispatch <ide> module TestProcess
1
Ruby
Ruby
reflect new version in dry-run
cc0ca73183f1e92579169eb038b10a98bd7c455a
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> require "formula" <ide> <ide> module Homebrew <add> def inreplace_pairs(path, replacement_pairs) <add> if ARGV.dry_run? <add> contents = path.open("r") { |f| Formulary.set_encoding(f).read } <add> contents.extend(StringInreplaceExtension) <add>...
1
Python
Python
add support for time-distributed softmax
8f2d6d2714aa1b60950a2fc355d39297b7f2cdfb
<ide><path>keras/activations.py <ide> <ide> <ide> def softmax(x): <del> return K.softmax(x) <add> ndim = K.ndim(x) <add> if ndim == 2: <add> return K.softmax(x) <add> elif ndim == 3: <add> # apply softmax to each timestep <add> def step(x, states): <add> return K.softmax(x)...
1
PHP
PHP
simplify encryption mac validation
2aa0563d7fdf1de0d0c7be00d50c2eeaa184b219
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> protected function validPayload($payload) <ide> */ <ide> protected function validMac(array $payload) <ide> { <del> $calculated = $this->calculateMac($payload, $bytes = random_bytes(16)); <del> <ide> return hash_equals( <del> ...
1
Text
Text
update changelog for v2.15.0-beta.3
979190c8f6b0023f4672508d0be3d8d53b585019
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.15.0-beta.3 (August 8, 2017) <add> <add>- [#14848](https://github.com/emberjs/ember.js/pull/14848) [BUGFIX] Allow boolean values for current-when <add>- [#15572](https://github.com/emberjs/ember.js/pull/15572) [BUGFIX] Fix issue with using negative numbe...
1
Ruby
Ruby
fix style offences
22d68fb99b02b1b41afd3f7e109d0cb6af099005
<ide><path>Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb <ide> class UrlLegacyCommaSeparators < Base <ide> include OnUrlStanza <ide> extend AutoCorrector <ide> <del> MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version....
1
PHP
PHP
add methods to contract
0066b5da6f009275348ab71904da2376c6c47281
<ide><path>src/Illuminate/Contracts/Notifications/Factory.php <ide> interface Factory <ide> * @return mixed <ide> */ <ide> public function channel($name = null); <add> <add> /** <add> * Send the given notification to the given notifiable entities. <add> * <add> * @param \Illuminate\Support...
1
Python
Python
make model summary wrap
ba8f81ae45bfa8beb38d1629810262c3b391598c
<ide><path>keras/utils/layer_utils.py <ide> def print_summary(model, line_length=None, positions=None, print_fn=None): <ide> relevant_nodes += v <ide> <ide> def print_row(fields, positions): <del> line = '' <del> for i in range(len(fields)): <del> if i > 0: <del> line = line[:-1] + ' ' <del> ...
1
Python
Python
fix mypy errors in kylin example
4f5172edf5e23f08f4d39c0e2c113c966ea137c3
<ide><path>airflow/providers/apache/kylin/example_dags/example_kylin_dag.py <ide> def gen_build_time(): <ide> return {'date_start': '1325347200000', 'date_end': '1325433600000'} <ide> <ide> <del>gen_build_time = gen_build_time() <del>gen_build_time_output_date_start = gen_build_time['date_start'] <del>gen_build_t...
1
Python
Python
remove unused import
8a67ddd6f12c6870245c0ed7263e30ebe81ede33
<ide><path>spacy/util.py <ide> from contextlib import contextmanager <ide> import tempfile <ide> import shutil <del>import hashlib <ide> import shlex <ide> <ide> try:
1
Java
Java
allow access to applied property sources
eb1776e79df3c1b7916bf11a61bdc33ba6889d38
<ide><path>spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Li...
2
Javascript
Javascript
fix assert.strictequal argument order
a2392704b2987073a2c918f349e91e7c5ecaed7c
<ide><path>test/parallel/test-vm-new-script-new-context.js <ide> const Script = require('vm').Script; <ide> const script = new Script('\'passed\';'); <ide> const result1 = script.runInNewContext(); <ide> const result2 = script.runInNewContext(); <del> assert.strictEqual('passed', result1); <del> assert.strictEq...
1
Javascript
Javascript
fix typo in faunadb example
372031246daf598bd2896fe923280ddfee84b5d7
<ide><path>examples/with-graphql-faunadb/scripts/setup.js <ide> readline.question(`Please provide the FaunaDB admin key\n`, adminKey => { <ide> console.error(`Could not import schema, closing`) <ide> }) <ide> .then(res => { <del> // The GraphQL schema is important, this means that we now have a Guest...
1
Javascript
Javascript
use hasownproperty in for in loops
df23e1484709e185b06b1a453b9d0eac4719d727
<ide><path>lib/HotModuleReplacementPlugin.js <ide> var hotInitCode = Template.getFunctionContent(function() { <ide> appliedUpdate[moduleId] = hotUpdate[moduleId]; <ide> addAllToSet(outdatedModules, result[0]); <ide> for(var moduleId in result[1]) { <del> if(!outdatedDependencies[moduleId]) <del> outdate...
1
Javascript
Javascript
add missing space to key warning
7c63d0178daef797bcd8ed71f5fbc445a15192ac
<ide><path>src/renderers/shared/stack/reconciler/ReactChildReconciler.js <ide> function instantiateChild(childInstances, child, name, selfDebugID) { <ide> if (!keyUnique) { <ide> warning( <ide> false, <del> 'flattenChildren(...):' + <add> 'flattenChildren(...): ' + <ide> 'Enco...
1
Ruby
Ruby
handle tap aliases
0165a810f72f6ac4dd4385c31e749fc786a04c58
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search_tap(user, repo, rx) <ide> end <ide> <ide> def search_formulae(rx) <del> aliases = Formula.aliases <add> aliases = Formula.alias_full_names <ide> results = (Formula.full_names+aliases).grep(rx).sort <add> result_names = results.map { |name| nam...
1
Ruby
Ruby
fix rails console --sandbox
be3e10cd26bc8ec29c6474d03a08a8e733108e7d
<ide><path>activerecord/lib/active_record/railties/console_sandbox.rb <del>ActiveRecord::Base.connection.begin_db_transaction <add>ActiveRecord::Base.connection.begin_transaction <ide> at_exit do <del> ActiveRecord::Base.connection.rollback_db_transaction <add> ActiveRecord::Base.connection.rollback_transaction <ide>...
3
Go
Go
add check for overlapping subnets
9fe5cc10b239b99113797712ca044af1163747d1
<ide><path>libnetwork/ipam/structures.go <ide> func (aSpace *addrSpace) updatePoolDBOnAdd(k SubnetKey, nw *net.IPNet, ipr *Addr <ide> defer aSpace.Unlock() <ide> <ide> // Check if already allocated <del> if p, ok := aSpace.subnets[k]; ok { <add> if _, ok := aSpace.subnets[k]; ok { <ide> if pdf { <ide> return ni...
1
Javascript
Javascript
remove old comment
f092c6a8df521e08b94c65d8e4e5cf0af20e81b0
<ide><path>packages/ember-metal/lib/computed.js <ide> function keysForDep(obj, depsMeta, depKey) { <ide> return keys; <ide> } <ide> <del>/* return obj[META_KEY].deps */ <ide> function metaForDeps(obj, meta) { <ide> return keysForDep(obj, meta, 'deps'); <ide> }
1
Python
Python
remove default value for required argument
3a9ef1f2ba89b77f61a7791681edd60661364fc6
<ide><path>libcloud/compute/drivers/maxihost.py <ide> def list_key_pairs(self): <ide> data = self.connection.request('/account/keys') <ide> return list(map(self._to_key_pair, data.object['ssh_keys'])) <ide> <del> def create_key_pair(self, name, public_key=''): <add> def create_key_pair(self, name...
1
Python
Python
fix typo in airflow/cli/cli_parser.py
c839705bf62313827e3f0c4468176923624627a4
<ide><path>airflow/cli/cli_parser.py <ide> def _format_action(self, action: Action): <ide> <ide> self._indent() <ide> subactions = action._get_subactions() # pylint: disable=protected-access <del> action_subcommnads, group_subcommnands = partition( <add> action_subcommand...
1
Go
Go
remove duplicate imports
5dbfe310fe624c66714f8c5017692f528af4c87f
<ide><path>pkg/libcontainer/nsinit/nsinit/main.go <ide> import ( <ide> <ide> "github.com/dotcloud/docker/pkg/libcontainer" <ide> "github.com/dotcloud/docker/pkg/libcontainer/nsinit" <del> <del> "github.com/dotcloud/docker/pkg/libcontainer" <del> "github.com/dotcloud/docker/pkg/libcontainer/nsinit" <ide> ) <ide> <id...
1
Javascript
Javascript
resolve the query back to the promise
f52d5b536901b5e9136556afb56e2c710aec7568
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> User.prototype.requestAuthEmail = requestAuthEmail; <ide> <ide> User.prototype.requestUpdateEmail = function requestUpdateEmail(newEmail) { <add> <ide> const currentEmail = this.email; <ide> const isOwnEmail = isTheSame(newEmail...
2
PHP
PHP
fix uuids when queueing
18d26df24f1f3b17bd20c7244d9b85d273138d79
<ide><path>src/Illuminate/Notifications/ChannelManager.php <ide> public function sendNow($notifiables, $notification, array $channels = null) <ide> foreach ($channels as $channel) { <ide> $notification = clone $original; <ide> <del> $notification->id = $notificationId; <add> ...
1
Ruby
Ruby
update resolve_link_as to include svg
d9fda555942bfb6bcb1f75477b1425e2ab3162f5
<ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb <ide> def resolve_link_as(extname, mime_type) <ide> "style" <ide> elsif extname == "vtt" <ide> "track" <add> elsif extname == "svg" <add> "image" <ide> elsif (type = mime_type.to_s.split("/"...
2
Python
Python
rebuild model if necessary, fixes
9904bdf23344c3bafac00c1a71cac65a1f1d8d48
<ide><path>keras/models.py <ide> def get_layer(self, name=None, index=None): <ide> # Returns <ide> A layer instance. <ide> """ <del> if self.model is None: <add> if not self.built: <ide> self.build() <ide> return self.model.get_layer(name, index) <ide> <ide...
2
Text
Text
fix use of "it's" in docs
d262285827d244a058319e9607f63c9e74e9fbb0
<ide><path>docs/_posts/2013-07-17-react-v0-4-0.md <ide> When you're ready, [go download it](/react/downloads.html)! <ide> * Removed `React.autoBind`. [Read our blog post for details...](http://facebook.github.io/react/blog/2013/07/02/react-v0-4-autobind-by-default.html) <ide> * Improvements to forms. We've written wrap...
2
Go
Go
hide version when not available
e3b58d302795fbbfa6c117774906a4c9efd536f4
<ide><path>commands.go <ide> func (cli *DockerCli) CmdVersion(args ...string) error { <ide> cmd.Usage() <ide> return nil <ide> } <del> <del> fmt.Fprintf(cli.out, "Client version: %s\n", VERSION) <add> if VERSION != "" { <add> fmt.Fprintf(cli.out, "Client version: %s\n", VERSION) <add> } <ide> fmt.Fprintf(cli.out...
1
Python
Python
fix mypy error in trie.py
b373c991f69e20d7e1dc92d1613e60a5605bf1a8
<ide><path>data_structures/trie/trie.py <ide> def __init__(self): <ide> self.nodes = dict() # Mapping from char to TrieNode <ide> self.is_leaf = False <ide> <del> def insert_many(self, words: [str]): <add> def insert_many(self, words: list[str]): <ide> """ <ide> Inserts a list of...
1
Ruby
Ruby
add mini-validator on creating migration
d965bbfe9f45be8d203a85482923253c751a20bd
<ide><path>activerecord/lib/rails/generators/active_record/migration/migration_generator.rb <ide> class MigrationGenerator < Base <ide> <ide> def create_migration_file <ide> set_local_assigns! <add> validate_file_name! <ide> migration_template "migration.rb", "db/migrate/#{file_name}.rb" <...
2
Go
Go
reduce cli time, move some to unit tests
faab71701f710a8862e71d4ecd6a86cef49f67b9
<ide><path>builder/dockerfile/dispatchers.go <ide> package dockerfile <ide> <ide> import ( <ide> "fmt" <del> "os" <del> "path/filepath" <ide> "regexp" <ide> "runtime" <ide> "sort" <ide> import ( <ide> "github.com/docker/docker/api" <ide> "github.com/docker/docker/builder" <ide> "github.com/docker/docker/pkg/sig...
9
PHP
PHP
update 1.x @link in docblocks
b8488b8dfe47658d06f643f0534b0a36f6f97981
<ide><path>app/webroot/test.php <ide> * <ide> * PHP 5 <ide> * <del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> <add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> <ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * <id...
282
Go
Go
use strings.cut, and refactor
3f935d0e2c8027fdecac14398e378e79d57f49dd
<ide><path>daemon/graphdriver/zfs/zfs_freebsd.go <ide> package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" <ide> <ide> import ( <del> "fmt" <ide> "strings" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> import ( <ide> func checkRootdirFs(rootdir string) error { <ide> var buf un...
1
Python
Python
add compatibility with pip >= 1.4 / issue #270
3fd75525207eb13105e7bd1f4daed913ae76131d
<ide><path>setup.py <ide> <ide> setup( <ide> name='Glances', <del> version='1.7a', <add> version='1.7', <ide> description="A cross-platform curses-based monitoring tool", <ide> long_description=open('README.rst').read(), <ide> author='Nicolas Hennion', <ide> author_email='nicolas@nicolargo.co...
1
Python
Python
replace use of dict.has_key with `key in dict`
ac17525039b127e8712c402d0b09ffa864c37ef5
<ide><path>docs/_ext/djangodocs.py <ide> def visit_snippet(self, node): <ide> linenos = node.rawsource.count('\n') >= self.highlightlinenothreshold - 1 <ide> fname = node['filename'] <ide> highlight_args = node.get('highlight_args', {}) <del> if node.has_key('language'): <add> if 'language' in node: <...
1
Java
Java
fix error in html syntax in javadoc
80622803b245c63be5a9cfc21fa53171f8372edf
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java <ide> public static <A extends Annotation> A getAnnotation(Method method, Class<A> ann <ide> * resolvable (e.g. because nested Class values in annotation attributes <ide> * failed to resolve at runtime) <ide> * @since 4....
1
Javascript
Javascript
remove require.paths from process object
1395cba6cec0fb9179b39c12274e13e66e935130
<ide><path>src/node.js <ide> function existsSync (path) { <ide> <ide> <ide> <del>process.paths = []; <add>var modulePaths = []; <ide> <ide> if (process.env["HOME"]) { <del> process.paths.unshift(path.join(process.env["HOME"], ".node_libraries")); <add> modulePaths.unshift(path.join(process.env["HOME"], ".node_lib...
1
Ruby
Ruby
fix ruby warnings
46db463d068d9b24c99f11a1c78dac1c1bfb45c2
<ide><path>activestorage/lib/active_storage/attached/macros.rb <ide> module ActiveStorage::Attached::Macros <ide> # (i.e. destroyed) whenever the record is destroyed. <ide> def has_one_attached(name, dependent: :purge_later) <ide> define_method(name) do <del> instance_variable_get("@active_storage_attached...
6
PHP
PHP
add sort conditions to normalize result ordering
be1c45d148fb2c3e49a689917bd1516c211d928b
<ide><path>lib/Cake/Test/TestCase/ORM/QueryTest.php <ide> public function testHasManyEagerLoading($strategy) { <ide> $query = new Query($this->connection); <ide> $table = Table::build('author', ['connection' => $this->connection]); <ide> Table::build('article', ['connection' => $this->connection]); <del> $table-...
1
Javascript
Javascript
implement a clone method for durations
77b2a3b6ada4c782df2947117ac92e54b2aad0ba
<ide><path>src/lib/duration/clone.js <add>import { createDuration } from './create'; <add> <add>export function clone () { <add> return createDuration(this); <add>} <add> <ide><path>src/lib/duration/prototype.js <ide> import { abs } from './abs'; <ide> import { add, subtract } from './add-subtract'; <ide> import { a...
3
Go
Go
normalize labels before validation
b81948089904c8b6002b645a7c3f1d7062f70ed6
<ide><path>daemon/config/config.go <ide> func Reload(configFile string, flags *pflag.FlagSet, reload func(*Config)) error <ide> newConfig = New() <ide> } <ide> <del> if err := Validate(newConfig); err != nil { <del> return errors.Wrap(err, "file configuration validation failed") <del> } <del> <ide> // Check if du...
1
Javascript
Javascript
add geolocation polyfill
4681da54205b3c2e682850c4b5b5fcb655a296c4
<ide><path>website/server/extractDocs.js <ide> function componentsToMarkdown(type, json, filepath, i, styles) { <ide> return res; <ide> } <ide> <add>var n; <add> <add>function renderComponent(filepath) { <add> var json = docgen.parse( <add> fs.readFileSync(filepath), <add> docgenHelpers.findExportedOrFirst, <...
2
Text
Text
add v3.2.1 to changelog
372aca378c51e19daa3bd82be07b759b0b0003ce
<ide><path>CHANGELOG.md <ide> - [#16692](https://github.com/emberjs/ember.js/pull/16692) [DEPRECATION] [emberjs/rfcs#322](https://github.com/emberjs/rfcs/pull/322) Implement `Ember.copy`/`Ember.Copyable` deprecation. <ide> <ide> <add>### v3.2.1 (June 19, 2018) <add> <add>- [#16750](https://github.com/emberjs/ember.js...
1
Text
Text
move changelog entry to active record
53954aa4762f5c4d1b28af3d382a40fd3ec04229
<ide><path>activemodel/CHANGELOG.md <del>* Take into account UTC offset when assigning string representation of <del> timestamp with offset specified to attribute of time type. <del> <del> *Andrey Novikov* <del> <ide> ## Rails 5.0.0.beta1 (December 18, 2015) ## <ide> <ide> * Validate multiple contexts on `va...
2
Ruby
Ruby
remove obsolete nil guard
fef8b0871de845dd7e9f5f6a40dbcda7620a4960
<ide><path>Library/Homebrew/cmd/update.rb <ide> def diff <ide> <ide> def `(cmd) <ide> out = super <del> if $? && !$?.success? <del> $stderr.puts out <add> unless $?.success? <add> $stderr.puts(out) unless out.empty? <ide> raise ErrorDuringExecution.new(cmd) <ide> end <ide> ohai(cmd,...
1
PHP
PHP
add typehint to helpers
5f851f3c35f5fda2600087b2c4b7477711df38eb
<ide><path>src/View/Helper.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> class Helper implements EventListenerInterface <ide> /** <ide> * T...
11
Go
Go
say something useful during docker load
6986a3220fe59146eeddeaa865561472abc7baeb
<ide><path>image/tarexport/load.go <ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool) <ide> } <ide> <ide> var parentLinks []parentLink <add> var imageIDsStr string <add> var imageRefCount int <ide> <ide> for _, m := range manifest { <ide> configPath, err := safePath(tmpDir, m....
2
PHP
PHP
fix the parent permissions
1c92ee586af684ee82f6560d582475fa6bd430ae
<ide><path>src/Illuminate/Cache/FileStore.php <ide> protected function ensureCacheDirectoryExists($path) <ide> <ide> if (! $this->files->exists($directory)) { <ide> $this->files->makeDirectory($directory, 0777, true, true); <add> <add> // We are creating two levels of prefix directories,...
2
Javascript
Javascript
improve robustness of retrieving webgl version
1e6894562b43bcc81dac6d3c91121f07260d41e4
<ide><path>src/renderers/webgl/WebGLState.js <ide> function WebGLState( gl, extensions, paramThreeToGL ) { <ide> <ide> var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS ); <ide> <del> var lineWidthAvailable = parseFloat(gl.getParameter(gl.VERSION).split(' ')[1]) >= 1.0; <add> var glVersion = gl.getParame...
1
Go
Go
remove trailing whitespace in user-agent
42734394b0ec238c88bc3ef09454df411b8f3776
<ide><path>utils/http.go <ide> package utils <ide> <ide> import ( <del> "bytes" <ide> "io" <ide> "net/http" <ide> "strings" <ide> type VersionInfo interface { <ide> } <ide> <ide> func validVersion(version VersionInfo) bool { <del> stopChars := " \t\r\n/" <del> if strings.ContainsAny(version.Name(), stopChars) { <a...
1
Mixed
Javascript
link documentation to webpack.js.org
ea4be07d451e42c6ee02854dd8bffa3a3d3e37c8
<ide><path>CONTRIBUTING.md <ide> that include your webpack.config.js and relevant files are more likely to receiv <ide> If you have created your own loader/plugin please include it on the relevant <ide> documentation pages: <ide> <del>[List of loaders](https://webpack.github.io/docs/list-of-loaders.html) <del>[List ...
8
Text
Text
update debugging guide to use byebug
eb2d555f5c2e504f9de73dd083f148336f5ffa19
<ide><path>guides/source/debugging_rails_applications.md <ide> The contents of the block, and therefore the string interpolation, is only <ide> evaluated if debug is enabled. This performance savings is only really <ide> noticeable with large amounts of logging, but it's a good practice to employ. <ide> <del>Debuggin...
1
Ruby
Ruby
remove array.wrap calls in activerecord
2958a1e14e1636ae84d3580f4c7a5a7baeab2b8b
<ide><path>activerecord/lib/active_record/associations/association_scope.rb <ide> def initialize(association) <ide> <ide> def scope <ide> scope = klass.unscoped <del> scope = scope.extending(*Array.wrap(options[:extend])) <add> scope = scope.extending(*Array(options[:extend])) <ide> <ide> ...
13
Javascript
Javascript
increase coverage for trace_events.js
07ba2eb675a4b58f9c43dc2d209d96b0bec2baf3
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual( <ide> // Tracing class respects inspect depth. <ide> try { <ide> const trace = require('trace_events').createTracing({ categories: ['fo'] }); <del> const actual = util.inspect({ trace }, { depth: 0 }); <del> assert.strictEqual(actual,...
1
Java
Java
fix scrolling events for rn
ca834f96afcb99a7f1f4eec0a864f4f5b33a632b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java <ide> <ide> package com.facebook.react.uimanager; <ide> <del>import java.util.HashMap; <del>import java.util.Map; <del> <del>import android.util.DisplayMetrics; <ide> import android.view.accessibility.AccessibilityEvent; ...
1
PHP
PHP
remove renderable from component
9cba528a36893789f88f7aff71cbf75ba6a56841
<ide><path>src/Illuminate/View/Component.php <ide> <ide> use Closure; <ide> use Illuminate\Container\Container; <del>use Illuminate\Contracts\Support\Renderable; <ide> use Illuminate\Support\Facades\View; <ide> use Illuminate\Support\Str; <ide> use ReflectionClass; <ide> use ReflectionMethod; <ide> use ReflectionPrope...
1
Python
Python
fix tatoeba skip
eb6313e823c7979f1f174d1e59a3dca32064a84a
<ide><path>examples/seq2seq/test_tatoeba_conversion.py <ide> from transformers.testing_utils import slow <ide> <ide> <del>@unittest.skipUnless(os.path.exists(DEFAULT_REPO)) <add>@unittest.skipUnless(os.path.exists(DEFAULT_REPO), "Tatoeba directory does not exist.") <ide> class TatoebaConversionTester(unittest.TestCas...
1
Ruby
Ruby
kick different instrumentation method
804f5b3c2af90b69a51209c56739a077f3fb632b
<ide><path>actionview/lib/action_view/template.rb <ide> def supports_streaming? <ide> # we use a bang in this instrumentation because you don't want to <ide> # consume this in production. This is only slow if it's being listened to. <ide> def render(view, locals, buffer=nil, &block) <del> instrument("!...
1
Javascript
Javascript
remove unused attrnode
7d342b6682b95692d2d93e7a8a787dc3d6a1d655
<ide><path>packages/ember-views/lib/attr_nodes/attr_node.js <del>/** <del>@module ember <del>@submodule ember-htmlbars <del>*/ <del> <del>import Ember from 'ember-metal/core'; <del>import { <del> read, <del> subscribe, <del> unsubscribe <del>} from "ember-metal/streams/utils"; <del>import run from "ember-metal/run_l...
1
Text
Text
move use of named routes to beggining of the guide
33ce495884eaeedc9445f8a08eb606af6de972a9
<ide><path>guides/source/getting_started.md <ide> Now that you've seen how to create a controller, an action and a view, let's cre <ide> <ide> In the Blog application, you will now create a new _resource_. A resource is the term used for a collection of similar objects, such as posts, people or animals. You can create...
1
Javascript
Javascript
fix warnings in reactcomponentlifecycle test
9e9d8dbe76db93db6176d041d186c10480f4d63c
<ide><path>src/core/__tests__/ReactComponentLifeCycle-test.js <ide> describe('ReactComponentLifeCycle', function() { <ide> var PropsUpdaterInOnDOMReady = React.createClass({ <ide> componentDidMount: function() { <ide> this.refs.theSimpleComponent.setProps({ <del> value: this.props.valueToUseI...
1