query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
c39d5690439dc11d95b44a6fd4d01890 | 78a11433a0ee47d415b8e60aa22b8657 | Sets the availability state of the variation
The availability of the variation as either "InStock" or "OutOfStock"
depending upon the true or false value of the availability | public class P_ProductVariantInfoEntityBase extends Entity
public void setDisplayStockAvailability(java.lang.Boolean displayStockAvailability){
this.displayStockAvailability = displayStockAvailability;
} | 0 |
7229a39b0b45aec0c3d25261a798ddbb | 4f2a996d536ad4a2e1270cf5067bccd5 | Тестирование генерации кода подтверждения | $user = \Repositories\User::find($this->user_id);
$user->confirmation_code = md5($user->login . $this->user_id);
$user->save();
$data = $this->get('start@confirm', array('confirmation_code' => $user->confirmation_code));
$this->assertView($data);
} | 1 |
026289c5bd9ad3f42e5af241ec6189b4 | 51bd9343e736f90f968dbab178622fc9 | Lists all Fruit models. | class AppleController extends Controller
public function actionIndex(): string
{
$searchModel = new AppleSearch();
$searchModel->color = null;
$searchModel->created_at = null;
$searchModel->status = null;
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
... | 0 |
6a5e0510d7d66ada480cdc995c58acbe | 1b239ead50a258d49fa907c9148b1f7a | base url of the images to be embeeded in boxes, with a trailing slash, example: './images/' | export class HelixGame
get boxArtUrl(): string {
return this._data.box_art_url;
} | 0 |
48c4d8af8dc6e828dda9244aef3ba770 | 9b739dc77f6ad03241464982c3855949 | Defines, redefines, or deletes MS-DOS device names. | public static void DeleteDosDevice(string deviceName, string targetPath, bool exactMatch)
{
DefineDosDeviceCore(false, deviceName, targetPath, DosDeviceAttributes.RemoveDefinition, exactMatch);
} | 1 |
c13859ac7a856ecf6f5aeaa040cfecee | a56edcd138ce05876a2883df127e7e38 | Fills the play button panel with the animation control buttons. | MenuPanel thisPanel = this;
playButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
((Wrapper)SwingUtilities.getAncestorOfClass(Wrapper.class, thisPanel))
.doPlayButtonAction();
... | 0 |
55fd9b679624401522ba1d64f3638291 | f4caccc0f6a99e83196adf4e5411d0d5 | 表示关注只拥有这些组件的实体
注意:
不是特殊情况不建议使用onlyOf。因为onlyOf会监听所有组件的添加和删除事件。 | export class Matcher
public onlyOf(...args: ComponentConstructor<IComponent>[]): Matcher {
let newArgs = [];
for (let i = 0, len = args.length; i < len; i++) {
newArgs.push(args[i].tid);
}
this.rules.push(new OnlyOf(...newArgs));
return this;
... | 1 |
93fc46573275f5d05356429cc70bee39 | 219865c7fbac9a1789423c610fcf0d5c | 查询客户端banner信息,自定义查询 | Pagination<ExtendedBanner> query(BannerQuery qo); | 1 |
73668060fe1924c7cac66f59c6f2a447 | 3bb42b3891d6d34a94ab06a652abfbcb | List all zones. | class ZoneController extends Controller
public function index()
{
return view($this->path.'.index');
} | 0 |
0c4a686e1266ebeb3e541f4accd85517 | 584717c2fa557cfd1f673ed182d576da | Hand default cosntructor - instantiates a linked list, which will be used to
hold the cards on the hand | playerHand::playerHand()
{
} | 0 |
19497dbacdb3a90b617c769982d7a75a | 4e677eb903e07f710d7c4b6fc816869e | Invokes the object's custom indexer setter. | namespace Mocklis.Steps.Lambda
public class SetActionIndexerStep<TKey, TValue> : IndexerStepWithNext<TKey, TValue>
public override void Set(IMockInfo mockInfo, TKey key, TValue value)
{
_action(key, value);
} | 1 |
4d8c11c81cf0f50f21d28c3b37d7dac1 | 45e5d538e9b34a8be19f5207bfe36b5e | Writes the specified string to the parent stream in ASCII format, terminated with a null byte. | namespace Interfaces.Factory
public static class StringOps
public static void WriteString(string value, BinaryWriter writer)
{
byte[] bin = Encoding.ASCII.GetBytes(value);
writer.Write(bin);
} | 0 |
7487fe9f9de2934af391aac9d8d95e9f | 47f0c6c9fc58f0b20428dd8811ab799b | 初始化 PM 2.5值与描述的映射 | lsTitleMap.put("comf", "舒适度指数");
lsTitleMap.put("cw", "洗车指数");
lsTitleMap.put("drsg", "穿衣指数");
lsTitleMap.put("flu", "感冒指数");
lsTitleMap.put("sport", "运动指数");
lsTitleMap.put("trav", "旅游指数");
lsTitleMap.put("uv", "紫外线指数");
lsTitleMap.put("air", "空气污染扩散条件指数"... | 0 |
ae8ee3b2e02c501e90ff87452d89a6ef | b264c7f6588c8fa23393f0528838852c | 簡易型クエリーのパーサー.<br>
内部ではEasyQueryCompilerを呼び出していいるのみ.<br> | public Query parseQuery(final String queryString) throws MetaModelException {
final QueryParser parser = new QueryParser(this, queryString);
final Query query = parser.parse();
return query;
} | 0 |
786dafc7008004eaaf73a186b0056572 | df1ee513eebbabfcb55ce422cac5c31a | Configure P0.7 SCK1, P0.8 MISO1, P0.9 MOSI1 to Alternate Func 2 | self.registers
.GPFSEL1
.modify(GPFSEL1::FSEL15::AltFunc0 + GPFSEL1::FSEL14::AltFunc0);
#[cfg(feature = "bsp_rpi3")]
self.disable_pud_14_15_bcm2837();
#[cfg(feature = "bsp_rpi4")]
self.disable_pud_14_15_bcm2711();
} | 0 |
25894dff60ab60eaa35be39ea0b2bf6f | 385115f4c6f32ee8b9d1259e60109a43 | Returns a cropped part of PCM. | System.Diagnostics.Debug.Assert(mDecodedMetadata != null);
System.Diagnostics.Debug.Assert(mPcmAllBuffer != null);
System.Diagnostics.Debug.Assert(0 <= ch && ch < mDecodedMetadata.channels);
int bpf = mDecodedMetadata.BytesPerFrame;
int bps = mDecodedMetadata.... | 1 |
0fd17986c58e823b7ef7cae23ff14b45 | 186ef638106dfe9a4755dd351004b78d | Test that a new entry must not have the same serial port as an existing entry. | first_entry = MockConfigEntry(
domain=DOMAIN,
data={CONF_PORT: "/dev/imported"},
)
first_entry.add_to_hass(hass)
test_data = {CONF_PORT: "/dev/imported"}
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_IMPORT}, data=test_da... | 1 |
1e0d9f53c1f544cbc6f60fba0d267039 | 0340f5c155e67add34650381f10c2909 | 查询某篇新闻的作者 | public List<NewsInfo> selectByAuther(String newsAuther) throws Exception; | 0 |
765734761fba6c643ff65a5fe1d3cc02 | 997877d81e87acf81741798beb94cfb8 | Update is called once per frame
ここではタワーを建てるときの処理をしています。
レイを飛ばしてそれが"Masu"のタグと_generateのブールがtrueのときにお金があれば建設出来るようにしています。
_generateはButtonManagerにあります。 | public class TileGeneration : MonoBehaviour
void Update () {
} | 0 |
049ca821256a636ce714f601cbc13cb1 | b534ec36e28cbf7a620f516e2c8dfc6d | 找到第一个子组件 | let currentChild = this.lastElementChild;
while (currentChild) {
if (isComponent<BaseComponent>(currentChild)) return currentChild;
currentChild = currentChild.previousElementSibling;
if (!currentChild) currentChild = this.shadowRoot?.firstElementC... | 1 |
a48387cb8225b40b3b5dedc4729a98bf | 2ffb462b16b520ccecd42b98d2d80eee | Show the task bar. | namespace Pluton.WindowsSystemFeatures
public static class PDesktop
public static void ShowTaskBar()
{
int hwnd = FindWindow("Shell_TrayWnd", "");
ShowWindow(hwnd, SW_SHOW);
} | 1 |
ae2bfc8f5d967cb0aecfde5840a07df5 | 86e169c1264fb0250b7b05e64846f5b9 | remove a task based upon the task number in the task list
this method accepts the task number as its argument | String taskListing = recordedTask.get(numOfTaskToRemove - 1).returnTaskListing();
recordedTask.remove(recordedTask.get(numOfTaskToRemove - 1));
for (int i = 0; i < Parser.getOrderAdded(); i++) {
recordedTask.get(i).setTaskNum(i + 1);
}
updateTaskToFile();
retu... | 0 |
6af8ab5da38013e6a5c4324a8c8a89cc | 63feb38041cf7a20e9028580ce16316e | 获取已经使用的内存值MB | String path = "/proc/meminfo";
try {
FileReader fr = new FileReader(path);
BufferedReader br = new BufferedReader(fr, 2048);
String memoryLine = br.readLine();
String subMemoryLine = memoryLine.substring(memoryLine.indexOf("MemTotal:"));
br.clo... | 0 |
0038ab0f99e6c2e70301aceaede9d945 | ea78a5c1152ab58a33da8b70825081ab | Save a byte to the current open target file.
We ignore all bits which don't belong to the byte. | void writeIfPending(FILE* target, struct Pending *b) {
int i, result = 0;
if(b->curBit < 8) return;
for(i = 0; i < 8; i++)
result += b->list[7-i] << i;
nullPending(b);
fwrite(&result, 1, 1, target);
} | 1 |
1c4e3c6a9cdaa2dc0b8abb1d0d63b6a3 | 71308117dfff3eb1e8b89ec4fb2d37a0 | Getter for <code>NBC_SENSITIVE_DISTURB_1_HIS.NBC_DIC_LOCSD_N</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class NbcLocationLocsiHisRecord extends TableRecordImpl<NbcLocationLocsiHisRecord> implements Record6<Long, Long, L... | 0 |
4e0b2b5cb20ceaa65366d68193ad4efa | aa0a81fc0f4c59c8220c935b12a15ecb | 友情链接列表并实现分页 | class Weblock extends TagLib{
public function _flink($tag,$content){
$order=$tag['order'];
$limit=$tag['limit'];
$str='<?php ';
$str.='$__m_link=M("link");';
$str.="\$__link_list=\$__m_link->where('display=1')->order('{$order}')->limit({$limit})->select();";
$str.="foreac... | 0 |
4eeb67e466c9ed1d2824915871bfeaf1 | a2157765a857b6d0b9cfdf7bf23ff802 | Ensure parameter with no default value is marked as required | class TestWidgetHelpers(unittest.TestCase):
def test_parameter_has_default_false(self):
par = provide_parameter("test")
self.assertFalse(parameter_has_default(par)) | 1 |
b067d5ecf9ed21b25bcab1c78f41263e | 76a1685e8357da9590df63364901bfd2 | Get the audit records for the specified date range using the Partner Center API. | {
ReadAuditRequest request = new ReadAuditRequest();
request.SessionToken = SessionToken;
request.ServerName = TargetServer;
request.StartRecord = startRecord;
request.NumberOfRecords = numberOfRecords;
request.Filter = filter;
... | 0 |
a30baf835ced9dd559b02c4bdfbedb54 | 63f77035dd31d72855ba64284056bb08 | Write a function to keep track of score and call the next question function when user clicks answer | document.getElementById("answer").innerHTML = quiz[i].answer;
++questionNumber;
document.querySelector('html').onclick = function() {nextQuestion();
}
} | 0 |
d5d3791a9d3d79d441d705fe9b7e9102 | 2d590f242eca8e9e43ee3e966b63d8c7 | Функция удаления пустых строк в начале и в конце вывода. | {
int length = input.Length;
bool empty_test;
for (int i = 0; i < length; i++)
{
empty_test = input.Substring(input.Length - 1, 1).Equals(" ");
if ... | 1 |
610ae6686b121f90775cd17484818013 | 52f77bb353dfd13837c62649f8f8e68e | This method checks if the state is valid with our system considering
the knowledge of the system that we have. E.g. we know that we can't have ON(A,B) if A is Heavier than B | def is_valid(state):
for s in state.split('|'):
if ('C' in s and 'G' in s and 'F' not in s):
return False
if ('W' in s and 'G' in s and 'F' not in s):
return False
return True | 0 |
cce07542783b19fe3edc3bd7ffd8da26 | e318438b8356be06f7b5b4780a20e03a | A method used to represent a visit of FuncDef node.
... | namespace Loretta.Parsing.Visitor
T VisitFunctionDefinition ( FunctionDefinitionStatement node ); | 1 |
1be525957260c4731b1e9cbb086946dc | 88c4a1cbabadac5ce0b34a1909c651a8 | Converts a given Morse code to text. | output_text = ''
try:
text_input = morse_text.split(" ")
for letter in text_input:
for key, value in MORSE_DICT.items():
if value == letter:
output_text += key + ' '
except Exception:
pass
return output_text | 1 |
33d97c654e0eff65e42c37cf6ba20282 | 52dd0701b84983bf593b6182b26e9636 | añade un nuevo elemento a la lista y lo ordena | void List_Display::add_element(QString string)
{
content->push_back(string);
actualizar();
} | 0 |
912d79504076dbb94f84e74276e9819c | 51945cff3af9b9fcbb720d122c599767 | Checks if the file of path 'path' has the extension 'ext'. | def has_extension(filepath: str, ext: str) -> bool:
return filepath.rfind(ext) == (len(filepath) - len(ext)) | 1 |
affbf5b33d49de248ea4789b66c1f116 | 36a83a58542da30f5de43b26f58b3711 | Return description of the element from LegacyIAccessible pattern | class Standard_QStandardItem(QT.QStandardItem):
def accessibleDescription(self):
res = super(Standard_QStandardItem,self).accessibleDescription()
return res | 0 |
79b1665703faf4822f2eab5ef32e5ac8 | 60c974dfde6f5d98a48dd21b887e3208 | Adds error message if time is invalid, according to type, or error
message if the start time is provided for tasks, or get the correct time
if valid. | class Restaurant
def error_on_timeblock?(date, meal_type)
timeblock = get_timeblock_of_type(date, meal_type)
return timeblock.contains_error
end | 0 |
3c5edebb3800db2b991a9ec37f562c14 | 52fd5a2b8d0e578e1b71a13ea841ed58 | Challenge UNO if input player's hand size is 1. | class Poker (object):
#create a deck and shuffle it
def is_one (self, handToCheck):
if(handToCheck[0].rank == handToCheck[1].rank):
return True
elif(handToCheck[1].rank == handToCheck[2].rank):
return True
elif(handToCheck[2].rank == handToCheck[3].rank):
return True
elif(handToCheck[3].rank == handTo... | 0 |
0aabd4dc17562787de9decb9914cb67f | 151887739262c311c89174969ee193d6 | ค้นหานักเรียนที่มีชื่อตรงหรือคล้ายที่กำหนด | namespace DAO
public class UserDAO
public Object fuzzyLookUpByName(string userName)
{
var result = from u in db.users
where System.Data.Linq.SqlClient.SqlMethods.Like(u.student_name, "%" + userName + "%")
select u;
return result;
... | 1 |
bf29caa7ac33c6bc9aa0ff39be29a793 | 067ee7567a8f99e4556db9982d371e03 | Return Savitzky-Golay smoothed nth derivative d^ny/dx^n data | def _savitzky_golay( y, window_size, order, deriv=0):
try:
window_size = np.abs(np.int(window_size))
order = np.abs(np.int(order))
except ValueError, msg:
raise ValueError("window_size and order have to be of type int")
if window_size % 2 != 1 or window_size < 1:
raise TypeEr... | 1 |
7992cdd909410a1a464a51b23ad2187b | 49e33a3a2cacab842a88699657ea517d | 保存数据流的数据到网盘系统中 | class GoFastDFSAdapter extends AbstractAdapter
public function writeStream($path, $resource, Config $config)
{
try{
$client = new \GuzzleHttp\Client(['timeout' => 300]);
$options = [
['name' => 'file', 'contents' => $resource, 'filename' => basename($path)],
... | 1 |
db0eafda3e7b3235698ae01166ab1613 | 7ebd82caa102c711a5d48041c5890e5f | rotate a point around the z axis | ry = np.array([[np.cos(angle),0,np.sin(angle),0],
[0,1,0,0],
[-np.sin(angle),0,np.cos(angle),0],
[0,0,0,1]])
point = np.matrix(point)
return point*ry | 1 |
9ae4b6ff34c0c6d69bf6e59ed290dded | 2bed8b92a6d741a39cff339588f7c7fa | 求数组在指定区间的元素之和 | function sumAll(arr) {
let sum = 0;
const len = arr.length
const arr2 = []
let first = arr[0];
let last = arr[len - 1];
for (let i = first; i <= last; i++) {
arr2[i] = i;
}
if (first < last) {
for (let i = first; i <= last; i++) {
sum += arr2[i]
}
... | 0 |
5b87b29e710ad64f874477d7b5c7de70 | 6a0834b2acce8854602c11b1e91495c7 | Checks if there is only one peg left in the board | int loc = 0;
while(this.board[loc] != 0){
loc++;
}
if(loc < 6){
return true;
}
return false;
} | 0 |
802f86b95257ee6234ecf3746dd7a794 | 5d0f8c0805135ad79ef33aa1cef11a71 | Indicates each granted and declined permissions. | void onIndividualPermissions(String [] grantedPermissions, String [] declinedPermissions); | 1 |
c07b13bb22a91786733386bccedee045 | e415f3c3ab666c957ff5a26c96158172 | プラグイン更新時にコールされるメソッド | [InitializeOnLoad]
public class BEUnityPluginOnLoad : MonoBehaviour
static void Update ()
{
} | 0 |
71cb69a78b83aa33aeb8ff3c623e25a0 | cd190bf7535c1a09bff89b98f7e2eafc | Set all Axes to bold font | public class Player
public void setBold(){
lPlayer.setFont(BOLD_FONT);
lScore.setFont(BOLD_FONT);
} | 0 |
82249df6adfa44d8ec1fb6a09b4f62af | 395addbf2244bf7f2b3d6fa1546c5d10 | Function to return related search history based on input user id and search keyword | search_history = SEARCH_HISTORY+str(searcher_id)
my_server = redis.Redis(connection_pool=POOL)
if my_server.exists(search_history):
my_server.expire(search_history,TWO_WEEKS)
return my_server.zrevrange(search_history,0,-1)
else:
return [] | 0 |
f1cc2c9c6ee6f8348cac4d5883e3c613 | 2dc420a70b1e5ca6eb26dd50baee0278 | 在当前库中执行zRangeByScore命令,按score降序方式获取有序集合在[minScore, maxScore]区间范围内所有的元组集 | List<Tuple> zrevrangeByScoreWithScores(String key, String max, String min); | 1 |
e0f91dbccda20ca6225c918459ee4326 | a4ff51b09ed759204eababd31622bbd7 | Sets the last modified time of this PNG to the current time. | public class SupportsLastModified
public void modifyNow()
{
setLastModified(now());
} | 1 |
a618f586a3e0e5094fb938debeb3be3f | 88980c71f0ab03507aad10530a2cdd22 | 设置借款人借款用途 | namespace Archives.UI.Borrow
public partial class BorrowInput : UIPublicClass.BaseForm
private void BoundPurpose()
{
cmbBorrowPurpose.Items.Clear();
cmbBorrowPurpose.Items.Add("研究");
cmbBorrowPurpose.Items.Add("编研");
cmbBorrowPurpose.Items.Add("整理");
... | 1 |
384519b6a1563dab4acba4f4dff21c20 | b0662b4fc239afb6ae10cf94bc284251 | 累积数据并写入本地JSON | try:
client = influxdb.InfluxDBClient('localhost','8086','','','UserConcurrencyNumber')
client.write_points(json_body)
except:
s = traceback.format_exc()
logger().error(s) | 0 |
96765ab7f188487f2e021257f546bd1e | 33d64aea7b02306ad59fc101771c46e3 | Возвращает список преподавателей. | namespace Demosthenes.Controllers
public class ProfessorsController : ApiController
public async Task<ICollection<ProfessorResultViewModel>> GetProfessors()
{
return (await _professors.All())
.Select(p => (ProfessorResultViewModel)p)
.ToList();
} | 1 |
ee54d50d7c995fb8ae5b1a3b68e4b2e5 | 7f862fe6385856150026b47fc9d7a5a4 | Verify building a package from an S3 directory. | class UnitCreatePackageTests(unittest.TestCase):
def test_generate_package(self, m_zipfile, m_join, m_abspath, m_validator,
m_hash):
workspace = Workspace("ws/root", ws_name="ws_test", log_level='debug')
project = Project(workspace, 'prj/path')
packager = Packager(w... | 0 |
0d516ae0ab8fb0613a71b005183a1613 | ad1f6850e52cb0f0193e764e374a4df6 | Metoda aktualizująca słownik o nowe informacje o urządzeniu zwracając tym samym status aktualizacji.
Wywołuje zdarzenie aktualizacji danych o urządzeniu. | <T> void transmitDeviceUpdate(NextState<T> newState) throws DomoticzException; | 0 |
b0f850777f2160013001de9e579e6545 | 2c532fd84f9e99bb14c977bc31717cce | Sets the filters of this AutoDiscoveryConfiguration. | public function setFilters(array $filters); | 1 |
92b9739e1967ca66dbb27c4b14c4994e | dc8092583ccc9908f058caa37c33ba7e | Sets the date prior to which no moves or resizes are allowed. Any events moved towards or across the date mark
will stop at this mark. | public class GanttDateTime extends Base
public void softMinimum() {
APIlib.getInstance().addJSLine(jsBase + ".softMinimum();");
} | 1 |
6ea297c92f42301d935075b8b85004b2 | c04db91d3e6732013784d7461d38839c | newShardEncoder creates a new shardEncoder. | func NewEncoder(w io.Writer) *Encoder {
return &Encoder{
w: w,
names: make(map[string]struct{}),
}
} | 0 |
6119c2d6715b9d9ecc73495c294eb8e3 | 0c9c76c5da237029e4455eb2ad9f3739 | Function that will completely deallocate an MCB. Will also set all interior values to null | void fifo_remove(FCB* fcb)
{
if ((fcb->allocated_memory & BUFFER_MEMORY) == BUFFER_MEMORY)
{
mk_free((void *)fcb->buffer);
}
if ((fcb->allocated_memory & WRITEC_MEMORY) == WRITEC_MEMORY)
{
mk_free((void*)fcb->writec);
}
if ((fcb->allocated_memory & READC_MEMORY) == READC_MEMORY)
{
mk_free((v... | 0 |
a37b1d1c5e335a92a70b7428a42da7f6 | f33f2760ce7d6767143c05427530d39a | 绑定车型BOM管理列表 | {
string sql = "select * from bill_yskm where gkfy='1'";
if (kmStatus != "")
{
sql += " and kmStatus in (" + kmStatus + ")";
}
DataSet temp = server.GetDataSet(sql);
for (int i = 0; i <= temp.Tables[0].Rows.Count - 1; i++)
{
string kmCo... | 0 |
e1ed7027a6dee3f48436cd23df873147 | 0b642e005c5e20f2831be88915b9ad0c | Gets the effect start date window, which may be the same as the effective
start date. | {
if ($asDateTime === true) {
return $this->asDateTime($this->effectiveDate);
}
return $this->effectiveDate;
} | 0 |
421d9b7397874552a065df1736285fde | 0dabb8906d7fa1d717670ccb3f401f96 | Renew the light registration with updated contact information. | public class Session
protected void updateRegistration() {
Thing peer = getStoredPeer();
peer.set(Peer.registration_time,Time.day(Time.today));
sessioner.body.updateStatus(peer,null);
} | 0 |
87494ec6ab9e1d8fdde2dbed525229b0 | f00b531fda88ad2e37c7001ec6070cbe | <pre>
查询门店Wi-Fi信息
通过此接口查询某一门店的详细Wi-Fi信息,包括门店内的设备类型、ssid、密码、设备数量、商家主页URL、顶部常驻入口文案。
请求URL:https://api.weixin.qq.com/bizwifi/shop/get?access_token=ACCESS_TOKEN
POST数据格式:JSON
</pre> | @ResponseBody
public String getShopInfQuery(HttpServletRequest request){
TxnResp resp = new TxnResp();
String channel = request.getParameter("channel");
String innerMerchantNo = request.getParameter("innerMerchantNo");
String innerShopNo = request.get... | 0 |
3ace1585604d488e7899734dea57c0a8 | 4f07894f61b7c1a6d3f571e789c6a366 | Handles the Click event of the cmdValider control. | namespace ObjectModel
public partial class TGElementosSel : Telerik.WinControls.UI.RadForm
private void btnAceptar_Click(object sender, EventArgs e)
{
this.DevolverValor();
} | 0 |
19e3817d308eefce50482920e66ac891 | e56f6e2e832022b047cb32eedd74961d | Merge a single classpath entry into the classpath list. | public final class Main
private void addClassPath(File classpath) {
agentClassPath.add(classpath);
} | 1 |
7fc40c56b56ed6b47389161072899dc4 | 0dc340e7702e3a828d7888451f5e2926 | Returns vector of values from Vector class | namespace Classify
public class ClassifyVector
public List<double> VecValI (int i)
{
return vecData [i];
} | 0 |
69233a4bafe95c20e34ecef45331b139 | 8073f720b6d0d32f248939836054f032 | Renders control border. | namespace Moonbyte.MaterialFramework.Controls
public class MaterialTextBox : UserControl
protected override void OnPaint(PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics, this.ClientRectangle, _borderColor, 1,
ButtonBorderStyle.Solid, _borderColor, 1,
Butt... | 1 |
bded5a63c729850b67538982c90f18ce | ec9cbfaf9445b1a823f7858121fb6118 | Get the dataFlow property: Data flow instance. | export class AudioDevice{
getDataFlow(): string {
return this._dataFlow;
} | 1 |
77c6d110a6969b0a7fea251b4bd0c6c0 | e07858f06778b41de01c5478436bb9bb | Sur clic droit sur le menu "Connexion", afficher le menu contextuel des bases de données accessibles | {
MENU_Principal.Items["connexionToolStripMenuItem"].Visible = true;
MENU_Principal.Items["consulterLesFondsToolStripMenuItem"].Visible = false;
MENU_Principal.Items["prêtRetourToolStripMenuItem"].Visible = false;
MENU_Principal.Items["fenêtreToolStripMenuItem"].V... | 0 |
b70856c600c543fb86cc0c625dc48d77 | f8af41ba25325bcbb29eee23155ca286 | Retrieves status of controller creation or removal. The progress
gives a percentage indication of current deploy / remove procedure. | StatusAndLog getProgress(); | 1 |
7045d75c576fb54ab659f15771200c45 | 11f1616fc9dc0ad6340b6f4885160c14 | Sample code to contrast uploading a file using Amazon S3's Multi-Part Upload API | input := &obs.InitiateMultipartUploadInput{}
input.Bucket = bucketName
input.Key = objectKey
output, err := obsClient.InitiateMultipartUpload(input)
if err != nil {
panic(err)
}
uploadId := output.UploadId
fmt.Printf("UploadId:%s\n", uploadId)
fmt.Println()
var partSize int64 = 100 * 1024 * 1024
stat, err ... | 1 |
833cee000a682f6513da546e63784242 | 9d41cb74ba69152057f532c05b878009 | Closes the TfRecordsExporter and the tf.python_io.TFRecordWriter properly. | class EigensoftSmartPCAWriter(object):
def __exit__(self, *exc_info):
self.close() | 0 |
1f0ba8cc0de9c542db50e46f164f4873 | 68f84c714f7f4f5c95d3107f891e3be7 | add an operator for importing dsf-files and
registers a menu function for it. | def menu_func (self, context):
self.layout.operator (import_dsf_morph.bl_idname, text = 'dsf-morph (.dsf)') | 1 |
3b694110d350ee4e53de45b87d29cb45 | 406994b7dbf4fdc60aca5774afbd64d6 | Ensures a License Exception is thrown when an invalid license is requested. | class TestJLink(unittest.TestCase):
def test_jlink_builtin_licenses_fail_to_read(self):
self.dll.JLINK_GetAvailableLicense.return_value = -1
with self.assertRaises(JLinkException):
self.jlink.licenses | 1 |
548858488a1eca6802835bc863237f9b | b868a1ebe3118c97ce019b8999945a7f | 从xml文件中读取当前登录用户的配置信息比如其好友信息 | namespace Client
public partial class MainFrm : Form
private List<User> GetFriendsInfoFromXml(byte[] content)
{
MemoryStream ms = new MemoryStream(content);
XmlSerializer serializer = new XmlSerializer(typeof(List<User>));
return serializer.Deserialize(ms) as List<User>;
... | 1 |
828a85944cd50826285790cacc50eb1b | f5cf9b5555a15a4820774b1776b24925 | 身份证识别. | class Validate
public static function idCard($value)
{
return self::regex($value, self::$regex['idCard']);
} | 1 |
eeeb77f65168283296c1daa092ecacf7 | 50ceff6608f6f820d6cfae9be276cfba | 导师列表信息 | @Controller
open class GraduationDesignTeacherController
@RequestMapping(value = ["/web/graduate/design/tutor/look/data"], method = [(RequestMethod.GET)])
@ResponseBody
fun listData(request: HttpServletRequest): DataTablesUtils<GraduationDesignTeacherBean> {
val headers = ArrayList<String>()
hea... | 1 |
cb1ca0342d02d40cd15f215cc1e44e2a | fde88267bede0e67db8857f726646483 | Método para cadastrar o usuário na apicação, passando parâmetros para a tela index. | if request.method == 'POST':
nome = request.POST['nome']
email = request.POST['email']
password = request.POST['password']
password2 = request.POST['password2']
if checa_campos_vazios(request, [('nome', nome), ('email', email), ]):
return redirect('cadastro')
... | 1 |
6f8e19930762e61ceeba998e28bd8284 | 3cfb2f17a99c84e8a8bc316512c610a9 | Send invite via Firebase App Invites | namespace Facebook.Unity
public sealed class FB : ScriptableObject
public sealed class Mobile
public static void AppInvite(
Uri appLinkUrl,
Uri previewImageUrl = null,
FacebookDelegate<IAppInviteResult> callback = null)
{
MobileFa... | 0 |
46b519e273dd4822d7833381657f5e28 | 58dfb199770ed6fcd6fa223613f0068c | 12_1. 特定地区进出口总值表 | curr_type = 0
year_ls = ['2018']
col_names = ['境内目的地/货源地','出口','进口','年月']
table_index = 9
iloc_x1 = 3
iloc_x2 = None
step = 1
iloc_y = [0,3,5]
col_name_dict = {0:'境内目的地/货源地',3:'出口',5:'进口'}
unit = '万元'
df = get_table2(curr_type,col_names,table_index,iloc_x1,iloc_x2,iloc_y,col_... | 1 |
a6bea9769e1815ad500e29422fd28dcd | c7325f3e911edc7c963c2627cae9834b | Удаляет контейнер с карты | void ContainerLocationData::container_del() {
auto f = p_container->find(_location);
if (f != nullptr)
p_container->clear(_location);
} | 0 |
ba71acd2662c836ad62ef96969af9a3d | 28c962bda65a3beb5288e19148584c8f | Gets the value of the maximumVersionsToKeep property.
possible object is
{@link Integer } | @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"isAddress",
"isMode",
"isVersion",
"isDeviceRegistered",
"isPeakDeviceRegistered",
"isPeakDeviceRegisteredTime",
"isKeepAliveInterval",
"isConfiguredDevice",
"isConfiguredExtension",
"isServiceEngine",
"... | 0 |
344129eddb13425c255c7d4df5cb371e | 94f490423841fb2859e95de9e5c17fdd | Function for testing the inverse line fit. | def test_f(x):
a = 1
b = 100
return (a - x[0])**2 + b*(x[1] - x[0]**2)**2 | 0 |
dbb55e11405d9227edc19586c4e8b778 | 7d68f1f7e04aeeb1da6902b1cfa753e6 | Prepares the frame header. | void frame_header_init( ProfileHeader_t *data, uint8_t frame_slot, uint8_t frame_len )
{
data->length = (uint8_t) (frame_len + PROF_FRAME_HEADER_LEN-1);
data->fwver.maj = VERSION_MAJOR;
data->fwver.min = VERSION_MINOR;
data->fwver.rev = VERSION_REV;
data->hwver = gHw_ID;
data->frame_slot = f... | 1 |
3479d742159a56cf3666c79ea279b5f3 | 1070b8725ea48b8fab250d30fc63769a | Gibt den Namen der Kontrolldatei fᅵr erfolgreiche Indexerstellung zurᅵck.
<p>
Diese Datei wird erzeugt, wenn der Index erstellt wurde, ohne dass
fatale Fehler aufgetreten sind.
<p>
Wenn keine Kontrolldatei erzeugt werden soll, dann wird <code>null</code>
zurᅵckgegeben. | return this.getDataDir()
+ File.separator + "meta_import"
+ File.separator + System.currentTimeMillis() + ".zip";
} | 0 |
2314c3788236698990f7e3f9cd82b15e | 6c7f1923a709b7fc0e650bbcaa6309a2 | 힙에 데이터 삽입 | void put(ll key) {
int fa, son;
ll tmp;
heap[++tot] = key;
son = tot;
fa = son / 2;
while (fa > 0) {
if (heap[fa] > heap[son]) {
tmp = heap[fa];
heap[fa] = heap[son];
heap[son] = tmp;
son = fa;
fa /= 2;
... | 1 |
097eee03cbf8352402b0adeb51e97773 | dd29d24444acda6a6f2f96646ba59444 | a method intended to be "protected" that can implement the recursive algorithm to classify an instance given a tree | if decision_tree != None:
if decision_tree.leaf:
if len(decision_tree.prediction) == 1:
return list(decision_tree.prediction.keys())[0]
else:
best_prediction = None
best_prediction_count = 0
for value in decision_tree.prediction:
count = decision_tree.predict... | 1 |
afc5632ce2e862ec7a53256830309c56 | 6ecc2ca951cede755a3ab4f372b983a7 | 查找出所有下级品类,更改其编码 | String superiorcode = "0";
tempList = categoryService.findSecond(superiorcode);
return SUCCESS;
} | 0 |
6c09eb7481a81e622274f0533e8357db | 5b5ff725b7948c7574630db821b30786 | Creates an Action with the given
attributes and returns it | if (event == null) {
event = e -> {};
}
if (actionName == null) {
actionName = "";
}
return new MenuAction(pluginId, actionName, event, keyCombination, actionId);
} | 1 |
3c5fe81ff327696e0425ff707c79a7c7 | fde41f09ba887d460a35fec1affc5a86 | 获取投资项目,并格式化借贷类型 | @Scope("prototype")
@Controller
@RequestMapping("/investprojectController")
public class InvestprojectController extends BaseController
@RequestMapping(params = "investproject")
public ModelAndView investproject(HttpServletRequest request) {
String bidReplace = "";
List<InvestbidtypeEntity> bidTypeList = systemSer... | 1 |
efe2560fa77e68a5cbd8f771b763d90a | 8d955881e2188b3a8aa3ff86d260bc53 | 输出年月日 | public class DateUtil
public static String getYearMonthDay() {
Calendar cal = Calendar.getInstance();
int day = cal.get(Calendar.DATE);
int month = cal.get(Calendar.MONTH) + 1;
int year = cal.get(Calendar.YEAR);
return year + "年" + month + "月" + day + "日";
} | 1 |
9b3bfcdc3fcef27e860cb0ecc33f627f | ea1a82c01cae96082926b536832d48f5 | This method renders the batch correspondence details page for the selected batch
correspondence when the refresh button is clicked. | KVExtractionDTO selectedKVExtraction = controller.getSelectedKVExtraction();
if (selectedKVExtraction != null) {
AdvancedKVExtractionDTO advancedKVExtractionDTO = selectedKVExtraction.getAdvancedKVExtractionDTO();
if (null != advancedKVExtractionDTO && null != advancedKVExtractionDTO.getDisplayImageName()) {
... | 0 |
7711d380836f09513e650f248fb5e6d3 | db2e0c4923223010fa235db8fd5f89b9 | Get proposal rows. | class ContractsController extends HasRowsController
public function getRows(Contracts $model): JsonResponse
{
return $this->doGetRows($model);
} | 0 |
fe974e0d5b3f45ff732ddec14f3dee9d | c530e751c6b944b5e1887bed7b9c2872 | @brief get history by frequent | {
int i;
for (i = cur_his + 1; i <= cur_his + HISTORY_COUNT; i++) {
if (cmd[i % HISTORY_COUNT][0]) {
printf("%s\n", cmd[i % HISTORY_COUNT]);
}
}
} | 0 |
3661017f3d64ed9f9faf517e391471eb | e3a38271c541ddcb5178dd4d3b0a6e5d | Search Account_Verify that corresponding account records are displayed in account list view by basic search condition. | self.base_page.open_page()
self.log_in_base.log_in()
current_handle = self.driver.get_current_window_handle()
self.cust_manage_basic_info_and_add_cust_page.enter_cust_manage()
self.base_page.change_windows_handle(current_handle)
self.cust_manage_basic_info_and_add_cust_pa... | 1 |
845cb035a77d78df99732ccc1737b964 | 78c5ebfb2f8ccdd5731b00707e3a322b | A brief description to use for instances
created from this template. | class _ServerlessInstanceState:
def db_instance_description(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "db_instance_description") | 1 |
f104a07a87a3792b48df7e2d27287da9 | 6231aa68ac9bb5dc3adb3b1607dad653 | Calculate Area of Triangle (Heron’s Formula, original source: https://byjus.com/maths/area-of-a-triangle/ | function calcTriangleArea(l1, l2, l3) {
var l = (l1 + l2 + l3) / 2;
return Math.sqrt(l * (l - l1) * (l - l2) * (l - l3));
} | 1 |
bc85e7dac2fda00fa999873c93f9fe21 | c5bd0c0022032e71e88f046b4a2fd2d8 | 去掉号码中的特殊字符 | $str=trim($str);
if(empty($str)){return '';}
$temp=array('1','2','3','4','5','6','7','8','9','0');
$result='';
for($i=0;$i<strlen($str);$i++){
if(in_array($str[$i],$temp)){
$result.=$str[$i];
}
}
return $result;
} | 1 |
ee81b312ee23bfbc567f7d78b37dc4ea | eaada5a5f4a0221fe152c417e769b8f8 | Constructor of Interface statement
name: str | class windowInterface(tkinter.Tk): # screen to display interface for ALL client
def __init__(self, name="camera configuration interface"):
super().__init__(name) | 1 |
fff2d3312785ab0ec3b1f6558cca436c | fdbf46cd5578ea550b5f97ad41f2fbfd | Compute classic statistical analysis on time interval between bids | bid_nb = np.float(series.shape[0])
min_time = np.float(series.min())
max_time = np.float(series.max())
range_time = np.float(max_time - min_time)
time_interval = series[1:].as_matrix() - series[:-1].as_matrix()
if len(time_interval) < 1:
time_interval = np.arr... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.