<commit_before>package com.github.diegopacheco.dynomite.cluster.checker.hystrix;

import com.github.diegopacheco.dynomite.cluster.checker.DynomiteClusterCheckerMain;
import com.netflix.config.ConfigurationManager;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.netflix.hystrix.HystrixCommandProperties;
import com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy;

public class CommandDCC extends HystrixCommand<String> {

    private final String seeds;
    private final Boolean isTelemetryMode;

    public CommandDCC(String seeds,Boolean isTelemetryMode) {
        
        super(Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("DCCGroup"))
                .andCommandPropertiesDefaults(
                	HystrixCommandProperties.Setter()
                	   .withExecutionTimeoutEnabled(true)
                	   .withExecutionIsolationThreadInterruptOnTimeout(true)
                	   .withExecutionIsolationStrategy(ExecutionIsolationStrategy.THREAD)
                       .withExecutionTimeoutInMilliseconds(15000)
                    )
        );
        
        this.seeds = seeds;
        this.isTelemetryMode = isTelemetryMode;
        
//        ConfigurationManager.getConfigInstance().setProperty(
//        		  "hystrix.command.DCCGroup.execution.isolation.thread.timeoutInMilliseconds", 
//        		  15000);
    }
    
    @Override
    protected String getFallback() {
    	return "DCC TIMEOUT";
    }

    @Override
    protected String run() {
    	DynomiteClusterCheckerMain dcc = new DynomiteClusterCheckerMain();
		String json = dcc.run(seeds, isTelemetryMode);
		return json;
    }
}<commit_msg>change geral timeout to 20s<commit_after>package com.github.diegopacheco.dynomite.cluster.checker.hystrix;

import com.github.diegopacheco.dynomite.cluster.checker.DynomiteClusterCheckerMain;
import com.netflix.config.ConfigurationManager;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.netflix.hystrix.HystrixCommandProperties;
import com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy;

public class CommandDCC extends HystrixCommand<String> {

    private final String seeds;
    private final Boolean isTelemetryMode;

    public CommandDCC(String seeds,Boolean isTelemetryMode) {
        
        super(Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("DCCGroup"))
                .andCommandPropertiesDefaults(
                	HystrixCommandProperties.Setter()
                	   .withExecutionTimeoutEnabled(true)
                	   .withExecutionIsolationThreadInterruptOnTimeout(true)
                	   .withExecutionIsolationStrategy(ExecutionIsolationStrategy.THREAD)
                       .withExecutionTimeoutInMilliseconds(20000)
                    )
        );
        
        this.seeds = seeds;
        this.isTelemetryMode = isTelemetryMode;
        
//        ConfigurationManager.getConfigInstance().setProperty(
//        		  "hystrix.command.DCCGroup.execution.isolation.thread.timeoutInMilliseconds", 
//        		  15000);
    }
    
    @Override
    protected String getFallback() {
    	return "DCC TIMEOUT";
    }

    @Override
    protected String run() {
    	DynomiteClusterCheckerMain dcc = new DynomiteClusterCheckerMain();
		String json = dcc.run(seeds, isTelemetryMode);
		return json;
    }
}
{'fraction_non_alphanumeric': 0.0768782760629004, 'fraction_numerical': 0.0064065230052417, 'mean_word_length': 3.0081680280046674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '425653', 'n_tokens_mistral': 1001, 'n_tokens_neox': 963, 'n_words': 136}