<commit_before>import {renderingUtil} from "./renderingUtil";
import {node} from "./node";

export interface colorRange {
    from : number;
    to : number;
    flipped : boolean;
}

export function getFloorGradient(nodes: node[]): number[] {
    return renderingUtil.gradient("#222222", "#aaaaaa", renderingUtil.getMaxNodeDepth(nodes));
}

export function getHighlightGradient(nodes: node[]): number[] {
    return renderingUtil.gradient("#ffe8f3", "#FF1D8E", renderingUtil.getMaxNodeDepth(nodes));
}

export function getDistinctColors(): number[] {
    const arr = require("distinct-colors")({count: 20});
    const res = [];
    for(let i = 0; i< arr.length;i++) {
        res.push(renderingUtil.rgbToHexNumber(arr[i]["_rgb"][0], arr[i]["_rgb"][1], arr[i]["_rgb"][2]));
    }
    return res;
}

export enum MapColors {
    positive = 0xD2FDD2,
    neutral = 0xFDFDD2,
    negative = 0xFDD2D2,
    highlight_pink = 0xFF1D8E,
    highlight_blue = 0x1d8eff,
    highlight_green = 0x8eff1d,
    selected = 0xEB8319,
    defaultC = 0x89ACB4,
    positiveDelta = 0x69ff40,
    negativeDelta = 0xff0E0E,
    base = 0x666666
}

export interface renderSettings {
    heightKey : string;<commit_msg>reverting to otiginal color<commit_after>import {renderingUtil} from "./renderingUtil";
import {node} from "./node";

export interface colorRange {
    from : number;
    to : number;
    flipped : boolean;
}

export function getFloorGradient(nodes: node[]): number[] {
    return renderingUtil.gradient("#222222", "#aaaaaa", renderingUtil.getMaxNodeDepth(nodes));
}

export function getHighlightGradient(nodes: node[]): number[] {
    return renderingUtil.gradient("#ffe8f3", "#FF1D8E", renderingUtil.getMaxNodeDepth(nodes));
}

export function getDistinctColors(): number[] {
    const arr = require("distinct-colors")({count: 20});
    const res = [];
    for(let i = 0; i< arr.length;i++) {
        res.push(renderingUtil.rgbToHexNumber(arr[i]["_rgb"][0], arr[i]["_rgb"][1], arr[i]["_rgb"][2]));
    }
    return res;
}

export enum MapColors {
    positive = 0x69AE40,
    neutral = 0xddcc00,
    negative = 0x820E0E,
    highlight_pink = 0xFF1D8E,
    highlight_blue = 0x1d8eff,
    highlight_green = 0x8eff1d,
    selected = 0xEB8319,
    defaultC = 0x89ACB4,
    positiveDelta = 0x69ff40,
    negativeDelta = 0xff0E0E,
    base = 0x666666
}

export interface renderSettings {
    heightKey : string;
{'fraction_non_alphanumeric': 0.14083333333333334, 'fraction_numerical': 0.04958333333333333, 'mean_word_length': 4.174568965517241, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4045040', 'n_tokens_mistral': 893, 'n_tokens_neox': 821, 'n_words': 172}