<commit_before>package com.stackmob.customcode;

import com.stackmob.core.customcode.CustomCodeMethod;
import com.stackmob.core.rest.ProcessedAPIRequest;
import com.stackmob.core.rest.ResponseToProcess;
import com.stackmob.sdkapi.SDKServiceProvider;

import java.net.HttpURLConnection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CreateCustomer implements CustomCodeMethod {

    @Override
    public String getMethodName() {
        return "createCustomer";
    }

    @Override
    public List<String> getParams() {
        return new ArrayList<String>();
    }

    @Override
    public ResponseToProcess execute(ProcessedAPIRequest request, SDKServiceProvider serviceProvider) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("msg", "Hello, world!");
        return new ResponseToProcess(HttpURLConnection.HTTP_OK, map);
    }<commit_msg>Added test file<commit_after>package com.stackmob.customcode;

import com.stackmob.core.InvalidSchemaException;
import com.stackmob.core.DatastoreException;
import com.stackmob.core.customcode.CustomCodeMethod;
import com.stackmob.core.rest.ProcessedAPIRequest;
import com.stackmob.core.rest.ResponseToProcess;
import com.stackmob.sdkapi.SDKServiceProvider;
import com.stackmob.sdkapi.*;

import java.net.HttpURLConnection;
import java.util.*;

import com.stripe.model.Customer;

public class CreateCustomer implements CustomCodeMethod {

    @Override
    public String getMethodName() {
        return "createCustomer";
    }

    @Override
    public List<String> getParams() {
        return Arrays.asList("token", "username");
    }

    @Override
    public ResponseToProcess execute(ProcessedAPIRequest request, SDKServiceProvider serviceProvider) {
        DataService ds = serviceProvider.getDataService();
        List<SMCondition> query = new ArrayList<SMCondition>();
        Map<String, List<SMObject>> results = new HashMap<String, List<SMObject>>();

        String username = request.getParams().get("username");

        try {
            query.add(new SMEquals("username", new SMString(username)));

            results.put("results", ds.readObjects("pnuser", query));

        } catch (InvalidSchemaException ise) {
        } catch (DatastoreException dse) {}

        return new ResponseToProcess(HttpURLConnection.HTTP_OK, results);
    }
{'fraction_non_alphanumeric': 0.10357737104825292, 'fraction_numerical': 0.0, 'mean_word_length': 4.138888888888889, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '5626032', 'n_tokens_mistral': 665, 'n_tokens_neox': 650, 'n_words': 141}