<commit_before>import ClipperLib from 'clipper-lib';

export default function(paths, point) {
  paths = mapLowerToCapital(paths);
  point = { X: point.x, Y: point.y };

  const offsetShapes = new ClipperLib.Paths();
  const clipperOffset = new ClipperLib.ClipperOffset();
  clipperOffset.AddPaths(paths, ClipperLib.JoinType.jtSquare, ClipperLib.EndType.etOpenSquare);
  clipperOffset.Execute(offsetShapes, 1.0);

  // merge shapes.
  // each shape gets a clockwise outside path and a counter-clockwize inside path
  const mergeShapes = ClipperLib.Clipper.SimplifyPolygons(offsetShapes, ClipperLib.PolyFillType.pftNonZero);

  const fillShapes = [];
  const outLines = [];<commit_msg>set end type to butt<commit_after>import ClipperLib from 'clipper-lib';

export default function(paths, point) {
  paths = mapLowerToCapital(paths);
  point = { X: point.x, Y: point.y };

  const offsetShapes = new ClipperLib.Paths();
  const clipperOffset = new ClipperLib.ClipperOffset();
  clipperOffset.AddPaths(paths, ClipperLib.JoinType.jtSquare, ClipperLib.EndType.etOpenButt);
  clipperOffset.Execute(offsetShapes, 1.0);

  // merge shapes.
  // each shape gets a clockwise outside path and a counter-clockwize inside path
  const mergeShapes = ClipperLib.Clipper.SimplifyPolygons(offsetShapes, ClipperLib.PolyFillType.pftNonZero);

  const fillShapes = [];
  const outLines = [];
{'fraction_non_alphanumeric': 0.10649161196207148, 'fraction_numerical': 0.0029175784099197666, 'mean_word_length': 5.044052863436123, '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': '1141529', 'n_tokens_mistral': 451, 'n_tokens_neox': 436, 'n_words': 104}