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 |
|---|---|---|---|---|---|
Ruby | Ruby | remove hardcoded reference to java 11 | 658352ac1f515ecc3b581e801fe150658dc3df21 | <ide><path>Library/Homebrew/cask/dsl/caveats.rb
<ide> def eval_caveats(&block)
<ide> #{@cask} requires Java. You can install the latest version with:
<ide> brew install --cask adoptopenjdk
<ide> EOS
<del> elsif java_version.include?("11") || java_version.include?("+")
<add> ... | 1 |
PHP | PHP | fix code style 3 | 3a7d9ac0c9d731f9626ca707cc154af9fb3799ff | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function qualifyColumn($column)
<ide> public function qualifyColumns($columns)
<ide> {
<ide> $columns = is_array($columns) ? $columns : func_get_args();
<add>
<ide> $qualifiedArray = [];
<add>
<ide> foreach ($colu... | 1 |
Text | Text | fix typo in redux-saga example | 2684c98d04139097e630c4af55c8f8e2bdeb8c8a | <ide><path>docs/introduction/Ecosystem.md
<ide> Handle async logic using synchronous-looking generator functions. Sagas return d
<ide> function* fetchData(action) {
<ide> const {someValue} = action;
<ide> try {
<del> const result = yield call(myAjaxLib.post, "/someEndpoint", {data : someValue});
<add> ... | 1 |
Go | Go | fix daemon command proxy | a594cd89919ab3e1aacefb4368c620e308ad0b5d | <ide><path>cmd/docker/daemon_none_test.go
<ide> package main
<ide>
<ide> import (
<del> "strings"
<ide> "testing"
<add>
<add> "github.com/docker/docker/pkg/testutil/assert"
<ide> )
<ide>
<del>func TestCmdDaemon(t *testing.T) {
<del> proxy := NewDaemonProxy()
<del> err := proxy.CmdDaemon("--help")
<del> if err == nil... | 3 |
Text | Text | add article for websocket | d5d2c0633932f93442a48f2f7c7bc87ae283ef04 | <ide><path>guide/english/nodejs/websocket/index.md
<add>---
<add>title: WebSocket
<add>---
<add>
<add>
<add># WebSocket
<add>[WebSocket](https://www.websocket.org) is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The
<add>WebSocket protocol enables inter... | 1 |
Text | Text | fix typo on template.md | 6d14499607c281c0780078adc6e40a8575c6c254 | <ide><path>examples/code-splitting/template.md
<ide> This example illustrates a very simple case of Code Splitting with `require.ensure`.
<ide>
<ide> * `a` and `b` are required normally via CommonJS
<del>* `c` is depdended through the `require.ensure` array.
<add>* `c` is depended through the `require.ensure` array.
<... | 1 |
PHP | PHP | fix encryption pad handling. fixes | 909e4d0e75deb95659deebde1bf7ec09563a88d6 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public function decrypt($payload)
<ide> // We'll go ahead and remove the PKCS7 padding from the encrypted value before
<ide> // we decrypt it. Once we have the de-padded value, we will grab the vector
<ide> // and decrypt the data, passing back the unserial... | 1 |
PHP | PHP | use forcereconnection method | 8c8eb21546b1ae949c459c244d8188308e423f69 | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> protected function sendSwiftMessage($message)
<ide> try {
<ide> return $this->swift->send($message, $this->failedRecipients);
<ide> } finally {
<del> $this->swift->getTransport()->stop();
<add> $this->forceReconnection();
... | 1 |
Ruby | Ruby | add a failing test for ticket | 7ba756281ac193e53cabba3ada75f1423906bb97 | <ide><path>railties/test/application/routing_test.rb
<ide> def foo_or_bar?
<ide> assert_equal 'bar', last_response.body
<ide> end
<ide>
<add> test "mount rack app" do
<add> app_file 'config/routes.rb', <<-RUBY
<add> AppTemplate::Application.routes.draw do |map|
<add> mount lambda { |e... | 1 |
Ruby | Ruby | remove few ivars from gcs_service implementation | 2a738b31c538c0627a46504733fca3c914e1724e | <ide><path>lib/active_storage/service/gcs_service.rb
<ide> def delete(key)
<ide>
<ide> def exist?(key)
<ide> instrument :exist, key do |payload|
<del> answer = file_for(key).present?
<del> payload[:exist] = answer
<del> answer
<add> payload[:exist] = file_for(key).present?
<ide> end
<ide>... | 1 |
Javascript | Javascript | add info about using `isfinite` to exclude `nan` | 7705edc0da2138734e3792572f6f25d1ef3876a9 | <ide><path>src/Angular.js
<ide> function isString(value) {return typeof value === 'string';}
<ide> * @description
<ide> * Determines if a reference is a `Number`.
<ide> *
<add> * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
<add> *
<add> * If you wish to exclude these then you can use the ... | 1 |
Javascript | Javascript | improve error handling | 988cf8d47a07eaa91f1bac48741e2c22b9aa9f84 | <ide><path>hot/lazy-compilation-node.js
<ide> if (!module.hot) {
<ide> }
<ide>
<ide> var urlBase = decodeURIComponent(__resourceQuery.slice(1));
<del>exports.keepAlive = function (key) {
<add>exports.keepAlive = function (options) {
<add> var data = options.data;
<add> var onError = options.onError;
<ide> var respons... | 5 |
Go | Go | fix scaling of nanocpus on hyper-v containers | 3b5af0a289d76366790092439e53d3983f342472 | <ide><path>daemon/daemon_windows.go
<ide> func verifyContainerResources(resources *containertypes.Resources, isHyperv bool
<ide> return warnings, fmt.Errorf("range of CPUs is from 0.01 to %d.00, as there are only %d CPUs available", sysinfo.NumCPU(), sysinfo.NumCPU())
<ide> }
<ide>
<add> osv := system.GetOSVersion(... | 2 |
Python | Python | remove stray print statements | e904075f35dde853f4f210fb4bb1ceebe781bc55 | <ide><path>examples/training/train_new_entity_type.py
<ide> def main(model=None, new_model_name='animal', output_dir=None):
<ide> nlp.update(docs, golds, losses=losses, sgd=optimizer,
<ide> drop=0.35)
<ide> print(losses)
<del> print(nlp.pipeline)
<del> ... | 1 |
Text | Text | update todolist example to react 0.14 | cfc5d08a9064b98c149cdd4530b7b195e061ec69 | <ide><path>docs/basics/ExampleTodoList.md
<ide> This is the complete source code of the tiny todo app we built during the [basic
<ide>
<ide> ```js
<ide> import React from 'react';
<add>import ReactDOM from 'react-dom';
<ide> import { createStore } from 'redux';
<ide> import { Provider } from 'react-redux';
<ide> impor... | 1 |
Javascript | Javascript | move updated proptypes into new transformproptypes | 1c90a2dbcc476b4dc170f315891f5e441d9057d7 | <ide><path>Libraries/Components/View/ViewStylePropTypes.js
<ide> var ViewStylePropTypes = {
<ide> ),
<ide> shadowOpacity: ReactPropTypes.number,
<ide> shadowRadius: ReactPropTypes.number,
<del> transform: ReactPropTypes.arrayOf(
<del> ReactPropTypes.oneOfType([
<del> ReactPropTypes.shape({rotate: ReactPr... | 2 |
Python | Python | fix broken import | d3e0ac864f8df4568fe9c0f81d64b41c9f531a02 | <ide><path>rest_framework/resources.py
<ide> from functools import update_wrapper
<ide> import inspect
<ide> from django.utils.decorators import classonlymethod
<del>from djanorestframework import views, generics
<add>from rest_framework import views, generics
<ide>
<ide>
<ide> def wrapped(source, dest): | 1 |
Ruby | Ruby | push options_constraints processing up | 10c1787b30b041e0676c88df261811e8b9aa4c5d | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(scope, path, options)
<ide> formatted = options.delete :format
<ide> via = Array(options.delete(:via) { [] })
<ide> options_constraints = options.delete :constraints
<add>
<ide> @blocks = blocks(opti... | 1 |
Java | Java | avoid use of repeated @scheduled in tests | 14ac023e01226778b8481a54a657d3f7f6e5e36b | <ide><path>spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java
<ide> public void fixedRateTaskWithInitialDelay() {
<ide> assertEquals(3000L, task.getInterval());
<ide> }
<ide>
<del> @Test
<del> public void severalFixedRates() {
<del> BeanDefinition ... | 1 |
Javascript | Javascript | escape regexp braces to sooth jslint's temper | 3a0a35288304ab5289a1815055623b18de4dc9f6 | <ide><path>src/data.js
<ide> (function( jQuery ) {
<ide>
<ide> var windowData = {},
<del> rbrace = /^(?:{.*}|\[.*\])$/;
<add> rbrace = /^(?:\{.*\}|\[.*\])$/;
<ide>
<ide> jQuery.extend({
<ide> cache: {}, | 1 |
Text | Text | fix the 1.0.6 header | cc042c42bce0817d9b9bbf6b3b3f7a2235cf27fb | <ide><path>CHANGELOG.md
<ide> _Note: This release also contains all bug fixes available in [1.0.6](#1.0.6)._
<ide>
<ide>
<ide> <a name="1.0.6"></a>
<del># 1.1.3 universal-irreversibility (2013-04-04)
<add># 1.0.6 universal-irreversibility (2013-04-04)
<ide>
<ide>
<ide> ## Bug Fixes | 1 |
Javascript | Javascript | handle errors before calling c++ methods | ae86fa84feca482c752bf8d8541e9e13e256a4ff | <ide><path>lib/tls.js
<ide> CryptoStream.prototype._write = function write(data, encoding, cb) {
<ide> written = this.pair.ssl.encIn(data, 0, data.length);
<ide> }
<ide>
<del> var self = this;
<add> // Handle and report errors
<add> if (this.pair.ssl && this.pair.ssl.error) {
<add> return cb(th... | 2 |
Python | Python | add adamw experimental optimzier | 56761bcbad3b214f4b5e63651aea564c340453e3 | <ide><path>official/modeling/optimization/configs/optimization_config.py
<ide> class OptimizerConfig(oneof.OneOfConfig):
<ide> adam_experimental: opt_cfg.AdamExperimentalConfig = (
<ide> opt_cfg.AdamExperimentalConfig())
<ide> adamw: opt_cfg.AdamWeightDecayConfig = opt_cfg.AdamWeightDecayConfig()
<add> adamw... | 3 |
Go | Go | remove unused funtion hasfilesystemsupport() | bb42801cdcd0924ada0ff5ccb3a84aa9a1cbd916 | <ide><path>runtime.go
<ide> func (runtime *Runtime) getContainerElement(id string) *list.Element {
<ide> return nil
<ide> }
<ide>
<del>func hasFilesystemSupport(fstype string) bool {
<del> content, err := ioutil.ReadFile("/proc/filesystems")
<del> if err != nil {
<del> log.Printf("WARNING: Unable to read /proc/files... | 1 |
Python | Python | add chroot detection | ca223a9b8cd2406caae901f0afdc9ba961362b9f | <ide><path>setup.py
<ide>
<ide> from setuptools import setup
<ide>
<add>is_chroot = os.stat('/').st_ino != 2
<add>
<ide>
<ide> def get_data_files():
<ide> data_files = [
<ide> def get_data_files():
<ide> ('share/man/man1', ['man/glances.1'])
<ide> ]
<ide>
<del> if os.name == 'posix' and os.getuid... | 1 |
Ruby | Ruby | bring try! into parity with try | e98f2a74eb20e2b0866b66130501f8480798dd4c | <ide><path>activesupport/lib/active_support/core_ext/object/try.rb
<ide> def try(*a, &b)
<ide> # does not implement the tried method.
<ide> def try!(*a, &b)
<ide> if a.empty? && block_given?
<del> yield self
<add> try(*a, &b)
<ide> else
<ide> public_send(*a, &b)
<ide> end
<ide><path>acti... | 2 |
Text | Text | fix typo in vm.runinnewcontext() description | bb3b4d7d49d84e024f702b4840b1d3b89eac88f5 | <ide><path>doc/api/vm.md
<ide> added: v0.3.1
<ide> before terminating execution. If execution is terminated, an [`Error`][]
<ide> will be thrown.
<ide>
<del>The `vm.runInContext()` first contextifies the given `sandbox` object (or
<add>The `vm.runInNewContext()` first contextifies the given `sandbox` object (o... | 1 |
PHP | PHP | update queue service provider | eb3b10aae62d00eeed18cb069ab8dcd51a8de6bc | <ide><path>src/Illuminate/Queue/QueueServiceProvider.php
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Illuminate\Queue\Console\WorkCommand;
<ide> use Illuminate\Queue\Console\ListenCommand;
<add>use Illuminate\Queue\Connectors\SqsConnector;
<ide> use Illuminate\Queue\Connectors\SyncConnector;
<ide> use Illum... | 1 |
Javascript | Javascript | fix typing issue in contextmodule | 383b3354dd564197b39ad391af7da908e5cb6213 | <ide><path>lib/ContextModule.js
<ide> class ContextModule extends Module {
<ide>
<ide> // Info from Factory
<ide> this.resolveDependencies = resolveDependencies;
<del> /** @type {ContextModuleOptions} */
<add> /** @type {Omit<ContextModuleOptions, "resolveOptions">} */
<ide> this.options = {
<ide> resource:... | 1 |
Python | Python | remove deprecated elasticsearch configs | 5d5c11918725772a9d13712fe5339e315e60d8fc | <ide><path>airflow/configuration.py
<ide> class AirflowConfigParser(ConfigParser): # pylint: disable=too-many-ancestors
<ide> # When reading new option, the old option will be checked to see if it exists. If it does a
<ide> # DeprecationWarning will be issued and the old option will be used instead
<ide> d... | 1 |
Python | Python | fix documentation in keras.datasets.imdb | b3d781553b8015d2cae023d584eeba2f314abaeb | <ide><path>keras/datasets/imdb.py
<ide> def load_data(
<ide> common words, but eliminate the top 20 most common words".
<ide>
<ide> As a convention, "0" does not stand for a specific word, but instead is used
<del> to encode any unknown word.
<add> to encode the pad token.
<ide>
<ide> Args:
<ide> ... | 1 |
Python | Python | specify config filename | 1a779ad7ecb9e5215b6bd1cfa0153469d37e4274 | <ide><path>src/transformers/hf_argparser.py
<ide> def _add_dataclass_arguments(self, dtype: DataClassType):
<ide> self.add_argument(field_name, **kwargs)
<ide>
<ide> def parse_args_into_dataclasses(
<del> self, args=None, return_remaining_strings=False, look_for_args_file=True
<add> self,... | 1 |
PHP | PHP | refactor the lang class | 7282954e27fa8b427d8b4f6485e8ffb2463693bf | <ide><path>system/lang.php
<ide> public static function line($key, $replacements = array())
<ide> */
<ide> public function get($language = null, $default = null)
<ide> {
<del> if (is_null($language)) $language = Config::get('application.language');
<add> if (is_null($language))
<add> {
<add> $language = Config... | 1 |
Text | Text | add missing closing parenthesis in docs | 721dc7bccd0bcdd6f8d6600b0dc30192822a0f3d | <ide><path>docs/advanced-features/static-html-export.md
<ide> Update your build script in `package.json` to use `next export`:
<ide>
<ide> Running `npm run build` will generate an `out` directory.
<ide>
<del>`next export` builds an HTML version of your app. During `next build`, [`getStaticProps`](/docs/basic-features... | 1 |
PHP | PHP | fix problem with fallback | 5fda5a335bce1527e6796a91bb36ccb48d6807a8 | <ide><path>src/Illuminate/Routing/RouteRegistrar.php
<ide> public function __call($method, $parameters)
<ide> return $this->attribute($method, is_array($parameters[0]) ? $parameters[0] : $parameters);
<ide> }
<ide>
<del> return $this->attribute($method, $parameters[0] ?? true);
<... | 2 |
Javascript | Javascript | remove horizontal scrollbar from donation page | 2d780f257c15ecc254ef1d1d394d61a2942504ca | <ide><path>client/src/components/Donation/components/DonateOther.js
<ide> class DonateOther extends Component {
<ide> return (
<ide> <form
<ide> action='https://www.paypal.com/cgi-bin/webscr'
<add> key={item.defaultValueHash}
<ide> method='post'
<ide> onSubmit={() =>
<ide> ... | 2 |
Ruby | Ruby | remove warning of undefined instance variable | bad3d0f6a37ca675b8005da4c87cf15a5f54175b | <ide><path>activestorage/lib/active_storage/previewer/mupdf_previewer.rb
<ide> def mutool_path
<ide> end
<ide>
<ide> def mutool_exists?
<del> return @mutool_exists unless @mutool_exists.nil?
<add> return @mutool_exists if defined?(@mutool_exists) && !@mutool_exists.nil?
<ide>
<ide> s... | 1 |
Ruby | Ruby | fix mocks dir | 9fdd453257c3a257ad614dfe640b516c9495c503 | <ide><path>railties/lib/initializer.rb
<ide> def default_frameworks
<ide> end
<ide>
<ide> def default_load_paths
<del> paths = ["#{environment}/test/mocks/#{environment}"]
<add> paths = ["#{RAILS_ROOT}/test/mocks/#{environment}"]
<ide>
<ide> # Then model subdirectories.
<ide> ... | 1 |
Python | Python | improve error messages for base_layer | 894501ac460723d1d7dcc1c0168876537f0be452 | <ide><path>keras/engine/base_layer.py
<ide> import copy
<ide> import functools
<ide> import itertools
<add>import textwrap
<ide> import threading
<ide> import warnings
<ide> import weakref
<ide> def add_weight(self,
<ide> # When `getter` is specified, it's possibly fine for `initializer` to be
<ide> # N... | 1 |
Javascript | Javascript | add mock for backhandler | ea7c5ab04b0e67083e2dda45f64decea1dc378eb | <ide><path>Libraries/Utilities/__mocks__/BackHandler.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>... | 1 |
Python | Python | improve example dags for cloud memorystore | 8ba8a7295a31f6b44894bfcaea36fa93b8d8c0d0 | <ide><path>airflow/providers/google/cloud/example_dags/example_cloud_memorystore.py
<ide>
<ide> # [START howto_operator_get_instance]
<ide> get_instance = CloudMemorystoreGetInstanceOperator(
<del> task_id="get-instance", location="europe-north1", instance=INSTANCE_NAME, project_id=GCP_PROJECT_ID
<add> ... | 1 |
PHP | PHP | remove event cache command | 7b06179ebab9ab506ea6fe41a18c5214c0869e32 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function getRouteCachePath()
<ide> return $this['path.storage'].'/meta/routes.php';
<ide> }
<ide>
<del> /**
<del> * Determine if the application events are cached.
<del> *
<del> * @return bool
<del> */
<del> public function eventsAreCached()
<del... | 4 |
Python | Python | improve math typesetting | abf238e2f7d6cbe5caaf23987ddcd8b35632b409 | <ide><path>numpy/core/numeric.py
<ide> def correlate(a, v, mode='valid'):
<ide> Cross-correlation of two 1-dimensional sequences.
<ide>
<ide> This function computes the correlation as generally defined in signal
<del> processing texts::
<add> processing texts:
<ide>
<del> .. math:: c_k = \sum_n a_{n+... | 1 |
Python | Python | fix tok2vec arch after refactor | 165e37808229bc4d67889589cdab3b2e5ebe5bfd | <ide><path>spacy/ml/common.py
<ide> def FeedForward(config):
<ide> def LayerNormalizedMaxout(config):
<ide> width = config["width"]
<ide> pieces = config["pieces"]
<del> layer = chain(Maxout(width, pieces=pieces), LayerNorm(nO=width))
<add> layer = LayerNorm(Maxout(width, pieces=pieces))
<ide> layer.n... | 2 |
Text | Text | add currency to inthewild.md | 246c8f2952b451e0dac7f4c3489f2004c6c369bd | <ide><path>INTHEWILD.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Creditas](https://www.creditas.com.br) [[@dcassiano](https://github.com/dcassiano)]
<ide> 1. [CreditCards.com](https://www.creditcards.com/)[[@vmAggies](https://github.com/vmAggies) & [@jay-wallaby](https://github.com/jay-wallaby)]
<ide> 1... | 1 |
Javascript | Javascript | use const where applicable in ignoreplugin | 30a4e3614fc658533d42c56dbba0c36190e816d8 | <ide><path>lib/IgnorePlugin.js
<ide> class IgnorePlugin {
<ide> }
<ide>
<ide> apply(compiler) {
<del> let resourceRegExp = this.resourceRegExp;
<del> let contextRegExp = this.contextRegExp;
<add> const resourceRegExp = this.resourceRegExp;
<add> const contextRegExp = this.contextRegExp;
<ide> compiler.plugin("... | 1 |
PHP | PHP | fix a few bugs | 418dfb0d387a6922285a39bedbd96c8870111074 | <ide><path>src/Illuminate/View/Compilers/ComponentTagCompiler.php
<ide> protected function compileOpeningTags(string $value)
<ide> (?<attributes>
<ide> (?:
<ide> \s+
<del> [\w\-:\.]+
<add> [^\s\=]+
<ide> ... | 1 |
Text | Text | add bfs for non-weighted graphs | b754750ae3a6ff88e76a654b55dc52e0f21a9a1f | <ide><path>guide/english/computer-science/shortest-path-on-a-graph/index.md
<ide> title: Shortest Path on a Graph
<ide> ## Shortest Path on a Graph
<ide>
<ide> <!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
<del>Finding the shortest path ... | 1 |
Text | Text | update the security policy | bf7924b2160d272bfdac961e06d8aff13baca2c5 | <ide><path>docs/security.md
<ide> This document outlines our security policy for the codebases, platforms that we
<ide> ## Reporting a Vulnerability
<ide>
<ide> > [!NOTE]
<del>> If you think you have found a vulnerability, **please report responsibly**. Do not create GitHub issues for security issues. Instead follow t... | 1 |
Text | Text | fix typo in example/text-classification readme | 75b8990d9068a2c6ef448c190f2595c17fbcb993 | <ide><path>examples/flax/text-classification/README.md
<ide> In the Tensorboard results linked below, the random seed of each model is equal
<ide>
<ide> | Task | Metric | Acc (best run) | Acc (avg/5runs) | Stdev | Metrics |
<id... | 2 |
Go | Go | reuse the type | d639f61ec1c80f8d8d65386ec9331dbb6e218cb0 | <ide><path>api.go
<ide> func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
<ide> func createRouter(srv *Server, logging bool) (*mux.Router, error) {
<ide> r := mux.NewRouter()
<ide>
<del> m := map[string]map[string]func(*Server, float64, http.ResponseWriter, *http.Request, map[string]str... | 1 |
PHP | PHP | fix incorrect `__isset()` | d238d8c0bbf51580bdb5dbd86c912c5b85bdbe0d | <ide><path>lib/Cake/Test/Case/View/ViewTest.php
<ide> public function testExtendElement() {
<ide> TEXT;
<ide> $this->assertEquals($expected, $content);
<ide> }
<add>
<add>/**
<add> * Test that setting arbitrary properties still works.
<add> *
<add> * @return void
<add> */
<add> public function testPropertySetting() ... | 2 |
Javascript | Javascript | convert var to let and const | ac4195992290ef6f0b62e2b218ee0dba059f2a76 | <ide><path>lib/repl.js
<ide> /* A repl library that you can include in your own code to get a runtime
<ide> * interface to your program.
<ide> *
<del> * var repl = require("repl");
<add> * const repl = require("repl");
<ide> * // start repl on stdin
<ide> * repl.start("prompt> ");
<ide> *
<ide> function RE... | 1 |
Go | Go | add limit to page size used by overlay2 driver | 520034e35b463e8c9d69ac78b52a4e5df958bc04 | <ide><path>daemon/graphdriver/overlay2/overlay.go
<ide> func (d *Driver) Get(id string, mountLabel string) (s string, err error) {
<ide>
<ide> pageSize := syscall.Getpagesize()
<ide>
<add> // Go can return a larger page size than supported by the system
<add> // as of go 1.7. This will be fixed in 1.8 and this block... | 1 |
Javascript | Javascript | improve node.js support | c20426efef220e5ec594e11af13a5a004246901b | <ide><path>src/display/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> var heightScale = Math.max(Math.sqrt(c * c + d * d), 1);
<ide>
<ide> var imgToPaint, tmpCanvas;
<del> // instanceof HTMLElement does not work in jsdom node.js module
<del> if (imgData instanceof ... | 1 |
Ruby | Ruby | clarify github .git error message | 5157c08327f58ffdd9fe6aaf6acfa2bd08b1ba41 | <ide><path>Library/Homebrew/rubocops/homepage.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide>
<ide> when %r{^https://github.com.*\.git}
<ide> offending_node(parameters(homepage_node).first)
<del> problem "GitHub URLs (`#{homepage}`) should not end wi... | 2 |
Python | Python | remove users of `numpy.compat.bytes` | 8a4fafa5278c2d894cf4efd40a342b33e941e373 | <ide><path>numpy/lib/_iotools.py
<ide>
<ide> import numpy as np
<ide> import numpy.core.numeric as nx
<del>from numpy.compat import asbytes, asunicode, bytes
<add>from numpy.compat import asbytes, asunicode
<ide>
<ide>
<ide> def _decode_line(line, encoding=None):
<ide><path>numpy/lib/npyio.py
<ide> )
<ide>
<ide... | 3 |
Text | Text | update 2fa information in onboarding.md | 1460b31bd3a9699bed9b715f0e8c1edb4fd0aa44 | <ide><path>doc/onboarding.md
<ide> onboarding session.
<ide>
<ide> ## One week before the onboarding session
<ide>
<del>* Confirm that the new Collaborator is using two-factor authentication on their
<del> GitHub account. Unless two-factor authentication is enabled, do not give an
<del> account elevated privileges ... | 1 |
Go | Go | optimize the log info for client test | 40b8ff62431d2005e5801b88dbe1685e89baafe5 | <ide><path>client/container_copy_test.go
<ide> func TestContainerStatPath(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide> if stat.Name != "name" {
<del> t.Fatalf("expected container path stat name to be 'name', was '%s'", stat.Name)
<add> t.Fatalf("expected container path stat name to be 'name', got '%s'", stat.... | 3 |
Python | Python | document the threads task pool in the cli | 877b5f10b44bf92c99f5a3cdc50a0bb059924aaf | <ide><path>celery/bin/worker.py
<ide>
<ide> Pool implementation:
<ide>
<del> prefork (default), eventlet, gevent or solo.
<add> prefork (default), eventlet, gevent, threads or solo.
<ide>
<ide> .. cmdoption:: -n, --hostname
<ide> | 1 |
Javascript | Javascript | expose meta counters (privately) | 6eb4b1d0d330d75a3f72f6253cacad4a82259a11 | <ide><path>packages/ember-metal/lib/meta.js
<ide> export function meta(obj) {
<ide> return newMeta;
<ide> }
<ide>
<add>if (DEBUG) {
<add> meta._counters = counters;
<add>}
<add>
<ide> // Using `symbol()` here causes some node test to fail, presumably
<ide> // because we define the CP with one copy of Ember and boot... | 1 |
Javascript | Javascript | add test case for util.isdate() behavior | cafcc7e67a46fda9006cceeec516cd289c107f04 | <ide><path>test/simple/test-util-inspect.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without restr... | 1 |
Javascript | Javascript | draw line at edge of scales & update tests | f2899934db78ad0edcc8d61b8bd9377e078a358c | <ide><path>src/core/core.scale.js
<ide> }
<ide> }
<ide>
<del>
<ide> this.ctx.translate(xLabelValue, yLabelValue);
<ide> this.ctx.rotate(helpers.toRadians(this.labelRotation) * -1);
<ide> this.ctx.font = labelFont;
<ide> this.ctx.restore();
<ide> }
<ide> }
<add>
<add> ... | 2 |
Python | Python | add more scaledfloatdtype tests | d7af8532863582395f5a64c18f7680f583916031 | <ide><path>numpy/core/tests/test_custom_dtypes.py
<ide>
<ide> import numpy as np
<ide> from numpy.testing import assert_array_equal
<del>
<del>
<del>SF = np.core._multiarray_umath._get_sfloat_dtype()
<del>
<del>
<del>@pytest.mark.parametrize("scaling", [1., -1., 2.])
<del>def test_scaled_float_from_floats(scaling):
<d... | 1 |
Mixed | Ruby | add support for activestorage expiring urls | 209a79aeed2aab05af92687b041acc466ddcc302 | <ide><path>activestorage/CHANGELOG.md
<add>
<add>* Add support for ActiveStorage expiring URLs.
<add>
<add> ```ruby
<add> rails_blob_path(user.avatar, disposition: "attachment", expires_in: 30.minutes)
<add>
<add> <%= image_tag rails_blob_path(user.avatar.variant(resize: "100x100"), expires_in: 30.minutes) %... | 7 |
Ruby | Ruby | handle zpython bottle | 2b9c350b27888896886ffc6e75d2b6bbbdea4bcd | <ide><path>Library/Homebrew/bottle_version.rb
<ide> def self._parse spec
<ide> m = /-(r\d+\.?\d*)/.match(stem)
<ide> return m.captures.first unless m.nil?
<ide>
<add> # e.g. 00-5.0.5 from zpython-00-5.0.5.mavericks.bottle.tar.gz
<add> m = /(00-\d+\.\d+(\.\d+)+)/.match(stem)
<add> return m.captures.fir... | 2 |
Text | Text | add livecheck formula/cask reference example | 0bc3d6cf4b8134120be2d1aff2af86eaf0f3aaf8 | <ide><path>docs/Brew-Livecheck.md
<ide> end
<ide>
<ide> If tags include the software name as a prefix (e.g. `example-1.2.3`), it's easy to modify the regex accordingly: `/^example[._-]v?(\d+(?:\.\d+)+)$/i`
<ide>
<add>### Referenced formula/cask
<add>
<add>A formula/cask can use the same check as another by using `for... | 1 |
Javascript | Javascript | add defaultfontsize setting | 6d7322993f0055ca5201ba963624acedf835dad0 | <ide><path>spec/workspace-spec.js
<ide> describe('Workspace', () => {
<ide> });
<ide>
<ide> describe('::resetFontSize()', () => {
<del> it("resets the font size to the window's starting font size", () => {
<del> const originalFontSize = atom.config.get('editor.fontSize');
<add> it("resets the font size ... | 3 |
Text | Text | update instructions to create airflow release | 5bc64fb923d7afcab420a1b4a6d9f6cc13362f7a | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> - [Summarize the voting for the Apache Airflow release](#summarize-the-voting-for-the-apache-airflow-release)
<ide> - [Publish release to SVN](#publish-release-to-svn)
<ide> - [Prepare PyPI "release" packages](#prepare-pypi-release-packages)
<del> - [Update CHANGELO... | 1 |
Python | Python | provide ways to override the url rule | 0e98a080976f39e20aa6f18e8a335aa23d9334f7 | <ide><path>flask/app.py
<ide> class Flask(_PackageBoundObject):
<ide> 'MAX_CONTENT_LENGTH': None
<ide> })
<ide>
<add> #: The rule object to use for URL rules created. This is used by
<add> #: :meth:`add_url_rule`. Defaults to :class:`werkzeug.routing.Rule`.
<add> #:
<add> #:... | 1 |
Java | Java | add missing verify() in jackson2tokenizertests | 7bed4f36da61ee6d729bbd59639d5be183655700 | <ide><path>spring-web/src/test/java/org/springframework/http/codec/json/Jackson2TokenizerTests.java
<ide> public void testLimit() {
<ide> .expectNext(expected)
<ide> .verifyComplete();
<ide>
<del> StepVerifier.create(decode(source, false, maxInMemorySize - 1))
<del> .expectError(DataBufferLimitException.cl... | 1 |
Text | Text | add appregistry to imports in example | 143b6493b0feb9384f2c74aa7390ba07cd49e9f2 | <ide><path>docs/UsingNavigators.md
<ide> Notice the `export default` in front of the component declaration. This will _ex
<ide>
<ide> ```javascript
<ide> import React, { Component } from 'react';
<del>import { View, Text } from 'react-native';
<add>import { AppRegistry } from 'react-native';
<ide>
<ide> import MyScen... | 1 |
Ruby | Ruby | use utf8mb4 in all tests and examples | 9120d087e8fcc381d4e781218bd2c134dfce6423 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def primary_key(table_name)
<ide> #
<ide> # ====== Add a backend specific option to the generated SQL (MySQL)
<ide> #
<del> # create_table(:suppliers, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8')... | 4 |
Javascript | Javascript | fix the getter for `navigationcontext` | 7f54506f96ff44add072ea1f83fd6650ab7a750b | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> },
<ide>
<ide> componentWillMount: function() {
<add> // TODO(t7489503): Don't need this once ES6 Class landed.
<add> this.__defineGetter__('navigationContext', this._getNavigationContext);
<add>
<ide... | 1 |
Python | Python | fix code-snippets in google provider | 427e14b763d2a29432a999ba6b984fcccc11977a | <ide><path>airflow/providers/google/cloud/operators/dataflow.py
<ide> class DataflowCreateJavaJobOperator(BaseOperator):
<ide> "labels": {"foo": "bar"},
<ide> },
<ide> gcp_conn_id="airflow-conn-id",
<del> dag=my - dag,
<add> dag=my_dag,
<ide> )
<ide>
<ide... | 2 |
Java | Java | remove bad perf test | ba56962b24c9c6eb0589efb5cd414af79eb8bf22 | <ide><path>rxjava-core/src/perf/java/rx/usecases/PerfTransforms.java
<ide> public Boolean call(Integer t1) {
<ide> input.awaitCompletion();
<ide> }
<ide>
<del> @GenerateMicroBenchmark
<del> public void flatMapAsyncNested(final UseCaseInput input) throws InterruptedException {
<del> input.obser... | 1 |
Python | Python | fix viewsets action urls with namespaces | bda84372d445471ce4291547edf36fe683143b42 | <ide><path>rest_framework/viewsets.py
<ide> def reverse_action(self, url_name, *args, **kwargs):
<ide> Reverse the action for the given `url_name`.
<ide> """
<ide> url_name = '%s-%s' % (self.basename, url_name)
<add> namespace = None
<add> if self.request and self.request.resolver_... | 1 |
Javascript | Javascript | use umd headers to detect module loading order | 2f8ae38276394ee134050095f48ace2d53d82281 | <ide><path>make.js
<ide> target.cmaps = function () {
<ide> target.bundle = function(args) {
<ide> args = args || {};
<ide> var defines = args.defines || DEFINES;
<del> var excludes = args.excludes || [];
<ide>
<ide> target.buildnumber();
<ide>
<ide> cd(ROOT_DIR);
<ide> echo();
<ide> echo('### Bundling f... | 1 |
Text | Text | increase visibility of glitch boilerplate (#252) | 222acd4f15e6a68983e78fa905e426089c2375ab | <ide><path>packages/learn/src/introductions/apis-and-microservices/basic-node-and-express/index.md
<ide> superBlock: APIs and Microservices
<ide> ---
<ide> ## Introduction to the Basic Node and Express Challenges
<ide>
<del>Node.js is a JavaScript tool that allows developers to write backend (server-side) programs in ... | 1 |
Ruby | Ruby | send sigterm, not sigquit | 7748d64a76ae140cb80cd54d183bc1f94c192b9d | <ide><path>railties/test/application/console_test.rb
<ide> def write_prompt(command, expected_output = nil)
<ide> end
<ide>
<ide> def kill(pid)
<del> Process.kill('QUIT', pid)
<add> Process.kill('TERM', pid)
<ide> Process.wait(pid)
<ide> rescue Errno::ESRCH
<ide> end | 1 |
Text | Text | add link to file and fix typos in model card | 97f24303e83dc67756c02111ec08930cd1e05bda | <ide><path>model_cards/chrisliu298/arxiv-ai-gpt2/README.md
<ide> datasets:
<ide>
<ide> ## Model description
<ide>
<del>This GPT-2 (774M) model is capable of generating abstracts given paper titles. It was trained using all research papers under aritficial intelligence (AI), machine learning (LG), computation and lang... | 1 |
Text | Text | add release notes for active storage [ci skip] | 47aee9af25a155d86676086eb98ba96a80da259e | <ide><path>guides/source/6_0_release_notes.md
<ide> Please refer to the [Changelog][active-storage] for detailed changes.
<ide>
<ide> ### Deprecations
<ide>
<add>* Deprecate `config.active_storage.queue` in favor of `config.active_storage.queues.analysis`
<add> and `config.active_storage.queues.purge`.
<add> ... | 1 |
Javascript | Javascript | fix example and add e2e test | de4b048b4914c8c5b8d4f68a6a06f713fdf1c22d | <ide><path>src/ng/directive/input.js
<ide> var requiredDirective = function() {
<ide> </script>
<ide> <form name="myForm" ng-controller="Ctrl">
<ide> List: <input name="namesInput" ng-model="names" ng-list required>
<del> <span class="error" ng-show="myForm.list.$error.required">
<add> ... | 1 |
Ruby | Ruby | prettify config output on 6/8-core cpus (#313) | 7727c7764c9941bbe78c342dbe5b3c1a57ac5cd6 | <ide><path>Library/Homebrew/hardware.rb
<ide> def self.cores_as_words
<ide> when 1 then "single"
<ide> when 2 then "dual"
<ide> when 4 then "quad"
<add> when 6 then "hexa"
<add> when 8 then "octa"
<ide> else
<ide> Hardware::CPU.cores
<ide> end | 1 |
Javascript | Javascript | change .drawcalls to .groups | 5a7a681011bfcbb76a3e9264f923e4b59718db38 | <ide><path>src/extras/geometries/WireframeGeometry.js
<ide> THREE.WireframeGeometry = function ( geometry ) {
<ide>
<ide> var indices = geometry.index.array;
<ide> var vertices = geometry.attributes.position;
<del> var drawcalls = geometry.drawcalls;
<add> var groups = geometry.groups;
<ide> var numEdges ... | 1 |
Text | Text | add example code for worker.isdead() to cluster.md | e2d445be8f5f786a7b3b6dc1724fc6080cb37b8c | <ide><path>doc/api/cluster.md
<ide> added: v0.11.14
<ide> This function returns `true` if the worker's process has terminated (either
<ide> because of exiting or being signaled). Otherwise, it returns `false`.
<ide>
<add>```js
<add>const cluster = require('cluster');
<add>const http = require('http');
<add>const numCP... | 1 |
Mixed | Java | add timeinterval & timestamp to m/s | d5449b2fd63c73dea06fbbd5d584bab7b9cfde5d | <ide><path>docs/Operator-Matrix.md
<ide> Operator | ||![... | 13 |
Java | Java | remove deprecated socketutils | 2cee63491d1fbb6e21a9044715d98838fec9a51b | <ide><path>spring-context/src/test/java/org/springframework/jmx/access/MBeanClientInterceptorTests.java
<ide> import org.junit.jupiter.api.Test;
<ide>
<ide> import org.springframework.aop.framework.ProxyFactory;
<add>import org.springframework.core.testfixture.net.TestSocketUtils;
<ide> import org.springframework.jmx.... | 7 |
Ruby | Ruby | explain all test helpers | c859cd256fda470ad284b21b8595d75b78eebc9f | <ide><path>lib/action_mailbox/test_helper.rb
<ide>
<ide> module ActionMailbox
<ide> module TestHelper
<del> # Create an InboundEmail record using an eml fixture in the format of message/rfc822
<add> # Create an `InboundEmail` record using an eml fixture in the format of message/rfc822
<ide> # referenced wi... | 1 |
PHP | PHP | specify method. rename conjoin | 0f5337f854ecdd722e7e289ff58cc252337e7a9d | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function collapse()
<ide> return new static(Arr::collapse($this->items));
<ide> }
<ide>
<del> /**
<del> * Conjoin all values of a collection with those of another, regardless of keys.
<del> *
<del> * @param \Traversable $source
... | 3 |
Ruby | Ruby | add macos & java versions | a8788015b69c5525efe2cd47ba67c1e6950d1526 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/doctor.rb
<add>require "system_config"
<add>
<ide> module Hbc
<ide> class CLI
<ide> class Doctor < AbstractCommand
<ide> def initialize(*)
<ide>
<ide> def run
<ide> ohai "Homebrew-Cask Version", Hbc.full_version
<add> ohai "macOS", MacOS.full_vers... | 1 |
PHP | PHP | fix doc block in test | 81a82c5eae9c3a87e4bac0a9cae0bb6a309991dd | <ide><path>tests/test_app/TestApp/Controller/Component/TestAuthComponent.php
<ide> class TestAuthComponent extends AuthComponent
<ide> {
<ide> /**
<del> * @var string
<add> * @var string|null
<ide> */
<ide> public $authCheckCalledFrom = null;
<ide>
<ide> /**
<ide> * @param Event $event
<d... | 1 |
PHP | PHP | improve code readability | 813cd75f1576e72c5cfe6c6f827f495805f268df | <ide><path>src/Controller/Controller.php
<ide> public function __get($name)
<ide> }
<ide>
<ide> list($plugin, $class) = pluginSplit($this->modelClass, true);
<del> if ($class !== $name) {
<del> $trace = debug_backtrace();
<del> $parts = explode('\\', get_class($this));
<del... | 1 |
Javascript | Javascript | add coverage for socket write after close | 6a18c1d8dd034767f86bc496e292ecb0dddf944f | <ide><path>test/parallel/test-net-socket-write-after-close.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const net = require('net');
<add>
<add>{
<add> const server = net.createServer();
<add>
<add> server.listen(common.mustCall(() => {
<add> const port... | 1 |
Ruby | Ruby | move error text and helper into error class | 3cbb49930c812b09c3fa8cd62fff8d722104e406 | <ide><path>Library/Homebrew/utils.rb
<ide> module GitHub extend self
<ide> ISSUES_URI = URI.parse("https://api.github.com/search/issues")
<ide>
<ide> Error = Class.new(RuntimeError)
<del> RateLimitExceededError = Class.new(Error)
<ide> HTTPNotFoundError = Class.new(Error)
<ide> AuthenticationFailedError = Cla... | 1 |
Text | Text | allow g flag on regex | 1b06bb29f0fe3e656e2c4ce7f9f46049453656af | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters.english.md
<ide> Then check whether the desired string groups are in the test string by using the
<ide>
<ide> ```js
<ide> let testStr = "Pumpkin";
<del>let testRegex = /P(eng... | 1 |
Python | Python | improve image processing (#45) | 5d7612c63c6b8585a4cbd87093294e747f3f0b08 | <ide><path>inception/inception/image_processing.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>
<ide> import tensorflow as tf
<ide>
<ide> FLAGS = tf.app.flags.FLAGS
<ide> tf.app.flags.DEFINE_integer('num_preprocess_threads', 4,
<ide> """Numb... | 1 |
Javascript | Javascript | use helper for readability | 937bbc5571073d1fbeffd2d9e18949b3b4dcf09b | <ide><path>lib/internal/js_stream_socket.js
<ide> const kCurrentWriteRequest = Symbol('kCurrentWriteRequest');
<ide> const kCurrentShutdownRequest = Symbol('kCurrentShutdownRequest');
<ide> const kPendingShutdownRequest = Symbol('kPendingShutdownRequest');
<ide>
<del>function isClosing() {
<del> let socket = this[own... | 1 |
Python | Python | add a regression test for (not fixed yet) | a783074b622423b665ff8c4e7e97e1eebe9b183f | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_array_from_sequence_scalar_array(self):
<ide> t = ((1,), np.array(1))
<ide> assert_raises(ValueError, lambda: np.array(t))
<ide>
<add> @dec.knownfailureif(True, "Fix this for 1.5.0.")
<add> def test_array_from_sequence_scalar_array2(se... | 1 |
Text | Text | create model cards for indonesian models | 72911c893ac26e201c9f88d534fc610b4639343a | <ide><path>model_cards/cahya/bert-base-indonesian-522M/README.md
<add>---
<add>language: "id"
<add>license: "mit"
<add>datasets:
<add>- Indonesian Wikipedia
<add>widget:
<add>- text: "Ibu ku sedang bekerja [MASK] supermarket."
<add>---
<add>
<add># Indonesian BERT base model (uncased)
<add>
<add>## Model description
<... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.