query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
be6de75c966a4921b565e2812ff7e6ae | df31ca555ebde0b35e0190e2ba359b51 | Resets autonomous booleans | public class ReadMovementThread extends Thread
public void resetBooleans() {
for (int i = 0; i<this.barray.length; i++) {
this.barray[i] = false;
}
} | 1 |
390e548e0e8a00e457f6cb11aa60019e | 21bec47af7606df35fa23e591c24e885 | Gets the noted id. | public class ItemDefinition
public int getUnNotedId() {
return unNotedId;
} | 0 |
ee12b6109f5250363ee5d86623e8dc89 | baabceafcec5a384d31c1abc38740d76 | FUNÇÃO QUE LISTA TODAS AS AVALIAÇÕES ELETRÕNICAS CADASTRADAS | class ApiController extends Controller
public function avaliacoesAll()
{
return response()->json(Avaliacao::all());
} | 1 |
102ca4fdd1e076b5d0a6734878cd886b | b2f73f0d9d3a17ed1c7fc1e59eb8906e | This method contains the AI, which counters the previous move made
by the opponent. | public class AI5 extends AI
public String think() {
String move = "";
String path = "";
if(moveCount == 0)
move = "b1V";
else
move = "b1H";
moveCount++;
return move;
} | 0 |
131ee54dacef6e7e92e4059c9facc8d4 | 583a461e26454760f97bb3f3f1541de4 | 添加车辆子类型 | @AvoidRepeatSubmitToken(removeToken = true)
@ResponseBody
public JsonResultBean addSubType(@Validated(ValidGroupAdd.class) VehicleSubTypeForm form,
final BindingResult bindingResult) {
if (form == null) {
return new JsonResultBean(JsonResultBean.FAULT);
}
if (bind... | 1 |
4b918f72f7244e5faca617212cda8f53 | 179288bd8189c5979777ee6f8699c070 | Flush the entire ecache using displacement flush by reading through a
physical address range as large as the ecache. | {
icache_enable();
memset(0, 0, 0x8000);
gd->arch.tlb_addr = 0x4000;
gd->arch.tlb_size = PGTABLE_SIZE;
dcache_enable();
printf("DDRCAL: Scrubbing ECC RAM (%i MiB).\n", size >> 20);
memset((void *)0x8000, 0, size - 0x8000);
flush_dcache_all();
printf("DDRCAL: Scrubbing ECC RAM done.\n");
dcache_disable();
} | 0 |
761ad7eff3ba7a398ac378cae5db17a7 | 4b36f8658e0add62b352d3305a4a4ff6 | Extracts urls from a Link header that follows [rfc5988](https://www.rfc-editor.org/rfc/pdfrfc/rfc5988.txt.pdf). | String[] extractUrl(RawDocument doc); | 0 |
91e857ddeabf7e87f06d75494139613c | fc31b8dde7ca17366580201675e695c0 | 验证用户填写的APPID和APPsecret是否正确 | class Wechat():
def _check_appid_appsecret(self):
if not self.__appid or not self.__appsecret:
raise ParamError('appid 或 appsecret 未初始化') | 0 |
2bb2c7df7111c326264684f8d8cfced0 | eded8e4e30b6533d62b2b3e098c9910e | HH:MM 을 00:00 경과 분으로 변환 | namespace App
public partial class Form1 : Form
private string durationConvert(string time)
{
string s = time.Remove(0, 3);
s = s.Remove(5, 3);
return s;
} | 0 |
3219d6537d0999383c38620d266db68e | bd01693187e47d96f551d4014fe24203 | Search a database for target sequences with a given query sequence or
PSSM. Return a dictionary where the keys are the target sequences for
which HSPs have been found and the corresponding values are lists of
tuples. Each tuple is a HSP with the following elements (and order):
- Start position of HSP in query sequence
... | output_dict = {}
cdr3_id_name = chain_id_converter[chain]
for query in queries:
fread_results = False
full_results = get_best_match( query.numbering,
structures)
CDRSequences = extract_cdrs( query.numbering[0], cdr3_id_name )
CDR3Seque... | 0 |
0275cfca267f99d7bad2413c9caf08ee | 921446b25ab15e7c9c8a126f41a5ad26 | This function gets the Received Signal Quality Information | BYTE *pTlvData,
TDSCDMASigInfo *pResp)
{
if ( NULL == pResp )
{
return eQCWWAN_ERR_NONE;
}
return GetByte( pTlvData, &pResp->rscp);
} | 1 |
a6601d5f55e2dddaeba5a917c39eb33c | a477da5b25aa4677e482e92fec666ead | NewRandom creates new [rand.Rand] with UTC.UnixNano seed | func GetNewRandom() *rand.Rand {
r := rand.New(rand.NewSource(GetGlobalRandom().Int63()))
return r
} | 0 |
013dcf83d90eded9034aa3daa80a0974 | 5f47620d2311cc3ed9fe85234bbc4181 | tampilan uutama untuk login | class PenggunaController extends Controller
public function index()
{
if(!Session::get('login')){
return redirect('/login');
}
else
return view('userhome');
} | 0 |
ee0a344528ba52f78b6dac1af37bac2a | 2a0ee109ade75dd275436d5822bb8fa8 | distinguish between token of length 1, and longer | {
return (is_array($token1) && is_array($token2) && $token1[1] === $token2[1] || $token1 == $token2);
} | 0 |
5bd82b9bd9138c753f831ea83e3366f7 | 628215b5e2ec46af182b9c2c039d76be | Returns this Token's copy. | class Token:
# Type of the token (string, e.g. "paragraph_open")
def copy(self) -> "Token":
return attr.evolve(self) | 1 |
763013038ded73833e7239e38bcfab25 | a1c162c628a89b32bf83913015c5b49a | 设置运费模板模型的关系 | abstract class AbstractCalFreight
private function setTemplateInfo()
{
$templateInfo = [];
foreach ($this->productList as $pro) {
if ($this->calType == Constants::OrderFreightCal_Default) {
$freightId = $pro->getThisProductModel()->freight_id;
} elseif ($this-... | 1 |
8412079958cd66c7215127af465102ae | 81c09345b69a358762d81a8c72208e52 | hàm reset điểm danh | public class MainActivity extends AppCompatActivity
public void resetAll(View v) {
scoreStudentB = 0;
displayForStudentB(scoreStudentB);
scoreStudentA = 0;
displayForStudentA(scoreStudentA);
display(" ");
clikedStudentB = 0;
clikedStudentA = 0;
} | 1 |
c812df3fd14d2e9e6fb754b9b7cac70d | 8bae05bb05a18ea00a1441a61401e3d3 | Receive Ethernet Frame and send to State Machine | void sender()
{
static int frame_to_send = 0;
static frame s;
packet buffer;
event_type event;
static int flag = 0;
if (flag == 0)
{
from_network_layer(&buffer);
s.info = buffer;
s.seq = frame_to_send;
printf("SENDER : Info = %d Seq No = %d ", s.info, ... | 0 |
a98cafdcaf485caf90f66e95a11608a8 | 3b78cc1d6c69361c01c83d8c8cf15e2b | 获取船长ID | public class Voyage
public String getShip_id() {
return ship_id;
} | 0 |
5272dc34ef1eb1d0298d80103fb1e49e | 1e18df13438e0b56d71907e8476de69c | Draws a DrawingLayer on to another DrawingLayer | export default class Bitmap
public blt(
source: Bitmap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number = sw,
dh: number = sh
) {
if (
sx >= 0 &&
sy >= 0 &&
sw > 0 &&
sh > 0 &&
dw > 0 &&
dh > 0 &&
sx +... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.