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 |
|---|---|---|---|---|---|
Go | Go | remove unused getcache endpoint | 0d7044955a4b63c4df2a611095b87ae417a3cf9b | <ide><path>api.go
<ide> func getImagesByName(srv *Server, version float64, w http.ResponseWriter, r *htt
<ide> return nil
<ide> }
<ide>
<del>func postImagesGetCache(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<del> apiConfig := &APIImageConfig{}
<del> if err :... | 1 |
Javascript | Javascript | fix bug in line3.distance/distancesq | e08369e8151e50b2aae861c86a2bfdcf8073e8e9 | <ide><path>src/math/Line3.js
<ide> THREE.extend( THREE.Line3.prototype, {
<ide>
<ide> },
<ide>
<del> distanceSq: function ( optionalTarget ) {
<add> distanceSq: function () {
<ide>
<ide> return this.start.distanceToSquared( this.end );
<ide>
<ide> },
<ide>
<del> distance: function ( optionalTarget ) {
<add> di... | 1 |
Javascript | Javascript | fix normal view | c8d4156f89f67f9dffa7cd4740a58f28fd8f06f1 | <ide><path>examples/js/nodes/accessors/NormalNode.js
<ide> NormalNode.prototype.generate = function ( builder, output ) {
<ide>
<ide> case NormalNode.VIEW:
<ide>
<del> result = 'vNormal';
<add> result = 'normal';
<ide>
<ide> break;
<ide> | 1 |
Python | Python | set default backend to amqp if not configured | 26a3aea32016e2eaf3fe0fa616843cede74dbaaf | <ide><path>celery/backends/amqp.py
<ide> class AMQPBackend(BaseDictBackend):
<ide> serializer = conf.RESULT_SERIALIZER
<ide> _connection = None
<ide>
<add> def __init__(self, *args, **kwargs):
<add> self._connection = kwargs.get("connection", None)
<add> super(AMQPBackend, self).__init__(*args... | 2 |
Javascript | Javascript | fix bug in profiling test | 61e899f42b8f1be23af2e0f244a1d11130db92d0 | <ide><path>test/integration/profiling/test/index.test.js
<ide> import { join } from 'path'
<ide> import { nextBuild } from 'next-test-utils'
<ide> import fs from 'fs'
<ide> const appDir = join(__dirname, '../')
<add>const profileEventsPath = join(appDir, '.next', 'profile-events.json')
<ide> jest.setTimeout(1000 * 60 *... | 1 |
Python | Python | remove unwanted imports | 910ccf1a1ae2c6fdd3df60dcfd03e1c1807d2ba7 | <ide><path>official/vision/beta/projects/__init__.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>
<del>from official.vision.beta.projects import panoptic_maskrcnn
... | 4 |
PHP | PHP | resolve commands in artisan | 8dece94eedeb6c743f805ab5e8a0cf90c2ca512d | <ide><path>src/Illuminate/Foundation/Console/Kernel.php
<ide> protected function getArtisan()
<ide> {
<ide> if (is_null($this->artisan))
<ide> {
<del> return $this->artisan = new Artisan($this->app, $this->events);
<add> return $this->artisan = (new Artisan($this->app, $this->events))
<add> ->resolveCom... | 1 |
Ruby | Ruby | fix rakefile loading generator relatively | 7ffd4c849dcfa4691477fe9dc4dbd2df6c9c6b7b | <ide><path>railties/lib/rails/api/task.rb
<ide> require "rdoc/task"
<del>require "rails/api/generator"
<add>require_relative "generator"
<ide>
<ide> module Rails
<ide> module API | 1 |
Ruby | Ruby | use delete if the rhs is nil | aaa2abf73fa39e0d455b4b781fb4d00e51d0bdc7 | <ide><path>actionpack/test/template/asset_tag_helper_test.rb
<ide> def test_image_tag_windows_behaviour
<ide> File.stubs(:exist?).with('template/../fixtures/public/images/rails.png.').returns(true)
<ide> assert_equal '<img alt="Rails" src="/images/rails.png?1" />', image_tag('rails.png')
<ide> ensure
<d... | 1 |
Text | Text | add modelcard with acknowledgements | 8a017cbb5ad0fe43db04eef8e56f0d4846c2f422 | <ide><path>model_cards/ViktorAlm/electra-base-norwegian-uncased-discriminator/README.md
<add># Norwegian Electra
<add>Image incoming, im going to have som fun with this one.
<add>
<add>Trained on Oscar + wikipedia + opensubtitles + some other data I had with the awesome power of TPUs(V3-8)
<add>
<add>Use with caution. ... | 1 |
Ruby | Ruby | convert specs to tests | 7fc628e3fcda6342a8cee0a6236987b57ac10270 | <ide><path>activemodel/spec/observing_spec.rb
<del>require File.join(File.dirname(__FILE__), 'spec_helper')
<del>
<del>class ObservedModel < ActiveModel::Base
<del> class Observer
<del> end
<del>end
<del>
<del>class FooObserver < ActiveModel::Observer
<del> class << self
<del> public :new
<del> end
<del>
<del>... | 4 |
Javascript | Javascript | use externals plugin for node target | 9a3e3443fa2f17d6b91ef68e27a025b8659e5799 | <ide><path>lib/node/NodeTargetPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var Dependency = require("../Dependency");
<del>var Module = require("../Module");
<del>var RawSource = require("webpack-core/lib/RawSource");
<del>
<del>
<del>... | 1 |
PHP | PHP | handle assoc mode within db commands | 2d834af7b54a24380819ec35c59e258e1cac3216 | <ide><path>src/Illuminate/Database/Console/DatabaseInspectionCommand.php
<ide> use Illuminate\Database\MySqlConnection;
<ide> use Illuminate\Database\PostgresConnection;
<ide> use Illuminate\Database\SQLiteConnection;
<add>use Illuminate\Database\SqlServerConnection;
<ide> use Illuminate\Support\Arr;
<ide> use Illumina... | 1 |
Python | Python | update docstrings for busdays code | 4af52375dbd720dffc55b49f48bb59e8587ed762 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> """
<ide> busdaycalendar(weekmask='1111100', holidays=None)
<ide>
<del> A business day calendar object that efficiently stores
<del> information defining business days for the business
<del> day-related functions.
<add> ... | 1 |
Python | Python | add support for chebyshev series and polynomials | 9211df98609ea0348ad51cab611387b8e898a974 | <ide><path>numpy/__init__.py
<ide> Core Linear Algebra Tools
<ide> fft
<ide> Core FFT routines
<add>polynomial
<add> Polynomial tools
<ide> testing
<ide> Numpy testing tools
<ide> f2py
<ide> def pkgload(*packages, **options):
<ide> from lib import *
<ide> import linalg
<ide> import fft
<add> ... | 11 |
Text | Text | add chinese translation of multiple-components | 833fcb65937e9c6e9610682f23d47963e9f641bf | <ide><path>docs/docs/04-multiple-components.zh-CN.md
<ide> ---
<del>id: multiple-componentsm-zh-CN
<add>id: multiple-components-zh-CN
<ide> title: 复合组件
<ide> permalink: multiple-components-zh-CN.html
<ide> prev: interactivity-and-dynamic-uis-zh-CN.html
<ide> React.render(
<ide> 上面例子中,`Avatar` 拥有 `ProfilePic` 和 `Profile... | 1 |
Ruby | Ruby | implement limit & offset for ourselves | 04309aee82468fa4c4b3d92a533e84a96533f236 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def find_one(id)
<ide> end
<ide>
<ide> def find_some(ids)
<add> return find_some_ordered(ids) unless order_values.present?
<add>
<add> result = where(primary_key => ids).to_a
<add>
<ide> expected_size =
<ide> if ... | 2 |
PHP | PHP | add test covering | fa09901b384668e6a45022299f8726dd92f73bba | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> public function testSaveReplaceSaveStrategy()
<ide> $this->assertTrue($authors->Articles->exists(['id' => $articleId]));
<ide> }
<ide>
<add> /**
<add> * Test that save works with replace saveStrategy conditions
<add> *
<add> * @... | 1 |
Python | Python | display a default message | 3dddbfdf00f2b99ef41b349c35c7dd21b1d9f459 | <ide><path>glances/monitor_list.py
<ide> def update(self):
<ide> monitoredlist = [p for p in processlist if re.search(self.regex(i), p['cmdline']) is not None]
<ide> self.__monitor_list[i]['count'] = len(monitoredlist)
<ide>
<add> # Always get processes CPU and MEM
<add> s... | 2 |
Javascript | Javascript | add download and hreflang attributes | ae7e44ec84b656213b546fb0596adb266427e76a | <ide><path>src/browser/dom/DefaultDOMPropertyConfig.js
<ide> var DefaultDOMPropertyConfig = {
<ide> defer: HAS_BOOLEAN_VALUE,
<ide> dir: null,
<ide> disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
<add> download: null,
<ide> draggable: null,
<ide> encType: null,
<ide> form: MUST_USE_ATTRIBU... | 1 |
Javascript | Javascript | add test for validation for wasi.start() argument | decc5f5506bfaeac9f09ed1d12b4f519bc0ac250 | <ide><path>test/wasi/test-wasi-start-validation.js
<add>'use strict';
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const { WASI } = require('wasi');
<add>
<add>const fixtures = require('../common/fixtures');
<add>
<add>{
<add> const wasi = new WASI();
<add> assert.throws(
<add> () =... | 1 |
Python | Python | fix attributeerror on renamed _field_mapping | 760b25bc20a1434cbdd69dc0b13bacdc3bbedd7c | <ide><path>rest_framework/serializers.py
<ide> def get_unique_for_date_validators(self):
<ide>
<ide>
<ide> if hasattr(models, 'UUIDField'):
<del> ModelSerializer._field_mapping[models.UUIDField] = UUIDField
<add> ModelSerializer.serializer_field_mapping[models.UUIDField] = UUIDField
<ide>
<ide> if postgres_fie... | 1 |
PHP | PHP | fix duplicate implements | ab3a6af87d07632e5d5643bd4987902c6fe239db | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> /**
<ide> * @mixin \League\Flysystem\FilesystemInterface
<ide> */
<del>class FilesystemAdapter implements CloudFilesystemContract, FilesystemContract
<add>class FilesystemAdapter implements CloudFilesystemContract
<ide> {
<ide> /**
<ide> * The ... | 1 |
Ruby | Ruby | remove vendored version of rack | b69da86ea545b342036fb37a472ec5abefaf3bd5 | <ide><path>actionpack/lib/action_dispatch.rb
<ide> end
<ide> require 'active_support/core/all'
<ide>
<del>$:.unshift "#{File.dirname(__FILE__)}/action_dispatch/vendor/rack-1.0"
<del>begin
<del> gem 'rack', '~> 1.0.0'
<del> require 'rack'
<del>rescue Gem::LoadError
<del> require 'action_dispatch/vendor/rack-1.0/rack... | 53 |
Text | Text | update azure pipelines status badge url | a3c320dd707b915da2192427bcceea166edbd6d4 | <ide><path>README.md
<ide> 
<ide>
<del>[](https://github.visualstudio.com/Atom/_build/latest?d... | 1 |
Python | Python | add service_name attribute to elbconnection class | b034b2f9b1b1c4250274405dc1c0fa36456e8bcf | <ide><path>libcloud/loadbalancer/drivers/elb.py
<ide> class ELBConnection(SignedAWSConnection):
<ide> version = VERSION
<ide> host = HOST
<ide> responseCls = ELBResponse
<add> service_name = 'elb'
<ide>
<ide>
<ide> class ElasticLBDriver(Driver): | 1 |
Java | Java | refine typehint.builder#onreachabletype javadoc | 3e9b57106e74b09265f247cbcd6853078c32ae49 | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java
<ide> public Builder(TypeReference type) {
<ide>
<ide> /**
<ide> * Make this hint conditional on the fact that the specified type
<del> * can be resolved.
<add> * is in a reachable code path from a static analysis point of view.
<... | 1 |
Javascript | Javascript | fix development test cases for changed defaults | e7d246eaa153daa6639a4ec06e6bd9d478bba16d | <ide><path>test/cases/side-effects/empty-modules/index.js
<ide> import "./pure";
<ide> import "./referenced";
<ide> import "./side-referenced";
<ide>
<del>it("should skip imports to empty modules", () => {
<del> expect(require.resolveWeak("./cjs")).toBe(null);
<del> expect(require.resolveWeak("./module")).toBe(null);
... | 2 |
PHP | PHP | fix failing tests | 16c84176408f91a123c8b6d0d57d678b0fb21065 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testDebugInfo() {
<ide> ->where(['id' => '1']);
<ide>
<ide> $expected = [
<del> 'sql' => $query->sql(),
<del> 'params' => [
<del> ':c0' => ['value' => '1', 'type' => 'integer', 'placeholder' => 'c0']
<del> ],
<add> 'params' => [],
<... | 2 |
Python | Python | add type annotations for imagegpt | 7f3d4440d63786b0544de73650707adb72f02c12 | <ide><path>src/transformers/models/imagegpt/modeling_imagegpt.py
<ide> import math
<ide> import os
<ide> import warnings
<del>from typing import Tuple
<add>from typing import Any, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> def load_tf_weights_in_imagegpt(model, config, im... | 1 |
Javascript | Javascript | add wallaby.js support | 4f1ba6ac78253a815c843e863596fd8403be7392 | <ide><path>wallaby.js
<add>module.exports = function (wallaby) {
<add> return {
<add> files: [
<add> 'server/**/*.js',
<add> 'client/**/*.js',
<add> 'lib/**/*.js',
<add> 'dist/**/*.js',
<add> 'test/**/*.*',
<add> '!test/**/*.test.js'
<add> ],
<add>
<add> tests: [
<add> 'test... | 1 |
Mixed | Text | pass context parameter to custom tooltip | 6c38c31a0a29a36ec2a4f31cd8cac5aa16b79c86 | <ide><path>docs/docs/configuration/tooltip.md
<ide> The tooltip items passed to the tooltip callbacks implement the following interf
<ide>
<ide> ## External (Custom) Tooltips
<ide>
<del>Custom tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own custom way. Gene... | 3 |
Javascript | Javascript | pull refresh outside the work function | 6ba2f6d4b8da38b60399fd4a7d14df109dd3e41a | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> checkoutOptions.checkoutStrategy = Git.Checkout.STRATEGY.FORCE | Git.Checkout.STRATEGY.DISABLE_PATHSPEC_MATCH
<ide> return Git.Checkout.head(repo, checkoutOptions)
<ide> })
<del> ... | 1 |
Python | Python | fix error types | de0bbe0ac09988cfe84442855183577315a0d80a | <ide><path>glances/glances.py
<ide> def __get_process_stats(self, proc):
<ide> # Process name (cached by PSUtil)
<ide> try:
<ide> procstat['name'] = proc.name()
<del> except AttributeError:
<add> except TypeError:
<ide> procstat['name'] = proc.name
<ide> ... | 1 |
Ruby | Ruby | use default location when possible | a17f38dd364af67d5965aaa58438cb768c6d057a | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module Mac
<ide> module Xcode
<ide> module_function
<ide>
<add> DEFAULT_BUNDLE_PATH = Pathname.new("/Applications/Xcode.app").freeze
<ide> BUNDLE_ID = "com.apple.dt.Xcode".freeze
<ide> OLD_BUNDLE_ID = "com.apple.Xcode".freeze
<ide>
<ide> def... | 1 |
PHP | PHP | add email options closure | 052c4c6f0c0483909a5bb2aa814c86897bf33892 | <ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php
<ide> public function sendResetLinkEmail(Request $request)
<ide>
<ide> $broker = $this->getBroker();
<ide>
<del> $response = Password::broker($broker)->sendResetLink($request->only('email'), function (Message $message) {
<del> $me... | 1 |
Python | Python | introduce a final methods in view class | 94f24e2e2f6bff77fcc6ee23f5c90716becab192 | <ide><path>djangorestframework/views.py
<ide> def dispatch(self, request, *args, **kwargs):
<ide> except ErrorResponse, exc:
<ide> response = exc.response
<ide>
<del> # Always add these headers.
<del> #
<del> # TODO - this isn't actually the correct way to set the vary header,
... | 1 |
Go | Go | remove extra locking | f93750b2c4d5f6144f0790ffa89291da3c097b80 | <ide><path>daemon/graphdriver/aufs/aufs.go
<ide> func init() {
<ide>
<ide> // Driver contains information about the filesystem mounted.
<ide> type Driver struct {
<del> sync.Mutex
<ide> root string
<ide> uidMaps []idtools.IDMap
<ide> gidMaps []idtools.IDMap
<ide> func (a *Driver) getParentLayer... | 1 |
Javascript | Javascript | add bench for zlib gzip + gunzip cycle | e797d5babd119900034953a65efe90ed06ed97b9 | <ide><path>benchmark/zlib/pipe.js
<add>'use strict';
<add>const common = require('../common.js');
<add>const fs = require('fs');
<add>const zlib = require('zlib');
<add>
<add>const bench = common.createBenchmark(main, {
<add> inputLen: [1024],
<add> duration: [5],
<add> type: ['string', 'buffer']
<add>});
<add>
<add... | 2 |
Ruby | Ruby | fix a small typo [ci skip] | a8da5d82fd2b87c1a34d8ede5343219a82be40bc | <ide><path>railties/test/application/configuration_test.rb
<ide> def index
<ide> assert_equal app.env_config['action_dispatch.backtrace_cleaner'], Rails.backtrace_cleaner
<ide> end
<ide>
<del> test "config.colorize_logging defaul is true" do
<add> test "config.colorize_logging default is true" do
... | 1 |
Ruby | Ruby | limit => 19` for oracle | a9e6e6e07aa5f433e0f66179b22c1c9575685727 | <ide><path>activerecord/test/cases/connection_adapters/type_lookup_test.rb
<ide> def test_integer_types
<ide>
<ide> def test_bigint_limit
<ide> cast_type = @connection.type_map.lookup("bigint")
<del> assert_equal 8, cast_type.limit
<add> if current_adapter?(:OracleAdapter)
<add> as... | 2 |
Text | Text | translate 04 to korean | 7eabccc214c96e74ee049a0f026f43be403e86bb | <ide><path>docs/docs/04-multiple-components.ko-KR.md
<add>---
<add>id: multiple-components-ko-KR
<add>title: 복합 컴포넌트
<add>permalink: multiple-components.ko-KR.html
<add>prev: interactivity-and-dynamic-uis.ko-KR.html
<add>next: reusable-components.html
<add>---
<add>
<add>지금까지, 단일 컴포넌트에서 데이터를 표시하고 유저 입력을 다루는 것을 살펴보았습니다.... | 1 |
Text | Text | fix a typo in the assert.md | 74f0e51b4df3eccc3bf1f61ab2922b35da6adab1 | <ide><path>doc/api/assert.md
<ide> assert.notDeepEqual(obj1, obj3);
<ide> // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
<ide>
<ide> assert.notDeepEqual(obj1, obj4);
<del> // OK, obj1 and obj2 are not deeply equal
<add> // OK, obj1 and obj4 are not deeply equal
<ide> ```
<ide>
<ide> If the values... | 1 |
Ruby | Ruby | improve pronoun for multiple version message | 66ca9e79fc14f28e54f259bba94a52922728bde8 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide> versions = rack.subdirs.map(&:basename)
<ide> verb = versions.length == 1 ? "is" : "are"
<ide> puts "#{keg.name} #{versions.join(", ")} #{verb} still installed."
<del> puts "Remove them all with `brew u... | 1 |
Python | Python | remove unnecessary use of fusedlayernorm | 98dd19b96b351f481e1268ab6c7b035bb21d106e | <ide><path>pytorch_transformers/modeling_bert.py
<ide> def swish(x):
<ide> ACT2FN = {"gelu": gelu, "relu": torch.nn.functional.relu, "swish": swish}
<ide>
<ide>
<del>try:
<del> from apex.normalization.fused_layer_norm import FusedLayerNorm as BertLayerNorm
<del>except (ImportError, AttributeError) as e:
<del> l... | 1 |
Javascript | Javascript | get all promises when using multiple test files | c50b2ad16c8251a8bacfec0d9f344dad0bedad7c | <ide><path>test/ConfigTestCases.template.js
<ide> const describeCases = config => {
<ide> }
<ide> };
<ide>
<del> results.push(
<del> _require(outputDirectory, optionsArr[i], bundlePath)
<del> );
<add> if (Array.isArray(bundlePath)) {
<add> for (const ... | 1 |
Go | Go | fix a comment error | 19e2c9177a111758e304ad9dbd0835cddbd840ab | <ide><path>volume/store/store.go
<ide> func (s *VolumeStore) Purge(name string) {
<ide> type VolumeStore struct {
<ide> locks *locker.Locker
<ide> globalLock sync.Mutex
<del> // names stores the volume name -> driver name relationship.
<add> // names stores the volume name -> volume relationship.
<ide> // This ... | 1 |
Javascript | Javascript | increase delay of data-uri test | 4fae91141c04dffb5094b5961eb5d7b2a1f3f423 | <ide><path>test/unit/manipulation.js
<ide> asyncTest( "Insert script with data-URI (gh-1887)", 1, function() {
<ide> }
<ide>
<ide> start();
<del> });
<add> }, 100 );
<ide> }); | 1 |
PHP | PHP | move string target parsing into routebuilder | 74ee0913cb46812577a8dfb7a33833dc2fb7dda1 | <ide><path>src/Routing/RouteBuilder.php
<ide> protected function _methodRoute($method, $template, $target, $name)
<ide> 'routeClass' => $this->_routeClass,
<ide> ];
<ide>
<add> $target = $this->parseDefaults($target);
<ide> $target['_method'] = $method;
<ide>
<ide> $route = ... | 4 |
Ruby | Ruby | replace map.flatten with flat_map in railties | cff340f1eda96be952437abeed80591a85ef0194 | <ide><path>railties/lib/rails/commands/plugin.rb
<ide> end
<ide> if File.exist?(railsrc)
<ide> extra_args_string = File.read(railsrc)
<del> extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten
<add> extra_args = extra_args_string.split(/\n+/).flat_map {|l| l.split}
<id... | 4 |
Text | Text | add periods at the end of hints | 857e29258da36bebfcff74034062fc9f8cf9f5fd | <ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/perform-a-subset-check-on-two-sets-of-data.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<del>The first `Set` should be contained in the second `Set`
<add>The first `Set` should be contained in the second `Set`.
<ide>
<ide> ```js
<ide> asse... | 1 |
Text | Text | use serial comma in events docs | 82861e9446af8ad12d2c2a0967e331a4333440d6 | <ide><path>doc/api/events.md
<ide> The [`--trace-warnings`][] command-line flag can be used to display the
<ide> stack trace for such warnings.
<ide>
<ide> The emitted warning can be inspected with [`process.on('warning')`][] and will
<del>have the additional `emitter`, `type` and `count` properties, referring to
<add... | 1 |
Javascript | Javascript | remove duplicate test | a7e40622157fad6822d5f734c6325b99de811211 | <ide><path>packages/ember-routing-htmlbars/tests/helpers/link-to_test.js
<ide> QUnit.module("Handlebars {{link-to}} helper", {
<ide> });
<ide>
<ide>
<del>test("should be able to be inserted in DOM when the router is not present", function() {
<del> var template = "{{#link-to 'index'}}Go to Index{{/link-to}}";
<del> ... | 1 |
Python | Python | remove a bunch of unnescesarry iterkeys() calls | 4c97101b1f0815a3f311fc77483b935fe62966bb | <ide><path>django/conf/__init__.py
<ide> def __getattr__(self, name):
<ide> return getattr(self.default_settings, name)
<ide>
<ide> def __dir__(self):
<del> return list(six.iterkeys(self.__dict__)) + dir(self.default_settings)
<add> return list(self.__dict__) + dir(self.default_settings)
<ide... | 25 |
Ruby | Ruby | simplify attribute type decoration | c885086bd06f000390fda7f6a11362bbb8ca0798 | <ide><path>activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
<ide> def map_avoiding_infinite_recursion(value)
<ide> end
<ide>
<ide> module ClassMethods # :nodoc:
<del> private
<del> def inherited(subclass)
<del> super
<del> # We need to apply thi... | 3 |
Text | Text | fix typo in tooltip conf doc | f71f525caf852ad46ae6fc875e879cc10804b051 | <ide><path>docs/01-Chart-Configuration.md
<ide> var chartInstance = new Chart(ctx, {
<ide>
<ide> ### Tooltip Configuration
<ide>
<del>The title configuration is passed into the `options.tooltips` namespace. The global options for the chart tooltips is defined in `Chart.defaults.global.title`.
<add>The title configura... | 1 |
Javascript | Javascript | fix master tests | c3e42a962b2ea3b245e43f542bda7ea33a9715be | <ide><path>packages/react-dom/src/events/plugins/__tests__/ModernChangeEventPlugin-test.js
<ide> describe('ChangeEventPlugin', () => {
<ide> describe('concurrent mode', () => {
<ide> // @gate experimental
<ide> it('text input', () => {
<del> const root = ReactDOM.createRoot(container);
<add> const r... | 2 |
Javascript | Javascript | remove all but one instance of proptypes | ae1817fdb96780c92a0cb8ec9b753f897b5d5703 | <ide><path>RNTester/js/LinkingExample.js
<ide>
<ide> 'use strict';
<ide>
<del>var React = require('react');
<del>var PropTypes = require('prop-types');
<del>var ReactNative = require('react-native');
<del>var {Linking, StyleSheet, Text, TouchableOpacity, View} = ReactNative;
<del>var RNTesterBlock = require('./RNTest... | 4 |
Python | Python | validate the mypy exit-code | 0148bf8cdd7577730af8f1418c3a92dfad82595a | <ide><path>numpy/typing/tests/test_typing.py
<ide> def run_mypy() -> None:
<ide>
<ide> for directory in (PASS_DIR, REVEAL_DIR, FAIL_DIR, MISC_DIR):
<ide> # Run mypy
<del> stdout, stderr, _ = api.run([
<add> stdout, stderr, exit_code = api.run([
<ide> "--config-file",
<ide> ... | 1 |
Javascript | Javascript | use describe() blocks to setup preconditions | 304f6c16fb5784f14a3d8fd8a394c778af938088 | <ide><path>node-tests/blueprints/acceptance-test-test.js
<ide> const expect = chai.expect;
<ide> describe('Blueprint: acceptance-test', function() {
<ide> setupTestHooks(this);
<ide>
<del> it('acceptance-test foo', function() {
<del> return emberNew()
<del> .then(() => emberGenerateDestroy(['acceptance-test... | 17 |
Javascript | Javascript | fix typo in pre_execution.js | 97815bd6e9dee6a893d94bc9085958f9af23ac85 | <ide><path>lib/internal/bootstrap/pre_execution.js
<ide> function patchProcessObject(expandArgv1) {
<ide> }
<ide>
<ide> // TODO(joyeecheung): most of these should be deprecated and removed,
<del> // execpt some that we need to be able to mutate during run time.
<add> // except some that we need to be able to mut... | 1 |
Javascript | Javascript | add single process tls connection benchmark | 23dc0992995fb1307d516e6c6f33439da8bc112b | <ide><path>benchmark/tls-connect.js
<add>
<add>var assert = require('assert'),
<add> fs = require('fs'),
<add> path = require('path'),
<add> tls = require('tls');
<add>
<add>
<add>var target_connections = 10000,
<add> concurrency = 10;
<add>
<add>for (var i = 2; i < process.argv.length; i++) {
<add> switch... | 1 |
Python | Python | use assert_equal instead of assertequals | 8e9f0bdedca3edd5ba2e8902f05406acff8b8b44 | <ide><path>flask/testsuite/testing.py
<ide> def view(company_id):
<ide> url = flask.url_for('view', company_id='xxx')
<ide> response = self.client.get(url)
<ide>
<del> self.assertEquals(200, response.status_code)
<del> self.assertEquals(b'xxx', response.data)
<add> self.assert_equa... | 1 |
PHP | PHP | add new line per styleci | 98936eecd8c79ff6f31afe3b4596b69a878e6f92 | <ide><path>src/Illuminate/Routing/RoutingServiceProvider.php
<ide> protected function registerPsrRequest()
<ide> {
<ide> $this->app->bind(ServerRequestInterface::class, function ($app) {
<ide> $psr17Factory = new Psr17Factory;
<add>
<ide> return (new PsrHttpFactory($psr17Factory, $ps... | 1 |
Text | Text | streamline copy and remove gitter references | e21e6c1ce6ba3e8fc3c7a637216cfef9789f4e60 | <ide><path>docs/FAQ.md
<del>### I am new to GitHub and Open Source, where should I start?
<add>### I am new to GitHub and Open Source. Where should I start?
<ide>
<del>Read our ["How to Contribute to Open Source Guide"](https://github.com/freeCodeCamp/how-to-contribute-to-open-source). It's a compresensive resource of... | 6 |
Text | Text | update multi-db docs | dfb519ac71df8be08641cc1da02a07972c3d947f | <ide><path>guides/source/active_record_multiple_databases.md
<ide> The following features are not (yet) supported:
<ide> * Sharding
<ide> * Joining across clusters
<ide> * Load balancing replicas
<add>* Dumping schema caches for multiple databases
<ide>
<ide> ## Setting up your application
<ide>
<ide> config.active_r... | 1 |
Go | Go | rename the default seccomp profile to "builtin" | ac449d6b5ad29a5086824729ce54eec6b0cc8545 | <ide><path>daemon/config/config.go
<ide> const (
<ide> LinuxV2RuntimeName = "io.containerd.runc.v2"
<ide>
<ide> // SeccompProfileDefault is the built-in default seccomp profile.
<del> SeccompProfileDefault = "default"
<add> SeccompProfileDefault = "builtin"
<ide> // SeccompProfileUnconfined is a special profile nam... | 1 |
Javascript | Javascript | add type annotations for chunk | f1618aed044f4ede5e7bca2db16e793079a9ab8b | <ide><path>lib/Chunk.js
<ide> /*
<del> MIT License http://www.opensource.org/licenses/mit-license.php
<del> Author Tobias Koppers @sokra
<add>MIT License http://www.opensource.org/licenses/mit-license.php
<add>Author Tobias Koppers @sokra
<ide> */
<ide> "use strict";
<ide>
<ide> const ERR_CHUNK_ENTRY = "Chunk.entry wa... | 2 |
Text | Text | describe gotcha for 'status' option [ci skip] | 2ad466b867844d405110d1862cf020848f7a1814 | <ide><path>guides/source/layouts_and_rendering.md
<ide> Rails understands both numeric status codes and the corresponding symbols shown
<ide> | | 510 | :not_extended |
<ide> | | 511 | :network_authentication_required |
<ide>
<add>NOTE... | 1 |
Ruby | Ruby | expand check to dylibs and bundles | 440adcbec0f8a725590a830c3efa7dfa8a745626 | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> def initialize(keg, formula = nil, cache_db:, rebuild_cache: false)
<ide> @unnecessary_deps = []
<ide> @unwanted_system_dylibs = []
<ide> @version_conflict_deps = []
<del> @executables_missing_rpaths = []
<add> @files_missing_rpaths = []
<ide>
<ide... | 1 |
Javascript | Javascript | remove irrelevant comment | bb51d3b211215ed432714387a89f20c2e08407c6 | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> const b = otherChunk._modules[Symbol.iterator]();
<ide> // eslint-disable-next-line
<ide> while (true) {
<del> // eslint-disable-line
<ide> const aItem = a.next();
<ide> const bItem = b.next();
<ide> if (aItem.done) return 0; | 1 |
Mixed | Ruby | update example formula documentation | 8e12390fc8d9b198dd4b68ca20c0108e5d60e1a5 | <ide><path>Library/Contributions/example-formula.rb
<ide> class ExampleFormula < Formula
<ide> version "1.2-final"
<ide>
<ide> # For integrity and security, we verify the hash (`openssl dgst -sha1 <FILE>`)
<del> # You may also use sha256 if the software uses sha256 on their homepage.
<del> # Leave it empty at fi... | 2 |
Go | Go | add a whitespace in plugin's logging | 97c77b7e0dd2eef23beca1180be93733a3a95e82 | <ide><path>plugin/manager.go
<ide> func LookupWithCapability(name, capability string) (Plugin, error) {
<ide>
<ide> // StateChanged updates daemon inter...
<ide> func (pm *Manager) StateChanged(id string, e libcontainerd.StateInfo) error {
<del> logrus.Debugf("plugin statechanged %s %#v", id, e)
<add> logrus.Debugf("p... | 1 |
PHP | PHP | turn tests inline to make more clear; | 4824f4b2fd402b597dfa9e93d27075497e411afd | <ide><path>tests/Http/HttpRequestTest.php
<ide> public function testCreateFromBase()
<ide> * Tests for Http\Request magic methods `__get()` and `__isset()`.
<ide> *
<ide> * @link https://github.com/laravel/framework/issues/10403 Form request object attribute returns empty when have some string.
<del> ... | 1 |
Javascript | Javascript | update variable declarations according to es6 | a94149988913c20101aa97687e063567126dcdad | <ide><path>lib/BasicEvaluatedExpression.js
<ide> class BasicEvaluatedExpression {
<ide> else if(this.isWrapped()) return this.prefix && this.prefix.asBool() || this.postfix && this.postfix.asBool() ? true : undefined;
<ide> else if(this.isTemplateString()) {
<ide> if(this.quasis.length === 1) return this.quasis[... | 3 |
Python | Python | add an unitest for issue | 6ca31c947aaeb618c33115bfcd6b684b5f2a642b | <ide><path>unitest-restful.py
<ide> def test_010_history(self):
<ide> self.assertIsInstance(req.json()['system'], list)
<ide> self.assertTrue(len(req.json()['system']) > 1)
<ide>
<add> def test_011_issue1401(self):
<add> """Check issue #1401."""
<add> method = "network/interface_name"
... | 1 |
Javascript | Javascript | avoid cyclic dependency on vector3 | 58b6bd2dadd9986192ec80683af53e4f2c229ba5 | <ide><path>src/math/Quaternion.js
<ide> */
<ide>
<ide> import { _Math } from './Math.js';
<del>import { Vector3 } from './Vector3.js';
<ide>
<ide> function Quaternion( x, y, z, w ) {
<ide>
<ide> Object.assign( Quaternion.prototype, {
<ide>
<ide> // assumes direction vectors vFrom and vTo are normalized
<ide>
<d... | 1 |
Text | Text | replace env description with args in extend config | abdc031aeaa757546735da0075868b87dd99ef7a | <ide><path>docs/extend/config.md
<ide> Config provides the base accessible fields for working with V0 plugin format
<ide>
<ide> - **`name`** *string*
<ide>
<del> name of the env.
<add> name of the args.
<ide>
<ide> - **`description`** *string*
<ide>
<del> description of the env.
<add> descript... | 1 |
Javascript | Javascript | fix flaky smartos test | 5b80ca9339683dd94cc9d7adae99640c4ec9f859 | <ide><path>test/parallel/test-net-server-max-connections.js
<ide> function makeConnection(index) {
<ide> if (index + 1 < N) {
<ide> makeConnection(index + 1);
<ide> }
<add>
<add> c.on('close', function() {
<add> console.error('closed %d', index);
<add> closes++;
<add>
<add> if (closes < ... | 1 |
Go | Go | fix getcontainer() returning (nil, nil) | 00157a42d367eca1dc140a5638d41444ab7434ce | <ide><path>daemon/container.go
<ide> func (daemon *Daemon) GetContainer(prefixOrName string) (*container.Container, e
<ide> }
<ide> return nil, errdefs.System(indexError)
<ide> }
<del> return daemon.containers.Get(containerID), nil
<add> ctr := daemon.containers.Get(containerID)
<add> if ctr == nil {
<add> // Upd... | 1 |
PHP | PHP | remove obsolete class import in request.php | df9c223ed684f75d4f6aa1a628c14ff052ee870e | <ide><path>laravel/request.php
<del><?php namespace Laravel; use Closure;
<add><?php namespace Laravel;
<ide>
<ide> class Request {
<ide> | 1 |
Javascript | Javascript | add new-stream util | c8c0fc88e9b04065addfcd45919867b7fcf99725 | <ide><path>packages/ember-htmlbars/lib/hooks/bind-self.js
<ide> @submodule ember-htmlbars
<ide> */
<ide>
<del>import ProxyStream from 'ember-metal/streams/proxy-stream';
<del>import subscribe from 'ember-htmlbars/utils/subscribe';
<add>import newStream from 'ember-htmlbars/utils/new-stream';
<ide>
<ide> export defaul... | 3 |
Javascript | Javascript | resolve prettier issues | f34a9ebd2ca6de6ac023dc34e920f4bc35de3636 | <ide><path>lib/DelegatedModule.js
<ide> class DelegatedModule extends Module {
<ide> hash.update(JSON.stringify(this.request));
<ide> super.updateHash(hash, chunkGraph);
<ide> }
<del>
<add>
<ide> serialize(context) {
<ide> const { write } = context;
<ide> // constructor
<ide> class DelegatedModule extends Mo... | 2 |
PHP | PHP | add method to paginator | b0b042018c326982e6410852c7a757802f1bf650 | <ide><path>src/Illuminate/Pagination/Paginator.php
<ide> public function nextPageUrl()
<ide> }
<ide> }
<ide>
<add> /**
<add> * Manually indicate that the paginator does have more pages.
<add> *
<add> * @return $this
<add> */
<add> public function doesHaveMorePages()
<add> {
<add> ... | 1 |
PHP | PHP | use the current timestamp as a default | 0c2b7da2635f7bbbaf63d1b93fa817232bdd9d65 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function nullableTimestamps()
<ide> */
<ide> public function timestamps()
<ide> {
<del> $this->timestamp('created_at');
<add> $this->timestamp('created_at')->useCurrent();
<ide>
<del> $this->timestamp('updated_at');
... | 1 |
Javascript | Javascript | add .renderoutline() to outlineeffect | 4d77551ca2d49ad7db8fd75126d565613cdd6f87 | <ide><path>examples/js/effects/OutlineEffect.js
<ide> *
<ide> * Reference: https://en.wikipedia.org/wiki/Cel_shading
<ide> *
<add> * API
<add> *
<add> * 1. Traditional
<add> *
<add> * var effect = new THREE.OutlineEffect( renderer );
<add> *
<add> * function render() {
<add> *
<add> * effect.render( scene, camera )... | 1 |
PHP | PHP | remove methods that just call parent | 5f86e1fcf68b1fbd7bca79d4f377233aa1323332 | <ide><path>src/I18n/Time.php
<ide> public static function listTimezones($filter = null, $country = null, $options =
<ide>
<ide> return array_combine($identifiers, $identifiers);
<ide> }
<del>
<del> /**
<del> * Returns true this instance will happen within the specified interval
<del> *
<del> ... | 1 |
Text | Text | add usage recommendation for writable._destroy | 5016181697d63af9501ff3d6a719ba50237eb518 | <ide><path>doc/api/stream.md
<ide> added: v8.0.0
<ide>
<ide> The `_destroy()` method is called by [`writable.destroy()`][writable-destroy].
<ide> It can be overridden by child classes but it **must not** be called directly.
<add>Furthermore, the `callback` should not be mixed with async/await
<add>once it is executed ... | 1 |
Ruby | Ruby | parse opam archives | cc7a047edc8dbd34706dfe4014a78dc0b176cf6b | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_with_arch
<ide> assert_version_detected "4.0.18",
<ide> "http://ftpmirror.gnu.org/mtools/mtools_4.0.18_i386.deb"
<ide> end
<add>
<add> def test_opam_version
<add> assert_version_detected "2.18.3",
<add> "https://opam.ocaml.org/archive... | 2 |
Ruby | Ruby | move relation#merge tests into separate file | 742adce211649a3d3965d134cd53feab287a0bf6 | <ide><path>activerecord/test/cases/relation/merging_test.rb
<add>require 'cases/helper'
<add>require 'models/author'
<add>require 'models/comment'
<add>require 'models/developer'
<add>require 'models/post'
<add>require 'models/project'
<add>
<add>class RelationMergingTest < ActiveRecord::TestCase
<add> fixtures :devel... | 2 |
Text | Text | make the readme for textsum a little clearer | 3bbc5d2f38095747a3ccc27e6f1dad58d11d5e64 | <ide><path>textsum/README.md
<ide> vocabulary size: Most frequent 200k words from dataset's article and summaries.
<ide>
<ide> <b>How To Run</b>
<ide>
<del>Pre-requesite:
<del>
<del>Install TensorFlow and Bazel.
<add>Prerequisite: install TensorFlow and Bazel.
<ide>
<ide> ```shell
<ide> # cd to your workspace
<ide> ... | 1 |
Text | Text | add v3.17.0-beta.5 to changelog | 230050945f50ad36aff3d05263b688870aff474b | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.17.0-beta.5 (February 18, 2020)
<add>
<add>- [#18730](https://github.com/emberjs/ember.js/pull/18730) Workaround for the Glimmer VM bug which encodes/decodes integer literals correctly.
<add>
<ide> ### v3.17.0-beta.4 (February 10, 2020)
<ide>
<ide> - [... | 1 |
PHP | PHP | ignore the remaining errors | edd54e4ddf89325018cd05386bdec42562fd5797 | <ide><path>lib/Cake/Test/Case/Utility/SetTest.php
<ide> public function testMapReverse() {
<ide> array('id' => 1, 'article_id' => 1, 'user_id' => 1, 'comment' => 'First Comment for First Article', 'published' => 'Y', 'created' => '2007-03-18 10:47:23', 'updated' => '2007-03-18 10:49:31'),
<ide> array('i... | 1 |
Python | Python | fix typo in methodview doc | dbeed240674ed7a7160ae82a603eaa930dd1fd00 | <ide><path>flask/views.py
<ide> def __new__(cls, name, bases, d):
<ide> class MethodView(with_metaclass(MethodViewType, View)):
<ide> """Like a regular class-based view but that dispatches requests to
<ide> particular methods. For instance if you implement a method called
<del> :meth:`get` it means you will... | 1 |
PHP | PHP | remove unused var | 97e2e4395f0a00897f57b2d5807b296f20cd90fa | <ide><path>tests/TestCase/Database/TypeTest.php
<ide> public function testMapAndBuild()
<ide> public function testReMapAndBuild()
<ide> {
<ide> $fooType = FooType::class;
<del> $map = Type::map('foo', $fooType);
<add> Type::map('foo', $fooType);
<ide> $type = Type::build('foo');
<i... | 1 |
PHP | PHP | remove redundant call to empty() | 5baac38e32619081e08406c5052c5c567bda45ce | <ide><path>src/Http/Session.php
<ide> public function delete(string $name): void
<ide> */
<ide> protected function _overwrite(array &$old, array $new): void
<ide> {
<del> if (!empty($old)) {
<del> foreach ($old as $key => $var) {
<del> if (!isset($new[$key])) {
<del> ... | 1 |
Ruby | Ruby | prefer head version if its installed | a305360099d5aa973640556653ec0b5be266a792 | <ide><path>Library/Homebrew/brew.h.rb
<ide> def info f
<ide> kids=f.prefix.parent.children
<ide> kids.each do |keg|
<ide> print "#{keg} (#{keg.abv})"
<del> print " *" if f.prefix == keg and kids.length > 1
<add> print " *" if f.installed_prefix == keg and kids.length > 1
<ide> puts
<ide> ... | 2 |
Python | Python | update example for ec2's multi-locationness | a7d84010941f651f0a96be5ca26a953d29e65ab8 | <ide><path>example.py
<ide> from libcloud.types import Provider
<ide> from libcloud.providers import get_driver
<ide>
<del>EC2 = get_driver(Provider.EC2)
<add>EC2 = get_driver(Provider.EC2_US_EAST)
<ide> Slicehost = get_driver(Provider.SLICEHOST)
<ide> Rackspace = get_driver(Provider.RACKSPACE)
<ide> | 1 |
Text | Text | add nokogiri to docs generation guides | e950c3e47b89a83aa81a9b0cde3c1f4848dc006d | <ide><path>guides/source/getting_started.md
<ide> command-line utility:
<ide> in your web browser to explore the API documentation.
<ide>
<ide> TIP: To be able to generate the Rails Guides locally with the `doc:guides` rake
<del>task you need to install the RedCloth gem. Add it to your `Gemfile` and run
<add>task yo... | 1 |
Text | Text | post about v0.10.2 | 708e8589ea76548f61ccbf8c064fd65a34429b1f | <ide><path>doc/blog/release/v0.10.2.md
<add>date: Thu Mar 28 13:00:39 PDT 2013
<add>version: 0.10.2
<add>category: release
<add>title: Node v0.10.2 (Stable)
<add>slug: node-v0-10-2-stable
<add>
<add>2013.03.28, Version 0.10.2 (Stable)
<add>
<add>* npm: Upgrade to 1.2.15
<add>
<add>* uv: Upgrade to 0.10.3
<add>
<add>* t... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.