<commit_before>package main

import (
	"encoding/json"
	"flag"
	"fmt"
	"log"
	"os"
	"time"

	"github.com/garyburd/redigo/redis"
	"github.com/scottjbarr/yahoofinance"
)

// Display a usage message.
func usage() {
	fmt.Printf("Usage : %s symbol -config filename,yml\n", os.Args[0])
}

// Publish a new Quote to the Redis server.
func publish(quote *yahoofinance.Quote) {
	js, _ := json.Marshal(quote)

	// format the JSON with a root element
	price := fmt.Sprintf("{price:%s}", js)<commit_msg>Fix the JSON string that is created.<commit_after>package main

import (
	"encoding/json"
	"flag"
	"fmt"
	"log"
	"os"
	"time"

	"github.com/garyburd/redigo/redis"
	"github.com/scottjbarr/yahoofinance"
)

// Display a usage message.
func usage() {
	fmt.Printf("Usage : %s symbol -config filename,yml\n", os.Args[0])
}

// Publish a new Quote to the Redis server.
func publish(quote *yahoofinance.Quote) {

	// format the JSON with a root element
	price := fmt.Sprintf("{price:%s}", js)
	js, _ := json.Marshal(quote)
	price := fmt.Sprintf("{\"price\":%s}", js)
{'fraction_non_alphanumeric': 0.16491897044804577, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 4.0, 'pattern_counts': {'":': 1, '<': 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': '384412', 'n_tokens_mistral': 414, 'n_tokens_neox': 406, 'n_words': 100}