<commit_before>const thickness = 1
const outerHeight = 8
const innerHeight = outerHeight - (2 * thickness)
const outerWidth = 16
const innerWidth = outerWidth - (2 * thickness)

const dimensions = {
  x: [outerWidth, thickness, thickness],
  y: [thickness, innerHeight, thickness],
}

const top = _(dimensions.x, ty((outerHeight - thickness) / 2))
const bottom = _(dimensions.x, ty(-(outerHeight - thickness) / 2))
const vertical = _(dimensions.y)

const leftDiagonal = _(
  dimensions.y,
  tx(-thickness),
  $tx('py', -(((innerWidth - thickness) / 2) - thickness))
)

const rightDiagonal = _(
  dimensions.y,
  tx(thickness),
  $tx('py', ((innerWidth - thickness) / 2) - thickness)
)

const leftVertical = _(
  dimensions.y,
  tx((innerWidth + thickness) / 2)
)

const rightVertical = _(
  dimensions.y,
  tx(-(innerWidth + thickness) / 2)
)

return [
  top,
  bottom,
  vertical,
  leftDiagonal,
  rightDiagonal,
  leftVertical,
  rightVertical,
]<commit_msg>lathe[cuboid]: Fix orientation of truss example verticals.<commit_after>const thickness = 1
const outerHeight = 8
const innerHeight = outerHeight - (2 * thickness)
const outerWidth = 16
const innerWidth = outerWidth - (2 * thickness)

const dimensions = {
  x: [outerWidth, thickness, thickness],
  y: [thickness, innerHeight, thickness],
}

const horizontalY = (outerHeight - thickness) / 2
const diagonalX = ((innerWidth - thickness) / 2) - thickness
const verticalX = (innerWidth + thickness) / 2

const top = _(
  dimensions.x,
  ty(horizontalY)
)

const bottom = _(
  dimensions.x,
  ty(-horizontalY)
)

const vertical = _(dimensions.y)

const leftDiagonal = _(
  dimensions.y,
  tx(-thickness),
  $tx('py', -diagonalX)
)

const rightDiagonal = _(
  dimensions.y,
  tx(thickness),
  $tx('py', diagonalX)
)

const leftVertical = _(
  dimensions.y,
  tx(-verticalX)
)

const rightVertical = _(
  dimensions.y,
  tx(verticalX)
)

return [
  top,
  bottom,
  vertical,
  leftDiagonal,
  rightDiagonal,
  leftVertical,
  rightVertical,
]
{'fraction_non_alphanumeric': 0.13113113113113112, 'fraction_numerical': 0.010510510510510511, 'mean_word_length': 3.9602977667493797, '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': '6402144', 'n_tokens_mistral': 683, 'n_tokens_neox': 668, 'n_words': 172}