<commit_before># Script to wrap PETSc header files with Julia code

using Clang_orig.cindex
using Clang_orig.wrap_c
using Compat

import Clang_orig.wrap_c.repr_jl

include("rewriter.jl")
PETSC_INCLUDE = "../../deps/RealDouble/petsc-3.6.0/include"
petsc_header = [joinpath(PETSC_INCLUDE, "petsc.h")]
h1 = "/usr/lib/gcc/x86_64-linux-gnu/4.8/include"  # get some C datatype definitions like size_t
h2 = joinpath(PETSC_INCLUDE, "petscsys.h")

# Set up include paths
clang_includes = ASCIIString[]
push!(clang_includes, PETSC_INCLUDE)
push!(clang_includes, h1)
push!(clang_includes, h2)

<commit_msg>work on better auto generation<commit_after># Script to wrap PETSc header files with Julia code

using Clang_orig.cindex
using Clang_orig.wrap_c
using Compat

import Clang_orig.wrap_c.repr_jl

#=
using Clang.cindex
using Clang.wrap_c
using Compat

import Clang.wrap_c.repr_jl
=#
include("rewriter.jl")
PETSC_INCLUDE = "../../deps/RealDouble/petsc-3.6.0/include"
ARCH_INCLUDE = "../../deps/RealDouble/petsc-3.6.0/arch-linux2-c-debug/include"  # TEMPORARY
petsc_header = [joinpath(PETSC_INCLUDE, "petsc.h")]
h1 = "/usr/lib/gcc/x86_64-linux-gnu/4.8/include"  # get some C datatype definitions like size_t
h2 = joinpath(PETSC_INCLUDE, "petscsys.h")
h3 = joinpath(ARCH_INCLUDE, "petscconf.h")
# Set up include paths
clang_includes = ASCIIString[]
push!(clang_includes, PETSC_INCLUDE)
push!(clang_includes, h1)
push!(clang_includes, h2)
push!(clang_includes, h3)


{'fraction_non_alphanumeric': 0.12732278045423262, 'fraction_numerical': 0.02202339986235375, 'mean_word_length': 5.433628318584071, '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': '6786444', 'n_tokens_mistral': 601, 'n_tokens_neox': 557, 'n_words': 116}