<commit_before><Page ux:Class="Sanntidsappen.HomePage" Freeze="WhileNavigating">
  <Router ux:Dependency="router" />
  <JavaScript File="HomePage.js" />

  <DockPanel>
    <!-- Search field -->
    <Panel ux:Name="TopBar" Dock="Top" Margin="20,20,20,10" Height="40" Alignment="Top" Color="LightGray">
      <TextInput PlaceholderText="Søk etter holdeplass" Padding="10, 0, 10, 0" FontSize="14" PlaceholderColor="#ABAAAB" Value="{search_string}">
        <Clicked>
          <GiveFocus />
        </Clicked>

        <Rectangle Layer="Background" CornerRadius="4" Color="White">
          <Stroke ux:Name="SearchBarStroke" Width="1" Color="#F9F9F9"/>
          <Shadow ux:Name="SearchBarShadow" Distance="1" Color="#00000019" Size="1" Angle="90" />
        </Rectangle>
      </TextInput>
    </Panel>

    <!-- List of stops -->
    <WhileEmpty Items="{stops}">
      <Panel>
        <StackPanel Alignment="Center">
          <Text Value="Aktiver stedstjenester for å se liste over de nærmeste holdeplassene" TextWrapping="Wrap" TextAlignment="Center" />
        </StackPanel>
        <WhileKeyboardVisible>
          <Move Y="-0.15" RelativeTo="Size" Duration="0.3" Easing="QuadraticInOut" EasingBack="QuadraticIn"/>
        </WhileKeyboardVisible>
      </Panel>
    </WhileEmpty>

    <ScrollView ClipToBounds="false">
      <StackPanel>
        <Panel Height="180" />
        <StackPanel Color="White">
          <Each Items="{stops}">
            <Deferred>
              <Stop StopName="{name}" Direction="{d}" Clicked="{gotoDepartures}" />
            </Deferred>
          </Each>
        </StackPanel>
      </StackPanel>
    </ScrollView>


    <!-- Favorite grid -->
    <Grid ux:Name="favDash" Rows="180" Alignment="Top">
      <FavoriteDashboard DepartureLocation="Solsiden" Direction="til midtbyen">
        <Favorite Destination="Tyholt" TimeLeft="5 min" Line="22" />
        <Favorite Destination="Dragvoll" TimeLeft="ca 7 min" Line="9" />
        <Favorite Destination="Tyholt" TimeLeft="35 min" Line="22" />
        <Favorite Destination="Tyholt" TimeLeft="ca 19:05" Line="22" />
        <Favorite Destination="Tyholt" TimeLeft="19:35" Line="22" />
      </FavoriteDashboard>
    </Grid>
  </DockPanel>
</Page>
<commit_msg>Add distance attribute to Stop<commit_after><Page ux:Class="Sanntidsappen.HomePage" Freeze="WhileNavigating">
  <Router ux:Dependency="router" />
  <JavaScript File="HomePage.js" />

  <DockPanel>
    <!-- Search field -->
    <Panel ux:Name="TopBar" Dock="Top" Margin="20,20,20,10" Height="40" Alignment="Top" Color="LightGray">
      <TextInput PlaceholderText="Søk etter holdeplass" Padding="10, 0, 10, 0" FontSize="14" PlaceholderColor="#ABAAAB" Value="{search_string}">
        <Clicked>
          <GiveFocus />
        </Clicked>

        <Rectangle Layer="Background" CornerRadius="4" Color="White">
          <Stroke ux:Name="SearchBarStroke" Width="1" Color="#F9F9F9"/>
          <Shadow ux:Name="SearchBarShadow" Distance="1" Color="#00000019" Size="1" Angle="90" />
        </Rectangle>
      </TextInput>
    </Panel>

    <!-- List of stops -->
    <WhileEmpty Items="{stops}">
      <Panel>
        <StackPanel Alignment="Center">
          <Text Value="Aktiver stedstjenester for å se liste over de nærmeste holdeplassene" TextWrapping="Wrap" TextAlignment="Center" />
        </StackPanel>
        <WhileKeyboardVisible>
          <Move Y="-0.15" RelativeTo="Size" Duration="0.3" Easing="QuadraticInOut" EasingBack="QuadraticIn"/>
        </WhileKeyboardVisible>
      </Panel>
    </WhileEmpty>

    <ScrollView ClipToBounds="false">
      <StackPanel>
        <Panel Height="180" />
        <StackPanel Color="White">
          <Each Items="{stops}">
            <Deferred>
              <Stop StopName="{name}" Direction="{d}" Clicked="{gotoDepartures}" Distance="{distance}" />
            </Deferred>
          </Each>
        </StackPanel>
      </StackPanel>
    </ScrollView>


    <!-- Favorite grid -->
    <Grid ux:Name="favDash" Rows="180" Alignment="Top">
      <FavoriteDashboard DepartureLocation="Solsiden" Direction="til midtbyen">
        <Favorite Destination="Tyholt" TimeLeft="5 min" Line="22" />
        <Favorite Destination="Dragvoll" TimeLeft="ca 7 min" Line="9" />
        <Favorite Destination="Tyholt" TimeLeft="35 min" Line="22" />
        <Favorite Destination="Tyholt" TimeLeft="ca 19:05" Line="22" />
        <Favorite Destination="Tyholt" TimeLeft="19:35" Line="22" />
      </FavoriteDashboard>
    </Grid>
  </DockPanel>
</Page>

{'fraction_non_alphanumeric': 0.16655607166556072, 'fraction_numerical': 0.029639460296394603, 'mean_word_length': 3.1183970856102006, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '327142', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1458, 'n_words': 281}