<commit_before><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
	license agreements. See the NOTICE file distributed with this work for additional 
	information regarding copyright ownership. The ASF licenses this file to 
	you under the Apache License, Version 2.0 (the "License"); you may not use 
	this file except in compliance with the License. You may obtain a copy of 
	the License at 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. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.apache.cloudstack</groupId>
	<artifactId>cloud-developer</artifactId>
	<name>Apache CloudStack Developer Tools</name>
	<packaging>pom</packaging>
	<parent>
		<groupId>org.apache.cloudstack</groupId>
		<artifactId>cloudstack</artifactId>
		<version>4.1.0-SNAPSHOT</version>
	</parent>
	<dependencies>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.21</version>
			<scope>runtime</scope>
		</dependency>
	</dependencies>
	<build>
		<defaultGoal>install</defaultGoal>
	</build>

	<profiles>
		<profile>
			<id>deploydb</id>
			<activation>
				<property>
					<name>deploydb</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>properties-maven-plugin</artifactId>
						<version>1.0-alpha-2</version>
						<executions>
							<execution>
								<phase>initialize</phase>
								<goals>
									<goal>read-project-properties</goal>
								</goals>
								<configuration>
									<files>
										<file>${project.parent.basedir}/utils/conf/db.properties</file>
									</files>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<filter token="VERSION" value="${project.version}" />
										<copy todir="${basedir}/target/db" filtering="true">
											<fileset dir="${project.basedir}/../setup/db/">
											</fileset>
										</copy>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>sql-maven-plugin</artifactId>
						<version>1.5</version>
						<dependencies>
							<!-- specify the dependent jdbc driver here -->
							<dependency>
								<groupId>mysql</groupId>
								<artifactId>mysql-connector-java</artifactId>
								<version>${cs.mysql.version}</version>
							</dependency>
						</dependencies>
						<configuration>
							<driver>org.gjt.mm.mysql.Driver</driver>
							<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url>
							<username>${db.cloud.username}</username>
							<password>${<PASSWORD>}</password>
							<!--all executions are ignored if -Dmaven.test.skip=true -->
							<skip>${maven.test.skip}</skip>
							<forceMojoExecution>true</forceMojoExecution>
						</configuration>

						<executions>
							<execution>
								<id>drop-database</id>
								<phase>process-test-resources</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<username>root</username>
									<password>${<PASSWORD>}</password>
									<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
									<sqlCommand>drop database if exists `cloud`</sqlCommand>
								</configuration>
							</execution>
                            <execution>
                                <id>create-database</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password>${<PASSWORD>>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>create database `cloud`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>drop-database-usage</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password>${<PASSWORD>}</password>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>drop database if exists `cloud_usage`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>create-database-usage</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password>${<PASSWORD>}</password>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>create database `cloud_usage`</sqlCommand>
                                </configuration>
                            </execution>
							<execution>
								<id>create-schema</id>
								<phase>process-test-resources</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<srcFiles>
										<srcFile>${basedir}/target/db/create-schema.sql</srcFile>
										<srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile>
										<srcFile>${basedir}/target/db/templates.sql</srcFile>
										<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
									</srcFiles>
								</configuration>
							</execution>
                            <execution>
                                <id>prefill-schema</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <sqlCommand>INSERT INTO `cloud`.`domain` (id, name, parent, path, owner) VALUES (1, 'ROOT', NULL, '/', 2)</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>prefill-configuration</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <sqlCommand>INSERT INTO `cloud`.`configuration` (category, instance, component, name, value) VALUES ('Hidden', 'DEFAULT', 'management-server', 'init', 'false')</sqlCommand>
                                </configuration>
                            </execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
<commit_msg>Add the sql files for the cloudbridge<commit_after><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
	license agreements. See the NOTICE file distributed with this work for additional 
	information regarding copyright ownership. The ASF licenses this file to 
	you under the Apache License, Version 2.0 (the "License"); you may not use 
	this file except in compliance with the License. You may obtain a copy of 
	the License at 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. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<artifactId>cloud-developer</artifactId>
	<name>Apache CloudStack Developer Tools</name>
	<packaging>pom</packaging>
	<parent>
		<groupId>org.apache.cloudstack</groupId>
		<artifactId>cloudstack</artifactId>
		<version>4.1.0-SNAPSHOT</version>
	</parent>
	<dependencies>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.21</version>
			<scope>runtime</scope>
		</dependency>
	</dependencies>
	<build>
		<defaultGoal>install</defaultGoal>
	</build>

	<profiles>
		<profile>
			<id>deploydb</id>
			<activation>
				<property>
					<name>deploydb</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>properties-maven-plugin</artifactId>
						<version>1.0-alpha-2</version>
						<executions>
							<execution>
								<phase>initialize</phase>
								<goals>
									<goal>read-project-properties</goal>
								</goals>
								<configuration>
									<files>
										<file>${project.parent.basedir}/utils/conf/db.properties</file>
									</files>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<filter token="VERSION" value="${project.version}" />
										<copy todir="${basedir}/target/db" filtering="true">
											<fileset dir="${project.basedir}/../setup/db/">
											</fileset>
										</copy>
                                        <copy todir="${basedir}/target/db" filtering="true">
                                            <fileset dir="${project.basedir}/../awsapi-setup/db/mysql/">
                                              <include name="**/*.sql" />
                                            </fileset>
                                        </copy>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>sql-maven-plugin</artifactId>
						<version>1.5</version>
						<dependencies>
							<!-- specify the dependent jdbc driver here -->
							<dependency>
								<groupId>mysql</groupId>
								<artifactId>mysql-connector-java</artifactId>
								<version>${cs.mysql.version}</version>
							</dependency>
						</dependencies>
						<configuration>
							<driver>org.gjt.mm.mysql.Driver</driver>
							<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url>
							<username>${db.cloud.username}</username>
							<password>${<PASSWORD>}</password>
							<!--all executions are ignored if -Dmaven.test.skip=true -->
							<skip>${maven.test.skip}</skip>
							<forceMojoExecution>true</forceMojoExecution>
						</configuration>

						<executions>
							<execution>
								<id>drop-database</id>
								<phase>process-test-resources</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<username>root</username>
									<password><PASSWORD>>
									<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
									<sqlCommand>drop database if exists `cloud`</sqlCommand>
								</configuration>
							</execution>
                            <execution>
                                <id>create-database</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password>${<PASSWORD>}</password>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>create database `cloud`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>drop-database-usage</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password><PASSWORD>>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>drop database if exists `cloud_usage`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>create-database-usage</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password><PASSWORD>>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>create database `cloud_usage`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>drop-database-cloudbridge</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password><PASSWORD>>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>drop database if exists `cloudbridge`</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>create-database-cloudbridge</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <username>root</username>
                                    <password>${<PASSWORD>}</password>
                                    <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
                                    <sqlCommand>create database `cloudbridge`</sqlCommand>
                                </configuration>
                            </execution>
							<execution>
								<id>create-schema</id>
								<phase>process-test-resources</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<srcFiles>
										<srcFile>${basedir}/target/db/create-schema.sql</srcFile>
										<srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile>
										<srcFile>${basedir}/target/db/templates.sql</srcFile>
										<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_schema.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_multipart.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_index.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_multipart_alter.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_bucketpolicy.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_policy_alter.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_offering.sql</srcFile>
										<srcFile>${basedir}/target/db/cloudbridge_offering_alter.sql</srcFile>
									</srcFiles>
								</configuration>
							</execution>
                            <execution>
                                <id>prefill-schema</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <sqlCommand>INSERT INTO `cloud`.`domain` (id, name, parent, path, owner) VALUES (1, 'ROOT', NULL, '/', 2)</sqlCommand>
                                </configuration>
                            </execution>
                            <execution>
                                <id>prefill-configuration</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <sqlCommand>INSERT INTO `cloud`.`configuration` (category, instance, component, name, value) VALUES ('Hidden', 'DEFAULT', 'management-server', 'init', 'false')</sqlCommand>
                                </configuration>
                            </execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

{'fraction_non_alphanumeric': 0.12623490669593854, 'fraction_numerical': 0.003868067534368303, 'mean_word_length': 1.3581905583631209, 'pattern_counts': {'":': 0, '<': 603, '<?xml version=': 0, '>': 608, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 58, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7511391', 'n_tokens_mistral': 6476, 'n_tokens_neox': 4727, 'n_words': 770}