<commit_before>import * as React from "react"
import { HexUtils } from "./HexUtils"
import { useLayoutContext } from "./Layout"
import { Hex } from "./models/Hex"

export type PathProps = {
  start: any
  end: any
}
export function Path(props: PathProps) {
  const { layout } = useLayoutContext()
  // TODO Refactor
  function getPoints() {
    const { start, end } = props
    if (!start || !end) {<commit_msg>Path: make prop 'end' optional<commit_after>import * as React from "react"
import { HexUtils } from "./HexUtils"
import { useLayoutContext } from "./Layout"
import { Hex } from "./models/Hex"

export type PathProps = {
  start: any
  end?: any
}
export function Path(props: PathProps) {
  const { layout } = useLayoutContext()
  // TODO Refactor
  function getPoints() {
    const { start, end } = props
    if (!start || !end) {
{'fraction_non_alphanumeric': 0.1357142857142857, 'fraction_numerical': 0.0, 'mean_word_length': 3.545945945945946, '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': '3162305', 'n_tokens_mistral': 260, 'n_tokens_neox': 255, 'n_words': 88}