<commit_before>// Copyright 2016, RadiantBlue Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package client

import (
	"log"
	"time"

	piazza "github.com/venicegeo/pz-gocommon"
)

// implements Logger
type MockLoggerService struct {
	name    piazza.ServiceName
	address string
}

func NewMockLoggerService(sys *piazza.SystemConfig) (ILoggerService, error) {
	var _ piazza.IService = new(MockLoggerService)
	var _ ILoggerService = new(MockLoggerService)

	service := &MockLoggerService{name: "piazza.PzLogger", address: "0.0.0.0"}

	return service, nil
}

func (m *MockLoggerService) GetName() piazza.ServiceName {
	return m.name
}

func (m *MockLoggerService) GetAddress() string {
	return m.address
}

func (*MockLoggerService) GetFromMessages() ([]LogMessage, error) {
	return nil, nil
}

func (*MockLoggerService) GetFromAdminStats() (*LoggerAdminStats, error) {
	return &LoggerAdminStats{}, nil
}

func (*MockLoggerService) GetFromAdminSettings() (*LoggerAdminSettings, error) {
	return &LoggerAdminSettings{}, nil
}

func (*MockLoggerService) PostToAdminSettings(*LoggerAdminSettings) error {
	return nil
}

func (*MockLoggerService) LogMessage(mssg *LogMessage) error {
	tim := mssg.Time.Format("Jan _2 15:04:05")
	log.Printf("[%s, %s, %s, %s]", tim, mssg.Service, mssg.Severity, mssg.Message)
	return nil<commit_msg>make mock client output unique<commit_after>// Copyright 2016, RadiantBlue Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package client

import (
	"log"
	"time"

	piazza "github.com/venicegeo/pz-gocommon"
)

// implements Logger
type MockLoggerService struct {
	name    piazza.ServiceName
	address string
}

func NewMockLoggerService(sys *piazza.SystemConfig) (ILoggerService, error) {
	var _ piazza.IService = new(MockLoggerService)
	var _ ILoggerService = new(MockLoggerService)

	service := &MockLoggerService{name: "piazza.PzLogger", address: "0.0.0.0"}

	return service, nil
}

func (m *MockLoggerService) GetName() piazza.ServiceName {
	return m.name
}

func (m *MockLoggerService) GetAddress() string {
	return m.address
}

func (*MockLoggerService) GetFromMessages() ([]LogMessage, error) {
	return nil, nil
}

func (*MockLoggerService) GetFromAdminStats() (*LoggerAdminStats, error) {
	return &LoggerAdminStats{}, nil
}

func (*MockLoggerService) GetFromAdminSettings() (*LoggerAdminSettings, error) {
	return &LoggerAdminSettings{}, nil
}

func (*MockLoggerService) PostToAdminSettings(*LoggerAdminSettings) error {
	return nil
}

func (*MockLoggerService) LogMessage(mssg *LogMessage) error {
	tim := mssg.Time.Format("Jan _2 15:04:05")
	log.Printf("[[%s, %s, %s, %s]]", tim, mssg.Service, mssg.Severity, mssg.Message)
	return nil
{'fraction_non_alphanumeric': 0.11454692121538047, 'fraction_numerical': 0.010217800484001076, 'mean_word_length': 4.858267716535433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '6788599', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1133, 'n_words': 367}