<commit_before># Inviwo Python script 
import inviwo 

def color(x):
   r = x
   g = 1-x
   return (r,g,0)

inviwo.clearTransferfunction("SimpleRaycaster.transferFunction")
inviwo.addPointToTransferFunction("SimpleRaycaster.transferFunction",(0.0,0.0),(0,0,0)) 

for i in range(1,256,9):
   x = i / 256.0
   a = 0
   if i%2==1:
      a = 0.1
   inviwo.addPointToTransferFunction("SimpleRaycaster.transferFunction",(x,a),color(x)) 


inviwo.addPointToTransferFunction("SimpleRaycaster.transferFunction",(1.0,0.0),(0,0,0)) <commit_msg>PythonScripts: Fix for create_transferfunction.py example script<commit_after># Inviwo Python script 
import inviwo 

def color(x):
   r = x
   g = 1-x
   return (r,g,0)

inviwo.clearTransferfunction("VolumeRaycaster.transferFunction")
inviwo.addPointToTransferFunction("VolumeRaycaster.transferFunction",(0.0,0.0),(0,0,0)) 

for i in range(1,256,9):
   x = i / 256.0
   a = 0
   if i%2==1:
      a = 0.1
   inviwo.addPointToTransferFunction("VolumeRaycaster.transferFunction",(x,a),color(x)) 


inviwo.addPointToTransferFunction("VolumeRaycaster.transferFunction",(1.0,0.0),(0,0,0)) 
{'fraction_non_alphanumeric': 0.1486123545210385, 'fraction_numerical': 0.05371530886302596, 'mean_word_length': 5.043243243243243, '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': '4997493', 'n_tokens_mistral': 460, 'n_tokens_neox': 422, 'n_words': 67}