<commit_before>/** @author <NAME> <<EMAIL>> **/
namespace Dockery.View.Terminal {

    using global::Dockery;

    public class BashIn : Vte.Terminal {

        protected DockerSdk.Model.Container container;

        public BashIn(DockerSdk.Model.Container container) {
            this.container = container;
            
            this.child_exited.connect((term) => {
                Gtk.Container c;
                if (null != parent_container_widget) {
                    c = parent_container_widget;
                } else {
                    c = (Gtk.Container) this.get_parent();
                }
                c.destroy();
                this.destroy();
            });
        }

        public void start() throws GLib.Error {

            string[] command = {"/usr/bin/docker", "exec", "-ti", container.id, "bash"};

            Pid pid;
            
            #if PPS_LIBVTE_2_90
            fork_command_full(
                Vte.PtyFlags.DEFAULT,
                Environment.get_variable("HOME"),
                command,
                new string[]{Environment.get_variable("HOME"), Environment.get_variable("PATH")},
                SpawnFlags.LEAVE_DESCRIPTORS_OPEN,
                null,
                out pid
            );    
            #endif
            
            #if PPS_LIBVTE_2_91
            spawn_sync(
                Vte.PtyFlags.DEFAULT,
                Environment.get_variable("HOME"),
                command,
                new string[]{Environment.get_variable("HOME"), Environment.get_variable("PATH")},
                SpawnFlags.LEAVE_DESCRIPTORS_OPEN,
                null,
                out pid,
                null
            );
            #endif
        }

        public Gtk.Container? parent_container_widget {
            get; set; default = null;
        }
    }
}<commit_msg>Swap libvte preprocessor directives<commit_after>/** @author <NAME> <<EMAIL>> **/
namespace Dockery.View.Terminal {

    using global::Dockery;

    public class BashIn : Vte.Terminal {

        protected DockerSdk.Model.Container container;

        public BashIn(DockerSdk.Model.Container container) {
            this.container = container;
            
            this.child_exited.connect((term) => {
                Gtk.Container c;
                if (null != parent_container_widget) {
                    c = parent_container_widget;
                } else {
                    c = (Gtk.Container) this.get_parent();
                }
                c.destroy();
                this.destroy();
            });
        }

        public void start() throws GLib.Error {

            string[] command = {"/usr/bin/docker", "exec", "-ti", container.id, "bash"};

            Pid pid;
            
            #if PPS_LIBVTE_2_91
            fork_command_full(
                Vte.PtyFlags.DEFAULT,
                Environment.get_variable("HOME"),
                command,
                new string[]{Environment.get_variable("HOME"), Environment.get_variable("PATH")},
                SpawnFlags.LEAVE_DESCRIPTORS_OPEN,
                null,
                out pid
            );    
            #endif
            
            #if PPS_LIBVTE_2_90
            spawn_sync(
                Vte.PtyFlags.DEFAULT,
                Environment.get_variable("HOME"),
                command,
                new string[]{Environment.get_variable("HOME"), Environment.get_variable("PATH")},
                SpawnFlags.LEAVE_DESCRIPTORS_OPEN,
                null,
                out pid,
                null
            );
            #endif
        }

        public Gtk.Container? parent_container_widget {
            get; set; default = null;
        }
    }
}
{'fraction_non_alphanumeric': 0.0989247311827957, 'fraction_numerical': 0.0032258064516129032, 'mean_word_length': 1.2940813810110974, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3077015', 'n_tokens_mistral': 1021, 'n_tokens_neox': 940, 'n_words': 171}