<commit_before>module Api
	module V1
		class CustomersController < ApplicationController
			respond_to :json
		end
	end
end<commit_msg>Add API version for CustomerController<commit_after>module Api
	module V1
		class CustomersController < ApiApplicationController

            def index
                respond_with Customer.all
            end
            def show
                respond_with Customer.find(params[:id])
            end
            def create
                respond_with Customer.create(customer_params)
            end
            def update
                respond_with Customer.update(params[:id],customer_params)
            end
            def destroy
                respond_with Customer.destroy(params[:id])
            end
            def customer_location
                @customer = Customer.find(params[:id])
                respond_with @customer.location.to_json(only: [:id, :lat , :long] ) , status: :ok
            end

            private
                # Never trust parameters from the scary internet, only allow the white list through.
                def customer_params
                  params.require(:customer).permit(:name, :email, :device_model, :gcm_id ,:password, location_attributes: [:lat , :long])
                end
		end
	end
end
{'fraction_non_alphanumeric': 0.06386292834890965, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 1.811816192560175, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5661382', 'n_tokens_mistral': 321, 'n_tokens_neox': 302, 'n_words': 87}