<commit_before>/*
 * Copyright 1999-2010 <NAME> (l.garulli--at--orientechnologies.com)
 *
 * Licensed 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.
 */
package com.orientechnologies.orient.core.db;

import java.util.Iterator;

import com.orientechnologies.orient.core.command.OCommandRequest;
import com.orientechnologies.orient.core.db.record.ODatabaseRecord;
import com.orientechnologies.orient.core.dictionary.ODictionary;
import com.orientechnologies.orient.core.hook.ORecordHook;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.metadata.OMetadata;
import com.orientechnologies.orient.core.metadata.security.OUser;
import com.orientechnologies.orient.core.record.ORecordInternal;
import com.orientechnologies.orient.core.tx.OTransaction.TXTYPE;

@SuppressWarnings("unchecked")
public abstract class ODatabaseRecordWrapperAbstract<DB extends ODatabaseRecord<REC>, REC extends ORecordInternal<?>> extends
		ODatabaseWrapperAbstract<DB, REC> {

	public ODatabaseRecordWrapperAbstract(final DB iDatabase) {
		super(iDatabase);
		iDatabase.setDatabaseOwner((ODatabaseRecord<?>) this);
	}

	public ODatabaseRecord<REC> begin() {
		return (ODatabaseRecord<REC>) underlying.begin();
	}

	public ODatabaseRecord<REC> begin(final TXTYPE iType) {
		return (ODatabaseRecord<REC>) underlying.begin(iType);
	}

	public ODatabaseRecord<REC> commit() {
		return (ODatabaseRecord<REC>) underlying.commit();
	}

	public ODatabaseRecord<REC> rollback() {
		return (ODatabaseRecord<REC>) underlying.rollback();
	}

	public OUser getUser() {
		return underlying.getUser();
	}

	public OMetadata getMetadata() {
		return underlying.getMetadata();
	}

	public ODictionary<REC> getDictionary() {
		return underlying.getDictionary();
	}

	public Class<? extends REC> getRecordType() {
		return underlying.getRecordType();
	}

	public Iterator<REC> browseCluster(final String iClusterName) {
		return underlying.browseCluster(iClusterName);
	}

	public <RET extends OCommandRequest> RET command(final OCommandRequest iCommand) {
		return underlying.command(iCommand);
	}

	public REC newInstance() {
		return underlying.newInstance();
	}

	public ODatabaseRecordWrapperAbstract<?, ?> delete(final REC iRecord) {
		underlying.delete(iRecord);
		return this;
	}

	public REC load(final ORID iRecordId) {
		return underlying.load(iRecordId);
	}

	public REC load(final REC iRecord) {
		return underlying.load(iRecord);<commit_msg>Removed warnings<commit_after>/*
 * Copyright 1999-2010 <NAME> (l.garulli--at--orientechnologies.com)
 *
 * Licensed 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.
 */
package com.orientechnologies.orient.core.db;

import java.util.Iterator;

import com.orientechnologies.orient.core.command.OCommandRequest;
import com.orientechnologies.orient.core.db.record.ODatabaseRecord;
import com.orientechnologies.orient.core.dictionary.ODictionary;
import com.orientechnologies.orient.core.hook.ORecordHook;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.metadata.OMetadata;
import com.orientechnologies.orient.core.metadata.security.OUser;
import com.orientechnologies.orient.core.record.ORecordInternal;
import com.orientechnologies.orient.core.tx.OTransaction.TXTYPE;

@SuppressWarnings("unchecked")
public abstract class ODatabaseRecordWrapperAbstract<DB extends ODatabaseRecord<REC>, REC extends ORecordInternal<?>> extends
		ODatabaseWrapperAbstract<DB, REC> {

	public ODatabaseRecordWrapperAbstract(final DB iDatabase) {
		super(iDatabase);
		iDatabase.setDatabaseOwner((ODatabaseRecord<?>) this);
	}

	public ODatabaseRecord<REC> begin() {
		return (ODatabaseRecord<REC>) underlying.begin();
	}

	public ODatabaseRecord<REC> begin(final TXTYPE iType) {
		return (ODatabaseRecord<REC>) underlying.begin(iType);
	}

	public ODatabaseRecord<REC> commit() {
		return (ODatabaseRecord<REC>) underlying.commit();
	}

	public ODatabaseRecord<REC> rollback() {
		return (ODatabaseRecord<REC>) underlying.rollback();
	}

	public OUser getUser() {
		return underlying.getUser();
	}

	public OMetadata getMetadata() {
		return underlying.getMetadata();
	}

	public ODictionary<REC> getDictionary() {
		return underlying.getDictionary();
	}

	public Class<? extends REC> getRecordType() {
		return underlying.getRecordType();
	}

	public Iterator<REC> browseCluster(final String iClusterName) {
		return underlying.browseCluster(iClusterName);
	}

	public <RET extends OCommandRequest> RET command(final OCommandRequest iCommand) {
		return (RET) underlying.command(iCommand);
	}

	public REC newInstance() {
		return underlying.newInstance();
	}

	public ODatabaseRecordWrapperAbstract<?, ?> delete(final REC iRecord) {
		underlying.delete(iRecord);
		return this;
	}

	public REC load(final ORID iRecordId) {
		return underlying.load(iRecordId);
	}

	public REC load(final REC iRecord) {
		return underlying.load(iRecord);
{'fraction_non_alphanumeric': 0.10306831666384132, 'fraction_numerical': 0.0040684861840989996, 'mean_word_length': 5.504961411245866, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6004562', 'n_tokens_mistral': 1814, 'n_tokens_neox': 1715, 'n_words': 435}