<commit_before>﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Ekiworld2ArcGISApp
{
    public class Core
    {
        static string api_Endpoint = "https://api.ekispert.jp";
        static string api_key = "<KEY>";

        public static async Task<List<Ekiworld>> GetEkiworldResult(string Ekiworld)
        {   
            // 駅すぱあと Web サービスの駅情報 API の URL
            string queryString = api_Endpoint + "/v1/json/station?key=" + api_key + "&" + "gcs=wgs84&" + "name=" + Ekiworld;
            // HttpService クラスからリクエストを投げて、リクエスト結果を JSON オブジェクトで取得
            JObject results = await HttpService.getDataFromService(queryString).ConfigureAwait(false);

            var resultset = results["ResultSet"];

            if (resultset != null && resultset["Point"] != null) 
            {
                List<Ekiworld> ekiArr = new List<Ekiworld>();
                var type = resultset["Point"].GetType();<commit_msg>remove api_key<commit_after>﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Ekiworld2ArcGISApp
{
    public class Core
    {
        static string api_Endpoint = "https://api.ekispert.jp";
        static string api_key = "<KEY>"; // api_key を指定

        public static async Task<List<Ekiworld>> GetEkiworldResult(string Ekiworld)
        {   
            // 駅すぱあと Web サービスの駅情報 API の URL
            string queryString = api_Endpoint + "/v1/json/station?key=" + api_key + "&" + "gcs=wgs84&" + "name=" + Ekiworld;
            // HttpService クラスからリクエストを投げて、リクエスト結果を JSON オブジェクトで取得
            JObject results = await HttpService.getDataFromService(queryString).ConfigureAwait(false);

            var resultset = results["ResultSet"];

            if (resultset != null && resultset["Point"] != null) 
            {
                List<Ekiworld> ekiArr = new List<Ekiworld>();
                var type = resultset["Point"].GetType();
{'fraction_non_alphanumeric': 0.11318897637795275, 'fraction_numerical': 0.003937007874015748, 'mean_word_length': 2.6763110307414104, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '934097', 'n_tokens_mistral': 672, 'n_tokens_neox': 663, 'n_words': 134}