<commit_before><?php
	defined('BASEPATH') OR exit('No direct script access allowed');

	class Api extends CI_Controller {

		public function queue_song() {
			$this->load->model('Themesong_model', 'themesong');
			$this->themesong->save_song($this->input->post());
			header('HTTP/1.0 200 Song added to queue');
		}
	
		public function play_next_song() {
			$this->load->model('Themesong_model', 'themesong');
			$song = $this->themesong->get_next_song();
			
			if($song) {
				echo json_encode($song);
			} else {<commit_msg>throw 200 when adding song<commit_after><?php
	defined('BASEPATH') OR exit('No direct script access allowed');

	class Api extends CI_Controller {

		public function queue_song() {
			$this->load->model('Themesong_model', 'themesong');
			$this->themesong->save_song($this->input->post());
			echo '{status:success}';
			
		}
	
		public function play_next_song() {
			$this->load->model('Themesong_model', 'themesong');
			$song = $this->themesong->get_next_song();
			
			if($song) {
				echo json_encode($song);
			} else {
{'fraction_non_alphanumeric': 0.17015209125475286, 'fraction_numerical': 0.0076045627376425855, 'mean_word_length': 4.455958549222798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '339268', 'n_tokens_mistral': 421, 'n_tokens_neox': 339, 'n_words': 70}