<commit_before># Copyright (C) 2008 University of Maryland
# All rights reserved.
# See LICENSE.txt for details.
# Author: <NAME>

#Starting Date:6/12/2009
from osrefl.model.sample_prep import *
from numpy import log, abs, min, max
from pylab import figure, show, subplot, imshow
from osrefl.loaders.andr_load import *
from osrefl.theory.scatter import *
from osrefl.theory import approximations, scatter
from osrefl.viewers import view


# Define the Samples
alternating = AlternatingSample(shell_dim = [3000.0, 3000.0, 600.0], 
                                core_dim = [3000.0, 200.0, 600.0],
                                x_increment = 0.0,
                                y_increment = 500.0,                          
                                offset = [0.0, -1400.0, 0.0])

triprism = TriPrismSample(shell_dim = [3000.0, 3000.0, 600.0], 
                                core_dim = [3000.0, 900.0, 300.0], # y seems to be off
                                x_increment = 0.0,
                                y_increment = 500.0,                          
                                offset = [0.0, -1250.0, 0.0])

cylinder = CylinderSample(shell_dim = [3000.0, 3000.0, 500.0], 
                          core_dim = [200.0, 200.0, 700.0],        # z seems to be off
                          x_increment = 1200.0,
                          y_increment = 600.0,
                          offset = [-1500.0, -1500.0, -300.0],
                          offset2 = [600.0, 300.0, 0])

# Build the Samples
alternating.Create()
triprism.Create()
cylinder.Create()

# Grab the scene object 
triprismscene = triprism.getScene()
altscene = alternating.getScene()
cylinderscene = cylinder.getScene()

# Define and build the Geometry Unit for the Cylinder sample
triprismunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = [150,150,150], scene = triprismscene)
triprismunit = triprismunit.buildUnit()
triprismunit.add_media()

altunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = [150,150,150], scene = altscene)
altunit = altunit.buildUnit()
altunit.add_media()

cylinderunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = [150,150,150], scene = cylinderscene)<commit_msg>Slight modification for readability<commit_after># Copyright (C) 2008 University of Maryland
# All rights reserved.
# See LICENSE.txt for details.
# Author: <NAME>

#Starting Date:6/12/2009
from osrefl.model.sample_prep import *
from numpy import log, abs, min, max
from pylab import figure, show, subplot, imshow
from osrefl.loaders.andr_load import *
from osrefl.theory.scatter import *
from osrefl.theory import approximations, scatter
from osrefl.viewers import view


# Define the Samples
alternating = AlternatingSample(shell_dim = [3000.0, 3000.0, 600.0], 
                                core_dim = [3000.0, 200.0, 600.0],
                                x_increment = 0.0,
                                y_increment = 500.0,                          
                                offset = [0.0, -1400.0, 0.0])

triprism = TriPrismSample(shell_dim = [3000.0, 3000.0, 600.0], 
                                core_dim = [3000.0, 700.0, 300.0], # y seems to be off
                                x_increment = 0.0,
                                y_increment = 500.0,                          
                                offset = [0.0, -1250.0, 0.0])

cylinder = CylinderSample(shell_dim = [3000.0, 3000.0, 500.0], 
                          core_dim = [200.0, 200.0, 700.0],        # z seems to be off
                          x_increment = 1200.0,
                          y_increment = 600.0,
                          offset = [-1500.0, -1500.0, -300.0],
                          offset2 = [600.0, 300.0, 0])

# Build the Samples
alternating.Create()
triprism.Create()
cylinder.Create()

# Grab the scene object 
triprismscene = triprism.getScene()
altscene = alternating.getScene()
cylinderscene = cylinder.getScene()

# Define Resolution for Slice Drawing
resolution = [200,200,200]

# Define and build the Geometry Unit for the Cylinder sample
triprismunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = resolution, scene = triprismscene)
triprismunit = triprismunit.buildUnit()
triprismunit.add_media()

altunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = resolution, scene = altscene)
altunit = altunit.buildUnit()
altunit.add_media()

cylinderunit = GeomUnit(Dxyz = [3000.0,3000.0,600.0], n = resolution, scene = cylinderscene)
{'fraction_non_alphanumeric': 0.11284134506883323, 'fraction_numerical': 0.09659219137892124, 'mean_word_length': 1.9312169312169312, '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': '7616732', 'n_tokens_mistral': 1735, 'n_tokens_neox': 1407, 'n_words': 351}