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 | increase priority of pureexpressiondependency | 38304f95ccafaae41dc80a51c9c3192af872a016 | <ide><path>lib/DependenciesBlock.js
<ide> class DependenciesBlock {
<ide> /**
<ide> * @param {Dependency} dependency dependency being tied to block.
<ide> * This is an "edge" pointing to another "node" on module graph.
<add> * @param {number=} i index to insert
<ide> * @returns {void}
<ide> */
<del> addDepend... | 2 |
Python | Python | relax routes cli match order | ab6a8b0330845c80d661a748314691302ea7d8f7 | <ide><path>tests/test_cli.py
<ide> def create_app():
<ide>
<ide> class TestRoutes:
<ide> @pytest.fixture
<del> def invoke(self, runner):
<del> def create_app():
<del> app = Flask(__name__)
<del> app.testing = True
<add> def app(self):
<add> app = Flask(__name__)
<add> ... | 1 |
Python | Python | add support for aliases for fortran compilers | 3bbfa8af671843476dacf27f5f42006d9fd462fa | <ide><path>numpy/distutils/fcompiler/__init__.py
<ide> class FCompiler(CCompiler):
<ide> }
<ide> language_order = ['f90','f77']
<ide>
<add>
<add> # These will be set by the subclass
<add>
<add> compiler_type = None
<add> compiler_aliases = ()
<ide> version_pattern = None
<ide>
<id... | 3 |
PHP | PHP | add missing fixtures namespace. | ae9d41b5258ec8b6bf901b2914b16be4d5c0caff | <ide><path>tests/Support/DateFacadeTest.php
<ide>
<ide> use Carbon\CarbonImmutable;
<ide> use Carbon\Factory;
<del>use CustomDateClass;
<ide> use DateTime;
<ide> use Illuminate\Support\Carbon;
<ide> use Illuminate\Support\DateFactory;
<ide> use Illuminate\Support\Facades\Date;
<add>use Illuminate\Tests\Support\Fixture... | 2 |
PHP | PHP | apply fixes from styleci | d1a4f3fc7951c04ff91855511ed8c73b1a98e533 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> use RuntimeException;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Response;
<del>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Auth\UserProvider;
<add>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contr... | 42 |
Text | Text | keep code consistent with previous code blocks | 723c3881b9d77e3dd14b17d8b3403cd9b578e063 | <ide><path>guides/source/getting_started.md
<ide> So first, we'll wire up the Post show template
<ide> </p>
<ide> <% end %>
<ide>
<del><%= link_to 'Edit Post', edit_post_path(@post) %> |
<del><%= link_to 'Back to Posts', posts_path %>
<add><%= link_to 'Back', posts_path %>
<add>| <%= link_to 'Edit', edit_post_path(@... | 1 |
PHP | PHP | use uuid for generating file names | 2d301e31203eb6fa2364b3857d2fd4f4a0e85ea1 | <ide><path>src/Illuminate/Http/FileHelpers.php
<ide> public function hashName($path = null)
<ide> $path = rtrim($path, '/').'/';
<ide> }
<ide>
<del> return $path.md5_file($this->getRealPath()).'.'.$this->guessExtension();
<add> return $path.Uuid::uuid4()->toString().'.'.$this->guessEx... | 1 |
Python | Python | remove redundant torch.jit.trace in tests | 12726f8556152dbc6c115327646ebb33ccb2bc4f | <ide><path>transformers/tests/modeling_common_test.py
<ide> def _create_and_check_torchscript(self, config, inputs_dict):
<ide> inputs = inputs_dict['input_ids'] # Let's keep only input_ids
<ide>
<ide> try:
<del> torch.jit.trace(model, inputs)
<add> ... | 1 |
Python | Python | add basic usage docstring for dtype | 0863e654ae4ef065ee390a41d19849929d3a9c5c | <ide><path>numpy/add_newdocs.py
<ide> # docstrings without requiring a re-compile.
<ide> from lib import add_newdoc
<ide>
<add>add_newdoc('numpy.core', 'dtype',
<add>"""Create a data type.
<add>
<add>A numpy array is homogeneous, and contains elements described by a
<add>dtype. A dtype can be constructed from differ... | 1 |
Go | Go | add testruncapaddchown test case | 230179c8dc120b4b1a181e24de055bdca7963491 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunContainerNetModeWithExposePort(c *check.C) {
<ide> }
<ide>
<ide> }
<add>
<add>func (s *DockerSuite) TestRunCapAddCHOWN(c *check.C) {
<add> cmd := exec.Command(dockerBinary, "run", "--cap-drop=ALL", "--cap-add=CHOWN", "busybox", "sh",... | 1 |
Python | Python | add a break statement, just in case | aee8542ec06294f65b98a582ec159dccbea78aaf | <ide><path>test/test.py
<ide> def makeBrowserCommand(browser):
<ide> if (name and name.find(key) > -1) or path.find(key) > -1:
<ide> command = types[key](browser)
<ide> command.name = command.name or key
<add> break
<ide>
<ide> if command is None:
<ide> raise Exce... | 1 |
PHP | PHP | fix linting issues | faa26d25017f86eee58daf9de586774374bc8ec2 | <ide><path>src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
<ide> public function compileDropAllTables()
<ide> public function compileDropColumn(Blueprint $blueprint, Fluent $command)
<ide> {
<ide> $columns = $this->wrapArray($command->columns);
<del> $dropExistingConstraintsSql = $this->co... | 1 |
Python | Python | add tests for new download module | 2a0fcf1354b62af022f8cca7d95b199e74fecde9 | <ide><path>spacy/tests/test_download.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>from ..download import download, get_compatibility, get_version, check_error_depr
<add>import pytest
<add>
<add>
<add>def test_download_fetch_compatibility():
<add> compatibility = get_compatibility()... | 1 |
Ruby | Ruby | demote fixme to a normal comment | df25be78b58a94506985ca812971e41da879239e | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def hgpath
<ide>
<ide> class BazaarDownloadStrategy < VCSDownloadStrategy
<ide> def stage
<del> # FIXME: The export command doesn't work on checkouts
<add> # The export command doesn't work on checkouts
<ide> # See https://bugs.launchpad.net/bzr/+bug/8... | 1 |
Java | Java | update copyright to 'rxjava contributors' | d3455d0c9d57d522c31b5c25af83e8f2b8df12b6 | <ide><path>src/main/java/io/reactivex/BackpressureOverflowStrategy.java
<ide> /**
<del> * Copyright 2016 Netflix, Inc.
<add> * Copyright (c) 2016-present, RxJava Contributors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with t... | 300 |
Javascript | Javascript | improve assert message | 242d07890fbb17c9d7e9c8cd2090b069b37afa1b | <ide><path>test/parallel/test-net-pipe-connect-errors.js
<ide> var notSocketClient = net.createConnection(emptyTxt, function() {
<ide> });
<ide>
<ide> notSocketClient.on('error', function(err) {
<del> assert(err.code === 'ENOTSOCK' || err.code === 'ECONNREFUSED');
<add> assert(err.code === 'ENOTSOCK' || err.code ===... | 1 |
Mixed | Javascript | implement routing of defaults | f3cfeb84205385655e8d492f3e6ceb4c24026874 | <ide><path>docs/docs/configuration/elements.md
<ide> Global point options: `Chart.defaults.elements.point`.
<ide> | Name | Type | Default | Description
<ide> | ---- | ---- | ------- | -----------
<ide> | `radius` | `number` | `3` | Point radius.
<del>| [`pointStyle`](#point-styles) | <code>string|Image</code> | `'... | 7 |
Go | Go | replace overlay2 mount reexec with in-proc impl | 34f459423ae32dd07993eebd7c81dc6390403b5a | <ide><path>daemon/graphdriver/overlay2/mount.go
<ide> package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2"
<ide>
<ide> import (
<del> "bytes"
<del> "encoding/json"
<del> "flag"
<del> "fmt"
<del> "os"
<ide> "runtime"
<ide>
<del> "github.com/docker/docker/pkg/reexec"
<ide> "golang.org/x/s... | 1 |
Python | Python | handle `mask` in `timedistributed` wrapper. | a3664246de4bb8ef3232dd84ff47fc2694c69e58 | <ide><path>keras/backend/theano_backend.py
<ide> def var(x, axis=None, keepdims=False):
<ide> def any(x, axis=None, keepdims=False):
<ide> """Bitwise reduction (logical OR).
<ide> """
<del> return T.any(x, axis=axis, keepdims=keepdims)
<add> y = T.any(x, axis=axis, keepdims=keepdims)
<add> if hasattr(x... | 5 |
Java | Java | add setchildren to flatuiimplementation | fede13878672578cabba0b6be2270550d887da1f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java
<ide> public void manageChildren(
<ide> addChildren(parentNode, addChildTags, addAtIndices);
<ide> }
<ide>
<add> @Override
<add> public void setChildren(
<add> int viewTag,
<add> ReadableArray children) {
<add>
<a... | 1 |
Javascript | Javascript | allow loaded progress of 0 in unit tests | d762567bcf765f2931322d90c99360cdb3c86751 | <ide><path>test/unit/api_spec.js
<ide> describe('api', function() {
<ide> loadingTask.promise
<ide> ];
<ide> Promise.all(promises).then(function (data) {
<del> expect((data[0].loaded / data[0].total) > 0).toEqual(true);
<add> expect((data[0].loaded / data[0].total) >= 0).toEqual(true);... | 1 |
Go | Go | provide more info in error | ae1002219bc5d602c552ba952bc45e440cf3aae7 | <ide><path>pkg/truncindex/truncindex.go
<ide> var (
<ide> // ErrEmptyPrefix is an error returned if the prefix was empty.
<ide> ErrEmptyPrefix = errors.New("Prefix can't be empty")
<ide>
<del> // ErrAmbiguousPrefix is returned if the prefix was ambiguous
<del> // (multiple ids for the prefix).
<del> ErrAmbiguousPref... | 1 |
Javascript | Javascript | fix veryfying exports in module codegen | 0dcd57c73c4d0d0368ad77ebde1f93587caa9118 | <ide><path>packages/react-native-codegen/src/parsers/flow/index.js
<ide> const {processModule} = require('./modules');
<ide> function getTypes(ast) {
<ide> return ast.body.reduce((types, node) => {
<ide> if (node.type === 'ExportNamedDeclaration') {
<del> if (node.declaration.type !== 'VariableDeclaration') ... | 1 |
Javascript | Javascript | fix the arguments order in `assert.strictequal` | c481799d72cb1fd496c0747fba870afb275d36b0 | <ide><path>test/parallel/test-http-request-end.js
<ide> const server = http.Server(function(req, res) {
<ide> });
<ide>
<ide> req.on('end', function() {
<del> assert.strictEqual(expected, result);
<add> assert.strictEqual(result, expected);
<ide> server.close();
<ide> res.writeHead(200);
<ide> re... | 1 |
PHP | PHP | remove leftover of pagetitle | eb9877030496925740458b25cc50080f1eced681 | <ide><path>lib/Cake/Test/Case/Controller/ControllerTest.php
<ide> public function testControllerSet() {
<ide>
<ide> $Controller->set('title', 'someTitle');
<ide> $this->assertSame($Controller->viewVars['title'], 'someTitle');
<del> $this->assertTrue(empty($Controller->pageTitle));
<ide>
<ide> $Controller->view... | 4 |
Text | Text | update the "top level .mdx pages" code sample | e0ff050402ae7d2e71abb9efaffd917d950c4c4d | <ide><path>packages/next-mdx/readme.md
<ide> module.exports = withMDX()
<ide>
<ide> ## Top level .mdx pages
<ide>
<del>Define the `pageExtensions` option to have Next.js handle `.mdx` files in the `pages` directory as pages:
<add>Define the `pageExtensions` option to have Next.js handle `.md` and `.mdx` files in the ... | 1 |
PHP | PHP | remove duplicate comment | caf562f8e2d165898d6e8abe0549a5fb7384d92d | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileComponents(Builder $query)
<ide> $sql = [];
<ide>
<ide> foreach ($this->selectComponents as $component) {
<del> // To compile the query, we'll spin through each component of the query and
<del> ... | 1 |
Python | Python | set retry-after header when throttled | c3891b6e00daa7a92cca1c88599e046f72926bb4 | <ide><path>rest_framework/exceptions.py
<ide> def __init__(self, media_type, detail=None):
<ide> class Throttled(APIException):
<ide> status_code = status.HTTP_429_TOO_MANY_REQUESTS
<ide> default_detail = 'Request was throttled.'
<del> extra_detail = "Expected available in %d second%s."
<add> extra_detail... | 3 |
Ruby | Ruby | test basic upload | 1e05e6285602656bc3504b83d03135c343cd50e6 | <ide><path>test/disk_site_test.rb
<ide> class ActiveFile::DiskSiteTest < ActiveSupport::TestCase
<ide> FIXTURE_FILE.rewind
<ide> end
<ide>
<add> test "uploading" do
<add> key = SecureRandom.base58(24)
<add> data = "Something else entirely!"
<add> @site.upload(key, StringIO.new(data))
<add>
<add> as... | 1 |
Go | Go | fix ptmx issue on libcontainer | 18f06b8d16c475568fd023e97eecc138ab052c2d | <ide><path>pkg/libcontainer/namespaces/exec.go
<ide> func ExecContainer(container *libcontainer.Container) (pid int, err error) {
<ide> // command.Stderr = os.Stderr
<ide> command.SysProcAttr = &syscall.SysProcAttr{}
<ide> command.SysProcAttr.Cloneflags = flag
<del> //command.ExtraFiles = []*os.File{master}
<add>
<a... | 2 |
PHP | PHP | add tests for invalid data | 5ee6ff100d9ba15c90ef6eaa6a8ac911e1200b69 | <ide><path>src/View/Input/DateTime.php
<ide> protected function _deconstructDate($value, $options) {
<ide> 'meridian' => '',
<ide> ];
<ide> }
<del> if (is_string($value)) {
<del> $date = new \DateTime($value);
<del> } elseif (is_int($value)) {
<del> $date = new \DateTime('@' . $value);
<del> } elseif (i... | 2 |
Python | Python | put line ending on message to stderr | 433b02a909c6ada47c721088d1fc6df67bab8ac8 | <ide><path>numpy/__init__.py
<ide>
<ide> if __NUMPY_SETUP__:
<ide> import sys as _sys
<del> _sys.stderr.write('Running from numpy source directory.')
<add> _sys.stderr.write('Running from numpy source directory.\n')
<ide> del _sys
<ide> else:
<ide> try: | 1 |
Javascript | Javascript | improve console.log output | 27713a9d21b4cc542364bd8967953b71bf2b5537 | <ide><path>common/app/routes/challenges/utils.js
<ide> export function createTests({ tests = [] }) {
<ide> });
<ide> }
<ide>
<add>function logReplacer(value) {
<add> if (Array.isArray(value)) {
<add> const replaced = value.map(logReplacer);
<add> return '[' + replaced.join(', ') + ']';
<add> }
<add> if (t... | 1 |
Text | Text | create card for bert-tiny fine-tuned on squad v2 | dedc7a8fdbdf4b9824fa2943a43be4ca147733de | <ide><path>model_cards/mrm8488/bert-tiny-finetuned-squadv2/README.md
<add>---
<add>language: english
<add>thumbnail:
<add>---
<add>
<add># BERT-Tiny fine-tuned on SQuAD v2
<add>
<add>[BERT-Tiny](https://github.com/google-research/bert/) created by [Google Research](https://github.com/google-research) and fine-tuned on ... | 1 |
Javascript | Javascript | replace frustum vertex with vector3 | d1c934903a41bd10c9bfa61dd3c1f88ac4f2d2c4 | <ide><path>examples/jsm/csm/Frustum.js
<ide> */
<ide>
<ide> import { MathUtils, Vector3 } from '../../../build/three.module.js';
<del>import FrustumVertex from './FrustumVertex.js';
<ide>
<ide> export default class Frustum {
<ide>
<ide> export default class Frustum {
<ide> // 2 --- 1
<ide>
<ide> this.vertices.... | 2 |
Python | Python | add a predict method in tagging task | c929b07ebc0eb93885d36569e6c64d1d7baa10d4 | <ide><path>official/nlp/data/tagging_data_loader.py
<ide> class TaggingDataConfig(cfg.DataConfig):
<ide> """Data config for tagging (tasks/tagging)."""
<ide> is_training: bool = True
<ide> seq_length: int = 128
<add> include_sentence_id: bool = False
<ide>
<ide>
<ide> @data_loader_factory.register_data_loader_... | 3 |
Javascript | Javascript | improve grammar and clarity | e79a20e1ca2e725100acedc0ba5ac014fea0f412 | <ide><path>src/ng/directive/booleanAttrs.js
<ide> * </div>
<ide> * </pre>
<ide> *
<del> * The HTML specs do not require browsers to preserve the values of special attributes
<del> * such as disabled. (The presence of them means true and absence means false)
<del> * This prevents the Angular compiler from correctly r... | 1 |
PHP | PHP | add option for bc | b44ad4df64620b042b83f51ff34f10222e923e13 | <ide><path>src/Illuminate/Queue/Console/WorkCommand.php
<ide> protected function getOptions()
<ide> return [
<ide> ['queue', null, InputOption::VALUE_OPTIONAL, 'The queue to listen on'],
<ide>
<add> ['daemon', null, InputOption::VALUE_NONE, 'Run the worker in daemon mode (Deprecated)'],
... | 1 |
Javascript | Javascript | remove unused meta methods | e5f9748cc9598854395f967858af5ef379b0cc8b | <ide><path>packages/ember-metal/lib/meta.js
<ide> export class Meta {
<ide> return this._findInherited('_watching', subkey);
<ide> }
<ide>
<del> forEachWatching(fn) {
<del> let pointer = this;
<del> let seen;
<del> while (pointer !== undefined) {
<del> let map = pointer._watching;
<del> if (ma... | 3 |
Ruby | Ruby | remove deprecation notices | 1012c3e9699471248f8554d4d5bf18e7d194ac2b | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def initialize(name, filter, kind, options, chain_config)
<ide> @key = compute_identifier filter
<ide> @if = Array(options[:if])
<ide> @unless = Array(options[:unless])
<del>
<del> deprecate_per_key_option(options)
<... | 2 |
Python | Python | fix flaky ci | 9c0afdaf7b091c341072b432ad6ee17ba7a5016b | <ide><path>tests/test_generation_utils.py
<ide> def _get_warper_and_kwargs(num_beams):
<ide> warp_kwargs = {"top_k": 10, "top_p": 0.7, "temperature": 0.7}
<ide> logits_warper = LogitsProcessorList(
<ide> [
<add> TemperatureLogitsWarper(warp_kwargs["temperature"]),
<ide> ... | 1 |
Text | Text | fix inaccuracy in faq | ecdce975d375c25a1738e86ce727eacf83b4090a | <ide><path>docs/templates/faq.md
<ide> Similarly, you could build a Theano and TensorFlow function directly.
<ide>
<ide> You can do batch training using `model.train_on_batch(X, y)` and `model.test_on_batch(X, y)`. See the [models documentation](models.md).
<ide>
<del>Alternatively, you can write a generator that yie... | 1 |
Ruby | Ruby | fix rubocop warnings | 1f2abbdd6e960399b50f35e3e34261d13b9cf893 | <ide><path>Library/Homebrew/utils/hash.rb
<ide> def deep_merge_hashes(hash1, hash2)
<del> merger = proc do |key, v1, v2|
<del> if Hash === v1 && Hash === v2
<add> merger = proc do |_key, v1, v2|
<add> if v1.is_a?(Hash) && v2.is_a?(Hash)
<ide> v1.merge v2, &merger
<ide> else
<ide> v2 | 1 |
Text | Text | fix execution path for pplm example | c016dbdbdaf79339ae6d275d4651dc9f380be055 | <ide><path>examples/research_projects/pplm/README.md
<ide> Please check out the repo under uber-research for more information: https://gith
<ide> git clone https://github.com/huggingface/transformers && cd transformers
<ide> pip install .
<ide> pip install nltk torchtext # additional requirements.
<del>cd examples/text... | 1 |
Python | Python | add heartbeat to triggererjob | 9c8f7ac6236bdddd979bb6242b6c63003fae8490 | <ide><path>airflow/jobs/triggerer_job.py
<ide> def is_needed(cls, session) -> bool:
<ide> """
<ide> return session.query(func.count(Trigger.id)).scalar() > 0
<ide>
<add> def on_kill(self):
<add> """
<add> Called when there is an external kill command (via the heartbeat
<add> mec... | 1 |
Javascript | Javascript | remove socket interface from dependencies command | a35ef6c745cbd9dbf02c3cd7c786bc2444b54e96 | <ide><path>local-cli/dependencies/dependencies.js
<ide> function _dependencies(argv, config, resolve, reject, packagerInstance) {
<ide> ? fs.createWriteStream(args.output)
<ide> : process.stdout;
<ide>
<del> if (packagerInstance) {
<del> resolve(packagerInstance.getOrderedDependencyPaths(options).then(
<de... | 2 |
Javascript | Javascript | remove unneeded common.indirectinstanceof() | 25713861c074893a4a3855ec1aa63fe1725238c8 | <ide><path>test/common.js
<ide> exports.hasIPv6 = Object.keys(ifaces).some(function(name) {
<ide> });
<ide> });
<ide>
<del>function protoCtrChain(o) {
<del> var result = [];
<del> for (; o; o = Object.getPrototypeOf(o)) { result.push(o.constructor); }
<del> return result.join();
<del>}
<del>
<del>exports.indirect... | 3 |
Python | Python | add deprecation notice for subdagoperator | b311bc0237b28c6d23f54137ed46f46e7fa5893f | <ide><path>airflow/operators/subdag.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>"""The module which provides a way to nest your DAGs and so your levels of complexity."""
<add>"""
<add>This module is ... | 2 |
PHP | PHP | fix coding standards | 6beded1e835b7d2d5d500139bc6ce1ac28cdb84f | <ide><path>src/View/Form/EntityContext.php
<ide> protected function _getValidator($entity) {
<ide> $method = 'default';
<ide> if (is_string($this->_context['validator'])) {
<ide> $method = $this->_context['validator'];
<del> } elseif (isset($this->_context['validator'][$alias])){
<add> } elseif (isset($this->_... | 2 |
Python | Python | add new token classification model | ed302a73f4cc365db4cd29d26ca722d605bc85a1 | <ide><path>pytorch_pretrained_bert/__init__.py
<ide> from .tokenization import BertTokenizer, BasicTokenizer, WordpieceTokenizer
<ide> from .modeling import (BertConfig, BertModel, BertForPreTraining,
<ide> BertForMaskedLM, BertForNextSentencePrediction,
<del> BertForSequenc... | 1 |
Javascript | Javascript | add support for test.filter.js in watchcases | 4769dc6a51b82842b874899d0451b0904a7a508c | <ide><path>test/WatchTestCases.test.js
<ide> describe("WatchTestCases", () => {
<ide> tests: fs
<ide> .readdirSync(path.join(casesPath, cat))
<ide> .filter(folder => folder.indexOf("_") < 0)
<add> .filter(testName => {
<add> const testDirectory = path.join(casesPath, cat, testName);
<add> const fi... | 1 |
Javascript | Javascript | remove unnecessary lines from outlineeffect | 4342cf8ec12a68bdd53627731b63d11358aede72 | <ide><path>examples/js/effects/OutlineEffect.js
<ide> *
<ide> * Reference: https://en.wikipedia.org/wiki/Cel_shading
<ide> *
<del> * Dependencies
<del> * - THREE.ChainableEffect
<del> *
<ide> * // How to set default outline parameters
<ide> * new THREE.OutlineEffect( renderer, {
<ide> * defaultThickNess: 0.01, | 1 |
Text | Text | revise accepting-modifications in guide | 7d18e922ab093c9c85b365dbc7fd01984316abc3 | <ide><path>COLLABORATOR_GUIDE.md
<ide> to land but is [author ready](#author-ready-pull-requests), add the
<ide>
<ide> ## Accepting Modifications
<ide>
<del>All modifications to the Node.js code and documentation should be performed via
<del>GitHub pull requests, including modifications by Collaborators and TSC membe... | 1 |
Javascript | Javascript | add presentation role to text layer spans. | 5231d922ec9d590f5e3eb0bbcbf1e715497b20c3 | <ide><path>src/display/text_layer.js
<ide> const renderTextLayer = (function renderTextLayerClosure() {
<ide> textDiv.style.fontSize = `${fontHeight}px`;
<ide> textDiv.style.fontFamily = style.fontFamily;
<ide>
<add> // Keeps screen readers from pausing on every new text span.
<add> textDiv.setAttribute(... | 1 |
Javascript | Javascript | use useragent to detect ie | 640043905206a080a36c0981a28aca6c42184767 | <ide><path>examples/js/renderers/CSS3DRenderer.js
<ide> THREE.CSS3DRenderer = function () {
<ide>
<ide> domElement.appendChild( cameraElement );
<ide>
<del> // Should we replace to feature detection?
<del> // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/css/transformstylepreserve3d.js
<del> // ... | 1 |
Text | Text | describe tls session resumption | eaa1544d974d701c1eed7b42308ca6031e65c833 | <ide><path>doc/api/tls.md
<ide> To test the renegotiation limits on a server, connect to it using the OpenSSL
<ide> command-line client (`openssl s_client -connect address:port`) then input
<ide> `R<CR>` (i.e., the letter `R` followed by a carriage return) multiple times.
<ide>
<add>### Session Resumption
<add>
<add>E... | 1 |
PHP | PHP | remove some comment bloat from the request class | 0586bbe04e65384ac12ad06d0f9e1642f59091d4 | <ide><path>laravel/request.php
<ide> public static function uri()
<ide> $uri = substr($uri, strlen($index));
<ide> }
<ide>
<del> // If all we are left with is an empty string, we will return a single forward
<del> // slash indicating the request is to the root of the application. If we have
<del> // something ... | 1 |
Text | Text | add language meta | 015dc51fe35f758b70a3066298dff6ae917c11ba | <ide><path>model_cards/neuralmind/bert-base-portuguese-cased/README.md
<add>---
<add>language: pt
<add>---
<add>
<add>## bert-base-portuguese-cased
<ide>\ No newline at end of file
<ide><path>model_cards/neuralmind/bert-large-portuguese-cased/README.md
<add>---
<add>language: pt
<add>---
<add>
<add>## bert-large-portug... | 2 |
Text | Text | add pointer to website repository | c93627fe2a6f136ab83bd36292d917d6c09432bc | <ide><path>docs/README.md
<del>Ember Documentation
<del>========================
<add># Ember Documentation
<add>
<add>## Building the Documentation
<ide>
<ide> Generating the Ember documentation requires node.js, as well as the port of jsdoc-toolkit to node, located [here](https://github.com/p120ph37/node-jsdoc-toolk... | 1 |
Python | Python | bugfix parser labels | fd36469900da4c34f3d7b6c5400f05d8df73db8d | <ide><path>spacy/tests/training/test_rehearse.py
<ide> def _optimize(nlp, component: str, data: List, rehearse: bool):
<ide> elif component == "tagger":
<ide> _add_tagger_label(pipe, data)
<ide> elif component == "parser":
<del> _add_tagger_label(pipe, data)
<add> _add_parser_label(pipe, d... | 1 |
Python | Python | fix naming collisions in schema generation | d138f30a86c98346e3c37eab330e4a1c9d5e732c | <ide><path>rest_framework/schemas/generators.py
<ide> def is_api_view(callback):
<ide> return (cls is not None) and issubclass(cls, APIView)
<ide>
<ide>
<add>INSERT_INTO_COLLISION_FMT = """
<add>Schema Naming Collision.
<add>
<add>coreapi.Link for URL path {value_url} cannot be inserted into schema.
<add>Position... | 2 |
Ruby | Ruby | use selected_migrations if block_given? | 4d4db4c86163c9b3fd242db543007bc3adf2d115 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def down(target_version = nil)
<ide> migrations
<ide> end
<ide>
<del> Migrator.new(:down, migrations, target_version).migrate
<add> Migrator.new(:down, selected_migrations, target_version).migrate
<ide> end
<ide>
<ide> def ru... | 1 |
Text | Text | add missing semicolon in nativemodulesios.md | b11dc3943070f2f35bb34d5ce61c2aa83435574b | <ide><path>docs/NativeModulesIOS.md
<ide> You can then define methods and export your enum constants like this:
<ide> {
<ide> return @{ @"statusBarAnimationNone" : @(UIStatusBarAnimationNone),
<ide> @"statusBarAnimationFade" : @(UIStatusBarAnimationFade),
<del> @"statusBarAnimationSlide" : @(UI... | 1 |
Text | Text | fix typos in primitives article | db03724dabebb84107fa85bc392d57212f5672aa | <ide><path>threejs/lessons/threejs-primitives.md
<ide> are generally 3D shapes that are generated at runtime
<ide> with a bunch of parameters.
<ide>
<ide> It's common to use primitives for things like a sphere
<del>for globe or a bunch of boxes to draw a 3D graph. It's
<add>for a globe or a bunch of boxes to draw a 3D... | 1 |
PHP | PHP | clarify doc block | 5d91e3ee2235a6748394b2d3ae98bf7e78616efa | <ide><path>src/Http/ServerRequest.php
<ide> public function getEnv($key, $default = null)
<ide> }
<ide>
<ide> /**
<del> * Set a value to the request's environment data.
<add> * Update the request with a new environment data element.
<add> *
<add> * Returns an updated request object. This method... | 1 |
Javascript | Javascript | fix installation formatting | 05d2703b4ed9191f58b1b899be52b4259e611acc | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.$ComponentControllerProvider = ['$compileProvider', function($compi
<ide> *
<ide> * @installation
<ide> *
<del> * <p>First, download the file:</p>
<del> * <ul>
<del> <li>
<del> <a href="https://developers.google.com/speed/libraries/devguide#angu... | 1 |
Python | Python | add lemma rules | 2eb163c5dd675c2e7a9cedb5d6868545833cbf34 | <ide><path>spacy/en/lemma_rules.py
<add># encoding: utf8
<add>from __future__ import unicode_literals
<add>
<add>
<add>LEMMA_RULES = {
<add> "noun": [
<add> ["s", ""],
<add> ["ses", "s"],
<add> ["ves", "f"],
<add> ["xes", "x"],
<add> ["zes", "z"],
<add> ["ches", "ch"],
<add>... | 1 |
Python | Python | update the ner tf script | d38bbb225f7b847e8be4e969cb9b40e7e4d798a6 | <ide><path>examples/ner/run_tf_ner.py
<ide> def train(
<ide> writer = tf.summary.create_file_writer("/tmp/mylogs")
<ide>
<ide> with strategy.scope():
<del> loss_fct = tf.keras.losses.SparseCategoricalCrossentropy(reduction=tf.keras.losses.Reduction.NONE)
<add> loss_fct = tf.keras.losses.SparseCat... | 2 |
Python | Python | remove some legacy features | 0c8e6319cff0b0b723aa1a7b8d8a0b3628558848 | <ide><path>keras/backend/__init__.py
<ide> from .common import image_data_format
<ide> from .common import set_image_data_format
<ide> from .common import is_keras_tensor
<del>from .common import legacy_weight_ordering
<del>from .common import set_legacy_weight_ordering
<ide>
<ide> _keras_base_dir = os.path.expanduser... | 4 |
Java | Java | add connect/read timeout to netty requestfactory | e24ebd6dbb1b2e3d5ce25c275c3ce900ddf8869b | <ide><path>spring-web/src/main/java/org/springframework/http/client/Netty4ClientHttpRequestFactory.java
<ide>
<ide> import java.io.IOException;
<ide> import java.net.URI;
<add>import java.net.URLConnection;
<add>import java.util.concurrent.TimeUnit;
<ide>
<ide> import io.netty.bootstrap.Bootstrap;
<add>import io.nett... | 1 |
Mixed | Ruby | remove jobs from queue when performing in tests | c6d621d132b8075698e451581e36381fee610e61 | <ide><path>activejob/CHANGELOG.md
<add>* `ActiveJob::TestCase#perform_enqueued_jobs` without a block removes performed jobs from the queue.
<add>
<add> That way the helper can be called multiple times and not perform a job invocation multiple times.
<add>
<add> ```ruby
<add> def test_jobs
<add> HelloJob... | 3 |
PHP | PHP | remove unnecessary $key in foreach | d43f114b02133269e9c2571169e11deb1c456921 | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function getMethodDependencies($callback, array $parameters = [])
<ide> {
<ide> $dependencies = [];
<ide>
<del> foreach ($this->getCallReflector($callback)->getParameters() as $key => $parameter) {
<add> foreach ($this->getCall... | 1 |
Python | Python | add xfail test for deprojectivization sbd bug | 6cd920e088d0a755644e380807db61a472a03eae | <ide><path>spacy/tests/regression/test_issue2772.py
<add>'''Test that deprojectivization doesn't mess up sentence boundaries.'''
<add>import pytest
<add>from ...syntax.nonproj import projectivize, deprojectivize
<add>from ..util import get_doc
<add>
<add>@pytest.mark.xfail
<add>def test_issue2772(en_vocab):
<add> wo... | 1 |
Javascript | Javascript | set default path inside of project.replace | e14ffb94203d42fb5ca034965635868ee5aae483 | <ide><path>src/main-process/atom-application.js
<ide> class AtomApplication extends EventEmitter {
<ide> }
<ide>
<ide> let openedWindow
<del> if (existingWindow && projectSpecification.paths == null && projectSpecification.config == null) {
<add> if (existingWindow && (projectSpecification == null || pro... | 3 |
Ruby | Ruby | move download strategies into their own file | 72bde8c583f51d746b138161c6e84bde98d13c83 | <ide><path>Library/Homebrew/brewkit.rb
<ide> #
<ide> require 'osx/cocoa' # to get number of cores
<ide> require 'formula'
<add>require 'download_strategy'
<ide> require 'hw.model'
<ide>
<ide> ENV['MACOSX_DEPLOYMENT_TARGET']='10.5'
<ide><path>Library/Homebrew/download_strategy.rb
<add># Copyright 2009 Max Howell <max@... | 4 |
Python | Python | add api endpoint - dagruns batch | 5ddbbf1f59cf7f5999c3a872d4a14adab8427435 | <ide><path>airflow/api_connexion/endpoints/dag_run_endpoint.py
<ide> # under the License.
<ide> from connexion import NoContent
<ide> from flask import request
<add>from marshmallow import ValidationError
<ide> from sqlalchemy import and_, func
<ide>
<del>from airflow.api_connexion.exceptions import AlreadyExists, Not... | 3 |
Javascript | Javascript | fix broken link | 28cf179171b02caada7d61f2c4b8c542aa3ad4cc | <ide><path>website/layout/AutodocsLayout.js
<ide> var ComponentDoc = React.createClass({
<ide> {(style.composes || []).map((name) => {
<ide> var link;
<ide> if (name === 'LayoutPropTypes') {
<del> name = 'Flexbox';
<add> name = 'Layout Props';
<ide> link =
<... | 1 |
Ruby | Ruby | use json to marshal errors from children | 5c90833f0a16e9326750959aec91d779b889ceca | <ide><path>Library/Homebrew/build.rb
<ide> require "debrew"
<ide> require "fcntl"
<ide> require "socket"
<add>require "json"
<add>require "json/add/core"
<ide>
<ide> class Build
<ide> attr_reader :formula, :deps, :reqs
<ide> def fixopt(f)
<ide> build = Build.new(formula, options)
<ide> build.install
<ide> resc... | 7 |
Text | Text | resolve merge conflict, attempt 3 | 319a8a241e0b9182ea309b886e2d23e2f4d73c6c | <ide><path>docs/sources/articles/https.md
<ide> page_title: Docker HTTPS Setup
<del>page_description: How to setup docker with https
<add>page_description: How to set Docker up with https
<ide> page_keywords: docker, example, https, daemon
<ide>
<ide> # Running Docker with https
<ide>
<ide> By default, Docker runs vi... | 1 |
Go | Go | remove explicit set of memberlist protocol | da9ac65ea65e4badf1be178a026abe0c7de91c98 | <ide><path>libnetwork/networkdb/cluster.go
<ide> func (nDB *NetworkDB) clusterInit() error {
<ide> config.BindPort = nDB.config.BindPort
<ide> }
<ide>
<del> config.ProtocolVersion = memberlist.ProtocolVersionMax
<add> config.ProtocolVersion = memberlist.ProtocolVersion2Compatible
<ide> config.Delegate = &delegate{... | 1 |
Javascript | Javascript | add rntester example for nested text | 67af1b8218c4bca43d8fce32ae99b9d76d6fc364 | <ide><path>packages/rn-tester/js/examples/Text/TextExample.android.js
<ide> class TextExample extends React.Component<{...}> {
<ide> <Text style={{fontSize: 12}}>
<ide> <Entity>Entity Name</Entity>
<ide> </Text>
<add> <Text style={{fontSize: 8}}>
<add> Nested text wit... | 1 |
Javascript | Javascript | keep withcredentials on passthrough | 3079a6f4e097a777414b8c3a8a87b8e1e20b55b5 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $delegate, $browser) {
<ide> }
<ide>
<ide> // TODO(vojta): change params to: method, url, data, headers, callback
<del> function $httpBackend(method, url, data, callback, headers, timeout) {
<add> function $httpBackend(method... | 2 |
PHP | PHP | fix whitespace error | e2781a536adc9491e363e2c79d2da9a417778a0d | <ide><path>lib/Cake/Error/exceptions.php
<ide> public function __construct($message, $code = 500) {
<ide> }
<ide> parent::__construct($message, $code);
<ide> }
<add>
<ide> }
<ide>
<ide> /** | 1 |
Java | Java | use write aggregator from databufferutils | 8a129ef3daf8a28728314905d4b843a4129d9a87 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 10 |
Java | Java | move backpressureutils to subscription | 53b76e90fc5b3ad954439241ee85acd8209c5fca | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/support/AbstractRawByteStreamDecoder.java
<ide> import org.reactivestreams.Subscriber;
<ide> import reactor.Flux;
<ide> import reactor.core.subscriber.SubscriberBarrier;
<del>import reactor.core.support.BackpressureUtils;
<add>import reactor.co... | 3 |
Ruby | Ruby | expect xcode 8.0 on os x 10.11 | 860f4bd11ff06e5875756991e423f33f9ae4f0c8 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> when "10.8" then "5.1.1"
<ide> when "10.9" then "6.2"
<ide> when "10.10" then "7.2.1"
<del> when "10.11" then "7.3.1"
<add> when "10.11" then "8.0"
<ide> when "10.12" then "8.0"
<ide> else
... | 1 |
Ruby | Ruby | fix hg strategy under stdenv | cc932ca6681df313149985066f15a7bed516bc21 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def initialize name, package
<ide> def cached_location; @clone; end
<ide>
<ide> def hgpath
<del> @path ||= if which "hg"
<del> 'hg'
<del> else
<del> "#{HOMEBREW_PREFIX}/bin/hg"
<del> end
<add> @path ||= (which "hg" || "#{HOMEBREW_PREFIX}/... | 1 |
Java | Java | create cxx binding | e155e78451ec4e736169dbd6889919d9283d3806 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java
<add>/**
<add> * Copyright (c) 2014-present, Facebook, Inc.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> */
<add>
<add>package com.fa... | 4 |
Text | Text | update es6 class documentation with binding perf | fb13cf55feb3391af30fb8c9e45b6c2aec40c6ae | <ide><path>docs/docs/05-reusable-components.md
<ide> export class Counter extends React.Component {
<ide> constructor(props) {
<ide> super(props);
<ide> this.state = {count: props.initialCount};
<add> this.tick = this.tick.bind(this);
<ide> }
<ide> tick() {
<ide> this.setState({count: this.state.co... | 1 |
Ruby | Ruby | fix typo in ar store docs [ci skip] | 2fd095507c2d48fdd24c8d2d060d1d01168e1d23 | <ide><path>activerecord/lib/active_record/store.rb
<ide> module ActiveRecord
<ide> # JSON, YAML, Marshal are supported out of the box. Generally it can be any wrapper that provides +load+ and +dump+.
<ide> #
<ide> # NOTE - If you are using special PostgreSQL columns like +hstore+ or +json+ there is no need for
<d... | 1 |
Python | Python | change the page title to prioritize page content | e5caf48a12e777df3e5801fa19d98f59b6453aa2 | <ide><path>mkdocs.py
<ide> if filename == 'index.md':
<ide> main_title = 'Django REST framework - APIs made easy'
<ide> else:
<del> main_title = 'Django REST framework - ' + main_title
<add> main_title = main_title + ' - Django REST framework'
<ide>
<ide> if re... | 1 |
Go | Go | use exportchanges() in runtime.diff() | d69a6a20f0b6657821638ee591920d071a784b0e | <ide><path>archive/changes.go
<ide> func ChangesDirs(newDir, oldDir string) ([]Change, error) {
<ide> return newRoot.Changes(oldRoot), nil
<ide> }
<ide>
<del>func ExportChanges(root, rw string) (Archive, error) {
<del> changes, err := ChangesDirs(root, rw)
<del> if err != nil {
<del> return nil, err
<del> }
<add>fun... | 2 |
Javascript | Javascript | fix disabled behavior | 33ff4445dcf858cd5e6ba899163fd2a76774b641 | <ide><path>Libraries/Text/Text.js
<ide> const Text: React.AbstractComponent<
<ide> const [isHighlighted, setHighlighted] = useState(false);
<ide>
<ide> const isPressable =
<del> onPress != null || onLongPress != null || onStartShouldSetResponder != null;
<add> (onPress != null ||
<add> onLongPress != nu... | 1 |
Javascript | Javascript | add support for commonjs module definition | 477e09f1d406b71f0c3f8990da7d0037c427125f | <ide><path>Chart.js
<ide> define(function(){
<ide> return Chart;
<ide> });
<add> } else if (typeof module === 'object' && module.exports) {
<add> module.exports = Chart;
<ide> }
<ide>
<ide> root.Chart = Chart;
<ide><path>Chart.min.js
<ide> * Released under the MIT license
<ide> * https://github.com/nnnick/... | 3 |
PHP | PHP | accomodate older versions of sqlite | 8fe26ed4ae9d19a1d3063a2fd1e8e3a5d9f16c66 | <ide><path>src/Database/Schema/SqliteSchema.php
<ide> public function describeForeignKeySql($tableName, $config)
<ide> */
<ide> public function convertForeignKeyDescription(Table $table, $row)
<ide> {
<add> $update = isset($row['on_update']) ? $row['on_update'] : '';
<add> $delete = isset($ro... | 1 |
Javascript | Javascript | clarify names within map impl | dffd85498f49cedca85cae1098709806792d335c | <ide><path>dist/immutable.js
<ide> var $BitmapIndexedNode = BitmapIndexedNode;
<ide> if (newNode === node) {
<ide> return this;
<ide> }
<del> if (!exists && newNode && nodes.length >= MAX_BITMAP_SIZE) {
<add> if (!exists && newNode && nodes.length >= MIN_BITMAP_INDEXED_SIZE) {
<ide> return exp... | 2 |
Ruby | Ruby | remove unreachable code | 7816bfff21876e663aab757dc0c04c442ea05827 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> class AppGenerator < AppBase # :nodoc:
<ide> def initialize(*args)
<ide> super
<ide>
<del> unless app_path
<del> raise Error, "Application name should be provided in arguments. For details run: rails --help"
<del> ... | 2 |
Text | Text | make link more specific in guide doc | 52b5fff5370314a392dd446af5f9dead92d19452 | <ide><path>docs/upgrading/upgrading-your-ui-theme.md
<ide> Inside a context-targeted style sheet, there's no need to use the `::shadow` or
<ide> During the transition phase, style sheets targeting the `atom-text-editor` context will *also* be loaded globally. Make sure you update your selectors in a way that maintains ... | 1 |
Text | Text | move mmarchini to emeritus | 98e9499b55fbc63b2b3db79507ee1475302f9763 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
<ide> * [mhdawson](https://github.com/mhdawson) -
<ide> **Michael Dawson** <<midawson@redhat.com>> (he/him)
<del>* [mmarchini](https://github.com/mmarchini) -
<d... | 2 |
Javascript | Javascript | ensure case-insens. header overriding | 53359d549e364759d5b382c229f7d326799bf418 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> transformRequest: defaults.transformRequest,
<ide> transformResponse: defaults.transformResponse
<ide> };
<del> var headers = {};
<add> var headers = mergeHeaders(requestConfig);
<ide>
<ide> extend(config, requestCon... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.