<commit_before>#! /usr/bin/python

import prman

ri = prman.Ri()

filename = "scene.rib"

ri.Begin(filename)

# set up the scene
ri.Display("scene.exr", "framebuffer", "rgba")
ri.Format(720, 575, 1)
ri.Projection(ri.PERSPECTIVE)

# set up the world

ri.WorldBegin()

ri.Translate(0, 0, 2)

ri.Sphere(1, -1, 1, 360)
<commit_msg>scene.py: added pointy end<commit_after>#! /usr/bin/python
import getpass
import time
import prman
import math

ri = prman.Ri()

filename = "scene.rib"

ri.Begin(filename)

# set up the scene
ri.Display("scene.exr", "framebuffer", "rgba")
ri.Format(720, 575, 1)
ri.Projection(ri.PERSPECTIVE)

# set up the world

ri.WorldBegin()

ri.Translate(0, 0, 2)

# the pointy end
ri.TransformBegin()
end_height = 0.3
ri.Translate(0, end_height, 0)
ri.Rotate(90, 1, 0, 0)
ri.Cone(end_height, 0.1, 360)
ri.TransformEnd()

#the metal thing
#ri.TransformBegin()
#ri.Rotate(-90, 1, 0, 0)
#ri.Cilinder(0.3, 0.1, 360)
#ri.TransformEnd()

{'fraction_non_alphanumeric': 0.1689545934530095, 'fraction_numerical': 0.054910242872228086, 'mean_word_length': 4.576470588235294, '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': '28798', 'n_tokens_mistral': 445, 'n_tokens_neox': 408, 'n_words': 98}