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 |
|---|---|---|---|---|---|
Javascript | Javascript | prevent npe when module definition outside of it | 5c735eb4ab07144a62949472ed388cb185099201 | <ide><path>src/ngMock/angular-mocks.js
<ide> window.jstestdriver && (function(window) {
<ide> try {
<ide> injector.invoke(blockFns[i] || angular.noop, this);
<ide> } catch (e) {
<del> if(e.stack) e.stack += '\n' + errorForStack.stack;
<add> if(e.stack && errorForStack) e.sta... | 1 |
Go | Go | update error return in bridge driver's getnetwork | df56ce5f4768a46b61cb6300c2cb1ad8b7493f60 | <ide><path>libnetwork/drivers/bridge/bridge.go
<ide> func (d *driver) getNetwork(id types.UUID) (*bridgeNetwork, error) {
<ide> return nw, nil
<ide> }
<ide>
<del> return nil, nil
<add> return nil, types.NotFoundErrorf("network not found: %s", id)
<ide> }
<ide>
<ide> func parseNetworkGenericOptions(data interface{}... | 1 |
Javascript | Javascript | utilize cache object | b9d2369f3d0e601f1d5ddc05e5008e931bac9003 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> import jQuery from "ember-views/system/jquery";
<ide> import { isArray } from "ember-metal/utils";
<ide> import { getEscaped as handlebarsGetEscaped } from "ember-handlebars/ext";
<ide> import keys from "ember-runtime/keys";
<add>import Cache from "ember... | 9 |
Javascript | Javascript | fix indexof and object.keys for ie8 | 81859d278cd3fa78f0d25fb5a0b4e4b6e31f2d87 | <ide><path>src/lib/locale/locales.js
<ide> import compareArrays from '../utils/compare-arrays';
<ide> import { deprecateSimple } from '../utils/deprecate';
<ide> import { mergeConfigs } from './set';
<ide> import { Locale } from './constructor';
<add>import keys from '../utils/keys';
<ide>
<ide> // internal storage fo... | 3 |
PHP | PHP | bind real paths into container | f6b3c2d56cbb71d5413e8b27226a380591adda85 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function redirectIfTrailingSlash()
<ide> */
<ide> public function bindInstallPaths(array $paths)
<ide> {
<del> $this->instance('path', $paths['app']);
<add> $this->instance('path', realpath($paths['app']));
<ide>
<ide> foreach (array_except($pat... | 1 |
Ruby | Ruby | fix typo in strong params hash deprecation message | 385e0a3311960032fa149f8650d73fd483dc5f75 | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def stringify_keys # :nodoc:
<ide> def method_missing(method_sym, *args, &block)
<ide> if @parameters.respond_to?(method_sym)
<ide> message = <<-DEPRECATE.squish
<del> Method #{ method_sym } is deprecated and will be... | 1 |
Ruby | Ruby | fix broken tests | 23f99ed7eb602c05952e53bc14afb9e692f7053d | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_generator_for_yarn
<ide> end
<ide>
<ide> def test_generator_for_yarn_skipped
<del> run_generator([destination_root])
<add> run_generator([destination_root, "--skip-yarn"])
<ide> assert_no_file "vendor/package.json"
<ide>
<del> a... | 1 |
PHP | PHP | move bootstraps to base classes | bcc539ee62052e4562b94a592cf5fc980016e4d0 | <ide><path>app/Console/Kernel.php
<ide>
<ide> class Kernel extends ConsoleKernel {
<ide>
<del> /**
<del> * The bootstrap classes for the application.
<del> *
<del> * @return void
<del> */
<del> protected $bootstrappers = [
<del> 'Illuminate\Foundation\Bootstrap\LoadEnvironment',
<del> 'Illuminate\Foundation\Boo... | 2 |
Python | Python | fix typo in test | 797cbe4f0a4f631bc3e40d0325cd78aef6228348 | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def test_ex_create_router(self):
<ide> self.assertEqual(router.name, 'router1')
<ide>
<ide> def test_ex_delete_router(self):
<del> router = self.driver.ex_list_router()[0]
<add> router = self.driver.ex_list_routers()[0]
<ide> se... | 1 |
Javascript | Javascript | correct redirection to route api to routing guide | 33001ed3e60f4b2a9ee57e5f727ba951435cd34d | <ide><path>packages/ember-routing/lib/system/route.js
<ide> export function hasDefaultSerialize(route) {
<ide>
<ide> /**
<ide> The `Route` class is used to define individual routes. Refer to
<del> the [routing guide](https://emberjs.com/guides/routing/) for documentation.
<add> the [routing guide](https://guides.e... | 1 |
Ruby | Ruby | add headings to rake routes table | a6277629faf48469ac5ea4f6899b44a213d88c9f | <ide><path>actionpack/lib/action_dispatch/routing/inspector.rb
<ide> def format(formatter, filter = nil)
<ide> routes_to_display = filter_routes(filter)
<ide>
<ide> routes = collect_routes(routes_to_display)
<add>
<add> formatter.header routes
<ide> formatter.section routes
<ide>
<ide> ... | 1 |
Java | Java | fix imports in react native template | 04a011236b8f715ab7ee5dc15a0151151740cc87 | <ide><path>template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
<ide> */
<ide> package com.helloworld;
<ide>
<add>import android.content.Context;
<add>import com.facebook.flipper.android.AndroidFlipperClient;
<add>import com.facebook.flipper.android.utils.FlipperUtils;
<add>import com.facebook.f... | 1 |
Python | Python | fix typo in comment | 353e75f510d17c9c3237e55fd91303db1a81eb0f | <ide><path>glances/exports/glances_kafka.py
<ide> def __init__(self, config=None, args=None):
<ide> # Optionals configuration keys
<ide> self.compression = None
<ide>
<del> # Load the Cassandra configuration file section
<add> # Load the Kafka configuration file section
<ide> self... | 1 |
Python | Python | add support for msvc cross-compilation | 66807e995de9a16b1cfe035f76958a178c381854 | <ide><path>tools/gyp/pylib/gyp/generator/msvs.py
<ide> # letters.
<ide> VALID_MSVS_GUID_CHARS = re.compile(r'^[A-F0-9\-]+$')
<ide>
<add>generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested()
<ide>
<ide> generator_default_variables = {
<ide> 'DRIVER_PREFIX': '',
<ide> 'STATIC_LIB_SUFFIX': '.... | 1 |
Ruby | Ruby | remove unused @cache_hit hash assignment | ebb83e46ba0c11e9a087949138233ca8dd9ef690 | <ide><path>actionview/lib/action_view/base.rb
<ide> def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = N
<ide> @view_renderer = ActionView::Renderer.new @lookup_context
<ide> @current_template = nil
<ide>
<del> @cache_hit = {}
<ide> assign(assigns)
<ide> assign_... | 1 |
PHP | PHP | fix first method on eloquent builder | 751dff74fa541ec1a832320585abd8a9060e9f39 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function find($id, $columns = array('*'))
<ide> */
<ide> public function first($columns = array('*'))
<ide> {
<del> return $this->get($columns)->first();
<add> return $this->take(1)->get($columns)->first();
<ide> }
<ide>
<ide> /**
<ide><path>... | 2 |
Javascript | Javascript | avoid concatenating strings in buildfragment | 9c98e4e86eda857ee063bc48adbc1a11bb5506ee | <ide><path>src/manipulation/buildFragment.js
<ide> import jQuery from "../core.js";
<ide> import toType from "../core/toType.js";
<ide> import isAttached from "../core/isAttached.js";
<add>import arr from "../var/arr.js";
<ide> import rtagName from "./var/rtagName.js";
<ide> import rscriptType from "./var/rscriptType.j... | 3 |
Python | Python | remove timeout from urllib | d379ef22e9c5106c0c05c740403b1094442b176f | <ide><path>glances/compat.py
<ide> from xmlrpc.client import Fault, ProtocolError, ServerProxy, Transport
<ide> from xmlrpc.server import SimpleXMLRPCRequestHandler, SimpleXMLRPCServer
<ide> from urllib.request import urlopen
<del> from urllib.error import URLError, timeout
<add> from urllib.error imp... | 1 |
Java | Java | fix viewpager behavior with nodes | b8313b282b67ded62bac83dbbcd801215bfbdcc2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java
<ide>
<ide> import javax.annotation.Nullable;
<ide>
<add>import java.util.ArrayList;
<ide> import java.util.Collection;
<add>import java.util.List;
<ide>
<ide> import android.graphics.Rect;
<ide> import android.view.Vie... | 3 |
Text | Text | add changelog for [ci skip] | b38c370b0cbb6df0ba934d98311b3c7b1877429e | <ide><path>actionpack/CHANGELOG.md
<add>* Fallback `ActionController::Parameters#to_s` to `Hash#to_s`.
<add>
<add> *Kir Shatrov*
<add>
<ide> * `driven_by` now registers poltergeist and capybara-webkit
<ide>
<ide> If driver poltergeist or capybara-webkit is set for System Tests, | 1 |
Python | Python | hold the process until enter is pressed | bc76490acd4e47b14172e0b7dbf75f61ba435773 | <ide><path>numpy/distutils/core.py
<ide> def _command_line_ok(_cache=[]):
<ide>
<ide> def setup(**attr):
<ide>
<del> interactive = len(sys.argv)<=1
<del> if interactive:
<add> if len(sys.argv)<=1:
<ide> from interactive import interactive_sys_argv
<ide> sys.argv[:] = interactive_sys_argv(sys.... | 1 |
PHP | PHP | implement locale routing | cf24df89336316e74b50d2973b040657cdfafef5 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements HttpKernelInterface {
<ide> /**
<ide> * Create a new Illuminate application instance.
<ide> *
<add> * @param \Illuminate\Http\Request $request
<ide> * @return void
<ide> */
<del> public function __const... | 5 |
Text | Text | add details for inspect command usage | 59ef08c87836cab7540c07403a19ae5ea4eb85b9 | <ide><path>docs/reference/commandline/inspect.md
<ide> Options:
<ide>
<ide> ## Description
<ide>
<del>By default, `docker inspect` will render all results in a JSON array. If the container and
<del>image have the same name, this will return container JSON for unspecified type.
<add>Docker inspect provides detailed in... | 1 |
Javascript | Javascript | add simple node build | 76f157e3dd18d0501b4ed083e54b444ce11d232f | <ide><path>packages/react-transport-dom-webpack/npm/plugin.js
<ide> 'use strict';
<ide>
<del>if (process.env.NODE_ENV === 'production') {
<del> module.exports = require('./cjs/react-transport-dom-webpack-plugin.production.min.js');
<del>} else {
<del> module.exports = require('./cjs/react-transport-dom-webpack-plugi... | 7 |
Text | Text | add section stub about pull requests | f80d694a9500821ad9b1f5ee2f70ba7865a230bb | <ide><path>laravel/documentation/contrib/github.md
<ide> - [The Basics](#the-basics)
<ide> - [Repositories](#repositories)
<ide> - [Branches](#branches)
<add>- [Pull Requests](#pull-requests)
<ide>
<del><a name='the-basics'></a>
<add><a name="the-basics"></a>
<ide> ## The Basics
<ide>
<ide> Because Laravel's developm... | 1 |
PHP | PHP | add integration tests for --version and --help | d35a88cb595768d8b3bc0a1f86d21407e10017d6 | <ide><path>tests/TestCase/Console/ShellDispatcherTest.php
<ide> public function testShiftArgs()
<ide> $this->assertNull($this->dispatcher->shiftArgs());
<ide> $this->assertSame([], $this->dispatcher->args);
<ide> }
<add>
<add> /**
<add> * Test how `bin/cake --help` works.
<add> *
<add> ... | 1 |
Java | Java | add integration test for gh-24110 | fb13f6f0bc300ac8001d5cfc53b89f6136be0569 | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
<ide> void getMergedAnnotationWithImplicitAliasesInMetaAnnotationOnComposedAnnotation(
<ide> assertThat(isAnnotated(element, name)).isTrue();
<ide> }
<ide>
<add> @Test
<add> void getMergedAnnotationWithImplicitA... | 1 |
PHP | PHP | fix docblock declaration | a141f5120e5fa7e86c58de10f59513fd3fd80a38 | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php
<ide> public function getRegister()
<ide> /**
<ide> * Handle a registration request for the application.
<ide> *
<del> * @param \Illuminate\Foundation\Http\FormRequest $request
<add> * @param \Illuminate\Http\Request $request
<ide> ... | 1 |
Python | Python | fix xlnet test | 3268ebd2290800036fce0b931dc6c9b87b76e098 | <ide><path>transformers/tests/modeling_xlnet_test.py
<ide> def create_and_check_xlnet_base_model(self, config, input_ids_1, input_ids_2, in
<ide> [[self.seq_length, self.batch_size, self.hidden_size]] * self.num_hidden_layers)
<ide>
<ide> def create_and_check_xlnet_base_model_with_att_output(se... | 1 |
Ruby | Ruby | use canonicalized name in nosuchkegerror message | e236901e56addff6c887db15c7db47360e463359 | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def kegs
<ide> require 'formula'
<ide> @kegs ||= downcased_unique_named.collect do |name|
<ide> canonical_name = Formula.canonical_name(name)
<del> rack = HOMEBREW_CELLAR + if canonical_name.include? "/"
<add>
<add> if canonical_name.include? "/"
... | 1 |
Python | Python | improve assert message of assert_array_max_ulp | 48089a72d6f4c3805ce0a53618cc9652287c5018 | <ide><path>numpy/testing/_private/utils.py
<ide> def assert_array_max_ulp(a, b, maxulp=1, dtype=None):
<ide> import numpy as np
<ide> ret = nulp_diff(a, b, dtype)
<ide> if not np.all(ret <= maxulp):
<del> raise AssertionError("Arrays are not almost equal up to %g ULP" %
<del> ... | 1 |
Text | Text | add @shezi thanks! | e32aaa29b8e8665faf63ab4646cfba7aed6d9d8c | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Michael Mior - [michaelmior]
<ide> * Marc Tamlyn - [mjtamlyn]
<ide> * Richard Wackerbarth - [wackerbarth]
<add>* Johannes Spielmann - [shezi]
<ide>
<ide> Many thanks to everyone who's contributed to the project.... | 1 |
Javascript | Javascript | save shared data structures to local variables | c5f2eeaafe09026bceda4b90981836eed6a607e6 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> require('ember-handlebars/views/metamorph_view');
<ide>
<ide> var get = Ember.get, getPath = Ember.getPath, set = Ember.set, fmt = Ember.String.fmt;
<ide>
<add>var EmberHandlebars = Ember.Handlebars, helpers = EmberHandlebars.helpers;
<add>var helpers ... | 1 |
Go | Go | handle long log messages correctly on sizedlogger | bb11365e96a4f25fe20606b30cbfb79998fadff3 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> func (l *logStream) Name() string {
<ide> return name
<ide> }
<ide>
<add>// BufSize returns the maximum bytes CloudWatch can handle.
<ide> func (l *logStream) BufSize() int {
<ide> return maximumBytesPerEvent
<ide> }
<ide><path>daemon/logger/copier.go
<ide> fu... | 5 |
PHP | PHP | fix doctype declarations | 936aa9159ef916a9b26444f8b70c6d93457b1d88 | <ide><path>resources/views/errors/503.blade.php
<add><!DOCTYPE html>
<ide> <html>
<ide> <head>
<ide> <title>Be right back.</title>
<ide><path>resources/views/welcome.blade.php
<add><!DOCTYPE html>
<ide> <html>
<ide> <head>
<ide> <title>Laravel</title> | 2 |
Ruby | Ruby | remove habtm special cases from reflections | 957d7ae037b156e69c5999e48038b5c6b7235159 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> module Reflection # :nodoc:
<ide>
<ide> def self.create(macro, name, scope, options, ar)
<ide> case macro
<del> when :has_and_belongs_to_many
<del> klass = AssociationReflection
<ide> when :has_many, :belongs_to, :has_one
<ide> ... | 1 |
Text | Text | change incorrect example url | df33035a3c10934f153bc5a43042cf78a3dfce52 | <ide><path>docs/tutorial/2-requests-and-responses.md
<ide> Notice that we're no longer explicitly tying our requests or responses to a give
<ide>
<ide> ## Adding optional format suffixes to our URLs
<ide>
<del>To take advantage of the fact that our responses are no longer hardwired to a single content type let's add ... | 1 |
Java | Java | add context to redbox report api | e3c27f585aaeb685e86250f45fc790c06932af0d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java
<ide> public void run() {
<ide> // JS errors are reported here after source mapping.
<ide> if (mRedBoxHandler != null) {
<ide> mRedBoxHandler.handleRedbox(message, stack, RedBoxHandler.ErrorTyp... | 3 |
Text | Text | update starter template | 287b267305e84debbfcff2001faf832bf74e0146 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> ## Description
<ide> Briefly describe the issue.
<del>Include a [reduced test case](https://css-tricks.com/reduced-test-cases/), we have a [starter template](http://jsbin.com/axedog/edit?html,output) on JSBin you can use.
<add>Include a [reduced test case](https://css-tricks.c... | 4 |
Ruby | Ruby | fix punctuation errors | 31110c50e499067ccb8b4c0693d81f4153e6e155 | <ide><path>activeresource/lib/active_resource/validations.rb
<ide> class ResourceInvalid < ClientError #:nodoc:
<ide> # Active Resource validation is reported to and from this object, which is used by Base#save
<ide> # to determine whether the object in a valid state to be saved. See usage example in Validations.
... | 1 |
Ruby | Ruby | remove old metadata when installing with `--force` | 31d7d6e5f3ec88ffbaf8aa86ac6239e79cd9d160 | <ide><path>Library/Homebrew/cask/lib/hbc/cask.rb
<ide> def metadata_versioned_container_path
<ide> end
<ide>
<ide> def metadata_path(timestamp = :latest, create = false)
<del> return nil unless metadata_versioned_container_path.respond_to?(:join)
<ide> if create && timestamp == :latest
<ide> ... | 2 |
Python | Python | increase tolerance of failing heartbeat test | 594c6eef6938d7a4975a0d87003160c2390d7ebb | <ide><path>tests/jobs/test_local_task_job.py
<ide> def test_heartbeat_failed_fast(self):
<ide> time2 = heartbeat_records[i]
<ide> # Assert that difference small enough
<ide> delta = (time2 - time1).total_seconds()
<del> assert abs(delta - job.heartrate) < 0... | 1 |
Python | Python | remove extra whitespace | 8dd800dd9afad99f7d8dd9ab8a8f059b93d7f92b | <ide><path>celery/worker/request.py
<ide> def __optimize__():
<ide> @python_2_unicode_compatible
<ide> class Request(object):
<ide> """A request for task execution."""
<del>
<add>
<ide> acknowledged = False
<ide> time_start = None
<ide> worker_pid = None
<ide> class Request(object):
<ide> _termi... | 2 |
PHP | PHP | handle carbon 2 tests | ef681e23923540ddc9021af8b1e8c075faebaace | <ide><path>tests/Support/DateFacadeTest.php
<ide> public function testCarbonImmutable()
<ide> 'locale' => 'fr',
<ide> ]));
<ide> $this->assertSame('fr', Date::now()->locale);
<del> Date::swap(null);
<add> Date::swap(Carbon::class);
<ide> $this->assertSame('en', Date::no... | 2 |
Javascript | Javascript | add tests for d3.geo.bounds | bdc7c3f9e6e63510ec0d5dc015006eae201a6954 | <ide><path>test/geo/bounds-test.js
<add>require("../env");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("d3.geo.bounds");
<add>
<add>var ε = 1e-6;
<add>
<add>suite.addBatch({
<add> "bounds": {
<add> topic: function() {
<add> return d3.geo.boun... | 1 |
Java | Java | trim expressions supplied to @disabledif | b6220cc19d3cb924f8a62c77977732ea5e8340dc | <ide><path>spring-test/src/main/java/org/springframework/test/context/junit/jupiter/DisabledIfCondition.java
<ide> private ConditionEvaluationResult evaluateDisabledIf(ExtensionContext extensionC
<ide> Optional<DisabledIf> disabledIf = findMergedAnnotation(element, DisabledIf.class);
<ide> Assert.state(disabledIf.i... | 2 |
Ruby | Ruby | fix ruby path for ruby 1.8 | 0357673f213046b3bd29109be2e14c978e2aca3d | <ide><path>Library/Homebrew/cmd/config.rb
<ide> def describe_python
<ide> def describe_ruby
<ide> ruby = which "ruby"
<ide> return "N/A" if ruby.nil?
<del> ruby_binary = Utils.popen_read ruby, "-e", \
<add> ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
<ide> 'include RbConfig;print"#{... | 1 |
Javascript | Javascript | deprecate unused function converttocontext | 488d28d391ceb1d86f2f704d8fb4080802dfead4 | <ide><path>lib/repl.js
<ide> function regexpEscape(s) {
<ide> * @param {String} cmd The cmd to convert.
<ide> * @return {String} The converted command.
<ide> */
<del>REPLServer.prototype.convertToContext = function(cmd) {
<add>// TODO(princejwesley): Remove it prior to v8.0.0 release
<add>// Reference: https://githu... | 2 |
Ruby | Ruby | add example for a nil name in link_to | 46a4ac8a3656fba62d9fbeee79cf8f7306d6a8aa | <ide><path>actionview/lib/action_view/helpers/url_helper.rb
<ide> def _filtered_referrer # :nodoc:
<ide> # link_to "Profiles", controller: "profiles"
<ide> # # => <a href="/profiles">Profiles</a>
<ide> #
<add> # When name is +nil+ the href is presented instead
<add> #
<add> # link... | 1 |
Javascript | Javascript | remove $temporary$object types | 8a59153bd7325055dcca33571ee0484f8f00fb30 | <ide><path>Libraries/Components/Touchable/Touchable.flow.js
<ide> import * as React from 'react';
<ide> * }
<ide> */
<ide>
<del>// Default amount "active" region protrudes beyond box
<add>/**
<add> * Touchable states.
<add> */
<add>
<add>const States = {
<add> NOT_RESPONDER: 'NOT_RESPONDER', // Not the responder
... | 14 |
Text | Text | update devops flight-manuals | 2cc38f6cc5664f93e68e0a058fda51221b5f4437 | <ide><path>docs/devops.md
<ide> There are some known limitations and tradeoffs when using the beta version of th
<ide>
<ide> - #### Sign in page may look different than production
<ide>
<del> We use a test tenant for freecodecamp.dev on Auth0, and hence do not have the ability to set a custom domain. This makes it s... | 1 |
Python | Python | add the flang compiler | 3ff922786efcfbee29ae2636be8b381f5e376f69 | <ide><path>numpy/distutils/fcompiler/__init__.py
<ide> def wrap_unlinkable_objects(self, objects, output_dir, extra_dll_dir):
<ide> _default_compilers = (
<ide> # sys.platform mappings
<ide> ('win32', ('gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95',
<del> 'intelvem', 'intelem')),
... | 2 |
Python | Python | make transformer layer back compatible | ac5fff19dcb54bb341b7bfb3cf9f554f2d5f92a5 | <ide><path>official/nlp/modeling/layers/transformer.py
<ide> def build(self, input_shape):
<ide> kernel_constraint=self._kernel_constraint,
<ide> bias_constraint=self._bias_constraint,
<ide> name="self_attention")
<del>
<add> # pylint: disable=protected-access
<add> self._attention_layer.b... | 1 |
Javascript | Javascript | resolve all modules through module resolver (#963) | efe0c7b43323d753c52befbd214850bf80fd7279 | <ide><path>server/build/webpack.js
<ide> export default async function createCompiler (dir, { dev = false, quiet = false
<ide> if (!(/\.js$/.test(interpolatedName))) {
<ide> return { content, sourceMap }
<ide> }
<del>
<add> const babelRuntimePath = require.resolve('babel-runtime/package... | 1 |
PHP | PHP | update docblocks with 'path' in $params | a51f6c78c603d9dbd21b9d76b4f420be5a710f0b | <ide><path>src/Routing/RouteBuilder.php
<ide> public function redirect($route, $url, array $options = [])
<ide> * This method creates a scoped route collection that includes
<ide> * relevant prefix information.
<ide> *
<del> * The path parameter is used to generate the routing parameter name.
<add> ... | 1 |
Javascript | Javascript | add support for title in schema | d064fbe79f8dd6e0c583812a0075dd7b114ef652 | <ide><path>test/Schemas.lint.js
<ide> describe("Schemas", () => {
<ide> const allowedProperties = [
<ide> "definitions",
<ide> "$ref",
<del> "id",
<add> "$id",
<add> "title",
<ide> "items",
<ide> "properties",
<ide> "additionalProperties",
<ide><path>tooling/format-schemas.js
<i... | 2 |
Python | Python | fix some typos. | 7866fbaa1a9d89cc168bc950fa47f5de3b173ca8 | <ide><path>keras/layers/convolutional.py
<ide> class Conv3D(_Conv):
<ide> When using this layer as the first layer in a model,
<ide> provide the keyword argument `input_shape`
<ide> (tuple of integers, does not include the sample axis),
<del> e.g. `input_shape=(128, 128, 128, 3)` for 128x128x128 volumes
... | 1 |
Text | Text | add changelog entry ref | 8eac0a6b5817defabef6cee2f12baeda26e91d8f | <ide><path>railties/CHANGELOG.md
<add>* Add public API to register new extensions for `rake notes`.
<add>
<add> Example:
<add>
<add> config.annotations.register_extensions("scss", "sass") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
<add>
<add> *Roberto Miranda*
<add>
<ide> * Removed unnecessary `rails applic... | 1 |
Ruby | Ruby | combine superenv tests | 3516bb68d3ca06d14fbcec343fa8792cef922792 | <ide><path>Library/Homebrew/test/test_ENV.rb
<ide> def setup
<ide> class SuperenvTests < Test::Unit::TestCase
<ide> include SharedEnvTests
<ide>
<add> attr_reader :env, :bin
<add>
<ide> def setup
<ide> @env = {}.extend(Superenv)
<add> @bin = HOMEBREW_REPOSITORY/"Library/ENV/#{MacOS::Xcode.version}"
<add> ... | 2 |
Python | Python | patch spacy.train for new pipeline management | 97c9b5db8b6219d53967a136fa9fdd63bd06fca5 | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=10, n_sents=0,
<ide> n_train_words = corpus.count_train()
<ide>
<ide> lang_class = util.get_lang_class(lang)
<del> nlp = lang_class(pipeline=pipeline)
<add> nlp = lang_class()
<ide> if vectors:
<ide> ... | 1 |
Text | Text | add theme guides to the index | d237b3448c0f4b5c04cbe805f42bf10f60fe8b8b | <ide><path>docs/index.md
<ide> * [Serialization](advanced/serialization.md)
<ide> * [View System](advanced/view-system.md)
<ide> * [Scopes and Scope Descriptors](advanced/scopes-and-scope-descriptors.md)
<add>
<add>### Upgrading to 1.0 APIs
<add>
<add>* [Upgrading your UI Theme](upgrading/upgrading-your-ui-theme.md)
<a... | 1 |
Javascript | Javascript | add more info about watching and tracking | 7c792f4cc99515ac27ed317e0e35e40940b3a400 | <ide><path>src/ng/directive/ngRepeat.js
<ide> *
<ide> * # Tracking and Duplicates
<ide> *
<del> * When the contents of the collection change, `ngRepeat` makes the corresponding changes to the DOM:
<add> * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in
<add> * the coll... | 1 |
Text | Text | fix grammatical error | 6353ea47464b708faaef01a27531915625b93439 | <ide><path>guides/source/getting_started.md
<ide> If you refresh <http://localhost:3000/posts/new> now, you'll get a new error:
<ide>
<ide> This error indicates that Rails cannot find the `new` action inside the `PostsController`
<ide> that you just generated. This is because when controllers are generated in Rails
<d... | 1 |
Text | Text | upload distilbart artwork | 331d8d2936e7a140225cf60301ba6469930fd216 | <ide><path>examples/seq2seq/README.md
<add>## Sequence to Sequence
<add>
<ide> This directory contains examples for finetuning and evaluating transformers on summarization and translation tasks.
<ide> Summarization support is more mature than translation support.
<ide> Please tag @sshleifer with any issues/unexpected b... | 1 |
Ruby | Ruby | pass explicit sort to handle apfs | 7b8ba77ed26f84aacc1648eeb78b6d9964adfda2 | <ide><path>Library/Homebrew/cmd/missing.rb
<ide> def missing
<ide> return unless HOMEBREW_CELLAR.exist?
<ide>
<ide> ff = if ARGV.named.empty?
<del> Formula.installed
<add> Formula.installed.sort
<ide> else
<del> ARGV.resolved_formulae
<add> ARGV.resolved_formulae.sort
<ide> end
<ide... | 1 |
Javascript | Javascript | fix module cycle in ember-runtime | 8e12a0cb2e19bb7bd7a03abf8385d3f3c454d5ff | <ide><path>packages/ember-runtime/index.js
<ide> export {
<ide> A,
<ide> MutableArray,
<ide> removeAt,
<add> uniqBy,
<add> isArray,
<ide> } from './lib/mixins/array';
<ide> export { default as Comparable } from './lib/mixins/comparable';
<ide> export { default as Namespace } from './lib/system/namespace';
<ide>... | 8 |
Text | Text | update literal translations in index.md | 9bb4946fbece4a27319ca762724e3d349f67d8d8 | <ide><path>guide/spanish/agile/technical-debt/index.md
<ide> localeTitle: Deuda técnica
<ide> ---
<ide> ## Deuda técnica
<ide>
<del>A menudo, en el desarrollo ágil, si está produciendo software en la práctica "suficientemente buena", también aumentará su deuda técnica. Esta es la acumulación de atajos y soluciones.
<a... | 1 |
Ruby | Ruby | skip extra work if no text or phrase was provided | ca59ec354ee8ba264120783c9364927a97b90896 | <ide><path>actionpack/lib/action_view/helpers/text_helper.rb
<ide> def highlight(text, phrases, *args)
<ide> # excerpt('This is an example', 'an', 5) # => ...s is an exam...
<ide> # excerpt('This is also an example', 'an', 8, '<chop> ') # => <chop> is also an example
<ide> def ... | 1 |
PHP | PHP | add abstract createapplication() method | 5e88f616e8b75ce5a0e7bd034923d725bc0f5321 | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> protected function refreshApplication()
<ide> $this->client = $this->createClient();
<ide> }
<ide>
<add> /**
<add> * Creates the application.
<add> *
<add> * Needs to be implemented by subclasses.
<add> *
<add> * @return Symfony\Component\HttpKern... | 1 |
Javascript | Javascript | improve path tests | 5a54e4554ae0ff9788812c88ae05dfdd6088ffe1 | <ide><path>test/parallel/test-path-parse-format.js
<ide> const unixPaths = [
<ide> './file',
<ide> 'C:\\foo',
<ide> '/',
<del> ''
<add> '',
<add> '.',
<add> '..',
<add> '/foo',
<add> '/foo.',
<add> '/foo.bar',
<add> '/.',
<add> '/.foo',
<add> '/.foo.bar',
<add> '/foo/bar.baz',
<ide> ];
<ide>
<ide> con... | 3 |
Java | Java | fix removal of virtual nodes in fabricreconciler | c0d27de37eec7b6860387e35dae4dfc455d4b6e2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricReconciler.java
<ide> private void manageChildren(
<ide> // If a View is not re-ordered, then the ReactTag is deleted (ReactShadowNode and native View
<ide> // are released from memory)
<ide> List<Integer> tagsToDelete = new LinkedList<>(... | 2 |
Javascript | Javascript | build latest output files for new version | 3e1b120cbeff4caa90ff15880a9e0075e70b50f2 | <ide><path>Chart.js
<ide> yMin;
<ide> helpers.each(this.datasets, function(dataset){
<ide> dataCollection = dataset.points || dataset.bars || dataset.segments;
<del> Elements.push(dataCollection[dataIndex]);
<add> if (dataCollection[dataIndex]){
<add> Elements.push(dataColle... | 2 |
Javascript | Javascript | consolidate triggerreport() tests | cae7232e7aa82ad57c81b55b0f8852ea3e70c5b3 | <ide><path>test/node-report/test-api-nohooks.js
<ide> const common = require('../common');
<ide> common.skipIfReportDisabled();
<ide> const assert = require('assert');
<add>const fs = require('fs');
<add>const path = require('path');
<ide> const helper = require('../common/report');
<ide> const tmpdir = require('../com... | 4 |
Text | Text | add short description of models (#359) | b5bceea1b7edfd078c57037ebd84aac3c9b5ce07 | <ide><path>README.md
<ide> This repository contains machine learning models implemented in
<ide> respective authors.
<ide>
<ide> To propose a model for inclusion please submit a pull request.
<add>
<add>
<add>## Models
<add>- [autoencoder](autoencoders) -- various autoencoders
<add>- [inception](inception) -- deep con... | 1 |
Javascript | Javascript | improve style and clarify wording | fd45d590ef924c25903832086a63172f98ea189c | <ide><path>src/ng/window.js
<ide> * it is a global variable. In angular we always refer to it through the
<ide> * `$window` service, so it may be overridden, removed or mocked for testing.
<ide> *
<del> * All expressions are evaluated with respect to current scope so they don't
<del> * suffer from window globality.
... | 1 |
Ruby | Ruby | add tests for unreadable formulae/casks | 6e0bf05fb5ce233b97ba6023676073d33cc277e4 | <ide><path>Library/Homebrew/test/cli/named_args_spec.rb
<ide>
<ide> require "cli/named_args"
<ide>
<add>def setup_unredable_formula(name)
<add> error = FormulaUnreadableError.new(name, "testing")
<add> allow(Formulary).to receive(:factory).with(name, force_bottle: false, flags: []).and_raise(error)
<add>end
<add>
<... | 1 |
Javascript | Javascript | fix documentation for the config class | e546190b1e98261c71753fdd4bc15caa53d0fc2d | <ide><path>src/config.js
<ide> const Color = require('./color')
<ide> const ScopedPropertyStore = require('scoped-property-store')
<ide> const ScopeDescriptor = require('./scope-descriptor')
<ide>
<add>const schemaEnforcers = {}
<add>
<ide> // Essential: Used to access all of Atom's configuration details.
<ide> //
<id... | 1 |
Python | Python | allow unicode yaml dump with unicodeyamlrenderer | 7ae8409370635ccec7d3c160ea87281f21c9ae11 | <ide><path>rest_framework/renderers.py
<ide> class YAMLRenderer(BaseRenderer):
<ide> format = 'yaml'
<ide> encoder = encoders.SafeDumper
<ide> charset = 'utf-8'
<add> ensure_ascii = True
<ide>
<ide> def render(self, data, accepted_media_type=None, renderer_context=None):
<ide> """
<ide> def ... | 1 |
Python | Python | remove use of attr module in ud_train | 2cab4d651732bad2520ab8aa566a6a91cb3c7bda | <ide><path>spacy/cli/ud_train.py
<ide> from __future__ import unicode_literals
<ide> import plac
<ide> import tqdm
<del>import attr
<ide> from pathlib import Path
<ide> import re
<ide> import sys
<ide> def initialize_pipeline(nlp, docs, golds, config):
<ide> # Command line helpers #
<ide> ########################
<ide>... | 1 |
Ruby | Ruby | collapse logsubscriber into logging | fd372e66f0934617bef3b840cd0ea75429a24544 | <ide><path>lib/active_job/log_subscriber.rb
<del>require 'active_support/core_ext/string/filters'
<del>
<del>module ActiveJob
<del> class LogSubscriber < ActiveSupport::LogSubscriber
<del> def enqueue(event)
<del> info "Enqueued #{event.payload[:job].name} to #{queue_name(event)}" + args_info(event)
<del> e... | 2 |
Text | Text | update converting view section | 3bb62b6651a8b91bec5a87ea04382e7f9d868fdc | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> To use the new views, you need to specify the `atom-space-pen-views` module in y
<ide>
<ide> ### Converting your views
<ide>
<del>Sometimes it is as simple as converting the requires at the top of each view page. In the case of our above example, you can just ... | 1 |
Ruby | Ruby | add change_rpath method | a8cbc14ca34c55a9dfc3de865bb0cb420deb3adb | <ide><path>Library/Homebrew/os/mac/keg.rb
<ide> def change_install_name(old, new, file)
<ide> raise
<ide> end
<ide>
<add> def change_rpath(old, new, file)
<add> return if old == new
<add>
<add> @require_relocation = true
<add> odebug "Changing rpath in #{file}\n from #{old}\n to #{new}"
<add> Ma... | 1 |
Ruby | Ruby | add debug output | 47a8a312e3a82c5390e0c921ee314b2af3775cf1 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def version_for_sha sha
<ide> begin
<ide> Object.send(:remove_const, Formula.class_s(name))
<ide> nostdout { Formula.factory(path).version }
<del> rescue SyntaxError, TypeError, NameError, ArgumentError
<add> rescue SyntaxError,... | 1 |
Ruby | Ruby | update outdated test | 6c5f1692eea160f6f967d71eaca478ccfef19df8 | <ide><path>actionpack/test/dispatch/request_test.rb
<ide> class RequestMethod < BaseRequestTest
<ide> end
<ide> end
<ide>
<del> test "allow method hacking on post" do
<del> %w(GET OPTIONS PATCH PUT POST DELETE).each do |method|
<del> request = stub_request 'REQUEST_METHOD' => method.to_s.upcase
<del>
<d... | 1 |
Go | Go | enable secret inspect and rm by secret name | e0e65b9a3baab6bb3f35eddb6ed3d52654184029 | <ide><path>cli/command/secret/inspect.go
<ide> func runSecretInspect(dockerCli *command.DockerCli, opts inspectOptions) error {
<ide> client := dockerCli.Client()
<ide> ctx := context.Background()
<ide>
<add> // attempt to lookup secret by name
<add> secrets, err := getSecrets(client, ctx, []string{opts.name})
<add>... | 3 |
Java | Java | fix docleanupaftercompletion invocation | 9cff07ce35dcca7c1028885492d246b3f4735dfb | <ide><path>spring-tx/src/main/java/org/springframework/transaction/reactive/AbstractReactiveTransactionManager.java
<ide> private Mono<Void> cleanupAfterCompletion(TransactionSynchronizationManager sync
<ide> if (status.isNewSynchronization()) {
<ide> synchronizationManager.clear();
<ide> }
<add> Mono<Void>... | 3 |
Javascript | Javascript | replace assertpath() with validator | f962f97cc450cdd9ee58d914608801e5eed1058f | <ide><path>lib/path.js
<ide> const {
<ide> CHAR_COLON,
<ide> CHAR_QUESTION_MARK,
<ide> } = require('internal/constants');
<del>
<del>function assertPath(path) {
<del> if (typeof path !== 'string') {
<del> throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
<del> }
<del>}
<add>const { validateString } = req... | 1 |
Go | Go | protect concurrent map access | 1ac0a66a64a906911d0708cd0e5fa397a2f0b595 | <ide><path>daemon/graphdriver/quota/projectquota.go
<ide> func NewControl(basePath string) (*Control, error) {
<ide> // SetQuota - assign a unique project id to directory and set the quota limits
<ide> // for that project id
<ide> func (q *Control) SetQuota(targetPath string, quota Quota) error {
<del>
<add> q.RLock()
... | 2 |
Java | Java | improve async support in spring mvc test | 3bb515bec72b1984ae422f7a9da12e412978f61c | <ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java
<ide> */
<ide> package org.springframework.test.web.servlet;
<ide>
<add>import java.util.concurrent.CountDownLatch;
<add>import java.util.concurrent.TimeUnit;
<add>
<add>import javax.servlet.http.HttpServletRequest;
<a... | 6 |
Python | Python | avoid global variables in resnet construction | 7a2575852af0f2a6c9e806d50d83bb6188ae8f8f | <ide><path>official/vision/image_classification/resnet/resnet_model.py
<ide> from tensorflow.python.keras import regularizers
<ide> from official.vision.image_classification.resnet import imagenet_preprocessing
<ide>
<del>L2_WEIGHT_DECAY = 1e-4
<del>BATCH_NORM_DECAY = 0.9
<del>BATCH_NORM_EPSILON = 1e-5
<del>
<ide> lay... | 2 |
Javascript | Javascript | handle submit events | 9dcb6813beeb1092b80dca7d83d36e274acd79a4 | <ide><path>packages/sproutcore-views/lib/system/event_dispatcher.js
<ide> SC.EventDispatcher = SC.Object.extend(
<ide> focusout : 'focusOut',
<ide> mouseenter : 'mouseEnter',
<ide> mouseleave : 'mouseLeave',
<add> submit : 'submit',
<ide> change : 'change'
<ide> };
<ide> | 1 |
Python | Python | fix more formatting tests on win32 | 733feabcdba9aae2dbc1d71ec17c9b7483e68a1f | <ide><path>numpy/core/tests/test_print.py
<ide> '(inf+1j)', complex(np.nan, 1): '(nan+1j)', complex(-np.inf, 1):
<ide> '(-inf+1j)'}
<ide>
<add>if sys.platform == 'win32' and sys.version_info[0] <= 2 and sys.version_info[1] <= 5:
<add> _REF[np.float32(1e10)] = '1e+010'
<add>else:
<add> _REF[np.flo... | 1 |
PHP | PHP | add hal+json, hal+xml, and ld+json | b195583b5106fc1d9f5b52ae51fc0853862f1fca | <ide><path>src/Http/Response.php
<ide> class Response implements ResponseInterface
<ide> 'gz' => 'application/x-gzip',
<ide> 'bz2' => 'application/x-bzip',
<ide> '7z' => 'application/x-7z-compressed',
<add> 'hal+json' => ['application/hal+json', 'application/vnd.hal+json'],
<add> '... | 1 |
Ruby | Ruby | add arm detection from linuxbrew | 569c80323b7b28028552e21759790b83f5b305b3 | <ide><path>Library/Homebrew/hardware.rb
<ide> def ppc?
<ide> type == :ppc
<ide> end
<ide>
<add> def arm?
<add> type == :arm
<add> end
<add>
<ide> def features
<ide> []
<ide> end | 1 |
Python | Python | fix add_special_tokens on fast tokenizers | 5e737018e1fcb22c8b76052058279552a8d6c806 | <ide><path>src/transformers/tokenization_utils.py
<ide> def add_tokens(self, new_tokens: List[Union[str, AddedTokenFast]]) -> int:
<ide>
<ide> def add_special_tokens(self, special_tokens_dict: dict) -> int:
<ide> # Map special tokens to class attributes (self.pad_token...)
<del> num_added_tokens = s... | 2 |
Ruby | Ruby | fix collectionassociation docs | 3ef1f9448332d8e73676ceb15e94d5482c75f1d3 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> module Associations
<ide> #
<ide> # CollectionAssociation class provides common methods to the collections
<ide> # defined by +has_and_belongs_to_many+, +has_many+ or +has_many+ with
<del> # +:through+ association opti... | 1 |
Javascript | Javascript | improve non-padded strict tokens | 95aeb62816dd970bb323106544c96522905eb1d7 | <ide><path>moment.js
<ide> parseTokenTwoDigits = /\d\d/, // 00 - 99
<ide> parseTokenThreeDigits = /\d{3}/, // 000 - 999
<ide> parseTokenFourDigits = /\d{4}/, // 0000 - 9999
<del> parseTokenSixDigits = /[+\-]?\d{6}/, // -999,999 - 999,999
<add> parseTokenSixDigits = /[+-]?\d{6}/, //... | 2 |
Javascript | Javascript | add visibility flag for hiding/unhiding trees | eb3181e7722905933da3b53ebff05339f12a3ba6 | <ide><path>packages/react-reconciler/src/ReactFiberCompleteWork.new.js
<ide> import {
<ide> NoFlags,
<ide> DidCapture,
<ide> Snapshot,
<add> Visibility,
<ide> MutationMask,
<ide> LayoutMask,
<ide> PassiveMask,
<ide> function completeWork(
<ide> // TODO: Only schedule updates if not prevDidTimeout.
... | 3 |
Ruby | Ruby | fix inheritance in exceptions | b7f093925e7a751914f131aaecd8c080d3441c16 | <ide><path>Library/Homebrew/exceptions.rb
<del>class UsageError <RuntimeError; end
<del>class FormulaUnspecifiedError <UsageError; end
<del>class KegUnspecifiedError <UsageError; end
<add>class UsageError < RuntimeError; end
<add>class FormulaUnspecifiedError < UsageError; end
<add>class KegUnspecifiedError < UsageErro... | 1 |
Python | Python | remove dummy inputs in layers | f3f19146f9c248b9d600c5767d1ad60dc9aa20da | <ide><path>keras/layers/convolutional.py
<ide> def __init__(self, nb_filter, filter_length,
<ide> self.input_length = input_length
<ide> if self.input_dim:
<ide> kwargs['input_shape'] = (self.input_length, self.input_dim)
<del> self.input = K.placeholder(ndim=3)
<ide> super(Co... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.