<commit_before><?php

/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */
namespace Rss\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Feed\Reader\Reader;
use Zend\Http\Client;
use Zend\Http\Header\SetCookie;
use Zend\Http\Cookies;
use Zend\Http\Request;
use Zend\Validator\Uri;
use Zend\Session\Container;
use Zend\Session\Storage\ArrayStorage;
use Zend\Session\SessionManager;

class IndexController extends AbstractActionController
{

    /**
     * 
     * @return \Zend\View\Model\ViewModel
     */
    public function indexAction()
    {
        $request = $this->getRequest();
        $cat = "";
        if (isset($request->getCookie()->favcat)) {
            $cat = $request->getCookie()->favcat;
        }

        $config = array(
                'adapter' => 'Zend\Http\Client\Adapter\Proxy',
                'proxy_host' => 'cie-vproxy.cie.etat.lu',
                'proxy_port' => 8080,
                'proxy_user' => '',
                'proxy_pass' => ''
        );

        $temp = "http://feeds.abcnews.com/abcnews/worldnewsheadlines";
        $client = new Client($temp, $config);

        $reader = new Reader();

        try {<commit_msg>session cookie<commit_after><?php

/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */
namespace Rss\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Feed\Reader\Reader;
use Zend\Http\Client;
use Zend\Http\Header\SetCookie;
use Zend\Http\Cookies;
use Zend\Http\Request;
use Zend\Validator\Uri;
use Zend\Session\Container;
use Zend\Session\Storage\ArrayStorage;
use Zend\Session\SessionManager;

class IndexController extends AbstractActionController
{

    /**
     * 
     * @return \Zend\View\Model\ViewModel
     */
    public function indexAction()
    {
        $request = $this->getRequest();
        $cat = "";
        if (isset($request->getCookie()->favcat)) {
            $cat = $request->getCookie()->favcat;
        }

        $config = array(
                'adapter' => 'Zend\Http\Client\Adapter\Proxy',
                'proxy_host' => '***',
                'proxy_port' => 8080,
                'proxy_user' => '',
                'proxy_pass' => ''
        );

        $temp = "http://feeds.abcnews.com/abcnews/worldnewsheadlines";
        $client = new Client($temp, $config);

        $reader = new Reader();

        try {
{'fraction_non_alphanumeric': 0.14454976303317535, 'fraction_numerical': 0.008124576844955992, 'mean_word_length': 2.568840579710145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '4932894', 'n_tokens_mistral': 950, 'n_tokens_neox': 865, 'n_words': 170}