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 | move dependency logic out of generated methods | ea8181b65637af65db5bb834f1c86df57969516e | <ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb
<ide> module ActiveRecord
<ide> # = Active Record Belongs To Associations
<ide> module Associations
<ide> class BelongsToAssociation < SingularAssociation #:nodoc:
<add>
<add> def handle_dependency
<add> target.send(opt... | 7 |
Text | Text | use code markup/markdown in headers | fe4a7a21833dac765739456a9ae18cd1613bacc1 | <ide><path>doc/api/https.md
<ide> HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
<ide> separate module.
<ide>
<del>## Class: https.Agent
<add>## Class: `https.Agent`
<ide> <!-- YAML
<ide> added: v0.4.5
<ide> changes:
<ide> changes:
<ide> An [`Agent`][] object for HTTPS similar to [`http.A... | 1 |
Python | Python | improve announce tool | a000f9bc517a7334dd3f3fce5ef3c593910d42eb | <ide><path>tools/announce.py
<ide> names contributed a patch for the first time.
<ide> """
<ide>
<add>pull_request_msg =\
<add>u"""
<add>A total of %d pull requests were merged for this release.
<add>"""
<ide>
<ide> def get_authors(revision_range):
<ide> pat = u'.*\\t(.*)\\n'
<ide> lst_release, cur_release = ... | 1 |
Mixed | Ruby | improve a dump of the primary key support | 3628025c0dea3e08ea386700ec5eea27a26ce5d6 | <ide><path>activerecord/CHANGELOG.md
<add>* Improve a dump of the primary key support. If it is not a default primary key,
<add> correctly dump the type and options.
<add>
<add> Fixes #14169, #16599.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Provide `:touch` option to `save()` to accommodate saving withou... | 7 |
Javascript | Javascript | add an author | d22e472012f1c3891ee450c8ed5b26ec75f1432d | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> * @author Rich Tibbett / https://github.com/richtr
<ide> * @author mrdoob / http://mrdoob.com/
<ide> * @author Tony Parisi / http://www.tonyparisi.com/
<add> * @author Takahiro / https://github.com/takahirox
<ide> */
<ide>
<ide> THREE.GLTFLoader = ( function () { | 1 |
Ruby | Ruby | handle conflicts where links point at symlinks | 1eafe3bc354626b3d54164c263a5c57313d8eeeb | <ide><path>Library/Homebrew/keg.rb
<ide> def delete_pyc_files!
<ide> private
<ide>
<ide> def resolve_any_conflicts dst, mode
<del> # if it isn't a directory then a severe conflict is about to happen. Let
<del> # it, and the exception that is generated will message to the user about
<del> # the situation
<... | 2 |
Mixed | Text | adjust documentation for `devel` deprecation | 1eefc4c5846a7035e7ab42435a86db12c7871a02 | <ide><path>Library/Homebrew/formula.rb
<ide> def stable(&block)
<ide> # depends_on "cairo"
<ide> # depends_on "pixman"
<ide> # end</pre>
<add> # @private
<ide> def devel(&block)
<ide> @devel ||= SoftwareSpec.new
<ide> return @devel unless block_given?
<ide> def head(val = nil, specs =... | 3 |
Javascript | Javascript | move actiontypes to a private export | b62248bdb46ea2491d9bf4d7d4cc88849d49176d | <ide><path>src/combineReducers.js
<del>import { ActionTypes } from './createStore'
<add>import ActionTypes from './utils/actionTypes'
<ide> import isPlainObject from 'lodash/isPlainObject'
<ide> import warning from './utils/warning'
<ide>
<ide><path>src/createStore.js
<ide> import isPlainObject from 'lodash/isPlainObj... | 4 |
Java | Java | return sslinfo only if x509certificate[] present | 1e4a3a2370b9ded44a62155aea59c0d81c36149f | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultSslInfo.java
<ide> final class DefaultSslInfo implements SslInfo {
<ide> private final X509Certificate[] peerCertificates;
<ide>
<ide>
<del> DefaultSslInfo(String sessionId, X509Certificate[] peerCertificates) {
<add> DefaultSslInfo(... | 2 |
PHP | PHP | fix errors in mailer | 9aeded6ff52471144c039c0400bca71d42953d2e | <ide><path>src/Mailer/TransportRegistry.php
<ide> protected function _throwMissingClassError(string $class, ?string $plugin): void
<ide> protected function _create($class, string $alias, array $config): AbstractTransport
<ide> {
<ide> $instance = null;
<del>
<ide> if (is_object($class)) {
<ide> ... | 1 |
PHP | PHP | remove dead code | eec011e99e071b7460ded64e6253283d342bd1ad | <ide><path>src/TestSuite/TestCase.php
<ide> public function tearDown() {
<ide> Configure::clear();
<ide> Configure::write($this->_configure);
<ide> }
<del> if (isset($_GET['debug']) && $_GET['debug']) {
<del> ob_flush();
<del> }
<del> }
<del>
<del>/**
<del> * See Cake\TestSuite\TestSuiteDispatcher::date()
<... | 1 |
Text | Text | add 2.8.0-beta.1 to changelog.md | 14eb40ce1d55faa282f3da90dbdcd227fd16db88 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.8.0-beta.1 (July 25, 2016)
<add>
<add>- [#13757](https://github.com/emberjs/ember.js/pull/13757) / [#13773](https://github.com/emberjs/ember.js/pull/13773) [CLEANUP] Remove legacy view layer features.
<add>- [#13819](https://github.com/emberjs/ember.js/p... | 1 |
PHP | PHP | move the location of some storage files | cfa7fcb60fd60b3870606c910559e67186a7a8a8 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function runningUnitTests()
<ide> */
<ide> public function registerConfiguredProviders()
<ide> {
<del> $manifestPath = $this->storagePath().DIRECTORY_SEPARATOR.'framework'.DIRECTORY_SEPARATOR.'services.json';
<add> $manifestPath = $this->basePath()... | 3 |
Javascript | Javascript | fix 0.15 compatibility | f8335168b6257a8e908c2e9d4529134da5748fee | <ide><path>src/renderers/native/ReactNative/ReactNativeBaseComponent.js
<ide> ReactNativeBaseComponent.Mixin = {
<ide> return this;
<ide> },
<ide>
<del> construct: function(element) {
<del> this._currentElement = element;
<del> },
<del>
<ide> unmountComponent: function() {
<ide> deleteAllListeners(thi... | 4 |
Ruby | Ruby | parse <css> block as code (used in engines guide) | c46374a9d949004761d71570a4d703838c694e74 | <ide><path>guides/rails_guides/textile_extensions.rb
<ide> def brush_for(code_type)
<ide> end
<ide>
<ide> def code(body)
<del> body.gsub!(%r{<(yaml|shell|ruby|erb|html|sql|plain)>(.*?)</\1>}m) do |m|
<add> body.gsub!(%r{<(yaml|shell|ruby|erb|html|sql|css|plain)>(.*?)</\1>}m) do |m|
<ide> <<HT... | 1 |
Javascript | Javascript | add test for messageport.onmessage | f5db04dcbdaf64b95bd6ca670224d2a9aec31a28 | <ide><path>test/parallel/test-worker-onmessage.js
<add>// Flags: --experimental-worker
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const { Worker, isMainThread, parentPort } = require('worker_threads');
<add>
<add>if (isMainThread) {
<add> const w = new Work... | 1 |
PHP | PHP | allow easier extending of url generator | ab675d4718e7bd587ae91deb7231f90d34df5786 | <ide><path>src/Illuminate/Routing/RoutingServiceProvider.php
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide> use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
<ide> use Illuminate\Contracts\View\Factory as ViewFactoryContract;
<add>use Illuminate\Contracts\Routing\UrlGenerator as UrlGeneratorContract... | 1 |
Python | Python | add a toy test in inspect | a0ae03a54e4f0e7c96aa00040b95629623fd373d | <ide><path>numpy/lib/inspect.py
<ide> def stack(context=1):
<ide> def trace(context=1):
<ide> """Return a list of records for the stack below the current exception."""
<ide> return getinnerframes(sys.exc_info()[2], context)
<add>
<add>if __name__ == '__main__':
<add> import inspect
<add> def foo(x, y, z=N... | 1 |
Go | Go | add dep to test | 65aba0c9d6a72fc89f87c328e9ca21e20bf3cf7a | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildEmptyStringVolume(c *check.C) {
<ide>
<ide> func TestBuildContainerWithCgroupParent(t *testing.T) {
<ide> testRequires(t, NativeExecDriver)
<add> testRequires(t, SameHostDaemon)
<ide> defer deleteImages()
<ide>
<ide> cgroupPar... | 1 |
Javascript | Javascript | remove conda from nightly install widget [ci skip] | 448bfbdc30a29225547562e3f222c08565b50021 | <ide><path>website/src/widgets/quickstart-install.js
<ide> const CUDA = {
<ide> '11.0': 'cuda110',
<ide> }
<ide> const LANG_EXTRAS = ['ja'] // only for languages with models
<del>const DATA = [
<del> {
<del> id: 'os',
<del> title: 'Operating system',
<del> options: [
<del> { id: '... | 1 |
Ruby | Ruby | add audit tests for migrated audit exception lists | b0d10fdf28869e1f599e5e97ce2e9a1a8573d9a9 | <ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb
<ide> class Foo < Formula
<ide> end
<ide> end
<ide>
<add> describe "#audit_specs" do
<add> let(:throttle_list) { { throttled_formulae: { "foo" => 10 } } }
<add> let(:versioned_head_spec_list) { { versioned_head_spec_allowlist: ["foo"] } }
<a... | 1 |
Ruby | Ruby | introduce nodeexpression as parent of scalar nodes | 2d78e3a160068d7a024e30b2178084d16cea9807 | <ide><path>lib/arel/nodes.rb
<ide> # frozen_string_literal: true
<ide> # node
<ide> require 'arel/nodes/node'
<add>require 'arel/nodes/node_expression'
<ide> require 'arel/nodes/select_statement'
<ide> require 'arel/nodes/select_core'
<ide> require 'arel/nodes/insert_statement'
<ide><path>lib/arel/nodes/binary.rb
<ide>... | 15 |
Ruby | Ruby | convert compilerselector test to spec | ca4fba99c417437aca2efb36cc3c89e871d5f5a0 | <ide><path>Library/Homebrew/test/compiler_selector_spec.rb
<add>require "compilers"
<add>require "software_spec"
<add>
<add>describe CompilerSelector do
<add> subject { described_class.new(software_spec, versions, compilers) }
<add> let(:compilers) { [:clang, :gcc, :llvm, :gnu] }
<add> let(:software_spec) { Software... | 2 |
Python | Python | fix data type | bd2621583be21889aa21a763ce3ae3d8c69e4358 | <ide><path>src/transformers/modeling_utils.py
<ide> def get_extended_attention_mask(self, attention_mask: Tensor, input_shape: Tuple
<ide> seq_ids = torch.arange(seq_length, device=device)
<ide> causal_mask = seq_ids[None, None, :].repeat(batch_size, seq_length, 1) <= seq_ids[None, :, No... | 1 |
Python | Python | add empty line | 32867f40629b3b28637215e72da8d0f902eddda4 | <ide><path>official/projects/longformer/longformer_encoder_test.py
<ide>
<ide> @keras_parameterized.run_all_keras_modes
<ide> class LongformerEncoderTest(keras_parameterized.TestCase):
<add>
<ide> @combinations.generate(combinations.combine(
<ide> attention_window=[32, 128], global_attention_size=[0, 1, 2]))... | 1 |
Java | Java | use a timeout != 0 in invocablehandlermethodtests | 23e617160f196cd258ad36b2e908aeb58e50d340 | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java
<ide> */
<ide> public class InvocableHandlerMethodTests {
<ide>
<add> private static final Duration TIMEOUT = Duration.ofSeconds(5);
<add>
<add>
<ide> private final MockServerWebExchange exchange =... | 1 |
Javascript | Javascript | expose ecdh class | 26174fcfe1992f256b78f8053a1f2b02e545d4b1 | <ide><path>lib/crypto.js
<ide> const {
<ide> } = require('internal/crypto/util');
<ide> const Certificate = require('internal/crypto/certificate');
<ide>
<del>function createECDH(curve) {
<del> return new ECDH(curve);
<del>}
<del>
<ide> module.exports = exports = {
<ide> // Methods
<ide> _toBuf: toBuf,
<ide> modu... | 3 |
Text | Text | add ref docs for node label | 9594ac97ce0c6e0777716be2a35b47208d440e8e | <ide><path>docs/reference/commandline/node_update.md
<ide> Options:
<ide> --role string Role of the node (worker/manager)
<ide> ```
<ide>
<add>### Add label metadata to a node
<add>
<add>Add metadata to a swarm node using node labels. You can specify a node label as
<add>a key with an empty value:
<add... | 2 |
Python | Python | parse arguments from dict | 838dc06ff5a438159ac25f531d622e8f344476f5 | <ide><path>src/transformers/hf_argparser.py
<ide> def parse_json_file(self, json_file: str) -> Tuple[DataClass, ...]:
<ide> obj = dtype(**inputs)
<ide> outputs.append(obj)
<ide> return (*outputs,)
<add>
<add> def parse_dict(self, args: dict) -> Tuple[DataClass, ...]:
<add> """
... | 2 |
Python | Python | fix postgresql failing on a test | a589fdff81ab36c57ff0a1003e60ee0dd55f3a88 | <ide><path>tests/modeltests/schema/tests.py
<ide> def test_creation_deletion(self):
<ide> DatabaseError,
<ide> lambda: list(Author.objects.all()),
<ide> )
<add> connection.rollback()
<ide>
<ide> @skipUnless(connection.features.supports_foreign_keys, "No FK support")
<ide> ... | 1 |
Javascript | Javascript | reslove urls with . and . | faa687b4be2cea71c545cc1bec631c164b608acd | <ide><path>lib/url.js
<ide> Url.prototype.resolveObject = function(relative) {
<ide> // then it must NOT get a trailing slash.
<ide> var last = srcPath.slice(-1)[0];
<ide> var hasTrailingSlash = (
<del> (result.host || relative.host) && (last === '.' || last === '..') ||
<del> last === '');
<add> (... | 2 |
Javascript | Javascript | remove unused test case | 26a1916633e7e719b6bc2e39c60a7445aa163359 | <ide><path>test/configCases/parsing/harmony-reexport/webpack.config.js
<del>/** @type {import("../../../../").Configuration} */
<del>module.exports = {
<del> optimization: {
<del> usedExports: true,
<del> providedExports: true
<del> }
<del>}; | 1 |
Javascript | Javascript | reduce db calls, run in parallel | 750c9f1eabb7b6ab83e238f2eea5cd42ac17b80e | <ide><path>common/models/Access-Token.js
<ide> module.exports = AccessToken => {
<ide> AccessToken.findOne$ = Observable.fromNodeCallback(
<ide> AccessToken.findOne.bind(AccessToken)
<ide> );
<add> AccessToken.prototype.validate$ = Observable.fromNodeCallback(
<add> AccessToken.prototype.validate
... | 6 |
Text | Text | alphabetize error list | 14e98825a1e35f17b03aab22db52bc81e3a3ec94 | <ide><path>doc/api/errors.md
<ide> STDERR/STDOUT, and the data's length is longer than the `maxBuffer` option.
<ide> `Console` was instantiated without `stdout` stream, or `Console` has a
<ide> non-writable `stdout` or `stderr` stream.
<ide>
<del><a id="ERR_CONTEXT_NOT_INITIALIZED"></a>
<del>### `ERR_CONTEXT_NOT_INITI... | 1 |
Javascript | Javascript | improve writable.write() performance | 43783b5b3fa0a0d477ae34aeb0405956fb534dc4 | <ide><path>lib/_stream_writable.js
<ide> Writable.prototype.pipe = function() {
<ide>
<ide> Writable.prototype.write = function(chunk, encoding, cb) {
<ide> const state = this._writableState;
<del> var ret = false;
<ide> const isBuf = !state.objectMode && Stream._isUint8Array(chunk);
<ide>
<ide> // Do not use ... | 1 |
PHP | PHP | use func_num_args(). | 74252d15d8c22be664934b251c52ff3c98147740 | <ide><path>src/Illuminate/View/Concerns/ManagesComponents.php
<ide> protected function componentData($name)
<ide> */
<ide> public function slot($name, $content = null)
<ide> {
<del> if (count(func_get_args()) === 2) {
<add> if (func_num_args() === 2) {
<ide> $this->slots[$this->cu... | 1 |
Ruby | Ruby | fix another rack spec violation | 27902c7e96de6913c237c3b0487d4beeef848689 | <ide><path>actionpack/test/controller/new_base/middleware_test.rb
<ide> def setup
<ide>
<ide> test "middleware that is 'use'd is called as part of the Rack application" do
<ide> result = @app.call(env_for("/"))
<del> assert_equal ["Hello World"], result[2]
<add> assert_equal ["Hello World"], [].tap... | 1 |
Go | Go | add layer id to naivediffdriver untar timing log | 3b4df3d146c8c1fcc7a2916e4c88134c664de7af | <ide><path>daemon/graphdriver/fsdiff.go
<ide> func (gdw *NaiveDiffDriver) ApplyDiff(id, parent string, diff io.Reader) (size i
<ide> options := &archive.TarOptions{UIDMaps: gdw.uidMaps,
<ide> GIDMaps: gdw.gidMaps}
<ide> start := time.Now().UTC()
<del> logrus.Debug("Start untar layer")
<add> logrus.WithField("id", i... | 1 |
PHP | PHP | move optionparser initialization out of try block | fba17cffe969ab18ab5245bd97849d1ecd8a30e6 | <ide><path>lib/Cake/Console/Shell.php
<ide> public function runCommand($command, $argv) {
<ide> array_shift($argv);
<ide> }
<ide>
<add> $this->OptionParser = $this->getOptionParser();
<ide> try {
<del> $this->OptionParser = $this->getOptionParser();
<ide> list($this->params, $this->args) = $this->OptionPa... | 1 |
Text | Text | add protocol option in http2.connect() | 470511ae781f152ac53a192c7bb0f395c972d200 | <ide><path>doc/api/http2.md
<ide> changes:
<ide> streams for the remote peer as if a `SETTINGS` frame had been received. Will
<ide> be overridden if the remote peer sets its own value for
<ide> `maxConcurrentStreams`. **Default:** `100`.
<add> * `protocol` {string} The protocol to connect with, if not set ... | 1 |
PHP | PHP | add tests for issue #104 | 8cadac3ee551336e273984edd3e32317efb8898e | <ide><path>lib/Cake/Test/Case/Utility/Set2Test.php
<ide> public function testExtractAttributePattern() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add>/**
<add> * Test that uneven keys are handled correctly.
<add> *
<add> * @return void
<add> */
<add> public function testExtractUnevenKeys() {
<a... | 2 |
Javascript | Javascript | remove redundant userheight | f19cfa30688ec4bf0df96728e80eed0a7bdc5747 | <ide><path>examples/js/vr/ViveController.js
<ide> THREE.ViveController = function ( id ) {
<ide> if ( pose.position !== null ) scope.position.fromArray( pose.position );
<ide> if ( pose.orientation !== null ) scope.quaternion.fromArray( pose.orientation );
<ide> scope.matrix.compose( scope.position, scope.quat... | 2 |
Ruby | Ruby | optimize the common case | d5695001f1a7316ed1bb7886c1ff0b6aea95c944 | <ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb
<ide> module Util
<ide> JSON_ESCAPE_REGEXP = /[\u2028\u2029&><]/u
<ide>
<ide> # Following XML requirements: https://www.w3.org/TR/REC-xml/#NT-Name
<del> TAG_NAME_START_REGEXP_SET = "@:A-Z_a-z\u{C0}-\u{D6}\u{D8}-\u{F6}\u{F8}-\u{2FF}... | 2 |
Javascript | Javascript | expose api types | 80f67573a1e75aabd69202c75a3ab61e2f197e61 | <ide><path>lib/util/registerExternalSerializer.js
<ide> const {
<ide>
<ide> /** @typedef {import("../Dependency").RealDependencyLocation} RealDependencyLocation */
<ide> /** @typedef {import("../Dependency").SourcePosition} SourcePosition */
<del>/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserial... | 2 |
Text | Text | add docs index to readme.md | fa953bacd8930897dd0fe8b31b25d976bd51ba85 | <ide><path>README.md
<ide> through a more complete [tutorial](https://airflow.apache.org/docs/apache-airflo
<ide> For more information on Airflow Improvement Proposals (AIPs), visit
<ide> the [Airflow Wiki](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals).
<ide>
<del>Official Docker ... | 1 |
Text | Text | add further reading section to bottom | a5175d125ababdcd1a82de0c148b2d4edeaf2228 | <ide><path>guide/english/javascript/es6/for-of/index.md
<ide> for (const para of paragraphs)
<ide> // We can add event listeners to each para here
<ide> }
<ide> ```
<add>
<add>#### More Information
<add>
<add>[ES6 In Depth: Iterators and the for-of loop](https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-... | 1 |
PHP | PHP | add withcookie() & getcookie() | 36b067cf9e5b7da5e579edd49002f8e3de251db0 | <ide><path>src/Network/Response.php
<ide> public function __toString()
<ide> * @param array|null $options Either null to get all cookies, string for a specific cookie
<ide> * or array to set cookie.
<ide> * @return mixed
<add> * @deprecated 3.4.0 Use getCookie() and withCookie() instead.
<ide> ... | 2 |
PHP | PHP | improve exception type | 7d4e9dd357dd3de56c652d9bb94ca72fad78a0d5 | <ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php
<ide> use Cake\Http\Response;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Security;
<add>use InvalidArgumentException;
<ide> use Psr\Http\Message\ResponseInterface;
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide> use Psr\Http\Server\Middleware... | 1 |
Go | Go | add support for partial load | f946782316ea5fa635773587bd4c6da7ecf118b8 | <ide><path>image/tarexport/load.go
<ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer) error {
<ide> if err != nil {
<ide> return err
<ide> }
<del> newLayer, err := l.loadLayer(layerPath, rootFS)
<add> r := rootFS
<add> r.Append(diffID)
<add> newLayer, err := l.ls.Get(r.ChainID(... | 1 |
Python | Python | add support for temporal sample weights | 4922a67f09d5a54bcebc28cfe5baced9981bbeee | <ide><path>keras/models.py
<ide> def weighted(y_true, y_pred, weights, mask=None):
<ide> # to the number of unmasked samples.
<ide> score_array /= K.mean(mask)
<ide>
<del> # reduce score_array to 1D
<add> # reduce score_array to same ndim as weight array
<ide> ndim = K.nd... | 1 |
Text | Text | add "talks" to ecosystem.md | adf8b9a3b14ecc65eb1c30bf7b5840aff2797934 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> * [Handcrafting an Isomorphic Redux Application (With Love)](https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4) — A guide to creating... | 1 |
Python | Python | add --text_column to run_summarization_no_trainer | 64232bc0df7e28f91bdad2b29fca1808089e3dfd | <ide><path>examples/pytorch/summarization/run_summarization_no_trainer.py
<ide> def parse_args():
<ide> default=None,
<ide> help="Pretrained tokenizer name or path if not the same as model_name",
<ide> )
<add> parser.add_argument(
<add> "--text_column",
<add> type=str,
<add> ... | 1 |
Javascript | Javascript | copy files from the react-native repo | f463b731ee5fce75ccf1df43d6174527016a0379 | <ide><path>src/renderers/native/ReactIOS/IOSDefaultEventPluginOrder.js
<add>/**
<add> * Copyright (c) 2015-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 additio... | 35 |
PHP | PHP | add assertions for error codes to routes shell | 7c76081fd1710c82e80732bb3c233fe2c7867e56 | <ide><path>tests/TestCase/Shell/RoutesShellTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Shell;
<ide>
<add>use Cake\Console\Shell;
<ide> use Cake\Routing\Router;
<ide> use Cake\Shell\RoutesShell;
<ide> use Cake\TestSuite\ConsoleIntegrationTestCase;
<ide> public function tearDown()
<ide> Router::reload(... | 1 |
Ruby | Ruby | add ability to run system tests via capybara | 0862cf1bbffe0a3c82e311804244a8cb715332a6 | <ide><path>actionpack/lib/system_test_case.rb
<add>require 'system_testing/base'
<add>
<ide> module Rails
<ide> class SystemTestCase < ActiveSupport::TestCase
<ide> include Rails.application.routes.url_helpers
<add> include SystemTesting::Base
<ide> end
<ide> end
<ide><path>actionpack/lib/system_testing/base... | 6 |
Javascript | Javascript | remove accidental white space | 5e64b96df5b674a9d83ba1bb76d6cf35329c0e08 | <ide><path>src/math/Sphere.js
<ide> Object.assign( Sphere.prototype, {
<ide> return box.intersectsSphere( this );
<ide>
<ide> },
<del>
<add>
<ide> intersectsPlane: function ( plane ) {
<ide>
<ide> return Math.abs( plane.distanceToPoint( this.center ) ) <= this.radius;
<ide>
<ide> },
<ide>
<del>
<ide> clamp... | 1 |
Text | Text | add havan to companies list | 1070435e851ac11b144459801024fb69631ec040 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Handshake](https://joinhandshake.com/) [[@mhickman](https://github.com/mhickman)]
<ide> 1. [Handy](http://www.handy.com/careers/73115?gh_jid=73115&gh_src=o5qcxn) [[@marcintustin](https://github.com/marcintustin) / [@mtustin-handy](https://gith... | 1 |
PHP | PHP | fix an error in collection->random() | 5211c68bbaa791223e3c782c28984c3dc6165136 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function put($key, $value)
<ide> */
<ide> public function random($amount = 1)
<ide> {
<add> if (!count($this->items)) {
<add> return null;
<add> }
<add>
<ide> $keys = array_rand($this->items, $amount);
<ide>
<ide> return is_array($keys) ? arra... | 1 |
Ruby | Ruby | add missing comma | 13f08a2bd4ff3aec13423fa5bb62b6ef08ffa0c4 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def migrate_legacy_repository_if_necessary
<ide> end
<ide>
<ide> unremovable_paths = []
<del> extra_remove_paths = [".git", "Library/Locks", "Library/Taps", "Caskroom"
<add> extra_remove_paths = [".git", "Library/Locks", "Library/Taps", "Caskroom",
<... | 1 |
Python | Python | improve optimizer tests | 69e19b1e03492c54179bf98ea3cab7c7d032cf2b | <ide><path>tests/keras/test_optimizers.py
<ide> def _test_optimizer(optimizer, target=0.9):
<ide> history = model.fit(X_train, y_train, nb_epoch=12, batch_size=16,
<ide> validation_data=(X_test, y_test),
<ide> show_accuracy=True, verbose=2)
<del> return history.his... | 1 |
Ruby | Ruby | fix broken to_ary expectation | 2841a14f4b26e093e88cdb6d84c82d120f53ca46 | <ide><path>activesupport/test/caching_test.rb
<ide> def test_mem_cache_fragment_cache_store_with_given_mem_cache
<ide>
<ide> def test_mem_cache_fragment_cache_store_with_given_mem_cache_like_object
<ide> MemCache.expects(:new).never
<del> store = ActiveSupport::Cache.lookup_store :mem_cache_store, stub("memca... | 1 |
PHP | PHP | improve internal documentation of benchmark class | 3ba3089208dece7255c88b0c4272d62d5a5dad96 | <ide><path>system/benchmark.php
<ide> class Benchmark {
<ide>
<ide> /**
<del> * Benchmark starting times.
<add> * All of the benchmark starting times.
<ide> *
<ide> * @var array
<ide> */
<ide> class Benchmark {
<ide> /**
<ide> * Start a benchmark.
<ide> *
<add> * After starting a benchmark, the elapsed ... | 1 |
Python | Python | fix linter warning | e6f77f8d71eaa68708fde8e7c0a7aebf79a9d1c7 | <ide><path>libcloud/compute/drivers/packet.py
<ide> def _to_size(self, data):
<ide> name = "%s - %s RAM" % (data.get('name'), ram)
<ide> price = data['pricing'].get('hour')
<ide> return NodeSize(id=data['slug'], name=name,
<del> ram=int(ram.replace('GB', ''))*1024, disk=di... | 1 |
Javascript | Javascript | remove dom window uri check | f524eaefe24e08415fa7c8c88bd39bdfce4bd009 | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> PdfStreamConverter.prototype = {
<ide> // We get the DOM window here instead of before the request since it
<ide> // may have changed during a redirect.
<ide> var domWindow = getDOMWindow(channel);
<del> // Double check ... | 1 |
Ruby | Ruby | add note to railtie docs to use unique filenames | de7bc3188160f6ceb943b30a0f8603c4b447a7d3 | <ide><path>railties/lib/rails/railtie.rb
<ide> module Rails
<ide> # end
<ide> # end
<ide> #
<add> # Since filenames on the load path are shared across gems, be sure that files you load
<add> # through a railtie have unique names.
<add> #
<ide> # == Application and Engine
<ide> #
<ide> # An engine i... | 1 |
Ruby | Ruby | add the 2.1.x series as a recognized gnupg version | 7058c089a6c38681d1d84cfec9f40f499a3cf885 | <ide><path>Library/Homebrew/gpg.rb
<ide> def self.find_gpg(executable)
<ide> which_all(executable).detect do |gpg|
<ide> gpg_short_version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
<ide> next unless gpg_short_version
<del> Version.create(gpg_short_version.to_s) == Version.create("2.0")
<add... | 1 |
Ruby | Ruby | fix artifact number | d304c84f2aa264ca60eaeb3d7848f88198ff1c8c | <ide><path>Library/Homebrew/test/utils/github_spec.rb
<ide> url = described_class.get_artifact_url(
<ide> described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "bottles"),
<ide> )
<del> expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/... | 1 |
Javascript | Javascript | add missing babel helper | fd360ca8181f0812a20fd718fefcfb0ddd4befe7 | <ide><path>packages/external-helpers/lib/external-helpers.js
<ide> export function possibleConstructorReturn(self, call) {
<ide> }
<ide> return assertThisInitialized(self);
<ide> }
<add>
<add>export function objectDestructuringEmpty(obj) {
<add> if (DEBUG && (obj === null || obj === undefined)) {
<add> throw ne... | 1 |
Ruby | Ruby | show the formula origin for non core-formula | 4d17d4c8dbef49a9ed9fd174ed2ac2f8a7b4e9a6 | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def gistify_logs f
<ide> Homebrew.dump_verbose_config(s)
<ide> files["config.out"] = { :content => s.string }
<ide> files["doctor.out"] = { :content => `brew doctor 2>&1` }
<add> unless f.core_formula?
<add> tap = <<-EOS.undent
<add> Formula:... | 1 |
Python | Python | clarify the use of past in gpt2 and ctrl | d409aca32632718afbcd098de2bb11b9b71b7df1 | <ide><path>transformers/modeling_ctrl.py
<ide> def _init_weights(self, module):
<ide> **past**:
<ide> list of ``torch.FloatTensor`` (one for each layer):
<ide> that contains pre-computed hidden-states (key and values in the attention blocks) as computed by the model
<del> (see... | 2 |
Go | Go | fix typo in error-message | 5f699a465dd428d6285080ca07cb4a6634952744 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status {
<ide> config.MemorySwap = -1
<ide> }
<ide> if config.Memory > 0 && config.MemorySwap > 0 && config.MemorySwap < config.Memory {
<del> return job.Errorf("Minimum memoryswap limit should larger than memory limit,... | 1 |
Python | Python | add a new bar class to display bar in curse ui | 63ab6b0e0ae88ee05c410c91f9014c4aa457e3e6 | <ide><path>glances/outputs/glances_bars.py
<add># -*- coding: utf-8 -*-
<add>#
<add># This file is part of Glances.
<add>#
<add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
<add>#
<add># Glances is free software; you can redistribute it and/or modify
<add># it under the terms of the GNU Lesser General Public ... | 1 |
Ruby | Ruby | implement more of @reitermarkus's comments | a2730c8618ebb512cf00318af6d4987dbee1efe5 | <ide><path>Library/Homebrew/test/cask/cli/upgrade_spec.rb
<ide> describe Hbc::CLI::Upgrade, :cask do
<ide> it_behaves_like "a command that handles invalid options"
<ide>
<del> shared_context "Proper Casks" do
<add> context "successful upgrade" do
<ide> let(:installed) {
<ide> [
<ide> "outdated/lo... | 1 |
Python | Python | fix regression test #771 on 64 bits architecture | 87d85a0dbd8ec019a233ed921cd7cd2d9e6234c4 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_copy_detection_corner_case2(self, level=rlevel):
<ide> """Ticket #771: strides are not set correctly when reshaping 0-sized
<ide> arrays"""
<ide> b = np.indices((0,3,4)).T.reshape(-1,3)
<del> assert_equal(b.strides, (12, 4))
<a... | 1 |
Ruby | Ruby | raise error if unsupported charset for mysql | c4867b88f6eed16230a90077b82ad02293ea45b3 | <ide><path>activerecord/lib/active_record/tasks/mysql_database_tasks.rb
<ide> def create
<ide> end
<ide> establish_connection configuration
<ide> else
<del> $stderr.puts error.inspect
<del> $stderr.puts "Couldn't create database for #{configuration.inspect}, #{creation_opti... | 2 |
PHP | PHP | fix regression caused by pr | 9b857d090f0301852ea2d200a12debde4a5172de | <ide><path>src/Core/ObjectRegistry.php
<ide> abstract class ObjectRegistry
<ide> */
<ide> public function load($objectName, $config = [])
<ide> {
<del> if (empty($config) && !isset($this->_loaded[$objectName])) {
<del> list(, $name) = pluginSplit($objectName);
<del> } else {
<add> ... | 2 |
Javascript | Javascript | convert `fontfaceobject` to an es6 class | caf90ff6eeb902ebb93848aea8c248928157ec24 | <ide><path>src/display/font_loader.js
<ide> if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL || CHROME')) {
<ide> });
<ide> }
<ide>
<del>var IsEvalSupportedCached = {
<add>const IsEvalSupportedCached = {
<ide> get value() {
<ide> return shadow(this, 'value', isEvalSupported());
<ide> },
<ide... | 1 |
Text | Text | update changelog.md for 1.6.0-beta.1 | b7163c5970ebde48d304cb301ae112337427ca47 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### Ember 1.5.0-beta.4 (March 10, 2014)
<del>
<add>### Ember 1.6.0-beta.1 (March 31, 2014)
<add>
<add>* [BUGFIX] Add `which` attribute to event triggered by keyEvent test helper.
<add>* [Performance] Improve cache lookup throughput.
<add>* [FEATURE ember-routi... | 1 |
Javascript | Javascript | fix typo in panresponder documentation | f7aeefa521d74d7caba3ed4909780baa6f7bf83c | <ide><path>Libraries/vendor/react/browser/eventPlugins/PanResponder.js
<ide> var currentCentroidY = TouchHistoryMath.currentCentroidY;
<ide> * // The accumulated gesture distance since becoming responder is
<ide> * // gestureState.d{x,y}
<ide> * },
<del> * onResponderTerminationRequest: (... | 1 |
Java | Java | change sseevent#mimetype to sseevent#mediatype | 3fe87ee22551ea8f0176de84b5cd9cae488aa9db | <ide><path>spring-web-reactive/src/main/java/org/springframework/http/codec/SseEventEncoder.java
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.core.io.buffer.DataBufferFactory;
<ide> import org.springframework.core.io.buffer.FlushingDataBuffer;
<add>import org.springframew... | 2 |
Javascript | Javascript | set 'readable' flag on readable streams | 53fa66d9f79b4ba593f071334d58fda766fa5be3 | <ide><path>lib/_stream_readable.js
<ide> function Readable(options) {
<ide> return new Readable(options);
<ide>
<ide> this._readableState = new ReadableState(options, this);
<add>
<add> // legacy
<add> this.readable = true;
<add>
<ide> Stream.apply(this);
<ide> }
<ide> | 1 |
Go | Go | add api version to `docker version` | b246fc33ae4f05b5084fed8fc9f1034e36d87d78 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> if dockerversion.VERSION != "" {
<ide> fmt.Fprintf(cli.out, "Client version: %s\n", dockerversion.VERSION)
<ide> }
<add> fmt.Fprintf(cli.out, "Client API version: %s\n", api.APIVERSION)
<ide> fmt.Fprintf(cli.out,... | 3 |
Javascript | Javascript | return null when no initfragment is required | 55b73a54afd2cb7c78b55e7102c6b24409c0d391 | <ide><path>lib/dependencies/CachedConstDependency.js
<ide> CachedConstDependency.Template = class CachedConstDependencyTemplate {
<ide> source.replace(dep.range[0], dep.range[1] - 1, dep.identifier);
<ide> }
<ide>
<del> getInitFragments(dep, source, runtime) {
<add> getInitFragments(dependency, source, runtimeTempl... | 5 |
Javascript | Javascript | allow accessing siblings by ref | 2bc2b52eaa7f541dd3ad30ede41e2a8dba74d9c8 | <ide><path>src/core/ReactComponent.js
<ide> var ReactComponent = {
<ide> */
<ide> isOwnedBy: function(owner) {
<ide> return this.props[OWNER] === owner;
<add> },
<add>
<add> /**
<add> * Gets another component, that shares the same owner as this one, by ref.
<add> *
<add> * @param {strin... | 1 |
Go | Go | fix container unmount networkmounts | 04f99a6ca8232e43169b9a0706e435c551c798a3 | <ide><path>daemon/container_linux.go
<ide> func (container *Container) DisableLink(name string) {
<ide> }
<ide>
<ide> func (container *Container) UnmountVolumes(forceSyscall bool) error {
<del> for _, m := range container.MountPoints {
<del> dest, err := container.GetResourcePath(m.Destination)
<add> var volumeMounts... | 3 |
Javascript | Javascript | add tests for parts of `/settings` page | 625b12c4f267210ca82e399c575c4bd594d6ab67 | <ide><path>cypress/integration/settings/settings.js
<add>/* global cy expect */
<add>
<add>describe('Settings', () => {
<add> beforeEach(() => {
<add> cy.visit('/');
<add> cy.contains("Get started (it's free)").click({ force: true });
<add> cy.visit('/settings');
<add> });
<add>
<add> describe('The `Sign me... | 4 |
Javascript | Javascript | hide legacy full stack cert on portfolio | 08e968079ce23bee98784f39a420f5a72aef9da8 | <ide><path>client/src/components/profile/components/Certifications.js
<ide> const mapStateToProps = (state, props) =>
<ide> }
<ide> ],
<ide> legacyCerts: [
<del> {
<del> show: isFullStackCert,
<del> title: 'Full Stack Certification',
<del> showURL: 'legacy-full-stac... | 1 |
PHP | PHP | add escape false to paginationhelper | 51b141543cb446f39d50b1764527177feb32281a | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function sort($key, $title = null, array $options = [])
<ide> /**
<ide> * Merges passed URL options with current pagination state to generate a pagination URL.
<ide> *
<add> * ### Options:
<add> *
<add> * - `escape`: If false, the URL... | 1 |
PHP | PHP | add more test coverage for commandrunner | a7f9372c2ae135c7003807d4634bf58d689e73e1 | <ide><path>src/Console/CommandRunner.php
<ide> namespace Cake\Console;
<ide>
<ide> use Cake\Console\CommandCollection;
<add>use Cake\Console\ConsoleIo;
<add>use Cake\Console\Exception\StopException;
<add>use Cake\Console\Shell;
<ide> use Cake\Http\BaseApplication;
<ide> use RuntimeException;
<ide>
<ide> public functi... | 3 |
Text | Text | use branch 4.x instead of master | 9d3743887df6f8fa8ab3c023541d68b6c93b0251 | <ide><path>README.md
<ide> <a href="LICENSE" target="_blank">
<ide> <img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square">
<ide> </a>
<del> <img alt="Build Status" src="https://github.com/cakephp/cakephp/actions/workflows/ci.yml/badge.svg?branch=... | 1 |
Ruby | Ruby | activate env extensions | 809a52a6a3e8b0899aa2697f767b8dcc22210bd8 | <ide><path>Library/Homebrew/cmd/--env.rb
<ide> def __env
<ide> if superenv?
<ide> ENV.deps = ARGV.formulae.map(&:name) unless ARGV.named.empty?
<ide> end
<add>
<ide> ENV.setup_build_environment
<ide> ENV.universal_binary if ARGV.build_universal?
<ide> if $stdout.tty?
<ide><path>Library/Homebre... | 2 |
Javascript | Javascript | fix unterminated statements | 66eeb3bca39b491110ef2143336b3e75eae5f396 | <ide><path>resources/js/app.js
<ide> window.Vue = require('vue');
<ide> * Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
<ide> */
<ide>
<del>// const files = require.context('./', true, /\.vue$/i)
<del>// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], file... | 1 |
Ruby | Ruby | reduce string allocations in read/write_attribute | ffc9ed3d3b59dd76cfe3fc1ff6913bd1d2aaf462 | <ide><path>activerecord/lib/active_record/attribute_methods/read.rb
<ide> def #{temp_method_name}
<ide> # it has been typecast (for example, "2004-12-12" in a date column is cast
<ide> # to a date object, like Date.new(2004, 12, 12)).
<ide> def read_attribute(attr_name, &block)
<del> name = if ... | 2 |
Text | Text | make minor adjustments | 38a39143d2d5dbff0421ca3448ada2ebe21144e4 | <ide><path>BUILDING.md
<ide> When modifying only the JS layer in `lib`, it is possible to externally load it
<ide> without modifying the executable:
<ide>
<ide> ```console
<del>$ ./configure --node-builtin-modules-path $(pwd)
<add>$ ./configure --node-builtin-modules-path "$(pwd)"
<ide> ```
<ide>
<ide> The resulting ... | 12 |
Go | Go | fix fedora tty with apparmor | 6104f9f9495678549ef8fc5aa716a3cc893add8f | <ide><path>graph.go
<ide> func setupInitLayer(initLayer string) error {
<ide> "/etc/resolv.conf": "file",
<ide> "/etc/hosts": "file",
<ide> "/etc/hostname": "file",
<add> "/dev/console": "file",
<ide> // "var/run": "dir",
<ide> // "var/lock": "dir",
<ide> } { | 1 |
Text | Text | fix heading level in errors.md | 6562942461e6307480bb0873447708ecc996e490 | <ide><path>doc/api/errors.md
<ide> added properties.
<ide>
<ide> ### Class: SystemError
<ide>
<del>### error.info
<add>#### error.info
<ide>
<ide> `SystemError` instances may have an additional `info` property whose
<ide> value is an object with additional details about the error conditions. | 1 |
PHP | PHP | change method to only return true/false | 69e63b11a4ebe4edab1b55708ea13bc204c8e173 | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> class Contact extends CakeTestModel {
<ide> 'imrequired' => array('rule' => array('between', 5, 30), 'allowEmpty' => false),
<ide> 'imrequiredonupdate' => array('notEmpty' => array('rule' => 'alphaNumeric', 'on' => 'update')),
<ide> 'imrequiredonc... | 2 |
Python | Python | fix mypy in | 25164bb6380ae760bed5fe3efc5f2fc3ec5c38a1 | <ide><path>backtracking/all_combinations.py
<ide> numbers out of 1 ... n. We use backtracking to solve this problem.
<ide> Time complexity: O(C(n,k)) which is O(n choose k) = O((n!/(k! * (n - k)!)))
<ide> """
<add>from typing import List
<ide>
<ide>
<del>def generate_all_combinations(n: int, k: int) -... | 5 |
Go | Go | add unit test for rebasearchiveentries | 82eb9002e928f06ff694c618887bbc7d61f4b8e0 | <ide><path>pkg/archive/archive_unix_test.go
<ide> func TestTarWithHardLink(t *testing.T) {
<ide> }
<ide> }
<ide>
<add>func TestTarWithHardLinkAndRebase(t *testing.T) {
<add> tmpDir, err := ioutil.TempDir("", "docker-test-tar-hardlink-rebase")
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> defer os.RemoveAll(... | 1 |
Javascript | Javascript | fix some bugs | 122d168b51b92dd0b682c69a2acb14e97a5c4b91 | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> var data =
<ide> "\x8b\x14" + // defaultWidth
<ide> "\x8b\x15" + // nominalWidth
<del> self.encodeNumber(properties.stdHW) + "\x0a" + // StdHW
<del> self.encodeNumber(properties.stdVW) + "\x0b"; // StdVW
<add> ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.