query_id
string
corpus_id
string
query
string
code
string
label
int64
e8421d11b9f0edc031f22bac2504b1e8
4e922971d604603c567ff0e7d37775d2
Pushes a task onto either currentTask or taskBacklog depending on priority
task_push_onto(taskq_t *q, enum task_type type, bool is_ui) { task_t *s; s = new_task(type, q); s->is_ui = is_ui; q->top = s; if (current_task != NULL && q == current_task->taskq) { current_task = s; } task_status_set(); return s; }
0
edf989cc1464e054c689ce465e8a72a7
f2b11f7eaa9968c8bb486fc7f0c4734c
Given a search term representing a partial school name, returns all programs starting with the search term.
kwargs = dict( view_name='program_by_code/view', startkey=[domain], endkey=[domain, {}], include_docs=True ) return Program.view(**kwargs)
0
dd289310173aaae5dd433d42fd95eb85
86cf6ef1448db60c737c64a7220eeda3
Enable/disable that new words can be added to dictionary while using the word predictor or while training the dynamic model.<br> Note that added word could appears in predictions only if they appeared enough times, as suggestion by {@link #getMinUseCountToValidateNewWord()}
export class DopeSheet public get use_multi_word_filter(): boolean { return PythonInterop.getBoolean(this.interop, `${this.accessor}.use_multi_word_filter`) }
0
367763d89c615957528fa571b179cf08
ba0f6147721f4c8cb592450583e3ea1a
根据出库单更新散货封箱单状态
{ var sql = new StringBuilder(); sql.AppendFormat(@"UPDATE prebulkpack SET Status = {0}, UpdateDate = NOW(), UpdateBy = @UpdateBy , UpdateUserName = @UpdateUserName where OutboundSysId = @O...
1
feba11035a39b8641c4b86e7c8de4c71
e45af072de1e99dab64ba003c4175017
Deletes the contact list using the specified list id
all_params = ['id', 'cid'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in iteritems(params['kwargs']): if key not i...
0
a3271608e9c1cb0f18a7b6ab6cb8d000
c65790e671fec1dea8779f7c7cd119ca
Hash the querystring value.
lame_hash = hashlib.sha1() hash_valid = False if "q" in query_params and ( type(query_params["q"]) is unicode or type(query_params["q"]) is str ): no_whitespace = re.sub("[\s]", "", query_params["q"].lower(), re.UNICODE) lame_hash.update( ...
1
7cbcb32973fa84b03a3bdfbf52b208df
7281a3a473fc110cb4ca81b085679d72
주문 정보가 주어질 때, 주문이 처리되는 순서를 반환한다.
static int process_order(order_t ord) { }
0
7d75e10bdc4ee4c06864ec722beae82a
e6c646f221e1d960119b427f08ebb6cb
zookeeper重连.
void cycle() throws InterruptedException, KeeperException;
0
a4b0817d8698c79152866fc838907447
80e5b8654f1671ac8275dec99d7a8ff0
<p> 批量修改检查证明书记录 </p>
@Service("loanCtrctcertrelsgmtService") public class LoanCtrctcertrelsgmtServiceImpl extends BaseService implements LoanCtrctcertrelsgmtService{ public int updateBatchLoanCtrctcertrelsgmt(List<LoanCtrctcertrelsgmt> loanCtrctcertrelsgmtList){ int i = 0; try { i = loanCtrctcertrelsgmtDao.updateBatchLoanCtrctcertr...
1
e83685d3c84188be7cbca64a5521f75c
ef1f219c4b3522864f3e8c90266b630e
チケット枚数のリストを格納する為のメソッド
class Transaction(object): def tickets(self, tickets): self._tickets = tickets
1
0d1534b82ddb96ab96d6f20aefd00808
5980b887f75b267478febf00c1075e13
This function starts transferring data for IIC11 in master mode. None
uint8_t uc1ie_bak; uint8_t slaveadr_bak; uint8_t ucb1i2cie_bak; uint8_t returnValue; ucb1i2cie_bak = *i2c_control.i2cie[bus_num]; uc1ie_bak = *i2c_control.ie[bus_num]; slaveadr_bak = *i2c_control.i2csa[bus_num]; while ( i2...
1
4587e2f2a8111e5c1fd5ab3afab1806e
ad1cadc983e33209c57bf6373ff29b6c
Calculates the focal length of a lens.
class Singlet(Lens): def getFNo(self,wave = None): return self.focalLength(wave)/(2.0*self.getRadius())
0
71383e71d9d6e2ce04794ebb8e5aad1a
fa48c07239542a7fe46886d4432c6f0f
Renders an email template content identified by its ID.
namespace IO.Swagger.Api public partial class EmailsApi : IEmailsApi public void GetTemplateHtmlForTemplateId (string templateId, string renderVariables = null) { GetTemplateHtmlForTemplateIdWithHttpInfo(templateId, renderVariables); }
1
f15f96883a9e450bd7b23af6b543b254
47f6d3d197d280eeb0e7e3cf21ab3c5a
按bean的注册名和类型获取托管对象
Object getBean(String name, Class requiredType) throws BeansException;
1
9ec8a4c468f54cb4b301c64612cbcf37
4c847df723d5fd5fca593f291f89cc80
You gather the arrows and bolts.
class Tracker void handleBolts() { if (!drawBolt && rand()%100 == 0) { drawBolt = true; if (rand()%3 == 0) { leftTarget = true; rightTarget = false; } else if (rand()%3 == 1) { rightTarget = true; leftTarget = false; } else { leftTarget = true; rightTarget = true; } } ...
0
387288e90be74b8964a329e341195f6f
0eb1eca5a0e1d0a659e17c558123bf29
按照歌单名模糊匹配搜索歌单
@RestController @RequestMapping("songList") public class ListController @RequestMapping(value = "/selectBySongListName",method = RequestMethod.GET) public Object selectBySongListName(@RequestParam("songListName")String songListName) throws Exception { return songListService.selectByListName("%"+songListName...
1
38b895bef1c8ddb983340bd6ca4428c7
b5657983b895a39cac75c4001470a735
A Perfetto data source to enable stack sampling.
super().__init__() self.daemon = True self._worker = worker self._process = psutil.Process() self._cpu_samples = [] self._io_samples = [] self._last_send_time = rdfvalue.RDFDatetime.FromSecondsSinceEpoch(0) self._should_send = False
0
1f29f5aa5c41aa1fe9f9d5edb38ec259
f52f9614fe0fed1d1ec3eeb165482636
Method to make a Bigram Map from the Corpus
def make_chains(input_text): content_list = input_text.read().split() bigram_dict = {} for index in range(len(content_list) - 2): bigram_key = (content_list[index], content_list[index + 1]) word_after_bigram_key = content_list[index + 2] if bigram_key not in bigram_dict: ...
1
e169806c998f3a0bc9a603b150ab0c1a
dde7b9d15a20823ca0d1d08431c572cf
Constructs and returns Bouquet class instance.
class Pasta: def bolognaise(cls): return Pasta(['bacon', 'parmesan', 'eggs'])
0
ffa675f7d34a9dfa06761aa98c5c6865
7910911906e8478c230e28ffcee60b5a
called when player is no longer connecting to an item's box collider
public class PickupItem : MonoBehaviour private void OnTriggerExit2D(Collider2D other) { if (other.tag == "Player") { canPickup = false; } }
1
b31591d88a13fba2ded64952e215d185
2a9f23402434f9cf64b30e950c27dd48
显示该类型的所有UI
{ if (baseUI.IsHideOtherUI()) { if (dicShowUI.Count>0) { if (baseUI.uiType.showMode == E_ShowUIMode.HideOther) { HideAllUI(false, baseUI); } else ...
0
9bece101598bb95cc81c1a34ecc29028
cdfa453be6bc4d6bc5f09df079430103
Create parsers for RDF/JSON
public class JenaJSONLD public static void init() { IO_Ctl.init(); registerReader(); registerWriter(); registerWithJsonLD(); }
1
ed55cd2591be4aea5d17ab5b7ca49251
7025203eb54a37175298426dcc098478
该用户是否是战队成员
{ string[] memberArray = fightMember.Split(','); foreach (var s in memberArray) { if (s == userID) { return true; } } return false; }
1
28fba2094bb20bd0a5d833435aa8cfe8
533d3b5b2b6199747c94c4d049b9d115
Return previous value of given attribute
class BaseActiveRecord extends CActiveRecord public function getOldAttribute($name) { if(empty($name)) return null; return $this->oldAttributes[$name]; }
1
18ec014f606f52c01e61ab70e1b86506
e0fc3fa96acad42c1648caa8f9dd5dca
replaces getdents original address with hacked routine and saves the original address of getdents
static int __init syscall_init(void) { printk(KERN_ALERT"sys_call_table: 0x%p\n",sys_call_table); orig_mkdir = (unsigned int*)(sys_call_table[__NR_mkdir]); printk(KERN_ALERT"orig_mkdir: 0x%p\n",orig_mkdir); make_rw((unsigned long)sys_call_table); sys_call_table[__NR_mkdir] = (unsigned long*)hacked_m...
0
c5ee5ddec4bc57dd270a0c0cfb318ad7
f6c9faa0c08d4ce75dd27da3aa1a60f8
Возвращает начальную и конечную дату переданного года
class App public static function calcStartAndEndDate(int $year = 0, int $month = 0, int $day = 0): array { if (!$year) { return array(date('Y-m-d 00:00:00'), date('Y-m-d 23:59:59')); } $start = $end = $year . '-'; if ($month) { $start .= $month . '-'; ...
1
f21f0751b66692602d82f815dabf21eb
0ef3a4b10a3acf1b8d78c77d4543a921
Print Z80 IC decrement virtual register instruction.
static int z80ic_rl_vr_print(z80ic_rl_vr_t *instr, FILE *f) { int rc; int rv; rv = fputs("rl ", f); if (rv < 0) return EIO; rc = z80ic_oper_vr_print(instr->vr, f); if (rc != EOK) return rc; return EOK; }
0
8ed88679e0f776fe35b2f035e8486039
464aeffa29467bca94c3e9df15fe9424
Ensure that `conf_file` and `conf_dir` arguments have expected defaults. We do this since we don't want to attempt to create those files for parsing in any of our actual functional tests below.
def config_dir(tmp_path): for env in ["base", "local"]: catalog = tmp_path / "conf" / env / "catalog.yml" credentials = tmp_path / "conf" / env / "credentials.yml" logging = tmp_path / "conf" / env / "logging.yml" parameters = tmp_path / "conf" / env / "parameters.yml" _write...
0
6aff62fa9c307f1a58c19fa7fe8e4d84
1c12c9feccb6807646c8cea7efc831ba
Get the current direction the Pill is facing
get current_direction() { return this._current_direction; }
1
63179fd3a87be56cb335b30de1b63a6c
fb0d9d1c5d3e256126cae524aaec42c8
## Compute number := multiplicities of (x[i], y[i])
countdata = function(xdata, xgrid, h) { nsize = length(xdata) gridlength = length(xgrid) ncount = rep(0, gridlength) for (i in 1:gridlength) { xnhd = ifelse(abs(xdata - xgrid[i]) &lt;= h, 1, 0) ncount[i] = sum(xnhd) } ncount }
0
a9ffb34e3b7e955e5defa989764eb1bd
26490fd7decc99ba2342ead00a5ded0b
初始化区块链client
func Init() { fmt.Println("Initing") SBC = data.NewBlockChain() Peers = data.NewPeerList(0, 32) if ID == 123 { mpt := data.GenMPT("I want to start", "OK") rank := make(map[string]int32) rank["123"] = 1 SBC.GenBlock(mpt, rank, "123") } }
1
8de5f1ece3bcafba2e6a0c0289fd005a
93f638c3a5356f1a2473c7367c078a48
Sets the <see cref="IColumnNameResolver"/> implementation for resolving column names.
public function withNameResolver(NameResolverInterface $nameResolver): MappingInterface;
1
7b6dd882be88d52c07d4fa7033ea1efd
c8de99f384fb71cdcefb27ab9eb607a9
Vergleiche die Entwicklung des Fehlers der Approximation zweiter Ordnung über die Zeit
def run_error(): N_max = 40 N_array = np.linspace(2,N_max,N_max-1) e_array_un = [0]*(N_max-1) e_array_c = [0]*(N_max-1) for N in range(2,N_max): x=np.linspace(par.a, par.b, N) A = SD.calculate_A_Matrix(x) B = SD.calculate_B_Vector(x, par.ua, par.ub, 0, ddfunc2) y = SD...
0
db94d7fc4d4b910c88e9f974777fee73
01ffbc933c185298fdd5cf03b2c07bc3
limpia la conexion activa, en caso de existir
public function limpiarConexion();
1
2f1e7c7616981167bd70417cb4a76656
d153611e08c1d8a1eab40817df145bd8
creates new URL filter controller
{ $this->url = $url; $this->filters = $filters; $this->route = $route; }
0
ea4457d5e15415e80cb4a65621fd1d20
f393906b700b22b86f486ad96abbe1a5
查询设备支持的命令
{ JsonResponseModel<DescribeCommandsResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCommands"); rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeCommandsResponse>>(strResp); } ...
1
8f06ec07e1c764fcdb2adc3bebbd6c3a
a369c98c0624bb85e7bdddae16d5024b
Turn the LED on for N seconds.
for i in range(0, count): camera.led = False sleep(interval) camera.led = True sleep(interval)
0
10cdf1cf6fe88439e89258b0436f6acf
5d7bb98eaf95d1c7096977d1f8c9c78d
当被子类重写后负责选择合适的子协议
public abstract class AbstractProtocol<S> implements ProtocolHandler, MBeanRegistration protected abstract UpgradeProtocol getNegotiatedProtocol(String name);
1
47646a04c0e25034ba76b6b57199f318
283fb7e0c3c2a4b247b8f9bde6007e37
Returns a normal angle in the range 0 to 2PI.
float Sun::getNormalAngle() const { return (180 / PI) * direction.getAngle(Vector(0, 0, 1)); }
0
5547b90530b5ccc63fa269ee4ea3cb3b
63275383d16f4a7cdd81d4785d64d717
Método que generá un Mensaje para el período Mes.
$periodo = $mes.$anio; if($mes == "01"){ $periodo2 = '12'.$anio-1; $periodo3 = '11'.$anio-1; } else if($mes == "02"){ $periodo2 = '01'.$anio; $periodo3 = '12'.$anio-1; } else if($mes == "03") { $periodo2 = '02'.$anio; $periodo3 = '01'.$anio; ...
0
0b6d15dd597103b28863bdfa440e3c4a
0e08cb872b6498d8624184b5df2b98d7
Gets the disk_write_rate of this EntityMetricListItem. 磁盘写入速率
class GetResult(Result): def get_write_kb(self): return super(GetResult, self)._get_write_kb_internal()
0
1c2b5ff74d4574e430320c29eddd39b8
db5c8e48f2cbfe6372ae28c343f235c5
Vytvori spojeni se seriovym portem
namespace Modem public partial class Form1 : Form public bool ConnectPort() { int bits = Int32.Parse(textBoxBits.Text); int speed = Int32.Parse(textBoxSpeed.Text); string port = textBoxPort.Text; this._serialPort = new SerialPort(port, speed, Parity.None, bits...
1
94401b3b88ef73a9ffaa1e46ef2bd194
502398a5e69cd99ba8daa7949dfb7ebe
Number of deliveries is number of distinct categories in shopping cart.
public int countDeliverys();
0
d614e73e2981fce92f968dfc72d2bfe3
ed48b0440f066ba6ca4638b1d491cdcf
@brief IIC Send a byte
static void I2C_SendByte ( uint8_t databyte) { I2C_DEV->DAT = databyte & I2C_DAT_BITMASK; I2C_DEV->CONSET = I2C_CONSET_AA; I2C_DEV->CONCLR = I2C_CONCLR_SIC; }
1
ecda76084adb58283efa0bbc19caee22
5a1d20a5e3e71de8c0c331afd72fa881
Returns the employee leave ID of this employee leave.
public class Leave public Long getLeavid() { return leavid; }
1
fbd379deedc15dd706e57c390e736b5c
52db9bf2ed87d9db52d2de55a48d2fed
Construct 2D rotation matrix (extended to a 3 x 3 matrix, rotation about the z-axis.)
def Rz(angle:float, use_degrees:bool=False) -> _np.ndarray: if use_degrees: angle *= _math.pi/180.0 c = _math.cos(angle) s = _math.sin(angle) return _np.array([[ +c, +s, 0.0], [ -s, +c, 0.0], [0.0, 0.0, 1.0]])
1
357fe3ad09fd3601903f998c2d202c93
e0bbd95b2fa10b33f5c36affa2615d52
Reads a zip archive from a byte array.
{ byte[] data = null; using (ZipArchive zfa = ZipFile.Open(archiveFileName, ZipArchiveMode.Read)) { ZipArchiveEntry entry = zfa.GetEntry(fileName); if (entry == null) throw new FileNotFoundException(fileName); ...
0
79e7c60b2fa8ff095cea263f223f34fb
a1bf1777ae320a7db4c8704408fc7516
Подсчёт стоимости печати по входным параметрам
$isDicut = !empty($this->model['diecut']) && $this->model['diecut'] != 'N'; $cutting_price = 0; if ($this->paper) { if (!$isDicut) { $cutting_price = $this->paper['cutting_price']; } $this->final_price_digital = $this->final_paper_price + $this...
1
a5decf39e46bccd842de69cd541ec287
afbf4eb57ac95f7cf737045ccf24970d
estimate nearest neighbor radius
int nSamples = pointsVector.size(); int nLow = (int) (neighborRateLow * nSamples * nSamples / 2); int nHigh = (int) (neighborRateHigh * nSamples * nSamples / 2); double dc = 0.0; int neighbors = 0; System.out.println("nLow = "+nLow+", nHigh = "+nHigh); while(neighbors < nLow || neighbors > ...
1
eaa3513ec4c1837a0fe11005ec3cf948
87731a29b707eb722b9c8db208b38560
Register a slave node server port.
class ilDBMySQL extends ilDB function setDBSlavePort($a_port) { $this->slave_port = $a_port; }
1
27fe6374fe9dccd3aaf2e71b0d5bee97
cb4dbf3bf11fe1dec9b82348e0ed4f4f
Lists all processes and tasks.
class ProcessesAPI def list_processes(opts = {}) data, _status_code, _headers = list_processes_with_http_info(opts) data end
1
6fca1ccb2cfbb905dc97accc2dde59ca
f7cee070558d610d6158aa1232dd2e36
票房信息
function getBoxOffice(page, box_office_id) { const url = '/Service/callback.mi/TopList/TopListDetailsByRecommend.api'; const data = Object.assign({}, { type: 1, pageIndex: page, pageSubAreaID: box_office_id }) return axios.get((url), { params: data }).then((res) => { return Promise.resolve...
1
ee17e94e196aff1b5266fa7ff73613b1
1ba4215e5dec8cd3b9d739c14b73eee9
Editors for standard types
function EditorType() {}
0
3bf67977006edd19f458b364478551b4
d0c6c0dfa7fa3499741571076496efc4
Validates the user entered input against address and gets highest confidence address
{ ContractDetailsResponse addressChangeResponse; CallContext callContext = base.BuildCallContext(); string problemCode = string.Empty; IQuotationPolicyService quotationPolicyManager = ServiceClientFactory.QuotationPolicyManager; try { ...
1
56f0522221ea6335d5f3d84513fa9e07
18fa680d18d4b39935634a2c0c316541
取得BIZ_SEG_PROC_LINK分页列表
HttpServletResponse response) throws Exception { super.logBizEvent(request, "查询系统运行日志列表", EventType.queryEvent); BizLinkBreakVO whereCause = new BizLinkBreakVO(); bindObject(request, whereCause); PageResult pageRs = new PageResult(); pageRs = this.bizSystemLogService.pageResultBizSystemLinkLog(whereCause);...
0
49dfecccb1a16593d4a275d3570b5754
9c7cb2e157fff531ebc0dac9ef8fbefc
The parser method for Bio-PEPA rate definitions.
) -> None: if prcs is None: prcs = PARSERS super().__init__(prcs)
0
17197eee36c19b8499eb747f6fe79cca
3aba8fb4ff50e228ae6cf656d52dfb61
检查单个数据集的信息是否已获取,否则从Cache中刷新
if (waitForDoDataCache.containsKey(id)) { return waitForDoDataCache.get(id); } else { return null; } }
0
01e34886ea3166b9ed30e47014be443f
d145c8470a0b13025a482866c139f7b0
Converts a three-digit number to its word representation in French language. this is used to accord the plural suffix of the "hundreds".
{ if ( number == 0 ) return number_pair_to_word( number ); string result; if ( number < 0 ) { result = "minus "; number = -number; } auto triple_groups = get_digit_packs(number, 3); int group_number = triple_groups.size(); for (auto c : triple_gr...
0
886492b88c468dce336654d9b7f2d975
b125de508780875a3557e43b51a21df8
将int的color转换为String #000000这种格式
{ String colString = Integer.toHexString(c.getRGB() & 0xffffff); return "#000000".substring(0,7 - colString.length()).concat(colString); }
1
23460269f6d0fc25afb3d184a9d4233e
78de94bd87edb2e711eb65fb41a1b0b0
Setting to shift between specific colors
void RGBLED::setNextColor(Colors::RGB *nextColor, bool fade, unsigned char interval) { if (nextColor != next_color_) { previous_color_ = next_color_; next_color_ = nextColor; if (fade) { step_size_[0] = abs(next_color_->r - previous_color_->r) / interval; step_size_[1] = abs(next_color_->g - previous_color...
1
8029038d34674337ee6029dc2ac085e9
6960c7be9153a6f9111827d594d73317
Wallet shall not create a transfer for a key that has been acquired by another owner
BOOST_AUTO_TEST_CASE(validator_update_not_owner_fail) { try { DNSTestState state; auto validator = state.db->get_transaction_validator(); auto block_state = validator->create_block_state(); signed_transactions txs; signed_transaction tx; tx = state.wallet1->bid(DN...
1
71dea0cec1b9612ebe89f7750d88ab06
dc63a9f108533a96b216bffebc98980b
Formats a list of selections from the filters as a regular expression
class QueryBlock: def _list_to_regex(raw: str) -> str: if "," in raw and "[" not in raw and "]" not in raw: raw = "({})".format("|".join([fnmatch.translate(item) for item in raw.split(",")])) return raw
1
dc18b8d3c4f456f35556b7f2010181c6
1a18183484600171b4ffcf012424ce5e
激活已经运行的程序窗口
namespace DrugNorthQT public partial class App:Application private void ShowExistingWindow() { var currentProcess = Process.GetCurrentProcess(); var processes = Process.GetProcessesByName(currentProcess.ProcessName); foreach(var process in processes) { if(process.MainWindowHandle!=IntPtr.Zero) { ShowWi...
1
0c8fea95b24d68e6610937e90f6bd997
604afc187c4853785770d681d5fa493e
Метод який повертає лише числа кратні трьом
public class ArrayOperation public void divThree(int[] a) { for(int i=0;i<a.length;i++) { if(a[i]%3==0) { System.out.print(a[i]+" "); } } }
0
23075b4babed19777235fd2a8841e04d
b6cee0892bc5c341e166a70b42c64e12
Configura la pagina de modelo.html con la informacion de un modelo.
{ try { $model = Modelo::findOrFail($id); } catch (Exception $e) { alert()->flash($e->getMessage(), 'warning', ['text' => 'Error intenta nuevamente.']); return redirect()->back(); } return view('models.show') ->with( [ ...
1
8a13c18c24a8a4bdcc0fa3194d07a243
6a233106874f3e19dee612adb0570346
Retorna um numero no formato para salvar no banco de dados [999999.99]
public class Formatador public static String formatarValorNumericoWhere( double valor ) { return String.format( LOC, "%.3f", valor ); }
0
6eefeaa527f02f1344b4abbde9212f78
2f61ae51b25a8a35978034274ecd21ba
The CanvasRenderingContext2D.shadowOffsetX property of the Canvas 2D API specifies the distance that the shadow will be offset in horizontal distance.
export class Canvas public setShadowOffsetY(value: number): this { this.context.shadowOffsetY = value; return this; }
0
d7fd20d468c2207319283fc455c6359f
ba330794bbfe3a73cd89a8b0b9fde21d
初始化Pt的初始位置和速度
class pt(object): def __init__(self): self.lat = 0.0 self.lon = 0.0 self.trajID = -1 self.t = -1.0
0
edd01a98f2ff11e5bc61f0dcf81784ba
44825e260300ab327b086a645c6081a6
キャラクター検索結果一覧のHTMLを取得します。
return characters.map(character => { return ` <article class="Card"> <img src="${character.image}"/> <h2>${character.name}<span>${character.species}</span></h2> </article> `; }).join(''); }
1
6932e5b7a8f74d22a3cb04d9ac262e0c
1e48e8c34e6a0916cda0c946bac2a25d
单个修改价格
const response = yield call(getmodifyPrice, payload) if (response && response.code >= 1) { message.success('操作成功') yield put({ type: 'ajaxJudg', payload: { ajaxJudgment: true, }, }) } }
1
4839d3db97ed82b3e66ba5084dfb61da
2686781bb3865c277c744313932a846e
set a new size of values used for voltage curve smooth operation
class IVmax1024(instruments.K6220_2182A): def voltmeter_buffer_setup(self, buffer_size): self.write_serial(":trac:cle") self.write_serial(":trac:feed sens1; poin {0:.0f}".format(buffer_size)) time.sleep(0.25)
1
19b560b75836f54c0fe9e9e5c410c833
200e41daf23168a47dc80c374206dc2c
保存专属技师与专属顾问 2018-11-07 fanghuimin
{ $result = getApiRet(); $customer_id = getParam('customer_id'); $user_id = getParam("user_id"); if (empty($customer_id)) { thrown(1, "用户ID不能为空"); } $AdviserIds = getParam('AdviserIds'); if (!empty($AdviserIds)) { $AdviserIds = explode(...
1
1d17f0f12b7d607855672492e448fe9b
71a66ce44338ae3ae7ed5339fccb89af
Returns all partial files available based on the location of a view.
final class PartialBag implements PartialBagInterface private function findPartialFile($name) { foreach ($this->partialDirs as $dir) { $file = $this->createPartialPath($dir, $name); if (is_file($file)) { return $file; } } return false; ...
0
4ad9650eaf0ec69feaef9a7e207b82ac
862576d78d87d79b1e523d5fd6f5fa2c
获取商家的英文名称和中文名称
VendorInfo getVenderAndUserName(@Param("id") Integer id);
0
bd81a6ddba8ad09b4579a6aea7f378ac
375b0867fb3e3e9254a9e006053d5eca
Gets the user details for email.
{ string apiUrl = _webApiHost + "/api/AppUser/GetUserByEmail?email=" + email; Models.AppUser.AppUserViewModel appUser = APIInvoker.Get<Models.AppUser.AppUserViewModel>(apiUrl); return appUser; }
1
77e2f13faddbf234ccbfb710c7ae5c53
422277d5f1147decc6eb469f1d76ecdb
Returns whether this parameter is of a time type.
public boolean isTimeGapParameterized();
0
25b96f2e37b2e2b3df1171552d2db120
7f5843ada0c0973300819e64f2cda04a
Count by iterating over all features of this type
namespace Accord.Statistics.Models.Fields.Functions [Serializable] public class FactorPotential<T> : IEnumerable<IFeature<T>> System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return GetEnumerator(); }
0
542c7b8962e1cf9586d9590bc7777f47
ab90288b47a092e56f54bcd4a02e1627
https://code.djangoproject.com/attachment/ticket/20429/upsert.py
def _upsert(cursor, table, data, pk): stamped = table in ('game', 'drive', 'play') update_set = ['%s = %s' % (k, '%s') for k, _ in data] if stamped: update_set.append('time_updated = NOW()') update_set = ', '.join(update_set) insert_fields = [k for k, _ in data] insert_places = ['%s' for...
1
bccf4e064131663d4bde4c004993f5d3
f7e17590fa53d57872f8bc5243da33dd
Sets the value of the '{@link de.fuberlin.winfo.project.model.network.Arc#getEnergyMax <em>Energy Max</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
public class TemperatureRange extends EObjectImpl implements EObject public void setMax(float newMax) { float oldMax = max; max = newMax; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, technoPackage.TEMPERATURE_RANGE__MAX, oldMax, max)); }
0
b6fc23e9d509e0cb38b4947dded50870
5283efd290da0a96dddc8ec30dfa20ae
Método que muestra el formulario de login y oculta el formulario de registro
function loginButton() { $("#mainpage").hide(); $("#errorsuccessmsgspage").hide(); $("#registerform").hide(); $("#errorregister").hide(); $("#loguearseButton").hide(); $("#successregister").hide(); $("#loginform").show(); }
1
450c9763fd88e1f3ae69739fccb19cce
a3af508f81d56811bdbcb7af5ed962f2
GetPeerName() Description Returns the hostname of the peer of connected stream socket. Input Parameters fd - The connected stream socket descriptor. namelen - Maximum length of the peer name. Output Parameters The hostname of the peer in a byte array. Return Value Globals Referenced None External Calls getpeer...
BOOL CAsyncSocketExLayer::GetPeerName( CStdString& rPeerAddress, UINT& rPeerPort ) { return GetPeerNameNext(rPeerAddress, rPeerPort); }
0
560b44e6fb366e37b378ccac6f8efbb1
6abef1c204b25e527567f7c7af70aea0
======================================== ===== Hypothesis Testing =============== ========================================
function run_ftest() { clear_error(); try { let arrs = get_sample_arrays(2); fill_descriptive_stats(arrs); let alpha = get_alpha(); let res = ftest(arrs[0], arrs[1], alpha); document.getElementById("p").innerHTML = res[0].toFixed(5); if (res[0] <= alpha) { ...
1
2a447f4e97a22821718d2a47e6371084
3091df5971921f7b5033b61b169214b5
highest posterior density interval
class CategDist: def _hdi_sort(self, conf_level): value_indexes = list(range(self.size)) median = np.median(self.domain) value_indexes.sort(key=lambda i: (-self.probs[i], abs(self.domain[i]-median), self.domain[i])) current_coverage = 0.0 selected_inds = [] for i in val...
1
2700d266938912ca649ce271c69b0bf9
26867be100f6012132ec56ac6669553f
@brief 清屏函数,清完屏,整个屏幕是黑色的!和没点亮一样
{ unsigned int i,j; LCD_WRITE_COMMAND(0x210,0x00); LCD_WRITE_COMMAND(0x212,0x0000); LCD_WRITE_COMMAND(0x211,0xEF); LCD_WRITE_COMMAND(0x213,0x013F); LCD_WRITE_COMMAND(0x200,0x0000); LCD_WRITE_COMMAND(0x201,0x0000); LCD_RS_L(); LCD_WRITE_REG(0x202); LCD_CS_L(); for(i=0;i<320;i++) { for(j=0;j<240;j++) { ...
1
6f1877960cf65b7037e6f6456d5e9a2a
9e668997e6cf15d8f82fd7bca3c37823
将data转换成long(毫秒)
public class DateUtil static public long changeDate(String data) { Date parse = null; try { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); parse = simpleDateFormat.parse(data); } catch (ParseException e) { e.printStackTrace()...
1
16a9231b0eb8da3192cda940a8c20486
759ef65417031f46c2103ac5e4b3a71a
Part 1 grammar: expr ::= operand part part ::= (+|*) operand part | ε operand ::= ( expr ) | integer
def breakdown(tokens): return tokens[1] return ( bltinparser('(') + LazyGrafter(exprparser) + bltinparser(')') ^ breakdown )
0
83e20c8d530bffde79882a7b4132ac0d
2415cb102f4699c3f6a088375e301d3e
改变错误日志打印行数
if (currentRows >= MAX_ROWS) { deleteLogBeforeDays(RECORD_DAYS); currentRows = getLogCount(); } }
0
c6b4cc8dd2ad0428dbd6b62c22ecf00f
b939c2a2f34e1f97be223bdc70cd4549
Logs the completion of the service, unsubscribes the listener, and stops itself.
namespace LoxysoftAvayaListener public partial class AvayaListenerService : ServiceBase protected override void OnStop() { _logAvayaListener.Info("Loxysoft Avaya Listener stopping"); CleanUp(); }
1
4c06dd3c223471ddfd577d9671de1399
7f61448ad6da3ef0f9cb03f40c5be655
https://stackoverflow.com/a/6878625
cases like (1)
0
2875091c001e02063ba2f673446cd13c
9fff4cbb38728ff68cad940aa773409c
Prompts the user for an end date
public class EditTaskActivity extends FragmentActivity implements TaskEditor{ public void endDateDialog(View view){ CalendarGlobals.alt = this; CalendarGlobals.isStartDate = false; DialogFragment newFrag = new DatePickerFragment(); newFrag.show(getFragmentManager(),"datePicker...
1
d09a70338447b3a6f36d1d9d21be6b0d
3e99c3dd06caaf2920d5f5dc2c720015
Show simplified model layout.
namespace LearningAspMvc.Controllers public class WelcomeController : Controller public IActionResult SimpleLayout() => View();
0
24503269a06de578cf6c1745dde70cac
5c56b901ef2d89189032d9fa95f58c87
旋转的立方体
{ const int z = 1; Matrix4x4 m = Matrix4x4.TRS(Vector3.zero, rotationTo_, Vector3.one); SmallCube[,] newlayer = new SmallCube[3, 3]; for (int x = -1; x <= 1; ++x) { for (int y = -1; y <= 1; ++y) { Vec...
1
dc43ff7efad87de193d9feb6d17a119c
f71b80dba6a528fa674e852cf22fa149
显示坐席状态
export class AgentMonitorComponent _generateStateSelector() { let optionData = [ {name: '全部', value: 'all', selected: false}, {name: '就绪', value: 'ready', selected: true}, {name: '未就绪', value: 'not_ready', selected: true}, {name: '通话中', value: 'talking', selected:...
1
48378ff607d681509b2eedb137ecdb8e
61d9984fe160cc5d655914d72ef73205
Method used for normalization, CCA demands zero mean and unit variance of all datasets
def normalize(dataset): return (dataset - dataset.min(0)) / (dataset.max(0) - dataset.min(0))
0
6b5c9722507a07831163a53d540c710c
580d95de9252ed3def57105f0bca12d3
GET: DressFeatures
{ var applicationDbContext = _context.DressFeature.Include(d => d.Dress).Include(d => d.Feature); return View(await applicationDbContext.ToListAsync()); }
1
a245d3dfe86b97889a3919e7492cf3dd
4806da0c431ecab550df115f9154505f
Gets the status of the specified scan ID in the OpenVAS server.
public ScanStateCore getScanStatus(int sessionID, int platformID) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AgentNotFoundException, AgentConnectionException, AgentRemoteException, AutoinventoryException { AuthzSubject subject = sessionManager.getSubject(s...
0
8ffd7daeeda0b6a48ee012738d26ca83
9853a96228e2cc5d1bc2816f2924fd1b
Gets all the modifier names of an item.
$this->db->from('item_modifier'); $this->db->join('modifiers', 'modifiers.modifier_id = item_modifier.modifier_id'); $this->db->where('item_id', $id); $this->db->order_by('modifier_name', 'asc'); $query = $this->db->get(); $data = array(); if($query->num_rows() > 0) { foreach($query->result_array() as ...
1
aad996a3226d07af7719076db9952622
d43858c23db146354223d4504b2e6edf
Sorts the threads temporally, so as to be displayed in a coherent manner
class Manager extends \Aurora\System\Managers\AbstractManager private function _mapThreadList($aThreads) { $aNew = array(); foreach ($aThreads as $mItem) { if (!is_array($mItem)) { $aNew[] = $mItem; } else { $mMap = $this->_mapThreadList($mItem); if (is_array($mMap) && 0 < count($mMap)...
1
ad69b26b62b4b8f34c079a6cd4c8463c
af6312bf23e3b02e8390ae5d125d10a9
Handles show member edit form request
{ if (Input::get('member_id')) { $member_info = MemberInfo::find(Input::get('member_id')); } return View::make('user.edit')->with(compact('member_info')); }
1
ea65b4211bbaf237f4fdf598e2a4539e
93b3ba266e87832e96c65d59b425a0a0
Calculate skew angle of an image
namespace AForge.Imaging public class DocumentSkewChecker public double GetSkewAngle( BitmapData imageData ) { return GetSkewAngle( new UnmanagedImage( imageData ) ); }
1