<commit_before><?php
// https://gist.github.com/2312855
class QActiveRecord extends CActiveRecord {
	
	
	public function afterSave(){

		if(Yii::app()->db->driverName == 'oci'){

			try {
				$connection=Yii::app()->db;
				$sql = "select {$this->sequenceName}.currval from dual";
				$result = $connection->createCommand($sql)->queryRow();
							
				$this->ID = $result['CURRVAL'];

			} catch (Exception $e) {
				//echo("Error: $e\n");
			}
			
		} else {
			// not implemented yet, doubt this will work
			$this->ID = Yii::app()->db->getLastInsertID();
			
		}
		<commit_msg>fixed the autoincrement for non oracle pdos<commit_after><?php
// https://gist.github.com/2312855
class QActiveRecord extends CActiveRecord {
	
	
	public function afterSave(){

		if(Yii::app()->db->driverName == 'oci'){

			try {
				$connection=Yii::app()->db;
				$sql = "select {$this->sequenceName}.currval from dual";
				$result = $connection->createCommand($sql)->queryRow();
							
				$this->ID = $result['CURRVAL'];

			} catch (Exception $e) {
				//echo("Error: $e\n");
			}
			
		} else {
			// not implemented yet, doubt this will work
			
		}
		
{'fraction_non_alphanumeric': 0.18476357267950963, 'fraction_numerical': 0.012259194395796848, 'mean_word_length': 3.0531914893617023, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 2, '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': '1999170', 'n_tokens_mistral': 476, 'n_tokens_neox': 373, 'n_words': 78}