text:
_Dbg_help_add disable \
'**disable** *bpnum1* [*bpnum2* ...]

Disables breakopints *bpnum1*, *bpnum2*. Breakpoints numbers are given
as a space-separated list of breakpoint numbers.

To disable all breakpoints, give no argument.
A disabled breakpoint is not forgotten, but has no effect until re-enabled.

See also:
---------

**enable** and **info break**.
' 1 _Dbg_complete_brkpt_range

# Disable breakpoint(s)/watchpoint(s) by entry number(s).
_Dbg_do_disable() {
    _Dbg_enable_disable 0 'disabled' "$@"
    return $?
}

if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
    require ./help.sh ../lib/msg.sh ../lib/sort.sh ../lib/columnize.sh \
	    ../lib/list.sh
    _Dbg_args='enable'
    _Dbg_do_help enable
fi

redpajama_set_name: RedPajamaGithub


text:
'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', [
  'ngRoute',
  'firebase',
  'perfect_scrollbar',
  'myApp.home',
  'myApp.chat',
  'myApp.version'
]).
config(['$routeProvider', function($routeProvider) {
  $routeProvider.otherwise({redirectTo: '/'});
}]);


text:
'use strict';

exports.type = 'perItem';

exports.active = true;

exports.params = {
    removeAny: true
};

exports.description = 'removes <desc>';

var standardDescs = /^(Created with|Created using)/;

/**
 * Removes <desc>.
 * Removes only standard editors content or empty elements 'cause it can be used for accessibility.
 * Enable parameter 'removeAny' to remove any description.
 *
 * https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc
 *
 * @param {Object} item current iteration item
 * @return {Boolean} if false, item will be filtered out
 *
 * @author Daniel Wabyick
 */
exports.fn = function(item, params) {

    return !item.isElem('desc') || !(params.removeAny || item.isEmpty() ||
            standardDescs.test(item.content[0].text));

};


text:
package br.com.clairtonluz.especializacao_em_arquitetura.module01_programacao_efetiva_com_orientacao_a_objectos.exercicios.exercicio3.order_mail;

public class Mail {
	static boolean isSameString(String s1, String s2) {
		return StringUtil.isSameString(s1, s2);
	}
}


text:
package com.hazelcast.memory;

import static com.hazelcast.memory.MemoryStatsSupport.freePhysicalMemory;
import static com.hazelcast.memory.MemoryStatsSupport.totalPhysicalMemory;

/**
 * Default implementation of MemoryStats.
 */
public class DefaultMemoryStats implements MemoryStats {

    private final Runtime runtime = Runtime.getRuntime();
    private final DefaultGarbageCollectorStats gcStats = new DefaultGarbageCollectorStats();

    @Override
    public final long getTotalPhysical() {
        return totalPhysicalMemory();
    }

    @Override
    public final long getFreePhysical() {
        return freePhysicalMemory();
    }

    @Override
    public final long getMaxHeap() {
        return runtime.maxMemory();
    }

    @Override
    public final long getCommittedHeap() {
        return runtime.totalMemory();
    }

    @Override
    public final long getUsedHeap() {
        return runtime.totalMemory() - runtime.freeMemory();
    }

    @Override
    public final long getFreeHeap() {
        return runtime.freeMemory();
    }

    @Override
    public long getMaxNative() {
        return 0;
    }

    @Override
    public long getCommittedNative() {
        return 0;
    }

    @Override
    public long getUsedNative() {
        return 0;
    }

    @Override
    public long getFreeNative() {
        return 0;
    }

    @Override
    public long getMaxMetadata() {
        return 0;
    }

    @Override
    public long getUsedMetadata() {
        return 0;
    }

    @Override
    public GarbageCollectorStats getGCStats() {
        GCStatsSupport.fill(gcStats);
        return gcStats;
    }

    @Override
    public String toString() {
        return "MemoryStats{"
                + "Total Physical: " + MemorySize.toPrettyString(getTotalPhysical())
                + ", Free Physical: " + MemorySize.toPrettyString(getFreePhysical())
                + ", Max Heap: " + MemorySize.toPrettyString(getMaxHeap())
                + ", Committed Heap: " + MemorySize.toPrettyString(getCommittedHeap())
                + ", Used Heap: " + MemorySize.toPrettyString(getUsedHeap())
                + ", Free Heap: " + MemorySize.toPrettyString(getFreeHeap())
                + ", " + getGCStats()
                + '}';
    }
}


text:
module Amun
  module Behaviours
    # Movement behaviour between lines, characters and paragraphs
    # along with emacs keymap for it
    module Movement
      # attach the movement events only
      def movement_keymap_initialize
        bind "\C-f", self, :forward_char
        bind Curses::KEY_RIGHT, self, :forward_char

        bind "\C-b", self, :backward_char
        bind Curses::KEY_LEFT, self, :backward_char

        bind "\C-n", self, :next_line
        bind Curses::KEY_DOWN, self, :next_line

        bind "\C-p", self, :previous_line
        bind Curses::KEY_UP, self, :previous_line

        bind "\C-a", self, :beginning_of_line
        bind Curses::KEY_HOME, self, :beginning_of_line

        bind "\C-e", self, :end_of_line
        bind Curses::KEY_END, self, :end_of_line
      end

      def forward_char(*)
        buffer.point += 1
        true
      end

      def backward_char(*)
        buffer.point -= 1
        true
      end

      def next_line(*)
        point = buffer.point

        line_begin = buffer.rindex(/^/, point)

        line_end = buffer.index(/$/, point)
        return true if line_end == buffer.size

        next_line_end = buffer.index(/$/, line_end + 1)
        point_offset = point - line_begin
        buffer.point = [line_end + 1 + point_offset, next_line_end].min
        true
      end

      def previous_line(*)
        point = buffer.point

        line_begin = point == buffer.size && buffer[point - 1] == "\n" ? point : buffer.rindex(/^/, point)
        return true if line_begin.zero?

        previous_line_begin = buffer.rindex(/^/, line_begin - 1)

        point_offset = point - line_begin
        buffer.point = [previous_line_begin + point_offset, line_begin - 1].min
        true
      end

      def beginning_of_line(*)
        point = buffer.point
        return true if point == buffer.size

        line_start = buffer.rindex(/^/, point)
        buffer.point = line_start <= point ? line_start : 0
        true
      end

      def end_of_line(*)
        point = buffer.point
        return true if buffer[point] == "\n"

        line_end = buffer.index("\n", point)
        buffer.point = line_end || buffer.length
        true
      end
    end
  end
end


text:
from distutils.core import setup

setup(
    name='pyrhythmicator',
    version='0.1.0',
    packages=['pyrhythmicator'],
    url='https://github.com/mcartwright/pyrhythmicator',
    license='MIT',
    author='Mark Cartwright',
    author_email='mark.cartwright@nyu.edu',
    description="A Python implementation of Sioros and Guedes's Rhythmicator for rhythm generation and synthesis",
    long_description=open('README.md').read(),
    install_requires=[
        "jams == 0.2.2",
        "librosa == 0.5.1",
        "pandas == 0.20.1",
        "soundfile == 0.9.0",
        "numpy == 1.12.1",
        "scipy == 0.19.0",
    ],
)


text:
import os

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
    README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
    CHANGES = f.read()

requires = [
    'pyramid',
    'pyramid_jinja2',
    'pyramid_debugtoolbar',
    'pyramid_tm',
    'SQLAlchemy',
    'transaction',
    'zope.sqlalchemy',
    'waitress',
    'ipython',
    'pyramid_ipython',
    'psycopg2',
    'passlib',
]

tests_require = [
    'WebTest >= 1.3.1',  # py3 compat
    'pytest',
    'pytest-cov',
    'tox',
    'faker',
    'testing.postgresql'
]

setup(
    name='learning_journal',
    version='0.0',
    description='Caseys learning journal',
    long_description=README + '\n\n' + CHANGES,
    classifiers=[
        'Programming Language :: Python',
        'Framework :: Pyramid',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
    ],
    author='',
    author_email='',
    url='',
    keywords='web wsgi pyramid pylons',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    extras_require={
        'testing': tests_require,
    },
    install_requires=requires,
    entry_points={
        'paste.app_factory': [
            'main = learning_journal:main'
        ],
        'console_scripts': [
            'initializedb=learning_journal.scripts.initializedb:main'
        ],
    },

)


text:
@implementation ShellUtilitiesTests

- (void)testPathEscaping {
	NSString* original;
	NSString* escaped;
	NSString* unescaped;

	original = @"/Users/bdr/Documents/Documents/Decimus/trunk/Playground/DTerm/Tests/";
	escaped = escapedPath(original);
	unescaped = unescapedPath(escaped);
	STAssertEqualObjects(original, escaped, @"escaping changed a string that didn't need to be changed");
	STAssertEqualObjects(escaped, unescaped, @"unescaping changed a string that didn't need to be changed");

	original = @"DTerm/Full Key Codes";
	escaped = escapedPath(original);
	unescaped = unescapedPath(escaped);
	STAssertEqualObjects(escaped, @"DTerm/Full\\ Key\\ Codes",
						 @"escaping didn't escape spaces");
	STAssertEqualObjects(unescaped, original,
						 @"unescaping didn't restore original");
	STAssertNil(unescapedPath(original), @"unescapedPath returned something when given a string with unescaped special chars");
}

- (void)testShellWordParsing {
	NSString* command = @"foobar separate things 'single quoted' \"double quoted\" escaped\\ thing";
	NSRange returnedRange;

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 3)],
						 @"foo",
						 @"Failed to correctly identify word at beginning of string");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 6)],
						 @"foobar",
						 @"Failed to correctly identify word just before space");

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 7)],
						 @"",
						 @"Failed to correctly identify empty word just after space");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 10)],
						 @"sep",
						 @"Failed to correctly identify word after space");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 15)],
						 @"separate",
						 @"Failed to correctly identify word between spaces");

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 16)],
						 @"",
						 @"Failed to correctly identify empty word just after second space");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 20)],
						 @"thin",
						 @"Failed to correctly identify word after second space");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 22)],
						 @"things",
						 @"Failed to correctly identify full word after second space");

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 23)],
						 @"",
						 @"Failed to correctly identify empty word before single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 24)],
						 @"",
						 @"Failed to correctly identify empty word after opening single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 27)],
						 @"sin",
						 @"Failed to correctly identify partial word after opening single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 30)],
						 @"single",
						 @"Failed to correctly identify full word after opening single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 31)],
						 @"single ",
						 @"Failed to correctly identify full word plus space after opening single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 34)],
						 @"single quo",
						 @"Failed to correctly identify full word+space+partial word after opening single quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 37)],
						 @"single quoted",
						 @"Failed to correctly identify full single quoted phrase before close quote");
	returnedRange = lastShellWordBeforeIndex(command, 38);
	STAssertTrue(returnedRange.location == NSNotFound, @"Should be NSNotFound directly after single quoted strings");

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 39)],
						 @"",
						 @"Failed to correctly identify empty word before double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 40)],
						 @"",
						 @"Failed to correctly identify empty word after opening double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 43)],
						 @"dou",
						 @"Failed to correctly identify partial word after opening double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 46)],
						 @"double",
						 @"Failed to correctly identify full word after opening double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 47)],
						 @"double ",
						 @"Failed to correctly identify full word plus space after opening double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 50)],
						 @"double quo",
						 @"Failed to correctly identify full word+space+partial word after opening double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 53)],
						 @"double quoted",
						 @"Failed to correctly identify full double quoted phrase before close quote");
	returnedRange = lastShellWordBeforeIndex(command, 54);
	STAssertTrue(returnedRange.location == NSNotFound, @"Should be NSNotFound directly after double quoted strings");

	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 55)],
						 @"",
						 @"Failed to correctly identify empty word after space after double quote");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 62)],
						 @"escaped",
						 @"Failed to correctly identify word just before escaped space");
	returnedRange = lastShellWordBeforeIndex(command, 63);
	STAssertTrue(returnedRange.location == NSNotFound, @"Should be NSNotFound when in incomplete escape sequence");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 64)],
						 @"escaped\\ ",
						 @"Failed to correctly identify word just after escaped space");
	STAssertEqualObjects([command substringWithRange:lastShellWordBeforeIndex(command, 69)],
						 @"escaped\\ thing",
						 @"Failed to correctly identify phrase containing escaped space");

	// TODO: need to do tests on a string with escaped quotes inside quotes and whatnot
	// ...but I'm sick of this for now.
}

@end


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent"
	android:layout_height="fill_parent"
	xmlns:tools="http://schemas.android.com/tools"
	android:orientation="vertical"
	android:id="@+id/rel">

    <ViewSwitcher xmlns:android="http://schemas.android.com/apk/res/android"
    	android:id="@+id/mainContainer"
    	android:layout_width="match_parent"
    	android:layout_height="match_parent"
    	android:orientation="vertical">

        <com.lqtemple.android.lqbookreader.read.BookView
            android:id="@+id/bookView"
        	android:layout_width="match_parent"
			android:layout_height="match_parent">
				<!--Top bar-->
				<LinearLayout
					android:id="@+id/book_top_bar"
					android:layout_width="match_parent"
					android:orientation="horizontal"
					android:gravity="center_vertical"
					android:layout_height="36dp">
					<TextView
						android:id="@+id/titleBookChapter"
						android:layout_width="0dp"
						android:layout_height="wrap_content"
						android:layout_weight="1"
						android:textSize="@dimen/top_bar_txt_size"
						android:textColor="@color/dark_grey"
						tools:text="第一章"
						android:gravity="start"/>
					<TextView
						android:id="@+id/nameBook"
						android:layout_width="wrap_content"
						android:layout_height="wrap_content"
						android:textSize="@dimen/top_bar_txt_size"
						android:textColor="@color/dark_grey"
						tools:text="侧记"
						android:gravity="end"/>
				</LinearLayout>

				<!-- Bottom bar -->
				<LinearLayout
					android:id="@+id/book_bottom_bar"
					android:layout_width="match_parent"
					android:layout_height="32dp"
					android:gravity="center_vertical"
					android:orientation="horizontal"
					android:layout_alignParentBottom="true">

					<TextView
						android:id="@+id/percentageField"
						android:layout_width="0dp"
						android:layout_height="wrap_content"
						android:layout_weight="1"
						android:text="@string/zero_percent"
						android:textSize="@dimen/bottom_bar_txt_size"
						android:textColor="@color/dark_grey"
						tools:text="33/566" />

					<com.lqtemple.android.lqbookreader.view.BatteryView
						android:id="@+id/current_battery"
						android:layout_width="32dp"
						android:layout_height="16dp"
						android:layout_marginEnd="2dp"
						android:layout_marginRight="2dp" />

					<com.lqtemple.android.lqbookreader.view.TimeView
						android:id="@+id/current_time"
						android:layout_width="wrap_content"
						android:layout_height="wrap_content"
						android:textSize="@dimen/bottom_bar_txt_size"
						android:textColor="@color/dark_grey"
						tools:text="11:39" />
				</LinearLayout>

				<com.lqtemple.android.lqbookreader.read.InnerView
					android:layout_below="@id/book_top_bar"
					android:layout_above="@id/book_bottom_bar"
					android:id="@+id/innerView"
					android:layout_width="match_parent"
					android:layout_height="match_parent" />

		</com.lqtemple.android.lqbookreader.read.BookView>
	    <com.lqtemple.android.lqbookreader.view.AnimatedImageView
    	     android:layout_width="fill_parent"
        	android:layout_height="fill_parent"
        	android:id="@+id/dummyView" />

    </ViewSwitcher>

      <TextView
    	android:id="@+id/pageNumberView"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@id/mainContainer"
        />

    	<RelativeLayout
        	android:id="@+id/myTitleBarLayout"
        	android:layout_width="fill_parent"
        	android:layout_height="wrap_content"
        	android:orientation="vertical"
        	android:layout_alignBottom="@id/mainContainer"
        	android:visibility="gone"
        	>

          <SeekBar android:id="@+id/titleProgress"
        	style="?android:attr/progressBarStyleHorizontal"
        	android:layout_width="fill_parent"
        	android:layout_height="wrap_content"
                android:background="@color/translucent_black"
                android:paddingLeft="16dp"
                android:paddingRight="16dp"
                />
			<LinearLayout
				android:layout_width="match_parent"
				android:orientation="horizontal"
				android:layout_below="@id/titleProgress"
				android:layout_height="48dp">
				<ImageView
					android:id="@+id/nav_drawer"
					android:padding="8dp"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:src="@android:drawable/ic_menu_manage"
					/>
				<ImageView
					android:padding="8dp"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:src="@android:drawable/ic_menu_manage"
					/>
				<ImageView
					android:padding="8dp"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:src="@android:drawable/ic_menu_manage"
					/>
				<ImageView
					android:padding="8dp"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:src="@android:drawable/ic_menu_manage"
					/>
			</LinearLayout>
  </RelativeLayout>

  <include layout="@layout/media_player_bar" />

</RelativeLayout>


text:
{% extends 'base.html' %}
{% load static %}

{% block script_header %}
{% endblock %}

{% block content %}

{{ post.text }}

        {% if post.comments %}
          {% include 'forum/content_block__forum_comments_block.html' %}
        {% endif %}

      {% include 'forum/content_block_right_side_block.html' %}

{% endblock %}


text:
<!doctype html>

    <meta charset="utf-8" />

    <title>backbone-pageable server mode demo</title>

    <link rel="stylesheet" href="css/bootstrap.css" />
    <link rel="stylesheet" href="css/bootstrap-theme.css" />
    <link rel="stylesheet" href="css/backgrid.css" />
    <link rel="stylesheet" href="css/extensions/paginator/backgrid-paginator.css" />
    <link rel="stylesheet" href="css/extensions/text-cell/backgrid-text-cell.css" />

            Feel free to peek into the source of this page and play with the code in your browser's console.

Note:

Github's API is rate limited, if the example doesn't work, you
                may want to try again in a few minutes.


text:
package br.unb.cic.iris.model;

/***
 * added by dBaseModel
 */
public enum Status {
	CONNECTED, NOT_CONNECTED;
}


text:
<?php $args = $this->settings->get_setting_args( 'enable-subsite-settings' ); ?>
<tr class="<?php echo $args['tr_class'];?>">

		<?php $this->render_view( 'elements/checkbox', $args ); ?>

		<?php echo $args['setting_msg']; ?>

<?php _e( 'Enable Subsite Settings', 'wp-offload-ses' ); ?>

			<?php _e( 'Let subsites configure their own settings.', 'wp-offload-ses' ); ?>

					<?php _e( 'When enabled, subsites will be able to configure their own settings. If no settings are configured for a subsite, the subsite will use the network-level settings configured on this page.', 'wp-offload-ses' ); ?>


text:
namespace yukino {

class Comparator;

namespace util {

class SharedTTree : public base::DisableCopyAssign {
public:
    SharedTTree(const Comparator *comparator, size_t page_size);

    base::Status Attach(base::MappedMemory *mmap);

    base::Status Init(base::MappedMemory *mmap);

    bool Put(const base::Slice &key, std::string *old, base::Status *rs);
    bool Get(const base::Slice &key, base::Slice *rv, std::string *scratch) const;
    bool Delete(const base::Slice &key, std::string *old);

    struct Node {
        //uint32_t crc32;
        uint32_t parent;
        uint32_t lchild;
        uint32_t rchild;
        std::atomic<uint32_t> mutex;
        int16_t  num_entries;
        uint16_t index[1];
    };

    enum NodeType : uint8_t {
        kPageFree = 0,
        kPageUsed = 1,
    };

    struct Spec {
        uint16_t top;
        uint8_t  type;
    };

    class Delegate;

    std::tuple<Node *, int> FindGreaterOrEqual(const base::Slice &key) const;
    std::tuple<Node *, bool> FindNode(const base::Slice &key) const;

    std::tuple<Node *, bool> AllocateNode();
    bool IsUsed(const Node *node) const;
    void FreeNode(const Node *node);

    inline int GetDepth(const Node *node) const;

    int32_t limit_count() const { return limit_count_; }
    void set_limit_count(int32_t n) { limit_count_ = n; }

    //--------------------------------------------------------------------------
    // For Testing
    //--------------------------------------------------------------------------
    Node *TEST_Root() const { return root_; }

    int TEST_DumpTree(const Node *subtree, std::string *buf, int indent = 0) const;

    static const size_t kMaxPageSize = UINT16_MAX;

private:

    const Comparator * const comparator_;
    const size_t page_size_;
    const int page_shift_;
    int32_t limit_count_ = INT32_MAX;

    Node *root_ = nullptr;
    base::MappedMemory *mmap_ = nullptr;
    util::Bitmap<> bitmap_;
};

} // namespace util

} // namespace yukino

#endif // YUKINO_UTIL_SHARED_TTREE_H_


text:
@interface RUBar : NSObject

@property (strong, nonatomic) NSString * name ;
@property (strong, nonatomic) NSString * phoneNumber;
@property (strong, nonatomic) NSString * url ;
@property (strong, nonatomic) NSString * thoroughfare ;
@property (strong, nonatomic) NSString * subThoroughfare ;
@property (strong, nonatomic) NSString * locality ;
@property (strong, nonatomic) NSString * subLocality ;
@property (strong, nonatomic) NSString * administrativeArea ;
@property (strong, nonatomic) NSString * subAdministrativeArea ;
@property (strong, nonatomic) NSString * postalCode ;
@property (strong, nonatomic) NSString * ISOcountryCode ;
@property (strong, nonatomic) NSString * country ;

- (RUBar *)   initWithName: (NSString *) name
           withPhoneNumber: (NSString *) phoneNumber
                   withUrl: (NSString *) url
           withThroughfare: (NSString *) thoroughfare
        withSubThroughfare: (NSString *) subThoroughfare
              withLocality: (NSString *) locality
           withSubLocality: (NSString *) subLocality
    withAdministrativeArea: (NSString *) administrativeArea
 withSubAdministrativeArea: (NSString *) subAdministrativeArea
            withPostalCode: (NSString *) postalCode
        withISOcountryCode: (NSString *) ISOcountryCode
            andWithCountry: (NSString *) country;

- (BOOL) isMostCommonGenderMale;
- (NSInteger) getAgeGroup;
- (BOOL) frequentedByUser: (NSString *) fullName;
- (BOOL) isInDatabase;
- (BOOL) removeFromDatabase;
- (BOOL) insertIntoDatabase;
- (void) toggleFrequentFor: (NSString *) frequentersName;
- (BOOL) isFrequentedByUserWithName: (NSString *) name;
- (void) toggleSellsBeer: (NSString *) beerName andAtPrice: (NSString *) price;

@end


text:
package easy;

public class First_Unique_Character_in_a_String {

	class Solution {
	    public int firstUniqChar(String s) {
	        if (s == null) {
	        	return -1;
	        }
	        int[] characters = new int[26];
	        for (int i = 0; i < s.length(); i++) {
	        	char character = s.charAt(i);
	        	characters[Character.toLowerCase(character)-'a']++;
	        }
	        for (int i = 0; i < s.length(); i++) {
	        	char character = s.charAt(i);
	        	if (characters[Character.toLowerCase(character)-'a'] == 1) {
	        		return i;
	        	}
	        }
	        return -1;
	    }
	}

	public static void main(String[] args) {
		String s = "loveleetcode";
		System.out.println(new First_Unique_Character_in_a_String().new Solution().firstUniqChar(s));
	}

}


text:
const SkritterModel = require('base/BaseSkritterModel');

/**
 * @class CouponModel
 * @extends {SkritterModel}
 */
const CouponModel = SkritterModel.extend({

  /**
   * @property idAttribute
   * @type {String}
   */
  idAttribute: 'id',

  /**
   * @property urlRoot
   */
  urlRoot: 'coupons',

  /**
   * @method initialize
   * @constructor
   */
  initialize: function () {
    this.wasUsed = false;
    this.error = '';
  },

  /**
   * @method parse
   * @returns {Object}
   */
  parse: function (response) {
    return response.Coupon || response;
  },

  /**
   * @method use
   * @returns {jqXHR|null}
   */
  use: function () {
    this.error = '';
    if (!this.get('code')) {
      this.error = 'No code provided';
      return;
    }
    this.listenToOnce(this, 'sync', this.useSync);
    this.listenToOnce(this, 'error', this.useError);
    return this.save(null, {
      url: app.getApiUrl() + 'coupons/' + this.get('code') + '/use',
      method: 'POST',
    });
  },

  /**
   * @method useError
   * @param {CouponModel} model
   * @param {jqXHR} jqxhr
   */
  useError: function (model, jqxhr) {
    this.error = jqxhr.responseJSON.message;
    this.stopListening(this, 'sync', this.useSync);
    this.trigger('state', this);
  },

  /**
   * @method useSync
   */
  useSync: function (model, response) {
    this.subscriptionAttributes = response.Subscription;
    this.wasUsed = true;
    this.stopListening(this, 'error', this.useError);
    this.trigger('state', this);
  },

});

module.exports = CouponModel;


text:
using System.Text.Json;
using Azure.Core;

namespace Azure.ResourceManager.MySql.FlexibleServers.Models
{
    public partial class MySqlFlexibleServerNameAvailabilityResult
    {
        internal static MySqlFlexibleServerNameAvailabilityResult DeserializeMySqlFlexibleServerNameAvailabilityResult(JsonElement element)
        {
            Optional<string> message = default;
            Optional<bool> nameAvailable = default;
            Optional<string> reason = default;
            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("message"))
                {
                    message = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("nameAvailable"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    nameAvailable = property.Value.GetBoolean();
                    continue;
                }
                if (property.NameEquals("reason"))
                {
                    reason = property.Value.GetString();
                    continue;
                }
            }
            return new MySqlFlexibleServerNameAvailabilityResult(message.Value, Optional.ToNullable(nameAvailable), reason.Value);
        }
    }
}


text:
CHANGELOG for 5.2.x
===================

This changelog references the relevant changes (bug and security fixes) done
in 5.2 minor versions.

To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v5.2.0...v5.2.1

* 5.2.6 (2021-03-29)

 * bug #40598 [Form] error if the input string couldn't be parsed as a date (xabbuh)
 * bug #40587 [HttpClient] fix using stream_copy_to_stream() with responses cast to php streams (nicolas-grekas)
 * bug #40510 [Form] IntegerType: Always use en for IntegerToLocalizedStringTransformer (Warxcell)
 * bug #40593 Uses the correct assignment action for console options depending if they are short or long (topikito)
 * bug #40535 [HttpKernel] ConfigDataCollector to return known data without the need of a Kernel (topikito)
 * bug #40552 [Translation] Fix update existing key with existing +int-icu domain (Alexis)
 * bug #40541 Fixed parsing deprecated definitions without message key (adamwojs)
 * bug #40537 [Security] Handle properly 'auto' option for remember me cookie security (fliespl)
 * bug #40524 [Console] fix emojis messing up the line width (MarionLeHerisson)
 * bug #40506 [Validator] Avoid triggering the autoloader for user-input values (Seldaek)
 * bug #40544 [FrameworkBundle] ensure TestBrowserToken::$firewallName is serialized (kbond)
 * bug #40547 [RateLimiter] Security hardening - Rate limiter (jderusse)
 * bug #40538 [HttpClient] remove using $http_response_header (nicolas-grekas)
 * bug #40508 [PhpUnitBridge] fix reporting deprecations from DebugClassLoader (nicolas-grekas)
 * bug #40497 [HttpFoundation] enable HTTP method overrides as early as possible with the HTTP cache (xabbuh)
 * bug #40348 [Console] Fix line wrapping for decorated text in block output (grasmash)
 * bug #40499 [Inflector][String] Fixed pluralize "coupon" (Nyholm)
 * bug #40494 [PhpUnitBridge] fix compat with symfony/debug (nicolas-grekas)
 * bug #40453 [VarDumper] Adds support for ReflectionUnionType to VarDumper (Michael Nelson, michaeldnelson)
 * bug #40460 Correctly clear lines for multi-line progress bar messages (grasmash)
 * bug #40490 [Security] Add XML support for authenticator manager (wouterj)
 * bug #40242 [ErrorHandler] Fix error caused by `include` + open_basedir (stlrnz)
 * bug #40368 [FrameworkBundle] Make the TestBrowserToken interchangeable with other tokens (Seldaek)
 * bug #40450 [Console] ProgressBar clears too many lines on update (danepowell)
 * bug #40178 [FrameworkBundle] Exclude unreadable files when executing About command (michaljusiega)
 * bug #40472 [Bridge\Twig] Add 'form-control-range' for range input type (Oviglo)
 * bug #40481 make async-ses required (jderusse)
 * bug #39866 [Mime] Escape commas in address names (YaFou)
 * bug #40373 Check if templating engine supports given view (fritzmg)
 * bug #39992 [Security] Refresh original user in SwitchUserListener (AndrolGenhald)
 * bug #40446 [TwigBridge] Fix "Serialization of 'Closure'" error when rendering an TemplatedEmail (jderusse)
 * bug #40416 Fix `ConstraintViolation#getMessageTemplate()` to always return `string` (Ocramius)
 * bug #40425 [DoctrineBridge] Fix eventListener initialization when eventSubscriber constructor dispatch an event (jderusse)
 * bug #40313 [FrameworkBundle] Fix PropertyAccess definition when not in debug (PedroTroller)
 * bug #40417 [Form] clear unchecked choice radio boxes even if clear missing is set to false (xabbuh)
 * bug #40388 [ErrorHandler] Added missing type annotations to FlattenException (derrabus)
 * bug #40407 [TwigBridge] Allow version 3 of the Twig extra packages (derrabus)

* 5.2.5 (2021-03-10)

 * bug #40415 Fix `ConstraintViolation#getPropertyPath()` to always return `string` (Ocramius)
 * bug #40421 [FrameworkBundle] fix XSD (nicolas-grekas)
 * bug #39685 [Mailer][Mime][TwigBridge][Validator] Allow egulias/email-validator 3.x (derrabus)
 * bug #40398 [FrameworkBundle] : Fix method name compare in ResolveControllerNameSubscriber (glensc)
 * bug #39733 [TwigBridge] Render email once (jderusse)
 * bug #40386 [DependencyInjection][Security] Backport psr/container 1.1/2.0 compatibility (derrabus)
 * bug #40376 [Messenger] Don't lock tables or start transactions (Nyholm)
 * bug #40378 Changing ZulipTransportFactory tag to prevent the exception UnsupportedSchemeException (big-r81)

* 5.2.4 (2021-03-04)

 * bug #40336 [Messenger] Doctrine setup with migrations (Nyholm)
 * bug #40318 [Translation] deal with indented heredoc/nowdoc tokens (xabbuh)
 * bug #40350 [DependencyInjection] fix parsing calls of methods named "method" (xabbuh)
 * bug #40316 [Serializer] zero parts can be omitted in date interval input (xabbuh)
 * bug #40239 MockResponse total_time should not be simulated when provided (Pierrick VIGNAND)
 * bug #40299 [Cache] Add server-commands support for Predis Replication Environments (DemigodCode)
 * bug #40231 [HttpKernel] Configure `session.cookie_secure` earlier (tamcy)
 * bug #40283 [Translation] Make `name` attribute optional in xliff2 (MarieMinasyan)
 * bug #40286 [Security] #[CurrentUser] arguments should resolve to null for "anon." (chalasr)
 * bug #40281 [FrameworkBundle] Allow x-forwarded-prefix trusted header in config (drupol)
 * bug #39599 [Cache] Fix Redis TLS scheme `rediss` for Redis connection (misaert)
 * bug #40244 [Routing] fix conflict with param named class in attribute (nlhommet)
 * bug #40273 [Cache] fix setting items' metadata on commit() (nicolas-grekas)
 * bug #40258 [Form] Ignoring invalid forms from delete_empty behavior in CollectionType (yceruto)
 * bug #40246 [EventDispatcher] fix registering subscribers twice on edge-case (nicolas-grekas)
 * bug #40162 [Intl] fix Locale::getFallback() throwing exception on long $locale (AmirHo3ein13)
 * bug #40211 [Validator] fix taking error message from the correct violation (xabbuh)
 * bug #40208 [PropertyInfo] fix resolving self to name of the analyzed class (xabbuh)
 * bug #40209 [WebLink] Escape double quotes in attributes values (fancyweb)
 * bug #40192 [Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name (Yendric)
 * bug #40203 [String] Check if function exists before declaring it (Nyholm)
 * bug #40175 [PropertyInfo]  use the right context for properties defined in traits (xabbuh)
 * bug #40172 [Translation] Allow using dashes in locale when linting Xliff files (localheinz)
 * bug #39671 [Worflow] Fixed GuardListener when using the new Security system (lyrixx)
 * bug #40187 [Console] Fix PHP 8.1 null error for preg_match flag (kylekatarnls)
 * bug #39659 [Form] keep valid submitted choices when additional choices are submitted (xabbuh)
 * bug #40188 [HttpFoundation] Fix PHP 8.1 null values (kylekatarnls)
 * bug #40167 [DependencyInjection] Definition::removeMethodCall should remove all matching calls (ruudk)
 * bug #40160 [PropertyInfo] fix extracting mixed type-hinted property types (xabbuh)
 * bug #40040 [Finder] Use a lazyIterator to close files descriptors when no longer used (jderusse)
 * bug #40141 [RateLimiter] Fix sliding_window misbehaving with stale records  (xesxen)
 * bug #40135 [FrameworkBundle] Fix freshness checks with boolean parameters on routes (HypeMC)
 * bug #40138 [FrameworkBundle] fix registering "annotations.cache" on the "container.hot_path" (nicolas-grekas)
 * bug #40137 [Form] forward the label_html option to expanded choice fields (xabbuh)
 * bug #40116 [FrameworkBundle][Translator] scan directories for translations sequentially (xabbuh)
 * bug #40124 [Form] merge translation parameters with value configured for parent form (xabbuh)
 * bug #40104 [HttpKernel] [Kernel] Silence failed deprecations logs writes (fancyweb)
 * bug #40098 [DependencyInjection] fix tracking of changes to vendor/ dirs (nicolas-grekas)
 * bug #39980 [Mailer][Mime] Update inline part names with newly generated ContentId (ddegentesh)
 * bug #40043 [HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object (ctasada)
 * bug #40050 [FrameworkBundle][Translator] Fixed updating catalogue metadata from Intl domain (yceruto)
 * bug #40080 Fix Request with DNS issue not retried (jderusse)
 * bug #40089 [SecurityBundle] role_names variable instead of roles (wickedOne)
 * bug #40042 [Doctrine] Restore priority for EventSubscribers (jderusse)
 * bug #40066 [ErrorHandler] fix parsing return types in DebugClassLoader (nicolas-grekas)
 * bug #40065 [ErrorHandler] fix handling messages with null bytes from anonymous classes (nicolas-grekas)
 * bug #40067 [PhpUnitBridge] fix reporting deprecations when they come from DebugClassLoader (nicolas-grekas)

* 5.2.3 (2021-02-03)

 * bug #39954 [Mailer][Mime] Fix case-sensitive handling of header names (piku235)
 * bug #40055 [Messenger] Fix Doctrine setup when using a migration (fabpot)
 * bug #40018 [TwigBridge] take into account all label related options (xabbuh)
 * bug #40023 [Finder]  use proper keys to not override appended files (xabbuh)
 * bug #40019 [ErrorHandler] Fix strpos error when trying to call a method without a name (Deuchnord)
 * bug #40027 [DoctrineBridge] add missing `@experimental` annotation on Uid generators (nicolas-grekas)
 * bug #40004 [Serializer] Prevent access to private properties without getters (julienfalque)
 * bug #40003 [Uid] Fix time to float conversion (fancyweb)

* 5.2.2 (2021-01-27)

 * bug #38900 [Serializer] Exclude non-initialized properties accessed with getters (BoShurik)
 * bug #39982 [SecurityBundle] Fix referencing aliases from RegisterEntryPointsPass (chalasr)
 * bug #39872 [Validator] propagate the object being validated to nested constraints (xabbuh)
 * bug #39887 [Translator] fix handling plural for floating numbers (kylekatarnls)
 * bug #39967 [Messenger] fix redis messenger options with dsn (Kleinast)
 * bug #39970 [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64 (nicolas-grekas)
 * bug #39956 [Uid] fix checking for valid UUIDs (nicolas-grekas)
 * bug #39951 [Form] check parent types for label_format and translation_domain (xabbuh)
 * bug #39911 [RateLimiter] Fix infinite values with NoLimiter (YaFou)
 * bug #39936 [Validator] Fix DebugCommand (loic425)
 * bug #39909 [PhpUnitBridge] Allow relative path to composer cache (jderusse)
 * bug #39944 [HttpKernel] Configure the ErrorHandler even when it is overriden (nicolas-grekas)
 * bug #39896 [PropertyInfo] Fix breaking change with has*(arguments...) methods (YaFou)
 * bug #39932 [Console] [Command] Fix Closure code binding when it is a static anonymous function (fancyweb)
 * bug #39871 [Notifier] [OvhCloud] "Invalid signature" for message with slashes (OneT0uch)
 * bug #39900 [Uid] Unable to extend Uuid/Ulid and use fromString() (OskarStark)
 * bug #39880 [DoctrineBridge] Add username to UserNameNotFoundException (qurben)
 * bug #39633 [HttpFoundation] Drop int return type from parseFilesize() (LukeTowers)
 * bug #39889 [HttpClient] Add check for constant in Curl client (pierredup)
 * bug #39886 [HttpFoundation] Revert #38614 and add assert to avoid regressions (BafS)
 * bug #39873 [DependencyInjection] Fix container injection with TypedReference (jderusse)
 * bug #39858 Fix problem when SYMFONY_PHPUNIT_VERSION is empty string value (alexander-schranz)
 * bug #39861 [DependencyInjection] Skip deprecated definitions in CheckTypeDeclarationsPass (chalasr)
 * bug #39862 [Security] Replace message data in JSON security error response (wouterj)
 * bug #39859 [Security] Replace message data in JSON security error response (wouterj)
 * bug #39839 [Messenger] [AmazonSqs] Fix auto-setup for fifo queue (starred-gijs)
 * bug #39667 [DoctrineBridge] Take into account that indexBy="person_id" could be a db column name, for a referenced entity (victormacko)
 * bug #39799 [DoctrineBridge] Fix circular loop with EntityManager (jderusse)
 * bug #39821 [DependencyInjection] Don't trigger notice for deprecated aliases pointing to deprecated definitions (chalasr)
 * bug #39816 [HttpFoundation] use atomic writes in MockFileSessionStorage (nicolas-grekas)
 * bug #39812 Make EmailMessage & SmsMessage transport nullable (odolbeau)
 * bug #39735 [Serializer] Rename normalize param (VincentLanglet)
 * bug #39797 Dont allow unserializing classes with a destructor (jderusse)
 * bug #39743 [Mailer] Fix missing BCC recipients in SES bridge (jderusse)
 * bug #39764 [Config]  fix handling float-like key attribute values (xabbuh)
 * bug #39787 [Yaml] a colon followed by spaces exclusively separates mapping keys and values (xabbuh)
 * bug #39788 [Cache] fix possible collision when writing tmp file in filesystem adapter (nicolas-grekas)
 * bug #39796 Dont allow unserializing classes with a destructor - 5.2 (jderusse)
 * bug #39794 Dont allow unserializing classes with a destructor - 4.4 (jderusse)
 * bug #39795 Dont allow unserializing classes with a destructor - 5.1 (jderusse)
 * bug #39389 [Security]  Move the handleAuthenticationSuccess logic outside try/catch block (jderusse)
 * bug #39747 [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass (derrabus)
 * bug #39738 [VarDumper] fix mutating $GLOBALS while cloning it (nicolas-grekas)
 * bug #39746 [DependencyInjection] Fix InvalidParameterTypeException for function parameters (derrabus)
 * bug #39681 [HttpFoundation] parse cookie values containing the equal sign (xabbuh)
 * bug #39716 [DependencyInjection] do not break when loading schemas from network paths on Windows (xabbuh)
 * bug #39703 [Finder] apply the sort callback on the whole search result (xabbuh)
 * bug #39717 [TwigBridge] Remove full head content in HTML to text converter (pupaxxo)
 * bug #39672 [FrameworkBundle] Fix UidNormalizer priority (fancyweb)
 * bug #39649 [Validator] propagate groups to nested constraints (xabbuh)
 * bug #39708 [WebProfilerBundle] take query and request parameters into account when matching routes (xabbuh)
 * bug #39692 [FrameworkBundle] Dump abstract arguments (jderusse)
 * bug #39683 [Yaml] keep trailing newlines when dumping multi-line strings (xabbuh)
 * bug #39670 [Form] disable error bubbling by default when inherit_data is configured (xabbuh)
 * bug #39686 [Lock] Fix config merging in lock (jderusse)
 * bug #39668 [Yaml] do not dump extra trailing newlines for multiline blocks (xabbuh)
 * bug #39674 [Messenger] fix postgres transport when the retry table is the same (lyrixx)
 * bug #39653 [Form] fix passing null $pattern to IntlDateFormatter (nicolas-grekas)
 * bug #39637 [Security] Fix event propagation for AuthenticationTokenCreatedEvent when globally registered (scheb)
 * bug #39647 [Validator] Update Isin message to match the translation files (derrabus)
 * bug #39598 [Messenger] Fix stopwach usage if it has been reset (lyrixx)
 * bug #39636 [Uid] Handle ValueErrors triggered by ext-uuid on PHP 8 (derrabus)
 * bug #39631 [VarDumper] Fix display of nullable union return types (derrabus)
 * bug #39629 [VarDumper] fixed displaying "mixed" as "?mixed" (nicolas-grekas)
 * bug #39597 [Mailer] Handle failure when sending DATA (jderusse)
 * bug #39621 [Security] Fix event propagation for globally registered security events (scheb)
 * bug #39603 [TwigBridge] allow null values in form helpers (xabbuh)
 * bug #39610 [ProxyManagerBridge] fix PHP notice, switch to "friendsofphp/proxy-manager-lts" (nicolas-grekas)
 * bug #39584 [Security] Add RememberMe Badge to LoginLinkAuthenticator (jderusse)
 * bug #39586 Supports empty path for slack DSN (odolbeau)

* 5.2.1 (2020-12-18)

 * bug #39555 [FrameworkBundle] Fix NFS detection on macOs (jderusse)
 * bug #39545 [Notifier] [Mattermost] Host is required (OskarStark)
 * bug #39548 [Notifier] [Infobip][Zulip] Host is required (OskarStark)
 * bug #39550 [HttpFoundation] keep turning dots to underscores when using Request::create() (nicolas-grekas)
 * bug #39538 [Notifier] Fix parsing Dsn with empty user/password (OskarStark)
 * bug #39531 [Mailer] Fix parsing Dsn with empty user/password (OskarStark)
 * bug #39492 [Notifier] [Discord] Use private const and mb_strlen() (OskarStark)
 * bug #39522 [Notifier] Set message id on SentMessage (OskarStark)
 * bug #39532 [Notifier] Fix toString when optional parameter is not set (OskarStark)
 * bug #39518 [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation (astepin)
 * bug #39525 [VarDumper] dont hide any nodes until JS is proven to work (nicolas-grekas)
 * bug #39498 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE (guillaume-sainthillier)
 * bug #39510 [Notifier]  [Free Mobile] Could not use custom host in DSN (OskarStark)
 * bug #39515 [Notifier] Fix wrong package name (OskarStark)
 * bug #39514 [Notifier] Fix wrong package names (OskarStark)
 * bug #39502 Add missing symfony/deprecation-contracts requirement - 5.2 (jderusse)
 * bug #39494 Add missing symfony/deprecation-contracts requirement (jderusse)
 * bug #39360 [FrameworkBundler] Fix cache:clear with buildDir (jderusse)
 * bug #39476 [Lock] Prevent store exception break combined store (dzubchik)
 * bug #39478 [FrameworkBundle] Fix missing kernel.build_dir on cache clear (chalasr)
 * bug #39456 [Notifier] [Free Mobile] Fix wrong scheme in mapping (OskarStark)
 * bug #39442 Fix enabled key for ratelimiter config (pierredup)
 * bug #39299 [PropertyInfo][Serializer] Fixed extracting ignored properties for Serializer (javer)
 * bug #39433 [Cache] fix setting "read_timeout" when using Redis (nicolas-grekas)
 * bug #39228 [HttpClient] Fix content swallowed by AsyncClient initializer (jderusse)
 * bug #39420 [Cache] Prevent notice on case matching metadata trick (bastnic)
 * bug #39413 [Notifier] [Discord] Make webhookId argument required (OskarStark)
 * bug #39203 [DI] Fix not working if only "default_index_method" used (malteschlueter)
 * bug #39409 [Notifier] [Twilio] Add tests (OskarStark)
 * bug #39401 [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded (craue)
 * bug #39417 [Form] Fix UUID exception (jderusse)
 * bug #39142 [Config] Stop treating multiline resources as globs (michaelKaefer)
 * bug #39341 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD) (pmishev)
 * bug #39268 [HttpClient] Use decoration instead of class replacement for mock factory (GaryPEGEOT)
 * bug #39334 [Config][TwigBundle] Fixed syntax error in config (Nyholm)
 * bug #39196 [DI] Fix Xdebug 3.0 detection (vertexvaar)
 * bug #39375 [SecurityBundle] fix LDAP-based HTTP Basic Auth entry point registration (xabbuh)
 * bug #39226 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from PHPUnit configuration file (fancyweb)
 * bug #39298 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0 (wickex)
 * bug #39361 [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations (nicolas-grekas)
 * bug #39358 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery() (nicolas-grekas)
 * bug #39357 [FrameworkBundle] fix preserving some special chars in the query string (nicolas-grekas)
 * bug #39310 [Notifier] Add exception for deprecated slack dsn (malteschlueter)
 * bug #39271 [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given (sidz)
 * bug #39251 [DependencyInjection] Fix container linter for union types (derrabus)
 * bug #39336 [Config] YamlReferenceDumper: No default value required for VariableNode with array example (Nyholm)
 * bug #39333 [Form] do not apply the Valid constraint on scalar form data (lchrusciel, xabbuh)
 * bug #39331 [PhpUnitBridge] Fixed PHPunit 9.5 compatibility (wouterj)
 * bug #39220 [HttpKernel] Fix bug with whitespace in Kernel::stripComments() (ausi)
 * bug #39252 [Mime] Leverage PHP 8's detection of CSV files (derrabus)
 * bug #39313 [FrameworkBundle] TextDescriptor::formatControllerLink checked method… (fjogeleit)
 * bug #39286 [HttpClient] throw clearer error when no scheme is provided (BackEndTea)
 * bug #39267 [Yaml] fix lexing backslashes in single quoted strings (xabbuh)
 * bug #39151 [DependencyInjection] Fixed incorrect report for private services if required service does not exist (Islam93)
 * bug #39236 [Notifier] Fix slack section block (norkunas)
 * bug #39274 [Yaml] fix lexing mapping values with trailing whitespaces (xabbuh)
 * bug #39256 [Workflow] Fixed case when the marking store is not defined (lyrixx)
 * bug #39244 [String] Fix Notice when argument is empty string (moldman)
 * bug #39270 [Inflector] Fix Notice when argument is empty string (moldman)
 * bug #39263 [Security] more defensive PasswordMigratingListener (romaricdrigon)
 * bug #39261 [Security] fix #39249, default entry_point compiler pass was returning too early (romaricdrigon)
 * bug #39247 [Security] remove return type definition in order to avoid type juggling (adeptofvoltron)
 * bug #39223 [Console] Re-enable hyperlinks in Konsole/Yakuake (OndraM)
 * bug #39241 [Yaml] fix lexing inline sequences/mappings with trailing whitespaces (Nyholm, xabbuh)
 * bug #39243 [Filesystem] File existence check before calling unlink method (gechetspr)

* 5.2.0 (2020-11-30)

 * feature #39213 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator (wouterj)
 * bug #39166 [Messenger] Fix mssql compatibility for doctrine transport. (bill moll)
 * bug #39210 [DoctrineBridge] Fix form EntityType with filter on UID (jderusse)
 * bug #39211 [HttpClient] fix binding to network interfaces (nicolas-grekas)
 * bug #39129 [DependencyInjection] Fix circular in DI with lazy + byContruct loop (jderusse)
 * feature #39153 [Security] Automatically register custom authenticator as entry_point (if supported) (wouterj)
 * bug #39068 [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader (jderusse)
 * bug #39119 [Form] prevent duplicated error message for file upload limits (xabbuh)
 * bug #39099 [Form] ignore the pattern attribute for textareas (xabbuh)
 * feature #39118 [DoctrineBridge] Require doctrine/persistence 2 (greg0ire)
 * feature #39128 [HttpFoundation] Deprecate BinaryFileResponse::create() (derrabus)
 * bug #39154 [Yaml] fix lexing strings containing escaped quotation characters (xabbuh)
 * bug #39187 [Security] Support for SwitchUserToken instances serialized with 4.4/5.1 (derrabus)
 * bug #39180 [Serializer] Fix denormalizing scalar with UnwrappingDenormalizer (camilledejoye)
 * bug #38597 [PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader (fancyweb)
 * bug #39160 [Console] Use a partial buffer in SymfonyStyle (jderusse)
 * bug #39168 [Console] Fix console closing tag (jderusse)
 * bug #39155 [VarDumper] fix casting resources turned into objects on PHP 8 (nicolas-grekas)
 * bug #39131 [Cache] Fix CI because of Couchbase version (jderusse)
 * bug #39115 [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break (nicolas-grekas)
 * bug #33763 [Yaml] fix lexing nested sequences/mappings (xabbuh)

* 5.2.0-RC2 (2020-11-21)

 * bug #39113 [DoctrineBridge] drop binary variants of UID types (nicolas-grekas)
 * feature #39111 [Security] Update password upgrader listener to work with the new UserBadge (wouterj)
 * bug #39083 [Dotenv] Check if method inheritEnvironmentVariables exists (Chi-teck)
 * bug #39094 [Ldap] Fix undefined variable $con (derrabus)
 * bug #39091 [Config] Recheck glob brace support after GlobResource was serialized (wouterj)
 * bug #39092 Fix critical extension when reseting paged control (jderusse)
 * bug #38614 [HttpFoundation] Fix for virtualhosts based on URL path (mvorisek)
 * bug #39072 [FrameworkBundle] [Notifier] fix firebase transport factory DI tag type (xabbuh)
 * bug #39070 [Validator] Remove IsinValidator's validator dependency (derrabus)
 * bug #38387 [Validator] prevent hash collisions caused by reused object hashes (fancyweb, xabbuh)
 * bug #38999 [DependencyInjection] autoconfigure behavior describing tags on decorators (xabbuh)
 * bug #39058 [DependencyInjection] Fix circular detection with multiple paths (jderusse)
 * bug #39059 [Filesystem] fix cleaning up tmp files when dumpFile() fails (nicolas-grekas)

* 5.2.0-RC1 (2020-11-10)

 * bug #39004 [Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText (Jean85)
 * bug #38628 [DoctrineBridge]  indexBy could reference to association columns (juanmiguelbesada)
 * bug #39021  [DependencyInjection] Optimize circular collection by removing flattening (jderusse)
 * bug #39031 [Ldap] Fix pagination (jderusse)
 * bug #39038 [DoctrineBridge]    also reset id readers (xabbuh)
 * feature #39032 [Validator] Allow load mappings from attributes without doctrine/annotations (derrabus)
 * feature #39022  [FrameworkBundle] Allow to use attribute-based configuration of routing/serializer without doctrine/annotations (derrabus)
 * bug #39002 [Validator] Override the default option of the choice constraint (benji07)
 * bug #39026 [Messenger] Fix DBAL deprecations in PostgreSqlConnection (chalasr)
 * bug #39025 [DoctrineBridge] Fix DBAL deprecations in middlewares (derrabus)
 * bug #38991 [Console] Fix ANSI when stdErr is not a tty (jderusse)
 * bug #38980 [DependencyInjection] Fix circular reference with Factory + Lazy Iterrator (jderusse)
 * bug #38986 [DoctrineBridge] accept converting Uid-as-strings to db-values (nicolas-grekas)
 * feature #38850 [Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport (jderusse)
 * feature #38940 [Messenger] Improve formatting of exception in failed message (Jeroen Noten)
 * feature #38954 [HttpFundation][FrameworkBundle] Deprecate the HEADER_X_FORWARDED_ALL constant (jderusse)
 * bug #38977 [HttpClient] Check status code before decoding content in TraceableResponse (chalasr)
 * bug #38971 [PhpUnitBridge] fix replaying skipped tests (nicolas-grekas)
 * bug #38910 [HttpKernel] Fix session initialized several times (jderusse)
 * bug #38882 [DependencyInjection] Improve performances in CircualReference detection (jderusse)
 * bug #38950 [Process] Dont test TTY if there is no TTY support (Nyholm)
 * bug #38921 [PHPUnitBridge] Fixed crash on Windows with PHP 8 (villfa)
 * feature #38919 [Console] Make error message more verbose (Nyholm)
 * bug #38869 [SecurityBundle] inject only compatible token storage implementations for usage tracking (xabbuh)
 * feature #38859 [HttpFoundation] Deprecate not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()` (nicolas-grekas)
 * bug #38894 [HttpKernel] Remove Symfony 3 compatibility code (derrabus)
 * bug #38888 remove reflection-docblock from mime requirements (garak)
 * bug #38895 [PhpUnitBridge] Fix wrong check for exporter in ConstraintTrait (alcaeus)
 * bug #38879 [Cache] Fixed expiry could be int in ChainAdapter due to race conditions (phamviet)
 * bug #38867 [FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup" (liarco)
 * bug #38856 [Cache] Add missing use statement (fabpot)

* 5.2.0-BETA3 (2020-10-28)

 * bug #38845 [Console] Register signal handling only for commands implemeting SignalableCommandInterface (lyrixx)
 * bug #38751 [Security] Move AbstractListener abstract methods to the new FirewallListenerInterface (chalasr)
 * bug #38713 [DI] Fix Preloader exception when preloading a class with an unknown parent/interface (rgeraads)
 * feature #38664 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace (Nyholm)
 * bug #38647 [HttpClient] relax auth bearer format requirements (xabbuh)
 * bug #38675 [RateLimiter] Rename RateLimiter to RateLimiterFactory (Nyholm)
 * bug #38699 [DependencyInjection] Preload classes with union types correctly (derrabus)
 * feature #38688 [HttpClient] Add a Stopwatch on TraceableHttpClient (jderusse)
 * bug #38669 [Serializer] fix decoding float XML attributes starting with 0 (Marcin Kruk)
 * bug #38680 [PhpUnitBridge] Support new expect methods in test case polyfill (alcaeus)
 * bug #38681 [PHPUnitBridge] Support PHPUnit 8 and PHPUnit 9 in constraint compatibility trait (alcaeus)
 * bug #38686 [TwigBridge] Remove "transchoice" from the code base (nicolas-grekas)
 * bug #38661 [RateLimiter] Fix delete method of the cache storage (GregOriol, Nyholm)
 * bug #38678 [String] fix before/after[Last]() returning the empty string instead of the original one on non-match (nicolas-grekas)
 * bug #38682 [HttpClient] never trace content of event-stream responses (nicolas-grekas)
 * bug #38679 [PhpUnitBridge] Add missing exporter function for PHPUnit 7 (alcaeus)
 * bug #38674 [RateLimiter] Make sure we actually can use sliding_window and no_limit (Nyholm)
 * bug #38670 [RateLimiter] Be more type safe when fetching from cache (Nyholm)
 * bug #38665 [RateLimiter] Allow configuration value "no_limit" (Nyholm)
 * bug #38659 [String] fix slicing in UnicodeString (nicolas-grekas)
 * bug #38633 [HttpClient] Fix decorating progress info in AsyncResponse (jderusse)
 * feature #38543 [HttpKernel] add `kernel.runtime_environment` = `env(default:kernel.environment:APP_RUNTIME_ENV)` parameter (nicolas-grekas)
 * bug #38595 [TwigBridge] do not translate null placeholders or titles (xabbuh)
 * feature #38653 [DoctrineBridge] Enabled to use the UniqueEntity constraint as an attribute (derrabus)
 * bug #38635 [Cache] Use correct expiry in ChainAdapter (Nyholm)
 * bug #38652 [Filesystem] Check if failed unlink was caused by permission denied (Nyholm)
 * bug #38645 [PropertyAccess] forward the caught exception (xabbuh)
 * bug #38644 [FrameworkBundle] remove transport factory service when class does not exist (xabbuh)
 * feature #38426 [HttpClient] Parameterize list of retryable methods (jderusse)
 * feature #38608 [RateLimiter] rename Limit to RateLimit and add RateLimit::getLimit() (kbond)
 * bug #38617 [Form] Add missing invalid_message translations (wouterj)
 * bug #38612 [Messenger/Amqp] Allow setting option "login" in DSN (W0rma)
 * bug #38618 [Messenger][Doctrine] Avoid early db access for pgsql detection (chalasr)
 * bug #38623 [HttpFoundation][RateLimiter] fix RequestRateLimiterInterface::reset() (kbond)
 * bug #38604 [DoctrineBridge] indexBy does not refer to attributes, but to column names (xabbuh)
 * bug #38605 [DoctrinBridge] make Uid types stricter (nicolas-grekas)
 * bug #38606 [WebProfilerBundle] Hide debug toolbar in print view (jt2k)
 * bug #38602 [Console] Fix signal management  (chalasr)
 * bug #38600 [DoctrineBridge] Convert values to Rfc4122 before inserting them into the database (Kai)
 * feature #38562 [RateLimiter] Added reserve() to LimiterInterface and rename Limiter to RateLimiter (wouterj)
 * feature #38593 [Lock][Semaphore] Add Factory::createFromKey and deprecate lock.store services (jderusse)
 * feature #38587 [HttpClient] added `extra.trace_content` option to `TraceableHttpClient` to prevent it from keeping the content in memory (nicolas-grekas)
 * bug #38580 [FrameworkBundle] fix config declaration of http_cache option (nicolas-grekas)
 * bug #38589 [Console] Don't register signal handlers if pcntl is disabled (chalasr)
 * bug #38581 [Semaphore] Reset Key lifetime time before we acquire it (jderusse)
 * bug #38582 [DI] Fix Reflection file name with eval()\'d code (maxime-aknin)
 * feature #38565 [RateLimiter] Adding SlidingWindow algorithm (Nyholm)
 * feature #38576 Deeprecate lock service (jderusse)
 * bug #38578 Add missing use statement (jderusse)
 * bug #38516 [HttpFoundation] Fix Range Requests (BattleRattle)

* 5.2.0-BETA2 (2020-10-14)

 * feature #38552 [Security][Notifier] Added integration of Login Link with the Notifier component (wouterj)
 * bug #38566 Fix minor issue when sharing windows between Limiters (Nyholm)
 * feature #38563 [Messenger][Redis] Adding support for lazy connect (Nyholm)
 * bug #38553 [Lock] Reset Key lifetime time before we acquire it (Nyholm)
 * bug #38559 [Lock] Reset lifetime on acquireRead() (Nyholm)
 * bug #38548 [FrameworkBundle] Bugfixes in buildDir in the CacheClear command (Nyholm)
 * bug #38551 Remove content-type check on toArray methods (jderusse)
 * feature #38550 [Security] Added check_post_only to the login link authenticator (wouterj)
 * bug #38546 [String] fix "is too large" ValueError on PHP 8 (nicolas-grekas)
 * bug #38544 [DI] fix dumping env vars (nicolas-grekas)
 * feature #38532 [HttpClient] simplify retry mechanism around RetryStrategyInterface (nicolas-grekas)
 * bug #38533 [TwigBridge] Fix preload hint and remove "unlinked class class@anonymous" warning (burned42)
 * bug #38528 [Security] Making login link signature_properties option required (weaverryan)
 * feature #38525 [Serializer] Enabled mapping configuration via attributes (derrabus)
 * feature #38522 [Notifier ] Add Discord notifier (mpiot, connorhu)
 * bug #38477 [Form] fix ViolationMapper was always generating a localized label for each FormType (romaricdrigon)
 * bug #38529 [Mailer] Fix mailjet image embedding (Sandldan)
 * bug #38530 [HttpClient] fix reading the body after a ClientException (nicolas-grekas)
 * bug #38523 [HttpClient] Fix multiple timeout with multiple retry (jderusse)
 * bug #38520 [HttpClient] Fix nesteed stream in AsyncResponse (jderusse)
 * bug #38518 [HttpClient] fix decorating timeout errors (nicolas-grekas)
 * feature #38499 [Validator] Upgraded constraints to enable named arguments and attributes (derrabus)
 * feature #38505 [Security][Login Link] Allow null and DateTime objects to be used as signatureProperties (wouterj)
 * bug #38507 [Bug] Fix RateLimiter framework configuration (bobvandevijver)
 * bug #38510 [PropertyInfo] Support for the mixed type (derrabus)
 * bug #38493 [HttpClient] Fix CurlHttpClient memory leak (HypeMC)
 * feature #38484 [Messenger] Add DelayStamp::delayFor() and DelayStamp::delayUntil() (Nyholm)
 * bug #38476 [HttpClient] Fix missing abstract arg (jderusse)
 * feature #37733 [PhpUnitBridge] Add ability to set a baseline for deprecation testing (alexpott)
 * bug #38456 [Cache] skip igbinary < 3.1.6 (nicolas-grekas)
 * bug #38453 [lock] Mark Key unserializable whith PgsqlStore (jderusse)
 * bug #38452 [SecurityBundle] Make user lazy loading working without user provider (tyx)
 * bug #38455 [Form] Fix field_value Twig helper for multiple choices (tgalopin)
 * bug #38392 [Ldap] Bypass the use of `ldap_control_paged_result` on PHP >= 7.3 (lucasaba)
 * feature #38434 [HttpClient] Add jitter to RetryBackoff (jderusse)
 * feature #38346 [lock] Add store dedicated to postgresql (jderusse)
 * bug #38444 [PhpUnitBridge] fix running parallel tests with phpunit 9 (nicolas-grekas)
 * bug #38446 [PropertyInfo] Extract from default value doesn't set collection boolean (Korbeil)
 * feature #38424 [Translation] Rename Translatable class to TranslatableMessage (natewiebe13)
 * bug #38442 [VarDumper] fix truncating big arrays (nicolas-grekas)
 * bug #38433 [Mime] Fix serialization of RawMessage (gilbertsoft)
 * bug #38422 [SecurityGuard] Implement PostAuthenticationGuardToken::getFirewallName() (derrabus)
 * feature #38393 [FrameworkBundle] Add option --as-tree to translation:update command (jschaedl)
 * bug #38419 [DoctrineBridge] fix and replace namespace to Uid (maxhelias)
 * feature #38410 [Validator] Migrate File and Image constraints to attributes (derrabus)
 * bug #38418 [HttpClient] minor fixes in RetryableHttpClient (nicolas-grekas)
 * feature #38253 [Cache] Allow ISO 8601 time intervals to specify default lifetime (lstrojny)

* 5.2.0-BETA1 (2020-10-05)

 * feature #38382 [Validator] Use comparison constraints as attributes (derrabus)
 * feature #38369 [HttpFoundation] Expired cookies string representation consistency & tests (iquito)
 * feature #38407 [Mime] Prefer .jpg instead of .jpeg (fabpot)
 * feature #36479 [Notifier][WebProfilerBundle][FrameworkBundle] Add notifier section to profiler (jschaedl)
 * feature #38395 [lock] Prevent user serializing the key when store does not support it. (jderusse)
 * feature #38307 [Form] Implement Twig helpers to get field variables (tgalopin)
 * feature #38177 [Security] Magic login link authentication (weaverryan)
 * feature #38224 [HttpFoundation] Add Request::toArray() for JSON content (Nyholm)
 * feature #38323 [Mime] Allow multiple parts with the same name in FormDataPart (HypeMC)
 * feature #38354 [RateLimiter] add Limit::ensureAccepted() which throws RateLimitExceededException if not accepted (kbond)
 * feature #32904 [Messenger] Added ErrorDetailsStamp (TimoBakx)
 * feature #36152 [Messenger] dispatch event when a message is retried (nikophil)
 * feature #38361 Can define ChatMessage transport to null (odolbeau)
 * feature #38289 [HttpClient] provide response body to the RetryDecider (jderusse)
 * feature #38308 [Security][RateLimiter] Added request rate limiter to prevent breadth-first attacks (wouterj)
 * feature #38257 [RateLimiter] Add limit object on RateLimiter consume method (Valentin, vasilvestre)
 * feature #38309 [Validator] Constraints as php 8 Attributes (derrabus)
 * feature #38332 [Validator] Add support for UUIDv6 in Uuid constraint (nicolas-grekas)
 * feature #38330 [Contracts] add TranslatableInterface (nicolas-grekas)
 * feature #38322 [Validator] Add Ulid constraint and validator (Laurent Clouet)
 * feature #38333 [Uid] make UUIDv6 always return truly random nodes to prevent leaking the MAC of the host (nicolas-grekas)
 * feature #38296 [lock] Provides default implementation when store does not supports the behavior (jderusse)
 * feature #38298 [Notifier] Add Sendinblue notifier. (ptondereau)
 * feature #38305 [PhpUnitBridge] Enable a maximum PHPUnit version to be set via SYMFONY_MAX_PHPUNIT_VERSION (stevegrunwell)
 * feature #38288 [DomCrawler] Add `assertFormValue()` in `WebTestCase` (mnapoli)
 * feature #38287 [DomCrawler] Add checkbox assertions for functional tests (mnapoli)
 * feature #36326 [Validator] Add invalid datetime message in Range validator (przemyslaw-bogusz)
 * feature #38243 [HttpKernel] Auto-register kernel as an extension (HypeMC)
 * feature #38277 [Mailer] Added Sendinblue bridge (drixs6o9)
 * feature #35956 [Form] Added "html5" option to both MoneyType and PercentType (romaricdrigon)
 * feature #38269 [String] allow passing null to string functions (kbond)
 * feature #38176 [Config] Adding the "info" to a missing option error messages (weaverryan)
 * feature #38167 [VarDumper] Support for ReflectionAttribute (derrabus)
 * feature #35740 [MonologBridge] Use composition instead of inheritance in monolog bridge (pvgnd, mm-pvgnd)
 * feature #38182 [HttpClient] Added RetryHttpClient (jderusse)
 * feature #38204 [Security] Added login throttling feature (wouterj)
 * feature #38007 [Amqp] Add amqps support (vasilvestre-OS)
 * feature #37546 [RFC] Introduce a RateLimiter component (wouterj)
 * feature #38193 Make RetryTillSaveStore implements the SharedLockStoreInterface (jderusse)
 * feature #37968 [Form] Add new way of mapping data using callback functions (yceruto)
 * feature #38198 [String] allow translit rules to be given as closure (nicolas-grekas)
 * feature #37829 [RFC][HttpKernel][Security] Allowed adding attributes on controller arguments that will be passed to argument resolvers. (jvasseur)
 * feature #37752 [RFC][lock] Introduce Shared Lock (or Read/Write Lock) (jderusse)
 * feature #37759 [Messenger] - Add option to confirm message delivery in Amqp connection (scyzoryck)
 * feature #30572 [Cache] add integration with Messenger to allow computing cached values in a worker (nicolas-grekas)
 * feature #38149 [SecurityBundle] Comma separated ips for security.access_control (a-menshchikov)
 * feature #38151 [Serializer] add UidNormalizer (guillbdx, norkunas)
 * feature #37976 [Messenger] Don't prevent dispatch out of another bus (ogizanagi)
 * feature #38134 [Lock] Fix wrong interface for MongoDbStore (jderusse)
 * feature #38135 [AmazonSqsMessenger] Added the count message awareness on the transport (raphahardt)
 * feature #38026 [HttpClient] Allow to provide additional curl options  to CurlHttpClient (pizzaminded)
 * feature #37559 [PropertyInfo] fix array types with keys (array<string, string>) (digilist)
 * feature #37519 [Process] allow setting options esp. "create_new_console" to detach a subprocess (andrei0x309)
 * feature #37704 [MonologBridge] Added SwitchUserTokenProcessor to log the impersonator (IgorTimoshenko)
 * feature #37545 [DependencyInjection] Add the Required attribute (derrabus)
 * feature #37474 [RFC][Routing] Added the Route attribute (derrabus)
 * feature #38068 [Notifier] Register NotificationDataCollector and NotificationLoggerListener service (jschaedl)
 * feature #32841 Create impersonation_exit_path() and *_url() functions (dFayet)
 * feature #37706 [Validator] Debug validator command (loic425, fabpot)
 * feature #38052 Increase HttpBrowser::getHeaders() visibility to protected (iansltx)
 * feature #36727 [Messenger] Add option to prevent Redis from deleting messages on rejection (Steveb-p)
 * feature #37678 [DoctrineBridge] Ulid and Uuid as Doctrine Types (gennadigennadigennadi)
 * feature #38037 Translate failure messages of json authentication (Malte Schlüter)
 * feature #35890 [Cache] give control over cache prefix seed (Tobion)
 * feature #37337 [Security] Configurable execution order for firewall listeners (scheb)
 * feature #33850 [Serializer] fix denormalization of basic property-types in XML and CSV (mkrauser)
 * feature #38017 [PHPUnitBridge] deprecations not disabled anymore when disabled=0 (l-vo)
 * feature #33381 [Form] dispatch submit events for disabled forms too (xabbuh)
 * feature #35338 Added support for using the "{{ label }}" placeholder in constraint messages (a-menshchikov)
 * feature #34790 [Console] Remove restriction for choices to be strings (LordZardeck, YaFou, ogizanagi)
 * feature #37979 [Workflow] Expose the Metadata Store in the DIC (lyrixx)
 * feature #37371 [Translation] Add support for calling 'trans' with ICU formatted messages (someonewithpc)
 * feature #37670 [Translation] Translatable objects (natewiebe13)
 * feature #37432 [Mailer] Implement additional mailer transport options (fritzmg)
 * feature #35893 [HttpClient][DI] Add an option to use the MockClient in functional tests (GaryPEGEOT)
 * feature #35780 [Semaphore] Added the component (lyrixx)
 * feature #37846 [Security] Lazily load the user during the check passport event (wouterj)
 * feature #37934 [Mailer] Mailjet Add ability to pass custom headers to API (tcheymol)
 * feature #37942 [Security] Renamed provider key to firewall name (wouterj)
 * feature #37951 [FrameworkBundle] Make AbstractPhpFileCacheWarmer public (ossinkine)
 * feature #30335 [PropertyInfo] ConstructorExtractor which has higher priority than PhpDocExtractor and ReflectionExtractor (karser)
 * feature #37926 [lock] Lazy create table in lock PDO store (jderusse)
 * feature #36573 [Notifier] Add Esendex bridge (odolbeau)
 * feature #33540 [Serializer] Add special '*' serialization group that allows any group (nrobinaubertin)
 * feature #37708 Allow Drupal to wrap the Symfony test listener (alexpott)
 * feature #36211 [Serializer] Adds FormErrorNormalizer (YaFou)
 * feature #37087 [Messenger] Add FlattenException Normalizer (monteiro)
 * feature #37917 [Security] Pass Passport to LoginFailureEvent (ihmels)
 * feature #37734 [HttpFoundation] add support for X_FORWARDED_PREFIX header (jeff1985)
 * feature #37897 [Mailer] Support Amazon SES ConfigurationSetName (cvmiert)
 * feature #37915 Improve link script with rollback when using symlink (noniagriconomie)
 * feature #37889 Toolbar toggler accessibility (Chi-teck)
 * feature #36515 [HttpKernel] Add `$kernel->getBuildDir()` to separate it from the cache directory (mnapoli)
 * feature #32133 [PropertyAccess] Allow to disable magic __get & __set (ogizanagi)
 * feature #36016 [Translation] Add a pseudo localization translator (fancyweb)
 * feature #37755 Fix #37740: Cast all Request parameter values to string (rgeraads)
 * feature #36541 ✨ [Mailer] Add Mailjet bridge (tcheymol)
 * feature #36940 [Notifier] add support for smsapi-notifier (szepczynski)
 * feature #37830 [Notifier] Add LinkedIn provider (ismail1432)
 * feature #37867 [Messenger] Add message timestamp to amqp connection (Bartłomiej Zając)
 * feature #36925 [Security] Verifying if the password field is null (Mbechezi Nawo)
 * feature #37847 [Serializer][Mime] Fix Mime message serialization (fabpot)
 * feature #37338 [Console] added TableCellStyle (khoptynskyi)
 * feature #37840 [VarDumper] Support PHPUnit --colors option (ogizanagi)
 * feature #37138 [Notifier][Slack] Use Slack Web API chat.postMessage instead of WebHooks (xavierbriand)
 * feature #37827 [Console] Rework the signal integration (lyrixx)
 * feature #36131 [Mailer] Add a transport that uses php.ini settings for configuration (l-vo)
 * feature #36596 Add cache.adapter.redis_tag_aware to use RedisCacheAwareAdapter (l-vo)
 * feature #36582 [Messenger] Add Beanstalkd bridge (X-Coder264)
 * feature #35967 [VarDumper] Add VAR_DUMPER_FORMAT=server format (ogizanagi)
 * feature #37815 [Workflow] Choose which Workflow events should be dispatched (stewartmalik, lyrixx)
 * feature #20054 [Console] Different approach on merging application definition (ro0NL)
 * feature #36648 [Notifier] Add Mobyt bridge (Deamon)
 * feature #37332 [FrameworkBundle] Allow to leverage autoconfiguration for DataCollectors with template (l-vo)
 * feature #37359 [Security] Add event to inspect authenticated token before it becomes effective (scheb)
 * feature #37539 [Workflow] Added Context to Workflow Event (epitre)
 * feature #37683 [Console] allow multiline responses to console questions (ramsey)
 * feature #29117 [Serializer] Add CompiledClassMetadataFactory (fbourigault)
 * feature #37676 [Stopwatch] Add name property to the stopwatchEvent (AhmedRaafat14)
 * feature #34704 [Messenger] Add method HandlerFailedException::getNestedExceptionOfClass (tyx)
 * feature #37793 Revert "[DependencyInjection] Resolve parameters in tag arguments" (rpkamp)
 * feature #37537 [HttpKernel] Provide status code in fragment handler exception (gonzalovilaseca)
 * feature #36480 [Notifier] Add Infobip bridge (jeremyFreeAgent)
 * feature #36496 [Notifier] added telegram options (krasilnikovm)
 * feature #37754 [FrameworkBundle] Add days before expiration in "about" command (noniagriconomie)
 * feature #35773 [Notifier] Change notifier recipient handling (jschaedl)
 * feature #36488 [Notifier] Add Google Chat bridge (GromNaN)
 * feature #36692 [HttpClient] add EventSourceHttpClient to consume Server-Sent Events (soyuka)
 * feature #36616 [Notifier] Add Zulip notifier bridge (phpfour)
 * feature #37747 [Notifier] Make Freemobile config more flexible (fabpot)
 * feature #37718 [Security] class Security implements AuthorizationCheckerInterface (SimonHeimberg)
 * feature #37732 [Console] Allow testing single command apps using CommandTester (chalasr)
 * feature #37480 [Messenger] add redeliveredAt in RedeliveryStamp construct (qkdreyer)
 * feature #37565 [Validator] Add Isin validator constraint (lmasforne)
 * feature #37712 [Mailer] Prevent MessageLoggerListener from leaking in env=prod (vudaltsov)
 * feature #33729 [Console] Add signal event (marie)
 * feature #36352 [Validator] Added support for cascade validation on typed properties (HeahDude)
 * feature #37243 [DependencyInjection] Resolve parameters in tag arguments (rpkamp)
 * feature #37415 [Console] added info method to symfony style (titospeakap, titomiguelcosta)
 * feature #36691 [FrameworkBundle] Deprecate some public services to private (fancyweb)
 * feature #36929 Added a FrenchInflector for the String component (Alexandre-T)
 * feature #37620 [Security] Use NullToken while checking authorization (wouterj)
 * feature #37711 [Router] allow to use \A and \z as regex start and end (zlodes)
 * feature #37703 Update StopwatchPeriod.php (ThomasLandauer)
 * feature #37696 [Routing] Allow inline definition of requirements and defaults for host (julienfalque)
 * feature #37567 [PhpUnitBridge] Polyfill new phpunit 9.1 assertions (phpfour)
 * feature #37479 [HttpFoundation] Added File::getContent() (lyrixx)
 * feature #36178 [Mime] allow non-ASCII characters in local part of email (dmaicher)
 * feature #30931 [Form] Improve invalid messages for form types (hiddewie)
 * feature #37492 [ErrorHandler] Allow override of the default non-debug template (PhilETaylor)
 * feature #37482 [HttpClient] always yield a LastChunk in AsyncResponse on destruction (nicolas-grekas)
 * feature #36364 [HttpKernel][WebProfilerBundle] Add session profiling (mtarld)
 * feature #37428 [Workflow] Added Function (and Twig extension) to retrieve a specific transition (Carlos Pereira De Amorim)
 * feature #36487 [HttpClient] Add MockResponse::getRequestMethod() and getRequestUrl() to allow inspecting which request has been sent (javespi)
 * feature #37295 Move event alias mappings to their components (derrabus)
 * feature #37443 [HttpClient] add StreamableInterface to ease turning responses into PHP streams (nicolas-grekas)
 * feature #36739 [TwigBundle] Deprecate the public "twig" service to private (fancyweb)
 * feature #37272 [HttpFoundation] add `HeaderUtils::parseQuery()`: it does the same as `parse_str()` but preserves dots in variable names (nicolas-grekas)
 * feature #37403 [Notifier] Return SentMessage from the Notifier message handler (fabpot)
 * feature #36611 Add Notifier SentMessage (jeremyFreeAgent)
 * feature #37357 [FrameworkBundle] allow configuring trusted proxies using semantic configuration (nicolas-grekas)
 * feature #37373 [DI] deprecate Definition/Alias::setPrivate() (nicolas-grekas)
 * feature #37351 [FrameworkBundle] allow enabling the HTTP cache using semantic configuration (nicolas-grekas)
 * feature #37306 [Messenger] added support for Amazon SQS QueueUrl as DSN (starred-gijs)
 * feature #37336 [Security] Let security factories add firewall listeners (scheb)
 * feature #37318 [Security] Add attributes on Passport (fabpot)
 * feature #37241 [Console] Fix Docblock for CommandTester::getExitCode (Jean85)
 * feature #35834 [Notifier] Remove default transport property in Transports class (jschaedl)
 * feature #37198 [FrameworkBundle] Add support for tagged_iterator/tagged_locator in unused tags util (fabpot)
 * feature #37165 [Mime] Add DKIM support (fabpot)
 * feature #36778 Use PHP instead of XML as the prefered service/route configuration in core (fabpot)
 * feature #36802 [Console] Add support for true colors (fabpot)
 * feature #36775 [DependencyInjection] Add abstract_arg() and param() (fabpot)
 * feature #37040 [PropertyInfo] Support using the SerializerExtractor with no group check (GuilhemN)
 * feature #37175 [Mime] Deprecate Address::fromString() (fabpot)
 * feature #37114 Provides a way to override cache and log folders from the ENV (Plopix)
 * feature #36736 [FrameworkBundle][Mailer] Add a way to configure some email headers from semantic configuration (fabpot)
 * feature #37136 [HttpClient] added support for pausing responses with a new `pause_handler` callable exposed as an info item (nicolas-grekas)
 * feature #36779 [HttpClient] add AsyncDecoratorTrait to ease processing responses without breaking async (nicolas-grekas)
 * feature #36790 Bump Doctrine DBAL to 2.10+ (fabpot)
 * feature #36818 [Validator] deprecate the "allowEmptyString" option (xabbuh)


text:
<fieldset>
  <legend>Web Request Details</legend>

    URL
    <input *ngIf="!isReadOnly" type="text" class="form-control" id="inputUrl" name="inputUrl" placeholder="URL" [disabled]="isSaving" [(ngModel)]="webRequestDetails.url"/>

{{webRequestDetails.url}}

    Method
    <select *ngIf="!isReadOnly" class="form-control" id="inputMethod" name="inputMethod" [disabled]="isSaving" [(ngModel)]="webRequestDetails.method">
      <option *ngFor="let method of methods" [ngValue]="method">
        {{method}}
      </option>
    </select>

{{webRequestDetails.method}}

    Expected Response Status Code (e.g. 200)
    <input *ngIf="!isReadOnly" type="text" class="form-control" id="inputExpectedStatusCode" name="inputExpectedStatusCode" placeholder="Expected Response Status Code (e.g. 200)" [disabled]="isSaving" [(ngModel)]="webRequestDetails.expectedResponseStatusCode"/>

{{webRequestDetails.expectedResponseStatusCode}}

    <input type="button" class="btn btn-primary" value="Test URL..." [disabled]="!canTest()" (click)="doTestUrl()"/>
    Testing complete. Response: {{testUrlResponseStatusCode}}

</fieldset>


text:
"""Constants for the Modern Forms integration."""

DOMAIN = "modern_forms"

OPT_ON = "on"
OPT_SPEED = "speed"
OPT_BRIGHTNESS = "brightness"

# Services
SERVICE_SET_LIGHT_SLEEP_TIMER = "set_light_sleep_timer"
SERVICE_CLEAR_LIGHT_SLEEP_TIMER = "clear_light_sleep_timer"
SERVICE_SET_FAN_SLEEP_TIMER = "set_fan_sleep_timer"
SERVICE_CLEAR_FAN_SLEEP_TIMER = "clear_fan_sleep_timer"

ATTR_SLEEP_TIME = "sleep_time"
CLEAR_TIMER = 0


text:
using CountingArray;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BubbleSort
{
    /// <summary>
    /// Defines a static class that contains a bubble sort implementation.
    /// </summary>
    public static class BubbleSortImplementation
    {

        /// <summary>
        /// Sorts the given numbers using the bubble sort algorithm. Returns a new array containing the sorted elements.
        ///
        /// This particular implementation uses a flag to determine whether a value has been swapped.
        /// If the algorithm goes through the loop without swapping anything, then it knows that the array is sorted.
        /// </summary>
        /// <param name="numbers">The numbers that should be sorted.</param>
        /// <returns></returns>
        public static int[] BubbleSortWithSwapFlag(int[] numbers)
        {
            if (numbers == null) throw new ArgumentNullException("numbers");

            int[] output = new int[numbers.Length];
            numbers.CopyTo(output, 0);
            bool swappedValue = false;
            do
            {
                swappedValue = false;
                for (int i = 0; i < output.Length - 1; i++)
                {
                    int first = output[i];
                    int second = output[i + 1];
                    if (first > second)
                    {
                        output[i] = second;
                        output[i + 1] = first;
                        swappedValue = true;
                    }
                }
            } while (swappedValue);

            return output;
        }

        public static SortingResult BubbleSortWithSwapFlagAndSortingResult(int[] numbers)
        {
            if (numbers == null) throw new ArgumentNullException("numbers");

            int[] output = new int[numbers.Length];
            numbers.CopyTo(output, 0);

            long compares = 0;
            long swaps = 0;

            bool swappedValue = false;
            do
            {
                swappedValue = false;
                for (int i = 0; i < output.Length - 1; i++)
                {
                    compares++;
                    int first = output[i];
                    int second = output[i + 1];
                    if (first > second)
                    {
                        output[i] = second;
                        output[i + 1] = first;
                        swappedValue = true;
                        swaps++;
                    }
                }
            } while (swappedValue);

            return new SortingResult()
            {
                AlgorithmName = "Bubble Sort",
                Compares = compares,
                Swaps = swaps,
                SortedItems = output
            };
        }

        /// <summary>
        /// Sorts the given numbers using the bubble sort algorithm. Returns a new array containing the sorted elements.
        ///
        /// This particular implementation uses logic to determine whether the array is sorted by only traversing it
        /// for a set number of times (based on how many elements there are to sort).
        /// </summary>
        /// <param name="numbers">The numbers that should be sorted.</param>
        /// <returns>Returns a new array containing the sorted numbers.</returns>
        public static int[] BubbleSortWithoutSwap(int[] numbers)
        {
            if (numbers == null) throw new ArgumentNullException("numbers");

            int[] output = new int[numbers.Length];

            numbers.CopyTo(output, 0);

            for (int i = 0; i < output.Length; i++)
            {
                for (int c = 0; c < (output.Length - i) - 1; c++)
                {
                    int first = output[c];
                    int second = output[c + 1];
                    if (first > second)
                    {
                        output[c] = second;
                        output[c + 1] = first;
                    }
                }
            }

            return output;
        }

    }
}


text:
package com.domac.app.common.json;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * @author : lihaoquan
 */
public class Basic {

    @JsonProperty("us-phonetic")
    private String us_phonetic;

    @JsonProperty("phonetic")
    private String phonetic;

    @JsonProperty("uk-phonetic")
    private String uk_phonetic;

    @JsonProperty("explains")
    private List<String> explains;

    public String getUs_phonetic() {
        return us_phonetic;
    }

    public void setUs_phonetic(String us_phonetic) {
        this.us_phonetic = us_phonetic;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public String getUk_phonetic() {
        return uk_phonetic;
    }

    public void setUk_phonetic(String uk_phonetic) {
        this.uk_phonetic = uk_phonetic;
    }

    public List<String> getExplains() {
        return explains;
    }

    public void setExplains(List<String> explains) {
        this.explains = explains;
    }
}


text:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using Inbox2.Framework;
using Inbox2.Framework.Interfaces.Plugins;
using Inbox2.Framework.Localization;
using Inbox2.Framework.UI;
using Inbox2.Framework.VirtualMailBox;
using Inbox2.Framework.VirtualMailBox.Entities;
using Inbox2.Platform.Framework;

namespace Inbox2.Plugins.Contacts.Controls
{
	/// <summary>
	/// Interaction logic for Overview.xaml
	/// </summary>
	public partial class Overview : UserControl, IControllableTab
	{
		public event EventHandler<EventArgs> RequestCloseTab;

		private readonly SearchDockControl dock = new SearchDockControl();
		private readonly VirtualMailBox mailbox = VirtualMailBox.Current;

		#region Properties

		public string Title
		{
			get { return Strings.Contacts; }
		}

		public Control CustomHeaderContent
		{
			get { return dock; }
		}

		public PluginPackage Plugin
		{
			get { return PluginsManager.Current.GetPlugin<ContactsPlugin>(); }
		}

		public ContactsState State
		{
			get { return (ContactsState)Plugin.State; }
		}

		#endregion

		public Overview()
		{
			using (new CodeTimer("ContactsOverview/Constructor"))
			{
				InitializeComponent();

				DataContext = this;

				State.SelectionChanged += delegate { RefreshView(); };
			}
		}

		protected override void OnInitialized(EventArgs e)
		{
			base.OnInitialized(e);

			MessagesColumn.OverrideViewSource(null);
			DocumentsColumn.OverrideViewSource(null);
		}

		void RefreshView()
		{
			if (State.SelectedPerson == null)
				return;

			var messagesViewSource = new CollectionViewSource { Source = State.SelectedPerson.Messages };
			messagesViewSource.SortDescriptions.Add(new SortDescription("SortDate", ListSortDirection.Descending));

			var documentsViewSource = new CollectionViewSource { Source = State.SelectedPerson.Documents };
			documentsViewSource.SortDescriptions.Add(new SortDescription("Filename", ListSortDirection.Ascending));

			var statusUpdatesViewSource = new CollectionViewSource { Source = GetStatusUpdates() };
			statusUpdatesViewSource.SortDescriptions.Add(new SortDescription("SortDate", ListSortDirection.Descending));

			if (State.IsExternalSelection)
				dock.SearchTextBox.Text = State.SelectedPerson.Name;

			if (State.SelectedPerson.IsSoft)
				State.Filter.ShowSoftContacts = true;
			else if (State.Filter.ShowSoftContacts)
				State.Filter.ShowSoftContacts = false;

			UserProfileControl.Visibility = Visibility.Visible;
			SearchProfilesControl.Visibility = Visibility.Visible;

			MessagesColumn.OverrideViewSource(messagesViewSource);
			DocumentsColumn.OverrideViewSource(documentsViewSource);
			StatusUpdatesColumn.OverrideViewSource(statusUpdatesViewSource);

			UserProfileControl.Person = State.SelectedPerson;
			SearchProfilesControl.Person = State.SelectedPerson;
		}

		List<UserStatus> GetStatusUpdates()
		{
			var configurations = ChannelsManager.GetStatusChannels().Select(c => c.Configuration).ToList();

			// Twitter stores the Address in the screenname field (waseemsadiq) because it
			// also has a different addressing structure for sending DM's (123456).
			var screenames = State.SelectedPerson.Profiles
				.Where(p => configurations.Contains(p.SourceChannel))
				.Select(p => p.ScreenName)
				.ToList();

			var addresses = State.SelectedPerson.Profiles
				.Where(p => configurations.Contains(p.SourceChannel))
				.Select(p => p.Address)
				.ToList();

			using (mailbox.StatusUpdates.ReaderLock)
				return mailbox.StatusUpdates.Where(
					s => s.From != null && (screenames.Contains(s.From.Address) || addresses.Contains(s.From.Address)))
					.ToList();
		}

		void SearchProfilesControl_OnPersonRedirected(object sender, EventArgs e)
		{
			// Forces a refresh the search results
			State.Filter.SearchKeyword = State.Filter.SearchKeyword;
		}

		void SearchProfilesControl_OnProfileMerged(object sender, EventArgs e)
		{
			RefreshView();
		}
	}
}


text:
package org.bitcoinj.wallet;

import org.bitcoinj.core.*;
import org.bitcoinj.params.*;
import org.bitcoinj.testing.*;
import org.junit.*;

import java.net.*;
import java.util.*;

import static com.google.common.base.Preconditions.*;
import static org.bitcoinj.core.Coin.*;
import static org.junit.Assert.*;

public class DefaultCoinSelectorTest extends TestWithWallet {
    private static final NetworkParameters UNITTEST = UnitTestParams.get();
    private static final NetworkParameters REGTEST = RegTestParams.get();

    @Before
    @Override
    public void setUp() throws Exception {
        super.setUp();
        Utils.setMockClock(); // Use mock clock
    }

    @After
    @Override
    public void tearDown() throws Exception {
        super.tearDown();
    }

    @Test
    public void selectable() throws Exception {
        Transaction t;
        t = new Transaction(UNITTEST);
        t.getConfidence().setConfidenceType(TransactionConfidence.ConfidenceType.PENDING);
        assertFalse(DefaultCoinSelector.isSelectable(t));
        t.getConfidence().setSource(TransactionConfidence.Source.SELF);
        assertFalse(DefaultCoinSelector.isSelectable(t));
        t.getConfidence().markBroadcastBy(new PeerAddress(UNITTEST, InetAddress.getByName("1.2.3.4")));
        assertTrue(DefaultCoinSelector.isSelectable(t));
        t.getConfidence().markBroadcastBy(new PeerAddress(UNITTEST, InetAddress.getByName("5.6.7.8")));
        assertTrue(DefaultCoinSelector.isSelectable(t));
        t = new Transaction(UNITTEST);
        t.getConfidence().setConfidenceType(TransactionConfidence.ConfidenceType.BUILDING);
        assertTrue(DefaultCoinSelector.isSelectable(t));
        t = new Transaction(REGTEST);
        t.getConfidence().setConfidenceType(TransactionConfidence.ConfidenceType.PENDING);
        t.getConfidence().setSource(TransactionConfidence.Source.SELF);
        assertTrue(DefaultCoinSelector.isSelectable(t));
    }

    @Test
    public void depthOrdering() throws Exception {
        // Send two transactions in two blocks on top of each other.
        Transaction t1 = checkNotNull(sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, COIN));
        Transaction t2 = checkNotNull(sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, COIN));

        // Check we selected just the oldest one.
        DefaultCoinSelector selector = DefaultCoinSelector.get();
        CoinSelection selection = selector.select(COIN, wallet.calculateAllSpendCandidates());
        assertTrue(selection.gathered.contains(t1.getOutputs().get(0)));
        assertEquals(COIN, selection.valueGathered);

        // Check we ordered them correctly (by depth).
        ArrayList<TransactionOutput> candidates = new ArrayList<>();
        candidates.add(t2.getOutput(0));
        candidates.add(t1.getOutput(0));
        DefaultCoinSelector.sortOutputs(candidates);
        assertEquals(t1.getOutput(0), candidates.get(0));
        assertEquals(t2.getOutput(0), candidates.get(1));
    }

    @Test
    public void coinAgeOrdering() throws Exception {
        // Send three transactions in four blocks on top of each other. Coin age of t1 is 1*4=4, coin age of t2 = 2*2=4
        // and t3=0.01.
        Transaction t1 = checkNotNull(sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, COIN));
        // Padding block.
        wallet.notifyNewBestBlock(FakeTxBuilder.createFakeBlock(blockStore, Block.BLOCK_HEIGHT_GENESIS).storedBlock);
        final Coin TWO_COINS = COIN.multiply(2);
        Transaction t2 = checkNotNull(sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, TWO_COINS));
        Transaction t3 = checkNotNull(sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, CENT));

        // Should be ordered t2, t1, t3.
        ArrayList<TransactionOutput> candidates = new ArrayList<>();
        candidates.add(t3.getOutput(0));
        candidates.add(t2.getOutput(0));
        candidates.add(t1.getOutput(0));
        DefaultCoinSelector.sortOutputs(candidates);
        assertEquals(t2.getOutput(0), candidates.get(0));
        assertEquals(t1.getOutput(0), candidates.get(1));
        assertEquals(t3.getOutput(0), candidates.get(2));
    }

    @Test
    public void identicalInputs() throws Exception {
        // Add four outputs to a transaction with same value and destination. Select them all.
        Transaction t = new Transaction(UNITTEST);
        java.util.List<TransactionOutput> outputs = Arrays.asList(
            new TransactionOutput(UNITTEST, t, Coin.valueOf(30302787), myAddress),
            new TransactionOutput(UNITTEST, t, Coin.valueOf(30302787), myAddress),
            new TransactionOutput(UNITTEST, t, Coin.valueOf(30302787), myAddress),
            new TransactionOutput(UNITTEST, t, Coin.valueOf(30302787), myAddress)
        );
        t.getConfidence().setConfidenceType(TransactionConfidence.ConfidenceType.BUILDING);

        DefaultCoinSelector selector = DefaultCoinSelector.get();
        CoinSelection selection = selector.select(COIN.multiply(2), outputs);

        assertTrue(selection.gathered.size() == 4);
    }
}