query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
cd289ea847758a6a28ee8c67168538f3 | f3a57313f5fec65fddef52fae2cffcca | 发送HTTP POST请求,带JSON内容和头部信息 | if (url == null || url.isEmpty() || json == null || json.isEmpty() || header == null || header.isEmpty()) {
return null;
}
if (!HttpClient.checkUrl(url)) {
return null;
}
HttpPost request = new HttpPost(url);
StringEntity params = new StringEntity(... | 1 |
d37b90cc2a4c6a24ac78e28ffd05edaa | 1e84755bf1d2fae8e6b27ca265641af0 | 创建太阳环 | class Sun extends Base
createSun() {
const geometry = new THREE.SphereBufferGeometry(1, 100, 100);
const material = this.sunShapeMaterial;
this.createMesh({
geometry,
material,
});
} | 0 |
8d116e2545bb6c7f3447bb2bf076a9e8 | ada5db55ee3f909073967d720e65af60 | Returns the meta object for the attribute '{@link tr.edu.metu.ceng.megamodel.sedml.sedml.Query3#getResponse1 <em>Response1</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | {
synchronized (monitor())
{
check_orphaned();
com.dynatrace.easytravel.business.webservice.GetLocationsResponseDocument.GetLocationsResponse target = null;
target = (com.dynatrace.easytravel.business.webservice.GetLocationsResponseDocument.GetLocationsResponse)ge... | 0 |
03556f41d23233ba8df6cc19bcdfb284 | 50a112e7eadcedaa20e00a099482328e | Wait for new children to arrive.
This method does not have a timeout and will wait forever. | void waitForChildrenToDisplay(); | 1 |
69f42b077271055747f249cde6873290 | 8fe4c0de37180d35e5a2019324e1ce1c | @brief 设置验证码到验证码控件的方法 | val verifyCodeView: VerifyCodeView = VerifyCodeView.Builder(this)
.setInputBoxType(InputDataType.NUMBER)
.setInputBoxCursorVisible(true)
.setInputBoxBackground(R.drawable.select_input_box_line_bg)
.setInputBoxTextColorId(R.color.colorInputBoxTextColor)
... | 1 |
79de39fc5dfe34bf31249d29a6200eb8 | 4436ce3fdee859b5588425d01b28b89d | 批量绑定配送员 | for (let index = 0; index < this.deliveryManList.length; index++) {
this.deliveryManMarkers.push(
new this.AMap.Marker({
map: this.map,
position: [this.deliveryManList[index].longitude, this.deliveryManList[index].latitude],
icon: "assets/img/delivery-man.png",
... | 1 |
fedfba9dd9c0658e8db5788a04e2d86f | bea793aa67a3aa60c4237eb814d3b4cb | 最新的版本号 | latestVer() {
return siteData.themeConfig.latestVer
} | 1 |
914b0fbbd8bd8a4875972c526da5da0b | 8b58585720ba9caf493891ca6d23a969 | Drop post table | @SqlUpdate("DROP TABLE IF EXISTS post5")
void dropPost5(); | 1 |
fca10fef0e3fae483fb402af06bb1438 | 79988d63e9d600f0450a0201b2dbd29d | hacemos visible la consulta para ver los clientes | export class BusquedaClientesComponent implements OnInit
abrirModalConsulta():void{
this.getAllCustomers();
$('.ui.modal.consultaClientes').modal({ centered: true, closable: false, transition: 'fade up'}).modal('show');
} | 1 |
6cbbc69cb528f1f575fa6030646016fe | e08512a7a2a1f52f11534034f5659348 | Inicializar estrellas | void init_stars() {
int i;
for(i=0;i<SC;i++) {
sf[i].x=DFRAND*250;
sf[i].y=DFRAND*350;
sf[i].speed=0.1+FRAND*0.9;
sf[i].speed*=sf[i].speed;
}
} | 1 |
a0b9ea2a9e319ed0029caf00340393d0 | 46ed122bec9c64e69084d100cb50c8fc | Costruttore della classe, costruisce se stesso partendo dal path della directory contenenti le classi | API::API(string path) :path_(path)
{
catalog_manager_ = new CatalogManager(path);
} | 1 |
028acfc1299c562f9ffe851d6ce85f9c | d0ede4904c57143d2fe11bbe1c3b7a86 | Checks if asset is used by web player. | class AssetTarget
isWeb() {
if (this.getNamespace() == 'web' && this.getSite()) {
return true;
}
return false;
} | 1 |
8bf47ad1329de83a9be0312bf2e782ce | 8b7f4124c47fb84189ff4e2dd7ac3352 | 获取给定学期的下一个学期
2014.08.08 | class AcademicYearService
public function getNext() : string
{
return $this->getOther(+1);
} | 1 |
b19ad220f4641155cc9c9499a857a462 | 7a8a0f3dce93e18f35261b53bce1456d | Get an itemAccountCode by id Returns the itemAccountCode identified by the specified id. | class Item implements ModelInterface, ArrayAccess
public function getAccountCodeId()
{
return $this->container['account_code_id'];
} | 0 |
0cc42cc5e822eb7341404a00a6dac438 | de39a15774bbd2aa17c51d9f70873c21 | ToJSONIndent is a helper method that converts the object to human readable format | value := reflect.ValueOf(obj)
for value.Kind() == reflect.Ptr {
value = value.Elem()
}
bufw := bytes.NewBuffer(nil)
if value.Kind() == reflect.Struct {
typ := value.Type()
nfield := value.NumField()
bufw.WriteString("{")
for i := 0; i < nfield; i++ {
ftyp := typ.Field(i)
f := value.Field(i)
if i... | 0 |
85aa3bb6ee957406b41efd6d99679977 | 98282b17fe6cd592d0f130b898038774 | ===========================================================================
FUNCTION : configStream
PARAMETERS :
RETURN : int32_t type of status
NO_ERROR -- success
none-zero failure code
========================================================================== | uint32_t CSIRX_StreamDataCfgSF(const CSIRX_StreamDataCfg *obj)
{
uint32_t ret = 0;
if (obj == NULL)
{
ret = CDN_EINVAL;
}
else
{
if (obj->enableVcSelect > (1U))
{
ret = CDN_EINVAL;
}
if (obj->enableDt1 > (1U))
{
ret = CDN_EI... | 0 |
4fa67dffe8b5fec54f10dd5c883cc835 | 1e516a815f82bf8956eac23224d71ef4 | Show the static Escher logo on the login canvas. | logoScale = canvasHeight / 50.0 / 2
logoCanvasName.create_rectangle(0, 0, canvasHeight - 1, canvasHeight - 1, outline='black', fill='#EEEEEE')
logoCanvasName.create_line(0, canvasHeight / 2, canvasHeight - 1, canvasHeight / 2, fill='black')
logoCanvasName.create_line(canvasHeight / 2, 0,... | 1 |
6f09237d47e7397c481f1744db49ff59 | 6496d712e7028b5b54731bb8f38d81f2 | @brief Parse binned data.
This function parses data (**binned), based on dimensional parameters
(P, N), and words (B, S, L), and gets the hashed result (**hashed). | void debwt_cal_hash(debwt_t *db_idx)
{
err_printf("[%s] Calculating bwt-hash ...\n", __func__);
db_idx->bwt_hash_k = _BWT_HASH_K;
db_idx->bwt_hash_size = (uint32_t)pow(4, _BWT_HASH_K);
db_idx->bwt_hash = (debwt_count_t*)_err_calloc(db_idx->bwt_hash_size, sizeof(debwt_count_t));
db_idx->bwt_hash_il ... | 0 |
f296d695c1a7fe89dbaa4ad2259145cc | 66260da1cab4825320a0e0f2a7920353 | String representation for operationg pressure for liquids and/or gases | public class ValueModel
public String getPressure() {
return ((Integer.toString(pressure)));
} | 1 |
f729662cc62ddec60e1fc3481015221f | b6a46f4eda022520e90f8112d75dce8f | Update current AC list with correct people values. | def calculate_ac(self):
pass | 0 |
1e22f42aaaf13edccc114f13495623d8 | 417f2ee47fb9296f7fe617f9fd56f822 | 查询购物车里的所有订单 | queryCarList(timestamp, longfeiUSERID) {
return `/queryOrder/shoppingCartAll?timestamp=${timestamp}&longfeiUSERID=${longfeiUSERID}`;
} | 1 |
28e36ef900d33e0f269074f90226b705 | d5bc13148ac5745ac7a3b12dcb6b4ee6 | test getting list of crust types | response = self.client.get(
reverse('api:crystalsystem-list'), kwargs={}, format="json")
response_data = json.loads(response.content)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response_data[0]['crystal_system'], "HG")
self.assertEqual... | 0 |
f3b9459a86d031445de534edc62e87e0 | b36e185c2068492f846374c5ec544731 | create a random rearrangement of chunks | function rearrange(ordered) {
var added = [];
for (var item = 0; item < ordered.length; item++) {
added.push(item);
};
for (var i = 0; i < (ordered.length); i++){
var index = Math.floor(Math.random() * added.length);
var newNode = ordered[added[index]].cloneNode(true);
ordered[i].parentNode.rep... | 1 |
36ad0adfea50a2734c7228d4508eac25 | c12ae117260287289e90846517d85af6 | Given an address, return the starting offset of the next symbol in the file.
Only needed on variable length instruction architectures. | public static partial class goobj_package
private static uint SymOff(this ptr<Reader> _addr_r, uint i) {
ref Reader r = ref _addr_r.val;
return r.h.Offsets[BlkSymdef] + uint32(i * SymSize);
} | 1 |
976d3d7df3ebbb133e74456cf70f8eed | 69e57a2f984d10b2a8cd61e4c3351b6c | 更新Up保底显示列表(意识组合Up类)(左边) | self:setUIStyleAndI18n(_layMain)
_listView = _layMain.LSV_MAIN
_layMain.TFD_LV:setText(_tbUserUpData.oldLv)
_layMain.TFD_LV2:setText(_tbUserUpData.newLv)
_layMain.TFD_POWER:setText(_tbUserUpData.oldExecu)
_layMain.TFD_POWER2:setText(_tbUserUpData.newExecu)
_layMain.TFD_STAMINA:setText(_tbUserUpData.oldStami)
_l... | 0 |
21b239d24e10cd5b7aef434905f65a19 | eef3d46d62f133ee2bfeabdd4b83b522 | 根据手机号查询该用户是否购买宝护伞 | String getQuYuByMobile(String action); | 0 |
18597c5aae55864a7a7a420239b1e98e | 55cded5c62b49a165f61eb88bc1a5c66 | Initiates the initial copyedit stage when the editor does the copyediting. | namespace UI.Windows.MainWindow.MainMenu
public class MainMenuScript : MonoBehaviour, IShortcutHandler
public void OnEdit_Copy()
{
DebugEx.UserInteraction("MainMenuScript.OnEdit_Copy()");
AppUtils.ShowContributeMessage();
} | 0 |
e603f1aa6cabb8c1344008d5e925ded2 | 879783c7a45bbe2341ddb1a11b12993d | 縦方向の写真かどうかの判別 | targetVer = self.getreVersNum(self.target.state)
orinateVer = self.getreVersNum(self.origate.state)
if (targetVer % 2 != orinateVer % 2):
return False
else:
return True | 0 |
bfdd64a58b6f4c55b08d52d1cca94e58 | b15141a847eb5eca5c79fe2acaea52ac | Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You
can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion
starts, the Project cannot be restored.
The caller must have modify permissions for this Project. | {
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_FirebaseManagement_FirebaseProject");
} | 0 |
b0209a5403278a0be4666f935b0192e9 | e91f435e3a8e1a2c94f59320b58c3e76 | Create an instance of an HTTP client, which stays
the same between re-renders. | class Scraper
def http_client
@http_client
end | 0 |
ac73eaffed2dd52168bc6c67b3f1ddc1 | 3142d7d8966ee042630a0d3ecdcb1ee1 | Register a listener for all events that represent a member has left the group. | void OnMemberLeft(com.alachisoft.tayzgrid.common.net.Address clusterAddress, com.alachisoft.tayzgrid.common.net.Address serverAddress); | 1 |
3a6ef86b9e77e537d51413c3a8e55ac8 | b0557f4ddd98892a18d19876e32ac1f2 | test checking the correctness of the get method of the Farms class | self.barrenland.add_barren(48, 192, 351, 207)
self.barrenland.add_barren(48, 392, 351, 407)
self.barrenland.add_barren(120, 52, 135, 547)
self.barrenland.add_barren(260, 52, 275, 547)
self.assertEqual(self.barrenland.get_barren_area(), 24576)
self.assertEqual(self.barrenl... | 0 |
4cb3a8aceafe176bd5daa1f6da82e0ee | 5d099ae4ce3049b2dd1f7994e4c5c91f | 选择关卡,并恢复体力 | local var = getData(actor)
if var.level_id ~= 0 then
LActor.recover(actor)
enterFb(actor,gate_id)
clearSwitchSceneCd(actor)
end
end | 1 |
eea0157aa4de51d29ba3c0aaf7e7593c | 7457f2755f086c8b924b7c042a2e7ae6 | The data buffer is *not* freed, allowing to reuse the buffer with
pg_beginmessage_reuse. | void bdmf_sysb_databuf_recycle(void *datap, uint32_t context)
{
__bdmf_sysb_databuf_recycle(datap, context);
} | 1 |
a74e1af5bc63cb30e43c991fb2c12532 | 99025ba86fc55fdd84644f8a2a4237e7 | 将本地路径下的图片 根据指定质量压缩率 压缩到缓存文件夹 + 当前系统时间.jpg的File中 | Bitmap bitmap, int quality) throws IOException {
if (bitmap != null) {
File file = new File(filePath.substring(0,
filePath.lastIndexOf(File.separator)));
if (!file.exists()) {
file.mkdirs();
}
BufferedOutputStream bos = new BufferedOutputStream(
new FileOutputStream(filePath));
bitmap.... | 0 |
cf01d5ea1fa797482546e0ae8845a126 | 0a8af12e718894431c862010cfb47db7 | makes a rectangle onscreen, just the borders | var x = 0;
var y = 0;
ctx.strokeRect(x,y,100,100);
} | 1 |
1d1feed74d5f0db265255c1db021c8ad | e28408b72121b22770ccca97df6b2891 | NDK获取外置存储卡位置方法 | public class MainActivity extends AppCompatActivity
public String getExtSDpath() {
String sdCard_path = null;
String sdCard_default = Environment.getExternalStorageDirectory().getAbsolutePath();
if (sdCard_default.equals("/")) {
sdCard_default = sdCard_default.substring(0, sdCard_def... | 0 |
fc5295b3f928bb969afdfa2179105219 | 53612a8e81860210ee37bbab4843520f | a wrapper for preprocess() so that it can accept listed arguments from map_async
there might be a more intelligent work-around. THis is not to be called by the user. | if 'flush' in kwargs and kwargs['flush'] == True:
self.flush()
if self._index is None:
self._index = srs.index
if self._caller is None:
self._caller = "safe_map"
if 'na_action' in kwargs:
raise NotImplemented... | 0 |
0e408de63b67751864c200ce009f4586 | a5c1e16b173512a2ff8c8cb51b913867 | Handles the Click event of the One/Two Column controls. | {
var bd = sender as Border;
var img = bd.Child as GameImage;
switch (state)
{
case GameState.NoneShowing:
img.Show();
imgsClicked[0] = (int)bd.Tag;
state = GameState.OneShowing;
... | 1 |
1ab3e9073d223b9a898586d6d394c26a | 7b60bd35c7405ebe0434202b9a175264 | Deixa o embarcado em Sleep Mode enquanto o processador estiver ocioso. | void CAPLESENSE_Sleep(void)
{
EMU_EnterEM2(true);
} | 1 |
37d7e23c3d6f3bc62031ba0579e2e6e8 | e5b2b24a859d0713c3635439e7a4634b | Получение сообщений между конретными 2мя пользователями (туда и обратно) | class MessageService
public function getByFromToUser($fromUserId, $toUserId)
{
try {
$messageModels = MessageModel::model()
->with('toUsers.fromProfileClientData')
->with('toUsers.fromProfileMasterData')
->with('toUsers.fromProfileSalonData')
... | 1 |
dee7690deb9987a3b8e453b27b30cdde | e225cbe05a3be36384977aa7c27387b3 | 获得外网的IP地址 | {
String url = "http://hijoyusers.joymeng.com:8100/test/getNameByOtherIp";
string IP = "未获取到外网ip";
try
{
System.Net.WebClient client = new System.Net.WebClient();
client.Encoding = System.Text.Encoding.Default;
strin... | 1 |
6d6b10f5a4c65acf7aecf5ba4ee714c3 | 0762d65b5664281cdd6a03e3075851d5 | NWからの接続要求の受け付けを開始するメソッド | public class RequestTrace
public void StartConnection()
{
_timer.Start();
} | 0 |
953ed1cbe95aeab921212f337da5d09b | 40368aed5270c11b6dd1117728c8a17d | 对传入的conf初始化 | func init() {
getConf()
} | 0 |
1e4e99ca6e61f7a82e5969933e3b7d3c | 16016e33059b7f4bbad13fd038cad19f | Action that executes a basic select query on a connection.
<p>
This action is considered raw because it takes an SQL statement in string form as the input.
</p> | throws DatabaseException
{
try
{
waitForConnection();
cleanResultSet();
long start = startTrace();
mStatement.execute(sql);
outputTrace(start, sql);
setResultset(mStatement.getResultSet());
return;
}
catch (SQLException e)
{
handleException();
throw new ExecutionErrorException(sql... | 1 |
af4cd3520cab47b43f08042ef8f24424 | 7ba06ce9ce525df165f1367c176f517d | Check for proper usage | def check_for_input(arguments, usage):
if len(arguments) < 2:
print usage
sys.exit() | 1 |
cb2605984dd2ccf12a942c8ac851af47 | 608d3191667cc44ddeada1f59bb8a1a9 | 해당 유저 휴대번호와 비밀번호로 조회하여, 값이 null 이 아니면 로그인 성공 | Iterator<UserDTO> iter = DB.keySet().iterator();
while(iter.hasNext()) {
UserDTO user = iter.next();
if(user.getUserid().equals(userid)) {
if(user.getUserpw().equals(userpw)) {
return user;
}
}
}
return null;
} | 0 |
17aa84cec68a557432983bc841adffc4 | 73a4229424f72b668b46386fed091c4c | Compute the backward probability matrix. | def backward_matrix(X, Z, S, A, E):
B = [[0] * len(X) for _ in range(len(S))]
for k in range(len(S)):
B[k][-1] = 1
for i in range(len(X)-1, 0, -1):
for k in range(len(S)):
B[k][i-1] = sum(A[k][l] * E[l][Z[X[i]]] * B[l][i] for l in range(len(S)))
return B | 1 |
04926282268b452d87e245246e417fc4 | 728958c7ac57a3295e6e3b9fce7eb250 | 周报配置加载
Created:20170331(ChengMengjia) | namespace WeeklyReport.util
class XmlLoadUtil
public static SettingTextModel settingXmlLoad()
{
Xml read = new Xml();
return read.setting_load();
} | 1 |
fd154a0a1955b9d5fa96a6e1b2709601 | 5fc79c4fd906d849b7d6566e8dd208cb | Рендер списка товаров в корзине | class Backet
renderProductInCart() {
let cart = document.querySelector("#cart");
cart.innerHTML = "";
for (let element in this.basket) {
let product = document.createElement("div");
product.classList.add("cart__item");
let cost = document.createElement("p");
cost.textContent = `${thi... | 1 |
f2025b7ac1471bbd4e0e422e176c6247 | fd7d2b435d29f787b764abab8930b805 | Tests the history of operations string | class BankAccountTest
@Test
void shouldSeeTheHistoryOfMyOperations(){
BankAccount bankAccount = new BankAccount();
int deposit = 100;
int withdrawal = 20;
List<String> expectedHistory = List.of("deposit | 29/01/2020 | 100 | 100", "withdrawal | 29/01/2020 | 20 | 80");
bankAcco... | 1 |
5c813c0691249c0af4519fdfd65c155c | 07751cfc4e8819e622ef66cdfbc3d254 | 利用条件语句判断输入数值是否在指定区间,若不在该区间内,则返回1 | inline char _rangeof(int x1, int x, int x2)
{
if (x1 <= x && x <= x2)
return TRUE;
return FALSE;
} | 0 |
49e88a9814a4ed64ddf639b622e25279 | 70439b1fcc81838810b7e6e61bc538f9 | 创建两个任务 | fmt.Println("我是任务", i, "我开始做任务了")
for task := range task_ch {
fmt.Println("我取到了值:", task)
result_ch <- task * task
}
fmt.Println("我已经做完了,没有任务了")
return
} | 0 |
a49e851a299886e4f2b69cbef83ca525 | 0b75ffef66a453a5cbeb7fd7ed3f9a7e | Given the output of the search command, extract the process details
of the matching processes | lines = stdout.splitlines()
result = {}
if "No resources found." in stdout:
return result
kws = lines[0].split()
for line in lines[1:]:
parsed_line = line.split()
item = {}
for i in range(len(kws)):
item[kws[i]] = parsed_line[i]
print item, kws
... | 1 |
649980189f1112025ba84fe69bec3277 | 7bb89a6b5eabefe419af77d7572420ed | The configuration for custom container runtime. It contains following attributes: | if not prefix:
prefix = 'container_properties'
container_config = [
{
'field_name': 'image',
'field_value': container_properties.get('image'),
'prefix': prefix,
'required_type': str,
'validators': [
_validate_field_type
... | 1 |
9a859fd2137237dafa0e937579c4fe2e | 4622d66ee7d51acedbca0b610b6e0ca5 | # Format: x1, y1, x2, y2 | new_geo_rect <- function(x = list(xmin = double(), ymin = double(), xmax = double(), ymax = double())) {
vec_assert(x$xmin, double())
vec_assert(x$ymin, double())
vec_assert(x$xmax, double())
vec_assert(x$ymax, double())
new_rcrd(x, class = c("geo_rect", "geo_coord"))
} | 0 |
c670754d9bc527cc314e8e7e8142ed12 | 917b3581be0df55d75b63e8d1e07871a | Get tasks for 'Appointed to me' column. | class User extends Authenticatable
public function myTasks()
{
return $this->hasMany(Task::class, 'assigner_id');
} | 1 |
c97a2ddb9098b1a52d1fd3d52edb08ee | dde44ce6c8aa76556eb741b14b7a3fbc | make a closure to hold the setter function for any object in the poly patcher that is contained in the Objs dict | class NotPublic
private function getOrCreateFunctionForSetProperties(): \Closure
{
if (empty($this->closureForObjects[__FUNCTION__]))
{
$this->closureForObjects[__FUNCTION__] = function($name, $data) {
$this->{$name} = $data;
};
$this->closureForOb... | 1 |
0ad2d29987ffddde87c3d438ce82a669 | c9169a17af6673e34347c88adc102db8 | Метод ищет максимальный и минимальный элемент в одномерном массиве и меняет их местами. | int posmin = positionInArray(array, minArray(array));
int posmax = positionInArray(array, maxArray(array));
int element = array[posmin];
array[posmin] = array[posmax];
array[posmax] = element;
for (int i = 0; i < array.length; i++) {
System.out.print(array[i] ... | 1 |
684aa113712f60080e8ea9041f73b27f | c68b853cfa560475888183f6787fe6fd | Создание кнопки изменения ориентации корабля. | let dirButton = new createjs.Container();
color = ("none" === direction) ? "yellow" : color;
drawDirButton(dirButton, x, y, direction, color);
dirButton.x = x;
dirButton.y = y;
dirButton.name = "dirButton";
dirButton.mouseChildren = false;
dirButton.direction = direction;
if (!isFixe... | 1 |
7da05500266acf8dded227e2a95ce181 | d97b59ab07d4346f320fa827f7542e22 | Check if we have the same number of lines on both images | def diff_len_imagearray(df2):
try:
arr1 = df2.images_array_x.split(',')
try:
arr2 = df2.images_array_y.split(',')
return abs(len(arr1)-len(arr2))
except: pass
except: pass | 1 |
d2b32532b60f55b039ad2a8a385348dd | f693ea4545ecef4aa856c33864f5f034 | reply to selected email | public MailMessage replyTo(EmailContact emailContact); | 1 |
dd53cc5be770f3b56b0c3ba32560aa36 | 16a830359d9b16870a31363ada0f2c69 | System.Void Rotator::Update() | {
{
Transform_tA8193BB29D4D2C7EC04918F3ED1816345186C3F1 * L_0;
L_0 = Component_get_transform_mE8496EBC45BEB1BADB5F314960F1DF1C952FA11F(__this, NULL);
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_1 = __this->get_rotation_4();
float L_2;
L_2 = Time_get_deltaTime_mCC15F147DA67F38C74CE408FB5D7FF4A87DA229... | 1 |
a53681c98c6eac029119890767640f3d | 450c6293d8b6b8e54b15d6b2f9f57558 | Return a tzinfo instance with a fixed offset from UTC. | class FixedOffset(tzinfo):
def __init__(self, offset, name):
self.__offset = timedelta(minutes = offset)
self.__name = name | 1 |
72dedf23f1a3552403a91855b40aea17 | 99f3571d0c8e47d44e7aeafea5496cfe | Convert double spaces to hyphens to help with diff
method | class CrayonUtil
public static function space_to_hyphen($str) {
return preg_replace('#\s+#', '-', $str);
} | 1 |
f839a80d17d35dbb031fa3b09be0aa10 | 4ab602e5c3b09a5e6dd7b9706f95336d | Получить ключ ид пользователя в одноклассниках | class PartnerModel
private function getUserKey($userId) {
return self::CACHE_NAME . $userId;
} | 0 |
045719dd9e369f4f02f9df710267c12e | c0da2f0b55225f87279ec526a0bd3bb5 | Même fonctionnement que linkRegateToPart mais permet de modifier une régate en particulier et non la derniere ajouté | {
switch (type)
{
case EWeaponPartType.LowerRail:
attach.LowerRail = id;
break;
case EWeaponPartType.UpperRail:
attach.UpperRail = id;
break;
case EWeaponPartTy... | 0 |
1965ee6fbcbbe5d99880c65bc4eed182 | 66f99351613b961ad933c8cf5b7d809c | \简 述 设置sky1311与卡通信的倍速, ISO14443-4部分规定,多倍速的PICC
\参 数 设置的倍速,106,212或424
\返回值 none | namespace LaunchAnything
class CH9326DLL
[DllImport("libs/CH9326DLL.dll", EntryPoint = "CH9326SetRate")]
public static extern uint CH9326SetRate(IntPtr hDeviceHandle,
byte ucRate,
byte ucCheck, ... | 0 |
bc502428ddc881781f548e2dd2160be1 | 3c9a57ea27c5f0100765f0ab6f8b5897 | Establece cuales estaciones seran tomadas en cuenta en el chequeo de calidad. | class AirModel:
def select_stations(self, stations):
self.air_quality_df = self.air_quality_df[self.air_quality_df[KEY_COL].isin(stations)] | 1 |
97fb1a9d0f7e885d028db5d514d13a55 | c89389d0364d366390ff9e6aede09d55 | Lưu thông tin bộ lọc của sản phẩm | class FilterService
public function saveFilter($param)
{
$filterModel = new FilterModel();
$resData = $filterModel->addItem($param);
if (!$resData) {
throw_strack_exception($filterModel->getError(), 220001);
} else {
return success_response($filterModel->getSu... | 1 |
c2d86088193505f8002c9ff4927915c0 | 263239f7a1589badb5abb2e6c78273f6 | 创建命令适配器(获取Execute方法和CanExecute方法为创建ICommand接口实例准备) | namespace Common.Presentation
public class AbstractViewModel : PropertyChangeObject
protected ICommand CreateCommand<M>(Action<M> cmdExe, Func<M, bool> canExecuteCmd)
{
ICommand cmd = new DelegateCommand<M>(cmdExe, canExecuteCmd);
return cmd;
} | 1 |
d7c05ca16c3d2e68a9d504914eef30fa | a316daed64c2fcfea3e70cf187f8af42 | Поиск ID прелендинга для нужного оффера и потока в кэше посетителя | {
$cacheKey = md5('vauthId_'.$this->id);
$vauthId = $this->serviceManager->get('VigattinAds\DomainModel\LongCache')->getItem($cacheKey);
if($vauthId) return $vauthId;
$vauthAccountLocator = $this->serviceManager->get('VigattinAds\DomainModel\UserManager')->getVauthAccountLocator($thi... | 0 |
8fca292b5b08f696301bef39df503ec2 | 98d05b9a9e0dcf02e99ab15b32e381a8 | Loads the event associated with that post. | public void loadEvent(); | 1 |
500ee57509f9be6861acd7ac94e04a8e | 9a6834f4e8e06256a1791525d03d4207 | Chipmunk2d::Transform#tx | gp_XY ret = new gp_XY(OCCwrapJavaJNI.gp_GTrsf2d_TranslationPart(swigCPtr, this), true);
return ret;
} | 0 |
522e3acc92b7ffeadfcb74fea2c2c7f8 | 1aefa7109a7ef88a3e4c17383fb7280e | Enciende o apaga el LED del Robot cada dos segundos. | if( mRobot == null )
return;
if( ledEncendido ) {
mRobot.setLed( 0.0f, 0.0f, 0.0f );
} else {
mRobot.setLed( 0.0f, 0.0f, 1.0f );
}
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run()... | 1 |
411fa82c2f645d804814290798a0ed3c | 2570cd29a101f4183eff895cff8ee679 | Get the code lens list of the given script. | public class ExtendedWorkspaceDocumentManagerImpl extends WorkspaceDocumentManagerImpl
@Override
public List<CodeLens> getCodeLenses(Path filePath) {
if (isExplicitMode && isTempFile(filePath)) {
return tempDocument.getCodeLenses();
}
return super.getCodeLenses(filePath);
} | 1 |
d39312e2bb761b0924de359e4873a205 | 0721a82e90893f0a7b752ad4cf92b681 | Compute spherical harmonics for every l and m up to (and including)
a given lmax, evaluated in all (theta, phi) coordinates. | backend, nthreads):
from .shgradient import SHGradient
theta, phi = backend_module(
backend=backend, nthreads=nthreads).MakeGradientDH(
self.to_array(
normalization='4pi', csphase=1, errors=False),
sampli... | 1 |
5e665be1303b4891d9ad0d98bb94fd87 | d45be34f48543c171faf8d32173f7525 | Test for translate melissa operations to hass. | async def test_operation_list(hass):
with patch('homeassistant.components.melissa'):
api = melissa_mock()
device = (await api.async_fetch_devices())[_SERIAL]
thermostat = MelissaClimate(api, _SERIAL, device)
assert [STATE_COOL, STATE_DRY, STATE_FAN_ONLY, STATE_HEAT] == \
... | 1 |
70db1608105e4136940799833467f705 | a4263ea1e9d79159223ff2d50d6b5d38 | 附件审核 | ajaxListCompletionDataAttachment(getUrlParam("project.id"), function(data) {
removeTableTr("#TableComplete");
for (var i = 0; i < data.attachments.length; i++) {
$("#TableComplete").append(
'<tr class="list_mid_row"><td hidden="true">'+ data.attachments[i].id
... | 1 |
c95a5e8f35b1775ff183d7d433f229a8 | d4306d8b853421f5fcbf9fc6f568bfa2 | 根据比赛的ID号获取参赛学生信息 | String sql = "select * from match_player where match_id = '" + matchID + "'";
try {
ResultSet rs = conn.createStatement().executeQuery(sql);
return getMatchPlayers(rs);
} catch (SQLException e) {
e.printStackTrace();
}
return null;
} | 1 |
7f62f055332bc23fa1734cd4f4113a1f | 5b85e49e84a644084b35c6a05742cc08 | Does the agent successfully log out | JSONObject rsp = new JSONObject(response);
int errorcode = rsp.getInt("errorcode");
if (errorcode == 0) {
String sessionStatus = rsp.getString("sessionStatus");
return sessionStatus.endsWith("deleted");
} else {
if (Clouds.IS_DEBUG) {
S... | 1 |
066558b206ca28bc60e1c5cffb809907 | 953c9ce29049ccfe1971685ec852c890 | Sets the battle window proprty used to pass data and handle events | class App extends Component
setBattlePokemon(pokemonObj) {
this.setState({battlePokemon: pokemonObj});
} | 1 |
5cfdedabd189330d33ca972913bbb3e1 | 81c618d722335ee50d46d96f761fb6ad | Finds the alignment given corresponding sentences and the tag probability dictionary | def align_corpus(src_corpus, trg_corpus, counts):
alignments = []
for i, src_sent in enumerate(src_corpus):
alignment = {}
for j, src in enumerate(src_sent):
if src not in counts:
continue
max_count, best_trg = 0, -1
for k, trg in enumerate(trg... | 1 |
3a7a34646c0011c8a5216afc7e584181 | 757d5973cda3234f5ebc1ac91e9f713c | Creates the basic psychopy window that will be used for stimuli display. Override in subclasses as needed. | self.fixSpot = visual.PatchStim(self.win, tex="none", mask="gauss", size=15, color='white')
self.centerRectOuter = newRect(self.win, size=(292,292), pos=(0,0), color=(0,0,0))
self.centerRectInner = newRect(self.win, size=(288,288), pos=(0,0), color=(1,1,1))
(self.trialListMatrix, self.fieldNames) = importTrials... | 0 |
ee059a97168ac088e500071fb11e53a0 | 8ce652a96a61d9971f6d05820f95628b | Kiểm tra nếu nhân viên login không tồn tại trong kho hàng hóa mua thì access denied. | public class AntiquaryLogInTest
@Test
public void Test5() {
shop.removeUser(employee1);
assertFalse(shop.login(employee1.getName(),employee1.getPassword()));
} | 1 |
608aed87cbfb589093300ba93ce67d44 | 60f177142da82d2a1fbf10ecc43a5b95 | 整车内部订单列表 | @Component
/**
* 店铺订单管理
* @author LiFenLong
*
*/
@ParentPackage("eop_default")
@Namespace("/b2b2c/admin")
@Results({
@Result(name="list",type="freemarker", location="/b2b2c/admin/order/store_order_list.html"),
@Result(name="self_list",type="freemarker", location="/b2b2c/admin/self/order/self_order_list.html"), ... | 0 |
ad397910f76d953f1be1eae564e8e9e9 | 9bb54bca74005caa8b6ac3dddb1bf4cd | Parse Record-Route header. | static int parse_ipv4_route (char *opt, size_t len, struct ipv4_route *r) {
if (len < 4) return -1;
r->type = *opt++;
r->flags = *opt++;
r->message = *opt++;
r->prefixlen = *opt++;
len -= 4;
r->prefix = 0;
if ((int)len < r->prefixlen/8 + (r->prefixlen % 8 ? 1 : 0)) return -1;
memcpy (&r->prefix, opt, ... | 0 |
d67185a7b9c97ae4bdcf903855dc0306 | b3097899880852136f250f118cd48d8c | Demonstrates all cell types
NOTE: the use of NewInstance/DeepCopy is included to increase
regression coverage. It is not required in most applications. | namespace CptS321
public class Spreadsheet : Cell
public void Demo()
{
int i = 0;
Random rand = new Random();
while (i < 50)
{
int randomColumn = rand.Next(0, 25);
int randomRow = rand.Next(0, 49);
Cell toFill =... | 0 |
fe27ff1426fd625482521d6379e48c57 | 93ae28273f01bb73e3075d34a2b5d84c | 通过楼层数获取楼层信息 | FloorDTO getFetchedFloorDTO(int level); | 1 |
da8b5b2ebc5710a1aef758a6f1c5ca31 | 1dc02266e18d17effb35e3e1becb966c | Returns the flux as computed from the decorated pre/post processor. | class Spectrum:
def flux(self):
return self.interpolator.y | 0 |
576dbfeca1915d6d79ee219c517e9912 | de2c6c1694e75b65677305248aa71871 | keeps track of how many values are in the history array | class MovingAverage:
# count = 0;
def __init__(self, size):
self.size = size;
self.arr = [0]*size;
self.count = 0 | 1 |
66ecde48dc981535f2a90256e523ef8f | 756bb0e433de3cfc8752f09b4b201e46 | This function takes a list of library data and returns a new dictionary of databases in the HCI category.
only the name of the database and the link to the database will be included. | def clean_hospitals(response_hospitals):
hospitals_list = []
print(response_hospitals)
for hospitals_dict in response_hospitals['businesses']:
dict_hosp = {}
dict_hosp['Hospital'] = hospitals_dict['name']
dict_hosp['Website'] = hospitals_dict['url']
dict_hosp['Phone'] = hospi... | 0 |
4e745968b1d0ff111aba010aee8f4d9b | e68f146de7c601d5bf89ee84a68b1037 | 뒤로가기 버튼이 눌렸을 때 앱 종료가 아닌 드로어가 닫히도록 설정 | class MainActivity : AppCompatActivity()
override fun onBackPressed()
{
if (drawerLayout.isOpen)
{
drawerLayout.closeDrawers()
return
}
super.onBackPressed()
} | 1 |
ddfda260172aafd4b264e79cbbb9a69e | 8ff3e1d4ab6bcccf5d3871d7d6a1c130 | @brief PhysicsCalc::vectorsAbsoluteValue calculates the absolute value for a vector in R². | VectoR* VectoR::GetAbsoluteVector()
{
VectoR* theRetVector = new VectoR( cnRows );
for( int i = 0; i < cnRows; i++ )
theRetVector->pVariables[ i ] = FunctionObject->Absolute( pVariables[ i ] );
return theRetVector;
} | 0 |
d166446ebf5c3eac54f27e747f37c42d | 799f817d54b5c7a224be8962755a7885 | @brief Print all saved trace. | DLL_EXPORT void shared_print_trace_table()
{
OBTAIN_SHRDTRACE_LOCK();
{
shared_print_trace_table_locked();
}
RELEASE_SHRDTRACE_LOCK();
} | 1 |
a6f09ac1d23a4a95acd5fc5e2d9e7d2a | ce06df8ea22139efe1328fb3de3f2a5c | Prints the path to this node from the start. | class LinkState
private static void printPath(int currentVertex, int[] parents, int host) {
if (currentVertex == End_Node) {
return;
}
else
printPath(parents[currentVertex], parents, host);
System.out.print(currentVertex);
if(currentVertex != host)
System.out.print("->");
} | 1 |
32d3771a93a295f6d7898cee78006c85 | e3443cc434c1c66b5a4c6b5d6fa76907 | Räknar ut poängen för Kåk (Ett par och ett tretal) | namespace Hearts
public partial class MainWindow : Window
public int PointsTaken(List<Card> takenCards)
{
int points = 0;
points = takenCards.Sum( e=> {
int result = 0;
if(e.Suit == CardSuit.Hearts) result++;
if(e.Suit == CardSuit.Spade... | 0 |
3a3b53450cb8e6456788bae9aedf240a | fbf9ce8cd4d6ec3d5401eacfaf43d8ae | 批量用户状态信息实时查询(集团客户可根据所属物联卡的码号信息实时查询该卡的状态信息。) | ResponseDo batchState(List<String> serialNo) throws Exception; | 1 |
ec955ce0b3ec9261cfd129cf7d74c332 | c82c471b31e7e75220b72e5de77981b5 | * Vérifie si le jeu est lancé depuis l'éditeur | public class DevChecker : MonoBehaviour
private void Start()
{
devFileDir = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData) + "/QuestOfCombat/Data/dev.qoc";
if (System.IO.File.Exists(devFileDir))
{
ui.SetActive(true);
isDev = true;
... | 0 |
60ec3b26b12ad160938721a57ac20a92 | 2cdf063d05986d3f3b46e53c9a8b478e | Downloads the update files from the database and places them in the given folder. Returns false if anything went wrong. | public MoneroDaemonUpdateDownloadResult downloadUpdate(String path); | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.