<commit_before><?php
/**
 * Created by PhpStorm.
 * User: davin.bao
 * Date: 14-5-7
 * Time: PM 5:44
 */

namespace DavinBao\Workflow;


trait HasFlowForResourceController
{

  public function getBindingFlow($entry){
    //get entry's object name
    //
    if ( $entry->id )
    {
      $flows = $entry->getFlows($this->entryName);
<commit_msg>fix flowType<commit_after><?php
/**
 * Created by PhpStorm.
 * User: davin.bao
 * Date: 14-5-7
 * Time: PM 5:44
 */

namespace DavinBao\Workflow;


trait HasFlowForResourceController
{

  public function getBindingFlow($entry){
    //get entry's object name
    //
    $flow_type = lcfirst(get_class($entry));
    if ( $entry->id )
    {
      $flows = $entry->getFlows($flow_type);

{'fraction_non_alphanumeric': 0.14835164835164835, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 3.095505617977528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '6536898', 'n_tokens_mistral': 275, 'n_tokens_neox': 264, 'n_words': 55}