<commit_before>package kaizen.plugins

import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.Configuration
import org.gradle.api.tasks.TaskAction

class UpdateTask extends DefaultTask {

	def outputDir
	private Configuration configuration

	def setConfiguration(Configuration c) {
		configuration = c
	}

	def getConfiguration() {
		configuration
	}

	@TaskAction
	void update() {
		def localArtifacts = project.subprojects.collectMany {
			it.configurations.collectMany { it.artifacts.files.collect() }
		}
		def remoteArtifacts = configuration.incoming.files.findAll { !localArtifacts.contains(it) }
		remoteArtifacts.each { file ->
			println file.name
			project.copy {
				from project.zipTree(file)
				into project.file(outputDir)
				include "*.exe"<commit_msg>unpack components to 'lib/$config' by default (instead of 'libs/$config')<commit_after>package kaizen.plugins

import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.Configuration
import org.gradle.api.tasks.TaskAction
import kaizen.plugins.core.Configurations

class UpdateTask extends DefaultTask {

	def outputDir
	private Configuration configuration

	def setConfiguration(Configuration c) {
		configuration = c
		outputDir = "lib/${Configurations.labelFor(configuration)}"
	}

	def getConfiguration() {
		configuration
	}

	@TaskAction
	void update() {
		def localArtifacts = project.subprojects.collectMany {
			it.configurations.collectMany { it.artifacts.files.collect() }
		}
		def remoteArtifacts = configuration.incoming.files.findAll { !localArtifacts.contains(it) }
		remoteArtifacts.each { file ->
			println file.name
			project.copy {
				from project.zipTree(file)
				into project.file(outputDir)
				include "*.exe"
{'fraction_non_alphanumeric': 0.09443800695249131, 'fraction_numerical': 0.0, 'mean_word_length': 4.625407166123779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5318398', 'n_tokens_mistral': 554, 'n_tokens_neox': 493, 'n_words': 107}