<commit_before>package com.navid.gamemanager.controller;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.navid.gamemanager.domain.*;
import com.navid.gamemanager.persistence.*;
import com.navid.gamemanager.rest.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import javax.validation.ConstraintViolationException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collection;

import static com.google.common.collect.Lists.newArrayList;
import static com.navid.gamemanager.rest.AddPlayerResponse.fromPlayer;
import static com.navid.gamemanager.rest.GenericResponse.fromError;
import static com.navid.gamemanager.rest.InvitationResponse.fromUrl;

/**
 * Created by alberto on 7/19/15.
 */
@Controller
public class GameManagerController {

    private static final Logger logger = LoggerFactory.getLogger(GameManagerController.class);

    private volatile Server server;

    @Value("${gamemanager.url:ws://gamemanager.trafalgar.ws:61614}")
    private String serverExternalURL;

    @Resource
    private GameRepo gameRepo;

    @Resource
    private UserRepo playerRepo;

    @Resource<commit_msg>Default url<commit_after>package com.navid.gamemanager.controller;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.navid.gamemanager.domain.*;
import com.navid.gamemanager.persistence.*;
import com.navid.gamemanager.rest.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import javax.validation.ConstraintViolationException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collection;

import static com.google.common.collect.Lists.newArrayList;
import static com.navid.gamemanager.rest.AddPlayerResponse.fromPlayer;
import static com.navid.gamemanager.rest.GenericResponse.fromError;
import static com.navid.gamemanager.rest.InvitationResponse.fromUrl;

/**
 * Created by alberto on 7/19/15.
 */
@Controller
public class GameManagerController {

    private static final Logger logger = LoggerFactory.getLogger(GameManagerController.class);

    private volatile Server server;

    @Value("${gamemanager.url:ws://gamemanager.trafalgar.ws:7002}")
    private String serverExternalURL;

    @Resource
    private GameRepo gameRepo;

    @Resource
    private UserRepo playerRepo;

    @Resource
{'fraction_non_alphanumeric': 0.09704220671319375, 'fraction_numerical': 0.007643735460285809, 'mean_word_length': 5.748878923766816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2408820', 'n_tokens_mistral': 893, 'n_tokens_neox': 869, 'n_words': 164}