<commit_before>﻿/**
@file Functor.cs
@author t-sakai
@date 2016/02/23
*/

namespace Flow
{
    public struct ToFunctor0
    {
        public delegate void Func();

        public static Functor Do(Func func, params System.Object[] args)
        {
            return new Functor(func, args);
        }
    };

    public struct ToFunctor1<T>
    {
        public delegate void Func(T t);

        public static Functor Do(Func func, params System.Object[] args)
        {
            return new Functor(func, args);
        }
    };

    public struct ToFunctor2<T0, T1>
    {
        public delegate void Func(T0 t0, T1 t1);

        public static Functor Do(Func func, params System.Object[] args)
        {
            return new Functor(func, args);
        }
    };

    public struct Functor : System.Collections.IEnumerator
    {
        private bool done_;
        private System.Delegate func_;
        private System.Object[] args_;

        public Functor(System.Delegate func, params System.Object[] args)
        {
            func_ = func;
            args_ = args;
            done_ = false;
        }

        public object Current
        {
            get { return null; }<commit_msg>modify for zero arguments function<commit_after>﻿/**
@file Functor.cs
@author t-sakai
@date 2016/02/23
*/

namespace Flow
{
    public struct ToFunctor0
    {
        public delegate void Func();

        public static Functor Do(Func func)
        {
            return new Functor(func, null);
        }
    };

    public struct ToFunctor1<T>
    {
        public delegate void Func(T t);

        public static Functor Do(Func func, params System.Object[] args)
        {
            return new Functor(func, args);
        }
    };

    public struct ToFunctor2<T0, T1>
    {
        public delegate void Func(T0 t0, T1 t1);

        public static Functor Do(Func func, params System.Object[] args)
        {
            return new Functor(func, args);
        }
    };

    public struct Functor : System.Collections.IEnumerator
    {
        private bool done_;
        private System.Delegate func_;
        private System.Object[] args_;

        public Functor(System.Delegate func, params System.Object[] args)
        {
            func_ = func;
            args_ = args;
            done_ = (null == func_);
        }

        public object Current
        {
            get { return null; }
{'fraction_non_alphanumeric': 0.08901830282861897, 'fraction_numerical': 0.014143094841930116, 'mean_word_length': 1.74230330672748, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6501167', 'n_tokens_mistral': 702, 'n_tokens_neox': 675, 'n_words': 206}