<commit_before>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"github.com/hyperledger/fabric/core/chaincode/shim"
	"regexp"
	"strconv"
	"strings"
	"time"
)

var logger = shim.NewLogger("CLDChaincode")

//==============================================================================================================================
//	 Participant types - Each participant type is mapped to an integer which we use to compare to the value stored in a
//						 user's eCert
//==============================================================================================================================
//CURRENT WORKAROUND USES ROLES CHANGE WHEN OWN USERS CAN BE CREATED SO THAT IT READ 1, 2, 3, 4, 5
const AUTHORITY = "regulator"
const SINGER = "singer"
const AUDIENCE = "AUDIENCE"
const COPYRIGHT_AUTHORITY = "copyright_authority "

//==============================================================================================================================
//	 Status types - Asset lifecycle is broken down into z statuses, this is part of the business logic to determine what can
//					be done to the song at points in it's lifecycle
// Not sure if we need them
//==============================================================================================================================
const STATE_TEMPLATE = 0
const STATE_RECORDED = 1
const STATE_UPDATED = 2
const STATE_VOTED = 3
const STATE_CONTRACT_PROVIDED = 4<commit_msg>cannot have unused imports . removed time and strings<commit_after>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"github.com/hyperledger/fabric/core/chaincode/shim"
	"regexp"
	"strconv"
//	"strings"
//	"time"
)

var logger = shim.NewLogger("CLDChaincode")

//==============================================================================================================================
//	 Participant types - Each participant type is mapped to an integer which we use to compare to the value stored in a
//						 user's eCert
//==============================================================================================================================
//CURRENT WORKAROUND USES ROLES CHANGE WHEN OWN USERS CAN BE CREATED SO THAT IT READ 1, 2, 3, 4, 5
const AUTHORITY = "regulator"
const SINGER = "singer"
const AUDIENCE = "AUDIENCE"
const COPYRIGHT_AUTHORITY = "copyright_authority "

//==============================================================================================================================
//	 Status types - Asset lifecycle is broken down into z statuses, this is part of the business logic to determine what can
//					be done to the song at points in it's lifecycle
// Not sure if we need them
//==============================================================================================================================
const STATE_TEMPLATE = 0
const STATE_RECORDED = 1
const STATE_UPDATED = 2
const STATE_VOTED = 3
const STATE_CONTRACT_PROVIDED = 4
{'fraction_non_alphanumeric': 0.3981670061099796, 'fraction_numerical': 0.006788866259334691, 'mean_word_length': 6.18780487804878, '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': '204472', 'n_tokens_mistral': 778, 'n_tokens_neox': 664, 'n_words': 248}