<commit_before>package main

import "fmt"
import "math"
import "math/big"

func getTestCases() []int {
	testCases := []int{}
	var numberOfLines int
	fmt.Scanf("%d", &numberOfLines)

	if numberOfLines > 0 {
		for i := 0; i < numberOfLines; i++ {
			var testCase int
			fmt.Scanf("%d", &testCase)
			testCases = append(testCases, testCase)
		}
	}	
	return testCases
}

func isPerfectSquare(number int) bool {
	floatNumber := math.Sqrt(float64(number))
	// intNumber := float64(math.Trunc(floatNumber))
	intNumber := big.NewFloat(floatNumber)
	// isPerfectSquare := (intNumber == floatNumber)
	isPerfectSquare := intNumber.IsInt()
	fmt.Println(number)
	fmt.Println(floatNumber)
	fmt.Println(intNumber)
	fmt.Println(isPerfectSquare)
	return isPerfectSquare
}

func isFibonacciNumber(number int) bool {
	fiveByXSquare := 5 * number * number
	isFibonacciNumber := isPerfectSquare(fiveByXSquare+4) || isPerfectSquare(fiveByXSquare-4)
	return isFibonacciNumber
}

func main() {

	// https://www.hackerrank.com/challenges/is-fibo	
	// testCases := getTestCases()
	testCases := []int{7778742049}
	// testCases := []int{5,7,8}
	
	for _, element := range testCases {
		if isFibonacciNumber(element) {
			fmt.Println("IsFibo")
		} else {
			fmt.Println("IsNotFibo")
		}
	}
}
<commit_msg>Read test cases as float64 insted of int.<commit_after>package main

import "fmt"
import "math"
import "math/big"

func getTestCases() []float64 {
	testCases := []float64{}
	var numberOfLines int
	fmt.Scanf("%d", &numberOfLines)

	if numberOfLines > 0 {
		for i := 0; i < numberOfLines; i++ {
			var testCase float64
			fmt.Scanf("%d", &testCase)
			testCases = append(testCases, testCase)
		}
	}
	return testCases
}

func isPerfectSquare(number float64) bool {
	floatNumber := math.Sqrt(float64(number))
	// intNumber := float64(math.Trunc(floatNumber))
	intNumber := big.NewFloat(floatNumber)
	// isPerfectSquare := (intNumber == floatNumber)
	isPerfectSquare := intNumber.IsInt()
	fmt.Println(number)
	fmt.Println(floatNumber)
	fmt.Println(intNumber)
	fmt.Println(isPerfectSquare)
	return isPerfectSquare
}

func isFibonacciNumber(number float64) bool {
	fiveByXSquare := float64(5 * number * number)
	isFibonacciNumber := isPerfectSquare(fiveByXSquare+4) || isPerfectSquare(fiveByXSquare-4)
	return isFibonacciNumber
}

func main() {

	// https://www.hackerrank.com/challenges/is-fibo	
	// testCases := getTestCases()
	testCases := []float64{7778742049}
	// testCases := []float64{5,7,8}
	for _, element := range testCases {
		if isFibonacciNumber(element) {
			fmt.Println("IsFibo")
		} else {
			fmt.Println("IsNotFibo")
		}
	}
}

{'fraction_non_alphanumeric': 0.13831417624521072, 'fraction_numerical': 0.02375478927203065, 'mean_word_length': 4.725877192982456, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '314528', 'n_tokens_mistral': 1082, 'n_tokens_neox': 983, 'n_words': 185}