<commit_before>/*
 * Copyrighted 2012-2013 Netherlands eScience Center.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").  
 * You may not use this file except in compliance with the License. 
 * For details, see the LICENCE.txt file location in the root directory of this 
 * distribution or obtain the Apache License at the following location: 
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 * 
 * For the full license, see: LICENCE.txt (located in the root folder of this distribution). 
 * ---
 */
// source: 

package nl.esciencecenter.ptk.presentation;

import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Hashtable;
import java.util.Locale;
import java.util.TimeZone;

import nl.esciencecenter.ptk.data.StringList;

/**
 * Custom Presentation and formatting methods to show values, attributes, etc. 
 * 
 * @author <NAME>
 */
public class Presentation
{
    // =======================================================================
    // Static Fields
    // =======================================================================

    protected static Hashtable<String, Presentation> presentationStore = new Hashtable<String, Presentation>();

    // /** Default Attribute Name to show for VFSNodes */
    // public static String defaultFileAttributeNames[] =
    // {
    // ICON,
    // NAME,
    // RESOURCE_TYPE,
    // LENGTH,
    // // ATTR_MODIFICATION_TIME_STRING,
    // MODIFICATION_TIME,
    // MIMETYPE,
    // PERMISSIONS_STRING
    // };

    /** format number to 00-99 format */
    public static String to2decimals(long val)
    {
        String str = "";

        if (val < 0)
        {
            str = "-";
            val = -val;
        }

        if (val < 10)
            return str + "0" + val;
        else
            return str + val;
    }<commit_msg>cleanup of dead comments. <commit_after>/*
 * Copyrighted 2012-2013 Netherlands eScience Center.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").  
 * You may not use this file except in compliance with the License. 
 * For details, see the LICENCE.txt file location in the root directory of this 
 * distribution or obtain the Apache License at the following location: 
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 * 
 * For the full license, see: LICENCE.txt (located in the root folder of this distribution). 
 * ---
 */
// source: 

package nl.esciencecenter.ptk.presentation;

import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Hashtable;
import java.util.Locale;
import java.util.TimeZone;

import nl.esciencecenter.ptk.data.StringList;

/**
 * Custom Presentation and formatting methods to show values, attributes, etc. 
 * 
 * @author <NAME>
 */
public class Presentation
{
    // =======================================================================
    // Static Fields
    // =======================================================================

    protected static Hashtable<String, Presentation> presentationStore = new Hashtable<String, Presentation>();

    /** format number to 00-99 format */
    public static String to2decimals(long val)
    {
        String str = "";

        if (val < 0)
        {
            str = "-";
            val = -val;
        }

        if (val < 10)
            return str + "0" + val;
        else
            return str + val;
    }
{'fraction_non_alphanumeric': 0.15882061446977205, 'fraction_numerical': 0.010406342913776016, 'mean_word_length': 2.896718146718147, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2657842', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1017, 'n_words': 385}