<commit_before>// This program must be compiled and executed with Aclic as follows
//     
// .x unuranFoamTest.C+
//
// it is an extension of tutorials foam_kanwa.C to compare 
// generation of a 2D distribution with unuran and Foam
//_____________________________________________________________________________

#include "TH2.h"
#include "TF2.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TMath.h"
#include "TRandom3.h"
#include "TFoam.h"
#include "TFoamIntegrand.h"
#include "TStopwatch.h"
#include "TRoot.h"


#include "TUnuran.h"
#include "TUnuranMultiContDist.h"

#include <iostream>

//_____________________________________________________________________________
Double_t sqr(Double_t x){return x*x;};
//_____________________________________________________________________________
//_____________________________________________________________________________


Double_t Camel2(Int_t nDim, Double_t *Xarg){
// 2-dimensional distribution for Foam, normalized to one (within 1e-5)
  Double_t x=Xarg[0];
  Double_t y=Xarg[1];
  Double_t GamSq= sqr(0.100e0);
  Double_t Dist= 0;
  Dist +=exp(-(sqr(x-1./3) +sqr(y-1./3))/GamSq)/GamSq/TMath::Pi();
  Dist +=exp(-(sqr(x-2./3) +sqr(y-2./3))/GamSq)/GamSq/TMath::Pi();
  return 0.5*Dist;
}// Camel2

class FoamFunction : public TFoamIntegrand { <commit_msg>fix name for include TROOT.h for Linux (cap sensitive OS)<commit_after>// This program must be compiled and executed with Aclic as follows
//     
// .x unuranFoamTest.C+
//
// it is an extension of tutorials foam_kanwa.C to compare 
// generation of a 2D distribution with unuran and Foam
//_____________________________________________________________________________

#include "TH2.h"
#include "TF2.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TMath.h"
#include "TRandom3.h"
#include "TFoam.h"
#include "TFoamIntegrand.h"
#include "TStopwatch.h"
#include "TROOT.h"


#include "TUnuran.h"
#include "TUnuranMultiContDist.h"

#include <iostream>

//_____________________________________________________________________________
Double_t sqr(Double_t x){return x*x;};
//_____________________________________________________________________________
//_____________________________________________________________________________


Double_t Camel2(Int_t nDim, Double_t *Xarg){
// 2-dimensional distribution for Foam, normalized to one (within 1e-5)
  Double_t x=Xarg[0];
  Double_t y=Xarg[1];
  Double_t GamSq= sqr(0.100e0);
  Double_t Dist= 0;
  Dist +=exp(-(sqr(x-1./3) +sqr(y-1./3))/GamSq)/GamSq/TMath::Pi();
  Dist +=exp(-(sqr(x-2./3) +sqr(y-2./3))/GamSq)/GamSq/TMath::Pi();
  return 0.5*Dist;
}// Camel2

class FoamFunction : public TFoamIntegrand { 
{'fraction_non_alphanumeric': 0.12957430918595966, 'fraction_numerical': 0.020164301717699777, 'mean_word_length': 5.424460431654676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5304760', 'n_tokens_mistral': 920, 'n_tokens_neox': 882, 'n_words': 207}