<commit_before>// Package inference adds file-based inference to detect runtimes when they are not explicitly specified.
package inference

import (
	"os"
	"path/filepath"

	"github.com/apex/apex/function"
	"github.com/apex/apex/plugins/golang"
	"github.com/apex/apex/plugins/java"
	"github.com/apex/apex/plugins/nodejs"
	"github.com/apex/apex/plugins/python"
)

func init() {
	function.RegisterPlugin("inference", &Plugin{
		Files: map[string]string{
			"main.py":             python.Runtime,
			"index.js":            nodejs.Runtime43,
			"main.go":             golang.Runtime,<commit_msg>change index.js inference to use v6.10<commit_after>// Package inference adds file-based inference to detect runtimes when they are not explicitly specified.
package inference

import (
	"os"
	"path/filepath"

	"github.com/apex/apex/function"
	"github.com/apex/apex/plugins/golang"
	"github.com/apex/apex/plugins/java"
	"github.com/apex/apex/plugins/nodejs"
	"github.com/apex/apex/plugins/python"
)

func init() {
	function.RegisterPlugin("inference", &Plugin{
		Files: map[string]string{
			"main.py":             python.Runtime,
			"index.js":            nodejs.Runtime6_10,
			"main.go":             golang.Runtime,
{'fraction_non_alphanumeric': 0.13399503722084366, 'fraction_numerical': 0.006617038875103391, 'mean_word_length': 3.448529411764706, 'pattern_counts': {'":': 6, '<': 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': '1053751', 'n_tokens_mistral': 445, 'n_tokens_neox': 412, 'n_words': 78}