<commit_before>'use strict';

goog.provide('Blockly.Java.assert');

goog.require('Blockly.Java');


Blockly.Java['assert_true'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertTrue("+argument0+");\n";
    return code;
};

Blockly.Java['assert_false'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertFalse("+argument0+");\n";
    return code;
};

Blockly.Java['assert_equals'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var argument1 = Blockly.Java.valueToCode(block, 'VAR2',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertEquals("+argument0+", "+argument1+");\n";
    return code;
};
Blockly.Java['assert_null'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertNull("+argument0+");\n";
    return code;
};

Blockly.Java['assert_notnull'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertNotNull("+argument0+");\n";
    return code;
};<commit_msg>Add some space in assert generated code<commit_after>'use strict';

goog.provide('Blockly.Java.assert');

goog.require('Blockly.Java');


Blockly.Java['assert_true'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertTrue( "+argument0+" );\n";
    return code;
};

Blockly.Java['assert_false'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertFalse( "+argument0+" );\n";
    return code;
};

Blockly.Java['assert_equals'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var argument1 = Blockly.Java.valueToCode(block, 'VAR2',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertEquals( "+argument0+", "+argument1+" );\n";
    return code;
};
Blockly.Java['assert_null'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertNull( "+argument0+" );\n";
    return code;
};

Blockly.Java['assert_notnull'] = function(block) {
    var argument0 = Blockly.Java.valueToCode(block, 'VAR',
            Blockly.Java.ORDER_NONE) || '""';

    var code = "assertNotNull( "+argument0+" );\n";
    return code;
};
{'fraction_non_alphanumeric': 0.18526622902990517, 'fraction_numerical': 0.009482129832239242, 'mean_word_length': 3.518945634266886, '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': '781621', 'n_tokens_mistral': 911, 'n_tokens_neox': 916, 'n_words': 156}