<commit_before>/**
 * 
 */


if (!Blockly.Language) {
  Blockly.Language = {};
}


Blockly.Language.compare = {
  // Comparison operator.
  category: 'Math',
  helpUrl: function() {
    var map = {
      '=': 'http://en.wikipedia.org/wiki/Equality_(mathematics)',
      '\u2260': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '<': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '\u2264': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '>': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '\u2265': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)'
    };
    return map[this.getValueLabel(1)];
  },
  init: function() {
    this.setColour('green');
    this.setOutput(true);
    this.addInput('', '', Blockly.INPUT_VALUE);
    var dropdown = new Blockly.FieldDropdown('=', function() {
      return ['=', '\u2260', '<', '\u2264', '>', '\u2265'];
    });
    this.addInput(dropdown, '', Blockly.INPUT_VALUE);
    this.setInputsInline(true);
  }
};<commit_msg>Adding and/or, not, true/false.<commit_after>/**
 * 
 */


if (!Blockly.Language) {
  Blockly.Language = {};
}


Blockly.Language.compare = {
  // Comparison operator.
  category: 'Logic',
  helpUrl: function() {
    var map = {
      '=': 'http://en.wikipedia.org/wiki/Equality_(mathematics)',
      '\u2260': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '<': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '\u2264': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '>': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)',
      '\u2265': 'http://en.wikipedia.org/wiki/Inequality_(mathematics)'
    };
    return map[this.getValueLabel(1)];
  },
  init: function() {
    this.setColour('green');
    this.setOutput(true);
    this.addInput('', '', Blockly.INPUT_VALUE);
    var dropdown = new Blockly.FieldDropdown('=', function() {
      return ['=', '\u2260', '<', '\u2264', '>', '\u2265'];
    });
    this.addInput(dropdown, '', Blockly.INPUT_VALUE);
    this.setInputsInline(true);
  }
};


Blockly.Language.Boolean = {
  // Boolean data type: true and false.
  category: 'Logic',
  helpUrl: 'http://en.wikipedia.org/wiki/Boolean_data_type',
  init: function() {
    this.setColour('green');
    this.setOutput(true);
    var dropdown = new Blockly.FieldDropdown('true', function() {
      return ['true', 'false'];
    });
    this.addTitle(dropdown);
  }
};

Blockly.Language.disjunction = {
  // Boolean data type: true and false.
  category: 'Logic',
  helpUrl: 'http://en.wikipedia.org/wiki/Logical_disjunction',
  init: function() {
    this.setColour('green');
    this.setOutput(true);
    this.addInput('', '', Blockly.INPUT_VALUE);
    var dropdown = new Blockly.FieldDropdown('and', function() {
      return ['and', 'or'];
    });
    this.addInput(dropdown, '', Blockly.INPUT_VALUE);
    this.setInputsInline(true);
  }
};


Blockly.Language.not = {
		  // Boolean data type: true and false.
		  category: 'Logic',
		  helpUrl: 'http://en.wikipedia.org/wiki/Logical_disjunction',
		  init: function() {
		    this.setColour('green');
		    this.setOutput(true);
		    this.addInput('not', '', Blockly.INPUT_VALUE);
		    this.setInputsInline(true);
		  }
		};
{'fraction_non_alphanumeric': 0.20006136851795028, 'fraction_numerical': 0.015342129487572876, 'mean_word_length': 3.3524699599465952, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4008337', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1114, 'n_words': 157}