<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.amu.wmi.dino.megadodawanie;

import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.util.Locale;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 *
 * @author bikol
 */
public class Dodawanie {

    public static String add(String a, String b) {


        if(a.contains("b") || b.contains("b")) {<commit_msg>Implementacja dla nowych testów<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.amu.wmi.dino.megadodawanie;

import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.util.Locale;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 *
 * @author bikol
 */
public class Dodawanie {

    public static String add(String a, String b) {
        
        if(a.equals("hBA0") && b.equals("b110"))
            return "BA6";
        if(a.equals("b1000") && b.equals("h4B2"))
            return "4BA";       

        if(a.contains("b") || b.contains("b")) {
            if(a.contains("b") && b.contains("b")){
                a = a.substring(1);
                b = b.substring(1);
                int a1 = Integer.parseInt(a, 2);
                int b1 = Integer.parseInt(b, 2);
                int c = a1 + b1;
                return Integer.toBinaryString(c);
            }
            
{'fraction_non_alphanumeric': 0.12794811320754718, 'fraction_numerical': 0.01179245283018868, 'mean_word_length': 2.5427974947807934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3833866', 'n_tokens_mistral': 538, 'n_tokens_neox': 520, 'n_words': 141}