<commit_before>package com.example.sms;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmsReceiverController {

	@RequestMapping(value = "/sendsms", method = RequestMethod.POST, consumes = { MediaType.APPLICATION_XML_VALUE,
			MediaType.APPLICATION_JSON_VALUE })
	public Sms sendSms(@RequestBody(required = false) Sms smsDetails) {
		System.out.println(smsDetails);
		return smsDetails;
	}
}<commit_msg>added multivalue support for twilio.<commit_after>package com.example.sms;

import java.util.Iterator;

import org.springframework.http.MediaType;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmsReceiverController {

//	@RequestMapping(value = "/sendsms", method = RequestMethod.POST, consumes = { MediaType.APPLICATION_FORM_URLENCODED_VALUE,
//			MediaType.APPLICATION_JSON_VALUE })
//	public Sms sendSms(@RequestBody(required = false) Sms smsDetails) {
//		System.out.println(smsDetails);MultiValueMap
//		return smsDetails;
//	}
	
	@RequestMapping(value = "/sendsms", method = RequestMethod.POST, consumes = { MediaType.APPLICATION_FORM_URLENCODED_VALUE,
			MediaType.APPLICATION_JSON_VALUE })
	public MultiValueMap<String, String> sendSms(@RequestBody MultiValueMap<String, String> smsDetails) {
		System.out.println(smsDetails.toString());
		System.out.println(smsDetails.get("accountSid"));
		System.out.println(smsDetails.get("from"));
		System.out.println(smsDetails.get("to"));
		System.out.println(smsDetails.get("body"));
		System.out.println(smsDetails.get("messageSid"));
		return smsDetails;
	}
	
}
{'fraction_non_alphanumeric': 0.11739130434782609, 'fraction_numerical': 0.0, 'mean_word_length': 6.586080586080586, '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': '7488240', 'n_tokens_mistral': 649, 'n_tokens_neox': 623, 'n_words': 94}