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 | add missing defer to delete temp dir | 51e721ab072441ba6ae14b84613cf2b3acd6316b | <ide><path>cliconfig/config_test.go
<ide> func TestJsonSaveWithNoFile(t *testing.T) {
<ide> t.Fatalf("Expected error. File should not have been able to save with no file name.")
<ide> }
<ide>
<del> tmpHome, _ := ioutil.TempDir("", "config-test")
<add> tmpHome, err := ioutil.TempDir("", "config-test")
<add> if err !... | 3 |
PHP | PHP | use null coalescing operator to refactor | 7a7cacc3fd02d7d4c596c1a0f8af3c5b7a2990b4 | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> public function allFiles()
<ide> {
<ide> $files = $this->files->all();
<ide>
<del> return $this->convertedFiles
<del> ? $this->convertedFiles
<del> : $this->convertedFiles = $this->convertUploa... | 1 |
Ruby | Ruby | add code and message to test response as per | 518540a06734b56d3b56277bf79bb7df95f6980b | <ide><path>actionpack/lib/action_controller/test_process.rb
<ide> def response_code
<ide> headers['Status'][0,3].to_i rescue 0
<ide> end
<ide>
<add> def code
<add> headers['Status'].to_s.split(' ')[0]
<add> end
<add>
<add> def message
<add> headers['Status'].to_s.split(' ',2)[1]
<add> e... | 1 |
Python | Python | fix regression in a hidden callback use case | 7df963b400f3dcf85e679e6f00af8c3c12971347 | <ide><path>numpy/f2py/cb_rules.py
<ide> jmp_buf jmpbuf;
<ide> } #name#_t;
<ide>
<del>static void show_#name#(#name#_t *ptr) {
<del> if (ptr != NULL) {
<del> CFUNCSMESSPY(\"show_#name#: capi=\", ptr->capi);
<del> CFUNCSMESSPY(\"show_#name#: args_capi=\", ptr->args_capi);
<del> } else {
<del> CF... | 5 |
Text | Text | add missing spaces [ci skip] | 233946654272562dc73e471ac34cf4df31934a57 | <ide><path>guides/source/active_record_migrations.md
<ide> ActiveRecord::Schema.define(version: 20080906171750) do
<ide>
<ide> create_table "products", force: true do |t|
<ide> t.string "name"
<del> t.text "description"
<add> t.text "description"
<ide> t.datetime "created_at"
<ide> t.datetime... | 1 |
Go | Go | use hostip to decide on portmapper version | 5d3b0102f71fa7691f62377826c48487eabf94d6 | <ide><path>libnetwork/drivers/bridge/port_mapping.go
<ide> func (n *bridgeNetwork) allocatePort(bnd *types.PortBinding, ulPxyEnabled bool)
<ide>
<ide> portmapper := n.portMapper
<ide>
<del> if bnd.IP.To4() == nil {
<add> if bnd.HostIP.To4() == nil {
<ide> portmapper = n.portMapperV6
<ide> }
<ide> | 1 |
PHP | PHP | add tests for resource() | 966388080dbd2341ed3e5f68fafe51dbcc1ab51d | <ide><path>src/Routing/ScopedRouteCollection.php
<ide> public function get($name) {
<ide> * @return array Array of mapped resources
<ide> */
<ide> public function resource($name, $options = [], $callback = null) {
<add> if (is_callable($options) && $callback === null) {
<add> $callback = $options;
<add> $option... | 2 |
Ruby | Ruby | add process_type to service dsl | 698f4a8f6999d3faee87ae6321274b58d7ae13e8 | <ide><path>Library/Homebrew/service.rb
<ide> class Service
<ide> RUN_TYPE_INTERVAL = "interval"
<ide> RUN_TYPE_CRON = "cron"
<ide>
<add> PROCESS_TYPE_BACKGROUND = "background"
<add> PROCESS_TYPE_STANDARD = "standard"
<add> PROCESS_TYPE_INTERACTIVE = "interactive"
<add> PROCESS_TYPE_ADAPTIVE = "adap... | 2 |
Ruby | Ruby | add error message that cask was installed manually | 5f62f417fd1b86bb664afa364d2af2972bb489d6 | <ide><path>Library/Homebrew/cask/cmd/upgrade.rb
<ide> def self.upgrade_casks(
<ide> cask.artifacts.any?(Artifact::Installer::ManualInstaller)
<ide> end
<ide>
<add> if manual_installer_casks.present?
<add> ofail "Not upgrading #{manual_installer_casks.count} casks because they was inst... | 1 |
Ruby | Ruby | tweak the format | f22aeb14f613d4e9257e0e7e451d5004e59e4d06 | <ide><path>Library/Homebrew/cmd/tap-readme.rb
<ide> module Homebrew
<ide> def tap_readme
<ide> name = ARGV.first
<del>
<ide> raise "A name is required" if name.nil?
<ide>
<add> titleized_name = name.dup
<add> titleized_name[0] = titleized_name[0].upcase
<add>
<ide> template = <<-EOS.undent
<del> ... | 1 |
Java | Java | implement hashcode() for synthesized annotations | def7663ec465ee293d70efd14dbded1fa3332ee5 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/SynthesizedAnnotationInvocationHandler.java
<ide> import java.lang.reflect.AnnotatedElement;
<ide> import java.lang.reflect.InvocationHandler;
<ide> import java.lang.reflect.Method;
<add>import java.util.Arrays;
<ide> import java.util.Iterator;
<i... | 2 |
Ruby | Ruby | make fixture loading to bulk statements | d8d6bd5e63a9a4a6c06a4dde3c7137ee2be105fd | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def reset_sequence!(table, column, sequence = nil)
<ide> # We keep this method to provide fallback
<ide> # for databases like sqlite that do not support bulk inserts.
<ide> def insert_fixture(fixture, t... | 5 |
Javascript | Javascript | fix broken layout because of code section | f1db7d735b475a7954023cc63f2b3f0ef685ea7e | <ide><path>src/ng/directive/ngModelOptions.js
<ide> defaultModelOptions = new ModelOptions({
<ide> * - `debounce`: integer value which contains the debounce model update value in milliseconds. A
<ide> * value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
<ide> * cus... | 1 |
Python | Python | add the compress method/function | 90f8ba7e2f4383537af035b614ba922f6195ce9c | <ide><path>numpy/ma/core.py
<ide> 'default_fill_value', 'diagonal', 'divide', 'dump', 'dumps',
<ide> 'empty', 'empty_like', 'equal', 'exp',
<ide> 'fabs', 'fmod', 'filled', 'floor', 'floor_divide','fix_invalid',
<del> 'getmask', 'getmaskarray', 'greater', 'greater_equal', 'hypo... | 2 |
Javascript | Javascript | use assert.strictequal() cluster test | 4a63fa3bf964f7f32ccd8d55131b6b29ff3f4c40 | <ide><path>test/parallel/test-cluster-shared-handle-bind-privileged-port.js
<ide> if (cluster.isMaster) {
<ide> // Master opens and binds the socket and shares it with the worker.
<ide> cluster.schedulingPolicy = cluster.SCHED_NONE;
<ide> cluster.fork().on('exit', common.mustCall(function(exitCode) {
<del> ass... | 1 |
Python | Python | fix typo in retry docstring | 6b6117faa2c733e400f68debd87d06dc73a3d47b | <ide><path>celery/app/task.py
<ide> def retry(self, args=None, kwargs=None, exc=None, throw=True,
<ide> If no exception was raised it will raise the ``exc``
<ide> argument provided.
<ide> countdown (float): Time in seconds to delay the retry for.
<del> eta (~dateti... | 1 |
Python | Python | add util function to enable gpu | ffda38356a1d51c1bced19c1c1bfdced3756c891 | <ide><path>spacy/util.py
<ide> import io
<ide> import dill
<ide> from collections import OrderedDict
<add>from thinc.neural._classes.model import Model
<ide>
<ide> import msgpack
<ide> import msgpack_numpy
<ide> def minify_html(html):
<ide> RETURNS (unicode): "Minified" HTML.
<ide> """
<ide> return html.st... | 1 |
Ruby | Ruby | remove dead code | b73a6f195af2a29c618f453f55db98329010f385 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def diff_formulae(start_revision, end_revision, path, filter)
<ide> end.compact
<ide> end
<ide>
<del> def brew_update
<del> return unless current_branch == "master"
<del> success = quiet_system "brew", "update"
<del> success ||= ... | 1 |
PHP | PHP | use utf8mb4 as default character set | 9d01389ce3039f483dcc9ed405e02ba49042bfa3 | <ide><path>config/database.php
<ide> 'database' => env('DB_DATABASE', 'forge'),
<ide> 'username' => env('DB_USERNAME', 'forge'),
<ide> 'password' => env('DB_PASSWORD', ''),
<del> 'charset' => 'utf8',
<del> 'collation' => 'utf8_unicode_ci',
<add> 'char... | 1 |
Ruby | Ruby | remove mocha usage | b17330cf391327f63fece617acdb57b35e341092 | <ide><path>railties/test/commands/console_test.rb
<ide> def test_no_options_does_not_set_debugger_flag
<ide> end
<ide>
<ide> def test_start_with_debugger
<del> rails_console = Rails::Console.new(app, parse_arguments(["--debugger"]))
<del> rails_console.expects(:require_debugger).returns(nil)
<add> ... | 1 |
Python | Python | fix print_run_help with new arg order | 39953c7c60e97cdd9af5b90e4a26634528548a19 | <ide><path>spacy/cli/project.py
<ide> def print_run_help(project_dir: Path, subcommand: Optional[str] = None) -> None:
<ide> commands = {cmd["name"]: cmd for cmd in config_commands}
<ide> if subcommand:
<ide> validate_subcommand(commands.keys(), subcommand)
<del> print(f"Usage: {COMMAND} project ... | 1 |
Javascript | Javascript | fix typing issue | 101954490a945175118b159e0f43583301de8335 | <ide><path>test/configCases/rebuild/finishModules/webpack.config.js
<ide> var testPlugin = compiler => {
<ide> NormalModule.getCompilationHooks(compilation).loader.tap(
<ide> "TestPlugin",
<ide> loaderContext => {
<del> loaderContext.shouldReplace = shouldReplace;
<add> /** @type {any} */ (loaderContext).... | 1 |
Ruby | Ruby | use full paths to strip, mktemp, cat and ls | d8c3b3a80a94bbc121539cd8d52eb252fb26c577 | <ide><path>Library/Homebrew/brew.h.rb
<ide> def macports_or_fink_installed?
<ide> end
<ide>
<ide> def versions_of(keg_name)
<del> `ls #{HOMEBREW_CELLAR}/#{keg_name}`.collect { |version| version.strip }.reverse
<add> `/bin/ls #{HOMEBREW_CELLAR}/#{keg_name}`.collect { |version| version.strip }.reverse
<ide> end
<ide> ... | 1 |
Ruby | Ruby | fix output for absolute symlinks | fe204fdf4b5e7c10f88cf19e099b5bbedd67c600 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def print_filename(string, filename)
<ide> Utils.popen_read("strings", "-t", "x", "-", file.to_s) do |io|
<ide> until io.eof?
<ide> str = io.readline.chomp
<del>
<ide> next if ignores.any? { |i| i =~ str }
<del>
<ide> next unles... | 1 |
Text | Text | update chinese translation of css flexbox | e873b388da138501858fa0d7d6e2eca631b5a4a7 | <ide><path>curriculum/challenges/chinese/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.chinese.md
<ide> id: 587d78ab367417b2b2512af1
<ide> title: Add Flex Superpowers to the Tweet Embed
<ide> challengeType: 0
<del>videoUrl: ''
<del>localeTitle: 添加Flex Superpowers到Tweet Embed
<add>videoUrl... | 17 |
Javascript | Javascript | add missings async assert timeout | d58163a5fa8faa477e5c43fc73a40cb48d8866a0 | <ide><path>test/unit/editor/old_to_convert/Serialization.tests.js
<ide> QUnit.module( "Serialization" );
<ide>
<ide> QUnit.test( "Test Serialization", function( assert ) {
<ide>
<add> assert.timeout( 1000 );
<add>
<ide> // setup
<ide> var editor = new Editor();
<ide> var done = assert.async();
<ide><path>test/unit... | 3 |
Javascript | Javascript | use class for write buffer entries | 312289b791a5924eec5748fbd19ad6867ff37320 | <ide><path>lib/_stream_writable.js
<ide> var Stream = require('stream');
<ide>
<ide> util.inherits(Writable, Stream);
<ide>
<add>function WriteReq(chunk, encoding, cb) {
<add> this.chunk = chunk;
<add> this.encoding = encoding;
<add> this.callback = cb;
<add>}
<add>
<ide> function WritableState(options, stream) {
... | 2 |
Javascript | Javascript | show stderr on v8 coverage test failures | eb0bf8d3077f7fd4d09f187b8bb8290ec8f8171b | <ide><path>test/parallel/test-v8-coverage.js
<ide> function nextdir() {
<ide> const output = spawnSync(process.execPath, [
<ide> require.resolve('../fixtures/v8-coverage/basic')
<ide> ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } });
<add> if (output.status !== 0) {
<add> console.log(out... | 1 |
Go | Go | fix testeventsimageimport racy, fixes | eeb8ceb9edb61f4b8889360e4c4a2c4250c2d9f6 | <ide><path>integration-cli/docker_cli_events_test.go
<ide> func (s *DockerSuite) TestEventsImagePull(c *check.C) {
<ide> func (s *DockerSuite) TestEventsImageImport(c *check.C) {
<ide> since := daemonTime(c).Unix()
<ide>
<add> id := make(chan string)
<add> eventImport := make(chan struct{})
<add> eventsCmd := exec.Co... | 1 |
PHP | PHP | fix typo in variable | 7a0b86ff9297639e14d772b79e5d555cdbeb28c1 | <ide><path>src/Illuminate/Html/HtmlBuilder.php
<ide> public function link($url, $title = null, $attributes = array(), $secure = null)
<ide> {
<ide> $url = $this->url->to($url, array(), $secure);
<ide>
<del> if (is_null($title) or $title === false) $title = $uri;
<add> if (is_null($title) or $title === false) $tit... | 1 |
Javascript | Javascript | use common/fixtures in tls-connect-no-host | c0bba73ac2263b7997484537bbe9f0d30fdeaf85 | <ide><path>test/parallel/test-tls-connect-no-host.js
<ide> 'use strict';
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide>
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const tls = require('tls');
<ide>
<ide> const assert = require... | 1 |
Javascript | Javascript | fix an issue with validation error formatting | 18c313097a96212ad866ba6e7e7323e4736afca9 | <ide><path>lib/WebpackOptionsValidationError.js
<ide> class WebpackOptionsValidationError extends Error {
<ide> constructor(validationErrors) {
<ide> super();
<ide>
<del> if(Error.hasOwnProperty("captureStackTrace")) {
<del> Error.captureStackTrace(this, this.constructor);
<del> }
<ide> this.name = "WebpackOp... | 1 |
Ruby | Ruby | do it in style | 3cec029685cdbfa820eb6b4a98daf81ed80e1d27 | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
<ide> def tables(name = nil) #:nodoc:
<ide> end
<ide>
<ide> def columns(table_name, name = nil) #:nodoc:
<del> table_structure(table_name).map { |field|
<add> table_structure(table_name).map do |field|
<ide> ... | 1 |
Text | Text | fix typo in the readme | 7e6b6fbec9ce46d29e5bc37a24185188ed876511 | <ide><path>README.md
<ide> This is another example of pipeline used for that can extract question answers f
<ide>
<ide> On top of the answer, the pretrained model used here returned its confidence score, along with the start position and its end position in the tokenized sentence. You can learn more about the tasks su... | 1 |
Java | Java | move exceptions to public area, + exceptionhelper | d4e8f29730350efc763521f94f7ea23cf417b0e4 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide>
<ide> import io.reactivex.annotations.SchedulerSupport;
<ide> import io.reactivex.disposables.Disposable;
<add>import io.reactivex.exceptions.Exceptions;
<ide> import io.reactivex.functions.*;
<ide> import io.reactivex.internal.functions.*;
<ide> import io.r... | 151 |
Python | Python | update version number | d0ed8aeb2126a4b14b8413bd8c6d54952451e890 | <ide><path>libcloud/__init__.py
<ide>
<ide> __all__ = ["__version__", "enable_debug"]
<ide>
<del>__version__ = "0.4.3-dev"
<add>__version__ = "0.5.0-dev"
<ide>
<ide> def enable_debug(fo):
<ide> """ | 1 |
Text | Text | improve description and tests descriptions | c4cf53a7428bcbd6c029af0688008ae23f66a67d | <ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/closest-pair-problem.md
<ide> dashedName: closest-pair-problem
<ide>
<ide> # --description--
<ide>
<del>Provide a function to find the closest two points among a set of given points in two dimensions, i.e. to solve the [Closest pair of poi... | 1 |
Ruby | Ruby | avoid extra delegation to `lazyattributehash` | 0adcec49541aac069600202ed5f83c8ef6f2197e | <ide><path>activemodel/lib/active_model/attribute_set.rb
<ide> def initialize(attributes)
<ide> end
<ide>
<ide> def [](name)
<del> attributes[name] || Attribute.null(name)
<add> @attributes[name] || default_attribute(name)
<ide> end
<ide>
<ide> def []=(name, value)
<del> attributes[name... | 3 |
Python | Python | fix syntax error in the docstrings | d1a5ca16abaf1b64b6205b8facfb2e0d191ec2d3 | <ide><path>libcloud/compute/types.py
<ide> class Provider(object):
<ide> @cvar OPSOURCE: Opsource Cloud
<ide> @cvar NINEFOLD: Ninefold
<ide> @cvar TERREMARK: Terremark
<del> @cvar: EC2_US_WEST_OREGON: Amazon AWS US West 2 (Oregon)
<add> @cvar EC2_US_WEST_OREGON: Amazon AWS US West 2 (Oregon)
<ide> ... | 2 |
Text | Text | fix typos in materials article | eb6e93e132a47998171c5e2caf9b03ea001fcf15 | <ide><path>threejs/lessons/threejs-materials.md
<ide> This article is part of a series of articles about three.js. The
<ide> first article is [three.js fundamentals](threejs-fundamentals.html). If
<ide> you haven't read that yet and you're new to three.js you might want to
<ide> consider starting there.
<del>
<del>Thr... | 1 |
Go | Go | fix data race in controller sandboxes | 092437ad0e882ac26f48dff75ebb1e3ef183037a | <ide><path>libnetwork/libnetwork_test.go
<ide> func createGlobalInstance(t *testing.T) {
<ide> "AllowNonDefaultBridge": true,
<ide> },
<ide> }
<del> net, err := createTestNetwork(bridgeNetType, "network", netOption)
<add>
<add> net1, err := controller.NetworkByName("testhost")
<add> if err != nil {
<add> t.Fatal... | 2 |
Text | Text | fix typos in the stream doc | 58a241d53790aee5dd6327543fc9849bd21fb9a7 | <ide><path>doc/api/stream.md
<ide> There are four fundamental stream types within Node.js:
<ide> * [Readable][] - streams from which data can be read (for example
<ide> [`fs.createReadStream()`][]).
<ide> * [Writable][] - streams to which data can be written (for example
<del> [`fs.createWriteStream`][]).
<add> [`f... | 1 |
Javascript | Javascript | remove unused error code in module_job | 8fa640e2db60e74d24b15de95f51fd9b55f5e793 | <ide><path>lib/internal/modules/esm/module_job.js
<ide> class ModuleJob {
<ide> // `moduleProvider` is a function
<ide> constructor(loader, url, moduleProvider, isMain) {
<ide> this.loader = loader;
<del> this.error = null;
<del> this.hadError = false;
<ide> this.isMain = isMain;
<ide>
<ide> // T... | 2 |
Python | Python | remove outdated options and fix formatting | 8d3bfb3c046ae7fbaa45714d22e029e13766ecfb | <ide><path>spacy/tests/conftest.py
<ide> def pytest_addoption(parser):
<ide> parser.addoption("--slow", action="store_true", help="include slow tests")
<ide>
<ide>
<del>def pytest_runtest_setup(item):
<del> for opt in ["slow"]:
<del> if opt in item.keywords and not item.config.getoption("--%s" % opt):
<... | 1 |
Javascript | Javascript | use more primordials in shared validators | 053874939a6015b91264a3a7c80b0d728ffff262 | <ide><path>lib/internal/validators.js
<ide>
<ide> const {
<ide> ArrayIsArray,
<add> ArrayPrototypeIncludes,
<add> ArrayPrototypeJoin,
<add> ArrayPrototypeMap,
<ide> NumberIsInteger,
<ide> NumberMAX_SAFE_INTEGER,
<ide> NumberMIN_SAFE_INTEGER,
<ide> NumberParseInt,
<add> RegExpPrototypeTest,
<ide> String... | 1 |
Javascript | Javascript | use typeof check for getattribute method | 075da3091cda170bd8cd5ce47bad1c5b14760232 | <ide><path>src/attributes/attr.js
<ide> jQuery.extend({
<ide> }
<ide>
<ide> // Fallback to prop when attributes are not supported
<del> if ( !elem.getAttribute ) {
<add> if ( typeof elem.getAttribute === "undefined" ) {
<ide> return jQuery.prop( elem, name, value );
<ide> }
<ide> | 1 |
Text | Text | update api docs for database subtree | 722aa69413226963eba69733d6d1d093c006165b | <ide><path>src/Database/README.md
<ide>
<ide> This library abstracts and provides help with most aspects of dealing with relational
<ide> databases such as keeping connections to the server, building queries,
<del>filtering possible SQL injections, inspecting and altering schemas and with debugging and
<add>preventing... | 1 |
PHP | PHP | code formatting issues | e064596297bd045650e8981c4114a94ceacafe97 | <ide><path>src/Illuminate/Cache/RateLimiter.php
<ide> public function __construct(Cache $cache)
<ide> */
<ide> public function tooManyAttempts($key, $maxAttempts, $decayMinutes = 1)
<ide> {
<del> $attempts = $this->cache->get(
<del> $key, 0
<del> );
<del>
<ide> $lockedOut =... | 2 |
Ruby | Ruby | remove unneeded logging | 38aae1b122325816592cc9cc4c31e35bad38cd1f | <ide><path>actionpack/lib/action_controller/routing.rb
<ide> def traverse_to_controller(segments, start_at = 0)
<ide> controller_name = "#{mod_name}Controller"
<ide>
<ide> suppress(NameError) do
<del> ActionController::Base.logger.info("Looking for #{controller_name}")
... | 1 |
Javascript | Javascript | pass index to accessor functions | 184c0ffea90401ecb4fb7b12f4caf437659bdbe3 | <ide><path>src/geom/quadtree.js
<ide> d3.geom.quadtree = function(points, x1, y1, x2, y2) {
<ide>
<ide> if (compat) points = data;
<ide> else for (points = [], i = 0; i < n; ++i) {
<del> points.push({x: +fx.call(this, d = data[i]), y: +fy.call(this, d)});
<add> points.push({x: +fx.call(this, d = data... | 1 |
Python | Python | fix kube client on mac with keepalive enabled | 11face6206174fb29d602b368992297b2eb83981 | <ide><path>airflow/kubernetes/kube_client.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide> """Client for kubernetes communication"""
<add>import logging
<ide> from typing import Optional
<ide>
<ide> from airflow.configuration import conf
<ide>
<add>log = logging.getL... | 1 |
Python | Python | fix gpu usage | ce876c551e5dbdcfcccab9c75418376b906d0da3 | <ide><path>spacy/_ml.py
<ide> def backward(dY_ids, sgd=None):
<ide>
<ide> def _add_padding(self, Yf):
<ide> Yf_padded = self.ops.xp.vstack((self.pad, Yf))
<del> return Yf_padded[1:]
<add> return Yf_padded
<ide>
<ide> def _backprop_padding(self, dY, ids):
<del> for i in range(i... | 1 |
Javascript | Javascript | add more context to dom nesting warning | 64b1f05e7518e46c13ca9dbe8d2792054dd9a515 | <ide><path>src/browser/__tests__/validateDOMNesting-test.js
<ide>
<ide> 'use strict';
<ide>
<del>var isTagValidInContext;
<add>var validateDOMNesting;
<ide>
<ide> // https://html.spec.whatwg.org/multipage/syntax.html#special
<ide> var specialTags = [
<ide> var formattingTags = [
<ide> ];
<ide>
<ide> function isTagS... | 6 |
Javascript | Javascript | remove dead code from internal/http.js | acaa58e60260225ac935b385d6cc799b446e8799 | <ide><path>lib/internal/http.js
<ide> const {
<ide> const { setUnrefTimeout } = require('internal/timers');
<ide> const { PerformanceEntry, notify } = internalBinding('performance');
<ide>
<del>let nowCache;
<ide> let utcCache;
<ide>
<del>function nowDate() {
<del> if (!nowCache) cache();
<del> return nowCache;
<de... | 1 |
Ruby | Ruby | fix dirty tracking for `touch` | d1107f4d1e2573948d4941ac44511a0af6241f80 | <ide><path>activerecord/lib/active_record/attribute_methods/dirty.rb
<ide> def write_attribute_without_type_cast(attr_name, value)
<ide> result
<ide> end
<ide>
<add> def _touch_row(attribute_names, time)
<add> @_touch_attr_names = Set.new(attribute_names)
<add>
<add> affected... | 5 |
Python | Python | resolve merge conflict | 53ff5d90959c0148e6ff5abb2ef614479806411c | <ide><path>official/resnet/keras/keras_cifar_main.py
<ide> from official.resnet import cifar10_main as cifar_main
<ide> from official.resnet import resnet_run_loop
<ide> from official.resnet.keras import keras_common
<del>from official.resnet.keras import keras_resnet_model
<add>from official.resnet.keras import resnet... | 3 |
Javascript | Javascript | move addclass to the compile phase | 903e7352c9943e4d3757dd1cff58178d4c5375d6 | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
<ide> </example>
<ide> */
<ide> var ngBindHtmlDirective = ['$sce', '$parse', function($sce, $parse) {
<del> return function(scope, element, attr) {
<del> element.addClass('ng-binding').data('$bind... | 2 |
Mixed | PHP | remove duplicate function dropcolumns | ff036c1bba9fc0391a0ba33a99d35e9a2793fef7 | <ide><path>readme.md
<ide> - Migrated entire session back-end to Symfony HttpFoundation Session. The `native` driver should now be used in place of the `cookie` driver. All other drivers are available and work the same. New sessions will not be backwards compatible after updating.
<ide> - Renamed `Session::getToken` to... | 5 |
Javascript | Javascript | move settimeout and friends into timers module | 79944006e252170933e35862bdff2f7fba6bd762 | <ide><path>lib/timers.js
<ide> function debug () {
<ide> // IDLE TIMEOUTS
<ide> //
<ide> // Because often many sockets will have the same idle timeout we will not
<del>// use one timeout watcher per socket. It is too much overhead. Instead
<add>// use one timeout watcher per item. It is too much overhead. Instead
<id... | 2 |
Java | Java | fix unit tests | 6a1c8f0c5bfd2b8556099d3d70341513b4af4b15 | <ide><path>rxjava-contrib/rxjava-android/src/test/java/rx/android/observables/AndroidObservableTest.java
<ide> import org.robolectric.Robolectric;
<ide> import org.robolectric.RobolectricTestRunner;
<ide> import org.robolectric.annotation.Config;
<add>
<ide> import rx.Observable;
<ide> import rx.Observer;
<add>import r... | 6 |
Java | Java | improve onsubscriberefcount comments | 96c37422964828e983052a96bab2c4d607df7686 | <ide><path>src/main/java/rx/internal/operators/OnSubscribeRefCount.java
<ide> public void call(final Subscriber<? super T> subscriber) {
<ide> source.connect(onSubscribe(subscriber, writeLocked));
<ide> } finally {
<ide> // need to cover the case where the source is subscribe... | 1 |
PHP | PHP | add tests for eloquent builder | 01d5a77488e54bf425cfc6407b0c474d0d4190fc | <ide><path>tests/Database/DatabaseEloquentBuilderTest.php
<ide> public function testGetMethodDoesntHydrateEagerRelationsWhenNoResultsAreReturned
<ide> }
<ide>
<ide>
<add> public function testPluckMethodWithModelFound()
<add> {
<add> $builder = m::mock('Illuminate\Database\Eloquent\Builder[first]', array($this->getM... | 1 |
Text | Text | update collaborator email in readme | 069a24464a168138fb0c9894eb054e750f851582 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> * [cjihrig](https://github.com/cjihrig) -
<ide> **Colin Ihrig** <cjihrig@gmail.com> (he/him)
<ide> * [codebytere](https://github.com/codebytere) -
<del>**Shelley Vohr** <codebytere@gmail.com> (she/her)
<add>**S... | 1 |
PHP | PHP | remove views constant | e31344899823951943df967fc9ae50298859e6ac | <ide><path>lib/Cake/Console/Command/Task/ViewTask.php
<ide> class ViewTask extends BakeTask {
<ide> public $tasks = array('Project', 'Controller', 'DbConfig', 'Template');
<ide>
<ide> /**
<del> * path to VIEWS directory
<add> * path to View directory
<ide> *
<ide> * @var array
<ide> * @access public
<ide> */
<del... | 2 |
Python | Python | allow subclasses through vectorize | b1ff17a473ca58a18452ad1c0e7fd05ea239f016 | <ide><path>numpy/lib/function_base.py
<ide> def __call__(self, *args):
<ide> self.ufunc = frompyfunc(self.thefunc, nargs, self.nout)
<ide>
<ide> # Convert to object arrays first
<del> newargs = [asarray(arg,dtype=object) for arg in args]
<add> newargs = [asanyarray(arg,dtype=object) f... | 1 |
Python | Python | move morphologizer under spacy/pipes | fc1cc4c529e08c887287a3f449fc181fee9a8b6d | <ide><path>setup.py
<ide> def is_new_osx():
<ide> "spacy.vocab",
<ide> "spacy.attrs",
<ide> "spacy.morphology",
<del> "spacy._morphologizer",
<ide> "spacy.pipeline.pipes",
<add> "spacy.pipelines.morphologizer",
<ide> "spacy.syntax.stateclass",
<ide> "spacy.syntax._state",
<ide> "spacy.... | 3 |
Mixed | Javascript | fix default `length` parameter for `fs.read` | 246227f4bca1afe06af5a766fc41e251b7d3700a | <ide><path>doc/api/fs.md
<ide> added:
<ide> * `offset` {integer} The location in the buffer at which to start filling.
<ide> **Default:** `0`
<ide> * `length` {integer} The number of bytes to read. **Default:**
<del> `buffer.byteLength`
<add> `buffer.byteLength - offset`
<ide> * `position` {integer} The... | 2 |
Text | Text | add refack to collaborators | ca8ccb917637a1b54b49419e7392099ac1bfb929 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Prince John Wesley** <princejohnwesley@gmail.com>
<ide> * [qard](https://github.com/qard) -
<ide> **Stephen Belanger** <admin@stephenbelanger.com> (he/him)
<add>* [refack](https://github.com/refack) -
<add>*... | 1 |
Python | Python | fix setup.py with new __init__.py boilerplate | 79596dc613bbf24aac7b5c56179cbc5c46eacdf3 | <ide><path>setup.py
<ide> def get_version(package):
<ide> Return package version as listed in `__version__` in `init.py`.
<ide> """
<ide> init_py = open(os.path.join(package, '__init__.py')).read()
<del> return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
<add> return re.search("__v... | 1 |
Ruby | Ruby | fix prepared statements disabled test again | 8b77d8e387079da2d5d4cf2f6fcc4864195852bc | <ide><path>activerecord/test/cases/adapters/postgresql/prepared_statements_disabled_test.rb
<add>require "cases/helper"
<add>require "models/computer"
<add>require "models/developer"
<add>
<add>class PreparedStatementsDisabledTest < ActiveRecord::PostgreSQLTestCase
<add> fixtures :developers
<add>
<add> def setup
<ad... | 2 |
PHP | PHP | remove tests that are no longer applicable | 8752235048bb03126b5ac44657a3c56c609818de | <ide><path>Cake/Test/TestCase/Controller/Component/PaginatorComponentTest.php
<ide> public function testDefaultPaginateParams() {
<ide> $this->Paginator->paginate($table, $settings);
<ide> }
<ide>
<del>/**
<del> * test paginate() and virtualField interactions
<del> *
<del> * @return void
<del> */
<del> public funct... | 1 |
Text | Text | fix grammatical errors | 9aa5627deae64ad66a4a227a3f0c4ddba0615603 | <ide><path>threejs/lessons/fr/threejs-fundamentals.md
<ide> Titre: Three.js, principes de base
<ide> Description: Votre première leçon sur Three.js, commençant par les principes de base
<ide> TOC: Principes de base
<ide>
<del>Ceci est le premier article d'une série consacrée à three.js.
<add>Ceci est le premier articl... | 1 |
Ruby | Ruby | improve class overview for tabledefinition | b810349c8dbc8d27602181832466bb2a518191a0 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> def add_column_options!(sql, options)
<ide> end
<ide> end
<ide>
<del> # Represents a SQL table in an abstract way.
<del> # Columns are stored as a ColumnDefinition in the +columns+ attribute.
<add> #... | 1 |
Python | Python | add extra links endpoint | 2b6191287f0ba3f45bfd82aa8c7849ca77145fca | <ide><path>airflow/api_connexion/endpoints/extra_link_endpoint.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del># TODO(mik-laj): We have to implement it.
<del># Do you want to help? Please look at: https://github.com/apache/airflow/issues/8140
<add>from flask... | 5 |
PHP | PHP | add test for overwriting scalar values with load() | 037382ebff35e1ee6c46d872b14f5e728168d83b | <ide><path>tests/TestCase/Core/ConfigureTest.php
<ide> public function testLoadMergeWithExistingData() {
<ide> Configure::write('my_key', 'value');
<ide> Configure::write('Read', 'old');
<ide> Configure::write('Deep.old', 'old');
<add> Configure::write('TestAcl.classname', 'old');
<ide>
<ide> Configure::load(... | 1 |
PHP | PHP | bind container into itself | d73fbbc7be29c584ed5545c8d6f673ef84584a6b | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function __construct(Request $request = null)
<ide> $this->instance('request', $request = Request::createFromGlobals());
<ide>
<ide> $this->registerBaseServiceProviders();
<add>
<add> $this->instance('Illuminate\Container\Container', $this);
<ide> ... | 1 |
PHP | PHP | add test case for | f2c84bca82a731147f191835040a316d2ee76862 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testInputTemplateVars()
<ide> $this->assertHtml($expected, $result);
<ide> }
<ide>
<add> /**
<add> * Test ensuring template variables work in template files loaded
<add> * during input().
<add> *
<add> * @retu... | 2 |
Go | Go | add err checks for port allocator tests | 555416fd02b9e062385dcdaf0c4b9f5de61df388 | <ide><path>runtime/networkdriver/portallocator/portallocator_test.go
<ide> func TestPortAllocation(t *testing.T) {
<ide> }
<ide>
<ide> port, err = RequestPort(ip, "tcp", 0)
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<ide> port2, err := RequestPort(ip, "tcp", port+1)
<add> if err != nil {
<add> t.Fatal(err)
... | 1 |
Ruby | Ruby | add missing require | 4c3a6c6022b2ad5e71b7315c275860400af85f20 | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide> require "formula"
<ide> require "keg"
<del>require "migrator"
<ide>
<ide> module Homebrew
<ide> def outdated
<ide><path>Library/Homebrew/formula.rb
<ide> require "tap"
<ide> require "formula_renames"
<ide> require "keg"
<add>require "migrator"
<ide>
<ide> # A formul... | 2 |
PHP | PHP | update redis tests | 2ed9ff925a5dda66063d335a20eac3262d688d4e | <ide><path>lib/Cake/Cache/Engine/RedisEngine.php
<ide> <?php
<ide> /**
<del> * Redis storage engine for cache
<del> *
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<i... | 2 |
Text | Text | add retry-after to release notes. refs | 21a0a826bba3df01e72ea8b0390e05d50cf9a854 | <ide><path>docs/topics/2.4-accouncement.md
<ide> There are also a number of other features and bugfixes as [listed in the release
<ide>
<ide> Smarter [client IP identification for throttling][client-ip-identification], with the addition of the `NUM_PROXIES` setting.
<ide>
<add>Added the standardized `Retry-After` hea... | 2 |
Javascript | Javascript | flow strict touchablebounce | 45c51835d69e111b67b4fcf1af39a13f7df1ee48 | <ide><path>Libraries/Components/Touchable/TouchableBounce.js
<ide> const createReactClass = require('create-react-class');
<ide> import type {EdgeInsetsProp} from 'EdgeInsetsPropType';
<ide> import type {ViewStyleProp} from 'StyleSheet';
<ide> import type {Props as TouchableWithoutFeedbackProps} from 'TouchableWithoutF... | 1 |
Javascript | Javascript | add name to prop hooks as well | 217a7abc43967cb860fc0dccee13b475de81b07d | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> hooks = jQuery.propHooks[ name ];
<ide>
<ide> if ( value !== undefined ) {
<del> if ( hooks && "set" in hooks && (ret = hooks.set( elem, value )) !== undefined ) {
<add> if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefin... | 1 |
Ruby | Ruby | fix formula#<=> on trunk ruby | b78308d2d5a8dd26818eba88bb58ee547d6dfdb0 | <ide><path>Library/Homebrew/formula.rb
<ide> def == other
<ide> def hash
<ide> name.hash
<ide> end
<del> def <=> b
<del> name <=> b.name
<add>
<add> def <=>(other)
<add> return unless Formula === other
<add> name <=> other.name
<ide> end
<add>
<ide> def to_s
<ide> name
<ide> end
<ide><path>... | 2 |
Text | Text | update shallow routing docs | 6202a7f3bd913670cff5fd43523aad764678f10b | <ide><path>docs/routing/shallow-routing.md
<ide> function Page() {
<ide>
<ide> useEffect(() => {
<ide> // Always do navigations after the first render
<del> router.push('/?counter=10', null, { shallow: true })
<add> router.push('/?counter=10', undefined, { shallow: true })
<ide> }, [])
<ide>
<ide> use... | 1 |
Text | Text | add a note on running both examples | 58bb294301a1c05b3d78bacc3f5c9a480d50f3e5 | <ide><path>README.md
<ide> Atomic Flux with hot reloading.
<ide> - [Why another Flux framework?](#why-another-flux-framework)
<ide> - [Philosophy & Design Goals](#philosophy--design-goals)
<ide> - [Demo](#demo)
<del>- [Running TodoMVC](#running-todomvc)
<add>- [Running Examples](#running-examples)
<ide> - [What does ... | 1 |
PHP | PHP | remove deprecated defer property | 810b3d91b2eecf922562e68b52ca3b6a7b076e7a | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide> abstract class ServiceProvider
<ide> */
<ide> protected $app;
<ide>
<del> /**
<del> * Indicates if loading of the provider is deferred.
<del> *
<del> * @deprecated Implement the \Illuminate\Contracts\Support\DeferrableProvider interfac... | 2 |
Python | Python | use linspace instead of arange in some examples | ccbf5cf2fc35ec0a3e2c184fb846bb808aee3610 | <ide><path>numpy/lib/function_base.py
<ide> def piecewise(x, condlist, funclist, *args, **kw):
<ide> --------
<ide> Define the sigma function, which is -1 for ``x < 0`` and +1 for ``x >= 0``.
<ide>
<del> >>> x = np.arange(6) - 2.5
<add> >>> x = np.linspace(-2.5, 2.5, 6)
<ide> >>> np.piecewise(x, [x <... | 1 |
PHP | PHP | raise phpstan to level 3. wip | b63ca3c8c1fd14c81045a964e4859b5ef31cc633 | <ide><path>src/Database/SchemaCache.php
<ide> namespace Cake\Database;
<ide>
<ide> use Cake\Cache\Cache;
<del>use Cake\Datasource\ConnectionInterface;
<ide>
<ide> /**
<ide> * Schema Cache.
<ide> class SchemaCache
<ide> /**
<ide> * Constructor
<ide> *
<del> * @param \Cake\Datasource\ConnectionInterf... | 2 |
Ruby | Ruby | ignore order when doing count | bbad7523f08936f38938c7d4ff18f4084f008244 | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def operation_over_aggregate_column(column, operation, distinct)
<ide>
<ide> def execute_simple_calculation(operation, column_name, distinct) #:nodoc:
<ide> # Postgresql doesn't like ORDER BY when there are no GROUP BY
<del> relati... | 2 |
Javascript | Javascript | remove most comments from html generation output | e955008b9bbee93fcaf423d4afaf4d22023e2c3f | <ide><path>src/renderers/dom/fiber/ReactDOMFiberEntry.js
<ide> function shouldReuseContent(container) {
<ide> const rootElement = getReactRootElementInContainer(container);
<ide> return !!(rootElement &&
<ide> rootElement.nodeType === ELEMENT_NODE &&
<del> rootElement.getAttribute(ID_ATTRIBUTE_NAME));
<add> ... | 6 |
Text | Text | update changelog for 1.7.0-beta.1 | 6222b5d46005cf70ad9ea66faf67bca1be9796f5 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### Ember 1.7.0-beta.1 (July, 8, 2014)
<add>
<add>* Fix components inside group helper.
<add>* [BUGFIX] Fix wrong view keyword in a component block.
<add>* Update to RSVP 3.0.7.
<add>* [FEATURE query-params-new]
<add>* [FEATURE ember-routing-consistent-resourc... | 1 |
Ruby | Ruby | convert time extension modules to class reopens | 1c5a6944d38e6818d254f272057b513b038b2270 | <ide><path>activesupport/lib/active_support/core_ext/time.rb
<ide> require 'active_support/core_ext/time/publicize_conversion_methods'
<ide> require 'active_support/core_ext/time/marshal_with_utc_flag'
<ide>
<add>require 'active_support/core_ext/time/calculations'
<add>require 'active_support/core_ext/time/zones'
<add... | 3 |
Python | Python | fix train/test samples in mnist_tfrecords | c8bef99ec7a2032b9bea6e9a1260d05a2b6a80f1 | <ide><path>examples/mnist_tfrecord.py
<ide> tensors, save the model weights, and then evaluate the
<ide> model using the numpy based Keras API.
<ide>
<del>Gets to ~99.1% validation accuracy after 5 epochs
<add>Gets to ~99.1% test accuracy after 5 epochs
<ide> (high variance from run to run: 98.9-99.3).
<ide> '''
<ide>... | 1 |
Javascript | Javascript | remove unnecessary processupdatequeue | c486dc1a46c47ad276140a51b1155eb1f8900dd8 | <ide><path>packages/react-reconciler/src/ReactFiberClassComponent.new.js
<ide> function mountClassInstance(
<ide> }
<ide> }
<ide>
<del> processUpdateQueue(workInProgress, newProps, instance, renderLanes);
<ide> instance.state = workInProgress.memoizedState;
<ide>
<ide> const getDerivedStateFromProps = ctor... | 2 |
Javascript | Javascript | mention "controller as" syntax | fa0d8c47c3050a5732291bcaa77e086bb3ad8569 | <ide><path>src/ng/controller.js
<ide> function $ControllerProvider() {
<ide> * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
<ide> * `window` object (not recommended)
<ide> *
<add> * The string can use the `controller as property` syntax, where the contro... | 1 |
Ruby | Ruby | change error messages | 473bdadbcd0f87fdeda98f73b25bb47a14221281 | <ide><path>Library/Homebrew/cask/lib/hbc/audit.rb
<ide> def check_version_and_checksum
<ide> return unless previous_cask.version == cask.version
<ide> return if previous_cask.sha256 == cask.sha256
<ide>
<del> add_error "only sha256 changed; needs to be confirmed by the developer"
<add> add_error ... | 2 |
Text | Text | remove stray please | 012bdac6d68f006351e43b11b258259f4af26e20 | <ide><path>docs/articles/basics.md
<ide> installed, use the following command:
<ide> If you get `docker: command not found` or something like
<ide> `/var/lib/docker/repositories: permission denied` you may have an
<ide> incomplete Docker installation or insufficient privileges to access
<del>Docker on your machine. Ple... | 1 |
Ruby | Ruby | exclude .github from unbrewed | 6b6159a858009b6d82b858830533a4a3ce135a28 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide>
<ide> UNBREWED_EXCLUDE_FILES = %w[.DS_Store]
<ide> UNBREWED_EXCLUDE_PATHS = %w[
<add> .github/*
<ide> bin/brew
<ide> lib/gdk-pixbuf-2.0/*
<ide> lib/gio/* | 1 |
PHP | PHP | fix cs error | ef6642e6ff61c0492bae11eea23267c63061ca00 | <ide><path>tests/TestCase/Http/Middleware/CsrfProtectionMiddlewareTest.php
<ide> public function testValidTokenRequestData($method)
<ide> // No exception means everything is OK
<ide> $middleware = new CsrfProtectionMiddleware();
<ide> $middleware($request, $response, $closure);
<del>
<ide> }... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.