<commit_before>#!/bin/env python
# -*- coding: utf-8 -*-

def create_initial_routes(data):
    """Creates a list of initial routes

    First, a route contains only two nodes: the depot and a node
    """
    routes = []

    depot = data['DEPOT']

    for i in data['MATRIX']:

        current_route = [depot]

        if i != depot:
            current_route.append(i)

            routes.append(current_route)

    return routes


def compute_savings_list(data):
    """Compute Clarke and Wright savings list

    A saving list is a matrix containing the saving amount S between i and j

    S is calculated by S = d(0,i + d(0,j) - d(i,j) (CLARKE; WRIGHT, 1964)
    """

    depot = data['DEPOT']
<commit_msg>A causa dos males do mundo<commit_after>#!/bin/env python
# -*- coding: utf-8 -*-

def create_initial_routes(data):
    """Creates a list of initial routes

    First, a route contains only two nodes: the depot and a node
    """
    routes = []

    depot = data['DEPOT']

    for i in data['MATRIX']:

        current_route = [depot]

        if i != depot:
            current_route.append(i)

            routes.append(current_route)

    return routes


def compute_savings_list(data):
    """Compute Clarke and Wright savings list

    A saving list is a matrix containing the saving amount S between i and j

    S is calculated by S = d(0,i) + d(0,j) - d(i,j) (CLARKE; WRIGHT, 1964)
    """

    depot = data['DEPOT']

{'fraction_non_alphanumeric': 0.1133518776077886, 'fraction_numerical': 0.009735744089012517, 'mean_word_length': 2.5269607843137254, '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': '2625374', 'n_tokens_mistral': 491, 'n_tokens_neox': 459, 'n_words': 157}