<commit_before>package org.sagebionetworks.repo.model.dbo.persistence;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

import org.sagebionetworks.repo.model.dbo.FieldColumn;
import org.sagebionetworks.repo.model.dbo.MigratableDatabaseObject;
import org.sagebionetworks.repo.model.dbo.TableMapping;
import org.sagebionetworks.repo.model.dbo.migration.MigratableTableTranslation;
import org.sagebionetworks.repo.model.migration.MigrationType;

import static org.sagebionetworks.repo.model.query.jdo.SqlConstants.*;

/**
 * Database Object for a MembershipInvtnSubmission.
 *
 */
public class DBOMembershipInvtnSubmission implements MigratableDatabaseObject<DBOMembershipInvtnSubmission, DBOMembershipInvtnSubmission> {
	
	private static final FieldColumn[] FIELDS = new FieldColumn[] {
		new FieldColumn("id", COL_MEMBERSHIP_INVITATION_SUBMISSION_ID, true).withIsBackupId(true),
		new FieldColumn("etag", COL_MEMBERSHIP_INVITATION_ETAG).withIsEtag(true),
		new FieldColumn("createdOn", COL_MEMBERSHIP_INVITATION_SUBMISSION_CREATED_ON),
		new FieldColumn("teamId", COL_MEMBERSHIP_INVITATION_SUBMISSION_TEAM_ID),
		new FieldColumn("expiresOn", COL_MEMBERSHIP_INVITATION_SUBMISSION_EXPIRES_ON),
		new FieldColumn("inviteeId", COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID),
		new FieldColumn("inviteeEmail", COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID),
		new FieldColumn("properties", COL_MEMBERSHIP_INVITATION_SUBMISSION_PROPERTIES)
	};
	
	private Long id;
	private String etag;
	private Long createdOn;
	private Long teamId;
	private Long expiresOn;
	private Long inviteeId;
	private String inviteeEmail;
	private byte[] properties;

	@Override
	public TableMapping<DBOMembershipInvtnSubmission> getTableMapping() {
		return new TableMapping<DBOMembershipInvtnSubmission>(){
			@Override
			public DBOMembershipInvtnSubmission mapRow(ResultSet rs, int rowNum) throws SQLException {
				DBOMembershipInvtnSubmission dbo = new DBOMembershipInvtnSubmission();
				dbo.setId(rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_ID));
				String etag = rs.getString(COL_MEMBERSHIP_INVITATION_ETAG);
				if (rs.wasNull()) etag=null;
				dbo.setEtag(etag);
				Long createdOn = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_CREATED_ON);
				if (rs.wasNull()) createdOn=null;
				dbo.setCreatedOn(createdOn);
				dbo.setTeamId(rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_TEAM_ID));
				Long expiresOn = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_EXPIRES_ON);
				if (rs.wasNull()) expiresOn=null;
				dbo.setExpiresOn(expiresOn);
				Long inviteeId = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID);
				if (rs.wasNull()) inviteeId=null;
				dbo.setInviteeId(inviteeId);
				String inviteeEmail = rs.getString(COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID);
				if (rs.wasNull()) inviteeEmail=null;
				dbo.setInviteeEmail(inviteeEmail);
				java.sql.Blob blob = rs.getBlob(COL_MEMBERSHIP_INVITATION_SUBMISSION_PROPERTIES);
				if(blob != null){
					dbo.setProperties(blob.getBytes(1, (int) blob.length()));
				}
				return dbo;
			}

			@Override
			public String getTableName() {
				return TABLE_MEMBERSHIP_INVITATION_SUBMISSION;<commit_msg>Fix typo<commit_after>package org.sagebionetworks.repo.model.dbo.persistence;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

import org.sagebionetworks.repo.model.dbo.FieldColumn;
import org.sagebionetworks.repo.model.dbo.MigratableDatabaseObject;
import org.sagebionetworks.repo.model.dbo.TableMapping;
import org.sagebionetworks.repo.model.dbo.migration.MigratableTableTranslation;
import org.sagebionetworks.repo.model.migration.MigrationType;

import static org.sagebionetworks.repo.model.query.jdo.SqlConstants.*;

/**
 * Database Object for a MembershipInvtnSubmission.
 *
 */
public class DBOMembershipInvtnSubmission implements MigratableDatabaseObject<DBOMembershipInvtnSubmission, DBOMembershipInvtnSubmission> {
	
	private static final FieldColumn[] FIELDS = new FieldColumn[] {
		new FieldColumn("id", COL_MEMBERSHIP_INVITATION_SUBMISSION_ID, true).withIsBackupId(true),
		new FieldColumn("etag", COL_MEMBERSHIP_INVITATION_ETAG).withIsEtag(true),
		new FieldColumn("createdOn", COL_MEMBERSHIP_INVITATION_SUBMISSION_CREATED_ON),
		new FieldColumn("teamId", COL_MEMBERSHIP_INVITATION_SUBMISSION_TEAM_ID),
		new FieldColumn("expiresOn", COL_MEMBERSHIP_INVITATION_SUBMISSION_EXPIRES_ON),
		new FieldColumn("inviteeId", COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID),
		new FieldColumn("inviteeEmail", COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_EMAIL),
		new FieldColumn("properties", COL_MEMBERSHIP_INVITATION_SUBMISSION_PROPERTIES)
	};
	
	private Long id;
	private String etag;
	private Long createdOn;
	private Long teamId;
	private Long expiresOn;
	private Long inviteeId;
	private String inviteeEmail;
	private byte[] properties;

	@Override
	public TableMapping<DBOMembershipInvtnSubmission> getTableMapping() {
		return new TableMapping<DBOMembershipInvtnSubmission>(){
			@Override
			public DBOMembershipInvtnSubmission mapRow(ResultSet rs, int rowNum) throws SQLException {
				DBOMembershipInvtnSubmission dbo = new DBOMembershipInvtnSubmission();
				dbo.setId(rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_ID));
				String etag = rs.getString(COL_MEMBERSHIP_INVITATION_ETAG);
				if (rs.wasNull()) etag=null;
				dbo.setEtag(etag);
				Long createdOn = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_CREATED_ON);
				if (rs.wasNull()) createdOn=null;
				dbo.setCreatedOn(createdOn);
				dbo.setTeamId(rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_TEAM_ID));
				Long expiresOn = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_EXPIRES_ON);
				if (rs.wasNull()) expiresOn=null;
				dbo.setExpiresOn(expiresOn);
				Long inviteeId = rs.getLong(COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_ID);
				if (rs.wasNull()) inviteeId=null;
				dbo.setInviteeId(inviteeId);
				String inviteeEmail = rs.getString(COL_MEMBERSHIP_INVITATION_SUBMISSION_INVITEE_EMAIL);
				if (rs.wasNull()) inviteeEmail=null;
				dbo.setInviteeEmail(inviteeEmail);
				java.sql.Blob blob = rs.getBlob(COL_MEMBERSHIP_INVITATION_SUBMISSION_PROPERTIES);
				if(blob != null){
					dbo.setProperties(blob.getBytes(1, (int) blob.length()));
				}
				return dbo;
			}

			@Override
			public String getTableName() {
				return TABLE_MEMBERSHIP_INVITATION_SUBMISSION;
{'fraction_non_alphanumeric': 0.09064100574266645, 'fraction_numerical': 0.0003104144032283098, 'mean_word_length': 6.763855421686747, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5634181', 'n_tokens_mistral': 2541, 'n_tokens_neox': 2379, 'n_words': 326}