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
add table_shema to select query
6e0e2cf09a910f37eb5f84bbafdbdf0063637934
<ide><path>src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php <ide> public function compileTableExists() <ide> * @param string $table <ide> * @return string <ide> */ <del> public function compileColumnExists($table) <add> public function compileColumnExists() <ide> { <del> return "select column_name fro...
2
Python
Python
add batteries % to the sensors list
87258ebf95c413eb2d89258dbb9c406b6d2891d5
<ide><path>glances/plugins/glances_batpercent.py <ide> class Plugin(GlancesPlugin): <ide> def __init__(self, args=None): <ide> GlancesPlugin.__init__(self, args=args) <ide> <del> #!!! TODO: display plugin... <del> <ide> # Init the sensor class <ide> self.glancesgrabbat = glancesGrabB...
2
Java
Java
ignore null attributes in abstractview
9ce5a18d96deb1207889ade128210acfb6adaeaa
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java <ide> public Mono<Void> render(@Nullable Map<String, ?> model, @Nullable MediaType con <ide> protected Mono<Map<String, Object>> getModelAttributes( <ide> @Nullable Map<String, ?> model, ServerWebExchange exchange...
1
Python
Python
add links to entities into the tpl_ent-template
7562fb53545f396848bd55e774adf1a6b1686af8
<ide><path>spacy/displacy/templates.py <ide> <mark class="entity" style="background: {bg}; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;"> <ide> {text} <ide> <span style="font-size: 0.8em; font-weight: bold; line-height: 1; border-radius: 0.35em; vertical-align: middle; margin-...
1
Go
Go
skip utf-8 bom bytes from dockerfile if exists
678c80f9256021ce74184fdd6b612d9dea377fba
<ide><path>builder/dockerfile/parser/parser.go <ide> package parser <ide> <ide> import ( <ide> "bufio" <add> "bytes" <ide> "fmt" <ide> "io" <ide> "regexp" <ide> func Parse(rwc io.Reader) (*Node, error) { <ide> root.StartLine = -1 <ide> scanner := bufio.NewScanner(rwc) <ide> <add> utf8bom := []byte{0xEF, 0xBB, 0...
2
Javascript
Javascript
use .call instead of .apply. minor
056a729115c2c2299fafc6d1c31efe135a9c78e4
<ide><path>pdf.js <ide> var PDFFunction = (function() { <ide> if (!typeFn) <ide> error('Unknown type of function'); <ide> <del> typeFn.apply(this, [fn, dict]); <add> typeFn.call(this, fn, dict); <ide> }; <ide> <ide> constructor.prototype = {
1
Ruby
Ruby
use standard tab accessor
5ac4e4f0714ffb364ac528d1a9b6697ae1693bf6
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade <ide> end <ide> <ide> def upgrade_formula f <del> # Generate using `for_keg` since the formula object points to a newer version <del> # that doesn't exist yet. Use `opt_prefix` to guard against keg-only installs. <del> # Also, guard against old ...
1
PHP
PHP
add a schema loader for cakephp core tests
f317944eb7fc99a2641095d1070fbd25c6d8683d
<ide><path>src/TestSuite/Schema/SchemaGenerator.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For...
5
Python
Python
remove unused variables in templates
495580dad193b7a8405b717b60089574de6563c7
<ide><path>templates/adding_a_new_example_script/utils_xxx.py <ide> def write_predictions_extended( <ide> orig_data = json.load(reader)["data"] <ide> <ide> qid_to_has_ans = make_qid_to_has_ans(orig_data) <del> has_ans_qids = [k for k, v in qid_to_has_ans.items() if v] <del> no_ans_qids = [k for k, v ...
1
Python
Python
replace pkg_resources with importlib_metadata
abb74300037de304823a9ce0b76973b4a477ed93
<ide><path>src/transformers/file_utils.py <ide> <ide> import requests <ide> from filelock import FileLock <add>from transformers.utils.versions import importlib_metadata <ide> <ide> from . import __version__ <ide> from .hf_api import HfFolder <ide> from .utils import logging <ide> <ide> <del># The package importlib...
3
Python
Python
fix rackspace tests
0d1fdcec8864dda5e70259191bac3231e84b4df6
<ide><path>libcloud/test/compute/test_rackspace.py <ide> class RackspaceNovaLonTests(BaseRackspaceNovaTestCase, OpenStack_1_1_Tests): <ide> driver_args = RACKSPACE_NOVA_PARAMS <ide> driver_kwargs = {'region': 'lon'} <ide> <del> conn_classes = (RackspaceNovaLonMockHttp, RackspaceNovaLonMockHttp) <add> con...
1
Javascript
Javascript
fix wrong aspath on 404
c9e379c3bf3c028900f0feb7876590cf85fdb199
<ide><path>packages/next/client/index.js <ide> if ( <ide> page === '/_error' && <ide> hydrateProps && <ide> hydrateProps.pageProps && <del> hydrateProps.pageProps.statusCode === '404' <add> hydrateProps.pageProps.statusCode === 404 <ide> ) <ide> ) { <ide> asPath = delBasePath(asPath) <ide><path>te...
2
PHP
PHP
add basepath() method to application contract
bfeaa370a77b9c853adae6faba4143ad683c0172
<ide><path>src/Illuminate/Contracts/Foundation/Application.php <ide> interface Application extends Container { <ide> * @return string <ide> */ <ide> public function version(); <add> <add> /** <add> * Get the base path of the Laravel installation. <add> * <add> * @return string <add> */ <add> public function b...
1
Ruby
Ruby
remove redundant --greedy
8abe60d2dc3f010112aa671a82e4dceb22c11e5b
<ide><path>Library/Homebrew/test/cask/cli/upgrade_spec.rb <ide> end <ide> <ide> describe "with --greedy it checks additional Casks" do <del> it 'includes the Casks with "auto_updates true" or "version latest" with --greedy' do <add> it 'includes the Casks with "auto_updates true" or "version latest"'...
1
PHP
PHP
fix eager capture + syntactic sugar
fc779336bbf2559377d3409cf20f6b2db191d9fd
<ide><path>src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php <ide> public function __construct(Blueprint $blueprint, $attributes = []) <ide> */ <ide> public function constrained($table = null, $column = 'id') <ide> { <del> return $this->references($column)->on($table ?: Str::plural(Str::b...
5
Text
Text
fix spelling error
534824e23273d42d0a95cf43c6583615685a60f8
<ide><path>curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-and-save-a-record-of-a-model.english.md <ide> In this challenge you will have to create and save a record of a model. <ide> <ide> ## Instructions <ide> <section id='instructions'> <del>Create a document instance using the <c...
1
Go
Go
add spec file support for windows plugin discovery
36cf93fb0c45ce62b3cb1e82e1ecae1486017c9b
<ide><path>pkg/plugins/discovery.go <ide> var ( <ide> // ErrNotFound plugin not found <ide> ErrNotFound = errors.New("plugin not found") <ide> socketsPath = "/run/docker/plugins" <del> specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"} <ide> ) <ide> <ide> // localRegistry defines a registry th...
3
PHP
PHP
use local configuration options
2ae5872a24a71094521c06b4f682e053f9ec8fe6
<ide><path>src/Illuminate/Broadcasting/BroadcastManager.php <ide> protected function callCustomCreator(array $config) <ide> */ <ide> protected function createPusherDriver(array $config) <ide> { <del> $pusher = new Pusher($config['key'], $config['secret'], <del> $config['app_id'], $config[...
1
Javascript
Javascript
fix path.relative() for prefixes at root
f296a7f16f641a432547b5c682fdbdc9cafbaac2
<ide><path>lib/path.js <ide> const win32 = { <ide> // We get here if `from` is the exact base path for `to`. <ide> // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz' <ide> return toOrig.slice(toStart + i + 1); <del> } else if (lastCommonSep === 2) { <add> }...
2
PHP
PHP
improve comments in filter class
7f3baf9742e61d68b3be3ca0b4f13c6b176c1429
<ide><path>system/filter.php <ide> class Filter { <ide> */ <ide> public static function call($filters, $parameters = array(), $override = false) <ide> { <del> // -------------------------------------------------------------- <del> // Load the filters if necessary. <del> // ---------------------------------------...
1
Python
Python
allow specifying parse function
3256c49facca47e3da36842fe3239614c5608cd3
<ide><path>official/resnet/cifar10_main.py <ide> def preprocess_image(image, is_training): <ide> <ide> def input_fn(is_training, data_dir, batch_size, num_epochs=1, <ide> dtype=tf.float32, datasets_num_private_threads=None, <del> num_parallel_batches=1): <add> num_parallel_batches=...
2
Ruby
Ruby
drop unnecessary parens
d2dc4e559982774b8e7d1e3eb0cdf40c97180778
<ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb <ide> def expand_rpath(file, bad_name) <ide> suffix = bad_name.sub(/^@rpath/, "") <ide> <ide> file.rpaths.each do |rpath| <del> return (rpath/suffix) if (rpath/suffix).exist? <add> return rpath/suffix if (rpath/suffix).exist? <ide> end <id...
1
Text
Text
simplify doc [ci skip]
72e11abeaf6500fa81ee2260fa446fcabcc2a944
<ide><path>guides/source/layouts_and_rendering.md <ide> You can also pass in arbitrary local variables to any partial you are rendering <ide> as: :item, locals: {title: "Products Page"} %> <ide> ``` <ide> <del>Would render a partial `_product.html.erb` once for each instance of `product` in the `@products` ...
1
PHP
PHP
fix some bugs in contains
605e7f0dc56da4e29fd06e332c33e60f23b80b38
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function add($item) <ide> */ <ide> public function contains($key, $value = null) <ide> { <del> if (func_num_args() == 1) <add> if (func_num_args() == 1 && ! $key instanceof Closure) <ide> { <del> return ! is_null($this->find($key)); <add>...
1
Python
Python
remove long double test for repr round-trip
4d3cf3d11514342d8662012e6a7533ae8e81f53b
<ide><path>numpy/core/tests/test_scalarmath.py <ide> def test_int_from_long(self): <ide> <ide> <ide> class TestRepr(TestCase): <del> def test_float_repr(self): <del> for t in [np.float32, np.float64, np.longdouble]: <del> finfo=np.finfo(t) <del> last_fraction_bit_idx = finfo.nexp + fin...
1
Go
Go
add laura poitras to the names generator
883d1415355244b2a2710d0860e5019bc697839b
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Henri Poincaré made fundamental contributions in several fields of mathematics. https://en.wikipedia.org/wiki/Henri_Poincar%C3%A9 <ide> "poincare", <ide> <add> // Laura Poitras is a director and producer whose work, made possible by open source...
1
Javascript
Javascript
rewrote streams to be object oriented
99ffc9991e00210d9f4c2dc1a97fee5021553264
<ide><path>pdf.js <ide> var Stream = (function() { <ide> get length() { <ide> return this.end - this.start; <ide> }, <del> lookByte: function() { <del> if (this.pos >= this.end) <del> return; <del> return this.bytes[this.pos]; <del> }, <ide>...
1
PHP
PHP
remove useless `use`
11744da4ca866a291a305f6bf9d3b1bc3de18f84
<ide><path>tests/TestCase/Form/FormTest.php <ide> use Cake\Form\Schema; <ide> use Cake\TestSuite\TestCase; <ide> use Cake\Validation\Validator; <del>use RuntimeException; <ide> use TestApp\Form\AppForm; <ide> use TestApp\Form\FormSchema; <ide>
1
Text
Text
add migration guide for cli commands
011c07a9bf415879e94b1271d4cc832c0a45b138
<ide><path>UPDATING.md <ide> with third party services to the ``airflow.providers`` package. <ide> All changes made are backward compatible, but if you use the old import paths you will <ide> see a deprecation warning. The old import paths can be abandoned in the future. <ide> <del>### CLI changes <add>### CLI changes...
1
Ruby
Ruby
remove some evals from callback conditionals
a63a964a5d1ed02cf0df1b1a33a96ed2a9fa987b
<ide><path>activemodel/lib/active_model/callbacks.rb <ide> def _define_after_model_callback(klass, callback) #:nodoc: <ide> klass.define_singleton_method("after_#{callback}") do |*args, &block| <ide> options = args.extract_options! <ide> options[:prepend] = true <del> options[:if] = Array(o...
3
Python
Python
fix duplicate function name in test cases
6bb3e3aeb92af10743874e0f95911a9c7ffa9da2
<ide><path>test/__init__.py <ide> def test_list_images_response(self): <ide> self.assertTrue(isinstance(image, NodeImage)) <ide> <ide> <del> def test_list_images_response(self): <add> def test_list_locations_response(self): <ide> locations = self.driver.list_locations() <ide> self.as...
1
Ruby
Ruby
apply edits from @senny to close [ci skip]
93d2eeaad5f7e2a362297384fb840461980f675e
<ide><path>activerecord/lib/active_record/associations.rb <ide> def belongs_to(name, scope = nil, options = {}) <ide> # <ide> # class CreateDevelopersProjectsJoinTable < ActiveRecord::Migration <ide> # def change <del> # create_table :developers_projects, id: false do |t| <del> #...
1
Ruby
Ruby
remove deprecated method call in fixtureset
c9a0f1ab9616ca8e94f03327259ab61d22f04b51
<ide><path>activerecord/lib/active_record/fixture_set/table_rows.rb <ide> module ActiveRecord <ide> class FixtureSet <ide> class TableRows # :nodoc: <del> def initialize(table_name, model_class:, fixtures:, config:) <add> def initialize(table_name, model_class:, fixtures:) <ide> @model_class = m...
2
Python
Python
use python 3 style super calls
89e5acc1e2d57ec0c5419956023db27751a47545
<ide><path>tests/providers/exasol/hooks/test_exasol.py <ide> <ide> class TestExasolHookConn(unittest.TestCase): <ide> def setUp(self): <del> super(TestExasolHookConn, self).setUp() <add> super().setUp() <ide> <ide> self.connection = models.Connection( <ide> login='login', <ide> d...
3
Javascript
Javascript
change variable name to be more descriptive
7d55b8199960d92ec2ea6fe6b168674b3bb4005b
<ide><path>lib/url.js <ide> const querystring = require('querystring'); <ide> function urlParse(url, parseQueryString, slashesDenoteHost) { <ide> if (url instanceof Url) return url; <ide> <del> var u = new Url(); <del> u.parse(url, parseQueryString, slashesDenoteHost); <del> return u; <add> var urlObject = new U...
1
Python
Python
fix _shift_right function in tft5pretrainedmodel
06f1692b023a701ab2bb443fa4f0bdd58c6bd234
<ide><path>src/transformers/modeling_tf_t5.py <ide> def _shift_right(self, input_ids): <ide> decoder_start_token_id is not None <ide> ), "self.model.config.decoder_start_token_id has to be defined. In TF T5 it is usually set to the pad_token_id. See T5 docs for more information" <ide> <del> ...
1
Go
Go
unify numcpu implementation
6919b9879ba05c56c43c3c1d0059f44441145220
<ide><path>pkg/sysinfo/numcpu.go <del>//go:build !linux && !windows <del>// +build !linux,!windows <del> <ide> package sysinfo // import "github.com/docker/docker/pkg/sysinfo" <ide> <ide> import ( <ide> "runtime" <ide> ) <ide> <del>// NumCPU returns the number of CPUs <add>// NumCPU returns the number of CPUs. On Li...
4
Python
Python
add __pos__ to ndarrayoperatorsmixin
e799be5f6a1bb2e0a294a1b0f03a1dc5333f529b
<ide><path>numpy/lib/mixins.py <ide> class NDArrayOperatorsMixin(object): <ide> implement. <ide> <ide> This class does not yet implement the special operators corresponding <del> to ``divmod``, unary ``+`` or ``matmul`` (``@``), because these operation <del> do not yet have corresponding NumPy ufuncs. <a...
2
Text
Text
fix family default value in socket.connect
fd23c122631a83ea9b4cf069fb78dfb212ecb742
<ide><path>doc/api/net.md <ide> For TCP connections, available `options` are: <ide> * `host` {string} Host the socket should connect to. **Default:** `'localhost'`. <ide> * `localAddress` {string} Local address the socket should connect from. <ide> * `localPort` {number} Local port the socket should connect from. <del>...
1
Text
Text
update devops docs
7e0605ce2b447ebb5790bc52fc159913afbf07e2
<ide><path>docs/devops.md <ide> It is identical to our live production environment at `freeCodeCamp.org`, other <ide> <ide> Once the developer team [`@freeCodeCamp/dev-team`](https://github.com/orgs/freeCodeCamp/teams/dev-team/members) is happy with the changes on the staging application, these changes are moved every...
1
Javascript
Javascript
fix deltatime calculation
5840a9051d7a4e492e889d7162ae85d74b3c92d1
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<OptionalProps, Props, State> { <ide> const visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement); <ide> const contentLength = this._selectLength(e.nativeEvent.contentSize); <ide> const offset ...
1
Go
Go
use golint to check package util
17ce34116af4e8c6b66d0c7906efcae2fd75efc6
<ide><path>utils/experimental.go <ide> <ide> package utils <ide> <add>// ExperimentalBuild is a stub which always returns true for <add>// builds that include the "experimental" build tag <ide> func ExperimentalBuild() bool { <ide> return true <ide> } <ide><path>utils/git.go <ide> import ( <ide> "github.com/docker/...
4
Javascript
Javascript
improve assert message in http timeout test
36696cfe8479f3fd511124b60c24b4a6a33a80da
<ide><path>test/parallel/test-http-client-timeout-option-with-agent.js <ide> function doRequest() { <ide> const duration = Date.now() - start; <ide> // The timeout event cannot be precisely timed. It will delay <ide> // some number of milliseconds. <del> assert.ok(duration >= HTTP_CLIENT_TIMEOUT, <del> ...
1
Mixed
Javascript
fix nvc for rcttextinlineimage
0343e697fdbb3411e316a053264e670d31058f8e
<ide><path>Libraries/Image/Image.android.js <ide> let Image = (props: ImagePropsType, forwardedRef) => { <ide> : nativeProps; <ide> return ( <ide> <TextAncestor.Consumer> <del> {hasTextAncestor => <del> hasTextAncestor ? ( <del> <TextInlineImageNative...
5
Ruby
Ruby
move schema cache from connection to pool
49b6b211a922f73d0b083e7e4d2f0a91bd44da90
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> class ExclusiveConnectionTimeoutError < ConnectionTimeoutError <ide> end <ide> <ide> module ConnectionAdapters <add> module AbstractPool # :nodoc: <add> def get_schema_cache(connection) <add> @schema_cach...
6
Text
Text
fix sample command
f37c00279bd50d2aac38e3e2b67f6ab1826ef777
<ide><path>examples/cms-strapi/README.md <ide> Inside the Strapi directory, stop the server, [install GraphQL](https://strapi.i <ide> # If using Yarn: yarn strapi install graphql <ide> npm run strapi install graphql <ide> <del>npm run dev # or: yarn develop <add>npm run develop # or: yarn develop <ide> ``` <ide> <ide...
1
Javascript
Javascript
fix coding style in src/core/font_renderer.js
75de115938ed7fb0b7d6b2da12a09dd38ca412ed
<ide><path>src/core/font_renderer.js <ide> var FontRendererFactory = (function FontRendererFactoryClosure() { <ide> } <ide> <ide> function parseCmap(data, start, end) { <del> var offset = getUshort(data, start + 2) === 1 ? getLong(data, start + 8) : <del> getLo...
1
Mixed
Text
add changelog entry for
15331a2ac4113673d4948eda03e33d0d11d9f335
<ide><path>actionpack/CHANGELOG.md <add>* Add method `dig` to `session`. <add> <add> *claudiob*, *Takumi Shotoku* <add> <ide> * Controller level `force_ssl` has been deprecated in favor of <ide> `config.force_ssl`. <ide> <ide><path>actionpack/lib/action_dispatch/request/session.rb <ide> def [](key) <ide> ...
2
Javascript
Javascript
remove unused code from broken shaderskin.js
0287cab597c854f48b859cbf7eeb5f8b995d6314
<ide><path>examples/js/ShaderSkin.js <ide> THREE.ShaderSkin = { <ide> "#if MAX_POINT_LIGHTS > 0", <ide> <ide> "for ( int i = 0; i < MAX_POINT_LIGHTS; i ++ ) {", <del> <add> <ide> "vec3 pointVector = normalize( pointLights[ i ].direction );", <add> "float attenuation = calcLightAttenuation( le...
1
Javascript
Javascript
fix jsdoc documentations
b9c50fdb090cac8def50e576676463c739bd3046
<ide><path>lib/BannerPlugin.js <ide> class BannerPlugin { <ide> } <ide> <ide> /** <del> * @param {Compiler} compiler webpack compiler <add> * Apply the plugin <add> * @param {Compiler} compiler the compiler instance <ide> * @returns {void} <ide> */ <ide> apply(compiler) { <ide><path>lib/Chunk.js <ide> const ...
80
PHP
PHP
fix bug in listing method
36ff7b81aa351b336c1c80083587debca0069583
<ide><path>laravel/html.php <ide> private static function listing($type, $list, $attributes = array()) <ide> { <ide> if (is_array($value)) <ide> { <del> $html .= static::elements($type, $value); <add> $html .= static::listing($type, $value); <ide> } <ide> else <ide> {
1
Ruby
Ruby
exclude executables from metafiles
d4df9d44e09df6197275113b266df2b7d51a0339
<ide><path>Library/Homebrew/keg.rb <ide> def ==(other) <ide> <ide> def empty_installation? <ide> Pathname.glob("#{path}/**/*") do |file| <add> return false if file.executable? <ide> next if file.directory? <ide> basename = file.basename.to_s <ide> next if Metafiles.copy?(basename)
1
Python
Python
add support for raggedtensors to the dense layer
8101f6a7256319c598a0a28c5222ef36ba329453
<ide><path>keras/layers/core.py <ide> def call(self, inputs): <ide> if inputs.dtype.base_dtype != self._compute_dtype_object.base_dtype: <ide> inputs = tf.cast(inputs, dtype=self._compute_dtype_object) <ide> <add> if isinstance(inputs, tf.RaggedTensor) and inputs.shape[-1] is not None: <add> # In cas...
2
Ruby
Ruby
add a test which ensures namespaced roots
22c0390085eed6fa2c4b78e1a9465ae3b7861568
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def self.matches?(request) <ide> match 'description', :to => "account#description", :as => "description" <ide> resource :subscription, :credit, :credit_card <ide> <add> root :to => "account#index" <add> <ide> namespace :admin do <...
1
Javascript
Javascript
remove trailing space to fix lint error
60a48af9bee5289d4335475aef7c230cf3b40096
<ide><path>src/update-process-env.js <ide> const PLATFORMS_KNOWN_TO_WORK = new Set([ <ide> 'linux' <ide> ]) <ide> <del>// Shell command that returns env var=value lines separated by \0s so that <add>// Shell command that returns env var=value lines separated by \0s so that <ide> // newlines are handled properly <id...
1
Java
Java
add @override to remaining source files
94685481162a93666fc2f39b66223833a6bcb418
<ide><path>spring-aop/src/main/java/org/springframework/aop/TargetSource.java <ide> public interface TargetSource extends TargetClassAware { <ide> * target class. <ide> * @return the type of targets returned by this {@link TargetSource} <ide> */ <add> @Override <ide> Class<?> getTargetClass(); <ide> <ide> /** ...
300
Javascript
Javascript
fix jshint warnings and remove commented code
8226f3432b9a71f2f9c0c616161de328378985da
<ide><path>src/controllers/controller.bar.js <ide> module.exports = function(Chart) { <ide> var base = 0; <ide> <ide> if (xScale.options.stacked) { <add> var chart = me.chart; <add> var datasets = chart.data.datasets; <add> var value = Number(datasets[datasetIndex].data[index]); <ide> <del> var valu...
1
Ruby
Ruby
remove default argument
dc9872eb834444664cc423a3e1ff167055ebd078
<ide><path>Library/Homebrew/build_options.rb <ide> def initialize_copy(other) <ide> @args = other.args.dup <ide> end <ide> <del> def add name, description=nil <add> def add(name, description) <ide> description ||= case name.to_s <ide> when "universal" then "Build a universal binary" <ide> when ...
1
Javascript
Javascript
fix minor bug in concatenated modules
9aba345ae76a97e61d36825898be045eee0c8d1b
<ide><path>lib/optimize/ConcatenatedModule.js <ide> const getExternalImport = ( <ide> const used = <ide> exportName.length === 0 || <ide> importedModule.getUsedName(moduleGraph, exportName); <del> if (!used) return "/* unused reexport */undefined"; <add> if (!used) return "/* unused export */undefined"; <ide> con...
1
Javascript
Javascript
remove redirect build on dev
d1c26a09dca14bc0600f8af8838c5f016dbbbdcc
<ide><path>tools/scripts/ensure-env.js <ide> const { <ide> API_LOCATION: api, <ide> FORUM_LOCATION: forum, <ide> FORUM_PROXY_LOCATION: forumProxy, <del> LOCALE: locale <add> LOCALE: locale, <add> NODE_ENV: NODE_ENV <ide> } = process.env; <ide> <ide> const locations = { <ide> const clientStaticPath = path.reso...
1
Javascript
Javascript
fix axis line width when option is an array
f6d9a39cb8e8661e1d6a733d4b77fb3f3238935a
<ide><path>src/core/core.scale.js <ide> module.exports = Element.extend({ <ide> <ide> var itemsToDraw = []; <ide> <del> var axisWidth = me.options.gridLines.lineWidth; <add> var axisWidth = helpers.valueAtIndexOrDefault(me.options.gridLines.lineWidth, 0); <ide> var xTickStart = options.position === 'right' ? me...
1
Ruby
Ruby
add cop to check `depends_on` order and tests
09f343d4961c454100c01390761c8ebc153fe594
<ide><path>Library/Homebrew/rubocops.rb <ide> require_relative "./rubocops/formula_desc_cop" <ide> require_relative "./rubocops/components_order_cop" <ide> require_relative "./rubocops/components_redundancy_cop" <add>require_relative "./rubocops/dependency_order_cop" <ide> require_relative "./rubocops/homepage_cop" <id...
3
Python
Python
make savetxt work with file like objects
b82c1df6f99c62a120dfd9d5c606110d593d96e7
<ide><path>numpy/lib/npyio.py <ide> def savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='', <ide> fh = open(fname, 'wb') <ide> else: <ide> fh = open(fname, 'w') <del> elif hasattr(fname, 'seek'): <add> elif hasattr(fname, 'write'): <ide> fh = ...
1
Text
Text
add new discussion links to performance
f4c908b4e0b47a090fb4036e1f12fc1729fd1bb5
<ide><path>docs/faq/Performance.md <ide> ## Performance <ide> <ide> <a id="performance-scaling"></a> <del>### How well does Redux “scale” in terms of performance and architecture? <add>### How well does Redux “scale” in terms of performance and architecture? <ide> <ide> While there's no single definitive answer to t...
1
Mixed
Python
allow custom keyword in the header
ffdac0d93619b7ec6039b94ce0e563f0330faeb1
<ide><path>docs/api-guide/authentication.md <ide> For clients to authenticate, the token key should be included in the `Authorizat <ide> <ide> Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b <ide> <add>**Note:** If you want to use a different keyword in the header, such as `Bearer`, simply subclass ...
3
Go
Go
restore anonymus import in iptables_test.go
1589c43f9d0f61fc3fe4fdbb01244688bda80640
<ide><path>libnetwork/iptables/iptables_test.go <ide> import ( <ide> "strings" <ide> "sync" <ide> "testing" <add> <add> _ "github.com/docker/libnetwork/netutils" <ide> ) <ide> <ide> const chainName = "DOCKER-TEST"
1
Mixed
Python
add distribution strategy to keras benchmark
28863de1c832a27fa8c7d229c48b05207870be81
<ide><path>official/keras_application_models/README.md <ide> Synthetic dataset is used for the benchmark. <ide> Two custom callbacks are provided for model benchmarking: ExamplesPerSecondCallback and LoggingMetricCallback. For each callback, `epoch_based` and `batch_based` options are available to set the benchmark lev...
2
Text
Text
adjust translation to spread-syntax on portuguese
9c6cbc5732800bd271bccae468230516724da933
<ide><path>guide/portuguese/javascript/spread-syntax/index.md <ide> title: Spread syntax <ide> localeTitle: Espalhe a sintaxe <ide> --- <del>## Espalhe a sintaxe <add>## Operador Spread <ide> <del>A sintaxe de propagação permite que uma iterável, como uma expressão de matriz ou cadeia, seja expandida em locais onde ze...
1
Javascript
Javascript
add mem caching for getblockmodules
283359261db1d83e8918fd950185075f0c5847fa
<ide><path>lib/buildChunkGraph.js <ide> const visitModules = ( <ide> blocksWithNestedBlocks, <ide> allCreatedChunkGroups <ide> ) => { <del> const { moduleGraph, chunkGraph } = compilation; <add> const { moduleGraph, chunkGraph, moduleMemCaches } = compilation; <ide> <ide> const blockModulesRuntimeMap = new Map(); <...
1
Mixed
Go
add os to docker info
b0fb0055d279bc25aa2f91c112929ea8eb92c1db
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdInfo(args ...string) error { <ide> } <ide> fmt.Fprintf(cli.out, "Execution Driver: %s\n", remoteInfo.Get("ExecutionDriver")) <ide> fmt.Fprintf(cli.out, "Kernel Version: %s\n", remoteInfo.Get("KernelVersion")) <add> fmt.Fprintf(cli.out, "Operating Syste...
6
Text
Text
add timothygu to collaborators
09ebdf14005cc948529b3f193ad550d5dfded26a
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Glen Keane** &lt;glenkeane.94@gmail.com&gt; <ide> * [thlorenz](https://github.com/thlorenz) - <ide> **Thorsten Lorenz** &lt;thlorenz@gmx.de&gt; <add>* [TimothyGu](https://github.com/TimothyGu) - <add>**Timothy Gu** &lt;...
1
Python
Python
remove duplicate code
41d89b7f761b2b2246d896b1e709f1fb3df28116
<ide><path>numpy/linalg/linalg.py <ide> def _linalgRealType(t): <ide> """Cast the type t to either double or cdouble.""" <ide> return double <ide> <del>_complex_types_map = {single : csingle, <del> double : cdouble, <del> csingle : csingle, <del> c...
1
Ruby
Ruby
restore private remote test
9810c2a412526346797f2f1ef60ddbccddeca2cb
<ide><path>Library/Homebrew/test/test_tap.rb <ide> def setup <ide> @path = Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" <ide> @path.mkpath <ide> @tap = Tap.new("Homebrew", "foo") <del> @tap.stubs(:private?).returns(true) if ENV["HOMEBREW_NO_GITHUB_API"] <ide> end <ide> <ide> def setup_tap_files <ide> ...
1
Ruby
Ruby
fix gh . allow swapping middleware of same class
e7ec96989543b95d3459fcdab1f31466ec179233
<ide><path>actionpack/lib/action_dispatch/middleware/stack.rb <ide> def insert_after(index, *args, &block) <ide> end <ide> <ide> def swap(target, *args, &block) <del> insert_before(target, *args, &block) <del> delete(target) <add> index = assert_index(target, :before) <add> insert(index, *a...
2
Go
Go
fix shouldrestart for on-failure handle
51e42e6ee01eb4b5c8c7678e2fc7be0f13ef6a68
<ide><path>container/container.go <ide> func copyEscapable(dst io.Writer, src io.ReadCloser, keys []byte) (written int64 <ide> // ShouldRestart decides whether the daemon should restart the container or not. <ide> // This is based on the container's restart policy. <ide> func (container *Container) ShouldRestart() bool...
6
Go
Go
move client-opts to a separate file
01eb35bfb3839436c2e5d2182b5f200008fd58a8
<ide><path>client/client.go <ide> import ( <ide> "net" <ide> "net/http" <ide> "net/url" <del> "os" <ide> "path" <del> "path/filepath" <ide> "strings" <ide> <ide> "github.com/docker/docker/api" <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/api/types/versions" <ide> "github.com/dock...
2
Ruby
Ruby
add backtrace cleaner on test unit railtie
345e0b274cb384f8d453256e90dd105e6c2ffa19
<ide><path>activesupport/lib/active_support/test_case.rb <ide> class TestCase < ::Test::Unit::TestCase <ide> alias_method :method_name, :name if method_defined? :name <ide> alias_method :method_name, :__name__ if method_defined? :__name__ <ide> else <del> # TODO: Figure out how to get the Rails::Ba...
2
Text
Text
fix language names in jquery section of guide
48312b3ff964e81855444d193c4ef2338a44136e
<ide><path>guide/english/certifications/front-end-libraries/jquery/target-html-elements-with-selectors-using-jquery/index.md <ide> title: Target HTML Elements with Selectors Using jQuery <ide> - You can "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much m...
3
Python
Python
add ability to test layers on dynamic shapes
9333179ad96fad2760221f2b3e2dec31f7c77f40
<ide><path>keras/utils/test_utils.py <ide> def layer_test(layer_cls, kwargs={}, input_shape=None, input_dtype=None, <ide> assert input_shape <ide> if not input_dtype: <ide> input_dtype = K.floatx() <del> input_data = (10 * np.random.random(input_shape)).astype(input_dtype) <add> ...
2
Ruby
Ruby
recommend gh over hub
0447b2200ff5da3d249d0f6cedb79ea0cbb4ce3b
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> def pull_args <ide> end <ide> <ide> def pull <del> odisabled "brew pull", "hub checkout" <add> odisabled "brew pull", "gh pr checkout" <ide> end <ide> end
1
Python
Python
use grid sampling to paste masks
430819908c10d8068d58af26cd60e7001ab51a2a
<ide><path>official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/panoptic_segmentation_generator.py <ide> <ide> import tensorflow as tf <ide> <add>from official.vision.beta.projects.panoptic_maskrcnn.modeling.layers import paste_masks <ide> <ide> class PanopticSegmentationGenerator(tf.keras.layers.Layer): ...
1
Mixed
Ruby
fix custom join_table name on habtm reflections
18fa87b8663ac88fd280e9860505598fe04cd46a
<ide><path>activerecord/CHANGELOG.md <add>* When using a custom `join_table` name on a `habtm`, rails was not saving it <add> on Reflections. This causes a problem when rails loads fixtures, because it <add> uses the reflections to set database with fixtures. <add> <add> Fixes #14845. <add> <add> *Kassio ...
4
Ruby
Ruby
improve activerecord strict_loading documentation
1b67adb819c97a406fac4d1b96302259fbceca1d
<ide><path>activerecord/lib/active_record/associations.rb <ide> module ClassMethods <ide> # Useful for defining methods on associations, especially when they should be shared between multiple <ide> # association objects. <ide> # [:strict_loading] <del> # Enforces strict loading ever...
1
Python
Python
add repr(value) to the assert msg in fieldvalues
ae95ed1ec2514becb6e2e41d47b8fd3c8b9c8f66
<ide><path>tests/test_fields.py <ide> def test_valid_inputs(self): <ide> Ensure that valid values return the expected validated data. <ide> """ <ide> for input_value, expected_output in get_items(self.valid_inputs): <del> assert self.field.run_validation(input_value) == expected_outpu...
1
Text
Text
update relation to other libraries.md
08199a0abe7410c9e7bd2104d7742900a4ab628d
<ide><path>docs/Basics/Relation to Other Libraries.md <ide> Immutable and most similar libraries are orthogonal to Redux. Feel free to use t <ide> <ide> **Redux doesn’t care *how* you store the state—it can be a plain object, an Immutable object, or anything else.** You’ll probably want a (de)serialization mechanism f...
1
Javascript
Javascript
fix redos in color.js
0f5de4f5da1014f81c00d309f93b1a1e709341e4
<ide><path>src/math/Color.js <ide> class Color { <ide> <ide> let color; <ide> const name = m[ 1 ]; <del> const components = m[ 2 ]; <add> const components = m[ 2 ].replace(/^\s*/, ''); <ide> <ide> switch ( name ) { <ide> <ide> case 'rgb': <ide> case 'rgba': <ide> <del> if ( color = /^\s*(\d...
1
Javascript
Javascript
add 5 sec timeout to test-tls-securepair-client
033ab7ebb6773f6831846fff1b6366adb4d798fb
<ide><path>test/simple/test-tls-securepair-client.js <ide> server.stdout.on('data', function(s) { <ide> }); <ide> <ide> <add>var timeout = setTimeout(function () { <add> server.kill(); <add> process.exit(1); <add>}, 5000); <add> <add> <ide> var serverExitCode = -1; <ide> server.on('exit', function(code) { <ide> s...
1
Javascript
Javascript
improve interpolation service add documentation
5001c1a1217772d2bffe108bafd475b24badf559
<ide><path>src/service/interpolate.js <ide> 'use strict'; <ide> <del>function $InterpolateProvider(){ <del> this.$get = ['$parse', function($parse){ <del> return function(text, templateOnly) { <del> var bindings = parseBindings(text); <del> if (hasBindings(bindings) || !templateOnly) { <del> retur...
3
Text
Text
add logo info to readme
b8c02632136320b8379956411134246cd2f6eb47
<ide><path>README.md <ide> Use Airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The <ide> - [Contributing](#contributing) <ide> - [Who uses Apache Airflow?](#who-uses-apache-airflow) <ide> - [Who Maintains Apache Airflow?](#who-maintains-apache-airflow) <add>- [Can I use the Apache Airflow logo i...
1
Text
Text
update pull request template
1730648e195a854fc44d1970737cb128e874d0d5
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <del><!--- Provide a general summary of your changes in the Title --> <add><!--- Provide a general summary of your changes in the title. --> <ide> <ide> ## Description <del><!--- Use this section to describe your changes and how they're affecting the code. --> <del><!-- If y...
1
Python
Python
use e.args instead of e.message
ad57c406224fed23ad7e638e11290f6cb87b95a7
<ide><path>test/test_slicehost.py <ide> def test_list_nodes(self): <ide> try: <ide> ret = self.driver.list_nodes() <ide> except Exception, e: <del> self.assertEqual(e.message, 'HTTP Basic: Access denied.') <add> self.assertEqual(e.args[0], 'HTTP Basic: Access denied.') ...
1
PHP
PHP
apply fixes from styleci
89a4318365b39b5d2cce25356ecd4f50bfc51e0b
<ide><path>src/Illuminate/Database/Eloquent/SoftDeletes.php <ide> protected function runSoftDelete() <ide> <ide> $query->update([ <ide> $this->getDeletedAtColumn() => $this->fromDateTime($time), <del> $this->getUpdatedAtColumn() => $this->fromDateTime($time) <add> $this->getUp...
2
PHP
PHP
add csrf middleware to main app stack
c0019c6fcb552f533607a6737688a1bcdecb2873
<ide><path>app/Providers/AppServiceProvider.php <ide> class AppServiceProvider extends ServiceProvider { <ide> 'Illuminate\Session\Middleware\Reader', <ide> 'Illuminate\Session\Middleware\Writer', <ide> 'Illuminate\View\Middleware\ErrorBinder', <add> 'App\Http\Middleware\CsrfMiddleware', <ide> ]; <ide> <ide> ...
1
Javascript
Javascript
add a test case for resolve.fallback
b89b536106338a1862215687c8d404fb2df5121f
<ide><path>test/configCases/resolve/fallback/a/1.js <add>module.exports = 1; <ide><path>test/configCases/resolve/fallback/a/2.js <add>module.exports = 'not 2'; <ide><path>test/configCases/resolve/fallback/b/2.js <add>module.exports = 2; <ide><path>test/configCases/resolve/fallback/index.js <add>it("ignores the fallback...
5
Ruby
Ruby
remove last uses of `@env[]` and `@env[]=`
e0b5a773ccb9c31a3fb76ba88813b6e41ca41466
<ide><path>actionpack/lib/action_dispatch/http/mime_negotiation.rb <ide> def use_accept_header <ide> end <ide> <ide> def format_from_path_extension <del> path = @env['action_dispatch.original_path'] || @env['PATH_INFO'] <add> path = get_header('action_dispatch.original_path') || get_header('P...
3
PHP
PHP
add command factory support
7ebc6af1ed457b3f78447e5d305f00de4c70995a
<ide><path>src/Console/CommandFactory.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * Licensed under The MIT License <add> * For full copyright and license information, please see the ...
5
PHP
PHP
remove most of the deprecated features in routing
09685ae4d50d7db30d726806fe8a3cc84f74aa94
<ide><path>src/Routing/Route/RedirectRoute.php <ide> */ <ide> class RedirectRoute extends Route <ide> { <del> <del> /** <del> * A Response object <del> * <del> * @var \Cake\Http\Response <del> * @deprecated 3.2.0 This property is unused. <del> */ <del> public $response; <del> <ide> /** <i...
9
Text
Text
clarify prerequisites in benchmark/readme.md
dbd5dc932d56389aa494fda6f87b2e8f52bd97b4
<ide><path>benchmark/README.md <ide> io.js APIs. <ide> <ide> ## Prerequisites <ide> <del>Most of the http benchmarks require [`wrk`][wrk] and [`ab`][ab] being installed. <del>These are most often available through your preferred package manager. <add>Most of the http benchmarks require [`wrk`][wrk] and [`ab`][ab] (Ap...
1
Javascript
Javascript
remove blank line
2c80b091225340ebb080490fa94293a3f1186bb9
<ide><path>tests/test-scale-linear.js <ide> console.log("domain unclamping:") <ide> console.log(" under -> ", x(-1)); <ide> console.log(" over -> ", x(11)); <ide> console.log(""); <del>
1
PHP
PHP
dump() and dd() with global scopes
5aa0c3abb3affeef1d8e5736da147b411892842c
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> class Builder <ide> * @var array <ide> */ <ide> protected $passthru = [ <del> 'insert', 'insertGetId', 'getBindings', 'toSql', <add> 'insert', 'insertGetId', 'getBindings', 'toSql', 'dump', 'dd', <ide> 'exists', 'doesntExi...
1