<commit_before>package com.aspose.cells.examples.articles;

import com.aspose.cells.Cell;
import com.aspose.cells.FontSetting;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import com.aspose.cells.examples.Utils;
import com.aspose.cells.examples.AdvancedTopics.SmartMarkers.UsingHTMLProperty;

public class AccessAndUpdatePortions {
	public static void main(String[] args) throws Exception {

		// The path to the documents directory.
		String dataDir = Utils.getSharedDataDir(AccessAndUpdatePortions.class) + "articles/";

		Workbook workbook = new Workbook(dataDir + "source.xlsx");

		Worksheet worksheet = workbook.getWorksheets().get(0);

		Cell cell = worksheet.getCells().get("A1");

		System.out.println("Before updating the font settings....");

		FontSetting[] fnts = cell.getCharacters();

		for (int i = 0; i < fnts.length; i++) {
			System.out.println(fnts[i].getFont().getName());
		}

		// Modify the first FontSetting Font Name
		fnts[0].getFont().setName("Arial");

		// And update it using SetCharacters() method<commit_msg>New Comment Added<commit_after>package com.aspose.cells.examples.articles;

import com.aspose.cells.Cell;
import com.aspose.cells.FontSetting;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import com.aspose.cells.examples.Utils;
import com.aspose.cells.examples.AdvancedTopics.SmartMarkers.UsingHTMLProperty;

public class AccessAndUpdatePortions {
	public static void main(String[] args) throws Exception {

		// The path to the documents directory. --- added by shakeel
		String dataDir = Utils.getSharedDataDir(AccessAndUpdatePortions.class) + "articles/";

		Workbook workbook = new Workbook(dataDir + "source.xlsx");

		Worksheet worksheet = workbook.getWorksheets().get(0);

		Cell cell = worksheet.getCells().get("A1");

		System.out.println("Before updating the font settings....");

		FontSetting[] fnts = cell.getCharacters();

		for (int i = 0; i < fnts.length; i++) {
			System.out.println(fnts[i].getFont().getName());
		}

		// Modify the first FontSetting Font Name
		fnts[0].getFont().setName("Arial");

		// And update it using SetCharacters() method
{'fraction_non_alphanumeric': 0.13132250580046403, 'fraction_numerical': 0.0037122969837587007, 'mean_word_length': 4.73404255319149, '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': '6206779', 'n_tokens_mistral': 753, 'n_tokens_neox': 663, 'n_words': 152}