<commit_before>@import url(utils/constants.less);
@import url(utils/helpers.less);


#page-details{
    padding: 40px;
    padding-right: @container-side-padding;

    section.details-panel{
        h1{
            font-size: 24px;
            line-height: 40px;
            margin: 40px 0 15px;

            &.checkbox-heading{
                margin-top: 0;

                input[type=checkbox]{
                    cursor: pointer;
                    margin-left: 10px;
                    width: 20px; height: 20px;
                }
            }
        }
    }
}

#condition-editor{
    div.node{
        @button-size: 30px;

        margin-bottom: 15px;

        &:last-child{
            margin-bottom: 0;
        }

        &.root,
        &.logical{
            border: 1px solid @grey-border;
            padding: 15px;
        }

        div.criteria-form,
        div.logical-form{
            position: relative;
        }

        div.criteria-form{
            display: flex;
            line-height: @button-size;
            padding-right: (@button-size * 3) + (@column-margin * 3);
        }

        div.logical-form{
            padding-right: (@button-size * 3) + (@column-margin * 3);

            div.logical-statement{
                margin-bottom: 15px;

                select,
                span{
                    display: inline-block;
                    margin: 0;
                }

                span{
                    line-height: 30px;
                }
            }
        }

        input[type="text"]{
            box-sizing: border-box;
            flex: 1;
            height: 30px;
            line-height: 20px;
            padding: 5px;
        }

        select{
            box-sizing: border-box;
            height: @button-size;
            margin: 0 15px;
            padding: 5px;
            width: auto;

            &:first-child{
                margin-left: 0;
            }
        }

        span.glyphicon{
            cursor: pointer;
            display: block;
            position: absolute;
            top: 0;

            font-size: 20px;
            line-height: @button-size;
            text-align: center;
            width: @button-size; height: @button-size;

            &.add{
                right: @button-size * 2 + @column-margin * 2;
            }

            &.delete{
                right: @button-size + @column-margin;
            }

            &.expand,
            &.contract{
                right: 0;
            }

            &.disabled{
                color: @grey-bg;
            }
        }
    }
}

div#elements-list ul{
    list-style: none;
    margin: 0;
    padding: 0;

    li{
        &.element{
            border: 1px solid @grey-border;
            margin-bottom: 20px;
            min-height: 40px * 2 + 50px;
            padding: 40px (40px * 2 + 50px);
            position: relative;

            &:last-child{
                margin-bottom: 0;
            }

            h2{
                line-height: 50px;
                margin: 0;
                margin-bottom: 20px;
            }

            div.form-group{
                margin-bottom: 20px;

                div.checkbox{
                    margin-left: 5px;
                }

                &:last-child{
                    margin-bottom: 0;
                }
            }

            div.custom-answer{
                margin-bottom: 20px;

                div.has-choices{
                    @margin: 10px;
                    @toggle-btn-size: 20px;
                    @drag-btn-size: 30px;
                    @delete-btn-size: 30px;

                    div.choices-container{
                        border: 1px solid @grey-border-light;
                        border-radius: 3px;
                        padding: 10px 0;
                    }

                    li.ui-sortable-placeholder{
                        background: @grey-bg-light;
                    }

                    li.choice,
                    div.choice{
                        background: #fff;
                        display: flex;
                        position: relative;
                        margin: 5px 0;

                        &.ui-sortable-helper{
                            div.input{
                                border: 1px solid @grey-border-light;
                            }
                        }

                        &:hover{
                            input.new-choice,
                            div.input{<commit_msg>Fixed choices css<commit_after>@import url(utils/constants.less);
@import url(utils/helpers.less);


#page-details{
    padding: 40px;
    padding-right: @container-side-padding;

    section.details-panel{
        h1{
            font-size: 24px;
            line-height: 40px;
            margin: 40px 0 15px;

            &.checkbox-heading{
                margin-top: 0;

                input[type=checkbox]{
                    cursor: pointer;
                    margin-left: 10px;
                    width: 20px; height: 20px;
                }
            }
        }
    }
}

#condition-editor{
    div.node{
        @button-size: 30px;

        margin-bottom: 15px;

        &:last-child{
            margin-bottom: 0;
        }

        &.root,
        &.logical{
            border: 1px solid @grey-border;
            padding: 15px;
        }

        div.criteria-form,
        div.logical-form{
            position: relative;
        }

        div.criteria-form{
            display: flex;
            line-height: @button-size;
            padding-right: (@button-size * 3) + (@column-margin * 3);
        }

        div.logical-form{
            padding-right: (@button-size * 3) + (@column-margin * 3);

            div.logical-statement{
                margin-bottom: 15px;

                select,
                span{
                    display: inline-block;
                    margin: 0;
                }

                span{
                    line-height: 30px;
                }
            }
        }

        input[type="text"]{
            box-sizing: border-box;
            flex: 1;
            height: 30px;
            line-height: 20px;
            padding: 5px;
        }

        select{
            box-sizing: border-box;
            height: @button-size;
            margin: 0 15px;
            padding: 5px;
            width: auto;

            &:first-child{
                margin-left: 0;
            }
        }

        span.glyphicon{
            cursor: pointer;
            display: block;
            position: absolute;
            top: 0;

            font-size: 20px;
            line-height: @button-size;
            text-align: center;
            width: @button-size; height: @button-size;

            &.add{
                right: @button-size * 2 + @column-margin * 2;
            }

            &.delete{
                right: @button-size + @column-margin;
            }

            &.expand,
            &.contract{
                right: 0;
            }

            &.disabled{
                color: @grey-bg;
            }
        }
    }
}

div#elements-list ul{
    list-style: none;
    margin: 0;
    padding: 0;

    li{
        &.element{
            border: 1px solid @grey-border;
            margin-bottom: 20px;
            min-height: 40px * 2 + 50px;
            padding: 40px (40px * 2 + 50px);
            position: relative;

            &:last-child{
                margin-bottom: 0;
            }

            h2{
                line-height: 50px;
                margin: 0;
                margin-bottom: 20px;
            }

            div.form-group{
                margin-bottom: 20px;

                div.checkbox{
                    margin-left: 5px;
                }

                &:last-child{
                    margin-bottom: 0;
                }
            }

            div.custom-answer{
                margin-bottom: 20px;

                div.has-choices{
                    @margin: 10px;
                    @toggle-btn-size: 20px;
                    @drag-btn-size: 30px;
                    @delete-btn-size: 30px;

                    div.choices-container{
                        border: 1px solid @grey-border-light;
                        border-radius: 3px;
                        padding: 10px 0;

                        ul.choices{
                            padding-left: 0;

                            li{
                                list-style: none;

                                &.ui-sortable-placeholder{
                                    background: @grey-bg-light;
                                }
                            }
                        }
                    }

                    // Each choice item
                    li.choice,
                    div.choice{
                        background: #fff;
                        position: relative;
                        margin: 5px 0;

                        &.ui-sortable-helper{
                            div.input{
                                border: 1px solid @grey-border-light;
                            }
                        }

                        &:hover{
                            input.new-choice,
                            div.input{
{'fraction_non_alphanumeric': 0.09630818619582665, 'fraction_numerical': 0.021294810058855, 'mean_word_length': 0.7917944785276073, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3829011', 'n_tokens_mistral': 2739, 'n_tokens_neox': 2352, 'n_words': 474}