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 | fix flaky test testrunexitonstdinclose | f84cabd3b8a737e7539d71773b842daa8f0dc66b | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunExitOnStdinClose(c *check.C) {
<ide> name := "testrunexitonstdinclose"
<ide>
<ide> meow := "/bin/cat"
<del> delay := 1
<add> delay := 60
<ide> if daemonPlatform == "windows" {
<ide> meow = "cat"
<del> delay = 60
<ide> }
<ide> ... | 1 |
Ruby | Ruby | use project-by tool to retrieve formula data | 4fa01fc8b75d2d0530327e9c0f11aede26a150fa | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide> repo["repo"] == "homebrew"
<ide> end
<ide>
<del> next if homebrew_repo.blank? # TODO: check if/when this ever happens
<add> next if homebrew_repo.blank?
<ide>
<ide> formula = begin
<ide> Formula[homebrew... | 2 |
Javascript | Javascript | remove unreachable code | ec7c27f4cb80c3f2600ec7e024276c2831273a47 | <ide><path>lib/child_process.js
<ide> var _deprecatedCustomFds = internalUtil.deprecate(function(options) {
<ide> 'Use options.stdio instead.');
<ide>
<ide> function _convertCustomFds(options) {
<del> if (options && options.customFds && !options.stdio) {
<add> if (options.customFds && !options.stdio) {
<ide> ... | 1 |
Javascript | Javascript | update fuzz tester to not use animation priority | 9749a6ea6a7215507e2ff70627fe31ae31fbf0a2 | <ide><path>src/renderers/shared/fiber/__tests__/ReactIncrementalTriangle-test.js
<ide> describe('ReactIncrementalTriangle', () => {
<ide> beforeEach(() => {
<ide> jest.resetModules();
<ide> React = require('react');
<del> ReactNoop = require('ReactNoop');
<add> ReactNoop = require('ReactNoopEntry');
<id... | 1 |
PHP | PHP | implement viewvarstrait in other classes | 41cd758d75f371036e746e23b9a300838eab70e6 | <ide><path>lib/Cake/Console/Command/Task/TemplateTask.php
<ide> use Cake\Console\Shell;
<ide> use Cake\Core\App;
<ide> use Cake\Utility\Folder;
<add>use Cake\Utility\ViewVarsTrait;
<ide>
<ide> /**
<ide> * Template Task can generate templated output Used in other Tasks.
<ide> */
<ide> class TemplateTask extends Shell... | 2 |
Javascript | Javascript | add helpful assert for non-route controllers | c0cbf374940507c57af748fbc9015ef04ab70363 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> Ember.Route = Ember.Object.extend({
<ide>
<ide> if (!controller) {
<ide> model = model || this.modelFor(name);
<add>
<add> Ember.assert("You are trying to look up a controller that you did not define, and for which Ember does not know the model... | 2 |
Ruby | Ruby | reject versions that aren't strings | f6536e9c8bae3c53a0b7c97b7bdddc0ce7beab83 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def detect_version(val)
<ide> when nil then Version.detect(url, specs)
<ide> when String then Version.new(val)
<ide> when Hash then Version.new_with_scheme(*val.shift)
<add> else
<add> raise TypeError, "version '#{val.inspect}' should be a st... | 2 |
Javascript | Javascript | add tree-shaking to provideddependency | 0aabe2a88446c2f8cae28ef50c93a525eb405df0 | <ide><path>lib/dependencies/ProvidedDependency.js
<ide>
<ide> "use strict";
<ide>
<add>const Dependency = require("../Dependency");
<ide> const InitFragment = require("../InitFragment");
<ide> const makeSerializable = require("../util/makeSerializable");
<ide> const ModuleDependency = require("./ModuleDependency");
<... | 6 |
Text | Text | put content in data structures stub | fc4ae129b4bb7a6b09cfb9b15a57b407f9d52143 | <ide><path>packages/learn/src/introductions/coding-interview-prep/data-structures/index.md
<ide> superBlock: Coding Interview Prep
<ide> ---
<ide> ## Introduction to the Coding Interview Data Structure Questions
<ide>
<del>This introduction is a stub
<del>
<del>Help us make it real on [GitHub](https://github.com/freeC... | 1 |
PHP | PHP | fix missing prefix when reading table schema | 9c4a9bbd06c2b88f9ab95678de455fc0a443ee41 | <ide><path>lib/Cake/Model/CakeSchema.php
<ide> public function read($options = array()) {
<ide> $systemTables = array(
<ide> 'aros', 'acos', 'aros_acos', Configure::read('Session.table'), 'i18n'
<ide> );
<add>
<add> $fulltable = $db->fullTableName($Object, false);
<add>
<ide> if (in_array($table, $s... | 1 |
PHP | PHP | fix request usage in auth tests | cff3aeb81edd59bf84fecfd2393917b9d1524b6f | <ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php
<ide> public function testAuthenticateUsernameZero()
<ide> $User = TableRegistry::get('Users');
<ide> $User->updateAll(['username' => '0'], ['username' => 'mariano']);
<ide>
<del> $request = new ServerRequest('posts/index');
<del> $... | 2 |
Python | Python | fix #521. (browseable api exception on delete) | 598ae3286ac6343a59e6d80fc93428539c5f836e | <ide><path>rest_framework/mixins.py
<ide> class DestroyModelMixin(object):
<ide> Should be mixed in with `SingleObjectBaseView`.
<ide> """
<ide> def destroy(self, request, *args, **kwargs):
<del> self.object = self.get_object()
<del> self.object.delete()
<add> obj = self.get_object()
<a... | 1 |
Go | Go | return image id in api when using buildkit | ca8022ec63a9d0e2f9660e2a3455d821abf8f517 | <ide><path>api/server/backend/build/backend.go
<ide> func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
<ide> return "", err
<ide> }
<ide> if config.ProgressWriter.AuxFormatter != nil {
<del> if err = config.ProgressWriter.AuxFormatter.Emit(types.BuildResult{ID: imageID}); err != ... | 6 |
Go | Go | fix various race conditions in loggerutils | 3148a46657266738ef28cfa07b78088fea4eda07 | <ide><path>daemon/logger/loggerutils/logfile_test.go
<ide> import (
<ide> "os"
<ide> "path/filepath"
<ide> "strings"
<add> "sync/atomic"
<ide> "testing"
<ide> "time"
<ide>
<ide> func TestTailFiles(t *testing.T) {
<ide>
<ide> files := []SizeReaderAt{s1, s2, s3}
<ide> watcher := logger.NewLogWatcher()
<add> defe... | 1 |
Javascript | Javascript | replace occurances of gotostate with transitionto | 03c94f8278d8cbdb6621051f2ac2e9f61e2eb36f | <ide><path>packages/ember-states/lib/state_manager.js
<ide> require('ember-states/state');
<ide>
<ide>
<ide> Each state property may itself contain properties that are instances of Ember.State.
<del> The StateManager can transition to specific sub-states in a series of goToState method calls or
<add> The StateMan... | 6 |
Ruby | Ruby | fix undefined method null error | 3364e519b5bebb136ad9606d6af42f4171691bfd | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def check_new_version(formula, tap_remote_repo, args:, version: nil, url: nil, t
<ide> specs = {}
<ide> specs[:tag] = tag if tag.present?
<ide> version = Version.detect(url, **specs)
<add> return if version.null?
<ide> end
<ide>
<d... | 1 |
Text | Text | add async_hooks migration note | 80dcc068fb54d93b6a8d65fe5cf4f21e04aeb52c | <ide><path>doc/api/async_hooks.md
<ide>
<ide> <!--introduced_in=v8.1.0-->
<ide>
<del>> Stability: 1 - Experimental
<add>> Stability: 1 - Experimental. Please migrate away from this API, if you can.
<add>> We do not recommend using the [`createHook`][], [`AsyncHook`][], and
<add>> [`executionAsyncResource`][] APIs as ... | 1 |
Javascript | Javascript | remove unused variable | d86253456eedebe238a07da1914b9e11b867e835 | <ide><path>packages/ember-views/lib/views/view.js
<ide> Ember.View = Ember.Object.extend(Ember.Evented,
<ide> @test in createChildViews
<ide> */
<ide> createChildView: function(view, attrs) {
<del> var coreAttrs, templateData;
<add> var coreAttrs;
<ide>
<ide> if (Ember.View.detect(view)) {
<ide> ... | 1 |
Go | Go | implement daemon suite for integration-cli | 57464c32b99b36a2963fb37da86b9870c9a56145 | <ide><path>integration-cli/check_test.go
<ide> func (s *DockerRegistrySuite) TearDownTest(c *check.C) {
<ide> s.reg.Close()
<ide> s.ds.TearDownTest(c)
<ide> }
<add>
<add>func init() {
<add> check.Suite(&DockerDaemonSuite{
<add> ds: &DockerSuite{},
<add> })
<add>}
<add>
<add>type DockerDaemonSuite struct {
<add> ds *... | 4 |
Ruby | Ruby | handle missing process | 7eb4b92d309a2118881f78893271bc1c8e5d57b4 | <ide><path>Library/Homebrew/cache_store.rb
<ide> def db
<ide> end
<ide> rescue ErrorDuringExecution, Timeout::Error
<ide> odebug "Failed to read #{dbm_file_path}!"
<del> Process.kill(:KILL, dbm_test_read_cmd.pid)
<add> begin
<add> Process.kill(:KILL, dbm_test_rea... | 1 |
Text | Text | add doc for setting the queue adapter | 29c9dcc4aff563085e94ec89c148b6e779fd4e46 | <ide><path>README.md
<ide> switch between them without having to rewrite your jobs.
<ide>
<ide> ## Usage
<ide>
<add>Set the queue adapter for Active Job:
<add>
<add>``` ruby
<add>ActiveJob::Base.queue_adapter = :inline # default queue adapter
<add># Adapters currently supported: :resque, :sidekiq, :sucker_punch, :del... | 1 |
PHP | PHP | apply fixes from styleci | ebbefd8723125d094a09c940ff27919b9ae9f2d1 | <ide><path>tests/Integration/Database/EloquentPaginateTest.php
<ide> public function test_pagination_on_top_of_columns()
<ide> {
<ide> for ($i = 1; $i <= 50; $i++) {
<ide> Post::create([
<del> 'title' => 'Title ' . $i,
<add> 'title' => 'Title '.$i,
<ide> ... | 1 |
Javascript | Javascript | add rfc232 variants | 4fc1370b6eec39a0dd3b98ca1bb3e002b061500a | <ide><path>blueprints/initializer-test/qunit-rfc-232-files/tests/unit/initializers/__name__-test.js
<add>import Application from '@ember/application';
<add>import { run } from '@ember/runloop';
<add>
<add>import { initialize } from '<%= dasherizedModulePrefix %>/initializers/<%= dasherizedModuleName %>';
<add>import { ... | 3 |
Javascript | Javascript | add korean translation | 3621529edaf7b6548fe81f83ec25151f6b292161 | <ide><path>lang/kr.js
<ide> longDateFormat : {
<ide> L : "YYYY.MM.DD",
<ide> LL : "YYYY년 MMMM D일",
<del> LLL : "YYYY년 MMMM D일 HH시 mm분",
<del> LLLL : "YYYY년 MMMM D일 dddd HH시 mm분"
<add> LLL : "YYYY년 MMMM D일 A h시 mm분",
<add> ... | 2 |
Javascript | Javascript | fix element creation for large dataset | 505afa7f1323cf6e7975369eba30056977085eaa | <ide><path>src/core/core.datasetController.js
<ide> export default class DatasetController {
<ide> */
<ide> _insertElements(start, count, resetNewElements = true) {
<ide> const me = this;
<del> const elements = new Array(count);
<ide> const meta = me._cachedMeta;
<ide> const data = meta.data;
<add> const end... | 2 |
Text | Text | add link to write with transformers to model card | a9ae27cd0fe80b32ea1d1b64a0832f94d150d66b | <ide><path>model_cards/gpt2-xl-README.md
<add>Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large | 1 |
Ruby | Ruby | add parser for hyphenated filenames | d4c15a6d9d2d0641491d652285cd1d628bc8d530 | <ide><path>Library/Homebrew/test/version_spec.rb
<ide> specify "version internal dash" do
<ide> expect(described_class.create("1.1-2"))
<ide> .to be_detected_from("https://brew.sh/foo-arse-1.1-2.tar.gz")
<add> expect(described_class.create("3.3.04-1"))
<add> .to be_detected_from("https://b... | 2 |
PHP | PHP | add type hints in schemashell | 1d529c1dd2ede04ed84e18dd970b63f3555e1133 | <ide><path>lib/Cake/Console/Command/SchemaShell.php
<ide> protected function _loadSchema() {
<ide> * @param string $table
<ide> * @return void
<ide> */
<del> protected function _create($Schema, $table = null) {
<add> protected function _create(CakeSchema $Schema, $table = null) {
<ide> $db = ConnectionManager::get... | 2 |
Ruby | Ruby | add 6.4 expectation | 754c950e3eaa1f89c1030ec93d73b8e5a16fdb7d | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> when "10.7" then "4.6.3"
<ide> when "10.8" then "5.1.1"
<ide> when "10.9" then "6.2"
<del> when "10.10" then "6.3.2"
<add> when "10.10" then "6.4"
<ide> when "10.11" then "7.0"
<ide> else
... | 1 |
Javascript | Javascript | fix un-highlight when there is no query | 53672af0f79c64a88eb4280063e9df7e55f7144a | <ide><path>web/viewer.js
<ide> var PDFFindController = {
<ide>
<ide> this.active = true;
<ide>
<del> if (!this.state.query) {
<del> this.updateUIState(FindStates.FIND_FOUND);
<del> return;
<del> }
<ide> this.updateUIState(FindStates.FIND_PENDING);
<ide>
<ide> if (this.dirtyMatch) {
<ide> ... | 1 |
Python | Python | set version to v2.1.0a7.dev4 | 1831e1423d2e4d365baca2eb8d7358efa706b0aa | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7.dev3"
<add>__version__ = "2.1.0a7.dev4"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Javascript | Javascript | handle iteration over identical obj values | 47a2a9829f0a847bbee61cd142c43000d73ea98b | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animator', function($parse, $animator) {
<ide> var animate = $animator($scope, $attr);
<ide> var expression = $attr.ngRepeat;
<ide> var match = expression.match(/^\s*(.+)\s+in\s+(.*?)\s*(\s+track\s+by\s+(.+)\s*)?$... | 2 |
Javascript | Javascript | fix saving of xfa checkboxes. (bug 1726381) | 6d2193a8121252520407a33c633611189c711688 | <ide><path>src/core/xfa/template.js
<ide> class CheckButton extends XFAObject {
<ide> field.items.children[0][$toHTML]().html) ||
<ide> [];
<ide> const exportedValue = {
<del> on: (items[0] || "on").toString(),
<del> off: (items[1] || "off").toString(),
<add> on: (items[0] !== undefined... | 2 |
Ruby | Ruby | remove charset.alias directly | 3a4a529453c49572be1e0738cb4e9fd8efa75581 | <ide><path>Library/Homebrew/cleaner.rb
<ide> def initialize f
<ide> # Clean the keg of formula @f
<ide> def clean
<ide> ObserverPathnameExtension.reset_counts!
<add>
<add> # Many formulae include 'lib/charset.alias', but it is not strictly needed
<add> # and will conflict if more than one formula provides... | 1 |
Text | Text | add @empty changelog line | 134df8712b28fdee7f83d2793dafeb6950b79f39 | <ide><path>CHANGELOG-5.4.md
<ide> - Added support for attaching an image to Slack attachments `$attachment->image($url)`([#18664](https://github.com/laravel/framework/pull/18664))
<ide> - Added `Validator::extendDependent()` to allow adding custom rules that depend on other fields ([#18654](https://github.com/laravel/f... | 1 |
Python | Python | set version to v2.2.2.dev5 | 8b9954d1b7649cac351f87001f0283a52aef14e6 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.2.dev4"
<add>__version__ = "2.2.2.dev5"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spac... | 1 |
Text | Text | remove usage of global grunt-cli | f876ab71913e17e9126baad19ab795f28b61bfe6 | <ide><path>CONTRIBUTING.md
<ide> Before you submit your pull request consider the following guidelines:
<ide> * Run the AngularJS [unit][developers.tests-unit] and [E2E test][developers.tests-e2e] suites, and ensure that all tests
<ide> pass. It is generally sufficient to run the tests only on Chrome, as our Travis i... | 2 |
Python | Python | update tokenization docstrings for #328 | ab49fafc047b13d215f1857b3b638cabf19c3fe8 | <ide><path>pytorch_transformers/tokenization_bert.py
<ide> class BertTokenizer(PreTrainedTokenizer):
<ide>
<ide> def __init__(self, vocab_file, do_lower_case=True, do_basic_tokenize=True, never_split=None,
<ide> unk_token="[UNK]", sep_token="[SEP]", pad_token="[PAD]", cls_token="[CLS]",
<del> ... | 1 |
Mixed | Go | create extpoint for graphdrivers | b78e4216a2a97704b664da34d526da1f7e080849 | <ide><path>daemon/graphdriver/driver.go
<ide> func GetDriver(name, home string, options []string) (Driver, error) {
<ide> if initFunc, exists := drivers[name]; exists {
<ide> return initFunc(filepath.Join(home, name), options)
<ide> }
<add> if pluginDriver, err := lookupPlugin(name, home, options); err == nil {
<ad... | 10 |
Ruby | Ruby | add tests for prior checkin | 4584376a914f8a8cee059943d80ba73d2d4e2627 | <ide><path>activesupport/test/dependencies/raises_exception.rb
<ide> $raises_exception_load_count += 1
<del>raise 'Loading me failed, so do not add to loaded or history.'
<add>raise Exception, 'Loading me failed, so do not add to loaded or history.'
<ide> $raises_exception_load_count += 1
<ide><path>activesupport/test/... | 2 |
Text | Text | fix typos in docs | 72de94a05d2038f2557d4c7a3b16cf20416fb123 | <ide><path>docs/api-guide/caching.md
<ide> # Caching
<ide>
<del>> A certain woman had a very sharp conciousness but almost no
<add>> A certain woman had a very sharp consciousness but almost no
<ide> > memory ... She remembered enough to work, and she worked hard.
<ide> > - Lydia Davis
<ide>
<ide><path>docs/api-guide... | 7 |
Ruby | Ruby | remove cask’s `cli#debug?` | a44d4ce88b6fb3deea8dc41be662583941d5c96d | <ide><path>Library/Homebrew/cask/lib/hbc/cask.rb
<ide> def to_s
<ide> end
<ide>
<ide> def dumpcask
<del> return unless CLI.debug?
<del>
<ide> odebug "Cask instance dumps in YAML:"
<ide> odebug "Cask instance toplevel:", to_yaml
<ide> [
<ide><path>Library/Homebrew/cask/lib/hbc/cli.rb
<ide... | 6 |
Javascript | Javascript | add test for unique challenge titles | 5fa098ea0de6afe29af7020c5a868d80c05b64f8 | <ide><path>challengeTitles.js
<add>import _ from 'lodash';
<add>
<add>class ChallengeTitles {
<add> constructor() {
<add> this.knownTitles = [];
<add> }
<add> check(title) {
<add> if (typeof title !== 'string') {
<add> throw new Error(`Expected a valid string for ${title}, got ${typeof title}`);
<add> ... | 2 |
Ruby | Ruby | fix the variable name | 7768c2a7f3142b422c90dfea451f74643994be52 | <ide><path>activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb
<ide> class JoinTableResolver
<ide> KnownTable = Struct.new :join_table
<ide>
<ide> class KnownClass
<del> def initialize(rhs_class, lhs_class_name)
<del> @rhs_class = rhs_class
<del> @lh... | 1 |
Javascript | Javascript | escape forward slash in email regexp | b775e2bca1093e9df62a269b5bda968555ea0ded | <ide><path>src/ng/directive/input.js
<ide> */
<ide>
<ide> var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
<del>var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i;
<add>var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9-]+(\.[... | 1 |
PHP | PHP | remove bonus inflection in _setmodelclass() | a2f3fc4012450cf51a3a660ee2a7a296a2efc14c | <ide><path>src/Console/Shell.php
<ide> class Shell {
<ide> protected $_io;
<ide>
<ide> /**
<del> * Constructs this Shell instance.
<add> * Constructs this Shell instance.
<ide> *
<ide> * @param \Cake\Console\ConsoleIo $io An io instance.
<ide> * @link http://book.cakephp.org/3.0/en/console-and-shells.html#Shell
<... | 3 |
Text | Text | use reserved domains for examples in url.md | 0311fcc546e792c813f1c6644ff7e60e7a7b5158 | <ide><path>doc/api/url.md
<ide> backwards compatibility with existing applications. New application code
<ide> should use the WHATWG API.
<ide>
<ide> A comparison between the WHATWG and Legacy APIs is provided below. Above the URL
<del>`'http://user:pass@sub.host.com:8080/p/a/t/h?query=string#hash'`, properties of
<de... | 1 |
Javascript | Javascript | drop `arraymap` for `map`. | 11879537b9d17ae393920df699ad95ec67b55759 | <ide><path>lib/ArrayMap.js
<del>/*
<del> MIT License http://www.opensource.org/licenses/mit-license.php
<del> Author Tobias Koppers @sokra
<del>*/
<del>
<del>"use strict";
<del>
<del>class ArrayMap {
<del> constructor() {
<del> this.keys = [];
<del> this.values = [];
<del> }
<del>
<del> get(key) {
<del> for(let i = ... | 3 |
Javascript | Javascript | fix nowork bug | 9fca81213967210ea3f74daab7a0f64a454bd3b6 | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) {
<ide> // it until the next tick.
<ide> workInProgress.child = current.child;
<ide> reuseChildren(workInProgress, workInProgress.child);
<del> if (wor... | 2 |
Ruby | Ruby | move more command handling logic to commands.rb | 8a9dcad2c708ce945695029c5af79b4b3965a4de | <ide><path>Library/Homebrew/brew.rb
<ide> class MissingEnvironmentVariables < RuntimeError; end
<ide>
<ide> ENV["PATH"] = path
<ide>
<del> if cmd
<del> internal_cmd = require? HOMEBREW_LIBRARY_PATH/"cmd"/cmd
<add> require "commands"
<ide>
<del> unless internal_cmd
<del> internal_dev_cmd = require? HOM... | 10 |
Javascript | Javascript | add specs for modalmanager | a3479c212a935468396872bf448777196784c880 | <ide><path>Libraries/Modal/Modal.js
<ide> const AppContainer = require('../ReactNative/AppContainer');
<ide> const I18nManager = require('../ReactNative/I18nManager');
<ide> const NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');
<del>const NativeModules = require('../BatchedBridge/NativeModules');
<a... | 2 |
Text | Text | remove helmet test instructions | 3969f651b8694ac58da6ae181b4268932f8781bf | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/issue-tracker.english.md
<ide> Start this project on Repl.it using <a href="https://repl.it/github/freeCodeCamp
<ide>
<ide> ```yml
<ide> tests:
<del> - text: Prevent cross site scripting (XSS) attacks.
<del> testString: ''
<id... | 3 |
Javascript | Javascript | remove eslint comments | 8d1f15bf992a70eab3107986a4fc71afc16a9c99 | <ide><path>test/parallel/test-whatwg-url-tojson.js
<ide> const common = require('../common');
<ide> const URL = require('url').URL;
<ide> const { test, assert_equals } = common.WPT;
<ide>
<del>/* eslint-disable */
<ide> /* WPT Refs:
<ide> https://github.com/w3c/web-platform-tests/blob/02585db/url/url-tojson.html
<i... | 1 |
Ruby | Ruby | reorganize clean_dir to avoid repeated conditional | 095d83d10b6763ecc57f3967898113c98b920063 | <ide><path>Library/Homebrew/cleaner.rb
<ide> def clean_dir d
<ide> d.find do |path|
<ide> path.extend(NoisyPathname) if ARGV.verbose?
<ide>
<del> if path.directory?
<del> # Stop cleaning this subtree if protected
<del> Find.prune if @f.skip_clean? path
<del> elsif not path.file?
<del>... | 1 |
Mixed | Ruby | add support for postgresql `interval` datatype | e5a5cc483573f41fa396779057bd83ce389640d8 | <ide><path>activerecord/CHANGELOG.md
<add>* Add support for PostgreSQL `interval` data type with conversion to
<add> `ActiveSupport::Duration` when loading records from database and
<add> serialization to ISO 8601 formatted duration string on save.
<add> Add support to define a column in migrations and get i... | 9 |
Javascript | Javascript | use the `tothrowminerr()` matcher when possible | fbf30b28e0a3de717e3f8eb605a4920da080211b | <ide><path>test/AngularSpec.js
<ide> describe('angular', function() {
<ide>
<ide> expect(function() {
<ide> angularInit(appElement, angular.bootstrap);
<del> }).toThrowError(
<del> new RegExp('\\[\\$injector:modulerr] Failed to instantiate module doesntexist due to:\\n' +
<add> }).toThro... | 4 |
Ruby | Ruby | remove escape characters | 88e5c4c333c72238e4e93116fdecf45194310539 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> testcase.attributes['time'] = step.time
<ide> failure = testcase.add_element 'failure' if step.failed?
<ide> if step.has_output?
<del> # Remove null characters from step output.
<del> output = REXML::CData.new step... | 1 |
Python | Python | fix python 3.2 test failure | d4a211a0f1905c3ef597d63440d04deb78659e96 | <ide><path>libcloud/utils/iso8601.py
<ide> from datetime import datetime, timedelta, tzinfo
<ide> import re
<ide>
<add>from libcloud.utils.py3 import basestring
<add>
<ide> __all__ = ["parse_date", "ParseError"]
<ide>
<ide> # Adapted from http://delete.me.uk/2005/03/iso8601.html | 1 |
Javascript | Javascript | remove unneeded comma at the end of spherical | 780dbe8c5dda2149a682bf6687d0732bffaab3cd | <ide><path>src/math/Spherical.js
<ide> Spherical.prototype = {
<ide>
<ide> return this;
<ide>
<del> },
<add> }
<ide>
<ide> };
<ide> | 1 |
Javascript | Javascript | add documentation for navigationcardstack | d6003677159d1f68bfa6c91c64b6acc008b36834 | <ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js
<ide> type DefaultProps = {
<ide> /**
<ide> * A controlled navigation view that renders a stack of cards.
<ide> *
<add> * ```html
<ide> * +------------+
<ide> * +-| Header |
<ide> * +-+ |------------|
<ide> type DefaultPr... | 1 |
Text | Text | wrap a couple of long lines | cf30b85eb1d3ecbf27c35ea344a5f68934c1bd2b | <ide><path>CONTRIBUTING.md
<ide> # Contributing to Docker
<ide>
<del>Want to hack on Docker? Awesome! Here are instructions to get you started. They are probably not perfect, please let us know if anything feels
<del>wrong or incomplete.
<add>Want to hack on Docker? Awesome! Here are instructions to get you
<add>start... | 1 |
Python | Python | remove a remaining instance of old naming | da20a4ccd2cf5d9033358b55589a2f75a83d1dea | <ide><path>keras/models.py
<ide> def compile(self, optimizer, loss, class_mode="categorical", theano_mode=None):
<ide> raise Exception("Invalid class mode:" + str(class_mode))
<ide> self.class_mode = class_mode
<ide>
<del> if hasattr(self, 'cost_updates'):
<add> if hasattr(self, 'loss... | 1 |
Javascript | Javascript | increase coverage for net/blocklist | ed3a4c8bca0b59a7c805e1db076d1654cf3a1ac4 | <ide><path>test/parallel/test-blocklist.js
<ide> require('../common');
<ide>
<ide> const { BlockList } = require('net');
<ide> const assert = require('assert');
<add>const util = require('util');
<ide>
<ide> {
<ide> const blockList = new BlockList();
<ide> const assert = require('assert');
<ide> assert(blockList.... | 1 |
Text | Text | update changelog.md for 1.4.0-beta.3 | a29ee8b87dab1b13024ce5fc8d48d6ced1344f31 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### Ember 1.4.0-beta.3 (January 20, 2014)
<add>
<add>* Document the send method on Ember.ActionHandler.
<add>* Document Ember.Route #controllerName and #viewName properties.
<add>* Allow jQuery version 1.11 and 2.1.
<add>
<ide> ### Ember 1.4.0-beta.2 (January ... | 1 |
Python | Python | run tests in alphabetical order | a6756a2c064c21b41fc0ab0379bd4e055feb8bc0 | <ide><path>tools/test.py
<ide> def ListTests(self, current_path, path, context, mode):
<ide> if not name or name.match(test_name):
<ide> full_path = current_path + [test_name]
<ide> test.AddTestsToList(result, full_path, path, context, mode)
<add> result.sort(cmp=lambda a, b: cmp(a.GetName(), b... | 1 |
Python | Python | add test coverage for get_task_name() in pr | f51204f13a6efafd746ad4f61d0ec8ce4229b355 | <ide><path>t/unit/tasks/test_trace.py
<ide> from celery import group, uuid
<ide> from celery import signals
<ide> from celery import states
<add>from celery.app.task import Context
<ide> from celery.exceptions import Ignore, Retry, Reject
<ide> from celery.app.trace import (
<ide> TraceInfo,
<ide> build_tracer,... | 1 |
Ruby | Ruby | use example.com as standard (closes ) [anna] | 932622294194888cf7f9c5a10c082b75f0b7ab8d | <ide><path>actionpack/lib/action_controller/integration.rb
<ide> def reset!
<ide> @cookies = {}
<ide> @controller = @request = @response = nil
<ide>
<del> self.host = "www.example.test"
<add> self.host = "www.example.com"
<ide> self.remote_addr = "127.0.0.1"
<i... | 2 |
Text | Text | add tobias to the tsc | 7c211366ee498e4003a1fba6803e776168fbeef5 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Michaël Zasso** <targos@protonmail.com> (he/him)
<ide> * [thefourtheye](https://github.com/thefourtheye) -
<ide> **Sakthipriyan Vairamani** <thechargingvolcano@gmail.com> (he/him)
<add>* [tniessen](https://gi... | 1 |
PHP | PHP | remove failing assertions | f96433678711ab3c8f31ce223454af3f7e9e3fd1 | <ide><path>tests/Support/SupportStrTest.php
<ide> public function testStrContains()
<ide> public function testStrContainsAll()
<ide> {
<ide> $this->assertTrue(Str::containsAll('taylor otwell', ['taylor', 'otwell']));
<del> $this->assertTrue(Str::containsAll('taylor otwell', 'taylor'));
<ide> ... | 1 |
Javascript | Javascript | add failing test | 464d9502d6221946864028a716d1c4f8b5fe35f9 | <ide><path>packages/ember-metal/tests/watching/watch_test.js
<ide> testBoth('watching a regular defined property', function(get, set) {
<ide> set(obj, 'foo', 'bar');
<ide> equal(willCount, 1, 'should have invoked willCount');
<ide> equal(didCount, 1, 'should have invoked didCount');
<add>
<add> equal(get(obj, 'f... | 1 |
PHP | PHP | apply fixes from styleci | 294eac84b5d268fd39004a46037c0a2d2623ba97 | <ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
<ide> protected function compileLock(Builder $query, $value)
<ide> }
<ide>
<ide> /**
<del> * @inheritdoc
<add> * {@inheritdoc}
<ide> */
<ide> public function compileInsert(Builder $query, array $values)
<ide> { | 1 |
PHP | PHP | allow custom messages | 86e0a082eb43beb93d8677742c3b3b4fe42bc338 | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> class FormRequest extends Request {
<ide> public function validate(ValidationFactory $factory)
<ide> {
<ide> $instance = $factory->make(
<del> $this->input(), $this->container->call([$this, 'rules'])
<add> $this->input(), $this->container->call([$t... | 1 |
PHP | PHP | fix missing base path on generated urls | 2f2237b1164a7539ba4bcd80352201a6bca0402c | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function url($url = null, $options = array()) {
<ide> $hasLeadingSlash = isset($url[0]) ? $url[0] === '/' : false;
<ide> }
<ide>
<add> $params = array(
<add> 'plugin' => null,
<add> 'controller' => null,
<add> 'action' => 'index'
<add> );
<add> $... | 2 |
Text | Text | fix typo in description of close event | b359096f2f9a1d36a7a0d32e50160d5af1802e21 | <ide><path>doc/api/http.md
<ide> passed as the second parameter to the [`'request'`][] event.
<ide> added: v0.6.7
<ide> -->
<ide>
<del>Indicates that the the response is completed, or its underlying connection was
<add>Indicates that the response is completed, or its underlying connection was
<ide> terminated prematur... | 1 |
Javascript | Javascript | improve description and example | 29274e1d8d8b3c6a9100758da4a3c78222e77af1 | <ide><path>src/Angular.js
<ide> function encodeUriQuery(val, pctEncodeSpaces) {
<ide> *
<ide> * @description
<ide> *
<del> * Use this directive to auto-bootstrap an application. Only
<del> * one ngApp directive can be used per HTML document. The directive
<del> * designates the root of the application and is typical... | 1 |
Text | Text | suggest use of the github gem when contributing | 6ad2907000d927e055cacf389228ebdc01fcc0d7 | <ide><path>README.md
<ide> Contributing New Formulae
<ide> =========================
<ide> Formulae are simple Ruby scripts. Generate a formula with most bits filled-in:
<ide>
<del> brew create http://foo.org/foobar-1.2.1.tar.bz2
<add> brew create http://example.com/foo-1.2.1.tar.bz2
<ide>
<ide> Check it over a... | 1 |
Python | Python | add google cloud storage to bigquery operator | 40834dbfe473b2fb8299fa005a7a86580f3c8917 | <ide><path>airflow/contrib/hooks/bigquery_hook.py
<ide> def __init__(self, service, project_id):
<ide> self.service = service
<ide> self.project_id = project_id
<ide>
<del> def run_query(self, bql, destination_dataset_table = False, write_disposition = 'WRITE_EMPTY'):
<add> def run_query(self, bq... | 5 |
Mixed | Javascript | add new options to `net.socket` and `net.server` | 45b5ca810a16074e639157825c1aa2e90d60e9f6 | <ide><path>doc/api/http.md
<ide> changes:
<ide> [`--max-http-header-size`][] for requests received by this server, i.e.
<ide> the maximum length of request headers in bytes.
<ide> **Default:** 16384 (16 KB).
<add> * `noDelay` {boolean} If set to `true`, it disables the use of Nagle's
<add> algorithm imm... | 6 |
Javascript | Javascript | use xxhash64 for future defaults | da8e93af330739c332670ed7d040a648431703b4 | <ide><path>lib/config/defaults.js
<ide> const applyWebpackOptionsDefaults = options => {
<ide> outputModule: options.experiments.outputModule,
<ide> development,
<ide> entry: options.entry,
<del> module: options.module
<add> module: options.module,
<add> futureDefaults: options.experiments.futureDefaults
<ide>... | 2 |
Python | Python | avoid crash when unicode in title | 3fc3b7a13af2e15d8cb0cc90860d7861d3ad7ddf | <ide><path>spacy/cli/project/run.py
<ide> from typing import Optional, List, Dict, Sequence, Any, Iterable
<ide> from pathlib import Path
<ide> from wasabi import msg
<add>from wasabi.util import locale_escape
<ide> import sys
<ide> import srsly
<ide> import typer
<ide> def print_run_help(project_dir: Path, subcommand:... | 1 |
PHP | PHP | fix more failing tests | ffd6ad1cc3faf682b68a3ce39b61f8f02b202783 | <ide><path>src/Controller/Controller.php
<ide> */
<ide> namespace Cake\Controller;
<ide>
<del>use Cake\Controller\Exception\MissingActionException;
<ide> use Cake\Controller\ComponentRegistry;
<add>use Cake\Controller\Exception\MissingActionException;
<ide> use Cake\Datasource\ModelAwareTrait;
<ide> use Cake\Event\Ev... | 5 |
Java | Java | increase idle timeout for react app tests | c1c2a5bce57604f26f98bce17d3a6854ad809257 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java
<ide> public class ReactAppTestActivity extends FragmentActivity
<ide> private static final String DEFAULT_BUNDLE_NAME = "AndroidTestBundle.js";
<ide> private static final int ROOT_VIEW_ID = 8675309;
<ide> // we need... | 1 |
Javascript | Javascript | fix accidental global. thanks, @fponticelli! | 674ededfa15481f7a398c42ed695e304237a191c | <ide><path>d3.behavior.js
<ide> d3.behavior.zoom = function() {
<ide> };
<ide>
<ide> function transform(scale, o) {
<del> var domain = scale.__domain || (scale.__domain = scale.domain());
<add> var domain = scale.__domain || (scale.__domain = scale.domain()),
<ide> range = scale.range().map... | 3 |
PHP | PHP | add test covering correct use for | edfb0c6bb1af2045cb6adc36f037fcd7350569f6 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testEagerLoadingFromEmptyResults()
<ide> $this->assertEmpty($results);
<ide> }
<ide>
<add> /**
<add> * Tests that eagerloading associations with aliased fields works.
<add> *
<add> * @return void
<add> */
<add> ... | 1 |
Ruby | Ruby | generate an api dummy application for api plugins | ce32c9da962a9dd7a894c9a4457db9dd5f5a5a1f | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def generate_test_dummy(force = false)
<ide> opts = (options || {}).slice(*PASSTHROUGH_OPTIONS)
<ide> opts[:force] = force
<ide> opts[:skip_bundle] = true
<add> opts[:api] = options.api?
<ide>
<ide> invoke Rail... | 2 |
Javascript | Javascript | remove error messages in test-buffer-alloc | e021de346909474dc8d2154942606199f75d6118 | <ide><path>test/parallel/test-buffer-alloc.js
<ide> assert.strictEqual('TWFu', (Buffer.from('Man')).toString('base64'));
<ide> assert.strictEqual(quote, b.toString('ascii', 0, quote.length));
<ide>
<ide> // check that the base64 decoder ignores whitespace
<del> const expectedWhite = expected.slice(0, 60) + ' \n' ... | 1 |
Text | Text | add example for chmod in fs.md | 41fad84035daa37baf07a888322b2f17dd1d563c | <ide><path>doc/api/fs.md
<ide> possible exception are given to the completion callback.
<ide>
<ide> See also: chmod(2).
<ide>
<add>```js
<add>fs.chmod('my_file.txt', 0o775, (err) => {
<add> if (err) throw err;
<add> console.log('The permissions for file "my_file.txt" have been changed!');
<add>});
<add>```
<add>
<i... | 1 |
PHP | PHP | use $format as own first argument | 2ccd38010f1dfd4fba4d6beb27fc213962a22a97 | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function defaultModel($model = null)
<ide> }
<ide>
<ide> /**
<del> * Returns a counter string for the paged result set
<add> * Returns a counter string for the paged result set.
<ide> *
<ide> * ### Options
<ide> *
<ide> * -... | 2 |
PHP | PHP | ensure consistent order for loaded function | d63b4df10c8974f4c3dcc60397d91d5ed2fcd381 | <ide><path>lib/Cake/Core/CakePlugin.php
<ide> class CakePlugin {
<ide> * parameters (plugin name, plugin configuration)
<ide> *
<ide> * It is also possible to load multiple plugins at once. Examples:
<del> *
<add> *
<ide> * `CakePlugin::load(array('DebugKit', 'ApiGenerator'))` will load the DebugKit and ApiGenerat... | 1 |
Javascript | Javascript | remove unused variable | 4b887fe1c205a6a9d16cc9b77f96e640df6c8b60 | <ide><path>web/debugger.js
<ide> var StepperManager = (function StepperManagerClosure() {
<ide> this.selectStepper(pageNumber, false);
<ide> return stepper;
<ide> },
<del> selectStepper: function selectStepper(pageNumber, selectPanel, change) {
<add> selectStepper: function selectStepper(pageNum... | 1 |
Python | Python | set version to v3.4.0 | bffe54d02b840a73f8dec4d8cd50056507695853 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.3.0"
<add>__version__ = "3.4.0"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"... | 1 |
PHP | PHP | fix url option in first() and last() | 0f911778dc5beb24c173fd1ec6b3f3c92adcd7af | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function first($first = '<< first', array $options = []): string
<ide> } elseif ($params['page'] > 1 && is_string($first)) {
<ide> $first = $options['escape'] ? h($first) : $first;
<ide> $out .= $this->templater()->format('first... | 2 |
Javascript | Javascript | replace concat with template literals | 506a5f75f859c5664c85a324e6950a00b4f64ea2 | <ide><path>test/inspector/test-bindings.js
<ide> function testSampleDebugSession() {
<ide> actual = v['value']['value'];
<ide> expected = expects[v['name']][i];
<ide> if (actual !== expected) {
<del> failures.push('Iteration ' + i + ' variable: ' + v['name'] +
<del> ' expec... | 1 |
Python | Python | fix bug with padding mask + add corresponding test | da10de8466c001dceca328dac12751abb71c65eb | <ide><path>examples/utils_summarization.py
<ide> def build_lm_labels(sequence, pad_token):
<ide> def build_mask(sequence, pad_token):
<ide> """ Builds the mask. The attention mechanism will only attend to positions
<ide> with value 1. """
<del> mask = sequence.clone()
<del> mask[mask != pad_token] = 1
<de... | 2 |
Javascript | Javascript | add test for clicking an svg element | 83f3c296f34611fe0e0f3a44c24b0e9667c43a09 | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', function () {
<ide> })
<ide> })
<ide>
<add> describe('when the mousewheel event\'s target is an SVG element inside a block decoration', function () {
<add> it('keeps the block decoration on the DOM if it is scrolled o... | 1 |
Text | Text | recommend use of rails over bin/rails | 6ae2ab4f447b286b00eaab0df9072aed9e3246e8 | <ide><path>README.md
<ide> Assumes a Rails 6+ application with Active Storage and Webpacker installed.
<ide> gem "actiontext", github: "rails/actiontext", require: "action_text"
<ide> gem "image_processing", "~> 1.2" # for Active Storage variants
<ide> ```
<del>
<del>1. Install assets, npm dependency, an... | 1 |
Text | Text | create model card for schmidek/electra-small-cased | 298bdab18a18e03d22068a9fd620f0fd81c3ab06 | <ide><path>model_cards/schmidek/electra-small-cased/README.md
<add>---
<add>language: english
<add>license: apache-2.0
<add>---
<add>
<add>## ELECTRA-small-cased
<add>
<add>This is a cased version of `google/electra-small-discriminator`, trained on the
<add>[OpenWebText corpus](https://skylion007.github.io/OpenWebTextC... | 1 |
Ruby | Ruby | drop unneeded assignment | a091539febd3a5a9e5306924b38e0dd681de4a07 | <ide><path>test/visitors/test_oracle12.rb
<ide> def compile node
<ide> stmt.limit = Nodes::Limit.new(10)
<ide> stmt.lock = Nodes::Lock.new(Arel.sql('FOR UPDATE'))
<ide> assert_raises ArgumentError do
<del> sql = compile(stmt)
<add> compile(stmt)
<ide> end
<i... | 1 |
Javascript | Javascript | convert configschema to js | 17557fe7d6dc6a1c1b4509404a208c5b3f859a49 | <add><path>src/config-schema.js
<del><path>src/config-schema.coffee
<del>path = require 'path'
<del>fs = require 'fs-plus'
<del>
<del># This is loaded by atom.coffee. See https://atom.io/docs/api/latest/Config for
<del># more information about config schemas.
<del>module.exports =
<del> core:
<del> type: 'object'
<... | 1 |
Go | Go | add last version | 64450ae3f89b8f9b5288224c5a7d109a166cf22a | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> if out.GoVersion != "" {
<ide> fmt.Fprintf(cli.out, "Go version: %s\n", out.GoVersion)
<ide> }
<add>
<add> release := utils.GetReleaseVersion()
<add> if release != "" {
<add> fmt.Fprintf(cli.out, "Last stable version: %s", ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.