api key

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.surveyUrlEN = exports.surveyUrlCN = exports.statApiHerf = exports.testSecret = exports.testKey = exports.testHref = exports.apiSecret = exports.apiKey = exports.apiHref = void 0;
// //tianqi api config
exports.apiHref = "https://tianqi.aminer.cn/api/v2";
exports.apiKey = "68cf004321e94b47a91c2e45a8109852";
exports.apiSecret = "e82b86a16f9d471ab215f653060310e3";
//wudao api config
// export const apiHref ='https://wudao.aminer.cn/os/api/api/v2';
// export const apiKey = 'f30ea902c3824ee88e221a32363c0823';
// export const apiSecret = '90664fc066434fac8983d309c758cd4d';
exports.testHref = 'https://wudao.aminer.cn/os/api/api/v2';
exports.testKey = 'f30ea902c3824ee88e221a32363c0823';
exports.testSecret = '90664fc066434fac8983d309c758cd4d';
//data statistics api
exports.statApiHerf = "https://maas.aminer.cn"; //process.env.NODE_ENV==='development'?'http://10.50.74.216:32621':'https://maas.aminer.cn';
exports.surveyUrlCN = "https://wj.qq.com/s2/11259178/fd49/";
exports.surveyUrlEN = "https://wj.qq.com/s2/11260705/6cd6/";
//# sourceMappingURL=localconfig.js.map
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  "message": "success",
  "result": {
    "app": "multilingual_code_generate",
    "created_at": "Fri, 17 Mar 2023 06:18:52 GMT",
    "input": {
      "lang": "Python",
      "n": 3,
      "stop": [],
      "text": "# language: Python\nfrom typing import List\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n    \"\"\" Check if in given list of numbers, are any two numbers closer to each other than\n    given threshold.\n    >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n    False\n    >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\n    True\n    \"\"\"\n"
    },
    "output": {
      "code": [
        "    for i in range(len(numbers) - 1):\n"
      ],
      "code_dict": [
        {
          "context": "# language: Python\nfrom typing import List\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n    \"\"\" Check if in given list of numbers, are any two numbers closer to each other than\n    given threshold.\n    >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n    False\n    >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\n    True\n    \"\"\"\n",
          "cum_log_probs": -0.7978824377059937,
          "generated": "    for i in range(len(numbers) - 1):\n"
        }
      ],
      "completion_token_num": 32,
      "errcode": 0,
      "prompt_token_num": 132
    },
    "process_time": 0.8907933235168457,
    "task_id": "6414064ce016d96e7c58780e",
    "updated_at": "Fri, 17 Mar 2023 06:18:52 GMT",
    "user": {
      "appId": "6fd2a2a76f0a4015af45ef30f8c1436f",
      "id": "631ed7b83676d9dea55bcecd",
      "name": "游客459664"
    }
  },
  "status": 0
}