<commit_before>// Package scope defines functions that operates on  engine.Engine and  enables
// operating on model values easily.
//
// Scope adds a layer of encapsulation on the model on which we are using to
// compose Queries or interact with the database
package scope

import (
	"database/sql"
	"errors"
	"fmt"
	"go/ast"
	"reflect"
	"strings"
	"time"

	"github.com/gernest/ngorm/engine"
	"github.com/gernest/ngorm/model"
	"github.com/gernest/ngorm/util"
	"github.com/jinzhu/inflection"
)

//Quote quotes the str into an SQL string. This makes sure sql strings have ""
//around them.
//
// For the case of a str which has a dot in it example one.two the string is
// quoted and becomes "one"."two" and the quote implementation is called from
// the e.Parent.Dialect.
//
// In case of a string without a dot example one it will be quoted using the
// current dialect e.Dialect
//
//TODO: (gernest) Understand why we use the Parent.Dialect here as it seems
//unlikely the dialect to be different.<commit_msg>[scope] Remove TODO<commit_after>// Package scope defines functions that operates on  engine.Engine and  enables
// operating on model values easily.
//
// Scope adds a layer of encapsulation on the model on which we are using to
// compose Queries or interact with the database
package scope

import (
	"database/sql"
	"errors"
	"fmt"
	"go/ast"
	"reflect"
	"strings"
	"time"

	"github.com/gernest/ngorm/engine"
	"github.com/gernest/ngorm/model"
	"github.com/gernest/ngorm/util"
	"github.com/jinzhu/inflection"
)

//Quote quotes the str into an SQL string. This makes sure sql strings have ""
//around them.
//
// For the case of a str which has a dot in it example one.two the string is
// quoted and becomes "one"."two" and the quote implementation is called from
// the e.Parent.Dialect.
//
// In case of a string without a dot example one it will be quoted using the
// current dialect e.Dialect
//
{'fraction_non_alphanumeric': 0.09979101358411703, 'fraction_numerical': 0.0, 'mean_word_length': 3.4022988505747125, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7079663', 'n_tokens_mistral': 604, 'n_tokens_neox': 588, 'n_words': 253}