<commit_before>#include "AssembledSystem.h"

namespace sofa {
	namespace component {
		namespace linearsolver {


			AssembledSystem::AssembledSystem(unsigned m, unsigned n) 
				: m(m), 
				  n(n),
				  dt(0)
			{
				if( !m ) return;
				
				// M.resize(m, m);
				// K.resize(m, m);

				H.resize(m, m);
				P.resize(m, m);
			
				f = vec::Zero( m );
				v = vec::Zero( m );
				p = vec::Zero( m );
				
				if( n ) {
					J.resize(n, m);

					C.resize(n, n);
					phi = vec::Zero(n); 

					flags.setConstant(n, SolverFlags::NO_FLAG);
				}
				
			}

			unsigned AssembledSystem::size() const { return m + n; }
			
		}
	}
}<commit_msg>r9450/sofa : Compliant: fixed unallocated data vector in AssembledSystem<commit_after>#include "AssembledSystem.h"

namespace sofa {
	namespace component {
		namespace linearsolver {


			AssembledSystem::AssembledSystem(unsigned m, unsigned n) 
				: m(m), 
				  n(n),
				  dt(0)
			{
				if( !m ) return;
				
				// M.resize(m, m);
				// K.resize(m, m);

				H.resize(m, m);
				P.resize(m, m);
			
				f = vec::Zero( m );
				v = vec::Zero( m );
				p = vec::Zero( m );
				
				if( n ) {
					J.resize(n, m);

					C.resize(n, n);
					phi = vec::Zero(n); 

					flags.setConstant(n, SolverFlags::NO_FLAG);
					data.setConstant(n, 0);
				}
				
			}

			unsigned AssembledSystem::size() const { return m + n; }
			
		}
	}
}
{'fraction_non_alphanumeric': 0.16545718432510886, 'fraction_numerical': 0.0050798258345428155, 'mean_word_length': 2.091928251121076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6719872', 'n_tokens_mistral': 713, 'n_tokens_neox': 523, 'n_words': 111}