<commit_before># go-render

[![CircleCI](https://circleci.com/gh/Redsift/go-render.svg?style=svg)](https://circleci.com/gh/Redsift/go-render) [![Docker Repository on Quay](https://quay.io/repository/redsift/go-render/status "Docker Repository on Quay")](https://quay.io/repository/redsift/go-render)

Simple webkit2 based rasterizer. 

# Xvfb

`xdpyinfo` can provide stats on the virtual frame buffer.


# Metadata

render metadata www.google.com
render metadata file:///opt/gopath/src/github.com/redsift/go-render/test/local.html

## Format

--format="{{.Title}}" to just grab the title
-f "{{json .Timing}}" to get the timing information



    - |
        TEST=$(docker run $CONTAINER_NAME metadata -f "{{.Title}}" http://www.google.com)
        echo $TEST
        [ "$TEST" == "Google" ]<commit_msg>trace magic<commit_after># go-render

[![CircleCI](https://circleci.com/gh/Redsift/go-render.svg?style=svg)](https://circleci.com/gh/Redsift/go-render) [![Docker Repository on Quay](https://quay.io/repository/redsift/go-render/status "Docker Repository on Quay")](https://quay.io/repository/redsift/go-render)

Simple webkit2 based rasterizer. 

# Xvfb

`xdpyinfo` can provide stats on the virtual frame buffer.


# Metadata

render metadata www.google.com
render metadata file:///opt/gopath/src/github.com/redsift/go-render/test/local.html

## Format

--format="{{.Title}}" to just grab the title
-f "{{json .Timing}}" to get the timing information



    - |
        TEST=$(docker run $CONTAINER_NAME metadata -f "{{.Title}}" http://www.google.com)
        echo $TEST
        [ "$TEST" == "Google" ]
        
        
## Tracing
        
        sudo apt-get install strace
        
        sudo strace -f -o $CIRCLE_ARTIFACTS/bash.strace.out -p 49350 
        
        ./filter-trace.py bash.strace.out > needed-files.out
        
        sudo strace -e trace=open,stat,execve -s 80 -f -p 47324
        

{'fraction_non_alphanumeric': 0.15287958115183245, 'fraction_numerical': 0.007329842931937173, 'mean_word_length': 3.014705882352941, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '5842516', 'n_tokens_mistral': 686, 'n_tokens_neox': 652, 'n_words': 141}