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 |
|---|---|---|---|---|---|
Go | Go | move names to package api | dba271a42ab4841dbcf2e953491e9ee728cd8e16 | <add><path>api/names.go
<del><path>utils/names.go
<del>package utils
<add>package api
<ide>
<ide> import "regexp"
<ide>
<ide><path>daemon/checkpoint.go
<ide> import (
<ide> "os"
<ide> "path/filepath"
<ide>
<add> "github.com/docker/docker/api"
<ide> "github.com/docker/docker/api/types"
<del> "github.com/docker/doc... | 4 |
Javascript | Javascript | use index instead of debugid | 2d7a7adadefab7accc153feedd519a888e5f44ed | <ide><path>lib/optimize/RemoveParentModulesPlugin.js
<ide> function listToSet(list, chunk) {
<ide> var set = {};
<ide> list.forEach(function(module) {
<del> set[module.debugId] = {
<add> set[module._RemoveParentModulesPlugin_index] = {
<ide> module: module,
<ide> chunks: [chunk]
<ide> };
<ide> module.export... | 1 |
PHP | PHP | fix another connection() call | c43e414c61e109f1320cbf6283eb9e9c231cd3d1 | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> public function testValueBinderUpdateOnSubQueryStrategy()
<ide> protected function assertJoin($expected, $query)
<ide> {
<ide> if ($this->autoQuote) {
<del> $driver = $query->connection()->driver();
<add> $driver = $qu... | 1 |
Javascript | Javascript | add suspenselist to devtools | 60ba723bf78b9a28f60dce854e88e206fab52301 | <ide><path>packages/react-devtools-shared/src/__tests__/utils-test.js
<ide> * @flow
<ide> */
<ide>
<del>import {getDisplayName} from 'react-devtools-shared/src/utils';
<add>import {
<add> getDisplayName,
<add> getDisplayNameForReactElement,
<add>} from 'react-devtools-shared/src/utils';
<add>import {
<add> REACT_... | 3 |
Ruby | Ruby | add bigserial pk support | 6dc178711de036ae9a441e83978b7ed740be2f63 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> class PostgreSQLAdapter < AbstractAdapter
<ide>
<ide> NATIVE_DATABASE_TYPES = {
<ide> primary_key: "serial primary key",
<add> bigserial: "bigserial",
<ide> string: { name: "character varying" },... | 3 |
Ruby | Ruby | provide a middleware to debug misbehaving locks | 04b4a0666bdf900f9a4e797022dfe0197eebef6a | <ide><path>actionpack/lib/action_dispatch.rb
<ide> class IllegalStateError < StandardError
<ide> autoload :Callbacks
<ide> autoload :Cookies
<ide> autoload :DebugExceptions
<add> autoload :DebugLocks
<ide> autoload :ExceptionWrapper
<ide> autoload :Executor
<ide> autoload :Flash
<ide><path>ac... | 4 |
PHP | PHP | remove trait from test | ff15da8d59a494efdbde201dfcf4e5922433b09f | <ide><path>tests/Unit/ExampleTest.php
<ide> namespace Tests\Unit;
<ide>
<ide> use Tests\TestCase;
<del>use Illuminate\Foundation\Testing\WithoutMiddleware;
<ide> use Illuminate\Foundation\Testing\DatabaseMigrations;
<ide> use Illuminate\Foundation\Testing\DatabaseTransactions;
<ide> | 1 |
Java | Java | support macros in cronexpression | 1a8906bdc3a9e78e5036ef4874345a742fb151f7 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/support/CronExpression.java
<ide> public final class CronExpression {
<ide>
<ide> static final int MAX_ATTEMPTS = 366;
<ide>
<add> private static final String[] MACROS = new String[] {
<add> "@yearly", "0 0 0 1 1 *",
<add> "@annually", "0 0 0... | 2 |
Javascript | Javascript | require electron once | aec88679047a408ea1c51a47bb7ab7c0236573fd | <ide><path>static/index.js
<ide> (function () {
<add> const electron = require('electron')
<ide> const path = require('path')
<ide> const getWindowLoadSettings = require('../src/get-window-load-settings')
<ide> const entryPointDirPath = __dirname
<ide> }
<ide>
<ide> function handleSetupError (error) {
<del>... | 1 |
Ruby | Ruby | relocate bottles on linux using patchelf | 1b688a3a25fa4ca077de88e2177241b6cb76a5f6 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle
<ide> end
<ide>
<ide> return merge if args.merge?
<add> ensure_relocation_formulae_installed!
<ide> ARGV.resolved_formulae.each do |f|
<ide> bottle_formula f
<ide> end
<ide> end
<ide>
<add> def ensure_relocation_formulae_instal... | 10 |
Javascript | Javascript | define the last day of 'heisei' era | f98d5a26420e0aa6c1cef5134865b488276fdf33 | <ide><path>src/locale/ja.js
<ide> export default moment.defineLocale('ja', {
<ide> },
<ide> {
<ide> since: '1989-01-08',
<add> until: '2019-04-30',
<ide> offset: 1,
<ide> name: '平成',
<ide> narrow: '㍻', | 1 |
Text | Text | handle backpressure when write() return false | e9044c83a9b997bde60432cd056d36e3a7d8d1e3 | <ide><path>doc/api/stream.md
<ide> first argument. To reliably detect write errors, add a listener for the
<ide> The return value is `true` if the internal buffer does not exceed
<ide> `highWaterMark` configured when the stream was created after admitting `chunk`.
<ide> If `false` is returned, further attempts to write... | 1 |
Javascript | Javascript | move branch to the correct location | e12f48ef07e837553ea9c537b08d3e4a44d3fad2 | <ide><path>lib/path.js
<ide> const win32 = {
<ide> lastCommonSep = 3;
<ide> }
<ide> }
<add> if (lastCommonSep === -1)
<add> lastCommonSep = 0;
<ide> }
<ide>
<ide> let out = '';
<del> if (lastCommonSep === -1)
<del> lastCommonSep = 0;
<ide> // Generate the relativ... | 1 |
Text | Text | use comment for pull request template | 6f90e0799e7a8a080f5ecc76928bebb76c672946 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<add><!--
<ide> Please consider the following before submitting a pull request:
<ide>
<ide> Guidelines for contributing: https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md
<ide> Example of changes on an interactive website such as the following:
... | 1 |
Text | Text | fix typo in cli.md | 71de711189659847ea18313b7b0a57703960d0da | <ide><path>docs/sources/reference/commandline/cli.md
<ide> the proxy
<ide>
<ide> `--default-ulimit` allows you to set the default `ulimit` options to use for all
<ide> containers. It takes the same options as `--ulimit` for `docker run`. If these
<del>defaults are not set, `ulimit` settings will be inheritted, if not ... | 1 |
Javascript | Javascript | fix merge conflict in | 3a4e1dbb5b2957875cab6af11a5e5934e125a0d8 | <ide><path>src/test/ReactTestUtils.js
<ide> ReactShallowRenderer.prototype._render = function(element, transaction, context)
<ide> if (this._instance) {
<ide> this._instance.receiveComponent(element, transaction, context);
<ide> } else {
<del> var instance = new ShallowComponentWrapper(element.type);
<add> ... | 1 |
Text | Text | use caret range in blog instructions | aa1f8687d7c93a00c07d63237bcd54b23b4f50af | <ide><path>docs/_posts/2017-04-07-react-v15.5.0.md
<ide> We recommend using [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)
<ide> To install React with Yarn, run:
<ide>
<ide> ```bash
<del>yarn add react@15.5.0 react-dom@15.5.0
<add>yarn add react@^15.5.0 react-dom@^15.5.0
<ide> ```
<ide>
<ide> To instal... | 1 |
PHP | PHP | remove useless (array) cast | 00eebd513c8fa317438488080a6eb05767869a4c | <ide><path>src/Illuminate/Console/AppNamespaceDetectorTrait.php
<ide> trait AppNamespaceDetectorTrait {
<ide> */
<ide> protected function getAppNamespace()
<ide> {
<del> $composer = (array) json_decode(file_get_contents(base_path().'/composer.json', true));
<add> $composer = json_decode(file_get_contents(base_pat... | 1 |
Mixed | Javascript | check bytelength in readint(b|l)e | d964ffeec356167038b4060c867b355d5fea6987 | <ide><path>benchmark/buffers/buffer-read.js
<ide> const types = [
<ide> 'FloatLE',
<ide> 'FloatBE',
<ide> 'DoubleLE',
<del> 'DoubleBE'
<add> 'DoubleBE',
<add> 'IntLE',
<add> 'IntBE',
<ide> ];
<ide>
<ide> const bench = common.createBenchmark(main, {
<ide> function main(conf) {
<ide> const fn = `read${type}`... | 4 |
Javascript | Javascript | fix accidental overriding of imports | dd9a0a4e0b68e36b1bac39ca3b98f29f2d6b7c0a | <ide><path>packages/ember-htmlbars/tests/helpers/log_test.js
<ide> import EmberView from 'ember-views/views/view';
<ide> import compile from 'ember-template-compiler/system/compile';
<ide> import { runAppend, runDestroy } from "ember-runtime/tests/utils";
<ide>
<del>var originalLookup, originalLog, logCalls, lookup, v... | 4 |
Text | Text | improve ecdh example | 64cf96d684cc8c713c8d12daeb2b0c68ab6dd760 | <ide><path>doc/api/crypto.md
<ide> If the `inputEncoding` is not provided, `key` is expected to be a [`Buffer`][],
<ide> Example (uncompressing a key):
<ide>
<ide> ```js
<del>const { ECDH } = require('crypto');
<add>const { createECDH, ECDH } = require('crypto');
<ide>
<del>const ecdh = ECDH('secp256k1');
<add>const ... | 1 |
PHP | PHP | fix failing tests | 02f66ed3fa997056818e3b254f23e7a139b39baa | <ide><path>src/Console/Command/BakeShell.php
<ide> public function getOptionParser() {
<ide> 'help' => __d('cake_console', 'Theme to use when baking code.')
<ide> ]);
<ide>
<del> foreach ($this->tasks as $task) {
<add> foreach ($this->_taskMap as $task => $config) {
<ide> $taskParser = $this->{$task}->getOpt... | 2 |
Python | Python | add .output_shape attribute in all layers (+tests) | c506fbda4ac1d3df0f9a6111ba9bf75a20bc7b68 | <ide><path>keras/layers/containers.py
<ide> def add(self, layer):
<ide> self.constraints += constraints
<ide> self.updates += updates
<ide>
<add> @property
<add> def output_shape(self):
<add> return self.layers[-1].output_shape
<add>
<ide> def get_output(self, train=False):
<ide> ... | 9 |
Mixed | Ruby | make disable_with default in submit_tag | 3822a322a82a19a9341a21a0cb1e36653da09c46 | <ide><path>actionview/CHANGELOG.md
<add>* Make `disable_with` the default behavior for submit tags. Disables the
<add> button on submit to prevent double submits.
<add>
<add> *Justin Schiff*
<add>
<ide> * Add a break_sequence option to word_wrap so you can specify a custom break.
<ide>
<ide> * Mauricio G... | 6 |
Ruby | Ruby | improve tests (closes ) [josh] | f0dc2774e80496bbc46f5b44e76deaa575131a42 | <ide><path>actionpack/test/template/javascript_helper_test.rb
<ide> def test_link_to_function_with_href
<ide> link_to_function("Greeting", "alert('Hello world!')", :href => 'http://example.com/')
<ide> end
<ide>
<add> def test_link_to_function_with_href
<add> assert_dom_equal %(<a href="http://example.com/... | 1 |
PHP | PHP | integrate the new actiondispatcher into dispatcher | 268de40f2f264e93f0f315dbf90e8f0a2d725931 | <ide><path>src/Http/ActionDispatcher.php
<ide> public function __construct($factory = null, $eventManager = null)
<ide> */
<ide> public function dispatch(Request $request, Response $response)
<ide> {
<del> Router::pushRequest($request);
<add> if (Router::getRequest(true) !== $request) {
<add>... | 7 |
Ruby | Ruby | remove old rubygems require | da84c9d0d243bb3b27748e250cb7ef71df70bb65 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
<ide> def self.establish_connection(spec = nil)
<ide> unless spec.key?(:adapter) then raise AdapterNotSpecified, "database configuration does not specify adapter" end
<ide>
<ide> begin
<del> ... | 1 |
PHP | PHP | remove redundant check | 2c91f119cb0bb5dc19d33100d7d256ef887cb697 | <ide><path>lib/Cake/Model/Datasource/Database/Sqlite.php
<ide> public function column($real) {
<ide> if (in_array($col, array('text', 'integer', 'float', 'boolean', 'timestamp', 'date', 'datetime', 'time'))) {
<ide> return $col;
<ide> }
<del> if (strpos($col, 'varchar') !== false || strpos($col, 'char') !== fal... | 1 |
PHP | PHP | avoid use of reflection | bbc736bab11fd6b6a0152375368b8e0dcfedb1c3 | <ide><path>src/TestSuite/MiddlewareDispatcher.php
<ide> use Laminas\Diactoros\Stream;
<ide> use LogicException;
<ide> use Psr\Http\Message\ResponseInterface;
<del>use ReflectionClass;
<del>use ReflectionException;
<ide>
<ide> /**
<ide> * Dispatches a request capturing the response for integration
<ide> public functio... | 1 |
Python | Python | improve tokenizer tests | 66ea739168cdb53a8a3ade35febf3a27f4cd1387 | <ide><path>tests/test_tokenization_common.py
<ide> def convert_batch_encode_plus_format_to_encode_plus(batch_encode_plus_sequences)
<ide> # TODO: this test can be combined with `test_sentencepiece_tokenize_and_convert_tokens_to_string` after the latter is extended to all tokenizers.
<ide> def test_tokenize_spec... | 1 |
Javascript | Javascript | use common/fixtures in test-https-close | a9a0146c8b85fd807ad5ccdcc33b182e65efebab | <ide><path>test/parallel/test-https-close.js
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<del>const fs = require('fs');
<add>const fixtures = require('../common/fixtures');
<ide> const https = require('https');
<ide>
<ide> const options = {
<del... | 1 |
Python | Python | fix typo in `unwrap` docstring | a562cb2d44760d01a5481280d98248026fabeb40 | <ide><path>numpy/lib/function_base.py
<ide> def unwrap(p, discont=None, axis=-1, *, period=2*pi):
<ide> difference from their predecessor of more than ``max(discont, period/2)``
<ide> to their `period`-complementary values.
<ide>
<del> For the default case where `period` is :math:`2\pi` and is `discont` is
... | 1 |
Mixed | Python | interleave trials in benchmark script | c0007d56e9d653d42276dcc10dd1896507346bff | <ide><path>scripts/bench/README.md
<ide> Work-in-progress benchmarks.
<ide> ## Running the suite
<ide>
<ide> ```
<del>$ ./measure.py react-a.min.js >a.txt
<del>$ ./measure.py react-b.min.js >b.txt
<add>$ ./measure.py react-a.min.js a.txt react-b.min.js b.txt
<ide> $ ./analyze.py a.txt b.txt
<ide> ```
<ide>
<ide><path... | 2 |
Javascript | Javascript | absorb `path` error cases | 4692e284e305e3ec2418f7f5005bed8d3e62ad11 | <ide><path>lib/internal/bootstrap/pre_execution.js
<ide> function patchProcessObject(expandArgv1) {
<ide> if (expandArgv1 && process.argv[1] && !process.argv[1].startsWith('-')) {
<ide> // Expand process.argv[1] into a full path.
<ide> const path = require('path');
<del> process.argv[1] = path.resolve(proc... | 1 |
Python | Python | remove experimental optimizer usage on github | 36a140b8765eaa07525ac42a00cbd01a8b03b98e | <ide><path>official/modeling/optimization/optimizer_factory.py
<ide>
<ide> OPTIMIZERS_CLS = {
<ide> 'sgd': tf.keras.optimizers.SGD,
<del> 'sgd_experimental': tf.keras.optimizers.experimental.SGD,
<add> # TODO(chenmoneygithub): experimental.SGD
<ide> 'adam': tf.keras.optimizers.Adam,
<del> 'adam_experi... | 1 |
Python | Python | simplify dag.set_dag_runs_state method | e945439abead0daf4cf6f8065069e6549c7e5205 | <ide><path>airflow/models/dag.py
<ide> def set_dag_runs_state(
<ide> query = query.filter(DagRun.execution_date >= start_date)
<ide> if end_date:
<ide> query = query.filter(DagRun.execution_date <= end_date)
<del> drs = query.all()
<del>
<del> dirty_ids = []
<del> fo... | 2 |
Javascript | Javascript | describe unflushed http requests | 080357e906e2ec34e669091ef345fc4442e23ea0 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
<ide> }
<ide> }
<ide>
<add> handleResponse.description = method + ' ' + url;
<ide> return handleResponse;
<ide>
<ide> function handleResponse() {
<ide> function creat... | 2 |
PHP | PHP | remove leading slash | 29901220e92daa31912cd116f7826dd73f8c1ddc | <ide><path>Cake/ORM/Table.php
<ide> public function findThreaded(Query $query, array $options = []) {
<ide> *
<ide> * @param mixed primary key value to find
<ide> * @param array $options options accepted by `Table::find()`
<del> * @throws \Cake\ORM\Error\RecordNotFoundException if the record with such id
<add> * @th... | 1 |
Python | Python | add download script for librispeech dataset | 9bf9a837866425d0bc316848e5248d0eda1a3a2c | <ide><path>research/deep_speech/data/download.py
<add># Copyright 2018 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
<ad... | 1 |
PHP | PHP | make methods protected | 76cb5505845665a93816f05df980fc4a6533212c | <ide><path>src/Illuminate/Foundation/Console/PresetCommand.php
<ide> protected function none()
<ide> }
<ide>
<ide> /**
<del> * Install the "fresh" preset.
<add> * Install the "bootstrap" preset.
<ide> *
<ide> * @return void
<ide> */
<ide> protected function bootstrap()
<ide> *
<ide>... | 1 |
Javascript | Javascript | fix warnings in create view | bd004568d3e006b61391417fc405e9483996dc81 | <ide><path>Libraries/Components/Touchable/TouchableHighlight.js
<ide>
<ide> var ColorPropType = require('ColorPropType');
<ide> var NativeMethodsMixin = require('NativeMethodsMixin');
<del>var React = require('React');
<ide> const PropTypes = require('prop-types');
<add>var React = require('React');
<ide> var ReactNat... | 1 |
Javascript | Javascript | prefer strict equality, type validation | e9b6fbbf170d4ef0031d3194d4c0148269037030 | <ide><path>lib/dgram.js
<ide> function lookup6(address, callback) {
<ide>
<ide>
<ide> function newHandle(type) {
<del> if (type == 'udp4') {
<add> if (type === 'udp4') {
<ide> const handle = new UDP();
<ide> handle.lookup = lookup4;
<ide> return handle;
<ide> }
<ide>
<del> if (type == 'udp6') {
<add... | 2 |
Python | Python | add regression test for #401 | 98c13d8aa9f51f4afe409f7ea6f730393de48308 | <ide><path>spacy/tests/regression/test_issue401.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.xfail
<add>@pytest.mark.models
<add>@pytest.mark.parametrize('text,i', [("Jane's got a new car", 1),
<add> ("Jane ... | 1 |
Text | Text | add information on hot module replacement | 4d2c268cd608bd3e9c72e981ecfa748c011324f0 | <ide><path>guide/english/react/hot-module-replacement/index.md
<add>---
<add>title: Hot Module Replacement
<add>---
<add>
<add># Hot Module Replacement
<add>Hot Module Replacement (HMR) will improve your experience while working within React. This helpful little tool allows you to reload the page you are working on w... | 1 |
Javascript | Javascript | use semicolon for clarity | 04d07bf52575295f9cef1f752c8ae5cbc36cc5ca | <ide><path>test/parallel/test-child-process-double-pipe.js
<ide> const spawn = require('child_process').spawn;
<ide> let grep, sed, echo;
<ide>
<ide> if (common.isWindows) {
<del> grep = spawn('grep', ['--binary', 'o']),
<del> sed = spawn('sed', ['--binary', 's/o/O/']),
<add> grep = spawn('grep', ['--binary', 'o'])... | 2 |
Ruby | Ruby | remove array subclassing | 429caf69a9bc3f86e510933d45c8d0cad6db7d10 | <ide><path>Library/Homebrew/compilers.rb
<del>class Compilers < Array
<del> def include? cc
<add>class Compilers
<add> include Enumerable
<add>
<add> def initialize(*args)
<add> @compilers = Array.new(*args)
<add> end
<add>
<add> def each(*args, &block)
<add> @compilers.each(*args, &block)
<add> end
<add>
<... | 3 |
Ruby | Ruby | remove collection references from the superclass | 974ddb035c6fdba92883309b25fdd25befd74bd0 | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def initialize(*)
<ide> end
<ide>
<ide> def render(context, options, block)
<del> as = as_variable(options)
<del> setup(context, options, as)
<add> @as = as_variable(options)
<add> setup(context, options, @as)
<ide>
<... | 1 |
Ruby | Ruby | add a test for default_url_options in am | 7fe4ca3253e902c67d4765eeece285ffc49f3d89 | <ide><path>railties/test/application/initializers/frameworks_test.rb
<ide> def setup
<ide> ActionMailer::Base.view_paths.include?(File.expand_path("app/views", app_path))
<ide> end
<ide>
<add> test "allows me to configure default url options for ActionMailer" do
<add> app_file "config/environments/de... | 1 |
Text | Text | update the redux flow.md | ae1a2e8ae22558c2dd566a561185f33aecede7c9 | <ide><path>docs/Basics/The Redux Flow.md
<ide> Redux implements an architecture with unidirectional data flow. What does this m
<ide>
<ide> Here is how any change in a Redux app happens:
<ide>
<del>1. You call `store.dispatch(action)`. An `action` is just a plain object describing “what happened”. For example, `{ typ... | 1 |
Python | Python | add creating_job_id to dagrun table | 112f7d716900556a7a41e3a8eea197f6bcfe9ed9 | <ide><path>airflow/jobs/backfill_job.py
<ide> def _get_dag_run(self, run_date: datetime, dag: DAG, session: Session = None):
<ide> session=session,
<ide> conf=self.conf,
<ide> run_type=DagRunType.BACKFILL_JOB,
<add> creating_job_id=self.id,
<ide> )
<ide>
<ide> ... | 9 |
Python | Python | remove stray comments | d96c6359a488b2ccdd0eb61b4ba04f3cc5ad45a7 | <ide><path>numpy/random/tests/test_generator_mt19937.py
<ide> def test_multivariate_normal(self, method):
<ide> assert_array_almost_equal(actual, desired, decimal=15)
<ide>
<ide> # Check for default size, was raising deprecation warning
<del> #random = Generator(MT19937(self.seed))
<ide> ... | 1 |
Text | Text | add checkbox to verify changes in a browser | 72fcb6c65919766c22793e56792b3b3bb5d1ee4a | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> Please list the specific changes involved in this pull request.
<ide> ## Requirements Checklist
<ide> - [ ] Feature implemented / Bug fixed
<ide> - [ ] If necessary, more likely in a feature request than a bug fix
<add> - [ ] Change has been verified in an actual brows... | 1 |
Ruby | Ruby | add yosemite to mac versions | 6bbe82062ec862d3edc22cade7c401688ae68837 | <ide><path>Library/Homebrew/os/mac/version.rb
<ide> module OS
<ide> module Mac
<ide> class Version < ::Version
<ide> SYMBOLS = {
<add> :yosemite => '10.10',
<ide> :mavericks => '10.9',
<ide> :mountain_lion => '10.8',
<ide> :lion => '10.7', | 1 |
PHP | PHP | implement translation behavior default locale | 7472b01428c67ec873d096c992a02a4d42991b2a | <ide><path>src/Model/Behavior/TranslateBehavior.php
<ide> use ArrayObject;
<ide> use Cake\Collection\Collection;
<ide> use Cake\Event\Event;
<add>use Cake\I18n\I18n;
<ide> use Cake\ORM\Behavior;
<ide> use Cake\ORM\Entity;
<ide> use Cake\ORM\Query;
<ide> class TranslateBehavior extends Behavior {
<ide> 'implementedFin... | 2 |
Java | Java | add viewmanager param to @reactmodulelist | c27cc9c1ac9c2bda9b88a8af66aa13efd8ca9a0a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> * require special integration with other framework parts (e.g. with the list of packages to load
<ide> * view managers from).
<ide> */
<del>@ReactModuleList({
<del> AndroidInfoModule.class,
<del> AnimationsDebugModule.class,
<de... | 3 |
Javascript | Javascript | remove a unnecessary concatenation | c9802801598a138df4bf58767c151e83ce328856 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
<ide> // Check to see if a REPL keyword was used. If it returns true,
<ide> // display next prompt and return.
<ide> if (cmd && cmd.charAt(0) === '.' && isNaN(parseFloat(cmd))) {
<del> var matches = cm... | 1 |
Javascript | Javascript | remove unnecessary require('buffer').buffer | 5e68e168b8e44356f9d97a672836bef718130565 | <ide><path>test/parallel/test-buffer-nopendingdep-map.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<del>const Buffer = require('buffer').Buffer;
<ide>
<ide> process.on('warning', common.mustNotCall('A warning should not be emitted'));
<ide>
<ide><path>test/parallel/test-buffer-pending-depr... | 6 |
Text | Text | remove unnecessary whitespace | 3ad89fced21d896a70a8bffb5e6e2146ff36135d | <ide><path>guides/source/rails_on_rack.md
<ide> Here's how it loads the middlewares:
<ide> ```ruby
<ide> def middleware
<ide> middlewares = []
<del> middlewares << [Rails::Rack::Debugger] if options[:debugger]
<add> middlewares << [Rails::Rack::Debugger] if options[:debugger]
<ide> middlewares << [::Rack::Conten... | 1 |
Python | Python | add assert_array_max_ulp comparison function | b325f7350facb82a1fc72b4a52e61d90a0101962 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_simple(self):
<ide> x = np.array([1e-5, 1, 1000, 10500], dtype=dt)
<ide> assert_array_almost_equal(spacing(x), ref[dt], decimal=dec)
<ide>
<add>class TestULP(unittest.TestCase):
<add> def test_equal(self):
<add> x = np.random... | 2 |
Ruby | Ruby | give better suggestion on git/hg dependency | 40e64263226d4017b2437fbd5fd777c41ab3f063 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> Or if it is indeed a runtime denpendency
<ide> depends_on "#{dep}" => :run
<ide> EOS
<del> when "git", "ruby", "mercurial"
<del> problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep}... | 1 |
Go | Go | improve error for getstore() | 79bf46fd79f70edc93b0336db788419912a399fe | <ide><path>libnetwork/error.go
<ide> func (mr ManagerRedirectError) Error() string {
<ide>
<ide> // Maskable denotes the type of this error
<ide> func (mr ManagerRedirectError) Maskable() {}
<add>
<add>// ErrDataStoreNotInitialized is returned if an invalid data scope is passed
<add>// for getting data store
<add>type... | 2 |
Text | Text | fix syntax error [ci skip] | 8cdeeb5b26c4e5e2a45bd8500ca5db0e025cb39f | <ide><path>guides/source/caching_with_rails.md
<ide> gem 'connection_pool'
<ide> Next, pass the `:pool_size` and/or `:pool_timeout` options when configuring the cache store:
<ide>
<ide> ```ruby
<del>config.cache_store = :mem_cache_store, "cache.example.com", pool_size: 5, pool_timeout: 5
<add>config.cache_store = :mem... | 1 |
Go | Go | forbid certain paths within docker build add | f712e10cb21d0056593ea23152d347637396c810 | <ide><path>buildfile.go
<ide> func (b *buildFile) addContext(container *Container, orig, dest string) error {
<ide> if strings.HasSuffix(dest, "/") {
<ide> destPath = destPath + "/"
<ide> }
<add> if !strings.HasPrefix(origPath, b.context) {
<add> return fmt.Errorf("Forbidden path: %s", origPath)
<add> }
<ide> fi,... | 2 |
Python | Python | remove unreachable code from manualschema | 588b61e1718807cce6691090ed28175bf6fdb268 | <ide><path>rest_framework/schemas/inspectors.py
<ide> def get_link(self, path, method, base_url):
<ide> description=self._description
<ide> )
<ide>
<del> return self._link
<del>
<ide>
<ide> class DefaultSchema(object):
<ide> """Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS set... | 1 |
Python | Python | remove trailing whitespace | 33bacd5114e1b22f9ff50670342385dbf04050e6 | <ide><path>numpy/lib/npyio.py
<ide> def __getattribute__(self, key):
<ide> return object.__getattribute__(self, '_obj')[key]
<ide> except KeyError:
<ide> raise AttributeError(key)
<del>
<add>
<ide> def __dir__(self):
<ide> """
<ide> Enables dir(bagobj) to list the... | 1 |
Javascript | Javascript | use async/await in `openitem()` | 77ea97e623cdef220de6e933b56ef30539e2c94b | <ide><path>src/workspace.js
<del>'use strict'
<add>'use babel'
<ide>
<ide> const _ = require('underscore-plus')
<ide> const url = require('url')
<ide> module.exports = class Workspace extends Model {
<ide> }
<ide> }
<ide>
<del> openItem (item, options = {}) {
<add> async openItem (item, options = {}) {
<ide> ... | 1 |
Ruby | Ruby | use quiet_safe_system to silence bzr updates | 5d811c519beee45edac5387e92f1f2bee4f72452 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def clone_repo
<ide> end
<ide>
<ide> def update
<del> @clone.cd { safe_system bzrpath, 'update' }
<add> @clone.cd { quiet_safe_system bzrpath, "update" }
<ide> end
<ide>
<ide> def bzrpath | 1 |
Ruby | Ruby | fix unstated usage of inflector | 8bb162f008bb8e3a66b4a0d98b9f56cad45a4ab3 | <ide><path>railties/lib/rails/railtie.rb
<ide> require 'rails/initializable'
<ide> require 'rails/configuration'
<add>require 'active_support/inflector'
<ide>
<ide> module Rails
<ide> class Railtie
<ide> def inherited(base)
<ide> end
<ide>
<ide> def railtie_name(railtie_name = nil)
<del> @railtie... | 1 |
Java | Java | fix some warning | 0b2c0cfb4f8194c3dbb0b1fb1c0a6e08e18207a0 | <ide><path>spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java
<ide> public void emptyList() {
<ide> assertEquals("", expression.getValue(this, String.class));
<ide> }
<ide>
<add> @SuppressWarnings("unchecked")
<ide> @Test
<ide> public void resolveCollectionElementType() {
<ide>... | 4 |
Ruby | Ruby | use the host glibc version only | 0db0db95169a9d8437c8b058d9b82be40f1766b3 | <ide><path>Library/Homebrew/extend/os/linux/development_tools.rb
<ide> def default_compiler
<ide> end
<ide>
<ide> def build_system_info
<del> brewed_glibc_version = begin
<del> Formula["glibc"].any_installed_version
<del> rescue FormulaUnavailableError
<del> nil
<del> end
<del> ... | 1 |
Python | Python | fix tests in tests/www/test_views.py | 52604a3444e4473f5c20f56624624869ea50ef9b | <ide><path>tests/www/test_views.py
<ide> def test_trigger_dag_form_origin_url(self, test_origin, expected_origin):
<ide> # https://github.com/python/cpython/pull/24297/files
<ide> # Check if tests are running with a Python version containing the above fix
<ide> # where ";" is removed as a separa... | 1 |
PHP | PHP | use created object to access atom constant | 68f2f8a1ea9c7bf08f486e3d995661951d1af4cd | <ide><path>Cake/Test/TestCase/Utility/TimeTest.php
<ide> public function testToServer() {
<ide> */
<ide> public function testToAtom() {
<ide> $dateTime = new \DateTime;
<del> $this->assertEquals($dateTime->format(DATE_ATOM), $this->Time->toAtom(time()));
<add> $this->assertEquals($dateTime->format($dateTime::ATOM... | 2 |
Ruby | Ruby | fix #postgresql_version docs | 4d0464187cebdf513f91a61c356a2452043d27e7 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def distinct(columns, orders) #:nodoc:
<ide> end
<ide>
<ide> protected
<del> # Returns the version of the connected PostgreSQL version.
<add> # Returns the version of the connected PostgreSQL server.
<id... | 1 |
Python | Python | fix versionadded tags | 209889c55989ae5cfde6d48503761af33b84e128 | <ide><path>numpy/core/fromnumeric.py
<ide> def amax(a, axis=None, out=None, keepdims=np._NoValue):
<ide> Axis or axes along which to operate. By default, flattened input is
<ide> used.
<ide>
<del> .. versionadded: 1.7.0
<add> .. versionadded:: 1.7.0
<ide>
<ide> If this is a tupl... | 2 |
Python | Python | fix image resizing in preprocessing/image | 4302d8060d06b8a19f2d16b5565ffdabf82277dd | <ide><path>keras/preprocessing/image.py
<ide> def load_img(path, grayscale=False, target_size=None):
<ide> else: # Ensure 3 channel even when loaded image is grayscale
<ide> img = img.convert('RGB')
<ide> if target_size:
<del> img = img.resize(target_size)
<add> img = img.resize((target_s... | 1 |
PHP | PHP | fix issue with logging scopes | 72f4d4fac09645c99c8443ec995b67a11eb1eeea | <ide><path>lib/Cake/Log/CakeLog.php
<ide> public static function write($type, $message, $scope = array()) {
<ide> $logged = false;
<ide> foreach (self::$_Collection->enabled() as $streamName) {
<ide> $logger = self::$_Collection->{$streamName};
<del> $types = null;
<del> $scopes = array();
<add> $types = $... | 2 |
Javascript | Javascript | make curve creategeometry 2d/3d friendly | c9e88e32a7e6a8a03b2d5a619ee7cd61942aa772 | <ide><path>src/extras/core/CurvePath.js
<ide> THREE.CurvePath.prototype.createGeometry = function( points ) {
<ide>
<ide> for ( var i = 0; i < points.length; i ++ ) {
<ide>
<del> geometry.vertices.push( new THREE.Vector3( points[ i ].x, points[ i ].y, points[ i ].z ) );
<add> geometry.vertices.push( new THREE.Vect... | 1 |
Python | Python | require timetable class be registered via plugin | be7efb1d30929a7f742f5b7735a3d6fbadadd352 | <ide><path>airflow/plugins_manager.py
<ide> from airflow import settings
<ide> from airflow.utils.entry_points import entry_points_with_dist
<ide> from airflow.utils.file import find_path_from_directory
<add>from airflow.utils.module_loading import as_importable_string
<ide>
<ide> if TYPE_CHECKING:
<ide> from airf... | 4 |
Go | Go | add tests for 'images' subcommand | 3dba4022adbd1f21a8b2ec4a6035cacfe143b380 | <ide><path>commands.go
<ide> func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
<ide> return nil
<ide> }
<ide>
<del> fmt.Fprintf(stdout, "digraph G {\n")
<add> fmt.Fprintf(stdout, "digraph docker {\n")
<ide>
<ide> var parentImage *Image
<ide> var err error
<ide><path>commands_... | 2 |
Ruby | Ruby | assign a new session_id to session options hash | 54a0b01f760354ee8002d136b322d6ea429b67f6 | <ide><path>actionpack/lib/action_dispatch/request/session.rb
<ide> def options
<ide> def destroy
<ide> clear
<ide> options = self.options || {}
<del> @by.send(:destroy_session, @env, options[:id], options)
<del> options[:id] = nil
<add> new_sid = @by.send(:destroy_session, @en... | 1 |
Text | Text | update filtering docs | 286cf57a8d22aafd51054a40a5cf8a58edfc8226 | <ide><path>docs/api-guide/filtering.md
<ide> Note that you can use both an overridden `.get_queryset()` and generic filtering
<ide> """
<ide> model = Product
<ide> serializer_class = ProductSerializer
<del> filter_class = ProductFilter
<add> filterset_class = ProductFilter
<ide>
<... | 1 |
Javascript | Javascript | implement bound partial semantics | f529ab6b85fc279cfd3eb54c31b5686c96494304 | <ide><path>packages/ember-htmlbars/lib/env.js
<ide> import updateSelf from "ember-htmlbars/hooks/update-self";
<ide> import getRoot from "ember-htmlbars/hooks/get-root";
<ide> import getChild from "ember-htmlbars/hooks/get-child";
<ide> import getValue from "ember-htmlbars/hooks/get-value";
<del>import cleanup from "em... | 7 |
Javascript | Javascript | remove support for inline anonymous templates | bb149dcbb7df91866fce10e6dbec78c3e439d0ee | <ide><path>packages/ember-handlebars/lib/loader.js
<ide> Ember.Handlebars.bootstrap = function(ctx) {
<ide> // Get the name of the script, used by Ember.View's templateName property.
<ide> // First look for data-template-name attribute, then fall back to its
<ide> // id if no name is found.
<del> ... | 2 |
Ruby | Ruby | fix removal of old mirrors | 3ebd7df62d0b05a8a010bec74793cc4e688a2fc8 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide> replacement_pairs << [/^ revision \d+\n(\n( head "))?/m, "\\2"]
<ide> end
<ide>
<del> replacement_pairs << [/(^ mirror .*\n)?/, ""] if requested_spec == :stable
<add> replacement_pairs += formula_spec.mirrors.map ... | 1 |
Python | Python | use dbapihook as base for jdbchook | 7ea51e619e365e6193937790c24d150f6f811e17 | <ide><path>airflow/hooks/jdbc_hook.py
<ide> import logging
<ide> import jaydebeapi
<ide>
<del>from airflow.hooks.base_hook import BaseHook
<add>from airflow.hooks.dbapi_hook import DbApiHook
<ide>
<del>class JdbcHook(BaseHook):
<add>class JdbcHook(DbApiHook):
<ide> """
<ide> General hook for jdbc db access.
<... | 3 |
Python | Python | achieve compatibility with tensorflow 1.0rc1 | 1de4bf1b5989f76e377f0b8022b41773a354ba99 | <ide><path>keras/backend/tensorflow_backend.py
<ide> # Change its value via `manual_variable_initialization(value)`.
<ide> _MANUAL_VAR_INIT = False
<ide>
<add># These two integers contain the tensorflow version for coping with API breaks.
<add>tf_major_version = int(tf.__version__.split('.')[0])
<add>tf_minor_version ... | 1 |
Java | Java | reimplement "skiplast" operator | fe9d383bcb989045316d4c2add4a5196cf3c55d4 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final Observable<T> skip(long time, TimeUnit unit, Scheduler scheduler) {
<ide> * @see <a href="http://msdn.microsoft.com/en-us/library/hh211750.aspx">MSDN: Observable.SkipLast</a>
<ide> */
<ide> public final Observable<T> skipLast(int c... | 3 |
Text | Text | add missing documentation to cli/import.md | 3101941120db54dde89933d76d3ea23c4bde0f7c | <ide><path>docs/reference/commandline/import.md
<ide> weight=1
<ide>
<ide> # import
<ide>
<del> Usage: docker import URL|- [REPOSITORY[:TAG]]
<add> Usage: docker import file|URL|- [REPOSITORY[:TAG]]
<ide>
<ide> Create an empty filesystem image and import the contents of the
<ide> tarball (.tar, .tar.gz, .... | 1 |
Go | Go | remove extraneous mount aliases | 39a3700c01142713e88ff954e86b5dc38174511b | <ide><path>api/client/service/opts.go
<ide> func (m *MountOpt) Set(value string) error {
<ide> key := strings.ToLower(parts[0])
<ide>
<ide> if len(parts) == 1 {
<del> if key == "readonly" || key == "ro" {
<add> switch key {
<add> case "readonly", "ro":
<ide> mount.ReadOnly = true
<ide> continue
<del>... | 2 |
PHP | PHP | apply fixes from styleci | 7133f119d28e2767cb8ae5ea5cc74cc166c892cf | <ide><path>src/Illuminate/Validation/ValidationException.php
<ide> namespace Illuminate\Validation;
<ide>
<ide> use Exception;
<del>use Illuminate\Support\Facades\Validator as ValidatorFacade;
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Support\Facades\Validator as ValidatorFacade;
<ide>
<ide> class Validat... | 1 |
Ruby | Ruby | modernise the grc formula somewhat | ceef7729e0e3913aff3babb02a7f760de1257a76 | <ide><path>Library/Homebrew/formula.rb
<ide> def info; prefix+'share'+'info' end
<ide> def include; prefix+'include' end
<ide> def share; prefix+'share' end
<ide>
<del> # generally we don't want these to be inside the keg
<add> # generally we don't want var stuff inside the keg
<ide> def var; HOMEBREW_PREFIX+'... | 1 |
Python | Python | fix scipy intersphinx link | 0b64e2a91483b80b86ab8a44534e09c015fdea88 | <ide><path>doc/source/conf.py
<ide> def setup(app):
<ide> intersphinx_mapping = {
<ide> 'neps': ('https://numpy.org/neps', None),
<ide> 'python': ('https://docs.python.org/3', None),
<del> 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
<add> 'scipy': ('https://docs.scipy.org/doc/scipy', No... | 1 |
Go | Go | forbid login of a null-string username | 755df347fbaf6a02e6bdc2d5b7339aade2dbade0 | <ide><path>api/client/login.go
<ide> func (cli *DockerCli) configureAuth(flUser, flPassword, flEmail, serverAddress s
<ide> if !ok {
<ide> authconfig = types.AuthConfig{}
<ide> }
<add> authconfig.Username = strings.TrimSpace(authconfig.Username)
<ide>
<del> if flUser == "" {
<add> if flUser = strings.TrimSpace(flU... | 1 |
Text | Text | update missed title | d542b9a9b90be9d4712d54f25735183a54a47324 | <ide><path>curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/python-dictionaries.english.md
<ide> ---
<ide> id: 5e7b9f090b6c005b0e76f067
<del>title: Dictionaries A
<add>title: Python Dictionaries
<ide> challengeType: 11
<ide> isRequired: true
<ide> videoId: dnzvfimrRMg | 1 |
Python | Python | remove debugging code | 2ad48898682e6c8f043e5c2317ccd30a3094eeb4 | <ide><path>test.py
<ide> def main(args):
<ide> masterMode = (args[0] == '-m')
<ide> manifestFile = args[0] if not masterMode else manifestFile
<ide>
<del>
<del>
<del> masterMode = True
<del>
<del>
<del>
<ide> setUp(manifestFile, masterMode)
<ide>
<ide> server = HTTPServer(('127.0.0.1', 8080... | 1 |
Javascript | Javascript | add tests for root-scope-used activation hook | e0041c3c24988574b3ca69b5b862af35c91887e5 | <ide><path>spec/workspace-spec.js
<ide> describe('Workspace', () => {
<ide> })
<ide> })
<ide>
<add> describe('the root-scope-used hook', () => {
<add> it('fires when opening a file or changing the grammar of an open file', async () => {
<add> await atom.packages.activatePackage('language-javascript')
<a... | 1 |
Ruby | Ruby | fix syntaxerror in the api doc | ec0050edf357dec43ac41d167f23242aa064b5ff | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def redirect_back(fallback_location:, allow_other_host: true, **args)
<ide> # subject to browser security settings and user preferences. If the request
<ide> # is missing this header, the <tt>fallback_location</tt> will be used.
<ide> #
... | 1 |
PHP | PHP | add subselect to query builder | 2a72b471d59cad8701a729fd99cf4b972005e8cf | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function select($columns = array('*'))
<ide> * Add a new "raw" select expression to the query.
<ide> *
<ide> * @param string $expression
<add> * @param array $bindings
<add> * @return \Illuminate\Database\Query\Builder|static
<add> */
<add>... | 2 |
Text | Text | add sticky footer faq | fbf7e979dde46a6ef0874aa7707eb1213a517f43 | <ide><path>README.md
<ide> When I first created this project I didn't have any experience with Handlebars.
<ide> ### Why do you have all routes in app.js?
<ide> For the sake of simplicity. While there might be a better approach, such as passing `app` context to each controller as outlined in this [blog](http://timsterm... | 1 |
PHP | PHP | update factory find model logic | d5cf953ff4bd7db92ebdbfe14d914bbdf13e64d8 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> public function newModel(array $attributes = [])
<ide> public function modelName()
<ide> {
<ide> $resolver = static::$modelNameResolver ?: function (self $factory) {
<del> return 'App\\'.Str::replaceLast('Factory', '', cl... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.