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
Text
Text
add v4.0.0-beta.8 to changelog
4f99f42070bc12a122cc7f45686d02b467c7d661
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.0.0-beta.8 (November 5, 2021) <add> <add>- [#19823](https://github.com/emberjs/ember.js/pull/19823) / [#19828](https://github.com/emberjs/ember.js/pull/19828) [BUGFIX] Fix deprecation `until` and link for Component.reopenClass and Component.reopen <add>...
1
Ruby
Ruby
fix bad default_compiler reference
86fa42b36c98e482490ca347849e041ee9316011
<ide><path>Library/Homebrew/tab.rb <ide> def unused_options <ide> end <ide> <ide> def compiler <del> super || MacOS.default_compiler <add> super || DevelopmentTools.default_compiler <ide> end <ide> <ide> def cxxstdlib
1
Ruby
Ruby
move object allocation out of loop
dfbcfafd9af046b3e8c79fe7309d31af6f82f9b2
<ide><path>railties/lib/rails/backtrace_cleaner.rb <ide> module Rails <ide> class BacktraceCleaner < ActiveSupport::BacktraceCleaner <ide> APP_DIRS_PATTERN = /^\/?(app|config|lib|test)/ <ide> RENDER_TEMPLATE_PATTERN = /:in `_render_template_\w*'/ <add> EMPTY_STRING = ''.freeze <add> SLASH = '/'.f...
1
Javascript
Javascript
handle scrolling of the dummy scrollbars directly
0999d0bf02ef6004f8cdbe237c24c635801a38a3
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', () => { <ide> expect(element.querySelectorAll('.line-number').length).toBe(9) <ide> expect(element.querySelectorAll('.line').length).toBe(9) <ide> <del> component.setScrollTop(5 * component.getLineHeight()) <del> ...
2
Javascript
Javascript
fix failing test added by e86e361. beautiful
22473e7c0be0ac93c430496b516586fdd31e5e86
<ide><path>dist/Immutable.dev.js <ide> var Range = function Range(start, end, step) { <ide> if (end == null) { <ide> end = Infinity; <ide> } <add> if (start === end && __EMPTY_RANGE) { <add> return __EMPTY_RANGE; <add> } <ide> step = step == null ? 1 : Math.abs(step); <ide> if (end < start) { <ide> ...
3
PHP
PHP
add tests for session's save method
78c19ef9a37e405e4e718e3723b3ec5458f872a0
<ide><path>tests/Session/SessionStoreTest.php <ide> <ide> use Mockery as m; <ide> use ReflectionClass; <add>use Illuminate\Support\Str; <ide> use SessionHandlerInterface; <ide> use Illuminate\Session\Store; <ide> use PHPUnit\Framework\TestCase; <ide> public function testSessionInvalidate() <ide> $this->assertC...
1
Text
Text
add missing docs for
271f54aea375158b808aa50db58711e7c1d3eef5
<ide><path>docs/sources/reference/api/docker_remote_api.md <ide> You can still call an old version of the API using <ide> total memory available (`MemTotal`). <ide> <ide> `POST /containers/create` <add> <ide> **New!** <ide> You can set the new container's MAC address explicitly. <ide> <ide> You can set the new contai...
1
Ruby
Ruby
remove dead code
348c29100c63e09f8af7dc7b08e137f2ebd243a4
<ide><path>activerecord/lib/active_record/tasks/database_tasks.rb <ide> def schema_file(format = ActiveRecord::Base.schema_format) <ide> end <ide> end <ide> <del> def load_schema_current_if_exists(format = ActiveRecord::Base.schema_format, file = nil, environment = env) <del> if File.exist?(f...
1
Ruby
Ruby
add support for private registry
b8954030e36b69508f3aa6747b9af04f1efaad92
<ide><path>Library/Homebrew/download_strategy.rb <ide> def resolve_url_basename_time_file_size(url, timeout: nil) <ide> return @resolved_info_cache[url] if @resolved_info_cache.include?(url) <ide> <ide> if (domain = Homebrew::EnvConfig.artifact_domain) <del> url = url.sub(%r{^((ht|f)tps?://)?}, "#{domain....
2
Ruby
Ruby
favor compound if over compound unless
eee5a0920297dafaeb51007add4be2052c31d4db
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def remove_macosxsdk version=MacOS.version <ide> delete('MACOSX_DEPLOYMENT_TARGET') <ide> delete('CPATH') <ide> remove 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib" <del> unless (sdk = MacOS.sdk_path(version)).nil? or MacOS::CLT.installed? <add> <add> if (sdk = ...
1
Ruby
Ruby
enforce http for gnu ftpmirror
a047fc08d6353949441f65b1efd5b0359ce027a9
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_urls <ide> problem "Please use \"http://ftpmirror.gnu.org\" instead of #{url}." <ide> end <ide> <add> # GNU's ftpmirror does NOT support SSL/TLS. <add> if url =~ %r[^https://ftpmirror\.gnu\.org/] <add> problem "Please use http:// for #{url}"...
1
Python
Python
add __str__ and __repr__ to periodic_event.event
3f5cef69faafae4ec49e8fad9fbfa9efc0f17436
<ide><path>research/astronet/light_curve_util/periodic_event.py <ide> def __init__(self, period, duration, t0): <ide> self._duration = duration <ide> self._t0 = t0 <ide> <add> def __str__(self): <add> return "<period={}, duration={}, t0={}>".format(self.period, self.duration, <add> ...
2
Python
Python
set version to v2.3.3.dev0
cd61d264ef4dbae642713169ade41404c24335df
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.3.2" <add>__version__ = "2.3.3.dev0" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod...
1
Ruby
Ruby
test some of the rc specification
3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def prepare! <ide> argv <ide> end <ide> <add> def self.default_rc_file <add> File.join(File.expand_path('~'), '.railsrc') <add> end <add> <ide> private <ide> <ide> def handle_version_request!(argumen...
2
PHP
PHP
remove unused property
d4f1b423350607582d33bbd9710747ea7558fd38
<ide><path>src/Illuminate/Cache/NullStore.php <ide> class NullStore extends TaggableStore <ide> { <ide> use RetrievesMultipleKeys; <ide> <del> /** <del> * The array of stored values. <del> * <del> * @var array <del> */ <del> protected $storage = []; <del> <ide> /** <ide> * Retrieve a...
1
PHP
PHP
fix tests on windows
c7687561da4216ce94ef11e969dc489193adb77e
<ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php <ide> public function testCreateSql() { <ide> SQL; <ide> $result = $table->createSql($connection); <ide> $this->assertCount(1, $result); <del> $this->assertEquals($expected, $result[0]); <add> $this->assertTextEquals($expected, $result[0]); <ide> } <i...
3
Text
Text
fix spelling errors
7506631c77e236dc43626d2c5441be2142ddcf28
<ide><path>guide/english/c/Dinamic Memory Management/index.md <ide> title: Dynamic Memory Management <ide> --- <ide> # Dynamic Memory Management <del>Sometimes you will need to allocate memory spaces in the heap also known as the dinamic memory. This is particulary usefull when you do not know during compile time how l...
1
Ruby
Ruby
fix the indentation
2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def polymorphic? <ide> <ide> protected <ide> <del> def actual_source_reflection # FIXME: this is a horrible name <del> self <del> end <add> def actual_source_reflection # FIXME: this is a horrible name <add> self <add...
1
Go
Go
improve error message
6a9fb81c5794166fc62e8fc5c638127d69f13eee
<ide><path>runtime.go <ide> func (runtime *Runtime) Create(config *Config, name string) (*Container, []strin <ide> <ide> // Set the enitity in the graph using the default name specified <ide> if _, err := runtime.containerGraph.Set(name, id); err != nil { <add> if strings.HasSuffix(err.Error(), "name are not unique...
1
Text
Text
finish the working with styles section
be229d374e1dd93e7bccac5bd904b6ec93d98cea
<ide><path>docs/packages/creating_a_package.md <ide> Let's get started! <ide> ## Changing Keybindings and Commands <ide> <ide> Since Changer is primarily concerned with the file tree, let's write a keybinding <del>that works only when the tree is active. Instead of using the default `toggle`, <add>that works only when...
1
Text
Text
fix yaml syntax in fs.md
0c49038f88086dd4ad79e471aa730d3891acc443
<ide><path>doc/api/fs.md <ide> and `fs.unwatchFile()` when possible. <ide> <!-- YAML <ide> added: v0.4.2 <ide> changes: <del> - version: v8.0.0 <add> - version: v8.0.0 <ide> pr-url: https://github.com/nodejs/node/pull/11919 <del> description: `NaN`, `Infinity`, and `-Infinity` are no longer valid time <del> ...
1
Python
Python
combine ma.sort and maskedarray.sort
9c865d565e10fa7461560fa3d99eadaa4feebcad
<ide><path>numpy/ma/core.py <ide> def argsort(a, axis=None, kind='quicksort', order=None, fill_value=None): <ide> <ide> def sort(a, axis=-1, kind='quicksort', order=None, endwith=True, fill_value=None): <ide> "Function version of the eponymous method." <del> a = narray(a, copy=True, subok=True) <add> a = np....
1
Python
Python
pass a tuple of alternatives to str.endswith()
b25a73f26a6b61ad4eee24e47a1db3d00e528955
<ide><path>configure.py <ide> def glob_to_var(dir_base, dir_sub, patch_dir): <ide> for ent in files: <ide> (path, dirs, files) = ent <ide> for file in files: <del> if file.endswith('.cpp') or file.endswith('.c') or file.endswith('.h'): <add> if file.endswith(('.cpp', '.c', '.h')): <ide> # sr...
1
Javascript
Javascript
delay some requires in animated
482b4b6bfaeedecbf155be835aa57ce7923dd6d1
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> */ <ide> 'use strict'; <ide> <del>var Easing = require('Easing'); <ide> var InteractionManager = require('InteractionManager'); <ide> var Interpolation = require('Interpolation'); <ide> var React = require('React'); <ide> type TimingAnimationConfigSing...
2
Go
Go
fix tty copy for driver
172260a49be6c3516edc6869d58957e844f9c69b
<ide><path>execdriver/namespaces/driver.go <ide> import ( <ide> "github.com/dotcloud/docker/execdriver/lxc" <ide> "github.com/dotcloud/docker/pkg/libcontainer" <ide> "github.com/dotcloud/docker/pkg/libcontainer/nsinit" <add> "io" <ide> "io/ioutil" <ide> "os" <ide> "os/exec" <ide> type dockerTtyTerm struct { <ide>...
1
Java
Java
fix typo in javadoc
5a0b768a3d81c7f3190b64162f96f69f91ee90c6
<ide><path>spring-web/src/main/java/org/springframework/web/server/adapter/HttpWebHandlerAdapter.java <ide> protected ServerWebExchange createExchange(ServerHttpRequest request, ServerHttp <ide> * Format the request for logging purposes including HTTP method and URL. <ide> * <p>By default this prints the HTTP metho...
1
PHP
PHP
add documentation on additional options
176ec2df0c562bf79c3b072514a2e90db6db0a08
<ide><path>lib/Cake/View/Helper/TimeHelper.php <ide> public function toRSS($dateString, $timezone = null) { <ide> /** <ide> * @see CakeTime::timeAgoInWords() <ide> * <add> * ## Addition options <add> * <add> * - `element` - The element to wrap the formatted time in. <add> * Has a few additional options: <add> * -...
1
Python
Python
branch a run_squad.py for albert
02d78796a206fb4e9a207eb3800e2ec5d18d9663
<ide><path>official/nlp/albert/run_squad.py <add># Copyright 2020 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <add># <add>...
6
Text
Text
add blank lines on empty seeds
65cc8006891080569196c2689534c5309172eb9c
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comment-your-javascript-code.md <ide> assert(code.match(/(\/\*)([^\/]{5,})(?=\*\/)/gm)); <ide> ## --seed-contents-- <ide> <ide> ```js <add> <ide> ``` <ide> <ide> # --solutions-- <ide><path>curriculum/challenges/engl...
13
Javascript
Javascript
replace non-ascii whitespace in source code
f3c5776b826169de26ff58e6616b99427d5b8db0
<ide><path>test/unit/wrap.js <ide> QUnit.module( "wrap", { <ide> } ); <ide> <ide> // See test/unit/manipulation.js for explanation about these 2 functions <del>function manipulationBareObj( value ) { <add>function manipulationBareObj( value ) { <ide> return value; <ide> } <ide>
1
Python
Python
add six as a requirement
e60680b12c30ad053f37488a398292b9cb2774aa
<ide><path>setup.py <ide> url='https://github.com/fchollet/keras', <ide> download_url='https://github.com/fchollet/keras/tarball/0.2.0', <ide> license='MIT', <del> install_requires=['theano', 'pyyaml'], <add> install_requires=['theano', 'pyyaml', 'six'], <ide> extras_require={ <ide> ...
1
Ruby
Ruby
add warnings for permission exceptions
dca5dc817617717ff7843ac969f23d83b73d079f
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def migrate_cache_entries_to_double_dashes(initial_version) <ide> target = HOMEBREW_CACHE/"#{prefix}--#{suffix}" <ide> <ide> if target.exist? <del> FileUtils.rm_rf child <add> begin <add> FileUtils.rm_rf child <add> rescue...
1
Text
Text
update doc with sample_weight and class_weight
e3d3d622189aa19d077ea2fec46bb9da67d85e9e
<ide><path>docs/sources/models.md <ide> model = keras.models.Sequential() <ide> - __batch_size__: int. Number of samples per gradient update. <ide> - __nb_epoch__: int. <ide> - __verbose__: 0 for no logging to stdout, 1 for progress bar logging, 2 for one log line per epoch. <add> ...
1
Go
Go
add scheme to fluentd-address
cb176c848e0731f77fa48b4e1a90ae74d1f2deae
<ide><path>daemon/logger/fluentd/fluentd.go <ide> import ( <ide> "fmt" <ide> "math" <ide> "net" <add> "net/url" <ide> "strconv" <ide> "strings" <ide> "time" <ide> <ide> "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/logger" <ide> "github.com/docker/docker/daemon/logger/loggerutils" <add> ...
1
Python
Python
perform model validation on worker init. closes
32558fba578171b0eeaf9fbee1060fa104f31c23
<ide><path>celery/fixups/django.py <ide> from __future__ import absolute_import <ide> <add>import io <ide> import os <ide> import sys <ide> import warnings <ide> def __init__(self, app): <ide> _oracle_database_errors <ide> ) <ide> <add> def validate_models(self): <add> from django.core.m...
1
PHP
PHP
remove deprecated parameters and update tests
45fe7eb709692024cd7b134392adda06e7746190
<ide><path>src/View/Helper/FormHelper.php <ide> protected function _domId($value) { <ide> * In addition to controller fields output, `$fields` can be used to control legend <ide> * and fieldset rendering. <ide> * `$this->Form->inputs('My legend');` Would generate an input set with a custom legend. <del> * Passing `f...
2
Javascript
Javascript
convert the annotation layer builder to es6 syntax
3554a93c2b1d2abd4e63540641a67b7c213afe98
<ide><path>web/annotation_layer_builder.js <ide> import { SimpleLinkService } from './pdf_link_service'; <ide> * @property {DownloadManager} downloadManager <ide> */ <ide> <del>/** <del> * @class <del> */ <del>var AnnotationLayerBuilder = (function AnnotationLayerBuilderClosure() { <add>class AnnotationLayerBuilder ...
2
Java
Java
fix checkstyle warning
bad87be30630b9a3283e092ea70b5579a8c6a9ad
<ide><path>spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java <ide> public void handleError(ClientHttpResponse response) throws IOException { <ide> } <ide> <ide> /** <del> * Return error message with details from the response body: <add> * Return error message with details fro...
1
Text
Text
add a changelog entry for [ci skip]
5ece2e4a4459065b5efd976aebd209bbf0cab89b
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *DHH* <ide> <add>* Add `Relation#pick` as short-hand for single-value plucks. <add> <add> *DHH* <add> <ide> <ide> Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes.
1
Javascript
Javascript
fix typo in code comment
c4d8ef643002a2b181029ffed22abd451fb326df
<ide><path>packages/react-dom/src/test-utils/ReactTestUtils.js <ide> function makeSimulator(eventType) { <ide> <ide> ReactDOM.unstable_batchedUpdates(function() { <ide> // Normally extractEvent enqueues a state restore, but we'll just always <del> // do that since we we're by-passing it here. <add> ...
1
Python
Python
run openai example running
777459b471f4b6b97b633a4ca6de21d5dce96202
<ide><path>examples/run_openai_gpt.py <ide> def load_rocstories_dataset(dataset_path): <ide> output.append((' '.join(line[1:5]), line[5], line[6], int(line[-1])-1)) <ide> return output <ide> <del>def pre_process_datasets(encoded_datasets, max_len, start_token, delimiter_token, clf_token): <del> """ ...
3
Python
Python
add missing init of schema_fields var
8d5ffef5990c8ae5780fa84c1a1f083fe925537c
<ide><path>airflow/contrib/operators/gcs_to_bq.py <ide> def execute(self, context): <ide> elif self.schema_object is None and self.autodetect is False: <ide> raise ValueError('At least one of `schema_fields`, `schema_object`, ' <ide> 'or `autodetect` must be ...
1
PHP
PHP
use push method
8dc112f61d2e90a0d83d0367bc11b1e4306d0f02
<ide><path>src/Illuminate/Support/Testing/Fakes/QueueFake.php <ide> public function pop($queue = null) <ide> public function bulk($jobs, $data = '', $queue = null) <ide> { <ide> foreach ($this->jobs as $job) { <del> $this->jobs[get_class($job)][] = [ <del> 'job' => $job, <del> ...
1
Ruby
Ruby
remove the habtm preloader
a03ea3ff97b43340d0904525083bf8bc7a1c6ebc
<ide><path>activerecord/lib/active_record/associations/preloader.rb <ide> class Preloader #:nodoc: <ide> autoload :HasManyThrough, 'active_record/associations/preloader/has_many_through' <ide> autoload :HasOne, 'active_record/associations/preloader/has_one' <ide> autoload :HasO...
2
Javascript
Javascript
remove 3rd argument from assert.strictequal
28b622cb08602d77512fa3d659451cd317dfcc41
<ide><path>test/parallel/test-http-res-write-after-end.js <ide> const server = http.Server(common.mustCall(function(req, res) { <ide> res.end(); <ide> <ide> const r = res.write('This should raise an error.'); <del> assert.strictEqual(r, true, 'write after end should return true'); <add> // write after end should...
1
Ruby
Ruby
remove stale methods constructing joins
394c05ed82c1fbfc1c5d27f223b49975f439729c
<ide><path>activerecord/lib/active_record/base.rb <ide> def construct_finder_arel(options = {}, scope = nil) <ide> relation <ide> end <ide> <del> def construct_join(joins) <del> case joins <del> when Symbol, Hash, Array <del> if array_of_strings?(joins) <del> ...
1
Python
Python
use future builtins
43fb28f769446c02f6cb4cbf5652080e05dff34c
<ide><path>celery/__compat__.py <ide> import sys <ide> <ide> from functools import reduce <add>from future_builtins import map <ide> from importlib import import_module <ide> from types import ModuleType <ide> <ide><path>celery/__init__.py <ide> <ide> from __future__ import absolute_import <ide> <add>from future_bu...
30
Javascript
Javascript
remove leftover code for tmppublishingfolder
7e17d2606021c556479442c60e3814017d32de3d
<ide><path>scripts/publish-npm.js <ide> const { <ide> publishAndroidArtifactsToMaven, <ide> } = require('./release-utils'); <ide> const fs = require('fs'); <del>const os = require('os'); <ide> const path = require('path'); <ide> const yargs = require('yargs'); <ide> <ide> const buildTag = process.env.CIRCLE_TAG; <id...
3
Javascript
Javascript
implement automatic mutable bindings ("auto-mut")
eabf61d42fcfaa6dde82f7f16304f08a0d5a61d0
<ide><path>packages/ember-glimmer-template-compiler/lib/plugins/transform-attrs-into-props.js <add>/** <add> @module ember <add> @submodule ember-glimmer <add>*/ <add> <add>/** <add> A Glimmer2 AST transformation that replaces all instances of <add> <add> ```handlebars <add> {{attrs.foo.bar}} <add> ``` <add> <add> ...
5
Python
Python
update time.py to solve the microsecond issues
bfee3a8999dd26a3b4001929371ec9d868f9bdff
<ide><path>celery/utils/time.py <ide> def remaining(start, ends_in, now=None, relative=False): <ide> start = start.replace(tzinfo=now.tzinfo) <ide> end_date = start + ends_in <ide> if relative: <del> end_date = delta_resolution(end_date, ends_in) <add> end_date = delta_resolution(end_date,...
1
Python
Python
set docker api version
795911eaf30c6f4cbe27b94b47a06196e9023c5c
<ide><path>libcloud/container/drivers/docker.py <ide> def __init__(self, key='', secret='', secure=False, host='localhost', <ide> port=port, <ide> key_file=key_file, <ide> ...
1
Ruby
Ruby
use kwargs to avoid hash slicing
b635eea70f8d13c555f529cef328aafabc4113d3
<ide><path>actionview/lib/action_view/digestor.rb <ide> def compute_and_store_digest(cache_key, options) # called under @@digest_monitor <ide> <ide> attr_reader :name, :finder, :options <ide> <del> def initialize(options) <del> @name, @finder = options.values_at(:name, :finder) <del> @options = optio...
1
PHP
PHP
update doc blocks
81611956f5f74d62785e625b15baa92a557fba42
<ide><path>lib/Cake/TestSuite/Fixture/CakeFixtureManager.php <ide> protected function _initDb() { <ide> * <ide> * @param array $fixtures the fixture names to load using the notation {type}.{name} <ide> * @return void <add> * @throws UnexpectedValueException when a referenced fixture does not exist. <ide> */ <ide> ...
1
PHP
PHP
run facade script
f06af0cdac95815fc1d707c0762639aebf52a165
<ide><path>src/Illuminate/Support/Facades/Auth.php <ide> * @method static \Illuminate\Auth\SessionGuard setRequest(\Symfony\Component\HttpFoundation\Request $request) <ide> * @method static \Illuminate\Support\Timebox getTimebox() <ide> * @method static \Illuminate\Contracts\Auth\Authenticatable authenticate() <add>...
1
Javascript
Javascript
polyfill history.state for non-supporting browsers
331d0c1d036274a00fc2d72dcb3c4783b7249949
<ide><path>packages/ember-routing/lib/location/history_location.js <ide> <ide> var get = Ember.get, set = Ember.set; <ide> var popstateFired = false; <add>var supportsHistoryState = (function(){ <add> return !!(window.history && history.hasOwnProperty('state')); <add>})(); <ide> <ide> /** <ide> Ember.HistoryLocati...
1
Javascript
Javascript
add azimuthal "equalarea" projection mode
afe60a14e63fb2fc2f2ae9b77ce38bb84d9b4bba
<ide><path>d3.geo.js <ide> var d3_radians = Math.PI / 180; <ide> // TODO clip input coordinates on opposite hemisphere <ide> d3.geo.azimuthal = function() { <del> var mode = "orthographic", // or stereographic, gnomonic or equidistant <add> var mode = "orthographic", // or stereographic, gnomonic, equidistant or equa...
5
Ruby
Ruby
remove extra whitespace
fda1863e1a8c120294c56482631d8254ad6125ff
<ide><path>activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb <ide> def test_creation_respects_hash_condition <ide> # in Oracle '' is saved as null therefore need to save ' ' in not null column <ide> post = categories(:general).post_with_conditions.build(body: " ") <ide> <del> ...
15
PHP
PHP
use getcookies() and add test for emitting cookies
30fc50028d7da38ea88e0a6a4b50e6d97ad803d4
<ide><path>src/Http/ResponseEmitter.php <ide> protected function emitStatusLine(ResponseInterface $response) <ide> protected function emitHeaders(ResponseInterface $response) <ide> { <ide> $cookies = []; <del> if (method_exists($response, 'cookie')) { <del> $cookies = $response->cookie...
2
PHP
PHP
let a collection a macroable
073ac37b33dec850627363a6ab950ac9f2fd6474
<ide><path>src/Illuminate/Support/Collection.php <ide> use JsonSerializable; <ide> use IteratorAggregate; <ide> use InvalidArgumentException; <add>use Illuminate\Support\Traits\Macroable; <ide> use Illuminate\Contracts\Support\Jsonable; <ide> use Illuminate\Contracts\Support\Arrayable; <ide> <ide> class Collection imp...
2
Text
Text
fix typo in new experimental relay support docs
834546a74fe0db9728cd7d85c264bb652209228e
<ide><path>docs/advanced-features/compiler.md <ide> module.exports = { <ide> relay: { <ide> // This should match relay.config.js <ide> src: './', <del> artifactDirectory: './__generated__' <add> artifactDirectory: './__generated__', <ide> language: 'typescript', <ide> }, <ide> },
1
Text
Text
add some corrections to the translation
dd45e34083aa3521a8ce69ccb2e75897fbb56fd8
<ide><path>guide/russian/working-in-tech/remote-versus-onsite/index.md <ide> --- <ide> title: Remote Versus Onsite <del>localeTitle: Удаленный пользовательский интерфейс <add>localeTitle: Удаленная работа или работа в офисе. Что лучше? <ide> --- <del>## Удаленный пользовательский интерфейс <add>## Удаленная работа или...
1
PHP
PHP
fix error with postgres
b3cd6ac682daeac2a37fb460b0a89707748062ba
<ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php <ide> public function testBelongsToManyAssociationWithExpressionConditions() <ide> $table->belongsToMany('Tags', [ <ide> 'foreignKey' => 'article_id', <ide> 'associationForeignKey' => 'tag_id', <del> 'conditions' ...
1
Ruby
Ruby
convert create test to spec
dcb206dd1ef1be09f75774c0f86692ad3e31c679
<add><path>Library/Homebrew/cask/spec/cask/cli/create_spec.rb <del><path>Library/Homebrew/cask/test/cask/cli/create_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> # monkeypatch for testing <ide> module Hbc <ide> def self.editor_commands <ide> end <ide> <ide> describe Hbc::CLI::Create do <de...
1
Javascript
Javascript
fix missing `onlongpress` gestures
5ca1d8f260bfb64111a6ba39f76a0a935829c0f2
<ide><path>Libraries/Pressability/Pressability.js <ide> export default class Pressability { <ide> event: PressEvent, <ide> ): void { <ide> if (isTerminalSignal(signal)) { <add> this._touchActivatePosition = null; <ide> this._cancelLongPressDelayTimeout(); <ide> } <ide> <ide><path>Libraries/Pre...
2
PHP
PHP
remove valid password
8734c47fff3fe51cd80d48cfde65bedfbc14a81f
<ide><path>tests/Validation/ValidationPasswordRuleTest.php <ide> public function testUncompromised() <ide> '123456', <ide> 'password', <ide> 'welcome', <del> 'ninja', <ide> 'abc123', <ide> '123456789', <ide> '12345678',
1
PHP
PHP
fix tests for postgres
bbb829a2a7cc8715fdbf2ea51afc77ad3d3c47ac
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testCountWithSubselect() <ide> $counter->select([ <ide> 'total' => $counter->func()->count('*') <ide> ]) <del> ->where(['ArticlesTags.tag_id' => 1]) <del> ->where(['ArticlesTags.article_id = Artic...
1
Go
Go
move some integration tests to integration-cli
69f9d488dc915d8b02827658ccc5a7c48136dc03
<ide><path>integration-cli/docker_cli_rm_test.go <ide> package main <ide> import ( <ide> "os" <ide> "os/exec" <add> "strings" <ide> "testing" <ide> ) <ide> <ide> func TestRemoveContainerWithStopAndKill(t *testing.T) { <ide> logDone("rm - with --stop=true and --kill=true") <ide> } <ide> <add>func TestContainerOrph...
3
Javascript
Javascript
add multielement tag to appropriate directives
e7662ebc311be71a8511eb5c519c5008afc58f2a
<ide><path>src/ng/directive/ngIf.js <ide> * @ngdoc directive <ide> * @name ngIf <ide> * @restrict A <add> * @multiElement <ide> * <ide> * @description <ide> * The `ngIf` directive removes or recreates a portion of the DOM tree based on an <ide><path>src/ng/directive/ngRepeat.js <ide> /** <ide> * @ngdoc directive...
3
PHP
PHP
use mb_strlen instead of strlen
b5761c5c9918bd4070c9566654f7cdfe387dcbc0
<ide><path>src/Utility/Security.php <ide> protected static function _constantEquals($hmac, $compare) <ide> if (function_exists('hash_equals')) { <ide> return hash_equals($hmac, $compare); <ide> } <del> $hashLength = strlen($hmac); <del> $compareLength = strlen($compare); <add> ...
1
Java
Java
move noopcache to a top-level public class
ffa728c23c2b9b1d5630e879680e46dc54ed9f93
<ide><path>spring-context/src/main/java/org/springframework/cache/support/NoOpCache.java <add>/* <add> * Copyright 2002-2016 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <add> * Yo...
2
Python
Python
remove old unused pickle test
0cdb6ea61df487f3622dc1ebb0a222571b7ddfc0
<ide><path>spacy/tests/parser/test_parser_pickle.py <del>import pytest <del> <del>import pickle <del>import cloudpickle <del> <del>import io <del> <del> <del>#@pytest.mark.models <del>#def test_pickle(EN): <del># file_ = io.BytesIO() <del># cloudpickle.dump(EN.parser, file_) <del># <del># file_.seek(0) <del># ...
1
Text
Text
fix typo in plugins doc
b20d11133d18dad09f2778c9ac0c3ee362221e39
<ide><path>guides/source/plugins.md <ide> $ bin/rails plugin new yaffle <ide> See usage and options by asking for help: <ide> <ide> ```bash <del>$ bin/rails plugin --help <add>$ bin/rails plugin new --help <ide> ``` <ide> <ide> Testing Your Newly Generated Plugin
1
Text
Text
remove conflict line [ci skip]
e317e5e1e198147aa86dc04da5962c7277601967
<ide><path>actioncable/README.md <ide> The Ruby side of things is built on top of [websocket-driver](https://github.com <ide> <ide> <ide> ## Deployment <del>>>>>>>> b94b04b1d11b1d095918b8bae2b6b5f76f092cf7 <ide> <ide> $ gem install actioncable <ide>
1
Python
Python
remove incorrect comment about flattening
18eb65228d0e3eca03796e9c30744974e53e2997
<ide><path>numpy/lib/recfunctions.py <ide> def zip_dtype(seqarrays, flatten=False): <ide> else: <ide> for a in seqarrays: <ide> current = a.dtype <del> if current.names and len(current.names) <= 1: <del> # special case - dtypes of 0 or 1 field are flattened <add> ...
1
Javascript
Javascript
fix cache invalidation in httpuriplugin
a6099c4ff96d25f2475c7e92f1d7e6ef991ac7d7
<ide><path>lib/schemes/HttpUriPlugin.js <ide> class HttpUriPlugin { <ide> logger.debug( <ide> `GET ${url} [${res.statusCode}] -> ${partialResult.location}` <ide> ); <add> // we should follow redirect and not store partial result <add> return callback(null, { <add> ...
2
Mixed
Ruby
handle invalid utf-8 strings when html escaping
05a2a6a0c5ac2384e52df9b8c2aa81352a51d7c7
<ide><path>activesupport/CHANGELOG.md <add>* Handle invalid UTF-8 strings when HTML escaping <add> <add> Use `ActiveSupport::Multibyte::Unicode.tidy_bytes` to handle invalid UTF-8 <add> strings in `ERB::Util.unwrapped_html_escape` and `ERB::Util.html_escape_once`. <add> Prevents user-entered input passed fro...
3
Javascript
Javascript
remove useless function declaration
e515a0eced1d3d9a91d760fd8e538e0e7d3fbd04
<ide><path>tools/doc/preprocess.js <ide> const includeData = {}; <ide> <ide> function preprocess(inputFile, input, cb) { <ide> input = stripComments(input); <del> processIncludes(inputFile, input, function(err, data) { <del> if (err) return cb(err); <del> <del> cb(null, data); <del> }); <add> processInclude...
1
Go
Go
implement docker start with standalone client lib
962b2d8b9b0201db2132ec17f06513e33ad419d0
<ide><path>api/client/client.go <ide> type apiClient interface { <ide> ContainerRename(containerID, newContainerName string) error <ide> ContainerRestart(containerID string, timeout int) error <ide> ContainerStatPath(containerID, path string) (types.ContainerPathStat, error) <add> ContainerStart(containerID string) ...
3
PHP
PHP
fix invalid value of htmlspecialchars argument
c2fac8f2c2bbb1473a2f4a29089eeff127424834
<ide><path>src/Core/functions.php <ide> function h($text, $double = true, $charset = null) <ide> 'Use the 3rd argument instead.' <ide> ); <ide> $charset = $double; <add> $double = true; <ide> } <ide> <ide> return htmlspecialchars($text, ENT_QUOTES | EN...
1
Text
Text
add html5up to recommended design links
0c3f1aa846e8d04398fc7b93af462430d080c2be
<ide><path>README.md <ide> Recommended Design <ide> - [3D Dropdown Menu](http://soulwire.github.io/Makisu/) - CSS3 3D Dropdown Menu that folds and unfolds. <ide> - [Creative Link Effects](http://tympanus.net/Development/CreativeLinkEffects/) - Beautiful link effects in CSS. <ide> - [Medium Scroll Effect](http://codepen...
1
PHP
PHP
remove unnecessary return
09e452923604c6c5e622bf3e4305ce711d02b763
<ide><path>src/Cache/Engine/FileEngine.php <ide> protected function _clearDirectory(string $path): void <ide> * <ide> * @param string $key The key to decrement <ide> * @param int $offset The number to offset <del> * @return false <add> * @return void <ide> * @throws \LogicException <ide> ...
1
Java
Java
fix checkstyle violations
e80a23d6ad93eaab11a1869ef1407e729138e672
<ide><path>spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java <ide> public static boolean hasCachedPath(ServletRequest request) { <ide> * supports a servletPath as an additional prefix to be omitted from <ide> * {@link #pathWithinApplication()}. <ide> */ <del> private static class ...
2
Python
Python
raise error on single input
4e571172a210612bdeba1db0135b7d5fbc44ee0c
<ide><path>numpy/lib/function_base.py <ide> def meshgrid(*xi, **kwargs): <ide> <ide> """ <ide> copy_ = kwargs.get('copy', True) <add> <add> if len(xi) < 2: <add> msg = 'meshgrid() takes 2 or more arguments (%d given)' % int(len(xi) > 0) <add> raise ValueError(msg) <add> <ide> args = np.atl...
2
Ruby
Ruby
move logic from leaves to formula
f95e1729a2d95d8dc80dadc8c05851d534a72f74
<ide><path>Library/Homebrew/cmd/leaves.rb <ide> # frozen_string_literal: true <ide> <ide> require "formula" <del>require "tab" <ide> require "cli/parser" <ide> <ide> module Homebrew <ide> def leaves_args <ide> def leaves <ide> leaves_args.parse <ide> <del> installed = Formula.installed.sort <del> deps_of...
4
Javascript
Javascript
fix internal breakages
f741d338406d518c4f81fada723991b2938b8cc5
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> if (Platform.OS === 'android') { <ide> RCTScrollContentView = requireNativeComponent('RCTScrollContentView'); <ide> } <ide> <add>export type ScrollResponderType = { <add> ...ScrollView, <add> ...typeof ScrollResponder.Mixin, <add>}; <add> <ide> type To...
1
Javascript
Javascript
replace string concatenation with template
438c877fc7e27b48e33f5d412a34d2526dea5842
<ide><path>test/parallel/test-https-unix-socket-self-signed.js <ide> common.refreshTmpDir(); <ide> const fs = require('fs'); <ide> const https = require('https'); <ide> const options = { <del> cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'), <del> key: fs.readFileSync(common.fixturesDir + '/test_key.pem'...
1
Go
Go
fix deadlock on v1 plugin with activate error
f2d384fca6fa08da13fdc01c7991e8e35b081198
<ide><path>pkg/plugins/plugin_test.go <ide> package plugins <ide> <ide> import ( <add> "errors" <ide> "path/filepath" <ide> "runtime" <ide> "sync" <ide> func TestPluginAddHandler(t *testing.T) { <ide> testActive(t, p) <ide> } <ide> <add>func TestPluginWaitBadPlugin(t *testing.T) { <add> p := &Plugin{activateWait:...
2
Java
Java
update spel test to reflect native float support
59fb67e38dc8781db52a4ac1bc5e96b77e9ddc58
<ide><path>spring-expression/src/test/java/org/springframework/expression/spel/standard/SpelParserTests.java <ide> public void numerics() { <ide> <ide> checkNumberError("3.4L", SpelMessage.REAL_CANNOT_BE_LONG); <ide> <del> // Number is parsed as a float, but immediately promoted to a double <del> checkNumber("3.5...
1
Javascript
Javascript
change build from babylon to babel
42918f40aabd41a324b5dd10652e078dd2c411e6
<ide><path>scripts/rollup/build.js <ide> function getPlugins( <ide> // Note that this plugin must be called after closure applies DCE. <ide> isProduction && stripUnusedImports(pureExternalModules), <ide> // Add the whitespace back if necessary. <del> shouldStayReadable && prettier({parser: 'babylon'}), <...
2
Text
Text
add hint to return early pattern for functions
892232b70e00177d8d4d822186eff0628e19483f
<ide><path>client/src/pages/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/return-early-pattern-for-functions/index.md <del>--- <del>title: Return Early Pattern for Functions <del>--- <add> <ide> ## Return Early Pattern for Functions <ide> <del>This is a stub. <a href='https://...
1
Python
Python
add test for _upload_data
2a98590120ce4394ed6c34f6f0e32365120330f2
<ide><path>test/storage/test_base.py <ide> class BaseStorageTests(unittest.TestCase): <ide> def setUp(self): <ide> self.send_called = 0 <ide> StorageDriver.connectionCls.conn_classes = (None, StorageMockHttp) <del> self.driver = StorageDriver('username', 'key', host='localhost') <add> <add> ...
1
Java
Java
fix compilation errors when using java 8
fedb543ceebec02e89c7babec384c1c7c208dae4
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public static <T> Flowable<T> fromFuture(Future<? extends T> future, long timeou <ide> * @return a Flowable that emits the item from the source {@link Future} <ide> * @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operat...
3
Python
Python
fix optimizer to work with horovod
81e1e2489f71e9f0250034492b0d52616a450c77
<ide><path>pytorch_pretrained_bert/optimization.py <ide> import math <ide> import torch <ide> from torch.optim import Optimizer <add>from torch.optim.optimizer import required <ide> from torch.nn.utils import clip_grad_norm_ <ide> <ide> def warmup_cosine(x, warmup=0.002): <ide> class BertAdam(Optimizer): <ide> ...
1
PHP
PHP
remove default routes
566e768cae2abf0f1123b604149da3aede4431ed
<ide><path>src/Config/routes.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, please see the L...
6
Javascript
Javascript
introduce shouldcomponentupdate in fiber
94ed00740b191617420f3736dba8df3c0bbeac96
<ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js <ide> module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) { <ide> workInProgress.pendingWorkPriority = NoWork; <ide> } <ide> <del> function updateClassComponent(current, workInProgress) { <add> function updateClassComponent(current...
3
Python
Python
fix typo in examples/utils_ner.py
2ba147ecffa28e5a4f96eebd09dcd642117dedae
<ide><path>examples/utils_ner.py <ide> def read_examples_from_file(data_dir, mode): <ide> # Examples could have no label for mode = "test" <ide> labels.append("O") <ide> if words: <del> examples.append(InputExample(guid="%s-%d".format(mode, guid_index), words=w...
1
PHP
PHP
add alias method
a01e9edfadb140559d1bbf9999dda49148bfa5f7
<ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php <ide> class_basename(static::class), gettype($result) <ide> return $result; <ide> } <ide> <add> /** <add> * Reduce the collection to multiple aggregate values. <add> * <add> * @param callable $callback <add> * @param mi...
1
PHP
PHP
improve notification testability
8f5c8c4bd2513248133fb95d06c450b9cb4e5a59
<ide><path>src/Illuminate/Contracts/Notifications/Factory.php <ide> interface Factory <ide> { <ide> /** <del> * Create a new notification for the given notifiable entities. <add> * Dispatch the given notification instance to the given notifiable. <ide> * <del> * @param array $notifiables <del> ...
4
Python
Python
fix unicode encoding issue
6cd14bbfddd43f84ef2be0d39f8185a53db4363d
<ide><path>glances/glances.py <ide> #!/usr/bin/env python <add># -*- coding: utf-8 -*- <ide> # <ide> # Glances is a simple textual monitoring tool <ide> #
1
Ruby
Ruby
fix a faulty form_for test
252660b886c8880fc8c43a1c4bc84f07c9a9aab7
<ide><path>actionview/test/template/form_helper_test.rb <ide> def test_auto_index_with_nil_id <ide> end <ide> <ide> def test_form_for_requires_block <del> assert_raises(ArgumentError) do <del> form_for(:post, @post, html: { id: 'create-post' }) <add> error = assert_raises(ArgumentError) do <add> fo...
1