content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package edu.brown.gui.common; import java.awt.event.MouseEvent; import edu.uci.ics.jung.visualization.control.GraphMouseListener; import edu.uci.ics.jung.visualization.picking.PickedState; /** * * @author pavlo * * @param <T> */ public class MouseListener<T> implements GraphMouseListener<T> { private T sel...
__label__POS
0.706031
<?php require_once('Modem.php'); class Project { protected $name; protected $modem; protected $llm; protected $embeddings; protected $type; public function __construct($name, $type, $url, $apikey) { $this->name = $name; $this->type = $type; $this->modem = new Modem($url, $apikey); } publ...
__label__POS
0.941625
// // Win32 API declarations // // Also includes implementation of Epoch-specific wrapper functions // that would need to be rewritten to use a different platform's APIs // during a porting effort. // // // We use strong type aliases liberally to catch cases of passing // the wrong stuff around via opaque "integer"...
__label__POS
0.828352
// // Lexical analysis // // Evil, evil, evil hack EpochLib_SubstrCharDirect : integer pointer, integer pos -> integer ch = 0 [external("EpochLibrary.dll", "EpochLib_SubstrCharDirect"), nogc] EpochLib_StrPointer : string s -> integer pointer = 0 [external("EpochLibrary.dll", "EpochLib_StrPointer"), nogc] EpochLib_Su...
__label__POS
0.835084
// // Portable Executable generation code // structure COFFSectionHeader : string Name, integer FileOffset, integer VirtualOffset, integer FileSize, integer VirtualSize, integer Characteristics RoundUp : integer in -> integer out = ((in / 0x1000) + 1) * 0x1000 // TODO - this over-estimates if in is a perf...
__label__POS
0.645237
// // The Epoch Language Project // Epoch Development Tools - Common Library Modules // // TRIE.EPOCH // Common library implementation of trie data structure // // This data structure is designed to store an associative mapping // from strings to integer values. It is primarily used in the core // compiler for allocati...
__label__POS
0.982817
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MSFViewer { class MSFStreamDBIModule : MSFStream { public MSFStreamDBIModule(MSFStream rawstream, int index, int dbimoduleindex, uint symbytes, uint...
__label__POS
0.762689
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MSFViewer { class ByteSequence { public ByteSequence(byte[] completebuffer) { CachedResponse = completebuffer; } public ByteSequence(byte[]...
__label__POS
0.94382
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MSFViewer { class MSFBlock { private byte[] RawBlock = null; private int MyIndex; private MSFBlock(byte[] entirefile, int block, int blocksize) { ...
__label__POS
0.94393
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MSFViewer { class MSFStreamSymbols : MSFStream { public MSFStreamSymbols(MSFStream rawstream, int index) : base(rawstream.GetFlattenedBu...
__label__POS
0.866766
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MSFViewer { class MSFStreamPDBInfo : MSFStream { public MSFStreamPDBInfo(int streamindex, byte[] entirefile, int streamsize, List<int> blocks, int b...
__label__POS
0.644064
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MSFViewer { class MSFStream { public string Name = "(Unknown)"; protected byte[] FlattenedBuffer = null; protected int ReadOffset =...
__label__POS
0.737691
/** * Created by zifan on 2015/10/16. */ $.validator.setDefaults({ ignore: ":hidden", success: function (span) { if(span.prev().length!=0){ if (span.prev().is(":radio") || span.prev().is(":checkbox") || $(span).prev().prop("tagName").toLowerCase() == "select") { $(span).addClass("hid...
__label__POS
0.662758
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "Fills.h" using namespace std; using namespace Tizen::ArtikCloud; Fills::Fills() { //__init(); } Fills::~Fills() { //__cleanup(); } void Fills::__init() { //time = null; //price = double(0...
__label__POS
0.728208
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "Position_data_inner.h" using namespace std; using namespace Tizen::ArtikCloud; Position_data_inner::Position_data_inner() { //__init(); } Position_data_inner::~Position_data_inner() { //__cl...
__label__POS
0.725713
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "OrderExecutionReport.h" using namespace std; using namespace Tizen::ArtikCloud; OrderExecutionReport::OrderExecutionReport() { //__init(); } OrderExecutionReport::~OrderExecutionReport() { /...
__label__POS
0.622758
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","...
__label__POS
0.999779
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","...
__label__POS
0.999863
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "OrderNewSingleRequest.h" using namespace std; using namespace Tizen::ArtikCloud; OrderNewSingleRequest::OrderNewSingleRequest() { //__init(); } OrderNewSingleRequest::~OrderNewSingleRequest()...
__label__POS
0.62656
/*! * Datetimepicker for Bootstrap * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * */.datetimepicker{padding:4px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;direction:ltr}...
__label__POS
0.998156
#include <iostream> #include <sstream> #include <cstdlib> #include <map> #include <list> #include <cstring> #include "Helpers.h" #include "Object.h" using namespace std; using namespace Tizen::ArtikCloud; void helper_func(JsonObject *object, const gchar* member_name, JsonNode *member_node,gpointer user_data) { gcha...
__label__POS
0.781922
/*! * Datepicker for Bootstrap * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * */ .datepicker { padding: 4px; border-radius: 4px; direction: ltr; /*.dow { border-top: 1px solid #ddd !important; }*/ ...
__label__POS
0.992568
package com.example.infosystem_spring.service; import com.example.infosystem_spring.dao.itf.NewsDao; import com.example.infosystem_spring.entity.News; import com.example.infosystem_spring.service.itf.NewsService; import com.example.infosystem_spring.util.FreeMarkerUtil; import com.github.pagehelper.PageHelper; import ...
__label__POS
0.735985
package com.example.infosystem_spring.webservice; import com.example.infosystem_spring.dao.UserDaoImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class WebUserDetailsService implements WebUserService { @Autowired private...
__label__POS
0.861955
package com.example.infosystem_spring.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping("/admin/...
__label__POS
0.716325
package com.example.infosystem_spring.controller; import com.example.infosystem_spring.entity.News; import com.example.infosystem_spring.service.itf.NewsService; import com.github.pagehelper.PageInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; impor...
__label__POS
0.600873
package com.example.infosystem_spring.Interceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; imp...
__label__POS
0.887863
package com.example.infosystem_spring.Interceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; imp...
__label__POS
0.87714
package com.example.infosystem_spring.dao; import com.example.infosystem_spring.dao.itf.UserDao; import com.example.infosystem_spring.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.jdbc.core.JdbcTempl...
__label__POS
0.633304
package com.example.infosystem_spring.util.pk; import com.example.infosystem_spring.util.pk.local.LocalIdGenerator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.annotation.PostConst...
__label__POS
0.991705
package com.example.infosystem_spring.util.pk.local; /** * @Description 获取全局唯一ID,根据Twitter雪花ID算法。为兼顾到前端失精问题,把返回值long改成String:</br> * SnowFlake算法用来生成64位的ID,刚好可以用long整型存储,能够用于分布式系统中生产唯一的ID, 并且生成的ID有大致的顺序。 在这次实现中,生成的64位ID可以分成5个部分:</br> * 0 - 41位时间戳 - 5位数据中心标识 - 5位机器标识 - 12位序列号</br> * @author 王鑫 * @date Dec 20, 201...
__label__POS
1.000004
package com.example.infosystem_spring.util.pk.local.impl; import com.example.infosystem_spring.util.pk.local.LocalIdGenerator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import java.text.SimpleDat...
__label__POS
0.985756
package com.example.infosystem_spring.util.pk.local.impl; /** * The class Snowflake id generator. Created by paascloud.net@gmail.com * Twitter雪花ID算法 * 概述 * - SnowFlake算法是Twitter设计的一个可以在分布式系统中生成唯一的ID的算法,它可以满足Twitter每秒上万条消息ID分配的请求,这些消息ID是唯一的且有大致的递增顺序 * * 原理 * - SnowFlake算法产生的ID是一个64位的整型,结构如下(每一部分用“-”符号分隔): * ...
__label__POS
0.786469
package com.starcross.rocketmq.consumer.demo.enums; /** * 维护topicTag和处理类的关系 */ public enum MqConsumerBeanEnum { ADD_USER("T_DEMO_PROJECT:ADD_USER", "addUserHandler"), ADD_ORDER("T_DEMO_PROJECT:ADD_ORDER", "addOrderHandler"), ; /** * TOPIC:TAG 名称 */ private String topicTag; /...
__label__POS
0.966797
package com.starcross.rocketmq.consumer.demo.handler; import com.alibaba.fastjson.JSON; import com.starcross.rocketmq.consumer.demo.dto.OrderDTO; import com.starcross.rocketmq.consumer.demo.mq.service.impl.AbstractMqConsumerServiceImpl; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus; imp...
__label__POS
0.974163
package com.starcross.rocketmq.consumer.demo.handler; import com.alibaba.fastjson.JSON; import com.starcross.rocketmq.consumer.demo.dto.UserDTO; import com.starcross.rocketmq.consumer.demo.mq.service.impl.AbstractMqConsumerServiceImpl; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus; impo...
__label__POS
0.974179
package com.starcross.rocketmq.consumer.demo.mq.listener; import com.starcross.rocketmq.consumer.demo.properties.MqConsumerProperties; import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext; import org.apache.rocketmq.client.cons...
__label__POS
0.806401
package com.starcross.rocketmq.consumer.demo.mq.service.impl; import com.starcross.rocketmq.consumer.demo.mq.service.MqConsumerService; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; ...
__label__POS
0.919183
package com.starcross.rocketmq.producer.demo.dto; import java.io.Serializable; public class MqMessageDTO implements Serializable { /** * 消息ID */ private String msgId; /** * 主题 */ private String topic; /** * 消息标签体 */ private String tag; /** * 消息业务主键 ...
__label__POS
0.820732
package com.starcross.rocketmq.producer.demo.config; import com.starcross.rocketmq.producer.demo.properties.MqProducerProperties; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ...
__label__POS
0.802952
package com.starcross.rocketmq.producer.demo.mq.service.impl; import com.alibaba.fastjson.JSON; import com.starcross.rocketmq.producer.demo.dto.MqMessageDTO; import com.starcross.rocketmq.producer.demo.mq.service.MqProducerService; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.apache.rocketm...
__label__POS
0.821912
package main import ( "fmt" "os" "os/signal" "owaspapitop10/api" "syscall" "github.com/gorilla/sessions" ) var Store *sessions.FilesystemStore // 初始化 func init() { if _, err := os.Stat("sql.db"); os.IsNotExist(err) { fmt.Println("sql.db does not exist!") db := api.SqliteConn() defer db.Close() fmt.Pr...
__label__POS
0.6863
/** * @author chenlei06 * @email chenlei06@corp.netease.com * @create date 2021-05-02 19:21:46 * @modify date 2021-05-02 19:21:46 * * @desc native 命名空间 musiclibrary 相关 api */ /** * @description 获取一个 <length> 长的随机字符 * @param length * @returns */ function randString(length: number = 10) { const chars = "0123...
__label__POS
0.837026
require 'rails_helper' describe 'SamlAuthenticatable Routes', type: :routing do describe 'GET /users/saml/sign_in (login)' do it 'routes to Devise::SamlSessionsController#new' do expect(get: '/users/saml/sign_in').to route_to(controller: 'devise/saml_sessions', action: 'new') expect(get: new_user_ses...
__label__POS
0.914263
require 'ruby-saml' module DeviseSamlAuthenticatable module SamlConfig def saml_config(idp_entity_id = nil, request = nil) return file_based_config if file_based_config return adapter_based_config(idp_entity_id, request) if Devise.idp_settings_adapter Devise.saml_config end private ...
__label__POS
0.619606
<?php // core font definition file for TCPDF (www.tcpdf.org) $type='core'; $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>...
__label__POS
0.676081
<?php // core font definition file for TCPDF (www.tcpdf.org) $type='core'; $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>...
__label__POS
0.725855
<?php // core font definition file for TCPDF (www.tcpdf.org) $type='core'; $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>...
__label__POS
0.676081
-module(openapi_order_new_single_request). -export([encode/1]). -export_type([openapi_order_new_single_request/0]). -type openapi_order_new_single_request() :: #{ 'exchange_id' := binary(), 'client_order_id' := binary(), 'symbol_id_exchange' => binary(), 'symbol_id_coinapi' => binary(), ...
__label__POS
0.82484
-module(openapi_order_execution_report). -export([encode/1]). -export_type([openapi_order_execution_report/0]). -type openapi_order_execution_report() :: #{ 'exchange_id' := binary(), 'client_order_id' := binary(), 'symbol_id_exchange' => binary(), 'symbol_id_coinapi' => binary(), 'am...
__label__POS
0.840311
<?php // core font definition file for TCPDF (www.tcpdf.org) $type='core'; $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>...
__label__POS
0.725855
package main import ( "fmt" "os" "os/signal" "owaspapitop10/api" "syscall" "github.com/gorilla/sessions" ) var Store *sessions.FilesystemStore // 初始化 func init() { if _, err := os.Stat("sql.db"); os.IsNotExist(err) { fmt.Println("sql.db does not exist!") db := api.SqliteConn() defer db.Close() fmt.Pr...
__label__POS
0.6863
// // SelectBox.h // GuitarAmp // // Created by Andreas Pohl on 10/10/16. // // #ifndef SelectBox_h #define SelectBox_h #include "IControl.h" #include <string> class IPopupMenuItemEx : public IPopupMenuItem { public: IPopupMenuItemEx(const char* text, IPopupMenu* pSubMenu) : IPopupMenuItem(text, pSubMenu),...
__label__POS
0.769915
// // This source file is part of the Apodini open source project // // SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the Apodini project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de> // // SPDX-License-Identifier: MIT // protocol PathComponentParser { mutating...
__label__POS
0.821035
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "reject_reason.h" char* reject_reason_reject_reason_ToString(ems___rest_api_reject_reason__e reject_reason) { char *reject_reasonArray[] = { "NULL", "OTHER", "EXCHANGE_UNREACHABLE", "EXCHANGE_RESPONSE_TIMEOUT", "ORDER_ID_NOT_FOUND", "INVALID_TYP...
__label__POS
0.728024
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "ord_type.h" char* ord_type_ord_type_ToString(ems___rest_api_ord_type__e ord_type) { char *ord_typeArray[] = { "NULL", "LIMIT" }; return ord_typeArray[ord_type]; } ems___rest_api_ord_type__e ord_type_ord_type_FromString(char* ord_type) { ...
__label__POS
0.76358
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "time_in_force.h" char* time_in_force_time_in_force_ToString(ems___rest_api_time_in_force__e time_in_force) { char *time_in_forceArray[] = { "NULL", "GOOD_TILL_CANCEL", "GOOD_TILL_TIME_EXCHANGE", "GOOD_TILL_TIME_OMS", "FILL_OR_KILL", "IMMEDIATE_...
__label__POS
0.731918
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "ord_side.h" char* ord_side_ord_side_ToString(ems___rest_api_ord_side__e ord_side) { char *ord_sideArray[] = { "NULL", "BUY", "SELL" }; return ord_sideArray[ord_side]; } ems___rest_api_ord_side__e ord_side_ord_side_FromString(char* ord_side...
__label__POS
0.728239
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "ord_status.h" char* ord_status_ord_status_ToString(ems___rest_api_ord_status__e ord_status) { char *ord_statusArray[] = { "NULL", "RECEIVED", "ROUTING", "ROUTED", "NEW", "PENDING_CANCEL", "PARTIALLY_FILLED", "FILLED", "CANCELED", "REJECTED" }; ...
__label__POS
0.712593
''' Created on Jan 2, 2016 @author: Alex ''' import unittest from traclus_impl.linked_list import LinkedList from traclus_impl.linked_list import LinkedListNode class Test(unittest.TestCase): def build_test_ob(self, values): return {'values': values} def setUp(self): self.test_cases = ...
__label__POS
0.791431
#include <assert.h> #include "virt_dev.h" int create_virtual_network_device(char *interfaceName, char* interfaceSet) { assert("Not implemented for current platform"); return -1; } void close_virtual_network_device(int deviceId) { assert("Not implemented for current platform"); } long read_virtual_networ...
__label__POS
0.775593
namespace EtherCAT.NET { public class EcSettings { #region Constructors public EcSettings(uint cycleFrequency, string esiDirectoryPath, string interfaceName) { this.CycleFrequency = cycleFrequency; this.FrameCount = 15000; this.TargetTimeDifference =...
__label__POS
0.64891
using System; using System.Runtime.InteropServices; using System.Security; namespace SOEM.PInvoke { public class EcConfig { [SuppressUnmanagedCodeSecurity] [DllImport(EcShared.NATIVE_DLL_NAME)] public static extern int ecx_config_init(IntPtr context, byte usetable); [SuppressUn...
__label__POS
0.991992
using System; using System.Runtime.InteropServices; using System.Security; namespace SOEM.PInvoke { public class EcEoE { [SuppressUnmanagedCodeSecurity] [DllImport(EcShared.NATIVE_DLL_NAME)] public static extern int ecx_EOEdefinehook(IntPtr context, IntPtr hook); [SuppressUnman...
__label__POS
0.950669
using System; using System.Runtime.InteropServices; using System.Security; namespace SOEM.PInvoke { public class EcBase { [SuppressUnmanagedCodeSecurity] [DllImport(EcShared.NATIVE_DLL_NAME)] public static extern int ecx_setupdatagram(IntPtr port, IntPtr frame, byte com, byte idx, ushor...
__label__POS
0.985443
using System; using System.Runtime.InteropServices; using System.Security; namespace SOEM.PInvoke { public class EcMain { [SuppressUnmanagedCodeSecurity] [DllImport(EcShared.NATIVE_DLL_NAME)] public static extern IntPtr ec_find_adapters(); [SuppressUnmanagedCodeSecurity] ...
__label__POS
0.761891
using System; using System.Runtime.InteropServices; using System.Security; namespace SOEM.PInvoke { public class EcCoE { [SuppressUnmanagedCodeSecurity] [DllImport(EcShared.NATIVE_DLL_NAME)] public static extern void ecx_SDOerror(IntPtr context, ushort Slave, ushort Index, byte SubIdx, ...
__label__POS
0.92075
/* * EMS - REST API * This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatra...
__label__POS
0.925469
package org.openapitools.client; import java.util.Map; /** * Representing a Server configuration. */ public class ServerConfiguration { public String URL; public String description; public Map<String, ServerVariable> variables; /** * @param URL A URL to the target host. * @param descripti...
__label__POS
0.692506
package org.openapitools.client.infrastructure enum class ResponseType { Success, Informational, Redirection, ClientError, ServerError } interface Response abstract class ApiResponse<T>(val responseType: ResponseType): Response { abstract val statusCode: Int abstract val headers: Map<String,List<String>>...
__label__POS
0.652385
namespace FluentModbus; /// <summary> /// Specifies the action the Modbus server is requested to do. /// </summary> public enum ModbusFunctionCode : byte { // class 0 /// <summary> /// This function code is used to read the contents of a contiguous block of holding registers in a remote device. /// <...
__label__POS
0.918829
=begin #EMS - REST API #This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatr...
__label__POS
0.626211
using BenchmarkDotNet.Attributes; using ICSharpCode.SharpZipLib.Zip.Compression; using ICSharpCode.SharpZipLib.Zip.Compression.Streams; using ISA_L.PInvoke; using System.IO.Compression; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Benchmark; [MemoryDiagnoser] public class Inf...
__label__POS
0.758895
using System.Runtime.CompilerServices; using System.Text; namespace PureHDF; internal static partial class MathUtils { public static void SwizzleCoords(ulong[] swizzledCoords, int unlimitedDim) { /* Nothing to do when unlimited dimension is at position 0 */ if (unlimitedDim > 0) { ...
__label__POS
0.922995
using System.Buffers; using System.Buffers.Binary; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; namespace PureHDF; internal static partial class ReadUtils { public static MethodInfo MethodInfoDecodeUnmanagedElement { get; } = typeof(ReadU...
__label__POS
0.695653
namespace PureHDF.VOL.Native; /// <summary> /// A simple writing chunk cache which has not limits in size. /// </summary> public partial class SimpleWritingChunkCache : IWritingChunkCache { private record WritingChunkInfo(Memory<byte> Chunk); private readonly Dictionary<ulong, WritingChunkInfo> _chunkInfoMap...
__label__POS
0.91352
/* This file is part of VoltDB. * Copyright (C) 2008-2010 VoltDB L.L.C. * * This file contains original code and/or modifications of original code. * Any modifications made by VoltDB L.L.C. are licensed under the following * terms and conditions: * * Permission is hereby granted, free of charge, to any person ob...
__label__POS
0.984012
namespace PureHDF.VOL.Native; internal abstract record class ScratchPad { // } internal record class SymbolicLinkScratchPad( uint LinkValueOffset ) : ScratchPad { public static SymbolicLinkScratchPad Decode(H5DriverBase driver) { return new SymbolicLinkScratchPad( LinkValueOffset:...
__label__POS
0.685066
namespace PureHDF.VOL.Native; internal record class RegularHyperslabSelectionInfo( uint Rank, ulong[] Starts, ulong[] Strides, ulong[] Counts, ulong[] Blocks, ulong[] CompactDimensions ) : HyperslabSelectionInfo(Rank: Rank) { public static RegularHyperslabSelectionInfo Decode(H5DriverBase ...
__label__POS
0.895654
namespace PureHDF.VOL.Native; internal record class SymbolTableMessage( NativeReadContext Context, ulong BTree1Address, ulong LocalHeapAddress ) : Message { private LocalHeap _localHeap; private BTree1Node<BTree1GroupKey> _bTree1; public static SymbolTableMessage Decode(NativeReadContext cont...
__label__POS
0.833141
How to Adapt a New Autonomous Driving Vehicle Chassis? ======================================================== I want to adapt a new autonomous driving vehicle, but it is not in the current list of vehicles supported by Apollo. What steps do I need to take? - Maintainer: \ daohu527@gmail.com - Version: 1.0.0 - Da...
__label__POS
0.778194
namespace PureHDF.VOL.Native; internal record class OldObjectModificationTimeMessage( int Year, int Month, int DayOfMonth, int Hour, int Minute, int Second ) : Message { public static OldObjectModificationTimeMessage Decode(H5DriverBase driver) { // date / time var year...
__label__POS
0.936464
using Xunit; namespace PureHDF.Tests.Writing; public partial class DatasetTests { [Theory] [InlineData(true)] [InlineData(false)] public void CanWrite_Space_Null(bool preferCompact) { // Arrange var file = new H5File(); file["Null"] = new H5Dataset<int[]>(); var ...
__label__POS
0.932883
using Xunit; namespace PureHDF.Tests.Writing; public class LinkTests { [Fact] public void CanWrite_SoftLinks() { // Arrange var file = new H5File { ["group_1"] = new H5Group { ["dataset"] = new int[] { 1, 2, 3 } }, [...
__label__POS
0.974567
using Xunit; namespace PureHDF.Tests.Writing; public partial class AttributeTests { [Fact] public void CanWrite_OnGroup() { // Arrange var group = new H5Group(); var file = new H5File { ["group"] = group }; group.Attributes["attribute 1"] = 99...
__label__POS
0.616836
using Xunit; namespace PureHDF.Tests.Writing; public partial class AttributeTests { [Fact] public void CanWrite_Space_Null() { // Arrange var file = new H5File(); file.Attributes["Null"] = new H5Attribute<int[]>(); var filePath = Path.GetTempFileName(); // Act ...
__label__POS
0.952184
package org.voltdb.benchmark.tpcc.procedures; import java.util.HashMap; import java.util.Map.Entry; import org.voltdb.ProcInfo; import org.voltdb.SQLStmt; import org.voltdb.VoltProcedure; import org.voltdb.VoltTable; import org.voltdb.VoltType; @ProcInfo( singlePartition = false ) public class GetTableCounts ext...
__label__POS
0.94149
HDF5 "<file-path>" { GROUP "/" { GROUP "0" { } GROUP "1" { } GROUP "10" { } GROUP "100" { } GROUP "101" { } GROUP "102" { } GROUP "103" { } GROUP "104" { } GROUP "105" { } GROUP "106" { } GROUP "107" { } GROUP "108" { } GROUP "109" { } GRO...
__label__POS
0.626991
using System.Text; using Xunit; namespace PureHDF.Tests.Reading; public class OtherTests { [Fact] public void CanReadWrappedFile_Compact_sync() { // Arrange var filePath = "TestFiles/sine_compact.mat"; // Act using var root = H5File.OpenRead(filePath); var result =...
__label__POS
0.937716
using Xunit; namespace PureHDF.Tests.Reading; public class ChunkCacheTests { [Fact] public void CanCacheChunk() { // Arrange var cache = new SimpleReadingChunkCache(); for (int index = 0; index < cache.ChunkSlotCount; index++) { cache.GetChunk((ulong)index, ()...
__label__POS
0.767301
package edu.brown.api; import org.voltdb.SysProcSelector; import edu.brown.statistics.Histogram; import edu.brown.statistics.HistogramUtil; /** * Utility methods for the BenchmarkController * @author pavlo */ public abstract class BenchmarkControllerUtil { public static class ProfilingOutput { public...
__label__POS
0.945128
using System.Runtime.InteropServices; using HDF.PInvoke; using PureHDF.Selections; using Xunit; namespace PureHDF.Tests.Reading; public partial class DatasetTests { [Fact] public void CanRead_Virtual() { // Arrange var filePath = TestUtils.PrepareTestFile(H5F.libver_t.V110, fileId ...
__label__POS
0.635897
using HDF.PInvoke; using Xunit; namespace PureHDF.Tests.Reading; public partial class DatasetTests { [Fact] public void CanRead_external_buffer_span() { TestUtils.RunForAllVersions(version => { // Arrange var expected = SharedTestData.SmallData; var fi...
__label__POS
0.605145
using PureHDF.VOL.Hsds; using PureHDF.Selections; using Xunit; namespace PureHDF.Tests.Reading.VOL; public class HsdsTests(HsdsTestsFixture fixture) : IClassFixture<HsdsTestsFixture> { private readonly IHsdsConnector _connector = fixture.Connector; [Fact] public void CanGetGroup() { // Arrang...
__label__POS
0.763725
package edu.brown.api; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PipedInputStream; import java.io.PipedOutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; ...
__label__POS
0.735785
/*************************************************************************** * Copyright (C) 2010 by H-Store Project * * Brown University * * Massachusetts Institute of Technology * * Yale Uni...
__label__POS
0.995691
package edu.brown.benchmark.simple; import java.io.IOException; import java.util.Random; import org.apache.log4j.Logger; import org.voltdb.CatalogContext; import org.voltdb.client.Client; import org.voltdb.client.ClientResponse; import org.voltdb.client.ProcedureCallback; import edu.brown.api.BenchmarkComponent; imp...
__label__POS
0.708317
package edu.brown.benchmark.simple; import org.voltdb.VoltProcedure; import edu.brown.benchmark.AbstractProjectBuilder; import edu.brown.api.BenchmarkComponent; import edu.brown.benchmark.simple.procedures.GetData; public class SimpleProjectBuilder extends AbstractProjectBuilder { // REQUIRED: Retrieved via ref...
__label__POS
0.992568
/*************************************************************************** * Copyright (C) 2010 by H-Store Project * * Brown University * * Massachusetts Institute of Technology * * Yale Un...
__label__POS
0.735829
package edu.brown.benchmark.articles; import java.util.Random; public abstract class ArticlesUtil { public static final Random rand = new Random(); /** * Compute a unique CommentId for the articleId and the current * number of comments. * @param articleId * @param num_comments * @r...
__label__POS
0.99013