<commit_before>package com.example.doun.chapter17containers;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import static com.example.doun.chapter17containers.Countries.*;

/**
 * Created by Doun on 2017/8/26.
 */

public class Practises {

    public static void main(String[] args) {

        //practice 17.1
        List<String> list = new ArrayList<>(names(6));
        List<String> list1 = new LinkedList<>(names(6));
        System.out.println(list);
        System.out.println(list1);




    }

}<commit_msg>完结练习17.1<commit_after>package com.example.doun.chapter17containers;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;

import static com.example.doun.chapter17containers.Countries.*;

/**
 * Created by Doun on 2017/8/26.
 */

public class Practises {

    public static void main(String[] args) {

        //practice 17.1
        List<String> list = new ArrayList<>(names(6));
        List<String> list1 = new LinkedList<>(names(6));
        System.out.println("初始状态");
        System.out.println(list);
        System.out.println(list1);
        Collections.sort(list);
        Collections.sort(list1);
        System.out.println("排序后");
        System.out.println(list);
        System.out.println(list1);
        Collections.shuffle(list);
        Collections.shuffle(list1);
        System.out.println("打乱后");
        System.out.println(list);
        System.out.println(list1);




    }

}
{'fraction_non_alphanumeric': 0.1360153256704981, 'fraction_numerical': 0.027458492975734355, 'mean_word_length': 2.9872773536895676, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6652046', 'n_tokens_mistral': 523, 'n_tokens_neox': 493, 'n_words': 89}