content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Text
Text
add model card for berteus
47e1334c0b56007c9d222e029db27fd2fdfccbb2
<ide><path>model_cards/ixa-ehu/berteus-base-cased/README.md <add>--- <add>language: <add>- basque <add>--- <add> <add># BERTeus base cased <add> <add>This is the Basque language pretrained model presented in [Give your Text Representation Models some Love: the Case for Basque](https://arxiv.org/pdf/2004.00033.pdf). Thi...
1
Python
Python
add weight deduping before updates computation
ebfde534c04d10d1fd414cdafac0697721f0c000
<ide><path>keras/engine/training.py <ide> def compile(self, optimizer, loss, metrics=[], loss_weights=None, <ide> <ide> # prepare gradient updates and state updates <ide> self.optimizer = optimizers.get(optimizer) <del> train_updates = self.optimizer.get_updates(self.trainable_weights, <add> ...
1
Text
Text
fix changelog date
dff2a0ac126c15f1d141126c33bda0f92ab9b0da
<ide><path>CHANGELOG.md <ide> information on the list of deprecated flags and APIs please have a look at <ide> https://docs.docker.com/engine/deprecated/ where target removal dates can also <ide> be found. <ide> <del>## 17.03.0-ce (2017-02-01) <add>## 17.03.0-ce (2017-03-01) <ide> <ide> ### Client <ide>
1
Text
Text
fix animated blog lists
7f9876c0498b23cadc232bdaf3e108144cfaf485
<ide><path>blog/2017-02-14-using-native-driver-for-animated.md <ide> First, let's check out how animations currently work using Animated with the JS <ide> ![](/react-native/blog/img/animated-diagram.png) <ide> <ide> Here's a breakdown of the steps for an animation and where it happens: <add> <ide> - JS: The animation ...
1
Go
Go
simplify the crashtest
76a1a7cf5ba2d2db2c7e5873df529f3f956a2156
<ide><path>contrib/crashTest.go <ide> package main <ide> <ide> import ( <add> "bufio" <ide> "fmt" <ide> "io" <ide> "log" <ide> import ( <ide> <ide> var DOCKER_PATH string = path.Join(os.Getenv("DOCKERPATH"), "docker") <ide> <add>// WARNING: this crashTest will 1) crash your host, 2) remove all containers <ide> fu...
1
Text
Text
add pnpm link to docs
3e178bb8018e4cc9899ec85de49e114af740ef11
<ide><path>contributing.md <ide> Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu <ide> <ide> ## How to use <ide> <del>Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnp...
264
Text
Text
add fundamentals translation
ae864f9071aa67d640c8d43b82ed94241f32baa4
<ide><path>threejs/lessons/tr/threejs-fundamentals.md <add>Title: Three.js Temelleri <add>Description: Temeller ile birlikte ilk Three.js dersiniz <add>TOC: Temel Bilgiler <add> <add>Bu three.js ile alakalı makale serisindeki ilk makaledir. [Three.js](https://threejs.org) bir web sayfasına 3D içerik sağlamayı mümkün ol...
1
Ruby
Ruby
use new routing dsl in tests
2be5e088d27f17cd7210cbfd227aff2e5be6b800
<ide><path>actionpack/test/abstract_unit.rb <ide> class ActiveSupport::TestCase <ide> # have been loaded. <ide> setup_once do <ide> ActionController::Routing::Routes.draw do |map| <del> map.connect ':controller/:action/:id' <add> match ':controller(/:action(/:id))' <ide> end <ide> end <ide> end ...
15
Javascript
Javascript
add test to show evalscripts/find problem
41f62e13643462a88fa7d9015346196f3d37b966
<ide><path>src/jquery/coreTest.js <ide> test("removeClass(String) - add three classes and remove again", function() { <ide> test("removeAttr(String", function() { <ide> ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); <ide> }); <add> <add>test("evalScripts() with no script elements", function()...
1
PHP
PHP
add some coverage to fixtureschemaextension
1754dc52a7836ce29f7045eaeef0ebcca4682820
<ide><path>tests/TestCase/TestSuite/FixtureSchemaExtensionTest.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT Lice...
1
Python
Python
fix typo in unit test
6cc11224fb4c77a03b31bd8317e861eedb3b2d42
<ide><path>tests/keras/legacy/interface_test.py <ide> def test_gaussiannoise_legacy_interface(): <ide> <ide> @keras_test <ide> def test_maxpooling2d_legacy_interface(): <del> old_layer = keras.layers.MaxPooling2D(pool_length=2, border_mode='valid', name='maxpool2d') <del> new_layer = keras.layers.MaxPooling2D(po...
1
Java
Java
add getlasthandler to websockethandlerdecorator
5feac077381b8cabe90c54f0c6f63fe8f8047b8a
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/support/WebSocketHandlerDecorator.java <ide> public WebSocketHandler getDelegate() { <ide> return this.delegate; <ide> } <ide> <add> public WebSocketHandler getLastHandler() { <add> WebSocketHandler result = delegate; <add> while (result ins...
2
PHP
PHP
use baseclass instead of full alias for the mock
a2e77ca1df4c3a5d158aa5c9e22bab432cb8217e
<ide><path>src/TestSuite/TestCase.php <ide> public function getMockForModel($alias, array $methods = array(), array $options <ide> $options += TableRegistry::config($alias); <ide> <ide> $mock = $this->getMock($options['className'], $methods, [$options]); <del> TableRegistry::set($alias, $mock); <add> TableRegist...
1
Ruby
Ruby
add missing require and remove extra module
b8f6dd8cbb2de870a4805800fd89148a417bc612
<ide><path>activemodel/lib/active_model/secure_password.rb <add>require 'active_support/core_ext/object/blank' <ide> require 'bcrypt' <ide> <ide> module ActiveModel <ide> def has_secure_password <ide> end <ide> end <ide> <del> module InstanceMethods <del> # Returns self if the password is correct, o...
1
Python
Python
fix dictkey initial value
9098856d46f2bf1a5f191b48b5e7b7e07add4dc7
<ide><path>rest_framework/fields.py <ide> def to_representation(self, data): <ide> <ide> class DictField(Field): <ide> child = _UnvalidatedField() <del> initial = [] <add> initial = {} <ide> default_error_messages = { <ide> 'not_a_dict': _('Expected a dictionary of items but got type "{input_type...
1
Text
Text
add solutions to html challenges
722b65d80f594c24d415043583dca05aef7f41e4
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.english.md <ide> tests: <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><h2>CatPhotoApp</h2> <add><main> <add> <p>Click here to view ...
11
Javascript
Javascript
remove common.port from test-net-pause
af19f4116c5c3ce0fc7b18b62ffb05e8138bf74b
<ide><path>test/pummel/test-net-pause.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>const common = require('../common'); <add>require('../common'); <ide> const assert = require('assert'); <ide> const net = require('net'); <ide> <ide> const server = net.createServer((connection) => ...
1
PHP
PHP
add configure logging to bootstrappers
b83b9c26a193369361b7c7fef3bcd5220bb49934
<ide><path>src/Illuminate/Foundation/Bootstrap/ConfigureLogging.php <add><?php namespace Illuminate\Foundation\Bootstrap; <add> <add>use Illuminate\Log\Writer; <add>use Monolog\Logger as Monolog; <add>use Illuminate\Contracts\Foundation\Application; <add> <add>class ConfigureLogging { <add> <add> /** <add> * Bootstrap...
4
PHP
PHP
add datetime support to database binding layer
94b8582865cf3ec8f436fec9f2c6c9cb15ec3c81
<ide><path>laravel/database/connection.php <ide> protected function execute($sql, $bindings = array()) <ide> <ide> $sql = $this->grammar()->shortcut($sql, $bindings); <ide> <add> // Next we need to translate all DateTime bindings to their date-time <add> // strings that are compatible with the database. Each gram...
7
Ruby
Ruby
remove the renderer option from the hash
60ca754b97f1254eebd61da08fb2f58f298fec31
<ide><path>actionpack/lib/action_controller/metal/renderers.rb <ide> def _write_render_options <ide> <<-RUBY_EVAL <ide> if options.key?(:#{name}) <ide> _process_options(options) <del> return _render_option_#{name}(options[:#{name}], options) <add> return _re...
1
PHP
PHP
add router to aliases
be101265c08aaeec3d6dbea8d7e04adb587000c9
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function registerCoreContainerAliases() <ide> 'redirect' => 'Illuminate\Routing\Redirector', <ide> 'redis' => ['Illuminate\Redis\Database', 'Illuminate\Contracts\Redis\Database'], <ide> 'request' => 'Illuminate\Http\Request...
1
Python
Python
support multiple metrics in ctl
5741cef6049a150d5b73e3f034e8b016fa4a8914
<ide><path>official/modeling/training/distributed_executor.py <ide> # pylint: disable=unused-import,g-import-not-at-top,redefined-outer-name,reimported <ide> from typing import Optional, Dict, List, Text, Callable, Union, Iterator, Any <ide> from official.modeling.hyperparams import params_dict <add>from official.utils...
1
Java
Java
add switch for enabling nodes screenshot tests
6b80f11652d7937ace7fbe867c7d6cfacb7cab01
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java <ide> import com.facebook.react.ReactPackage; <ide> import com.facebook.react.ReactRootView; <ide> import com.facebook.react.shell.MainReactPackage; <del> <add>import com.facebook.react.uimanager.UIImplementationProvider; ...
1
PHP
PHP
fix auto linking for urls with uppercased protocol
3e8123868e987b9d220b4514e73434651831a6cf
<ide><path>src/View/Helper/TextHelper.php <ide> protected function _linkUrls($text, $htmlOptions) <ide> $replace = []; <ide> foreach ($this->_placeholders as $hash => $url) { <ide> $link = $url; <del> if (!preg_match('#^[a-z]+\://#', $url)) { <add> if (!preg_match('#^[a...
2
Javascript
Javascript
add referrer capability to the test resolver
35889593cb05d8934413be96efa31a375fd0b4e3
<ide><path>packages/container/tests/registry_test.js <ide> import { Registry, privatize } from '..'; <del>import { factory, moduleFor, AbstractTestCase } from 'internal-test-helpers'; <add>import { <add> factory, <add> moduleFor, <add> AbstractTestCase, <add> ModuleBasedTestResolver <add>} from 'internal-test-helpe...
2
Python
Python
fix failing celery test
0f97b92c1ad15bd6d0a90c8dee8287886641d7d9
<ide><path>tests/cli/commands/test_celery_command.py <ide> # KIND, either express or implied. See the License for the <ide> # specific language governing permissions and limitations <ide> # under the License. <del>import os <ide> import unittest <ide> from argparse import Namespace <ide> from tempfile import NamedTemp...
1
Javascript
Javascript
fix ibmi skip message
7d672733c63bf61a3816266aee57bedb8bc831a2
<ide><path>test/async-hooks/test-fseventwrap.js <ide> if (!common.isMainThread) <ide> common.skip('Worker bootstrapping works differently -> different async IDs'); <ide> <ide> if (common.isIBMi) <del> common.skip('IBMi does not suppport fs.watch()'); <add> common.skip('IBMi does not support fs.watch()'); <ide> <i...
1
PHP
PHP
port 5.0 fix for queue sleeping
80c524c81e801a7b01744d6559637094f5e859c4
<ide><path>src/Illuminate/Queue/Console/WorkCommand.php <ide> public function __construct(Worker $worker) <ide> public function fire() <ide> { <ide> if ($this->downForMaintenance() && !$this->option('daemon')) { <del> return; <add> return $this->worker->sleep($this->option('sleep')...
1
Java
Java
fix failing tests failing when debug logging is on
d3c977b54b13c27bdf22747bbee8615d643c9559
<ide><path>spring-web/src/test/java/org/springframework/web/client/RestTemplateTests.java <ide> public void varArgsTemplateVariables() throws Exception { <ide> .andReturn(request); <ide> expect(request.execute()).andReturn(response); <ide> expect(errorHandler.hasError(response)).andReturn(false); <add> addLogR...
2
PHP
PHP
remove deprecations methods
eaa77156a5eb7315ea02eeab0db50978dbadc7a9
<ide><path>Cake/Controller/Component/AclComponent.php <ide> public function inherit($aro, $aco, $action = "*") { <ide> return $this->_Instance->inherit($aro, $aco, $action); <ide> } <ide> <del>/** <del> * Pass-thru function for ACL grant instance. An alias for AclComponent::allow() <del> * <del> * @param array|stri...
6
Ruby
Ruby
move superbin into superenv module
a04f1ac3d362e3da38db7aea0bc89ebc55f92478
<ide><path>Library/Homebrew/superenv.rb <ide> # 7) Simpler formula that *just work* <ide> # 8) Build-system agnostic configuration of the tool-chain <ide> <del>def superbin <del> @bin ||= (HOMEBREW_REPOSITORY/"Library/ENV").children.reject{|d| d.basename.to_s > MacOS::Xcode.version }.max <del>end <del> <ide> def supe...
1
Javascript
Javascript
unify behavior of showing/hiding
c611f9f3585c6023819e7174b2251c2a6800309f
<ide><path>src/js/control-bar/text-track-controls/captions-button.js <ide> class CaptionsButton extends TextTrackButton { <ide> return `vjs-captions-button ${super.buildWrapperCSSClass()}`; <ide> } <ide> <del> /** <del> * Update caption menu items <del> * <del> * @param {EventTarget~Event} [event] <del> ...
3
Javascript
Javascript
revise $flowfixme in text
6042592cf46787f089e76b661376705380607207
<ide><path>Libraries/Text/Text.js <ide> type ResponseHandlers = $ReadOnly<{| <ide> <ide> type Props = $ReadOnly<{ <ide> ...TextProps, <del> // $FlowFixMe - Typing ReactNativeComponent revealed errors <del> forwardedRef: ?React.Ref<NativeComponent<TextProps>>, <add> forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtual...
1
Python
Python
resolve line-too-long in feature_column
6fafb567af4e4d9f42974d0b6c55b18bc03e17eb
<ide><path>keras/feature_column/base_feature_layer.py <ide> def __init__( <ide> ): <ide> super().__init__(name=name, trainable=trainable, **kwargs) <ide> self._feature_columns = _normalize_feature_columns(feature_columns) <del> self._state_manager = tf.__internal__.feature_column.StateManager...
7
Go
Go
let utils.parsehost return err when errors happen
e81da876df57fb8e0562cc64e7b57dc7eb32284a
<ide><path>docker/docker.go <ide> func main() { <ide> flHosts = flHosts[1:] //trick to display a nice default value in the usage <ide> } <ide> for i, flHost := range flHosts { <del> flHosts[i] = utils.ParseHost(docker.DEFAULTHTTPHOST, docker.DEFAULTHTTPPORT, flHost) <add> host, err := utils.ParseHost(docker.DEFAU...
3
Ruby
Ruby
treat empty hash and array as nil
99ae95fda156bfedb94c503967c1ef622d30bd3f
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> def tag_options(options, escape = true) <ide> value.each_pair do |k, v| <ide> next if v.nil? <ide> <del> v = (v.is_a?(Array) || v.is_a?(Hash)) ? safe_join(TagHelper.build_tag_values(v), " ") : v.to_s <add> ...
2
Java
Java
update copyright header
75b18d7b7bf46a9cd8a5f9fb4c58adffec2a2cd4
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/ContentResultMatchers.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
1
Mixed
Ruby
extend date_select helper functionality
a48ef9b879a29cb54e01ad295224e056fb0966e1
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* `date_select` helper accepts :with_css_classes => true to add css classes similar with type <add> of generated select tags. *Pavel Nikitin* <add> <ide> * `assert_template` can be used to assert on the same template with differe...
3
Ruby
Ruby
allow dashes in github usernames
827d263d017c02637a2745ee155ee3e03725f9cd
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def link_tap_formula formulae <ide> private <ide> <ide> def tap_args <del> ARGV.first =~ %r{^(\w+)/(homebrew-)?(\w+)$} <add> ARGV.first =~ %r{^(\S+)/(homebrew-)?(\w+)$} <ide> raise "Invalid usage" unless $1 and $3 <ide> [$1, $3] <ide> end
1
Javascript
Javascript
drop transferpropsto usage in react core
225d76f77219dc9ae1d394893f31fde285961fbe
<ide><path>src/addons/transitions/ReactCSSTransitionGroup.js <ide> var React = require('React'); <ide> var ReactTransitionGroup = require('ReactTransitionGroup'); <ide> var ReactCSSTransitionGroupChild = require('ReactCSSTransitionGroupChild'); <ide> <add>var merge = require('merge'); <add> <ide> var ReactCSSTransitio...
4
Ruby
Ruby
fix some more warnings on 1.9
640ee5b68d1078fc164bd4e10c019f284ad9b760
<ide><path>activesupport/lib/active_support/core_ext/class/delegating_attributes.rb <ide> def superclass_delegating_accessor(name, options = {}) <ide> # inheritance behavior, without having to store the object in an instance <ide> # variable and look up the superclass chain manually. <ide> def _stash_object_in_me...
3
Python
Python
make custom_object_scope thread-local
8024bd3bd6da31adcbcfda28dacfc66f74e1fb20
<ide><path>keras/utils/generic_utils.py <ide> # If a layer does not have a defined config, then the returned config will be a <ide> # dictionary with the below key. <ide> _LAYER_UNDEFINED_CONFIG_KEY = "layer was saved without config" <add># Thread-local custom objects set by custom_object_scope. <add>_THREAD_LOCAL_CUST...
2
Ruby
Ruby
remove actionview tests which modify fixtures
d130ea2ff2f51dd1c53b2fb70305d71aad261c5d
<ide><path>actionview/test/template/compiled_templates_test.rb <ide> def test_template_gets_recompiled_when_using_different_keys_in_local_assigns <ide> assert_equal "two", render(template: "test/render_file_with_locals_and_default", locals: { secret: "two" }) <ide> end <ide> <del> def test_template_changes_are_...
1
Python
Python
fix incorrect shape in documentation
6f83089e9a308bea4fd5346cbfe9c55c1590a23c
<ide><path>numpy/linalg/linalg.py <ide> def lstsq(a, b, rcond="warn"): <ide> x : {(N,), (N, K)} ndarray <ide> Least-squares solution. If `b` is two-dimensional, <ide> the solutions are in the `K` columns of `x`. <del> residuals : {(), (1,), (K,)} ndarray <add> residuals : {(1,), (K,), (0,)} nd...
1
Ruby
Ruby
use string#each_line instead of #each
922c528d428b5ab08611976dfe0037875a4bf387
<ide><path>ci/ci_build.rb <ide> puts "[CruiseControl] #{`pg_config --version`}" <ide> puts "[CruiseControl] SQLite2: #{`sqlite -version`}" <ide> puts "[CruiseControl] SQLite3: #{`sqlite3 -version`}" <del>`gem env`.each {|line| print "[CruiseControl] #{line}"} <add>`gem env`.each_line {|line| print "[CruiseContr...
1
Go
Go
remove unused import
52d471684350c31578f67c6b120106aefd619381
<ide><path>profiles/seccomp/seccomp_unsupported.go <ide> package seccomp <ide> <ide> import ( <ide> "github.com/docker/docker/api/types" <del> "github.com/opencontainers/runtime-spec/specs-go" <ide> ) <ide> <ide> // DefaultProfile returns a nil pointer on unsupported systems.
1
PHP
PHP
fix incorrect field detection for habtm fields
c2c63d373c60e8daced862db1fccb9137bcdd7a5
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testSetEntityAssociatedCamelCaseFieldHabtmMultiple() { <ide> $this->assertEquals(array('Tag', 'Tag'), $this->Helper->entity()); <ide> } <ide> <add>/** <add> * Test that habtm associations can have property fields created. <add> * <add> * @retur...
3
Python
Python
use builtin when np.{x} is builtins.{x}
2b781f8967488dc007f8f0a1e6a7f49208788d12
<ide><path>benchmarks/benchmarks/bench_core.py <ide> def time_count_nonzero_multi_axis(self, numaxes, size, dtype): <ide> <ide> class PackBits(Benchmark): <ide> param_names = ['dtype'] <del> params = [[np.bool, np.uintp]] <add> params = [[bool, np.uintp]] <ide> def setup(self, dtype): <ide> self....
42
PHP
PHP
report closure observers instead of breaking
6baf6c0b15f4374a50bdc72b1911cdb2791a203a
<ide><path>src/Illuminate/Foundation/Console/ShowModelCommand.php <ide> protected function getObservers($model) <ide> $formatted = []; <ide> <ide> foreach($listeners as $key => $observerMethods) { <del> $formatted[] = ['event' => $extractVerb($key), 'observer' => $observerMethods]; <add> ...
1
Python
Python
convert activations, constraints, noise, embedding
4e519f7aa701dc435ce42ac5f6bcacf19f8efa09
<ide><path>keras/constraints.py <ide> def __init__(self, m=2): <ide> self.m = m <ide> <ide> def __call__(self, p): <del> norms = K.sqrt(K.sum(K.sqr(p), axis=0)) <add> norms = K.sqrt(K.sum(K.square(p), axis=0)) <ide> desired = K.clip(norms, 0, self.m) <ide> p = p * (desired / (...
4
Javascript
Javascript
fix typo in variable names
4e96334b5c2a18204cd82fa121e2290906277b39
<ide><path>src/ngSanitize/sanitize.js <ide> function htmlParser( html, handler ) { <ide> <ide> var attrs = {}; <ide> <del> rest.replace(ATTR_REGEXP, function(match, name, doubleQuotedValue, singleQoutedValue, unqoutedValue) { <add> rest.replace(ATTR_REGEXP, function(match, name, doubleQuotedValue, singleQuo...
1
Text
Text
update readme to test extension updating
d52527d3f276b09188136ce00275ff8f1dbc011d
<ide><path>README.md <ide> a "PDF Reference" from Adobe: <ide> <ide> Recommended chapters to read: "2. Overview", "3.4 File Structure", <ide> "4.1 Graphics Objects" that lists the PDF commands. <del>
1
PHP
PHP
fix failing tests
c7432af560e8d34456470feb02231f25fddc5c4d
<ide><path>lib/Cake/Test/TestCase/View/Helper/CacheHelperTest.php <ide> public function testAfterRenderConditions() { <ide> ->with('posts/index', 'content') <ide> ->will($this->returnValue('')); <ide> <del> $event = $this->getMock('Cake\Event\Event'); <add> $event = $this->getMock('Cake\Event\Event', [], ['Vie...
1
Ruby
Ruby
use databaseconfig objects in dbconsole
a843301a58ab9a3fbf947c1c8a4997b068eea8e5
<ide><path>railties/lib/rails/commands/dbconsole/dbconsole_command.rb <ide> def initialize(options = {}) <ide> def start <ide> ENV["RAILS_ENV"] ||= @options[:environment] || environment <ide> <del> case config[:adapter] <add> case db_config.adapter <ide> when /^(jdbc)?mysql/ <ide> arg...
2
PHP
PHP
add ipad to the list of mobile clients
dbea15650bd67a1ecd0714156456fd010f4cd105
<ide><path>lib/Cake/Network/CakeRequest.php <ide> class CakeRequest implements ArrayAccess { <ide> 'ajax' => array('env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest'), <ide> 'flash' => array('env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/'), <ide> 'mobile' => array('env' => 'HTTP_U...
1
Javascript
Javascript
replace fixturesdir with fixtures.path
9e551ef7391e964c63300f16a5eecf8ead70106c
<ide><path>test/parallel/test-regress-GH-1899.js <ide> 'use strict'; <del>const common = require('../common'); <del>const path = require('path'); <add>require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const spawn = require('child_process').spawn; <i...
1
PHP
PHP
fix issue with vendor imports being erased
68c81e280f04dba2ad87e2305ee976746aaa04a2
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> protected function _replaceUses($file) { <ide> 1, <ide> Shell::VERBOSE <ide> ); <del> return; <add> return $matches[0]; <ide> } else { <ide> $use = 'Cake\\' . str_replace('/', '\\', $matches[2]) . '\\' . $matches[1]; <ide> }
1
Ruby
Ruby
use a case insensitive uri regexp for #asset_path
8fc3427646e932c3a1fb9f9794364866f030595e
<ide><path>actionpack/lib/action_view/helpers/asset_url_helper.rb <ide> module Helpers <ide> # ) <ide> # <ide> module AssetUrlHelper <del> URI_REGEXP = %r{^[-a-z]+://|^(?:cid|data):|^//} <add> URI_REGEXP = %r{^[-a-z]+://|^(?:cid|data):|^//}i <ide> <ide> # Computes the path to asset in pub...
2
Python
Python
fix the ci
ac99217e92c43066af7ec96554054d75532565d7
<ide><path>tests/test_modeling_common.py <ide> def _prepare_for_class(self, inputs_dict, model_class): <ide> if model_class in MODEL_FOR_MULTIPLE_CHOICE_MAPPING.values(): <ide> return { <ide> k: v.unsqueeze(1).expand(-1, self.model_tester.num_choices, -1).contiguous() <add> ...
1
Text
Text
fix a small typo.
827d2503860d28df1a415b8294723f04bfd5e46c
<ide><path>research/README.md <ide> installation](https://www.tensorflow.org/install). <ide> for visual navigation. <ide> - [compression](compression): compressing and decompressing images using a <ide> pre-trained Residual GRU network. <del>- [deeplab](deeplab): deep labelling for semantic image segmentati...
1
Ruby
Ruby
update the filestore documentation for clear
b50bd49aa2d2d01ab05a58674557987386b13774
<ide><path>activesupport/lib/active_support/cache/file_store.rb <ide> def initialize(cache_path, options = nil) <ide> extend Strategy::LocalCache <ide> end <ide> <add> # Deletes all items from the cache. In this case it deletes all the entries in the specified <add> # file store directory exce...
1
Text
Text
update examples at headers documentation
790261682bb4b62c1504d79ecb14f38add2074c0
<ide><path>docs/api-reference/next.config.js/headers.md <ide> module.exports = { <ide> }, <ide> ], <ide> }, <del> ], <add> ] <ide> }, <ide> } <ide> ``` <ide> module.exports = { <ide> }, <ide> ], <ide> }, <del> ], <add> ] <ide> }, <ide> } <ide> ``` <ide> mo...
1
Python
Python
add tokenizer exception for "gonna" (fixes #691)
d8d50a0334740babf1891cae09dcfb19e27d324d
<ide><path>spacy/en/language_data.py <ide> def get_time_exc(hours): <ide> {ORTH: "ma"} <ide> ], <ide> <add> "gonna": [ <add> {ORTH: "gon", LEMMA: "go"}, <add> {ORTH: "na", LEMMA: "to"} <add> ], <add> <add> "Gonna": [ <add> {ORTH: "Gon", LEMMA: "go"}, <add> {ORTH: "na", ...
1
Python
Python
move dependecies list to hubconf
c8bd026ef6a1eb6f431d158e76cbdd8d5938ac39
<ide><path>hubconf.py <add>dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex', 'ftfy', 'spacy'] <add> <ide> from hubconfs.bert_hubconf import ( <ide> bertTokenizer, <ide> bertModel, <ide><path>hubconfs/bert_hubconf.py <ide> BertForTokenClassification, <ide> ) <ide> <del>dependencies ...
3
Ruby
Ruby
fix formatting of `primary_key` [ci skip]
ee708cf402ac9ad8bba4ad4808c01266433883a5
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb <ide> module ColumnMethods <ide> # t.timestamps <ide> # end <ide> # <del> # By default, this will use the +gen_random_uuid()+ function from the <add> # By default, this will use the...
1
PHP
PHP
add path for the database that we tried to load
246265839b40a595a56a491a23f9a88480a9f2eb
<ide><path>src/Illuminate/Database/Connectors/SQLiteConnector.php <ide> public function connect(array $config) <ide> // as the developer probably wants to know if the database exists and this <ide> // SQLite driver will not throw any exception if it does not by default. <ide> if ($path === false...
1
Go
Go
remove checksum field from image.image struct
3414307306dc1780f80c5ca5e9dd7a8822e27eec
<ide><path>graph/service.go <ide> func (s *TagStore) CmdLookup(job *engine.Job) engine.Status { <ide> out.Set("Os", image.OS) <ide> out.SetInt64("Size", image.Size) <ide> out.SetInt64("VirtualSize", image.GetParentsSize(0)+image.Size) <del> out.Set("Checksum", image.Checksum) <ide> if _, err = out.WriteTo(job....
2
Javascript
Javascript
fix minor typo
5fea3471e80e22db0bb79b67956a0143d31dace1
<ide><path>src/ng/sniffer.js <ide> function $SnifferProvider() { <ide> // http://code.google.com/p/android/issues/detail?id=17471 <ide> // https://github.com/angular/angular.js/issues/904 <ide> <del> // older webit browser (533.9) on Boxee box has exactly the same problem as Android has <add> // ...
1
PHP
PHP
reset distinctvalues after each check
6ea332b642f480faf3ea9931057506e2c7a5ba25
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function after($callback) <ide> public function passes() <ide> { <ide> $this->messages = new MessageBag; <add> $this->distinctValues = []; <ide> <ide> // We'll spin through each rule, validating the attributes attached to th...
2
Text
Text
add experimental instructions to release readme
3059ab3523d2462635afe4e53629b640b8ef9560
<ide><path>scripts/release/README.md <ide> The high level process of creating releases is [documented below](#process). Ind <ide> <ide> # Process <ide> <add>If this is your first time running the release scripts, go to the `scripts/release` directory and run `yarn` to install the dependencies. <add> <ide> ## Publishi...
1
Text
Text
fix typo in readme.md
d838b6c5507cc7a02d08d212ed62b9db8c9c83bc
<ide><path>README.md <del># [React Native](https://facebook.github.io/react-native/) &middot; [![Circle CI Status](https://circleci.com/gh/facebook/react-native.svg?style=shield)](https://circleci.com/gh/facebook/react-native) [![Build status](https://ci.appveyor.com/api/projects/status/github/facebook/react-native?br...
1
Javascript
Javascript
add a newline at the end of component.json
34ba8b6cb110f6869db89bc27f31065387895074
<ide><path>tasks/component.js <ide> module.exports = function (grunt) { <ide> config.files = grunt.file.expand('locale/*.js'); <ide> config.files.unshift('moment.js'); <ide> <del> grunt.file.write('component.json', JSON.stringify(config, true, 2)); <add> grunt.file.write('component.json',...
1
Javascript
Javascript
change var to let in string_decoder
f61882bce450fa4c1c626eb621eedb2596732440
<ide><path>lib/string_decoder.js <ide> function normalizeEncoding(enc) { <ide> } <ide> <ide> const encodingsMap = {}; <del>for (var i = 0; i < encodings.length; ++i) <add>for (let i = 0; i < encodings.length; ++i) <ide> encodingsMap[encodings[i]] = i; <ide> <ide> // StringDecoder provides an interface for efficient...
1
Javascript
Javascript
create `reactnativecomponent` abstract class
3f75ea8cdc537e189eb43158128a5a0295103211
<ide><path>src/renderers/native/ReactNativeComponent.js <add>/** <add> * Copyright (c) 2013-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional grant <add>...
4
Go
Go
remove unused helpers
a0c9089971b6c3cdc9ac1233f3c5e27a0a723214
<ide><path>pkg/testutil/helpers.go <ide> package testutil <ide> <ide> import ( <del> "strings" <del> "unicode" <del> <ide> "github.com/stretchr/testify/assert" <ide> "github.com/stretchr/testify/require" <ide> ) <ide> func ErrorContains(t require.TestingT, err error, expectedError string) { <ide> require.Error(t, e...
1
Java
Java
improve error handling in webutils.isvalidorigin()
40cbede7f36e4551189b2b0d60cc70aacec5f347
<ide><path>spring-web/src/main/java/org/springframework/web/util/WebUtils.java <ide> import javax.servlet.http.HttpServletResponse; <ide> import javax.servlet.http.HttpSession; <ide> <add>import org.apache.commons.logging.Log; <add>import org.apache.commons.logging.LogFactory; <add> <ide> import org.springframework.ht...
2
Text
Text
move dnlup to emeriti
84000f18bafa7904275a2f8180e939a552813412
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Gus Caplan** <<me@gus.host>> (they/them) <ide> * [dmabupt](https://github.com/dmabupt) - <ide> **Xu Meng** <<dmabupt@gmail.com>> (he/him) <del>* [dnlup](https://github.com/dnlup) <del> **Daniele Belardi** <<dwon.dnl...
1
Python
Python
add function for websocket uri creation
c60300a15d7f7fdf718452469c94a165f82046be
<ide><path>libcloud/container/drivers/lxd.py <ide> def __init__(self, key='', secret='', secure=False, <ide> self.connection.port = port <ide> self.version = self._get_api_version() <ide> <add> def build_operation_websocket_url(self, uuid, w_secret): <add> <add> uri = 'wss://%s:%s/%s/operatio...
1
Javascript
Javascript
update internalformat for webgl2.0
c1ff8fcbd2f1d9550239bfa0acc38da8d679fb61
<ide><path>src/renderers/webgl/WebGLTextures.js <ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, <ide> var image = cubeImage[ 0 ], <ide> isPowerOfTwoImage = isPowerOfTwo( image ), <ide> glFormat = utils.convert( texture.format ), <del> glType = utils.convert( text...
1
Python
Python
fix tf longformer
83eec97ec6ac1a021b997d704672610bc57260c2
<ide><path>src/transformers/models/longformer/modeling_tf_longformer.py <ide> def _compute_global_attention_mask(input_ids_shape, sep_token_indices, before_se <ide> True` else after `sep_token_id`. <ide> """ <ide> <del> assert sep_token_indices.shape[1] == 2, "`input_ids` should have two dimensions" <add> ...
1
Ruby
Ruby
add a method to generate a temp podspec
eebc829b23d87290603103595380a8069c8f7cef
<ide><path>scripts/react_native_pods.rb <ide> # This source code is licensed under the MIT license found in the <ide> # LICENSE file in the root directory of this source tree. <ide> <add>$CODEGEN_TEMP_DIR = 'build/generated' <add> <ide> def use_react_native! (options={}) <ide> # The prefix to react-native <ide> pr...
1
Python
Python
fix warning message in electraforcausallm
65f9653ed069076fd2b3bdcdfffecbd43c2d2a39
<ide><path>src/transformers/models/electra/modeling_electra.py <ide> def __init__(self, config): <ide> super().__init__(config) <ide> <ide> if not config.is_decoder: <del> logger.warning("If you want to use `ElectraLMHeadModel` as a standalone, add `is_decoder=True.`") <add> logge...
1
Text
Text
update the as changelog
d9fc52cc7bb626d46d84fcd0a226b33ddd3b8608
<ide><path>activesupport/CHANGELOG.md <add>* `ActiveSupport::Dependencies` no longer installs a `const_missing` hook. Before this, you could push to the autoload paths and have constants autoloaded. This feature, known as the `classic` autoloader, has been removed. <add> <add> *Xavier Noria* <add> <add>* Private...
1
PHP
PHP
add tests for behaviortask
0923322761f94dda27a8d8569d8fbdea1edd0ec8
<ide><path>tests/TestCase/Console/Command/Task/BehaviorTaskTest.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and li...
1
Go
Go
send truncated external responses to the client
b2603e895acf3ed0449a8db8434db9e8bcf0685d
<ide><path>libnetwork/resolver.go <ide> func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) { <ide> // read again <ide> resp, err = co.ReadMsg() <ide> if err != nil { <add> // Truncated DNS replies should be sent to the client so that the <add> // client can retry over TCP <add> if...
1
Javascript
Javascript
handle null completer graciously
92d4ed397bc9cd6591b245c8e4be3c28cf207c28
<ide><path>lib/readline.js <ide> function Interface(input, output, completer) { <ide> } <ide> EventEmitter.call(this); <ide> <add> completer = completer || function() { return []; }; <add> <add> if (typeof completer !== 'function') { <add> throw new TypeError("Argument 'completer' must be a function"); <add> ...
1
Python
Python
fix mypy at prims_algo_2
95862303a6527f4bf111e6f3f783fd66b7b426f3
<ide><path>graphs/minimum_spanning_tree_prims2.py <ide> """ <ide> <ide> from sys import maxsize <del>from typing import Dict, Optional, Tuple, Union <add>from typing import Generic, Optional, TypeVar <add> <add>T = TypeVar("T") <ide> <ide> <ide> def get_parent_position(position: int) -> int: <ide> def get_child_righ...
1
Text
Text
add #update_columns entry to ar changelog
bca66a3547ac166eccac3e8cfead3d93b3d0921b
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Added `#update_columns` method which updates the attributes from <add> the passed-in hash without calling save, hence skipping validations and <add> callbacks. `ActiveRecordError` will be raised when called on new objects <a...
1
Mixed
Javascript
add loop property
e92ce38cf1a770e5eaf3b2dbf485d90f9f7d90bf
<ide><path>docs/docs/ref-04-tags-and-attributes.md <ide> accept accessKey action allowFullScreen allowTransparency alt autoCapitalize <ide> autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked <ide> className colSpan content contentEditable contextMenu controls data dateTime <ide> dir disabled dragga...
2
Python
Python
fix deletion of dag with rescheduled tasks
078ff765dbde1a47a0f9bcbd605c711e96201f79
<ide><path>airflow/migrations/versions/4ebbffe0a39a_merge_heads.py <add># <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF lice...
4
Ruby
Ruby
adjust argv tests
e251e5e4ecd0e2c6ce10cc6ef9b6d9c28ff6390e
<ide><path>Library/Homebrew/test/test_ARGV.rb <ide> def reset <ide> class ARGVTests < Test::Unit::TestCase <ide> <ide> def test_ARGV <del> assert_raises(FormulaUnspecifiedError) { ARGV.formulae } <del> assert_raises(KegUnspecifiedError) { ARGV.kegs } <ide> assert ARGV.named.empty? <ide> <ide> (HOM...
1
Javascript
Javascript
remove more mentions of indexset
3d2ba75dc7d381b63347e44934457f1a36669300
<ide><path>packages/ember-runtime/lib/mixins/mutable_array.js <ide> Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable, <ide> <ide> /** <ide> Remove an object at the specified index using the replace() primitive <del> method. You can pass either a single index, a start and a length ...
2
Javascript
Javascript
fix broken ellipses
47ef34ec9dd5d2684348a25c35263ed8a18ccb0e
<ide><path>src/extras/core/Path.js <ide> THREE.Path.prototype.ellipse = function ( aX, aY, xRadius, yRadius, <ide> THREE.Path.prototype.absellipse = function ( aX, aY, xRadius, yRadius, <ide> aStartAngle, aEndAngle, aClockwise, aRotation ) { <ide> <del> var args = Array.prototype.slice.call( arguments ); <a...
2
Javascript
Javascript
add optionaltarget argument to color#gethsl()
4e36b7b64c86dd1457cf584b6b367dc2bb3d947f
<ide><path>src/math/Color.js <ide> THREE.Color.prototype = { <ide> <ide> }, <ide> <del> getHSL: function () { <add> getHSL: function ( optionalTarget ) { <ide> <ide> // h,s,l ranges are in 0.0 - 1.0 <ide> <add> var hsl = optionalTarget || { h: 0, s: 0, l: 0 }; <add> <ide> var r = this.r, g = this.g, b = this....
1
PHP
PHP
use sha256 consistently
07959ee08e8cabe0f1b8ac99d1ae9bf784441730
<ide><path>src/Auth/DigestAuthenticate.php <ide> protected function validNonce($nonce) <ide> if ($expires < microtime(true)) { <ide> return false; <ide> } <del> $check = hash_hmac('sha1', $expires . ':' . $this->getConfig('secret'), $this->getConfig('secret')); <add> $check = h...
2
Text
Text
translate the description in french
87c97f21ac72d78210b479809874b15cac4e2b6e
<ide><path>threejs/lessons/fr/threejs-textures.md <del>Title: Three.js Textures <del>Description: Using textures in three.js <add>Title: Les textures dans Three.js <add>Description: Comment utiliser les textures dans Three.js <ide> TOC: Textures <ide> <ide> Cet article fait partie d'une série consacrée à Three.js.
1
Mixed
Go
add logpath to docker inspect
06c01b02f5d8149407028324e751df5c0a92fd14
<ide><path>daemon/container.go <ide> type Container struct { <ide> ResolvConfPath string <ide> HostnamePath string <ide> HostsPath string <add> LogPath string <ide> Name string <ide> Driver string <ide> ExecDriver string <ide> func (container *Container) setupWorkingDirectory()...
6
Ruby
Ruby
use bintray package naming
e773d0c3b915edfc490c0c6f57f2f1cead88c64e
<ide><path>Library/Homebrew/cmd/pull.rb <ide> def pull <ide> bintray_key = ENV["BINTRAY_KEY"] <ide> <ide> if bintray_user && bintray_key <del> bintray_repo = Bintray.repository(tap_name) <add> repo = Bintray.repository(tap_name) <ide> changed_formulae.each do |f| <ide> ...
1
Javascript
Javascript
improve assert message
b6a87dbe13c85a3441ce63fd16d5e2bba085250b
<ide><path>test/parallel/test-cluster-worker-destroy.js <ide> if (cluster.isMaster) { <ide> }); <ide> <ide> const w = cluster.worker.disconnect(); <del> assert.strictEqual(w, cluster.worker, 'did not return a reference'); <add> assert.strictEqual(w, cluster.worker); <ide> } else { <ide> // Call des...
1
PHP
PHP
use settimeout() instead of writing a key twice
71829612d73ba94da343eeabce55d4c997a3e97d
<ide><path>src/Cache/Engine/RedisEngine.php <ide> public function add($key, $value) <ide> $value = serialize($value); <ide> } <ide> <del> // setnx() doesn't have an expiry option, so overwrite the key with one <add> // setnx() doesn't have an expiry option, so follow up with an expiry...
1