<commit_before>$(function () {

  'use strict';

  var $image = $(window.createCropperImage());
  var $image2 = $(window.createCropperImage());
  var $image3 = $(window.createCropperImage());

  $image.cropper({
    fitCanvasToContainer: true,

    built: function () {
      QUnit.test('options#fitCanvasToContainer: true', function (assert) {
        $image.cropper('rotate', 90);

        var canvasData = $image.cropper('getCanvasData');
        var containerData = $image.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) <= parseInt(containerData.height, 10));
        assert.ok(parseInt(canvasData.width, 10) <= parseInt(containerData.width, 10));
      });

    }
  });

  $image2.cropper({
    built: function () {
      QUnit.test('options#fitCanvasToContainer: false', function (assert) {
        $image2.cropper('rotate', 90);

        var canvasData = $image.cropper('getCanvasData');
        var containerData = $image.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) >= parseInt(containerData.height, 10));
      });

    }
  });

  $image3.cropper({
    fitCanvasToContainer: true,

    built: function () {
      QUnit.test('options#fitCanvasToContainer: true with options#zoomable: true', function (assert) {
        $image3.cropper('rotate', 90);
        $image3.cropper('zoom', 200);

        var canvasData = $image.cropper('getCanvasData');
        var containerData = $image.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) <= parseInt(containerData.height, 10));<commit_msg>Fixed test reference to wrong cropper<commit_after>$(function () {

  'use strict';

  var $image = $(window.createCropperImage());
  var $image2 = $(window.createCropperImage());
  var $image3 = $(window.createCropperImage());

  $image.cropper({
    fitCanvasToContainer: true,

    built: function () {
      QUnit.test('options#fitCanvasToContainer: true', function (assert) {
        $image.cropper('rotate', 90);

        var canvasData = $image.cropper('getCanvasData');
        var containerData = $image.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) <= parseInt(containerData.height, 10));
        assert.ok(parseInt(canvasData.width, 10) <= parseInt(containerData.width, 10));
      });

    }
  });

  $image2.cropper({
    built: function () {
      QUnit.test('options#fitCanvasToContainer: false', function (assert) {
        $image2.cropper('rotate', 90);

        var canvasData = $image2.cropper('getCanvasData');
        var containerData = $image2.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) >= parseInt(containerData.height, 10));
      });

    }
  });

  $image3.cropper({
    fitCanvasToContainer: true,

    built: function () {
      QUnit.test('options#fitCanvasToContainer: true with options#zoomable: true', function (assert) {
        $image3.cropper('rotate', 90);
        $image3.cropper('zoom', 200);

        var canvasData = $image3.cropper('getCanvasData');
        var containerData = $image3.cropper('getContainerData');

        assert.ok(parseInt(canvasData.height, 10) <= parseInt(containerData.height, 10));
{'fraction_non_alphanumeric': 0.1546134663341646, 'fraction_numerical': 0.02119700748129676, 'mean_word_length': 3.610632183908046, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4135645', 'n_tokens_mistral': 1047, 'n_tokens_neox': 950, 'n_words': 168}