<commit_before><?php
namespace FM\ElfinderBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
 * Loader service for Elfinder backend
 * displays Elfinder
 * @author <NAME> <<EMAIL>>
 * @copyright 2012-2013 <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 */
class ElfinderController extends Controller
{
    /**
     * Renders Elfinder
     * @return Response
     */
    public function showAction()
    {
        $parameters = $this->container->getParameter('fm_elfinder');
        $editor = $parameters['editor'];
        $locale = $parameters['locale'];
        $fullscreen = $parameters['fullscreen'];
        switch ($editor){
            case 'ckeditor':
                return $this->render('FMElfinderBundle:Elfinder:ckeditor.html.twig', array('locale' => $locale, 'fullscreen' => $fullscreen));
                break;
            case 'tinymce':
                return $this->render('FMElfinderBundle:Elfinder:tinymce.html.twig', array(
                    'locale' => $locale,
                    'tinymce_popup_path' => $this->getAssetsUrl($parameters['tinymce_popup_path']),
                     'fullscreen' => $fullscreen
                ));
                break;
            default:
                return $this->render('FMElfinderBundle:Elfinder:simple.html.twig', array('locale' => $locale, 'fullscreen' => $fullscreen));
        }
    }

    /**
     * Loader service init
     */
    public function loadAction()
    {
        $loader = $this->container->get('elfinder_loader');
        $loader->load();
    }

    /**
     * Get url from config string
     *
     * @param string $inputUrl
     *
     * @return string<commit_msg>Remove one extra space<commit_after><?php
namespace FM\ElfinderBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
 * Loader service for Elfinder backend
 * displays Elfinder
 * @author <NAME> <<EMAIL>>
 * @copyright 2012-2013 <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 */
class ElfinderController extends Controller
{
    /**
     * Renders Elfinder
     * @return Response
     */
    public function showAction()
    {
        $parameters = $this->container->getParameter('fm_elfinder');
        $editor = $parameters['editor'];
        $locale = $parameters['locale'];
        $fullscreen = $parameters['fullscreen'];
        switch ($editor){
            case 'ckeditor':
                return $this->render('FMElfinderBundle:Elfinder:ckeditor.html.twig', array('locale' => $locale, 'fullscreen' => $fullscreen));
                break;
            case 'tinymce':
                return $this->render('FMElfinderBundle:Elfinder:tinymce.html.twig', array(
                    'locale' => $locale,
                    'tinymce_popup_path' => $this->getAssetsUrl($parameters['tinymce_popup_path']),
                    'fullscreen' => $fullscreen
                ));
                break;
            default:
                return $this->render('FMElfinderBundle:Elfinder:simple.html.twig', array('locale' => $locale, 'fullscreen' => $fullscreen));
        }
    }

    /**
     * Loader service init
     */
    public function loadAction()
    {
        $loader = $this->container->get('elfinder_loader');
        $loader->load();
    }

    /**
     * Get url from config string
     *
     * @param string $inputUrl
     *
     * @return string
{'fraction_non_alphanumeric': 0.13744343891402716, 'fraction_numerical': 0.004524886877828055, 'mean_word_length': 2.378223495702006, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6793835', 'n_tokens_mistral': 1006, 'n_tokens_neox': 965, 'n_words': 186}