<commit_before>package dos

import (
	"unsafe"

	"golang.org/x/sys/windows"
)

var procWNetAddConnection2W = mpr.NewProc("WNetAddConnection2W")
var procWNetCancelConnection = mpr.NewProc("WNetCancelConnection2W")

type _NetResource struct {
	Scope       uint32
	Type        uint32
	DisplayType uint32
	Usage       uint32
	LocalName   *uint16
	RemoteName  *uint16
	Comment     uintptr
	Provider    uintptr
}

func WNetAddConnection2(remote, local, user, pass string) (err error) {
	var rs _NetResource

	rs.LocalName, err = windows.UTF16PtrFromString(local)
	if err != nil {
		return
	}
	rs.RemoteName, err = windows.UTF16PtrFromString(remote)
	if err != nil {
		return
	}
	var _user *uint16<commit_msg>Remove duplicatie struct define<commit_after>package dos

import (
	"unsafe"

	"golang.org/x/sys/windows"
)

var procWNetAddConnection2W = mpr.NewProc("WNetAddConnection2W")
var procWNetCancelConnection = mpr.NewProc("WNetCancelConnection2W")

func WNetAddConnection2(remote, local, user, pass string) (err error) {
	var rs NetResource

	rs.localName, err = windows.UTF16PtrFromString(local)
	if err != nil {
		return
	}
	rs.remoteName, err = windows.UTF16PtrFromString(remote)
	if err != nil {
		return
	}
	var _user *uint16
{'fraction_non_alphanumeric': 0.09127954360228199, 'fraction_numerical': 0.026079869600651995, 'mean_word_length': 4.506726457399103, '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': '3983274', 'n_tokens_mistral': 455, 'n_tokens_neox': 419, 'n_words': 99}