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 | use element.matches if available | 59db6aa4965981b1fcdbd7363fa55d2f61914002 | <ide><path>d3.js
<ide> return n.querySelector(s);
<ide> }, d3_selectAll = function(s, n) {
<ide> return n.querySelectorAll(s);
<del> }, d3_selectMatcher = d3_documentElement[d3_vendorSymbol(d3_documentElement, "matchesSelector")], d3_selectMatches = function(n, s) {
<add> }, d3_selectMatcher = d3_documentEl... | 1 |
PHP | PHP | call message method once only | a904322413bcf3abf2f8945192157e42714d50ce | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateUsingCustomRule($attribute, $value, $rule)
<ide> if (! $rule->passes($attribute, $value)) {
<ide> $this->failedRules[$attribute][get_class($rule)] = [];
<ide>
<del> $messages = $rule->message() ? (array) ... | 1 |
Java | Java | allow file locations for resource handling | 6b07c53c61ed1c2dcd6c74bd64db7477bdafa424 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java
<ide> else if (resource instanceof ServletContextResource) {
<ide> resourcePath = resource.getURL().getPath();
<ide> locationPath = StringUtils.cleanPath(location.getURL().getPath());
<ide> }
<del> locatio... | 2 |
Text | Text | add french translation | 1339849911c6cba989c80c0b594a478aa50d928e | <ide><path>threejs/lessons/fr/threejs-scenegraph.md
<add>Title: Graphe de scène Three.js
<add>Description: What's a scene graph?
<add>TOC: Scenegraph
<add>
<add>Cet article fait partie d'une série consacrée à Three.js.
<add>Le premier article s'intitule [Principes de base](threejs-fundamentals.html).
<add>Si vous ne l'... | 1 |
Ruby | Ruby | simplify callbacks to use less metaprogramming | 971e2438d98326c994ec6d3ef8e37b7e868ed6e2 | <ide><path>actionpack/lib/action_controller/abstract/callbacks.rb
<ide> def skip_filter(*names, &blk)
<ide> skip_around_filter(*names, &blk)
<ide> end
<ide>
<add> def _insert_callbacks(names, block)
<add> options = names.last.is_a?(Hash) ? names.pop : {}
<add> _normalize_callback_optio... | 6 |
Text | Text | add v3.21.0-beta.6 to changelog | 9ad9b7b2ff80e1100f6b278171412f4b558b111b | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.21.0-beta.6 (August 17, 2020)
<add>
<add>- [#19087](https://github.com/emberjs/ember.js/pull/19087) [BUGFIX] Generated initializer tests no longer causes a deprecation warning
<add>- [#19077](https://github.com/emberjs/ember.js/pull/19077) Simplify `get... | 1 |
Javascript | Javascript | add srcset attribute | ec8b0d7fbf6edc8f707af06cf3d0088702dff285 | <ide><path>src/browser/ui/dom/DefaultDOMPropertyConfig.js
<ide> var DefaultDOMPropertyConfig = {
<ide> spellCheck: null,
<ide> src: null,
<ide> srcDoc: MUST_USE_PROPERTY,
<add> srcSet: null,
<ide> step: null,
<ide> style: null,
<ide> tabIndex: null,
<ide> var DefaultDOMPropertyConfig = {
<ide... | 1 |
Text | Text | create model card | c34010551a8c99ad8046082c53f2d263e12762cf | <ide><path>model_cards/mrm8488/t5-base-finetuned-sarcasm-twitter/README.md
<add>--
<add>language: english
<add>---
<add>
<add># T5-base fine-tuned for Sarcasm Detection 🙄
<add>[Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) base fine-tuned on [ Twitter Sarcasm Dataset](https:/... | 1 |
Text | Text | make the redirect to slim notice more prominent | 8fc75a8e2c2a16370479335f439e3cd301e221b0 | <ide><path>research/inception/README.md
<del>**NOTE**: For the most part, you will find a newer version of this code at [models/research/slim](https://github.com/tensorflow/models/tree/master/research/slim). In particular:
<add>**NOTE: For the most part, you will find a newer version of this code at [models/research/sl... | 1 |
Go | Go | fix incorrect error type | bc4edbbe712a2d0fb839747814933916177daa74 | <ide><path>integration/https_test.go
<ide> func TestHttpsInfoRogueServerCert(t *testing.T) {
<ide> }
<ide>
<ide> if !strings.Contains(err.Error(), errCaUnknown) {
<del> t.Fatalf("Expected error: %s, got instead: %s", errBadCertificate, err)
<add> t.Fatalf("Expected error: %s, got instead: %s", errCaUnknown, er... | 1 |
Python | Python | fix meta.json validation | 62eec33bc43150636b9c1a8be561cb9fb4f58425 | <ide><path>spacy/schemas.py
<ide> class ModelMetaSchema(BaseModel):
<ide> url: StrictStr = Field("", title="Model author URL")
<ide> sources: Optional[Union[List[StrictStr], List[Dict[str, str]]]] = Field(None, title="Training data sources")
<ide> vectors: Dict[str, Any] = Field({}, title="Included word vec... | 1 |
Javascript | Javascript | remove useless parentheses and spaces | 3f319eb76ea2b631c7fe329796dc5d3663af4457 | <ide><path>examples/todos/src/containers/VisibleTodoList.js
<ide> const mapStateToProps = (state) => ({
<ide> todos: getVisibleTodos(state.todos, state.visibilityFilter)
<ide> })
<ide>
<del>const mapDispatchToProps = ({
<add>const mapDispatchToProps = {
<ide> onTodoClick: toggleTodo
<del>})
<add>}
<ide>
<ide> co... | 1 |
Text | Text | improve path.posix.normalize docs | cbd6fde9a38687491452e01927da0c69d2c37564 | <ide><path>doc/api/path.md
<ide> The `path.normalize()` method normalizes the given `path`, resolving `'..'` and
<ide> `'.'` segments.
<ide>
<ide> When multiple, sequential path segment separation characters are found (e.g.
<del>`/` on POSIX and `\` on Windows), they are replaced by a single instance of the
<del>platf... | 1 |
Ruby | Ruby | codify the token rules | 4a24908fe4e54c8a3c44a44d8190ccf6e0d2cd23 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def run!
<ide> check_sha256
<ide> check_url
<ide> check_generic_artifacts
<add> check_token_valid
<add> check_token_bad_words
<ide> check_token_conflicts
<ide> check_download
<ide> check_https_availability
<ide> def check_toke... | 2 |
Python | Python | fix mixed precision issue in tf distilbert | a75e31981915cbd072be7c4050a4b58c63ca6d33 | <ide><path>src/transformers/modeling_tf_distilbert.py
<ide> def gelu(x):
<ide> 0.5 * x * (1 + torch.tanh(math.sqrt(2 / math.pi) * (x + 0.044715 * torch.pow(x, 3))))
<ide> Also see https://arxiv.org/abs/1606.08415
<ide> """
<del> cdf = 0.5 * (1.0 + tf.math.erf(x / tf.math.sqrt(2.0)))
<add> cdf ... | 1 |
Java | Java | resolve cglib core<->transform package cycle | 4bb2e2323994791d23649ac9de4faf9b306498a2 | <ide><path>spring-core/src/main/java/org/springframework/cglib/core/ClassEmitter.java
<ide> */
<ide> package org.springframework.cglib.core;
<ide>
<del>import org.springframework.cglib.transform.ClassTransformer;
<del>
<ide> import org.springframework.asm.ClassVisitor;
<ide> import org.springframework.asm.FieldVisito... | 14 |
Javascript | Javascript | handle async href on url change in <=ie9 | 404b95fe30a1bcd1313adafbd0018578d5b21d3d | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide>
<ide> function fireUrlChange() {
<ide> newLocation = null;
<add> checkUrlChange();
<add> }
<add>
<add> function checkUrlChange() {
<ide> if (lastBrowserUrl == self.url()) return;
<ide>
<ide> lastBrowserUrl... | 2 |
Ruby | Ruby | convert `plist` test to spec | fe0b68a5ad76bc3a91518f54a97bdd7a9144eda5 | <ide><path>Library/Homebrew/cask/spec/plist/parser_spec.rb
<add>require "spec_helper"
<add>
<add>describe Plist do
<add> subject { described_class.parse_xml(input) }
<add>
<add> describe "::parse_xml" do
<add> context "given a hdiutil output as input" do
<add> let(:input) {
<add> <<-EOS.undent
<add> ... | 2 |
Go | Go | remove push by id | db2d875b5e621378baf690d261969712fbfffcfd | <ide><path>graph/push.go
<ide> func (s *TagStore) CmdPush(job *engine.Job) engine.Status {
<ide> return job.Error(err)
<ide> }
<ide>
<del> img, err := s.graph.Get(repoInfo.LocalName)
<del> r, err2 := registry.NewSession(authConfig, registry.HTTPRequestFactory(metaHeaders), endpoint, false)
<del> if err2 != nil {
<d... | 1 |
Javascript | Javascript | remove unused import | f91bff6264a0b07174a3c77e8c68500c84a27860 | <ide><path>scripts/release-manager/commands/stable-prs.js
<ide> 'use strict';
<ide>
<ide> const chalk = require('chalk');
<del>const promisify = require('es6-promisify');
<ide> const pify = require('pify');
<ide>
<ide> const git = require('./utils/git'); | 1 |
Ruby | Ruby | use explicit delegations | 26d3e325cb85884504564b8af07dd083fc47d2a8 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> module Associations
<ide> # is computed directly through SQL and does not trigger by itself the
<ide> # instantiation of the actual post records.
<ide> class CollectionProxy < Relation
<del> delegate :target, :load_target,... | 1 |
Ruby | Ruby | change time.zone= docs | 3a29bfae2cbb956e469942ed1d4ea8c702085a1a | <ide><path>activesupport/lib/active_support/core_ext/time/zones.rb
<ide> def zone
<ide> # * A TZInfo::Timezone object.
<ide> # * An identifier for a TZInfo::Timezone object (e.g., "America/New_York").
<ide> #
<del> # Here's an example of how you might set <tt>Time.zone</tt> on a per request basis -- <tt>... | 1 |
Go | Go | construct used device id map from device hash map | 6b8b4feaa165af630dd33423f0538a0b987703ae | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) lookupDeviceWithLock(hash string) (*devInfo, error) {
<ide> return info, err
<ide> }
<ide>
<add>// This function relies on that device hash map has been loaded in advance.
<add>// Should be called with devices.Lock() held.
<add>func ... | 1 |
Ruby | Ruby | fix failing request test | 4e7d94ea2ca9f368ab929d0bcbd7565f80659ad6 | <ide><path>actionpack/test/dispatch/request_test.rb
<ide> def url_for(options = {})
<ide> 'HTTP_X_FORWARDED_FOR' => '3.4.5.6'
<ide> assert_equal '3.4.5.6', request.remote_ip
<ide>
<del> request = stub_request 'HTTP_X_FORWARDED_FOR' => '9.9.9.9, 3.4.5.6, 10.0.0.1, 67.205.106.73'
<add> ... | 1 |
Text | Text | add hotfix help | 751c7e0f003e27d7c862ff91ca85f300bfcbf2cc | <ide><path>hack/RELEASE-CHECKLIST.md
<ide> git fetch origin
<ide> git branch -D release || true
<ide> git checkout --track origin/release
<ide> git checkout -b bump_$VERSION
<add>```
<add>
<add>If it's a regular release, we usually merge master
<add>```bash
<ide> git merge origin/master
<ide> ```
<add>Otherwise, if it ... | 1 |
Python | Python | remove deprecated applications adapter code | 2d2fb47e321faa032c98e92d34e6215b6026f1f0 | <ide><path>keras/applications/__init__.py
<ide>
<ide> import keras_applications
<ide>
<del>if not hasattr(keras_applications, 'get_submodules_from_kwargs'):
<del> keras_applications.set_keras_submodules(
<del> backend=backend,
<del> layers=layers,
<del> models=models,
<del> utils=utils)... | 1 |
Go | Go | fix output in the login command | 9740102990b059d014fad5f8652306cf7ff62d94 | <ide><path>commands.go
<ide> import (
<ide> "sync"
<ide> "text/tabwriter"
<ide> "time"
<add> "unicode"
<ide> )
<ide>
<ide> const VERSION = "0.1.0"
<ide> func (srv *Server) Help() string {
<ide>
<ide> // 'docker login': login / register a user to registry service.
<ide> func (srv *Server) CmdLogin(stdin io.ReadClos... | 1 |
PHP | PHP | update doc block | 5394b1d537dfbee9e374f164d279389b0fe68f51 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function method_field($method)
<ide> * @param string $path
<ide> * @return \Illuminate\Support\HtmlString
<ide> *
<del> * @throws \InvalidArgumentException
<add> * @throws \Exception
<ide> */
<ide> function mix($path)
<ide> { | 1 |
Text | Text | remove unused import from docs example | b7438184308aac6a5c208a16e11bdeca12b4ae52 | <ide><path>docs/tutorial/2-requests-and-responses.md
<ide> and
<ide>
<ide> Now update the `urls.py` file slightly, to append a set of `format_suffix_patterns` in addition to the existing URLs.
<ide>
<del> from django.conf.urls import patterns, url
<add> from django.conf.urls import url
<ide> from rest_frame... | 1 |
Python | Python | set version to v2.1.0a7.dev1 | 2ef227c313a4fe6c2dbd2e2c1728d299be02c93f | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7.dev9"
<add>__version__ = "2.1.0a7.dev10"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Python | Python | add failing test for mismatch of key type | e6e0de242ba6f22e0bc3792db4dc64d6b6053d16 | <ide><path>numpy/lib/tests/test_recfunctions.py
<ide> import numpy.ma as ma
<ide> from numpy.ma.mrecords import MaskedRecords
<ide> from numpy.ma.testutils import assert_equal
<del>from numpy.testing import TestCase, run_module_suite, assert_, assert_raises
<add>from numpy.testing import (
<add> TestCase, run_module... | 1 |
Javascript | Javascript | fix typos on react-devtools comments | 206d61f72214e8ae5b935f0bf8628491cb7f0797 | <ide><path>packages/react-devtools-shared/src/backend/console.js
<ide> export function dangerous_setTargetConsoleForTesting(
<ide>
<ide> // v16 renderers should use this method to inject internals necessary to generate a component stack.
<ide> // These internals will be used if the console is patched.
<del>// Injectin... | 5 |
PHP | PHP | remove cachehelper and related features | 38efb0790f6cb5aa3000a52376042534c4871a51 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListener {
<ide> */
<ide> protected $_validViewOptions = [
<ide> 'viewVars', 'autoLayout', 'helpers', 'view', 'layout', 'name', 'theme', 'layoutPath',
<del> 'viewPath', 'plugin', 'passedArgs', 'cacheAction'
<add> 'viewPath', 'plugin',... | 8 |
Text | Text | update pr template to highlight lts mode | f76802369851296a635f48a0df24dec975ac152c | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<add># AngularJS is in LTS mode
<add>We are no longer accepting changes that are not critical bug fixes into this project.
<add>See https://blog.angular.io/stable-angularjs-and-long-term-support-7e077635ee9c for more detail.
<add>
<ide> <!-- General PR submission guidelines h... | 1 |
Python | Python | fix newline in file | a2bf4cc7bff9508a6bbc3d97aeffaf815f50b662 | <ide><path>spacy/lang/th/__init__.py
<ide> from ...attrs import LANG, NORM
<ide> from ...util import update_exc, add_lookups
<ide>
<del>
<ide> class ThaiDefaults(Language.Defaults):
<ide> lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
<ide> lex_attr_getters[LANG] = lambda text: 'th' | 1 |
Javascript | Javascript | make favicon work | 9b3d9f4255feb937e9d20cb5fb3522568fc69abf | <ide><path>packages/create-next-app/templates/default/pages/index.js
<ide> const Home = () => (
<ide> <div>
<ide> <Head>
<ide> <title>Home</title>
<add> <link rel='icon' href='/static/favicon.ico' />
<ide> </Head>
<ide>
<ide> <Nav /> | 1 |
Go | Go | improve godoc for seccomp fields | b309e96b11f221f9754d2842967ed24c0ae9a00b | <ide><path>profiles/seccomp/seccomp.go
<ide> type Seccomp struct {
<ide>
<ide> // Architectures is kept to maintain backward compatibility with the old
<ide> // seccomp profile.
<del> Architectures []specs.Arch `json:"architectures,omitempty"`
<del> ArchMap []Architecture `json:"archMap,omitempty"`
<del> Sys... | 1 |
Text | Text | fix spanish grammar errors | dfb0edccb513aa41536d27c4926e557a7089d695 | <ide><path>guide/spanish/vim/useful-commands/index.md
<ide> localeTitle: Comandos útiles
<ide> ---
<ide> # Comandos útiles
<ide>
<del>## Funcionalidad basica
<add>## Funcionalidad básica
<ide>
<ide> Lo más probable es que te encuentres en el modo "normal", te permite ingresar comandos presionando la tecla de dos punt... | 1 |
Mixed | Javascript | allow registering scale with single parameter | 3c1e04f928f74356d81c12c2034b2bcfde4472ba | <ide><path>docs/developers/axes.md
<ide> Axes in Chart.js can be individually extended. Axes should always derive from `C
<ide> let MyScale = Chart.Scale.extend({
<ide> /* extensions ... */
<ide> });
<add>MyScale.id = 'myScale';
<add>MyScale.defaults = defaultConfigObject;
<ide>
<ide> // MyScale is now derived fro... | 12 |
PHP | PHP | remove debug statement | 490bbf836d36c2e42112b32d9394c4dc5ba9335b | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testRadioDisabled() {
<ide> 'separator' => '--separator--',
<ide> 'between' => array('--between first--', '--between second--')
<ide> ));
<del> //die(debug($result, null, false));
<add>
<ide> $expected = array(
<ide> 'div' ... | 1 |
Ruby | Ruby | call local_cache 1 time instead of 3 times | 2c42404330a3e7a1648a01e072035c2bee9cc118 | <ide><path>activesupport/lib/active_support/cache/strategy/local_cache.rb
<ide> def decrement(name, amount = 1, options = nil) # :nodoc:
<ide>
<ide> protected
<ide> def read_entry(key, options) # :nodoc:
<del> if local_cache
<del> local_cache.fetch(key) do
<add> if ... | 1 |
Python | Python | fix message in prepare_provider_packages.py | a7b1f62d9c9227e09c8a861febbb976b06c293da | <ide><path>dev/provider_packages/prepare_provider_packages.py
<ide> def summarise_total_vs_bad_and_warnings(total: int, bad: int, warns: List[warnin
<ide> console.print(f"[red]ERROR! There were {len(warns)} warnings generated during the import[/]")
<ide> console.print()
<ide> console.print("[yel... | 1 |
PHP | PHP | remove mock that wasn't necessary | 55b5291c22a3cec2afc92947e0d21f981c4fda43 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testAddContextProviderInvalid()
<ide> public function contextSelectionProvider()
<ide> {
<ide> $entity = new Article();
<del> $collection = $this->getMockBuilder('Cake\Collection\Collection')
<del> ->setMeth... | 1 |
Go | Go | move job register into servapi | e743021193e589b1358d0eef0521e9d8878dd66d | <ide><path>api/api.go
<ide> type HttpApiFunc func(eng *engine.Engine, version float64, w http.ResponseWriter
<ide>
<ide> func init() {
<ide> engine.Register("serveapi", ServeApi)
<del> engine.Register("acceptconnections", AcceptConnections)
<ide> }
<ide>
<ide> func hijackServer(w http.ResponseWriter) (io.ReadCloser,... | 1 |
Go | Go | provide tmpdir for applylayer | 330171e1d9ec537d7f691fd63c697a0540589053 | <ide><path>pkg/chrootarchive/diff.go
<ide> package chrootarchive
<ide> import (
<ide> "flag"
<ide> "fmt"
<add> "io/ioutil"
<ide> "os"
<ide> "runtime"
<ide> "syscall"
<ide> func applyLayer() {
<ide> if err := syscall.Chdir("/"); err != nil {
<ide> fatal(err)
<ide> }
<add> tmpDir, err := ioutil.TempDir("/", "tem... | 1 |
Python | Python | update typing tests for json | 60b845ebabeb77e401186f4b83de21d3f9c6a9d7 | <ide><path>src/flask/typing.py
<ide>
<ide> # The possible types that are directly convertible or are a Response object.
<ide> ResponseValue = t.Union[
<del> "Response", str, bytes, list, t.Dict[str, t.Any], t.Iterator[str], t.Iterator[bytes]
<add> "Response",
<add> str,
<add> bytes,
<add> t.List[t.Any],... | 2 |
PHP | PHP | apply fixes from styleci | be79e7625c55526db900f4e2105ac5d15a6b4633 | <ide><path>src/Illuminate/Session/Middleware/StartSession.php
<ide> use Illuminate\Support\Facades\Date;
<ide> use Illuminate\Session\SessionManager;
<ide> use Illuminate\Contracts\Session\Session;
<del>use Illuminate\Session\CookieSessionHandler;
<ide> use Symfony\Component\HttpFoundation\Cookie;
<ide> use Symfony\Com... | 1 |
Text | Text | replace anonymous function with arrow function | 6e4502c635d1e8b3fea514c2eac54a7d75780e6e | <ide><path>doc/guides/writing-tests.md
<ide> process.on('exit', function() {
<ide> assert.equal(response, 1, 'http request "response" callback was not called');
<ide> });
<ide>
<del>const server = http.createServer(function(req, res) {
<add>const server = http.createServer((req, res) => {
<ide> request++;
<ide> ... | 1 |
Javascript | Javascript | add test case | 97eaed1360c13defabc8ae6bcb07e7a6e3a8ccc1 | <ide><path>test/configCases/externals/externals-in-commons-chunk/index.js
<add>it("should not move externals into the commons chunk", function() {
<add> require("should");
<add> var fs = require("fs");
<add> var source1 = fs.readFileSync(__dirname + "/main.js", "utf-8");
<add> var source2 = fs.readFileSync(__dirname + ... | 4 |
Text | Text | add changes for 1.7.0-rc.0 | b85c70a9584a636b31fba0d5d3c8136fbf73a125 | <ide><path>CHANGELOG.md
<add><a name="1.7.0-rc.0"></a>
<add># 1.7.0-rc.0 maximum-overdrive (2018-04-19)
<add>
<add>## Bug Fixes
<add>- **input:**
<add> - listen on "change" instead of "click" for radio/checkbox ngModels
<add> ([656c8f](https://github.com/angular/angular.js/commit/656c8fa8f23b1277cc5c214c4d0237f3393af... | 1 |
Text | Text | fix typos in pr template | ff8c57b81e458f460af22ca16679f747b783215c | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> remember to adjust the documentation.
<ide>
<ide> Feel free to ping committers for the review!
<ide>
<del>In case of existing issue, reference it using one of the following:
<add>In case of an existing issue, reference it using one of the following:
<ide>
<ide> close... | 1 |
Ruby | Ruby | move layouts to av | c48ce6e73d1f0765902779adab3242b5f4a893c6 | <ide><path>actionpack/lib/abstract_controller.rb
<ide> module AbstractController
<ide> autoload :Callbacks
<ide> autoload :Collector
<ide> autoload :Helpers
<del> autoload :Layouts
<ide> autoload :Logger
<ide> autoload :Translation
<ide> autoload :AssetPaths
<ide><path>actionpack/lib/action_controller/base... | 5 |
Javascript | Javascript | handle errors of react lifecycle methods (#661) | 8570d19af69e5ecfc4f0d4e8b2af937efbc860b7 | <ide><path>client/next-dev.js
<ide> import 'react-hot-loader/patch'
<del>import * as next from './next'
<add>import patch from './patch-react'
<ide>
<add>// apply patch first
<add>patch((err) => {
<add> console.error(err)
<add> next.renderError(err)
<add>})
<add>
<add>const next = require('./next')
<ide> window.next... | 4 |
Javascript | Javascript | fix incorrect method name in code comment | 1e54c6491a4c900822854127ae9a4166ca8e37c1 | <ide><path>packages/ember-handlebars/lib/controls/text_support.js
<ide> Ember.TextSupport = Ember.Mixin.create({
<ide> Called by the `Ember.TextSupport` mixin on keyUp if keycode matches 13.
<ide> Uses sendAction to send the `enter` action to the controller.
<ide>
<del> @method insertNewLine
<add> @metho... | 1 |
Python | Python | set port id | 97ee8592b7186f4cde1140d16e9d4255ac753147 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_attach_floating_ip_to_node(self, node, ip):
<ide> resp = self.network_connection.request(
<ide> "/v2.0/floatingips/%s" % ip.id,
<ide> method="PUT",
<del> data={"floatingip": {"port_id": ports[0]}},
<... | 1 |
Ruby | Ruby | add caveats to avoid scaring people | 1c176348caf6f6d220a1f877433a3ea581ab3030 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def doctor
<ide> methods.each do |method|
<ide> out = checks.send(method)
<ide> unless out.nil? or out.empty?
<add> if first_warning
<add> puts <<-EOS.undent
<add> #{Tty.white}Please note that these warnings are just used to help... | 1 |
Mixed | Ruby | fix migrations with enable_extension | 40708c3670df44659235aade62f31c6c2a9af223 | <ide><path>activerecord/CHANGELOG.md
<add>* Fix bug that added `table_name_prefix` and `table_name_suffix` to
<add> extension names in PostgreSQL when migrating.
<add>
<add> *Joao Carlos*
<add>
<ide> * Usage of `implicit_readonly` is being removed`. Please use `readonly` method
<ide> explicitly to mark re... | 3 |
Mixed | Javascript | use a shared symbol for util.inspect.custom | dadd6e16888baac8fd110432b81f3fd1237be3e1 | <ide><path>doc/api/util.md
<ide> terminals.
<ide>
<ide> <!-- type=misc -->
<ide>
<del>Objects may also define their own `[util.inspect.custom](depth, opts)` function
<del>that `util.inspect()` will invoke and use the result of when inspecting the
<del>object:
<add>Objects may also define their own
<add>[`[util.inspec... | 5 |
Javascript | Javascript | add extra tests for basename with ext option | cc506f33ab80d4b1c71c03d4511384ed2d4daf0f | <ide><path>test/parallel/test-path-basename.js
<ide> const path = require('path');
<ide> assert.strictEqual(path.basename(__filename), 'test-path-basename.js');
<ide> assert.strictEqual(path.basename(__filename, '.js'), 'test-path-basename');
<ide> assert.strictEqual(path.basename('.js', '.js'), '');
<add>assert.strict... | 1 |
Java | Java | fix regression with raw responseentity type | c5e360d886931f761c2be5ff4b31d5df2042d415 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java
<ide> protected <T> void writeWithMessageConverters(T returnValue, MethodParameter ret
<ide> throws IOException, HttpMediaTypeNotAcceptableException {
<ide>
<ide> Class<?> retu... | 4 |
PHP | PHP | add tests for data_get with null values | aceef36ebcc2e1e3bd9f10f628cf0f8ce4537d26 | <ide><path>tests/Support/SupportHelpersTest.php
<ide> public function testDataGet()
<ide> {
<ide> $object = (object) ['users' => ['name' => ['Taylor', 'Otwell']]];
<ide> $array = [(object) ['users' => [(object) ['name' => 'Taylor']]]];
<del> $dottedArray = ['users' => ['first.name' => 'Taylor... | 1 |
Text | Text | add purpose section | cff232a8a2b34922ffc35908fa0d36bfa92582ef | <ide><path>README.md
<ide> piece of cake. Best of all?? It makes development fun!
<ide> * Developer Guide: http://docs.angularjs.org/guide
<ide> * Contribution guidelines: [CONTRIBUTING.md](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md)
<ide> * Dashboard: http://dashboard.angularjs.org
<del>
<add>
... | 1 |
Go | Go | change placement of readonly filesystem | 2c58a1e2886433a4266615b1f492f829e7a6f53f | <ide><path>pkg/libcontainer/nsinit/mount.go
<ide> func setupNewMountNamespace(rootfs string, bindMounts []libcontainer.Mount, cons
<ide> if err := system.Mount(rootfs, rootfs, "bind", syscall.MS_BIND|syscall.MS_REC, ""); err != nil {
<ide> return fmt.Errorf("mouting %s as bind %s", rootfs, err)
<ide> }
<del> if rea... | 1 |
Ruby | Ruby | autosave => false on an association | 580ec0dccde075330abe68eb13badb03b225f9b4 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def association_instance_set(name, association)
<ide> # You can manipulate objects and associations before they are saved to the database, but there is some special behavior you should be
<ide> # aware of, mostly involving the saving of associated ... | 1 |
Text | Text | remove "related issues" from pull request template | 576a1b547b19d9c6d9244eb1a7ac8f81c24ed3d2 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> Bug fixes and new features should include tests and possibly benchmarks.
<ide> Contributors guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
<ide> -->
<ide>
<del>#### Related Issues
<del>
<del>Fixes: https://github.com/nodejs/node/issues/<issue_number>... | 1 |
Ruby | Ruby | fix constant redefined warning | 6be0b57a8237b113a27a5243bef9a5469f4cb031 | <ide><path>Library/Homebrew/formulary.rb
<ide> def self.load_formula(name, path, contents, namespace, flags:)
<ide> require "formula"
<ide>
<ide> mod = Module.new
<add> remove_const(namespace) if const_defined?(namespace)
<ide> const_set(namespace, mod)
<ide>
<ide> begin | 1 |
PHP | PHP | remove extra import | 8c9a043bae8c806db94d2716b19baaec3de408c3 | <ide><path>src/I18n/DateFormatTrait.php
<ide> */
<ide> namespace Cake\I18n;
<ide>
<del>use Cake\I18n\RelativeTimeFormatter;
<ide> use DateTime;
<ide> use IntlDateFormatter;
<ide> | 1 |
Javascript | Javascript | fix merge error of prs | afd889a73504887860aa20d9cb6281a954259e23 | <ide><path>test/watchCases/scope-hoisting/caching-inner-source/0/index.js
<ide> it("should not crash when scope-hoisted modules change", function() {
<del> require("./module").default.should.be.eql(WATCH_STEP);
<del>})
<add> expect(require("./module").default).toBe(WATCH_STEP);
<add>}); | 1 |
Text | Text | update docs to use correct import statement | d20918319a8bf546ca94862151ddd88c7347d93f | <ide><path>docs/Troubleshooting.md
<ide> To revert the `User Search Header Paths` and `Header Search Paths` build setting
<ide>
<ide> ### No transports available
<ide>
<del>React Native implements a polyfill for WebSockets. These [polyfills](https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptApp... | 1 |
PHP | PHP | use correct link to doc page | 198c49a1dbda25bd725d3f7499dc71da20b30bb7 | <ide><path>src/Console/Shell.php
<ide> class Shell
<ide> * Contains tasks to load and instantiate
<ide> *
<ide> * @var array|bool
<del> * @link https://book.cakephp.org/4/en/console-and-shells.html#Shell::$tasks
<add> * @link https://book.cakephp.org/4/en/console-commands/shells.html#shell-tasks
... | 1 |
Python | Python | avoid obscure error on certain non-image textures | 1ce8842c75806521a811a3f2eafcc59ad0453fb2 | <ide><path>utils/exporters/blender/addons/io_three/exporter/api/material.py
<ide> def _valid_textures(material, strict_use=True):
<ide> in_use = texture.use
<ide> else:
<ide> in_use = True
<del> if texture.texture.type != IMAGE or not in_use:
<add> if not in_use:
<add> ... | 1 |
Text | Text | fix linting errors | 12c0fd4c9a0946dc821029738b80fd1998064125 | <ide><path>doc/api/errors.md
<ide> not capture any frames.
<ide> * {string}
<ide>
<ide> The `error.code` property is a string label that identifies the kind of error.
<del>`error.code` is the most stable way to identify an error. It will only change between major versions of Node.js. In contrast, `error.message` strin... | 1 |
Text | Text | add some corrections to the translation | 3794484e0b7debb1269794128551dd988dd68a88 | <ide><path>guide/russian/working-in-tech/dunning-kruger-effect/index.md
<ide> ---
<ide> title: Dunning Kruger Effect
<del>localeTitle: Эффект Дуннинга Крюгера
<del>---
<ide>## Эффект Дуннинга Крюгера (DK)
<del>
<del>### Определение Википедии
<del>
<del>В области психологии эффект **Дуннинга-Крюгера** является когнитивн... | 1 |
Text | Text | remove paragraphs with bad links | 742a21345dd4df066351563ed2ad6c546f45202a | <ide><path>curriculum/challenges/english/08-coding-interview-prep/take-home-projects/build-a-nightlife-coordination-app.english.md
<ide> forumTopicId: 302351
<ide> ## Description
<ide> <section id='description'>
<ide> <strong>Objective:</strong> Build a full stack JavaScript app that is functionally similar to this: <a... | 4 |
PHP | PHP | fix use of removed property | 50e421c19fb77f2831adc77d90ce04e3b0e74dc6 | <ide><path>src/View/Helper.php
<ide> public function __get($name)
<ide> public function __set($name, $value)
<ide> {
<ide> $removed = [
<del> 'template' => 'setTemplate',
<add> 'theme' => 'setTheme',
<ide> 'plugin' => 'setPlugin',
<ide> ];
<ide> if (isse... | 4 |
Python | Python | reduce memory usage of fft test | edb67b65cfc2143381fbcfae6569772cf37c2e3d | <ide><path>numpy/fft/tests/test_fftpack.py
<ide> def test_basic(self):
<ide>
<ide> class TestFFTThreadSafe(TestCase):
<ide> threads = 16
<del> input_shape = (1000, 1000)
<add> input_shape = (800, 200)
<ide>
<ide> def _test_mtsame(self, func, *args):
<ide> def worker(args, q):
<ide> def worker(ar... | 1 |
Python | Python | fix mypy errors in google cloud (again) | da88ed1943e85850fcdf32c663ec2940c65dbe75 | <ide><path>airflow/providers/google/cloud/example_dags/example_datacatalog.py
<ide> from datetime import datetime
<ide>
<ide> from google.cloud.datacatalog_v1beta1 import FieldType, TagField, TagTemplateField
<add>from google.protobuf.field_mask_pb2 import FieldMask
<ide>
<ide> from airflow import models
<ide> from a... | 15 |
Python | Python | make debugfileskeyerror.__str__ return str on 3.x | 4bea6bbe6d2200dfdbcca3dfc2fe561488c82a8e | <ide><path>flask/debughelpers.py
<ide> :copyright: (c) 2011 by Armin Ronacher.
<ide> :license: BSD, see LICENSE for more details.
<ide> """
<add>from flask._compat import implements_to_string
<ide>
<ide>
<ide> class UnexpectedUnicodeError(AssertionError, UnicodeError):
<ide> class UnexpectedUnicodeError(Asser... | 1 |
PHP | PHP | update error message | 9d60a2785fcad3ea32acee59b341073f25e9ced1 | <ide><path>lib/Cake/Cache/Cache.php
<ide> class Cache {
<ide> */
<ide> public static function config($name = null, $settings = array()) {
<ide> trigger_error(
<del> __d('cake_dev', 'You must use Configure::write() to define cache configuration now.'),
<add> __d('cake_dev', 'You must use Configure::write() to de... | 1 |
Javascript | Javascript | improve graph view refresh | c3dd89c61bea72987a57e2c4ea7c4f5daee01a07 | <ide><path>airflow/www/static/js/graph.js
<ide> function setFocusMap(state) {
<ide>
<ide> const stateIsSet = () => !!Object.keys(stateFocusMap).find((key) => stateFocusMap[key]);
<ide>
<add>let prevTis;
<add>
<ide> function handleRefresh() {
<ide> $('#loading-dots').css('display', 'inline-block');
<ide> $.get(get... | 2 |
Ruby | Ruby | use symbols instead of strings | 748d3f38df5d32c5e1eb1d82c07b8abffbb44973 | <ide><path>activesupport/lib/active_support/concern.rb
<ide> def initialize
<ide> end
<ide>
<ide> def self.extended(base) #:nodoc:
<del> base.instance_variable_set("@_dependencies", [])
<add> base.instance_variable_set(:@_dependencies, [])
<ide> end
<ide>
<ide> def append_features(base)
<del... | 1 |
Python | Python | fix unknown task error typo | bdbf6d6ae1aca9addd81800b5dd2e8c3477afb18 | <ide><path>celery/worker/consumer/consumer.py
<ide> The full contents of the message body was:
<ide> %s
<ide>
<del>Thw full contents of the message headers:
<add>The full contents of the message headers:
<ide> %s
<ide>
<ide> The delivery info for this task is: | 1 |
Python | Python | add percent in the quicklook | 7a95094068c8ae5b6d10666a409f109843e8406f | <ide><path>glances/outputs/glances_bars.py
<ide> class Bar(object):
<ide> def __init__(self, size,
<ide> pre_char='[',
<ide> post_char=']',
<del> empty_char='_'):
<add> empty_char='_',
<add> with_text=True):
<ide> # Bar size
<... | 1 |
Ruby | Ruby | improve dependencies hash output | 524379e89785865370dab5300a6e566bef0a0b81 | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "keg_only" => keg_only?,
<ide> "options" => [],
<ide> "build_dependencies" => dependencies.select(&:build?).map(&:name).uniq,
<del> "dependencies" => dependencies.map(&:name).uniq,
<add> "dependencies" => dependencies.reject(&:op... | 1 |
Python | Python | fix pt tf vitmae | ee209d4d016e2ef1b2e73c4be64ad43895bc7e27 | <ide><path>src/transformers/models/vit_mae/modeling_tf_vit_mae.py
<ide> def __init__(self, config, num_patches, **kwargs):
<ide>
<ide> self.decoder_norm = tf.keras.layers.LayerNormalization(epsilon=config.layer_norm_eps, name="decoder_norm")
<ide> self.decoder_pred = tf.keras.layers.Dense(
<del> ... | 2 |
PHP | PHP | apply fixes from styleci | f20a5ea8d106c8796aa5622e1bb3718b90833fe6 | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> public function temporaryUrl($path, $expiration, array $options = [])
<ide>
<ide> if (method_exists($adapter, 'getTemporaryUrl')) {
<ide> return $adapter->getTemporaryUrl($path, $expiration, $options);
<del> } else if (! $adapt... | 1 |
Text | Text | add hashseed to collaborators | 3d7f0fe67fef206c1671269424b045727f0ea094 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Gibson Fahnestock** <gibfahn@gmail.com> (he/him)
<ide> * [gireeshpunathil](https://github.com/gireeshpunathil) -
<ide> **Gireesh Punathil** <gpunathi@in.ibm.com> (he/him)
<add>* [hashseed](https://github... | 1 |
Go | Go | remove some debug logs | ebeda658bcc91b6f4560e3777b735ee6396a8218 | <ide><path>pkg/archive/archive.go
<ide> func DetectCompression(source []byte) Compression {
<ide> Xz: {0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00},
<ide> } {
<ide> if len(source) < len(m) {
<del> logrus.Debug("Len too short")
<ide> continue
<ide> }
<ide> if bytes.Equal(m, source[:len(m)]) {
<ide> func untarHan... | 1 |
Text | Text | add table of content (preview) | bed67834526c837ca18eb5674f8c9dda09e18e17 | <ide><path>README.md
<ide> [](https://www.codetriage.com/axios/axios)
<ide>
<ide> Promise based HTTP client for the browser and node.js
<add>## Table of Contents
<add>
<add> - [Features](#features)
<add> - [Browser Support](#browser-support)
<ad... | 1 |
Javascript | Javascript | fix typo in error message ("assing" -> "assign") | 70dac5ae82ffe9c6250681274905583747523b5d | <ide><path>src/ng/parse.js
<ide> ASTCompiler.prototype = {
<ide> right = this.nextId();
<ide> left = {};
<ide> if (!isAssignable(ast.left)) {
<del> throw $parseMinErr('lval', 'Trying to assing a value to a non l-value');
<add> throw $parseMinErr('lval', 'Trying to assign a value to a non... | 1 |
Ruby | Ruby | add provided_pre_high_sierra keg_only | 0a10ca61dc6d626bfe72b3a4e5501ebb6ad15a81 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def valid?
<ide> MacOS.version < :mavericks
<ide> when :provided_pre_el_capitan
<ide> MacOS.version < :el_capitan
<add> when :provided_pre_high_sierra
<add> MacOS.version < :high_sierra
<ide> when :provided_until_xcode43
<ide> MacOS:... | 1 |
Python | Python | add --v8-lite-mode flag | 01c4455de7160999c236f287f0860aa2fb7ec284 | <ide><path>configure.py
<ide> default=False,
<ide> help='compile V8 with debug checks and runtime debugging features enabled')
<ide>
<add>parser.add_option('--v8-lite-mode',
<add> action='store_true',
<add> dest='v8_lite_mode',
<add> default=False,
<add> help='compile V8 in lite mode for constraine... | 1 |
Python | Python | add dim_ordering tests | 27dd1e939c03325e3b414dacb9d83cd7d3f07dea | <ide><path>tests/keras/layers/test_convolutional.py
<ide> def test_convolution_2d():
<ide> layer.get_config()
<ide>
<ide>
<add>def test_convolution_2d_dim_ordering():
<add> nb_filter = 4
<add> nb_row = 3
<add> nb_col = 2
<add> stack_size = 3
<add>
<add> np.random.seed(1337)
... | 2 |
Go | Go | add test for builder cache with root source path | 86faf1e165b8ffa0cb2394b1f5504caa1fa8f718 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildSymlinkBasename(c *check.C) {
<ide> c.Assert(out, checker.Matches, "bar")
<ide>
<ide> }
<add>
<add>// #17827
<add>func (s *DockerSuite) TestBuildCacheRootSource(c *check.C) {
<add> testRequires(c, DaemonIsLinux)
<add> name := "te... | 1 |
Ruby | Ruby | use file checksum rather than file diffing | 64c83f3286a40cbe8871124f208fb3eaaaffd97a | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> require "cmd/style"
<ide> require "date"
<ide> require "blacklist"
<add>require "digest"
<ide>
<ide> module Homebrew
<ide> module_function
<ide> def audit_urls
<ide>
<ide> return unless @online
<ide> urls.each do |url|
<del> next unless url.start_with?... | 1 |
Javascript | Javascript | add hascrypto check to test-cli-node-options | 427cd293d593511f3f592f3bcf99b0f4b4900fda | <ide><path>test/parallel/test-cli-node-options.js
<ide> expect('--track-heap-objects', 'B\n');
<ide> expect('--throw-deprecation', 'B\n');
<ide> expect('--zero-fill-buffers', 'B\n');
<ide> expect('--v8-pool-size=10', 'B\n');
<del>expect('--use-openssl-ca', 'B\n');
<del>expect('--use-bundled-ca', 'B\n');
<del>expect('--... | 1 |
PHP | PHP | improve test for first in collection | 2a0bb9c7061bf4b577121a878412d96642d94e32 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testFirstWithDefaultAndWithoutCallback($collection)
<ide> $data = new $collection;
<ide> $result = $data->first(null, 'default');
<ide> $this->assertSame('default', $result);
<add>
<add> $data = new $collection(['foo... | 1 |
PHP | PHP | allow extra conditions using http basic auth | b55592a57eeac8d76c27f343c159e63ebc65c5d2 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> public function validate(array $credentials = [])
<ide> * Attempt to authenticate using HTTP Basic Auth.
<ide> *
<ide> * @param string $field
<add> * @param array $extraConditions
<ide> * @return \Symfony\Component\HttpFoundation\Response... | 3 |
Javascript | Javascript | remove scatological terminology | 2244f7d9923e4037bb10b8f8f41ebc8c19e783cb | <ide><path>lib/net.js
<ide> function afterShutdown(status, handle, req) {
<ide> // if the writable side has ended already, then clean everything
<ide> // up.
<ide> function onSocketEnd() {
<del> // XXX Should not have to do as much crap in this function.
<add> // XXX Should not have to do as much in this function.
<i... | 2 |
Javascript | Javascript | implement consistent braces | 5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a | <ide><path>benchmark/child_process/child-process-read-ipc.js
<ide> 'use strict';
<del>if (process.argv[2] === 'child')
<del>{
<add>if (process.argv[2] === 'child') {
<ide> const len = +process.argv[3];
<ide> const msg = `"${'.'.repeat(len)}"`;
<ide> while (true) {
<ide><path>lib/_stream_readable.js
<ide> Readable... | 30 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.