<commit_before>//
//  ARFaceNode.swift
//  ARKit-Sampler
//
//  Created by <NAME> on 2017/12/25.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import ARKit

class ARFaceNode: SCNNode {

    init(device: MTLDevice, color: UIColor = .white) {
        let faceGeometry = ARSCNFaceGeometry(device: device)
        if let material = faceGeometry?.firstMaterial {
            material.diffuse.contents = color
            material.lightingModel = .physicallyBased
        }
        super.init()
        self.geometry = faceGeometry<commit_msg>apply shaders for face<commit_after>//
//  ARFaceNode.swift
//  ARKit-Sampler
//
//  Created by <NAME> on 2017/12/25.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import ARKit

class ARFaceNode: SCNNode {

    init(device: MTLDevice, color: UIColor = .white) {
        
        let program = SCNProgram()
        program.vertexFunctionName = "scnVertexShader"
        program.fragmentFunctionName = "scnFragmentShader"

        let faceGeometry = ARSCNFaceGeometry(device: device)
        if let material = faceGeometry?.firstMaterial {
            material.program = program
        }
        super.init()
        self.geometry = faceGeometry
{'fraction_non_alphanumeric': 0.10442773600668337, 'fraction_numerical': 0.020050125313283207, 'mean_word_length': 2.422857142857143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2885254', 'n_tokens_mistral': 372, 'n_tokens_neox': 350, 'n_words': 87}