<commit_before>package api;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

import org.json.simple.JSONArray;

import qora.BlockGenerator;
import qora.account.Account;
import qora.block.Block;
import qora.block.GenesisBlock;
import qora.crypto.Base58;
import qora.crypto.Crypto;
import utils.APIUtils;
import utils.Pair;
import controller.Controller;
import database.DBSet;

@Path("blocks")
@Produces(MediaType.APPLICATION_JSON)
public class BlocksResource 
{
	@Context
	HttpServletRequest request;

	@SuppressWarnings("unchecked")
	@GET
	public String getBlocks()
	{
		//CHECK IF WALLET EXISTS<commit_msg>Add missing check to list of locally generated blocks (allows identification of addresses)<commit_after>package api;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

import org.json.simple.JSONArray;

import qora.BlockGenerator;
import qora.account.Account;
import qora.block.Block;
import qora.block.GenesisBlock;
import qora.crypto.Base58;
import qora.crypto.Crypto;
import utils.APIUtils;
import utils.Pair;
import controller.Controller;
import database.DBSet;

@Path("blocks")
@Produces(MediaType.APPLICATION_JSON)
public class BlocksResource 
{
	@Context
	HttpServletRequest request;

	@SuppressWarnings("unchecked")
	@GET
	public String getBlocks()
	{
		APIUtils.askAPICallAllowed("GET blocks", request);

		//CHECK IF WALLET EXISTS
{'fraction_non_alphanumeric': 0.10728628800917958, 'fraction_numerical': 0.002294893861158921, 'mean_word_length': 5.75968992248062, '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': '5086151', 'n_tokens_mistral': 578, 'n_tokens_neox': 582, 'n_words': 128}