<commit_before>package com.aljoschability.eclipse.core.graphiti.editors

import org.eclipse.graphiti.dt.IDiagramTypeProvider
import org.eclipse.graphiti.features.ICreateConnectionFeature
import org.eclipse.graphiti.features.ICreateFeature
import org.eclipse.graphiti.palette.impl.ConnectionCreationToolEntry
import org.eclipse.graphiti.palette.impl.ObjectCreationToolEntry
import org.eclipse.graphiti.tb.DefaultToolBehaviorProvider

class CoreToolBehaviorProvider extends DefaultToolBehaviorProvider {
	new(IDiagramTypeProvider dtp) {
		super(dtp)
	}

	override getPalette() {
		emptyList
	}

	def static protected creationTool(ICreateConnectionFeature feature) {
		val label = feature.createName
		val description = feature.createDescription
		val iconId = feature.createImageId
		val largeIconId = feature.createLargeImageId

		val entry = new ConnectionCreationToolEntry(label, description, iconId, largeIconId)
		entry.addCreateConnectionFeature(feature)

		return entry
	}

	def static protected creationTool(ICreateFeature feature) {
		val label = feature.createName
		val description = feature.createDescription
		val iconId = feature.createImageId
		val largeIconId = feature.createLargeImageId

		return new ObjectCreationToolEntry(label, description, iconId, largeIconId, feature)
	}
}
<commit_msg>formatting changes<commit_after>package com.aljoschability.eclipse.core.graphiti.editors

import org.eclipse.graphiti.dt.IDiagramTypeProvider
import org.eclipse.graphiti.features.ICreateConnectionFeature
import org.eclipse.graphiti.features.ICreateFeature
import org.eclipse.graphiti.palette.impl.ConnectionCreationToolEntry
import org.eclipse.graphiti.palette.impl.ObjectCreationToolEntry
import org.eclipse.graphiti.tb.DefaultToolBehaviorProvider

class CoreToolBehaviorProvider extends DefaultToolBehaviorProvider {
	new(IDiagramTypeProvider dtp) {
		super(dtp)
	}

	override getPalette() {
		emptyList
	}

	def static protected creationTool(ICreateConnectionFeature feature) {
		val label = feature.createName
		val description = feature.createDescription
		val iconId = feature.createImageId
		val largeIconId = feature.createLargeImageId

		val entry = new ConnectionCreationToolEntry(label, description, iconId, largeIconId)

		entry.addCreateConnectionFeature(feature)

		return entry
	}

	def static protected creationTool(ICreateFeature feature) {
		val label = feature.createName
		val description = feature.createDescription
		val iconId = feature.createImageId
		val largeIconId = feature.createLargeImageId

		return new ObjectCreationToolEntry(label, description, iconId, largeIconId, feature)
	}
}

{'fraction_non_alphanumeric': 0.06483600305110603, 'fraction_numerical': 0.0, 'mean_word_length': 6.306406685236769, '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': '24399', 'n_tokens_mistral': 752, 'n_tokens_neox': 710, 'n_words': 151}