<commit_before>// Copyright 2002-2013, University of Colorado Boulder

/**
 * Rectangle with horizontal lines shape graph for the 'Build a Fraction' sim.
 *
 * @author <NAME> (Mlearner)
 */
define( function( require ) {
  "use strict";

  // imports
  var inherit = require( 'PHET_CORE/inherit' ),
    AbstractShape = require( 'FRACTION_COMMON/shapes/AbstractShape' ),
    Path = require( 'SCENERY/nodes/Path' ),
    Shape = require( 'KITE/Shape' );

  function HRectangleShape( options ) {
    var pieces = [],
      denominator,
      numerator,
      size;

    AbstractShape.call( this, options );
    options = this.options;
    denominator = options.denominator;
    numerator = options.numerator;

    // init arrays for shapes
    for ( var i = 0, j; i < Math.ceil( numerator / denominator ); i++ ) {
      pieces[i] = [];
    }

    // TODO: stroke
    // create pieces and add them to created array
    for ( i = 0; i < pieces.length; i++ ) {
      for ( j = 0; j < denominator; j++ ) {
        pieces[i].push( new Path( this.getPiece( options.width, options.height/ denominator ), {<commit_msg>draw piece of HRectangleShape.js now possible<commit_after>// Copyright 2002-2013, University of Colorado Boulder

/**
 * Rectangle with horizontal lines shape graph for the 'Build a Fraction' sim.
 *
 * @author <NAME> (Mlearner)
 */
define( function( require ) {
  "use strict";

  // imports
  var inherit = require( 'PHET_CORE/inherit' ),
    AbstractShape = require( 'FRACTION_COMMON/shapes/AbstractShape' ),
    Path = require( 'SCENERY/nodes/Path' ),
    Shape = require( 'KITE/Shape' );

  function HRectangleShape( options ) {
    var pieces = [],
      denominator,
      numerator,
      size;

    AbstractShape.call( this, options );
    options = this.options;
    denominator = options.denominator;
    numerator = Math.max( 1, options.numerator ); //if numerator 0, we still want shape, but not filled


    // init arrays for shapes
    for ( var i = 0, j; i < Math.ceil( numerator / denominator ); i++ ) {
      pieces[i] = [];
    }

    // TODO: stroke
    // create pieces and add them to created array
    var len = (options.onlyPiece ? numerator : denominator);
    for ( i = 0; i < pieces.length; i++ ) {
      for ( j = 0; j < len; j++ ) {
        pieces[i].push( new Path( this.getPiece( options.width, options.height/ denominator ), {
{'fraction_non_alphanumeric': 0.13107822410147993, 'fraction_numerical': 0.01014799154334038, 'mean_word_length': 2.7856, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6618143', 'n_tokens_mistral': 763, 'n_tokens_neox': 725, 'n_words': 226}