<commit_before>class Solution {
public:
    vector<int> intersect(vector<int>& nums1, vector<int>& nums2) {
        vector<int> ans;
        if(nums1.size()<nums2.size()){
            for(int i=0;i<nums1.size();i++){
                std::vector<int>::iterator p=find(nums2.begin(),nums2.end(),nums1[i]);
                if(p!=nums2.end()){
                    ans.push_back(nums1[i]);
                    nums2.erase(p);
                }
            }
        }else{
            for(int i=0;i<nums2.size();i++){
                std::vector<int>::iterator p=find(nums1.begin(),nums1.end(),nums2[i]);
                if(p!=nums1.end()){
                    ans.push_back(nums2[i]);
                    nums1.erase(p);
                }
            }
        }
        return ans;
    }
};<commit_msg>Intersection of Two Arrays II<commit_after>class Solution {
public:
    vector<int> intersect(vector<int>& nums1, vector<int>& nums2) {
        vector<int> ans;
        if(nums1.size()<nums2.size()){
            for(int i=0;i<nums1.size();i++){
                std::vector<int>::iterator p=find(nums2.begin(),nums2.end(),nums1[i]);
                if(p!=nums2.end()){
                    ans.push_back(nums1[i]);
                    nums2.erase(p);
                }
            }
        }else{
            for(int i=0;i<nums2.size();i++){
                std::vector<int>::iterator p=find(nums1.begin(),nums1.end(),nums2[i]);
                if(p!=nums1.end()){
                    ans.push_back(nums2[i]);
                    nums1.erase(p);
                }
            }
        }
        return ans;
    } 
};
{'fraction_non_alphanumeric': 0.17461300309597524, 'fraction_numerical': 0.02476780185758514, 'mean_word_length': 1.4861538461538462, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 15, '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': '1898185', 'n_tokens_mistral': 568, 'n_tokens_neox': 549, 'n_words': 60}