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
Mixed
Javascript
add onhovermove support
4e59d4f5d26a620a2c6e8804a589b227481a80aa
<ide><path>packages/react-events/README.md <ide> const TextField = (props) => ( <ide> <ide> ```js <ide> // Types <del>type FocusEvent = {} <add>type FocusEvent = { <add> type: 'blur' | 'focus' | 'focuschange' <add>} <ide> ``` <ide> <ide> ### disabled: boolean <ide> const Link = (props) => ( <ide> <ide> ```js <ide> ...
4
PHP
PHP
fix issue with case in authorizeresource
3f693da808f4cc77e15c9932ee1019f00c627ada
<ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php <ide> protected function normalizeGuessedAbilityName($ability) <ide> */ <ide> public function authorizeResource($model, $parameter = null, array $options = [], $request = null) <ide> { <del> $parameter = $parameter ?: strtolower...
1
Ruby
Ruby
use const_get to get validator classes
f2695d2dc08fa739be9277adfe10386126f1a9b1
<ide><path>activemodel/lib/active_model/validations/validates.rb <ide> def validates(*attributes) <ide> key = "#{key.to_s.camelize}Validator" <ide> <ide> begin <del> validator = key.include?("::") ? key.constantize : const_get(key) <add> validator = const_get(key) <ide> ...
1
Python
Python
take care of global vectors in multiprocessing
d307e9ca58c84dc24e6717fccafe7b55c604ee7c
<ide><path>spacy/_ml.py <ide> def link_vectors_to_models(vocab): <ide> key = (ops.device, vectors.name) <ide> if key in thinc.extra.load_nlp.VECTORS: <ide> if thinc.extra.load_nlp.VECTORS[key].shape != data.shape: <del> # This is a hack to avoid the problem in #3853. Maybe we should <del> ...
5
Python
Python
add coverage for blueprint.add_app_template_global
7ce01ab9b4aac9e559cd6cb2e309381cfc3cc71b
<ide><path>tests/test_blueprints.py <ide> def app_page(): <ide> <ide> assert b'42' in answer_page_bytes <ide> assert b'43' in answer_page_bytes <add> <add>def test_template_global(): <add> app = flask.Flask(__name__) <add> bp = flask.Blueprint('bp', __name__) <add> @bp.app_template_global() <add> d...
1
Text
Text
update license text to include guide
1e631c3b256797e0584fbd4deecebb909c0625ad
<ide><path>README.md <ide> Copyright © 2019 freeCodeCamp.org <ide> <ide> The content of this repository is bound by the following licenses: <ide> <del>- The computer software is licensed under the [BSD-3-Clause](LICENSE.md) License. <del>- The [curricular content](https://www.npmjs.com/package/@freecodecamp/curriculu...
1
PHP
PHP
add failing unit test for
a280ddbbb1de5a3fc676b03b19c8ee8b81ba1f0d
<ide><path>tests/Routing/RoutingRouteTest.php <ide> public function testNonGreedyMatches() <ide> $this->assertEquals('bar', $route->parameter('foo', 'bar')); <ide> } <ide> <add> public function testRouteParametersDefaultValue() <add> { <add> $router = $this->getRouter(); <add> $router->...
1
Ruby
Ruby
remove useless status set
11ccdc8f171e8de87ef94e91a5305d73595c7dbf
<ide><path>actionpack/lib/action_controller/metal/head.rb <ide> def head(status, options = {}) <ide> headers[key.to_s.dasherize.split('-').each { |v| v[0] = v[0].chr.upcase }.join('-')] = value.to_s <ide> end <ide> <del> response.status = Rack::Utils.status_code(status) <del> <ide> self.status...
1
Ruby
Ruby
fix code style
8b7f38faf0e770c8446f328364e639e78307f062
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> def latest_version(formula_or_cask, json: false, full_name: false, verbose: fals <ide> livecheck_strategy: livecheck_strategy, <ide> url_provided: livecheck_url.present?, <ide> regex_provided: livecheck_regex.present?, <del...
2
PHP
PHP
add accessor for pivot timestamp informaiton
cbe8123a479e81779cd85251eb4a5cf861e93ea3
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> class BelongsToMany extends Relation <ide> */ <ide> protected $pivotWhereIns = []; <ide> <add> /** <add> * Indicates if timestamps are available on the pivot table. <add> * <add> * @var bool <add> */ <add> publ...
1
Python
Python
use correct class to indicate present deprecation
2de50818296b1b4bae68787626c0236752e35101
<ide><path>rest_framework/__init__.py <ide> default_app_config = 'rest_framework.apps.RestFrameworkConfig' <ide> <ide> <del>class RemovedInDRF315Warning(PendingDeprecationWarning): <add>class RemovedInDRF315Warning(DeprecationWarning): <ide> pass
1
Python
Python
support extra argument in python 2.4
d0e984b8b4bb4423b97bc2b1cf180b3991f874ab
<ide><path>celery/utils/compat.py <ide> def __init__(self, logger, extra): <ide> self.logger = logger <ide> self.extra = extra <ide> <add> def setLevel(self, level): <add> self.level = logging._checkLevel(level) <add> <ide> def process(self, msg, kwargs): <ide> ...
1
Ruby
Ruby
make abstractadapter#lock thread local by default
6253874326b0c4f0b03dbe2d85d8ddf6ccb3354c
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def lock_thread=(lock_thread) <ide> end <ide> <ide> if (active_connection = @thread_cached_conns[connection_cache_key(current_thread)]) <del> active_connection.synchronized = lock_thread <add> ...
5
Text
Text
update contributing instructions for new template
26c9b3c16b16671a87cb48913b883545796e866c
<ide><path>docs/how-to-help-with-video-challenges.md <ide> id: Unique identifier (alphanumerical, MongoDB_id) <ide> title: Challenge Title <ide> challengeType: 11 <ide> videoId: 'YouTube videoId for video challenge' <add>forumTopicId: 12345 <ide> --- <ide> <del>## Description <add># --description-- <ide> <del><sectio...
2
Python
Python
allow `replace` flag in gcs_to_gcs operator.
ed5004cca753650dc222fbb8e67573938c6c16d9
<ide><path>airflow/providers/google/cloud/transfers/gcs_to_gcs.py <ide> class GCSToGCSOperator(BaseOperator): <ide> of copied to the new location. This is the equivalent of a mv command <ide> as opposed to a cp command. <ide> :type move_object: bool <add> :param replace: Whether you want to repla...
2
Python
Python
keep shape of the initial (dummy) state
41741c38e5f29ebf69fe9bd82a604eba3c0b97e5
<ide><path>keras/backend/tensorflow_backend.py <ide> def _step(input, state): <ide> new_state = new_states[0] <ide> else: <ide> # return dummy state, otherwise _dynamic_rnn_loop breaks <del> new_state = output <add> new_state ...
1
Text
Text
fix mistake made in renamespacing
8618e230995193a740277b53ae3edbcc24702a37
<ide><path>README.md <ide> MyApp.president = Ember.Object.create({ <ide> name: "Barack Obama" <ide> }); <ide> <del>MyApp.country = Ember({ <add>MyApp.country = Ember.Object.create({ <ide> // Ending a property with 'Binding' tells Ember.js to <ide> // create a binding to the presidentName property. <ide> presid...
1
Ruby
Ruby
use method provided by minitest
64d5373981674575684af25c038900434ed2dbb6
<ide><path>railties/lib/rails/test_unit/reporter.rb <ide> def record(result) <ide> if output_inline? && result.failure && (!result.skipped? || options[:verbose]) <ide> io.puts <ide> io.puts <del> io.puts format_failures(result).map { |line| color_output(line, by: result) } <add> io.p...
1
Python
Python
get mtime in utc
bf6910a639fffc6896c5aefe362edaf6f6b704fe
<ide><path>tests/test_helpers.py <ide> def index(): <ide> assert rv.status_code == 416 <ide> rv.close() <ide> <del> last_modified = datetime.datetime.fromtimestamp(os.path.getmtime( <add> last_modified = datetime.datetime.utcfromtimestamp(os.path.getmtime( <ide> os.path.join(a...
1
Javascript
Javascript
fix valid id range on chown, lchown, fchown
0a539ddc0ad53c609199465dcb85008811e57bd2
<ide><path>lib/fs.js <ide> const { <ide> parseFileMode, <ide> validateBuffer, <ide> validateInteger, <del> validateInt32, <del> validateUint32 <add> validateInt32 <ide> } = require('internal/validators'); <add>// 2 ** 32 - 1 <add>const kMaxUserId = 4294967295; <ide> <ide> let truncateWarn = true; <ide> let fs...
2
Go
Go
handle host-gateway with extra hosts
521b8c02cc8912dc05cf178f83ea73b1b77698bd
<ide><path>builder/builder-next/builder.go <ide> import ( <ide> "github.com/docker/docker/daemon/config" <ide> "github.com/docker/docker/daemon/images" <ide> "github.com/docker/docker/libnetwork" <add> "github.com/docker/docker/opts" <ide> "github.com/docker/docker/pkg/idtools" <ide> "github.com/docker/docker/pkg/...
1
Javascript
Javascript
specify es6 in the parser
9a4c54d3509a24d90ed8775222c7fe3aedb1c3a8
<ide><path>lib/Parser.js <ide> Parser.prototype.parseCalculatedString = function parseCalculatedString(expressi <ide> }); <ide> <ide> Parser.prototype.parse = function parse(source, initialState) { <del> var ast = acorn.parse(source, {ranges: true, locations: true}); <add> var ast = acorn.parse(source, {ranges: true, ...
1
Javascript
Javascript
expose totalpages to the webpack decorator
7e756ee5d94c0c483432bc7e0d05eb0093c81f4f
<ide><path>server/build/webpack.js <ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer <ide> } <ide> <ide> if (typeof config.webpack === 'function') { <del> webpackConfig = config.webpack(webpackConfig, {dir, dev, isServer, buildId, config, defaultLoaders}) <add> webpackConf...
1
Java
Java
revert observable.range to support 0 for count
648a9564f7eaadba37983ee0ecb8bc87e10e7bdf
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final static <T> Observable<Observable<T>> parallelMerge(Observable<Obser <ide> * @see <a href="http://msdn.microsoft.com/en-us/library/hh229460.aspx">MSDN: Observable.Range</a> <ide> */ <ide> public final static Observable<Integer> rang...
1
PHP
PHP
add serializer option to memcached cache engine
bd3f005ab69189ab5cfec9e70d1391efccd83785
<ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php <ide> class MemcachedEngine extends CacheEngine { <ide> */ <ide> public $settings = array(); <ide> <add>/** <add> * List of available serializer engine <add> * <add> * Memcached must be compiled with json and igbinary support to use these engines <add> * <add> * @...
2
Python
Python
remove unnecessary itertools call
fba219f73765725afb7468c3c1b114df3e1a27f4
<ide><path>spacy/language.py <ide> def pipe( <ide> <ide> DOCS: https://spacy.io/api/language#pipe <ide> """ <del> # raw_texts will be used later to stop iterator. <del> texts, raw_texts = itertools.tee(texts) <ide> if n_threads != -1: <ide> warnings.warn(Warnings.W016,...
1
Python
Python
pass exc explicitly to the inner context
cb54c462b809e36d12af571fa36affb4af3f7e96
<ide><path>flask/ctx.py <ide> def pop(self, exc=None): <ide> <ide> # Get rid of the app as well if necessary. <ide> if self._pushed_application_context: <del> self._pushed_application_context.pop() <add> self._pushed_application_context.pop(exc) <ide> self._pushed_appl...
1
Text
Text
add special cases where bubble sort is reasonable
8c4ead7998ea7def4ace03e6641071f2678fe2cb
<ide><path>guide/english/algorithms/sorting-algorithms/bubble-sort/index.md <ide> title: Bubble Sort <ide> <ide> Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order. <ide> <del>This is a very slow sorting algorithm compared to algorithms lik...
1
Javascript
Javascript
skip non-pot texture fallback on webgl2
533ff0ec9caa98639de8bb3f2c9b9a639ff428b8
<ide><path>src/renderers/webgl/WebGLTextures.js <ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, <ide> <ide> } <ide> <del> function textureNeedsGenerateMipmaps( texture, isPowerOfTwo ) { <add> function textureNeedsGenerateMipmaps( texture, supportsMips ) { <ide> <del> return t...
1
Javascript
Javascript
replace var with const
e4507e545240809bd78031df5e965a5362f7987e
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual(util.inspect(-5e-324), '-5e-324'); <ide> { <ide> let obj = vm.runInNewContext('(function(){return {}})()', {}); <ide> assert.strictEqual(util.inspect(obj), '{}'); <del> obj = vm.runInNewContext('var m=new Map();m.set(1,2);m', {}); <add> obj = ...
1
Python
Python
add broadcast command for starting actors
0ac876041ae686cb69240eb26b0f6d95299edbfc
<ide><path>celery/app/control.py <ide> def ping(self, destination=None, timeout=1, **kwargs): <ide> return self.broadcast('ping', reply=True, destination=destination, <ide> timeout=timeout, **kwargs) <ide> <del> def start_actor(self, actor_name, destination = None, timeout = 1,...
1
Ruby
Ruby
fix postgresql tests on travis
c5989cc4837b5f814e14332a0b90a44dfa806b4e
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def supports_explain? <ide> true <ide> end <ide> <add> # Range datatypes weren't introduced until PostgreSQL 9.2 <add> def supports_ranges? <add> postgresql_version >= 90200 <add> end <add> <id...
3
Python
Python
add text_file_b fixture using bytesio
4bb5b89ee4bfbc75f070c7bd3a899a73a6fe3e87
<ide><path>spacy/tests/conftest.py <ide> from ..attrs import ORTH, TAG, HEAD, DEP <ide> from ..util import match_best_version, get_data_path <ide> <del>from io import StringIO <add>from io import StringIO, BytesIO <ide> from pathlib import Path <ide> import os <ide> import pytest <ide> def lemmatizer(path): <ide> def ...
1
Go
Go
remove unnecessary windows-only code
6cc644abef088e04b5b416921f203f5edb733ad1
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerCLIRunSuite) TestRunCidFileCleanupIfEmpty(c *testing.T) { <ide> defer os.RemoveAll(tmpDir) <ide> tmpCidFile := path.Join(tmpDir, "cid") <ide> <add> // This must be an image that has no CMD or ENTRYPOINT set <ide> image := "emptyfs" <del> if test...
1
Ruby
Ruby
fix typo in form_helper.rb
065d3e061dcefde7fa48037555bf23ac7f3ae440
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def default_form_builder <ide> # methods in the +FormHelper+ module. This class, however, allows you to <ide> # call methods with the model object you are building the form for. <ide> # <del> # You can create your own custom FormBuilder t...
1
Javascript
Javascript
convert `runloopassert` to es6 class
5b3a341d2d53223775d7e09ab11819a5d433290f
<ide><path>packages/internal-test-helpers/lib/ember-dev/run-loop.js <ide> import { cancelTimers, end, getCurrentRunLoop, hasScheduledTimers } from '@ember/runloop'; <ide> <del>function RunLoopAssertion(env) { <del> this.env = env; <del>} <add>export default class RunLoopAssertion { <add> constructor(env) { <add> ...
1
Text
Text
give definitions for back-ground size properties
193bb311330bce7386bec0ba658b6258991a816d
<ide><path>guide/english/css/background-size/index.md <ide> title: Background Size <ide> The `background-size` property specifies the size of the background images. You can set a length or a percentage, with the first value being the width and the second one being the height. You can also use one of the 5 keyword value...
1
Javascript
Javascript
add spec for platformconstants
7fd08e146184432731ec5d5ba210e352690dc569
<ide><path>Libraries/Animated/src/__tests__/Animated-test.js <ide> <ide> jest.mock('../../../BatchedBridge/NativeModules', () => ({ <ide> NativeAnimatedModule: {}, <add> PlatformConstants: { <add> getConstants() { <add> return {}; <add> }, <add> }, <ide> })); <ide> <ide> let Animated = require('../Anim...
11
Python
Python
add qa_dropout and seq_classif_dropout
74d78beeb418f29cade9d6a0aeb63eeee697a4e2
<ide><path>pytorch_transformers/modeling_dilbert.py <ide> def __init__(self, <ide> activation='gelu', <ide> initializer_range=0.02, <ide> tie_weights_=True, <add> qa_dropout=0.1, <add> seq_classif_dropout=0.2, <ide> **kw...
1
PHP
PHP
add temporary_url when creating flysystem
a22794263e85607bbf897c74dfde5f7172ce8910
<ide><path>src/Illuminate/Filesystem/FilesystemManager.php <ide> protected function createFlysystem(AdapterInterface $adapter, array $config) <ide> { <ide> $cache = Arr::pull($config, 'cache'); <ide> <del> $config = Arr::only($config, ['visibility', 'disable_asserts', 'url']); <add> $config =...
1
PHP
PHP
avoid unneeded function call
d44c091acf6c01dbd202e39a21a8a2f2724b2441
<ide><path>src/Illuminate/Support/Str.php <ide> public static function kebab($value) <ide> */ <ide> public static function length($value, $encoding = null) <ide> { <del> return mb_strlen($value, $encoding ?: mb_internal_encoding()); <add> if ($encoding) { <add> return mb_strlen($va...
1
Text
Text
stop false positives in test for array hard coding
ae0d34359a966a370bb7d7632caaa3f56c2382ad
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/return-a-sorted-array-without-changing-the-original-array.md <ide> assert( <ide> `nonMutatingSort(globalArray)` should not be hard coded. <ide> <ide> ```js <del>assert(!nonMutatingSort.toString().match(/[23569]...
1
Java
Java
fix bindingreflectionhintsregistrar enum support
fb1aa4f5d5601ddd1fe7928b39c6408a3003a59a
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrar.java <ide> private void registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type <ide> PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors(); <ide> for (PropertyDescrip...
2
Python
Python
set version to v2.0.18.dev0
24d52876e1a09cf8041da282b93e688a1d2c5a6d
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.17' <add>__version__ = '2.0.18.dev0' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https:/...
1
Javascript
Javascript
add type checking for hostname
85a4e257759d0da3dbebb501069a8a1f7130a392
<ide><path>lib/_http_client.js <ide> function isInvalidPath(s) { <ide> return false; <ide> } <ide> <add>function validateHost(host, name) { <add> if (host != null && typeof host !== 'string') { <add> throw new TypeError( <add> `"options.${name}" must either be a string, undefined or null`); <add> } <add> ...
2
Go
Go
add test for pull verified
614e09a8c7990e05509edb4c335c4b59001cea61
<ide><path>integration-cli/docker_cli_pull_test.go <ide> func TestPullImageWithAliases(t *testing.T) { <ide> logDone("pull - image with aliases") <ide> } <ide> <add>// pulling busybox should show verified message <add>func TestPullVerified(t *testing.T) { <add> defer setupRegistry(t)() <add> <add> repo := fmt.Sprintf...
1
Go
Go
add image size to -tree
b7d1d35c278c57ad4732dc23e529cf771158ee96
<ide><path>commands.go <ide> func PrintTreeNode(cli *DockerCli, noTrunc *bool, image APIImages, prefix string <ide> imageID = utils.TruncateID(image.ID) <ide> } <ide> <add> fmt.Fprintf(cli.out, "%s%s Size: %s (virtual %s)", prefix, imageID, utils.HumanSize(image.Size), utils.HumanSize(image.VirtualSize)) <ide> if ...
2
Python
Python
correct io counter and max cpu/mem
9a40395efb7d32c22c6adfb3efa9bb933cdce057
<ide><path>glances/plugins/glances_processlist.py <ide> def get_process_curses_data(self, p, first, args): <ide> msg = '{:>10}'.format('?') <ide> ret.append(self.curse_add_line(msg, optional=True)) <ide> # IO read/write <del> if 'io_counters' in p: <add> if 'io_counters' in p a...
2
Go
Go
remove leading/trailing spaces in builder/parser
3859c485317a395de1e8eb48270d0e3b1207a204
<ide><path>builder/parser/utils.go <ide> func fullDispatch(cmd, args string) (*Node, map[string]bool, error) { <ide> // splitCommand takes a single line of text and parses out the cmd and args, <ide> // which are used for dispatching to more exact parsing functions. <ide> func splitCommand(line string) (string, string,...
2
PHP
PHP
apply fixes from styleci
50176732d66b197de62d5567b79fc77f63e2cfbd
<ide><path>database/factories/UserFactory.php <ide> <?php <ide> <ide> /** @var \Illuminate\Database\Eloquent\Factory $factory */ <del> <ide> use App\User; <ide> use Illuminate\Support\Str; <ide> use Faker\Generator as Faker;
1
PHP
PHP
raise an exception in insertbefore()
33bbf8424ec6769ba75c2547395c71405c10cdcc
<ide><path>src/Http/MiddlewareStack.php <ide> namespace Cake\Http; <ide> <ide> use Countable; <add>use LogicException; <ide> <ide> /** <ide> * Provides methods for creating and manipulating a 'stack' of <ide> public function insertBefore($class, $callable) <ide> if ($found) { <ide> return $this->...
2
Ruby
Ruby
reduce calls to `named_host?`
21c626133adc4b5060df1081d9423024b6b7479d
<ide><path>actionpack/lib/action_dispatch/http/url.rb <ide> module URL <ide> <ide> class << self <ide> def extract_domain(host, tld_length) <del> host.split('.').last(1 + tld_length).join('.') if named_host?(host) <add> extract_domain_from(host, tld_length) if named_host?(host) <ide> ...
1
PHP
PHP
use unset() as per code review
8415060987feed159fdd3b9b92f563af3896beba
<ide><path>src/Auth/BaseAuthenticate.php <ide> protected function _findUser(string $username, ?string $password = null) <ide> } <ide> <ide> $this->_needsPasswordRehash = $hasher->needsRehash($hashedPassword); <del> $result->unsetField($passwordField); <add> $result->unset(...
11
PHP
PHP
get model associations only when needed
60a8f0900b8286c0c8b821788ab445aa8507574e
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function read(Model $Model, $queryData = array(), $recursive = null) { <ide> } <ide> <ide> if ($recursive !== null) { <del> $_recursive = $Model->recursive; <add> $modelRecursive = $Model->recursive; <ide> $Model->recursive = $recursive; <ide> ...
1
Python
Python
fix pid check
26c9768e44315e08c298776e0d7fb400b442bf96
<ide><path>airflow/jobs/local_task_job.py <ide> def heartbeat_callback(self, session=None): <ide> recorded_pid = ti.pid <ide> same_process = recorded_pid == current_pid <ide> <del> if ti.run_as_user or self.task_runner.run_as_user: <add> if recorded_pid is not None and (ti...
2
Javascript
Javascript
update code style
16d17ab3230c7358e771c1a50932ac3a4d5cb7be
<ide><path>editor/js/Sidebar.Geometry.LatheGeometry.js <ide> * @author rfm1201 <ide> */ <ide> <del>Sidebar.Geometry.LatheGeometry = function( editor, object ) { <add>Sidebar.Geometry.LatheGeometry = function ( editor, object ) { <ide> <ide> var strings = editor.strings; <ide> <ide> Sidebar.Geometry.LatheGeometry ...
3
Javascript
Javascript
remove workarounds for ie8
9b2a4c6851b783bdf15507201c213ac5dc91cae1
<ide><path>test/ng/compileSpec.js <ide> describe('$compile', function() { <ide> $rootScope.$digest(); <ide> <ide> <del> expect(sortedHtml(element)).toBeOneOf( <del> '<div><b class="i-hello"></b><span class="i-cau">Cau!</span></div>', <del> '<div><b class="i...
4
Text
Text
update jsfiddle templates for react 16
e7a2ac959a9fbba1b4c1de3cfdef5a5eae701313
<ide><path>.github/ISSUE_TEMPLATE.md <ide> <ide> **What is the current behavior?** <ide> <del>**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/ebsrpraL/).** <add>**If the current ...
1
Ruby
Ruby
expand paths in i18n initializer tests
3971d972c304272dbbd88d5d5df14b5739e801a2
<ide><path>railties/test/initializer/initialize_i18n_test.rb <ide> def setup <ide> #{RAILS_FRAMEWORK_ROOT}/actionpack/lib/action_view/locale/en.yml <ide> #{RAILS_FRAMEWORK_ROOT}/railties/tmp/app/config/locales/en.yml <ide> my/other/locale.yml <del> ), I18n.load_path <add> ).map { |path...
1
Text
Text
fix a typo'd line
f6e5bf526386dc7982cadeb4ad9fe0b44edac296
<ide><path>docs/JavaScriptEnvironment.md <ide> ES6 <ide> * [for...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of): `for (var num of [1, 2, 3]) {}` <ide> * [Modules](http://babeljs.io/docs/learn-es2015/#modules): `import React, { Component } from 'react';` <ide> * [Computed Pro...
1
Text
Text
use correct placeholder for policy docs
ecf693697b097c2cd75df303e71d9cfa859b72c0
<ide><path>doc/api/cli.md <ide> Enable experimental ES module support and caching modules. <ide> <ide> ### `--experimental-policy` <ide> <!-- YAML <del>added: TODO <add>added: REPLACEME <ide> --> <ide> <ide> Use the specified file as a security policy. <ide><path>doc/api/policy.md <ide> # Policies <ide> <del><!--int...
2
Ruby
Ruby
fix rubocop warnings
1174264d47b03bbcdb6900896b2a512c05686549
<ide><path>Library/Homebrew/cmd/uses.rb <ide> def uses <ide> raise FormulaUnspecifiedError if ARGV.named.empty? <ide> <ide> used_formulae = ARGV.formulae <del> formulae = (ARGV.include? "--installed") ? Formula.installed : Formula <add> formulae = ARGV.include?("--installed") ? Formula.installed : Formul...
1
Javascript
Javascript
remove redundant code
a532b006a10b9efd47b76498eb17746bf0998945
<ide><path>examples/jsm/loaders/3DMLoader.js <ide> Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), { <ide> <ide> var _object = this._createObject( obj, material ); <ide> <del> if ( ! this.materials.includes( material ) ) { <del> <del> this.materials.push( material ); <del> <...
1
PHP
PHP
check extension before passing to addtestfile()
2598d176702ca8ab934ca377cec369577d4a5213
<ide><path>lib/Cake/Test/Case/Console/AllConsoleLibsTest.php <ide> public static function suite() { <ide> if (!$file->isFile() || strpos($file, 'All') === 0) { <ide> continue; <ide> } <del> $suite->addTestFile($file->getRealPath()); <add> $fileName = $file->getRealPath(); <add> if (substr($fileName, -4)...
1
Java
Java
remove the few remaining usages of uritemplate
b44daa8b71a60b46da90c9fcd5b7ad13d2047167
<ide><path>spring-web/src/main/java/org/springframework/http/RequestEntity.java <ide> * </pre> <ide> * <ide> * <p>If you would like to provide a URI template with variables, consider using <del> * {@link org.springframework.web.util.UriTemplate}: <add> * {@link org.springframework.web.util.DefaultUriBuilderFactory D...
7
Javascript
Javascript
use redirecturl at onheadersreceived if available
ae32f31eb4c4d27b2e9230a6fa62f0a64d967b3a
<ide><path>extensions/chromium/feature-detect.js <ide> var Features = { <ide> featureDetectLastUA: '', <ide> // Whether ftp: in XMLHttpRequest is allowed <ide> extensionSupportsFTP: false, <add> // Whether redirectUrl at onHeadersReceived is supported. <add> webRequestRedirectUrl: false, <ide> }; <ide> <ide> c...
2
Text
Text
fix typo s/only_up/up_only/ [ci skip]
ca68f1cf49a3689c276d502105aaa68fa106502d
<ide><path>activerecord/CHANGELOG.md <del>* Add `#only_up` to database migrations for code that is only relevant when <add>* Add `#up_only` to database migrations for code that is only relevant when <ide> migrating up, e.g. populating a new column. <ide> <ide> *Rich Daley*
1
Text
Text
update build instructions for os x
153b796d68655e892ce331d9fc7f0477f83db07d
<ide><path>BUILDING.md <ide> If you consistently can reproduce a test failure, search for it in the <ide> file a new issue. <ide> <ide> <del>### Unix / Macintosh <add>### Unix / OS X <ide> <ide> Prerequisites: <ide> <ide> * `gcc` and `g++` 4.8 or newer, or <ide> * `clang` and `clang++` 3.4 or newer <ide> * Python 2...
1
Ruby
Ruby
move macos.xcode43_without_clt? into xcode module
755c786040e4c83735c8468c6bea4644e3b31aa4
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def outdated? <ide> version < latest_version <ide> end <ide> <add> def without_clt? <add> version >= "4.3" and not MacOS::CLT.installed? <add> end <add> <ide> def prefix <ide> @prefix ||= begin <ide> path = Pathname.new(folder) <ide><path>Library...
2
Mixed
Javascript
add support for mirror option
0c6f37fff744e8f00c57c51407136cc39d506409
<ide><path>docs/00-Getting-Started.md <ide> the following options. <ide> labels: { <ide> // Boolean - if true show labels <ide> show: true, <add> <add> // Boolean - if true the chart will mirror the axis labels. If the labels are on the left, mirroring the axis will render them to the...
2
Python
Python
set version to v2.2.0.dev14
6189959adbd0a0aa53ad3e3857d4f6db2dd0b2b3
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.0.dev13" <add>__version__ = "2.2.0.dev14" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion"
1
Text
Text
remove needless entry [ci skip]
d03c90e8aa011cbf4244bfc5e622492dcdb52ee2
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Hyonjee Joo* <ide> <del>* Deprecate passing of `start` value to `find_in_batches` and `find_each` <del> in favour of `begin_at` value. <del> <del> *Vipul A M* <del> <ide> * Add `foreign_key_exists?` method. <ide> <ide> *Tõnis Simo* <ide><path>guides...
2
Java
Java
fix the extra retention problem in replaysubject
2edea6b8c8349dc06355d9c0182ba537978d6191
<ide><path>src/main/java/io/reactivex/subjects/ReplaySubject.java <ide> <ide> package io.reactivex.subjects; <ide> <del>import io.reactivex.annotations.Nullable; <ide> import java.lang.reflect.Array; <ide> import java.util.*; <ide> import java.util.concurrent.TimeUnit; <ide> import java.util.concurrent.atomic.*; <ide...
2
Python
Python
add small additional tests for converters/usecols
1e6b72b42292e62c1c86e4f77e30324e43aaa218
<ide><path>numpy/lib/tests/test_io.py <ide> def test_max_rows_larger(self): <ide> # Same as above, but do not skip any lines: <ide> (0, ["-1,0\n", "1,2\n", "\n", "3,4\n"]), <ide> (0, ["-1,0", "1,2", "", "3,4"]), <del> (0, StringIO("-1,0\n1,2\n\n3,4")),]) <add> (...
2
Mixed
Python
fix reloading model for evaluation in examples
087798b7fa6dc82f34a7462fddd313d38b251bda
<ide><path>README.md <ide> python -m pytest -sv tests/ <ide> <ide> This package comprises the following classes that can be imported in Python and are detailed in the [Doc](#doc) section of this readme: <ide> <del>- Seven PyTorch models (`torch.nn.Module`) for Bert with pre-trained weights (in the [`modeling.py`](./p...
4
Ruby
Ruby
fix regression caused by a01d164b
1b4399dfe7eaa8dd2a75f35815ea429962c51a29
<ide><path>activerecord/lib/active_record/relation/merger.rb <ide> def merge_preloads <ide> return if other.preload_values.empty? && other.includes_values.empty? <ide> <ide> if other.klass == relation.klass <del> relation.preload! other.preload_values unless other.preload_values.empty? <del> ...
3
Ruby
Ruby
fix a warning
2198a9fc0d2e27f828d452129ce47ad90e16fab7
<ide><path>activejob/lib/active_job/arguments.rb <ide> class DeserializationError < StandardError <ide> attr_reader :original_exception <ide> <ide> def initialize(e) #:nodoc: <del> super ("Error while trying to deserialize arguments: #{e.message}") <add> super("Error while trying to deserialize argum...
1
PHP
PHP
add ability to remove columns from schema objects
2b0f9039b1699aea317a4998b2774b6af94cb9f7
<ide><path>src/Database/Schema/TableSchema.php <ide> public function addColumn($name, $attrs) <ide> return $this; <ide> } <ide> <add> /** <add> * Remove a column from the table schema. <add> * <add> * If the column is not defined in the table, no error will be raised. <add> * <add> *...
2
Go
Go
add volumes back to inspect
996133b9babbe4c4dfb42ee0d5aea9566568af14
<ide><path>daemon/inspect.go <ide> func (daemon *Daemon) ContainerInspect(job *engine.Job) engine.Status { <ide> out.Set("ExecDriver", container.ExecDriver) <ide> out.Set("MountLabel", container.MountLabel) <ide> out.Set("ProcessLabel", container.ProcessLabel) <add> out.SetJson("Volumes", container.Volumes) <ide...
1
Python
Python
add safeguard before looking in folders
47e1676255e5dd86b9541f734cd4f4bdcbb50f4a
<ide><path>src/transformers/utils/hub.py <ide> def get_cached_models(cache_dir: Union[str, Path] = None) -> List[Tuple]: <ide> cache_dir = TRANSFORMERS_CACHE <ide> elif isinstance(cache_dir, Path): <ide> cache_dir = str(cache_dir) <add> if not os.path.isdir(cache_dir): <add> return [] <ide...
1
Text
Text
remove duplicate content from readline doc
3c23db4d8a8cc51205f1999e5646d386322fb774
<ide><path>doc/api/readline.md <ide> added: v0.1.98 <ide> The `rl.close()` method closes the `readline.Interface` instance and <ide> relinquishes control over the `input` and `output` streams. When called, <ide> the `'close'` event will be emitted. <del>Closes the `Interface` instance, relinquishing control on the `inp...
1
Go
Go
fix golint warnings
270e8cf64dee586240968900fb1cf8e36ed641a5
<ide><path>graph/history.go <ide> func (graph *Graph) depth(img *image.Image) (int, error) { <ide> return count, nil <ide> } <ide> <del>// Set the max depth to the aufs default that most <del>// kernels are compiled with <add>// Set the max depth to the aufs default that most kernels are compiled with. <ide> // For m...
6
Text
Text
use an easier word
6308238498b6b5a95510d6346436fc7b0febd0d1
<ide><path>docs/docs/introducing-jsx.md <ide> ReactDOM.render( <ide> <ide> [Try it on CodePen.](http://codepen.io/gaearon/pen/PGEjdG?editors=0010) <ide> <del>We split JSX over multiple lines for readability. While it isn't mandatory, when doing this, we also recommend wrapping it in parentheses to avoid the pitfalls ...
1
Mixed
Python
add more settings to settings.py
c707034649fa9e24f0c6c3c0580dc06f90eac373
<ide><path>djangorestframework/settings.py <ide> 'djangorestframework.parsers.JSONParser', <ide> 'djangorestframework.parsers.FormParser' <ide> ), <add> 'DEFAULT_AUTHENTICATION': ( <add> 'djangorestframework.authentication.SessionAuthentication', <add> 'djangorestframework.authentic...
2
Javascript
Javascript
remove useless statement
8900a4663f45d047894b98875f58529f6026746e
<ide><path>lib/internal/streams/from.js <ide> function from(Readable, iterable, opts) { <ide> }); <ide> } <ide> <del> let isAsync = false; <add> let isAsync; <ide> if (iterable && iterable[SymbolAsyncIterator]) { <ide> isAsync = true; <ide> iterator = iterable[SymbolAsyncIterator]();
1
Ruby
Ruby
remove more uses of deprecated loggers
c056787d5de2f3fb5c050c432d3eff3cdade09a3
<ide><path>activerecord/test/cases/base_test.rb <ide> def test_silence_sets_log_level_back_to_level_before_yield <ide> def test_benchmark_with_log_level <ide> original_logger = ActiveRecord::Base.logger <ide> log = StringIO.new <del> ActiveRecord::Base.logger = Logger.new(log) <add> ActiveRecord::Base.l...
1
Javascript
Javascript
remove debug code
bf2c5257880410637b113c1e29bf8bee50e8e479
<ide><path>pdf.js <ide> var CanvasGraphics = (function() { <ide> <ide> var fn = sh.get("Function"); <ide> fn = this.xref.fetchIfRef(fn); <del>/* <del> console.log("x0: "+ x0, "y0: "+ y0, "x1: "+ x1, "y1: "+ y1); <del> console.log("size: "+ fn.dict.get("Size")); <del> ...
1
Ruby
Ruby
fix leaky chain on polymorphic association
51660f0191a7c71ce298c71e7366ebab55be729c
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def through_reflection <ide> def chain <ide> @chain ||= begin <ide> a = source_reflection.chain <del> b = through_reflection.chain <add> b = through_reflection.chain.map(&:dup) <ide> <ide> if options[:sour...
6
PHP
PHP
fix another typo
a853c0f93ab7031a0558f03c8f6ad5ccc21699e6
<ide><path>lib/Cake/Model/Model.php <ide> class Model extends Object { <ide> * <ide> * ### Valid keys in validations <ide> * <del> * - `role`: String with method name, regular expression (started by slash) or array with method and parameters <add> * - `rule`: String with method name, regular expression (started by s...
1
Ruby
Ruby
suggest url with full_index=1
b37c3e9cb252a7f83db2b58e3cf2e020523d1d51
<ide><path>Library/Homebrew/rubocops/patches.rb <ide> def patch_problems(patch) <ide> if match_obj = regex_match_group(patch, gh_patch_diff_pattern) <ide> problem <<~EOS <ide> use GitHub pull request URLs: <del> https://github.com/#{match_obj[1]}/#{match_obj[2]}/pull/#...
2
PHP
PHP
make hotfile() public for vite
0d936a95f201ab696434d828743f1302eb6e55c6
<ide><path>src/Illuminate/Foundation/Vite.php <ide> public function withEntryPoints($entryPoints) <ide> * <ide> * @return string <ide> */ <del> protected function hotFile() <add> public function hotFile() <ide> { <ide> return $this->hotFile ?? public_path('/hot'); <ide> } <ide><path...
2
Ruby
Ruby
preserve collaction when changing column in mysql
3a0d0f4bd878bf180002831c616a524aaec39203
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def build_change_column_definition(table_name, column_name, type, **options) # : <ide> options[:comment] = column.comment <ide> end <ide> <add> unless options.key?(:collation) <add> options[:...
2
Javascript
Javascript
fix resource leak
7aa5924dc6e8d80980a9b79f3d5fc6305bf1aea7
<ide><path>lib/http.js <ide> function Agent(options) { <ide> var name = host + ':' + port; <ide> if (self.requests[name] && self.requests[name].length) { <ide> self.requests[name].shift().onSocket(socket); <add> if (self.requests[name].length === 0) { <add> // don't leak <add> delete th...
4
Text
Text
clarify the filenames
45a65ee45d7895b9ffaf3c0f85a87ccb3acc138f
<ide><path>docs/advanced/AsyncActions.md <ide> We’ll use separate types in this tutorial. <ide> <ide> Let’s start by defining the several synchronous action types and action creators we need in our example app. Here, the user can select a reddit to display: <ide> <add>#### `actions.js` <add> <ide> ```js <ide> export ...
1
Ruby
Ruby
fix possible xss vector in js escape helper
033a738817abd6e446e1b320cb7d1a5c15224e9a
<ide><path>actionview/lib/action_view/helpers/javascript_helper.rb <ide> module JavaScriptHelper <ide> "\n" => '\n', <ide> "\r" => '\n', <ide> '"' => '\\"', <del> "'" => "\\'" <add> "'" => "\\'", <add> "`" => "\\`", <add> "$" => "\\$" <ide> ...
2
Go
Go
change dettach to detach
fdec5197f145a1aa18329337746f6a94389da0a1
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunAttachStdOutAndErrTTYMode(c *check.C) { <ide> <ide> // Test for #10388 - this will run the same test as TestRunAttachStdOutAndErrTTYMode <ide> // but using --attach instead of -a to make sure we read the flag correctly <del>func (s *D...
1
Python
Python
remove "double" assignment in tf-bart like models
714855bd8fbff69c93e76193bbf46aa9dee06412
<ide><path>src/transformers/models/bart/modeling_tf_bart.py <ide> def call( <ide> attn_weights = tf.reshape(layer_head_mask, (1, -1, 1, 1)) * tf.reshape( <ide> attn_weights, (bsz, self.num_heads, tgt_len, src_len) <ide> ) <del> attn_weights = attn_weights = tf.reshape(...
6
Go
Go
use math.maxint32 instead of math.maxuint32
eb45602d2fa0fac8a694d2afb1c59ef60b0e1f77
<ide><path>daemon/logger/fluentd/fluentd.go <ide> func New(ctx logger.Context) (logger.Logger, error) { <ide> } <ide> logrus.Debugf("logging driver fluentd configured for container:%s, host:%s, port:%d, tag:%s.", ctx.ContainerID, host, port, tag) <ide> <del> // logger tries to recoonect 2**64 - 1 times <add> // logg...
1
PHP
PHP
add tests for count with autofields
b6cddfdda9eb73ba37e9e652878b79d12f62f9d9
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testAutoFieldsWithContainQueryBuilder() { <ide> $this->assertArrayHasKey('name', $result['author']); <ide> $this->assertArrayHasKey('compute', $result); <ide> } <add> <add>/** <add> * Test count with autoFields <add> * <add> * @return void <add> */...
1
Text
Text
add release notes for v5.5.6 and v5.5.7
8001e8616acbc467c77b8b02bc7787d6a9555b23
<ide><path>CHANGELOG-5.5.md <ide> # Release Notes for 5.5.x <ide> <add>## v5.5.7 (2017-09-19) <add> <add>### Fixed <add>- Fix `CacheClearCommand` binding ([#21256](https://github.com/laravel/framework/pull/21256)) <add> <add> <add>## v5.5.6 (2017-09-19) <add> <add>### Changed <add>- Clear real-time facades when runnin...
1