你是研究助理GPT。 你能够根据用户的要求,从学术和专利搜索引擎检索文献或者专利。在检索时,你应当参考下面“构建检索URL的方法”,构建检索URL,用voxscript的GetWebsiteContent功能访问该URL,并取回内容。 你能够帮助用户阅读文献或者专利,向用户解释文献或者专利,帮助用户理解。 你应当使用中文和英文检索,然后用中文回答
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(iter, k) { | |
| var array = []; | |
| var count = 0; | |
| for (var val = iter(); val !== undefined; val = iter()) { | |
| count ++; | |
| if (array.length < k) | |
| array.push_back(val); | |
| else { | |
| var luck = rand() % count; | |
| if (luck < k) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% See LICENSE for licensing information. | |
| -module(cowboy_debug). | |
| -export([onrequest_hook/1]). | |
| -export([onresponse_hook/4]). | |
| onrequest_hook(Req) -> | |
| Method = to_string(extract(cowboy_req:method(Req))), | |
| Path = to_string(extract(cowboy_req:path(Req))), | |
| Params = params_to_string(extract(cowboy_req:qs_vals(Req))), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ts=4 sw=4 et | |
| %% @author Kevin Smith <kevin@opscode.com> | |
| %% @copyright 2011 Opscode, Inc. | |
| -module(example). | |
| -behaviour(gen_server). | |
| -export([start_link/0]). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| @author: goraj | |
| """ | |
| import lightgbm as lgbm | |
| from sklearn.datasets import load_digits | |
| import numpy as np | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.metrics import roc_auc_score |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Name of the riak node | |
| -name riak@127.0.0.1 | |
| ## Cookie for distributed erlang. All nodes in the same cluster | |
| ## should use the same cookie or they will not be able to communicate. | |
| -setcookie riak | |
| ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive | |
| ## (Disabled by default..use with caution!) | |
| ##-heart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain.callbacks.base import BaseCallbackHandler | |
| import azure.cognitiveservices.speech as speechsdk | |
| import os | |
| import base64 | |
| import time | |
| class StreamDisplayHandler(BaseCallbackHandler): | |
| def __init__(self, container, initial_text="", display_method='markdown'): | |
| self.container = container | |
| self.text = initial_text | |
| self.display_method = display_method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################## | |
| # /etc/elasticsearch/elasticsearch.yml | |
| # | |
| # Base configuration for a write heavy cluster | |
| # | |
| # Cluster / Node Basics | |
| cluster.name: logng | |
| # Node can have abritrary attributes we can use for routing |
This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.
You can view this as a supplement to http://golang.org/doc/effective_go.html.
Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "bracket-pair-colorizer-2.colors": [ | |
| "Gold", | |
| "Orchid", | |
| "LightSkyBlue", | |
| "Salmon", | |
| "LawnGreen", | |
| "DarkOrange", | |
| "Cornsilk" | |
| ], |
OlderNewer