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 |
|---|---|---|---|---|---|
Text | Text | update pull request template | 4120a69ac7f9e82a38b59e25e31a79bbb4299c3f | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide>
<ide> #### Checklist:
<ide> <!-- Go over all points below, and after creating the PR, tick the checkboxes that apply. -->
<del><!-- If you're unsure about any of these, don't hesitate to ask in the Help Contributors room linked above. We're here to help! -->
<add><!-- ... | 1 |
Ruby | Ruby | remove testing code | 532864b0ef0109a9efa8bca15c50c99f531b65b1 | <ide><path>Library/Homebrew/dev-cmd/dispatch-build-bottle.rb
<ide> def dispatch_build_bottle
<ide> else
<ide> macos.to_s
<ide> end
<del> p macos_label
<del> odie "no"
<ide>
<ide> tap = Tap.fetch(args.tap || CoreTap.instance.name)
<ide> user, repo = tap.full_name.split("/") | 1 |
Python | Python | fold long lines | 37740a0f7868515885060f921c2fe077125e746a | <ide><path>numpy/lib/format.py
<ide> def read_array(fp, pickle_kwargs=None):
<ide> and time.
<ide> pickle_kwargs : dict
<ide> Additional keyword arguments to pass to pickle.load. These are only
<del> useful when loading object arrays saved on Python 2 when using Python 3.
<add> useful ... | 3 |
Javascript | Javascript | warn it only in dev | cbef3fd41228040eb580bb1298f91cd9fbce24f9 | <ide><path>src/renderers/shared/server/ReactServerRenderer.js
<ide> function flattenOptionChildren(children) {
<ide> }
<ide> if (typeof child === 'string' || typeof child === 'number') {
<ide> content += child;
<del> } else if (!didWarnInvalidOptionChildren) {
<del> didWarnInvalidOptionChildren = ... | 1 |
Python | Python | fix visualbert embeddings | c4e1586db8ef6b4102016fc5cb038940fde45325 | <ide><path>src/transformers/models/visual_bert/modeling_visual_bert.py
<ide> def forward(
<ide> inputs_embeds = self.word_embeddings(input_ids)
<ide>
<ide> if token_type_ids is None:
<del> token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=self.input_embeds.device)
<add> ... | 1 |
Text | Text | update array description | e6e58b8aa023ca9df19e3b36ddd62e2404ea999c | <ide><path>guide/english/php/arrays/index.md
<ide> title: Arrays
<ide> ---
<ide> ## Arrays
<ide>
<add>Arrays are like regular variables, but hold multiple values in an ordered list. This can be useful if you have multiple values that are all related to each other, like a list of student names or a list of capital citi... | 1 |
Ruby | Ruby | fix aggregate attribute on enum types | ea4a5a94060be0b0e793302c9188388749ad06d1 | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def execute_simple_calculation(operation, column_name, distinct) #:nodoc:
<ide> if operation != "count"
<ide> type = column.try(:type_caster) ||
<ide> lookup_cast_type_from_join_dependencies(column_name.to_s) || Type.... | 2 |
Ruby | Ruby | add test case for `unscope` with `merge` | 257564d65a87bd2cccfd4ef78ae4b9a49c476f5d | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_unscope_with_subquery
<ide> assert_equal p2.first.comments, comments
<ide> end
<ide>
<add> def test_unscope_with_merge
<add> p0 = Post.where(author_id: 0)
<add> p1 = Post.where(author_id: 1, comments_count: 1)
<add>
<add> assert_equal ... | 1 |
Javascript | Javascript | fix failing test in ie | 000f47f75c14aed055f5c2e1b5ccecfa37d43755 | <ide><path>packages/ember-testing/tests/helpers_test.js
<ide> test("`click` triggers appropriate events in order", function() {
<ide> ['mousedown', 'focusin', 'mouseup', 'click'],
<ide> 'fires focus events on textareas');
<ide> }).then(function() {
<add> // In IE (< 8), the change event only fires when... | 1 |
Python | Python | remove abbreviation for positional plac argument | 5a9d377580e573457665d9859d2d43286197565e | <ide><path>spacy/cli/init_model.py
<ide> @plac.annotations(
<ide> lang=("model language", "positional", None, str),
<ide> output_dir=("model output directory", "positional", None, Path),
<del> freqs_loc=("location of words frequencies file", "positional",
<del> "f", Path),
<add> freqs_loc=("... | 1 |
PHP | PHP | convert files processing to use recursion | b54c3b030878e95fd706bcc0b19ddde0f238ff88 | <ide><path>lib/Cake/Network/CakeRequest.php
<ide> protected function _processFiles() {
<ide>
<ide> if (isset($_FILES['data'])) {
<ide> foreach ($_FILES['data'] as $key => $data) {
<del> foreach ($data as $model => $fields) {
<del> if (is_array($fields)) {
<del> foreach ($fields as $field => $value) {
... | 1 |
PHP | PHP | fix issues in orm\query | e37b5786bbe7b0eccd194c7d6c360da1acc3107a | <ide><path>Cake/Database/Query.php
<ide> public function connection($connection = null) {
<ide> * Resulting statement is traversable, so it can be used in any loop as you would
<ide> * with an array.
<ide> *
<add> * This method can be overridden in query subclasses to decorate behavior
<add> * around query execution... | 5 |
Mixed | PHP | fix handling of hash urls | 6a9cc4816408b55df0c606af9ee97228c16f1aea | <ide><path>changes.md
<ide> - Added "$hidden" static variable to the base Eloquent model.
<ide> - Added "sync" method to has_many_and_belongs_to Eloquent relationship.
<ide> - Improved View performance by only loading contents from file once.
<add>- Fix handling of URLs beginning with has in URL::to.
<ide>
<ide> <a na... | 2 |
Javascript | Javascript | increase timeout in readable stream test | 0f10dd4cb2334474d3cab52df8507ddd8781b7f7 | <ide><path>test/simple/test-stream2-readable-empty-buffer-no-eof.js
<ide> function test1() {
<ide> case 1:
<ide> return r.push(buf);
<ide> case 2:
<del> setTimeout(r.read.bind(r, 0), 10);
<add> setTimeout(r.read.bind(r, 0), 50);
<ide> return r.push(new Buffer(0)); // Not-EOF!
<... | 1 |
Text | Text | fix 404 links | f81bef53984eedbf583900c3e92348b8775fca18 | <ide><path>doc/changelogs/CHANGELOG_V010.md
<ide> This is a security release. All Node.js users should consult the security releas
<ide> This is a security release. All Node.js users should consult the security release summary at https://nodejs.org/en/blog/vulnerability/june-2016-security-releases/ for details on patch... | 4 |
Go | Go | add container package for container apis | fa8d96ebe21f5bb83e4d2da8e59234e701a8ee70 | <ide><path>api/server/router/container/backend_unix.go
<add>// +build !windows
<add>
<add>package container
<add>
<add>import (
<add> "io"
<add> "time"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/api/types/versions/v1p19"
<add> "github.com/docker/docker/api/types/versions/v1p20"
<ad... | 9 |
Javascript | Javascript | remove unused imports | dc60f97e9dab2479ff78d696ca6a0b4acf486d01 | <ide><path>packages/ember-routing/lib/services/router.js
<ide> import {
<ide> Service,
<ide> readOnly
<ide> } from 'ember-runtime';
<del>import { assign } from 'ember-utils';
<ide> import { shallowEqual } from '../utils';
<del>import RouterDSL from '../system/dsl';
<ide>
<ide> /**
<ide> The Router service is th... | 1 |
Java | Java | fix typo in javadoc | 60123b6ca34480482478ca8e70dddd7f4efbed5c | <ide><path>spring-aspects/src/main/java/org/springframework/context/annotation/aspectj/SpringConfiguredConfiguration.java
<ide> * Configurable}.
<ide> *
<ide> * <p>This configuration class is automatically imported when using the
<del> * @{@link EnableSpringConfigured} annotation. See {@code @EnableSpringConfigured}... | 1 |
Ruby | Ruby | use identity mapper only if enabled | 09f12a12706593884961a682660f34282e937e46 | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def save!(*)
<ide> def delete
<ide> if persisted?
<ide> self.class.delete(id)
<del> IdentityMap.remove(self)
<add> IdentityMap.remove(self) if IdentityMap.enabled?
<ide> end
<ide> @destroyed = true
<ide> fre... | 1 |
Text | Text | make semi-colon optional | 07b38d02b3b1068c17ffc362874b87198d737d73 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments.english.md
<ide> tests:
<ide> - text: <code>functionWithArgs(7,9)</code> should output <code>16</code>
<ide> testString: if(typeof functionWithArgs === "function") { ca... | 1 |
Javascript | Javascript | add createelement alias for createdescriptor | 036d751397140e1eae01ea6ce6ebe86f0482f485 | <ide><path>src/browser/ui/React.js
<ide> var React = {
<ide> EventPluginUtils.useTouchEvents = shouldUseTouch;
<ide> },
<ide> createClass: ReactCompositeComponent.createClass,
<del> createDescriptor: createDescriptor,
<add> createDescriptor: createDescriptor, // deprecated, will be removed next week
<add> cr... | 1 |
PHP | PHP | remove deprecated code in http/client | 41016a41bdb5cabf923a86e8f6a54ae9fde77117 | <ide><path>src/Http/Client/CookieCollection.php
<del><?php
<del>/**
<del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * Redistributions of files must retain the ab... | 7 |
Javascript | Javascript | escape backslashes for windows pipe name | a6a3bf6d470dbc2cd167c9d7788181793d0dc8a0 | <ide><path>test/common.js
<ide> exports.tmpDir = path.join(exports.testDir, 'tmp');
<ide> exports.PORT = 12346;
<ide>
<ide> if (process.platform == 'win32') {
<del> exports.PIPE = '\\.\pipe\libuv-test';
<add> exports.PIPE = '\\\\.\\pipe\\libuv-test';
<ide> } else {
<ide> exports.PIPE = exports.tmpDir + '/test.sock... | 1 |
Javascript | Javascript | replace linebreakmode with ellipsizemode | e5e35910095a4933a59554e0f2ecde979b8f8fd5 | <ide><path>RNTester/js/TextExample.ios.js
<ide> var AdjustingFontSize = React.createClass({
<ide> }
<ide> return (
<ide> <View>
<del> <Text lineBreakMode="tail" numberOfLines={1} style={{fontSize: 36, marginVertical:6}}>
<add> <Text ellipsizeMode="tail" numberOfLines={1} style={{fontSize: 36... | 1 |
Go | Go | add default timeout to pkg/plugins/client | 0699b00d26a60f4a8447572b34c4aad1ce73d2e1 | <ide><path>pkg/plugins/client.go
<ide> import (
<ide> )
<ide>
<ide> const (
<del> defaultTimeOut = 30
<add> defaultTimeOut = 30
<add> defaultHTTPTimeOut = 32 * time.Second
<ide> )
<ide>
<ide> // NewClient creates a new plugin client (http).
<ide> func NewClient(addr string, tlsConfig *tlsconfig.Options) (*Client,... | 2 |
PHP | PHP | exclude nulls clauses in schema reflection | 2005e1d213eb8d439c670a8858bce17f2448543f | <ide><path>src/Database/Schema/PostgresSchema.php
<ide> public function convertIndexDescription(Table $table, $row)
<ide> if ($row['indisunique'] && $type === Table::INDEX_INDEX) {
<ide> $type = Table::CONSTRAINT_UNIQUE;
<ide> }
<del> preg_match('/\(([^\)]+)\)/', $row['statement'], $m... | 2 |
Go | Go | remove workaround for nano server tp5 | 250193387c98a4ad69a6591d5fe5a39c1409ffba | <ide><path>cmd/dockerd/docker_windows.go
<ide> package main
<ide>
<ide> import (
<del> "sync/atomic"
<del>
<ide> _ "github.com/docker/docker/autogen/winresources/dockerd"
<ide> )
<del>
<del>//go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"
<del>
<del>var dummy uintptr
<del>
<del>func init() {
<del... | 1 |
Python | Python | fix lines too long | e1c3c19a68f08d78cfe79eba6dfde1352d2ff29b | <ide><path>celery/fields.py
<ide> class PickledObjectField(models.Field):
<ide>
<ide> def to_python(self, value):
<ide> if isinstance(value, PickledObject):
<del> # If the value is a definite pickle; and an error is raised in de-pickling
<del> # it should be allowed to propogate.
<add... | 1 |
Javascript | Javascript | use indexof instead of startswith | 9fb8b93ed919fa8631a4a7f38dfda5a308f54d91 | <ide><path>lib/head.js
<ide> function unique () {
<ide> const metaCategories = {}
<ide>
<ide> return (h) => {
<del> if (h.key && h.key.startsWith('.$')) {
<add> if (h.key && h.key.indexOf('.$') === 0) {
<ide> if (keys.has(h.key)) return false
<ide> keys.add(h.key)
<ide> } | 1 |
Python | Python | move collection trainable variables outside loop | a009f4fb9d2fc4949e32192a944688925ef78659 | <ide><path>official/bert/common_flags.py
<ide> def define_common_bert_flags():
<ide> flags.DEFINE_boolean(
<ide> 'run_eagerly', False,
<ide> 'Run the model op by op without building a model function.')
<add> flags.DEFINE_boolean(
<add> 'scale_loss', False,
<add> 'Whether to divide the loss by n... | 5 |
Javascript | Javascript | fix missing types in xhrexample | 95050e46580ff0519adcc3d1e5805405bbd750a2 | <ide><path>Examples/UIExplorer/XHRExample.js
<ide> var PAGE_SIZE = 20;
<ide>
<ide> class FormUploader extends React.Component {
<ide>
<add> _isMounted: boolean;
<add> _fetchRandomPhoto: () => void;
<add> _addTextParam: () => void;
<add> _upload: () => void;
<add>
<ide> constructor(props) {
<ide> super(props... | 1 |
PHP | PHP | add support for setting attachment’s footer icon | 2f7cec4653ba2345561916e3d289543630e551bc | <ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php
<ide> protected function attachments(SlackMessage $message)
<ide> 'fields' => $this->fields($attachment),
<ide> 'mrkdwn_in' => $attachment->markdown,
<ide> 'footer' => $attachment->footer,
<add> ... | 2 |
PHP | PHP | update typehints for testsuite/ | 96d7367210c08132b96891139f89aecf751f1864 | <ide><path>src/TestSuite/ConsoleIntegrationTestTrait.php
<ide> public function exec(string $command, array $input = []): void
<ide> * @after
<ide> * @return void
<ide> */
<del> public function cleanupConsoleTrait()
<add> public function cleanupConsoleTrait(): void
<ide> {
<ide> $this->_... | 14 |
Text | Text | add hasintl to test/common/readme.md | 282b1edbe753eaa3219e934dcc5a473a2e53e25f | <ide><path>test/common/README.md
<ide> Checks for 'openssl'.
<ide>
<ide> Checks `hasCrypto` and `crypto` with fips.
<ide>
<add>### hasIntl
<add>* return [<Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)
<add>
<add>Checks if [internationalization] is supported.
<add>
... | 1 |
PHP | PHP | show error if specified plugin is not loaded | 7a973ce5d2873b4a7c9b54777126b709d2e0440b | <ide><path>src/Shell/PluginAssetsShell.php
<ide> protected function _list($name = null) {
<ide> if ($name === null) {
<ide> $pluginsList = Plugin::loaded();
<ide> } else {
<add> if (!Plugin::loaded($name)) {
<add> $this->err(sprintf('Plugin %s is not loaded.', $name));
<add> return [];
<add> }
<ide> ... | 1 |
Mixed | Ruby | fix dirty tracking after rollback | 63ff495bdf90e0ab20114a49db5cffe3cb9ef2fd | <ide><path>activerecord/CHANGELOG.md
<add>* Fix dirty tracking after rollback.
<add>
<add> Fixes #15018, #30167, #33868.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Fix dirty tracking for `touch` to track saved changes.
<ide>
<ide> Fixes #33429.
<ide><path>activerecord/lib/active_record/attribute_methods/... | 9 |
Javascript | Javascript | remove keymirror in reactproptypelocations | 84084153edbeab515f9955b4c5b955ef95167787 | <ide><path>src/addons/link/__tests__/ReactLinkPropTypes-test.js
<ide> var emptyFunction = require('emptyFunction');
<ide> var LinkPropTypes = require('ReactLink').PropTypes;
<ide> var React = require('React');
<del>var ReactPropTypeLocations = require('ReactPropTypeLocations');
<ide> var ReactPropTypesSecret = require(... | 9 |
Text | Text | fix cson syntax for keybinding example | 63aedb65d95f8950add16a8c06da3cc7e939a33a | <ide><path>docs/customizing-atom.md
<ide> built-in keymaps:
<ide> '.editor':
<ide> 'enter': 'editor:newline'
<ide>
<del>'body':
<del> 'ctrl-b': 'core:move-left'
<del> 'ctrl-f': 'core:move-right'
<add>'.mini.editor input':
<add> 'enter': 'core:confirm'
<ide> ```
<ide>
<ide> This keymap defines the meaning of `ent... | 1 |
Javascript | Javascript | change forum link in help modal | 25cabc0a184dc0f28ef574b454643f944c74a327 | <ide><path>client/src/templates/Challenges/components/HelpModal.js
<ide> const propTypes = {
<ide> isOpen: PropTypes.bool
<ide> };
<ide>
<del>const RSA =
<del> 'https://www.freecodecamp.org/forum/t/how-to-get-help-when-you-are-stuck-coding/19514';
<add>const RSA = 'https://forum.freecodecamp.org/t/19514';
<ide>
<i... | 1 |
Ruby | Ruby | update the statementcache documentation | 8fc7eb5f21e42f1bc484c496a6431c284b9ee805 | <ide><path>activerecord/lib/active_record/statement_cache.rb
<ide> module ActiveRecord
<ide>
<ide> # Statement cache is used to cache a single statement in order to avoid creating the AST again.
<del> # Initializing the cache is done by passing the statement in the initialization block:
<add> # Initializing the ca... | 1 |
Ruby | Ruby | fix unintentional method redefinitions | 57d926a78a6968b9268f4ec1acde608132a1c920 | <ide><path>activestorage/app/models/active_storage/variant.rb
<ide> class ActiveStorage::Variant
<ide> attr_reader :blob, :variation
<ide> delegate :service, to: :blob
<del> delegate :content_type, :filename, to: :specification
<add> delegate :filename, :content_type, to: :specification
<ide>
<ide> def initial... | 1 |
Javascript | Javascript | expand blocked usernames list | f7943d0ad54e28f53e5ac43aa1665d5b3b23898a | <ide><path>api-server/server/utils/constants.js
<ide> let blocklist = [
<ide> 'username',
<ide> 'wiki',
<ide>
<add> // reserved paths for localizations
<add> 'afrikaans',
<add> 'arabic',
<add> 'bengali',
<add> 'catalan',
<add> 'chinese',
<add> 'czech',
<add> 'danish',
<add> 'dutch',
<add> 'espanol',
<add... | 1 |
Javascript | Javascript | fix incorrect code sample | 321685209eb34d3e79a6b3e789b14718beab646d | <ide><path>website/src/react-native/index.js
<ide> var React = require('react-native');
<ide> var { NativeModules, Text } = React;
<ide>
<ide> var Message = React.createClass({
<add> getInitialState() {
<add> return { text: 'Goodbye World.' };
<add> },
<add> componentDidMount() {
<add> NativeModules.MyCustomM... | 1 |
Ruby | Ruby | reset schemamigration after updating | e56c80a172dbb5e1627e1122b6f4b87f5e880dd1 | <ide><path>activerecord/test/cases/ar_schema_test.rb
<ide> def setup
<ide>
<ide> def teardown
<ide> @connection.drop_table :fruits rescue nil
<add> ActiveRecord::SchemaMigration.delete_all rescue nil
<ide> end
<ide>
<ide> def test_schema_define | 1 |
PHP | PHP | use mocks to fix test failures | 7818cde98ee6a93f4906f06fbb1ca0ad5239cfcf | <ide><path>lib/Cake/Test/TestCase/Database/ConnectionTest.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Database\Connection;
<add>use Cake\Model\ConnectionManager;
<ide> use Cake\TestSuite\TestCase;
<ide>
<ide> /**
<ide> * Tests Connection class
<del> *
<del> **/
<add> */
<ide> class ConnectionTest extends... | 2 |
Python | Python | add support for negative numbers | a6831c898a12e568c2e611d457dd71bd89488ce2 | <ide><path>maths/greatest_common_divisor.py
<ide> Greatest Common Divisor.
<ide>
<ide> Wikipedia reference: https://en.wikipedia.org/wiki/Greatest_common_divisor
<add>
<add>gcd(a, b) = gcd(a, -b) = gcd(-a, b) = gcd(-a, -b) by definition of divisibility
<ide> """
<ide>
<ide>
<del>def greatest_common_divisor(a, b):
<a... | 1 |
Javascript | Javascript | remove dead code | d8c0f2d780eab25eeee36249a2d657aa67868605 | <ide><path>lib/internal/process.js
<ide> function setupChannel() {
<ide> // Make sure it's not accidentally inherited by child processes.
<ide> delete process.env.NODE_CHANNEL_FD;
<ide>
<del> const cp = require('child_process');
<del>
<del> // Load tcp_wrap to avoid situation where we might immediately r... | 1 |
Javascript | Javascript | add helpful error messages for removed plugins | 94db1bd21c182dac45b226c304639a70f3e9f3fc | <ide><path>lib/webpack.js
<ide> exportPlugins(exports.node = {}, {
<ide> exportPlugins(exports.debug = {}, {
<ide> "ProfilingPlugin": () => require("./debug/ProfilingPlugin"),
<ide> });
<add>
<add>const defineMissingPluginError = (pluginName, errorMessage) => {
<add> Reflect.defineProperty(exports.optimize, pluginName... | 1 |
Javascript | Javascript | remove route event in componentwillunmount | 0e13d8c952bb960837ce5e6553b25331e272370b | <ide><path>test/integration/with-router/components/header-nav.js
<ide> class HeaderNav extends React.Component {
<ide>
<ide> componentWillUnmount () {
<ide> Router.onRouteChangeComplete = null
<del> Router.events.on('routeChangeComplete', this.handleRouteChangeTopLevelRouter)
<add> Router.events.off('route... | 1 |
Javascript | Javascript | fix deprecation link for ember.string.fmt | 254fdf1514020b19ece60d96305e87f2e00ee4f2 | <ide><path>packages/ember-runtime/lib/system/string.js
<ide> function fmt(str, formats) {
<ide> deprecate(
<ide> 'Ember.String.fmt is deprecated, use ES6 template strings instead.',
<ide> false,
<del> { id: 'ember-string-utils.fmt', until: '3.0.0', url: 'https://babeljs.io/docs/learn-es6/#template-strings'... | 1 |
Ruby | Ruby | add versioned formulae method | 840c97c1cce29cdb7c5e453deb17b2023b35ea42 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_file
<ide> problem "#{formula} is versioned but no #{unversioned_name} formula exists"
<ide> end
<ide> elsif ARGV.build_stable? && formula.stable? &&
<del> !(versioned_formulae = Dir[formula.path.to_s.gsub(/\.rb$/, "@*.rb")]... | 3 |
Text | Text | add changelog entry for [ci skip] | a1564d470d688eecd5fd01ee771521764cba4b7b | <ide><path>activesupport/CHANGELOG.md
<add>* Maintain proleptic gregorian in Time#advance
<add>
<add> `Time#advance` uses `Time#to_date` and `Date#advance` to calculate a new date.
<add> The `Date` object returned by `Time#to_date` is constructed with the assumption
<add> that the `Time` object represents a ... | 1 |
Python | Python | remove merge artefact | 698fc0d016c3fde05234ef7125ac56343bd343c9 | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide>
<ide> with meta_loc.open('w') as file_:
<ide> file_.write(json_dumps(meta))
<del>>>>>>>> origin/develop
<ide> util.set_env_log(True)
<ide> ... | 1 |
Ruby | Ruby | remove unused accessor | dd331245ab334b2e3fde162b51c3b8b63f065548 | <ide><path>Library/Homebrew/build_options.rb
<ide> class BuildOptions
<ide>
<ide> attr_accessor :args
<ide> attr_accessor :universal
<del> attr_accessor :cxx11
<ide> attr_reader :options
<ide> protected :options
<ide>
<ide> def universal?
<ide>
<ide> # True if the user requested to enable C++11 mode.
<ide... | 1 |
PHP | PHP | remove unused namespaces | 4d6a540a2bb2331a2bdb8bdc5ab90122eacd0af9 | <ide><path>src/I18n/Formatter/IcuFormatter.php
<ide> use Aura\Intl\Exception\CannotFormat;
<ide> use Aura\Intl\Exception\CannotInstantiateFormatter;
<ide> use Aura\Intl\FormatterInterface;
<del>use Cake\I18n\PluralRules;
<ide> use MessageFormatter;
<ide>
<ide> /**
<ide><path>src/I18n/Formatter/SprintfFormatter.php
<id... | 9 |
Javascript | Javascript | enable eager listeners in open source | b754caaaf23a070de281dcd0a9d32846470e1907 | <ide><path>packages/react-dom/src/__tests__/ReactDOMFiber-test.js
<ide> describe('ReactDOMFiber', () => {
<ide> });
<ide>
<ide> it('should not update event handlers until commit', () => {
<add> spyOnDev(console, 'error');
<add>
<ide> let ops = [];
<ide> const handlerA = () => ops.push('A');
<ide> co... | 10 |
Go | Go | fix xtables_lock message probe | e2f00704928fd474cf2074a2931069d90d021087 | <ide><path>libnetwork/iptables/iptables.go
<ide> var (
<ide> iptablesPath string
<ide> supportsXlock = false
<ide> supportsCOpt = false
<add> xLockWaitMsg = "Another app is currently holding the xtables lock; waiting"
<ide> // used to lock iptables commands if xtables lock is not supported
<ide> bestEffortLock ... | 1 |
Python | Python | correct an issue on idle display | 4b1983174198c393a9adb12dbb0d158d2507e49d | <ide><path>glances/plugins/glances_cpu.py
<ide> def msg_curse(self, args=None, max_width=None):
<ide> ret.append(self.curse_add_line(
<ide> msg, self.get_views(key='total', option='decoration')))
<ide> # Idle CPU
<del> if not idle_tag:
<del> ret.extend(self.curse_add_stat('... | 1 |
Javascript | Javascript | add unit tests for raycaster | 7961f3a999a330276ff55e4183765cd31c07f345 | <ide><path>test/unit/core/Raycaster.js
<add>/**
<add> * @author simonThiele / https://github.com/simonThiele
<add> */
<add>
<add>module( "Raycaster" );
<add>
<add>test( "intersectObjects", function() {
<add> var raycaster = getRaycaster();
<add> var objectsToCheck = getObjectsToCheck();
<add>
<add> ok ( raycaster.inter... | 1 |
Ruby | Ruby | add -sources to the version recognizer | da565308add13f866590b43dd860fd250d00fedc | <ide><path>Library/Homebrew/pathname+yeast.rb
<ide> def version
<ide> return $1 if $1
<ide>
<ide> # eg foobar-4.5.0-bin
<del> /-((\d+\.)+\d+[abc]?)-(bin|src)$/.match stem
<add> /-((\d+\.)+\d+[abc]?)-(bin|src|sources)$/.match stem
<ide> return $1 if $1
<ide>
<ide> # eg. otp_src_R13B (this is erla... | 1 |
Javascript | Javascript | avoid touching length in vector constructor | 795f69793a2e5c96fb6dd2ced2167553339f0770 | <ide><path>dist/immutable.js
<ide> var $Vector = Vector;
<ide> return EMPTY_VECT || (EMPTY_VECT = makeVector(0, 0, SHIFT));
<ide> },
<ide> from: function(sequence) {
<del> if (!sequence || sequence.length === 0 || sequence.size === 0) {
<add> if (!sequence) {
<ide> return $Vector.empty();
<ide> ... | 3 |
Text | Text | improve datetime format docs | 306726d9e8645aeb9528a3f6c6674d0fe5471374 | <ide><path>docs/api-guide/fields.md
<ide> A date and time representation.
<ide>
<ide> Corresponds to `django.db.models.fields.DateTimeField`.
<ide>
<del>**Signature:** `DateTimeField(format=None, input_formats=None)`
<add>**Signature:** `DateTimeField(format=api_settings.DATETIME_FORMAT, input_formats=None)`
<ide>
<... | 1 |
Go | Go | simplify logical expression | 90e2459ecb82c9cd0f231a04776272c6ffe435e4 | <ide><path>registry/registry.go
<ide> func ContinueOnError(err error) bool {
<ide> case *client.UnexpectedHTTPResponseError:
<ide> return true
<ide> case error:
<del> if val := strings.Contains(err.Error(), strings.ToLower(syscall.ENOSPC.Error())); val {
<del> return false
<del> }
<add> return !strings.Contain... | 1 |
Text | Text | add details for catalan and danish | 35425d7e261763ea4bd2546c42fda692cf81ca91 | <ide><path>website/docs/usage/v3-1.md
<ide> See the [models directory](/models) for an overview of all available trained
<ide> pipelines and the [training guide](/usage/training) for details on how to train
<ide> your own.
<ide>
<del><!-- TODO: thank contributors and update with final numbers -->
<del>
<del>| Package ... | 1 |
Javascript | Javascript | remove trailing space | 4ec384f36981a9e5e4b4104f5e3e729be9123a60 | <ide><path>src/renderers/webgl/WebGLExtensions.js
<ide> function WebGLExtensions( gl ) {
<ide>
<ide> default:
<ide>
<del> if ( isWebGL2 &&
<add> if ( isWebGL2 &&
<ide> [ 'ANGLE_instanced_arrays',
<ide> 'OES_texture_float',
<ide> 'OES_texture_half_float', | 1 |
Python | Python | add test for issue | 52ef51f36e005a5d7033c21d08cfae17a561ebca | <ide><path>spacy/tests/regression/test_issue1889.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>from ...lang.lex_attrs import is_stop
<add>from ...lang.en.stop_words import STOP_WORDS
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.parametrize('word', ['the'])
<add>def test_lex_attrs_s... | 1 |
Javascript | Javascript | convert premature close to aborterror | 3f0b62375b3a4edc8365b803749e8dd5abc706b0 | <ide><path>lib/internal/webstreams/adapters.js
<ide> const {
<ide> ERR_INVALID_STATE,
<ide> ERR_STREAM_PREMATURE_CLOSE,
<ide> },
<add> AbortError,
<ide> } = require('internal/errors');
<ide>
<ide> const {
<ide> function newWritableStreamFromStreamWritable(streamWritable) {
<ide> }
<ide>
<ide> const cle... | 4 |
Go | Go | fix data race in libcontainerd | 8e9fbc8f5fc5759eb7f26ec998f227994ff6c642 | <ide><path>libcontainerd/remote_linux.go
<ide> func (r *remote) handleConnectionChange() {
<ide> transientFailureCount = 0
<ide> if utils.IsProcessAlive(r.daemonPid) {
<ide> utils.KillProcess(r.daemonPid)
<del> <-r.daemonWaitCh
<ide> }
<add> <-r.daemonWaitCh
<ide> if err := r.runConta... | 1 |
Javascript | Javascript | add redirection and inline documentation | 3fbf4b8d29a19d6f9891b48662726b1209a061d3 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> var get = Ember.get, set = Ember.set,
<ide>
<ide>
<ide> Ember.Route = Ember.Object.extend({
<add> /**
<add> Transition into another route. Optionally supply a model for the
<add> route in question. The model will be serialized into the URL
<add> us... | 2 |
Ruby | Ruby | add audit for formula.factory | 50b94ada1b0dd0462ab3bf252243b6f1892f3dd4 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> def audit_conflicts
<ide> f.conflicts.each do |c|
<ide> begin
<del> Formula.factory(c.name)
<add> Formulary.factory(c.name)
<ide> rescue FormulaUnavailableError
<ide> problem "Can't find conflicting formula #{c.n... | 1 |
Text | Text | remove unnecessary backquote | 11be70cf5ed62c0f15a7e6a9693fc5e0b5878593 | <ide><path>libnetwork/docs/remote.md
<ide> When the proxy is asked to create a network, the remote process shall receive a
<ide>
<ide> The response indicating success is empty:
<ide>
<del> `{}`
<add> {}
<ide>
<ide> ### Delete network
<ide>
<ide> When the proxy receives a DiscoverNew notification, the remote p... | 1 |
Python | Python | fix savedir for by epoch | 3486a92a5725c6b35798b64d8ce973aa28d78252 | <ide><path>examples/pytorch/translation/run_translation_no_trainer.py
<ide> def postprocess_text(preds, labels):
<ide> )
<ide>
<ide> if args.checkpointing_steps == "epoch":
<del> output_dir = f"step_{completed_steps}"
<add> output_dir = f"epoch_{epoch}"
<ide> i... | 1 |
Go | Go | fix unhandled errors in tests (ineffassign) | 85ed9b8746551b10e8d0b6d7f454b684ba9be6b2 | <ide><path>libnetwork/libnetwork_test.go
<ide> func TestEndpointMultipleJoins(t *testing.T) {
<ide> sbx1, err := controller.NewSandbox(containerID,
<ide> libnetwork.OptionHostname("test"),
<ide> libnetwork.OptionDomainname("docker.io"),
<del> libnetwork.OptionExtraHost("web", "192.168.0.1"))
<add> libnetwork.Opt... | 1 |
Python | Python | add test for no resultset rtn type | 4dc1778a64f1adac212e97919248d020ed8447de | <ide><path>tests/providers/exasol/hooks/test_exasol.py
<ide> def test_run_no_queries(self):
<ide> self.db_hook.run(sql=[])
<ide> assert err.value.args[0] == "List of SQL statements is empty"
<ide>
<add> def test_no_result_set(self):
<add> """Queries like DROP and SELECT are of type rowCou... | 1 |
Text | Text | fix grammatical issues in readme | 7e56f8653c95a3d89efee8d276f41b982dab28bf | <ide><path>COLLABORATOR_GUIDE.md
<ide> As a collaborator, you will be involved with axios with some administrative resp
<ide>
<ide> 1. __Adhere to and help enforce the Code of Conduct.__ It is expected that you have read the [code of conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md) and that you ... | 2 |
PHP | PHP | use new table stuff in routes command | 32d39a0d7deb70c0dccd076f23f774b1a16976e1 | <ide><path>src/Illuminate/Foundation/Console/RoutesCommand.php
<ide> class RoutesCommand extends Command {
<ide> */
<ide> protected $routes;
<ide>
<del> /**
<del> * The table helper set.
<del> *
<del> * @var \Symfony\Component\Console\Helper\TableHelper
<del> */
<del> protected $table;
<del>
<ide> /**
<ide> ... | 1 |
Javascript | Javascript | flow strict scrollresponder | fb4825a2c65fba3aa905f7defb7d0c125fff644d | <ide><path>Libraries/Components/ScrollResponder.js
<ide> const warning = require('fbjs/lib/warning');
<ide>
<ide> const {ScrollViewManager} = require('NativeModules');
<ide>
<add>import type {PressEvent, ScrollEvent} from 'CoreEventTypes';
<add>import type {KeyboardEvent} from 'Keyboard';
<ide> import type EmitterSub... | 1 |
Java | Java | reuse empty class array constant in classutils | 2209e7cb9201d2fa3fe265d98b4dd5dd2db462fc | <ide><path>spring-core/src/main/java/org/springframework/util/ClassUtils.java
<ide> public abstract class ClassUtils {
<ide> /** Prefix for internal non-primitive array class names: {@code "[L"}. */
<ide> private static final String NON_PRIMITIVE_ARRAY_PREFIX = "[L";
<ide>
<add> /** A reusable empty class array cons... | 2 |
Mixed | Python | add line by line option to mlm/plm scripts | e1b1b614b132b64e2bd7c3aaf7909d38956c8dc2 | <ide><path>examples/language-modeling/README.md
<ide> python run_clm.py \
<ide> --output_dir /tmp/test-clm
<ide> ```
<ide>
<add>If your dataset is organized with one sample per line, you can use the `--line_by_line` flag (otherwise the script
<add>concatenates all texts and then splits them in blocks of the same l... | 4 |
Python | Python | fix samplewise normalization in imagedatagenerator | d2d33d7f900d9ad4a0208e1a48635fbb7bd0c13c | <ide><path>keras/preprocessing/image.py
<ide> def standardize(self, x):
<ide> x = self.preprocessing_function(x)
<ide> if self.rescale:
<ide> x *= self.rescale
<del> # x is a single image, so it doesn't have image number at index 0
<del> img_channel_axis = self.channel_axis... | 1 |
Javascript | Javascript | add sneat app | 9856a9726781939bb2b36bbe2e9c89861542da4f | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/kr/app/sweeohauseu-sesang-ui-modeun/id1060914858?mt=8',
<ide> author: 'Dobbit Co., Ltd.'
<ide> },
<add> {
<add> name: 'sneat: réservez les meilleurs restaurants de Paris',
<add> icon: 'http://a3.mzs... | 1 |
PHP | PHP | fix dirty tracking for array associations | 49799d893e119a93de767df7ff3bf656c8f598c9 | <ide><path>src/ORM/Marshaller.php
<ide> public function merge(EntityInterface $entity, array $data, array $options = [])
<ide> if (isset($propertyMap[$key])) {
<ide> $value = $propertyMap[$key]($value, $entity);
<ide>
<del> // Don't dirty complex objects that were objects bef... | 3 |
Text | Text | fix command in upgrade guide | 3b76d3371a4eca007c09e40afe4818bac6590d02 | <ide><path>docs/upgrading.md
<ide> npm install react@latest react-dom@latest
<ide> Or using `yarn`:
<ide>
<ide> ```
<del>yarn add next@latest react-dom@latest
<add>yarn add react@latest react-dom@latest
<ide> ```
<ide>
<ide> ### Remove `super.componentDidCatch()` from `pages/_app.js` | 1 |
Ruby | Ruby | pass headers through to payload for logging | 2c5c1276a84692ba58f60c8ff5fdad744959b69a | <ide><path>actionpack/lib/action_controller/metal/instrumentation.rb
<ide> def process_action(*args)
<ide> :controller => self.class.name,
<ide> :action => self.action_name,
<ide> :params => request.filtered_parameters,
<add> :headers => request.headers,
<ide> :format ... | 2 |
Mixed | Javascript | add ripple config object to pressable | bd3868643d29e93610e19312571a9736df2cbdf8 | <ide><path>Libraries/Components/Pressable/Pressable.js
<ide>
<ide> import * as React from 'react';
<ide> import {useMemo, useState, useRef, useImperativeHandle} from 'react';
<del>import useAndroidRippleForView from './useAndroidRippleForView';
<add>import useAndroidRippleForView, {
<add> type RippleConfig,
<add>} fr... | 7 |
Ruby | Ruby | remove warning from plugin generator | 39af02aa3c07ccb3c1872790741c16defd8d5c48 | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def modules
<ide> @modules ||= namespaced_name.camelize.split("::")
<ide> end
<ide>
<del> def wrap_in_modules(content)
<del> content = "#{content}".strip.gsub(/\W$\n/, '')
<del> modules.reverse.inject(conte... | 1 |
Ruby | Ruby | remove dead code | a29db738b2e07804b1adf8e3f2b8a5b83b91892d | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def migrations_paths
<ide> Array(@migrations_paths)
<ide> end
<ide>
<del> def migrations_path
<del> migrations_paths.first
<del> end
<del>
<ide> def migrations(paths)
<ide> paths = Array(paths)
<ide> | 1 |
Go | Go | remove unused task.setro() | 5b2f8e91039fe1d0bdda146103ba91833cb66011 | <ide><path>pkg/devicemapper/devmapper.go
<ide> var (
<ide> ErrTaskSetName = errors.New("dm_task_set_name failed")
<ide> ErrTaskSetMessage = errors.New("dm_task_set_message failed")
<ide> ErrTaskSetAddNode = errors.New("dm_task_set_add_node failed")
<del> ErrTaskSetRo = errors.New("dm_... | 2 |
Ruby | Ruby | use fetch rather than both hash#key? and hash#[] | 0581c1a95c7ea9df88d5fd975ada40b0d8540d46 | <ide><path>activerecord/lib/active_record/attribute_methods/read.rb
<ide> def type_cast_attribute(attr_name, attributes, cache = {}) #:nodoc:
<ide> end
<ide>
<ide> protected
<del> # We want to generate the methods via module_eval rather than define_method,
<del> # because define_metho... | 1 |
PHP | PHP | fix regex for php 7.3 | 72dda637c0855914fd6f95a66cad9b8d5c5217cc | <ide><path>src/Database/SqlDialectTrait.php
<ide> public function quoteIdentifier($identifier)
<ide> return $this->_startQuote . $field . $this->_endQuote . $matches[2];
<ide> }
<ide>
<del> if (preg_match('/^[\w-_\s]*[\w-_]+/u', $identifier)) {
<add> if (preg_match('/^[\w_\s-]*[\w_-]+... | 1 |
Text | Text | fix typo in example | 06f379ffadd263a35d0a7d2c2e3c13449a66a2a2 | <ide><path>examples/with-env-from-next-config-js/README.md
<ide> # With env From next.config.js
<ide>
<ide> This example demonstrates setting parameters that will be used by your application and set at build time (not run time).
<del>More specifically, what that means, is that environmental variables are programmed in... | 1 |
Text | Text | bring consistency to oxford comma usage | 06bd4d3c10fea9f5dec91ee33d73a2490aa2c32a | <ide><path>README.md
<ide>
<ide> _NOTE: The transition from 1.8.0 (or before) to 1.8.1 (or after) requires uninstalling Airflow before installing the new version. The package name was changed from `airflow` to `apache-airflow` as of version 1.8.1._
<ide>
<del>Airflow is a platform to programmatically author, schedule... | 1 |
Javascript | Javascript | remove third param from assert.strictequal | 0c2cc89f3aab58a118f5e584cbeb4b20a6366cb0 | <ide><path>test/parallel/test-fs-mkdir-rmdir.js
<ide> fs.mkdir(d, 0o666, common.mustCall(function(err) {
<ide> assert.strictEqual(this, undefined);
<ide> assert.ok(err, 'got no error');
<ide> assert.ok(/^EEXIST/.test(err.message), 'got no EEXIST message');
<del> assert.strictEqual(err.code, 'EEXIST', 'go... | 1 |
Go | Go | improve trusted location detection | daa89c420caac0881b09e2a36feff977ec43d7cd | <ide><path>registry/registry.go
<ide> func trustedLocation(req *http.Request) bool {
<ide> }
<ide>
<ide> for _, trusted := range trusteds {
<del> if strings.HasSuffix(hostname, trusted) {
<add> if hostname == trusted || strings.HasSuffix(hostname, "."+trusted) {
<ide> return true
<ide> }
<ide> }
<ide><path>r... | 2 |
Ruby | Ruby | provide a unique point for running initializers | c2e3ce8d1e1174e66536d59d8d97eb2cc8ce6f25 | <ide><path>railties/lib/rails/application.rb
<ide> module Rails
<ide> # 5) Load config/environments/ENV.rb
<ide> # 6) Run config.before_initialize callbacks
<ide> # 7) Run Railtie#initializer defined by railties, engines and application.
<del> # One by one, each engine sets up its load paths, rout... | 4 |
Javascript | Javascript | escape module names | f9e7a17666471dab9e51889d090d6b9e449d554c | <ide><path>lib/node/NodeMainTemplatePlugin.js
<ide> module.exports = class NodeMainTemplatePlugin {
<ide> "// object to store loaded chunks",
<ide> '// "0" means "already loaded"',
<ide> "var installedChunks = {",
<del> Template.indent(chunk.ids.map(id => `${id}: 0`).join(",\n")),
<add> Temp... | 6 |
Text | Text | remove invalid padding from privateencrypt | be0ce60af6293c1e1e74bca8849af36286f06582 | <ide><path>doc/api/crypto.md
<ide> keys:
<ide> * `padding` : An optional padding value, one of the following:
<ide> * `crypto.constants.RSA_NO_PADDING`
<ide> * `crypto.constants.RSA_PKCS1_PADDING`
<del> * `crypto.constants.RSA_PKCS1_OAEP_PADDING`
<ide>
<ide> All paddings are defined in `crypto.constants`.
<ide> | 1 |
Mixed | Ruby | return sized enumerator from enumerable#index_by | a476020567a47f5fbec3629707d5bf31b400a284 | <ide><path>activerecord/CHANGELOG.md
<del><<<<<<< HEAD
<del>* `find_in_batches`, `find_each` now
<add>* `find_in_batches`, `find_each`, `Result#each` and `Enumerable#index_by` now
<ide> return an `Enumerator` that can calculate its size.
<del>=======
<del>* `find_in_batches`, `find_each`, `Result#each` now re... | 3 |
Javascript | Javascript | write more unit tests for the lexer and the parser | 4a4b197b9d2ce1a20690837df64db8fd183c70ac | <ide><path>test/unit/parser_spec.js
<ide> */
<ide> /* eslint no-var: error */
<ide>
<del>import { Lexer, Linearization } from '../../src/core/parser';
<add>import { Lexer, Linearization, Parser } from '../../src/core/parser';
<ide> import { FormatError } from '../../src/shared/util';
<ide> import { Name } from '../..... | 1 |
Python | Python | avoid double split call | 8f2e551437cc2ab7e8a447fd159e03c1e56171e5 | <ide><path>libcloud/dns/drivers/route53.py
<ide> def _to_record(self, elem, zone, index=0):
<ide> extra = {'ttl': ttl}
<ide>
<ide> if type == 'MX':
<del> priority = int(data.split()[0])
<del> data = data.split()[1]
<add> split = data.split()
<add> priority, d... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.