<commit_before>/*
 *  JavaSMT is an API wrapper for a collection of SMT solvers.
 *  This file is part of JavaSMT.
 *
 *  Copyright (C) 2007-2015  <NAME>
 *  All rights reserved.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.sosy_lab.solver.visitors;

import com.google.common.base.Function;

import org.sosy_lab.solver.api.BooleanFormula;
import org.sosy_lab.solver.api.Formula;
import org.sosy_lab.solver.api.FormulaManager;
import org.sosy_lab.solver.api.FormulaType;
import org.sosy_lab.solver.api.UfDeclaration;

import java.util.List;

public abstract class DefaultFormulaVisitor<R> extends FormulaVisitor<R> {
  protected DefaultFormulaVisitor(FormulaManager pFmgr) {
    super(pFmgr);
  }

  protected abstract R visitDefault();

  @Override
  public R visitFreeVariable(String name, FormulaType<?> type) {
    return visitDefault();
  }

  public R visitBoundVariable(String name, FormulaType<?> type, Formula boundingAST) {
    return visitDefault();
  }

  @Override
  public R visitNumeral(String numeral, FormulaType<?> type) {
    return visitDefault();
  }

  @Override
  public R visitUF(String functionName, UfDeclaration<?> declaration, List<Formula> args) {
    return visitDefault();
  }

  @Override
  public R visitFunction(
      String functionName,
      List<Formula> args,
      FormulaType<?> type,
      Function<List<Formula>, Formula> newApplicationConstructor) {
    return visitDefault();
  }

  @Override
  public R visitForAll(List<Formula> variables, BooleanFormula body) {
    return visitDefault();
  }

  @Override
  public R visitExists(List<Formula> variables, BooleanFormula body) {
    return visitDefault();
  }
}
<commit_msg>Method in DefaultFormulaVisitor did not actually override method.<commit_after>/*
 *  JavaSMT is an API wrapper for a collection of SMT solvers.
 *  This file is part of JavaSMT.
 *
 *  Copyright (C) 2007-2015  <NAME>
 *  All rights reserved.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.sosy_lab.solver.visitors;

import com.google.common.base.Function;

import org.sosy_lab.solver.api.BooleanFormula;
import org.sosy_lab.solver.api.Formula;
import org.sosy_lab.solver.api.FormulaManager;
import org.sosy_lab.solver.api.FormulaType;
import org.sosy_lab.solver.api.UfDeclaration;

import java.util.List;

public abstract class DefaultFormulaVisitor<R> extends FormulaVisitor<R> {
  protected DefaultFormulaVisitor(FormulaManager pFmgr) {
    super(pFmgr);
  }

  protected abstract R visitDefault();

  @Override
  public R visitFreeVariable(String name, FormulaType<?> type) {
    return visitDefault();
  }

  @Override
  public R visitBoundVariable(String name, FormulaType<?> type) {
    return visitDefault();
  }

  @Override
  public R visitNumeral(String numeral, FormulaType<?> type) {
    return visitDefault();
  }

  @Override
  public R visitUF(String functionName, UfDeclaration<?> declaration, List<Formula> args) {
    return visitDefault();
  }

  @Override
  public R visitFunction(
      String functionName,
      List<Formula> args,
      FormulaType<?> type,
      Function<List<Formula>, Formula> newApplicationConstructor) {
    return visitDefault();
  }

  @Override
  public R visitForAll(List<Formula> variables, BooleanFormula body) {
    return visitDefault();
  }

  @Override
  public R visitExists(List<Formula> variables, BooleanFormula body) {
    return visitDefault();
  }
}

{'fraction_non_alphanumeric': 0.09131702939196769, 'fraction_numerical': 0.0053847879739735245, 'mean_word_length': 4.031602708803612, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5904670', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1330, 'n_words': 416}