query_id
string
corpus_id
string
query
string
code
string
label
int64
edbf1acaa2c2a100537c1b8a01d9449c
6cdbce744e9655431269d991c7da510b
Updates the code to the specified branch.
Branch br = new Branch(getCompany(), branchCode); int index = getCompany().getBranches().indexOf(br); if (index == -1) throw new Exception("Invalid Branch Code."); this.branchCode = branchCode; }
0
f39267d77b90528c30096fc270379051
c388c3b3f9ec24ce0781476e1b3155cf
From https://stackoverflow.com/a/52404426/1039742
let negative = if num.is_sign_positive() { "" } else { "-" }; let num = num.abs(); let units = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; if num < 1_f64 { return format!("{}{} {}", negative, num, "B"); } let delimiter = 1000_f64; let exponent = cmp::min((num.ln() / delimi...
1
bdefe7ac21005b22b990a765d4d05077
0196dcb6f2f11375c811897c792e8630
测试一个空表单
class MessageTest(TestCase): def test_empty_form(self): empty_form = MessageForm(self.user1) self.assertFalse(empty_form.is_valid())
1
fc5e18bc6aa7941daec2e405bbc56a8a
5c3a31dc35d3d07dffe38dd3f67580b7
<para>Returns the (computed) value of the property scrollX.</para>
public class AccessibilityRecord @DSComment("Data structure/no action") @DSSafe(DSCat.DATA_STRUCTURE) @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:29:52.027 -0500", hash_original_method = "37E422003D62C4BD4746E9CFAAF79E84", hash_generated_method = "2966D4C64459925...
1
f51d9fcc23f35fc24979a152aaa18559
a119c2e5339c64d546475c918a221574
获取录播课程--缺少必传参数
$post_data_error = array( 'video' => array( 'language' => 'en_US', 'district' => '1799', 'source_id' => 5, 'category_id' => 0, 'origin_id' => 'm9FvggfU' ), 'info' => array( array( ...
0
e03436e0fed9e73d5d19cbc3420c31fe
abf9fa6367e8976fbca0fe890b9b58d5
Disables any key presses that would allow for scrolling.
class RestaurantsFilterController private disableScroll() { $('body').addClass('no-scroll'); }
0
b2daf8fc0540b252dc747608093b65e6
ba9eac96d9ab3560213734a80174a7e3
we only free the context call stack.
int status; if(js->stack_depth <= 0) { return 0; } strcpy(js->stream_buffer, ""); while(js->stack_depth > 0) { status = json_end_context_internal(js); if(status) return status; } return 0; }
1
30c1bb36932c500d6dbb62870382b356
a6467c2be64c1dc2692bde28e7c29ece
创建一个只有一个确定按钮的对话框
android.content.DialogInterface.OnClickListener onClickListener) { AlertDialog.Builder builder = getDialog(context); builder.setMessage(message); builder.setPositiveButton("确定", onClickListener); return builder; }
1
a65c733f84ae12447058e6196d93aeb2
8ed82daf757549a7d65b82b36d4cc13e
Awaits the next HTTP request (waiting up to the specified wait time if necessary), removes it, and returns it. Callers should use this to verify the request was sent as intended within the given time.
public class Server public Client waitNextRequest() { synchronized (this.requestLock) { if (this.defaultRequests.isEmpty()) { try { this.requestLock.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } return this.defaultRequests.remove(); } }
0
db72ad99c00035428df05b0f849bfcaf
2ee1755e09f7ec558b84290cc33d70be
找出两个目录下同名文件内容不同的文件 spath : 源目录 dpath : 目标目录 filelist : 文件名列表
def _compare_file_list(compare_list: list, compare_target_list) -> list: result_list = [] for name in compare_list: if name not in compare_target_list: result_list.append(name) return result_list
0
de4f2fd8d6815fda869457743c89f8c6
73dd6a00d9320da4367e2ea66bd25b5b
Invalidate portions of the listview control that are used for drawing summary info during a header resize.
void NEAR ListView_InvalidateCachedLabelSizes(LV* plv) { int i; if (plv->style & LVS_NOITEMDATA) { for (i = ListView_Count(plv) - 1; i >= 0; i--) { ListView_NIDSetItemCXLabel(plv, i, SRECOMPUTE); } } else { for (i = ListView_Count(plv) - 1; i >= 0; i--...
0
e572d964163578a7be6425d7c4af3200
9754aa027aae63d29f3738da98ff7278
If we have more than one screen configured, then don't match on the global screen, as that's separate to XY positioning which is only concerned with the *specific* screen.
function oneScreen() { return S.screenCount() === 1; }
1
970a4aad741737f5c922888112e17460
8ebf9f1703a78b16cdaf555b632af0c3
退出登录时调用,销毁掉请求拦截器
logOut() { axios.interceptors.reject.eject(axiosIns) }
1
bb9e1a40be5a6a989ce1f573807b1c5f
dd29e03a9313f272ddebf8d6da302332
Gives the scores from this pair.
class Base: def get_scores(self): return (self.myscore, self.yourscore)
1
7ccdc9d22d4f7c2e94258aa3324a551f
6fd76588b5e10e2e9aa4e8d16c020e4e
Return the width of the image. Returns false if the width is unknown or undefined. STUB Overridden by LocalFile, UnregisteredLocalFile
if ($this->image === null) { $this->load(); } if ($this->width === null) { if ($this->image === false) { $this->width = false; } else { $this->width = imagesx($this->image); } } return $this->width; }
1
7899a1c8bbe8a794b2e47c077d1d2c08
c0f8c271179b8c0fdcae0889282a3506
按公司类别获取,0:客户;1:供应商;2:班组
{ $Model = new \Think\Model(); $result = "0"; $id = "9002-03"; $sql = "select value from t_config where id = '%s' and company_id = '%s' "; $data = $Model->query($sql, $id, $companyId); if ($data) { $result = $data[0]["value"]; if ($result ...
0
5318c6fcf10c34632ab28ee60ef96bfe
67575dca31837c8ba7828d2684a5015e
エラー時間をアップデートする===============================================================
class Controller extends BaseController public function reErrorTime() { $dateTime = horseRaceM::nowDateTime(); $errorTime = strtotime(session('errorTime')); if(strtotime($dateTime) > strtotime('+1 day', $errorTime)){ session()->forget('errorTime'); } }
0
5805580e629eeda2df6d70266eff4e2f
b13a510291f3aacc045ab4a1c39d377c
初始化道具的协程,获得图标
local index = cell:getIdx() + 1 local icon_data = itemDataList[index] local itemInfo = require("game.Huodong.ItemInformation").new( { id = icon_data.id, type = icon_data.type, name = icon_data.name, describe ...
0
4f3f99f70b86b708ac8cec7e152e63e7
2e728b6b2195b95a501beda463e9e8f8
The address of the secondary LDAP server.
class CacheActiveDirectorySettingsArgs: def secondary_dns_ip_address(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "secondary_dns_ip_address")
0
a5276044d71962324e8958db5e10428a
135f72ed8f5d22ff3fcd930206aedbe4
pysäyttää liikkeen x-suunnassa, jos törmää johonkin
namespace Peliukkeli_ohjaus public class Peliukkelin_Liikkeen_Hallitsija_CharacterControllerilla : Peliukkelin_Liikkeen_Hallitsija public void LisaaTormayslippujenVaikutus_Suunnassa_x(VoimaVektori.SuuntaParametrit suuntaparametrit) { if ((character_controller.collisionFlags & CollisionFlags.Sides) == CollisionFlags...
1
68dc4f695bbceae3bb9b486dcdb75306
cb06fe99d4dfe122fb9ede7f1c3d0f76
version without boundary conditions
if verbose: print 'Verbose mode activated!' if dim is None: if start_u is not None and f is not None: u=array(start_u) f=array(f) if u.shape != f.shape: print 'Error! u and f must have the same dimensions!' sys.exit(1) ...
0
8973b35af665a1e11a7b63610824e74a
98196ab7b81d827edd31f44954872c05
Deserializes a service bus item of the specified type from the given HTTP response.
namespace GitHubSearch.ApplicationCore.Interfaces T DeserializeObject<T>(string httpResponseContent);
1
4a1ff42929bcc5d08b6c93a345963446
2722ba62bdc07e2bae4b2887ca9de4a7
Add function 'plot' argument parsers.
def get_plot_args_parser(): plot_args_parser = argparse.ArgumentParser(add_help=False) plot_args_parser.add_argument( '-p', '--plot', action='store', nargs='+', metavar='CURVE_IDX', dest='plot', help='specify the indexes of the curves you want to plot\n' ...
1
9a985c24a6250d9b069a5aa4de797f9c
768b3c3cb01ed4292c4df7639a40fbdd
获取第一个没有登记的和没有完成下载的片段
interface PKTaskGetter fun getUnCompleteTaskList() : List<PKDownloadTask>
0
2e25293f6146f31dff0b7cd2d7eb70ff
efe9dead0d8131f6fbca0ca8196b0c41
Test that the expected passcode is valid.
def test_validate_pin(): assert validate_pin("123456") == True
1
3c825efa3b1c4e9837da513232130b03
528d1c6a335a84ba741154cc983de23f
Test for verifying ids of organizations owned by a user
filter_pages = self.create_filter_pages() organizations = [ OrganizationFactory( page_parent=filter_pages["organizations"].extended_object, page_title=f"Organization #{index}", should_publish=True, ) for index in range(1...
0
47eae928ff199f0bc7bd4a8b5da3fa2f
189714771a02e9eab226c269a567b537
Set createurId
class Debat public function getIdCreateur() { return $this->idCreateur; }
0
6fccc5869a67df1d39799385a0adb550
149fd2ff1fc2beb5e5d3ea1cecdbd138
Test that the LSF environment takes the attributes from the environment variables.
config = configs[3] t = Testrun(*config) self.assertEqual(1, len(t.test_env)) self.assertEqual('/mybasedir/basedir-set-config', t.test_env['test_dir'])
0
4449e41bc199c603f933682c7d796c29
e7c3f56ddfdd06902419e7dc38ac1bc1
取得零股買賣成交訊息(Just for TW)的物件
List<DBObject> result = new ArrayList<>(); String day = transDetail .select("td:matchesOwn(資料日期)") .text().substring(5,14); for(Element detail: transDetail.select("td > table tr:gt(0)") ){ Map<String, String> data = new HashMap<>(); data.put("stock", stockNumber); data.put("day", day); dat...
1
a6411f294b2c98a0e302e7ac8b6315eb
aacd3fc5c3d47666aa9f06cd64295328
Returns the nearest Sunday falling on or before the start of the month. This is the first day of the first row of the calendar display. Note that this date is either equal to startOfMonth (if the month starts on a Sunday) or in the previous month (if the month starts on a different day of the week). week of the focus m...
const first = Dates.firstDateOfMonth(d); return new Date(first.getFullYear(), first.getMonth(), first.getDate() - 1); }
1
6dedf948136ca1495263dda182c25b5c
8bba77aa3e1faf3b91d0d31d521f9dac
Close feedback panel
public class GUIManager : MonoBehaviour IEnumerator closeFeedback() { yield return new WaitForSeconds(3); FEED_itemDroppedOnBin.SetActive(false); }
1
03b5d0d72bf4fdfff7469a0115375e97
711b37f8976a44d19bc5f5e6d994aa5b
Beállítja, hogy a jobb egérgomb volt-e lenyomva a kártyalap kiválastásakor.
public class Spaceship extends GameObject implements Serializable, UserEvents public void setTurnRightKeyPressed(boolean b) { this.turnRightKeyPressed = b; }
0
d91ecf0f8492ed0fe2a447dafa81248e
04b2b703f172037f0eb009c16064a5c0
Formatear la vista de una imagen cuando ya se formo el par
$image = Images::find($id); if ($image != null) { return view('image', array( 'titulo' => "Imagen - " . $image->descripcion, 'principal' => true, 'image' => $image, 'mostrar' => true, )); } else { return redirect()->action('ImagenesContro...
0
60a18cf10d25ee923133ca9e97939857
8e7b4a60d9fa538685d556c15ae9047a
GetDuration returns the time passed since the timer started.
func Since(t Time) time.Duration { return Now().Sub(t) }
1
ac3b51173cadb146645a219cc575b53f
eeea65466a5baa4281cfa3712d74b6dd
Creeaza si calculeaza notele unui student, apoi le intoarce sub forma de arbore
{ Node * node = new Node(); node->move_list = (player == 'w') ? getWhiteLegalMoves(board) : getBlackLegalMoves(board); node->child_count = node->move_list.size(); std::memcpy(node->state, board, 8 * 8 * sizeof(char)); char other_player = (player == 'w') ? 'b' : 'w'; if (depth > 0 && node->child_...
0
360654add98c83a51f5ac7bbff0880df
2563362991dedb32dc7a12cf3f0de5fb
lists parameters too close to estimate boundaries
components_list = [model.get_dependence("drift"), model.get_dependence("noise"), model.get_dependence("bound"), model.get_dependence("IC"), model.get_dependence("overlay")] hit = False for component in components_lis...
1
f63a8522b944aab4519bc80014304bdb
0493da33c84a8ced2fb89f0007be5cf5
Получить научные кружки преподавателя по идентификатору плана.
namespace TeacherPlan.Core.Service public class TrainingWorkService : ITrainingWorkService public List<TrainingWork> LoadTrainingWorksByPlan(int planId) { using (IUnitOfWork unitOfWork = _unitOfWorkFactory.Create(_configuration)) { return unitOfWork.TrainingWorkReposi...
1
b67066abeb24631b9b18fe141b3812f1
8b925e65b2e4fe4ccc4c788290e875ac
缓存多个 item,达到一定数量或者触发 event 时发送
yield put({ type: 'cacheMult', key: 'dict', api: getByTypes, args: payload.split(','), time, }); }
0
8b11ba4341e608fabd81b0cfe9f41d31
b5577e33ed11ea5f298034059a642ab0
méthode de creation de signataire.
namespace Cardinal.ClickSign public class ClickSignService : IClickSignService public async Task<Signer> CreateSignerAsync(CreateSignerRequest request, CancellationToken cancellationToken = default) { var result = await this.CreateSignerAsync(request, cancellationToken); return resul...
1
a2c6148b0b1744461c607c0401ab08ff
bbce62492691532f0d9e1af8853ab5ab
Returns stagger time *************************************************************************************************************************************************************************
[RequireComponent (typeof(Animator))] public class CharacterStatusHandler : ObjectStatusHandler public void Stagger (float duration, float waitTime = 0f) { if (duration <= 0) return; if (PhotonNetwork.offlineMode) stagger (duration, waitTime); else _photonView.RPC ("RPCStagger", PhotonTargets.All, durat...
0
923ef5918185cafd340ae70d6bbdf575
c7bbbb85eecc3622df4d6e3a53c60e3d
Loads the images for the mine
public class LaserMaze2 extends JPanel implements MouseListener, MouseMotionListener public void loadImage(){ ImageIcon b1 = new ImageIcon("board1.png"); boardPic1 = b1.getImage(); ImageIcon b2 = new ImageIcon("board2.png"); boardPic2 = b2.getImage(); ImageIcon icon2 = new ImageI...
0
78d40c3b6e69a604e70e230d9977eac0
516c8c5578e58245879fd01fce9b04fd
Des: Save the graph of backtest Input: path: the path for saving graph
x = str(int(datetime.now().timestamp()*1000)) filename = filepath + 'graph/' + x + '.pdf' plt.savefig(filename) self.addFigure(filename,caption)
1
97939c8c0b4a4522cb3854d7f0140f5c
a0b8f4afd773bc56a0fa5cb861f4f934
Checks if the entry's name has the video prefix.
namespace SandBeige.MediaBrowser.Settings public class GeneralSettings public bool IsVideoFile(string filepath) { return this.VideoExtensions.Value.Any(x => $".{x}" == Path.GetExtension(filepath)?.ToLower()); }
0
e86568a6cd511411b398fee8bdb4c31c
b00f77d56c9b9832b505ad946429ae83
Verify the protocol name is a unicode string.
class Database(bob.db.verification.utils.Database): def has_protocol(self, name): return self.__db.has_protocol(name)
0
072029fd624c2cf2805f1f3baf24dbad
956c12ada95ad7696a9cccc4fab0750c
Animates the color of the hint text.
{ textTutorial.color = new Color(textTutorial.color.r, textTutorial.color.g, textTutorial.color.b, 0); while (textTutorial.color.a < 1f) { textTutorial.color = new Color(textTutorial.color.r, textTutorial.color.g, textTutorial.color.b, textTutorial.color.a + (Time.deltaTime / fad...
1
5368b07dff368192edbcfb6bcafad92c
8a5ed1cdf3d4c2e7beba43c384506807
根据井坐标得到 井名称
public partial class Channels_Env_ZZ_Fill_RiverPlan_RiverPlanFill : PageBase [WebMethod] public static string getPointName(string strV) { CommonLogic com = new CommonLogic(); return com.getNameByID(TEnvPRiverPlanVVo.T_ENV_P_RIVER_PLAN_V_TABLE, "VERTICAL_NAME", "ID", strV); }
0
60092c4de5e23313f4e6127ebe272764
c84718686614b1b3bc8464e25cb35d0f
fonction pour lire la musique precedente
try { if(iFavorisRecycler != null){ iFavorisRecycler.playPreviousAudio(); } } catch (Exception ex){} }
1
6798de563ec8fe631eb8b13ee1472cf5
613a321d1ddacbbb95cb4b74a6b41d38
Create the Vimeo Field Group
self::add_acf_group([ 'title' => sprintf('%s — %s', JKNAPI::module()->name(), MJKVI_CPT_ArchivalWebsite::name()), 'fields' => [], 'location' => [ [ [ 'param' => 'post_type', ...
0
3f5b6ec2a06492cc49bb9136ea6c2aa6
7ce8388f2e975efef9a80fd863666d70
Examples => '5.0' Returns the version String.
class SoftwareVersion public function __toString() { return $this->getVersion(); }
1
a1414688fa90dd4d7e5dbebea87696fd
2a5ee17d36b6c99abb063400be19f7da
@Brief: 安装pip
import pip from subprocess import call for dist in pip.get_installed_distributions(): print dist call("pip install --upgrade " + dist.project_name, shell=True)
0
ee4101a98f1932fad9a944cd5407a644
b50d5b5679257e33b0214e45337f13f3
Invoke the counter model object method which changes the score to the current value
class Counter: def increment(self): self.__score += 1
1
e835e66393447c39e2d738b6246c57ac
7239ae4e9a3486c6a66377d198751137
根据名称获取该名称下的图片集合
List<MoAdsBean> result = new ArrayList<>(); if (data!=null&&data.getImgs()!=null){ for (MoAdsBean adsBean:data.getImgs()){ if (adsBean.getName().equals(name)){ result.add(adsBean); } } } return result; }
1
8b7c494e2d42073cb794e64a863aa350
381cd9ed61b51b4ab6c46f4bea4908ae
Returns a read-only view of the t-pval; doesn't require loading the whole array
def load_pvalue_results(fn): dat = pd.read_csv(fn, header=0, index_col=0, delimiter='\t') ncol = dat.columns.size dat = dat.iloc[:, (ncol / 2):] dat.columns = dat.columns.str.replace('_pval', '') return dat
0
7536463d035188d2d54968635caf14d9
1adfa9a09f1a1a487c0718a3a03cc016
list类型数据比较json字符串是否相等(内容相同,排序不同)
if isinstance(expect_data, dict): if not cmp_data or not isinstance(cmp_data, dict): return False for key in expect_data: cmp_key = key if cmp_key not in cmp_data: if cmp_key.capitalize() not in cmp_data: return False else: cmp_key = cmp_key.capitalize() if not cmp(expect_data[key], c...
1
442c60a9077b367e1a34fa6f081365ce
e95e33a79e0a6377dc876becf8350af3
Returns the inverse fraction (1/this).
fn recip(self) -> Self { Self::one() / self }
1
9e24c9d34687a7d106496479e01154e0
0da8e434318762dbd54e0b4534c025c1
Whether the status is forbidden. A status is considered forbidden ok when its code is {@link FORBIDDEN}.
public class JetAPIResponse extends APIResponse implements IJetAPIResponse @Override public boolean isForbidden() { return getStatusLine().getStatusCode() == ResponseCode.FORBIDDEN.getCode(); }
1
58ead16d7ea08a6da20c1b719be043af
9b596a1fe17fa21db8e61ef5859b2d42
The event that accordion headers will react to in order to activate the associated panel.
function AccordionHeader(props) { var children = props.children, expanded = props.expanded, Icon = props.icon, iconPosition = props.iconPosition, onChange = props.onChange, rest = (0, _objectWithoutProperties2.default)(props, ["children", "expanded", "icon", "iconPosition", "onChange"]);...
1
e9f424152654fb57755dbc24f34cbec4
45254f604f79889c3d71730a0bacbd79
Shows the recently added positons
class PositionsController extends Controller public function index() { if (session('success_message')) { Alert::success('success', session('success_message'))->showConfirmButton('Close', '#0f9b0f'); } elseif (session('error_message')) { Alert::error('error', session('error_me...
0
eaf6dbdc6739468576916f3507446b24
6b926eeab7f31fa6d1f7deddb869b00a
Concatenates four lists into one.
class TrainingData(object): def concat_labels(services, environments, hygiene): labels = [] for service, environment, hygiene_ in zip(services, environments, hygiene): labels.append([service, environment, hygiene_]) return labels
0
50b3357b917c49aa0174e939b3fe7c07
6374f521013a28a86d1bcb4babc4cbbb
el metodo mueve el libro diario actual al siguiente
{ numeroDeDia++; reloj = duracionRealDia; mismoDia = true; StartCoroutine(pasoDelTiempo()); }
0
de35282c92ce6637ef0336510a7df558
140dd482b4a8f63014ec8ca9cc0fc995
使用session存csrf_token,并将其返回给客户端
class IndexController extends Controller public function refreshToken(){ $data['_token'] = csrf_token()?:''; return Response::returns($data); }
0
5fb08b0133bd5b14118afa68082de861
e7d1349a9bf75ffc884930a951d56596
Enable TX and RX (8N1 serial format set by default)
static inline void EnableTX() { PLIB_PORTS_PinSet(PORTS_ID_0, g_hw_settings.port, g_hw_settings.tx_enable_bit); PLIB_PORTS_PinSet(PORTS_ID_0, g_hw_settings.port, g_hw_settings.rx_enable_bit); }
1
67e34009f93e9957b57cc801f015be8b
000b7c3ba18efb96506d863167a36ce6
Returns the value of the '<em><b>Item Added Left To Right</b></em>' attribute. The default value is <code>"true"</code>. <!-- begin-user-doc --> <p> If the meaning of the '<em>Item Added Left To Right</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc --> extendedMe...
boolean isItemAddedRightToLeft();
0
be2a29f700cc6e4e2ebdcff9d2aa025c
fe6cbff231ce242b7bb0518f94778462
Returns true if either white or black loses the game, which means their king is killed
namespace ConsoleChess.Source.Game public sealed class Chess : MiniMaxProblem public bool IsGameOver() { return (!pieces[WHITE][12].live || !pieces[BLACK][12].live); }
1
5f89a2427c4ba982f10d4eff3acae413
c752945783dc05fd5df63b0cd4750282
取得指定卡牌能得到的额外VP
CardController mainCard; CardController[] supportCards; int count = 0; if(playerNumber == 1) { mainCard = enemyMainTransform.GetComponentsInChildren<CardController>()[0]; supportCards = enemySupportTransform.GetComponentsInChildren<CardController>(); } els...
1
63821bb2d8fc631609e0d65d5e62b639
f45ee60649dc2e01182c74ab61f571d0
Own implementation of find_task_by_pid()
static struct task_struct *ksched_lookup_task(pid_t nr) { return pid_task(find_vpid(nr), PIDTYPE_PID); }
1
0dfeba088724ad31a467b38c63314ed9
214c66e47ccd7e017752956a1d730da8
\brief Triggers this module to print status information, over serial. debugPrint_* functions are used by the openserial module to continuously print status information about several modules in the OpenWSN stack.
weta_debug(Weta *pWeta, const char *msg) { hw_serial_write(pWeta->debugsport, (uint8_t *) msg, strlen(msg)); }
1
39a3fb9a2a6a9a0e653d8a483a478880
9c8111534561acbdf2a78c8df241b0b4
constructor which sets every element of the array to the parameter
IntVectArray::IntVectArray(int elemlist[], int arraysize) { vectorsize = arraysize; vector = new int[vectorsize]; for (int x = 0; x < vectorsize; x++) { vector[x] = elemlist[x]; } }
0
d2a27656545dc4a1efb2869206336344
7a698990ee9ed2ddb81a63a516003707
Returns the dia chi thuong tru tinh ID of this cong dan.
public class HoSoTTHCCongWrapper implements HoSoTTHCCong, ModelWrapper<HoSoTTHCCong> public java.lang.Long getDiaChiThuongTruNguoiNhanKQId() { return _hoSoTTHCCong.getDiaChiThuongTruNguoiNhanKQId(); }
1
4c648123d525c4fe845e4e85abf1aeff
456d95893a5edd7cdd23854c7593bb3e
Returns the IP address of the multicast group.
class Group implements ReplyCodeServer public String getMulticastIp(){ return this.groupAddr.getHostAddress(); }
1
3ed892f8340034417ffe034e3b9144b2
bbe84ae7b500e8e3afc868eb93f5c54f
a basic check for all enemies, if the player leaves the isTrigger collider then the enemy has "lost sight of the player"
{ if (collision.tag == "Enemy") { if (attacking_Enemy == null) { attacking_Enemy = collision.GetComponent<Enemy>(); } else { if (!enemies_InTrigger.Contains(collision.GetComponent<Enemy>())) {...
0
415ce5031715b67e12821fd2573eaec5
4fb9b760cafffcae5b28f96fb432b7bb
The length of the Moscow Ring Road (MKAD) is 109 kilometers. Biker Vasya starts from the zero kilometer of MKAD and drives with a speed of V kilometers per hour. On which mark will he stop after T hours?
{ var names = Console.ReadLine().Split(' ').Select(x => x.Trim()).ToList(); var zones = Console.ReadLine().Split(' ').Select(x => Decimal.Parse(x.Trim())).ToList(); var checkpoints = Console.ReadLine().Split(' ').Select(x => int.Parse(x.Trim())).ToList(); FuelCons...
0
39437196c55c0fdcec164fa4c2c85b54
573854dda5f008665a1859af274fc144
Check if the given attribute is valid (has no errors)
class Validate extends \Smile\ScopedEav\Controller\Adminhtml\AbstractAttribute public function execute() { $response = $this->dataObjectFactory->create(); $response->setError(false); $response = $this->checkAttributeCode($response); return $this->resultJsonFactory->create()->setJsonD...
1
7bd2044e8cf78d7ebeccf587cce0e24f
c91870fda9f0bb1c7063c27bb9a0f1b0
Notifies LaunchKey as to whether the user was logged in/out.
public void loginChange(boolean loggedIn);
1
28cd097ec1a0dfd8bcc666afae882046
36d6b26c0fbb8c4e9802871430e63ace
No match was found for the current request, so we want to stop using this autocluster.
void ResourceRequestList::noMatchFound() { resource_request_count = 0; if ( current_autocluster < 0 ) { return; } if ( m_num_to_fetch > 1 ) { m_rejected_auto_clusters.insert( current_autocluster ); } }
1
880a7ef818838b3ddfcea9ff3c9af4ac
db4a05c6d3f71cd81a0357ee3fb68f08
Faz com que o inimigo persiga um alvo
{ transform.position = Vector2.MoveTowards(transform.position, alvo, velocidade * Time.deltaTime); if (Vector2.Distance(transform.position,alvo) < 0.2f) { Destroy(this.gameObject); } }
1
d5eae23ba4469ef955b3ff5d42b98edd
99e07ac60d36ab323b1aec9022c81e49
скрыть модалку успешного заказа
elem = document.querySelector('.confirm-button'); elem.style.display = 'none'; elem = document.querySelector('.success'); elem.style.display = 'block'; }
0
5776db34a5568b641cf8afdf1c0e7279
050cccae99fa25d1258a21820c4cca62
Shift the data to the right
def shift_right(input_array): for i in range(9, 0, -1): input_array[i] = input_array[i-1] input_array[0] = 0 return input_array
1
22de31edb76f5d83fe1632562de64c49
9207fab69671c2166878f28db908c49d
Get the point/edge index within the given polygon that is close to the given point Returns (-1, -1) if none is close enough Returns (i, i) if the point with index i is closed Returns (i, i+1) if the edge from points i to i+1 is closest
this Polygon3f self, float toleranceInDegrees = 0.1f) { if (toleranceInDegrees < 0) throw new ArgumentOutOfRangeException(); var threshold = Conversion.RadiansFromDegrees(toleranceInDegrees).Cos(); var edges = self.GetEdgeArray(); edges.Apply(e => ...
0
4a2c22f5a74650d94810a1710ae9b20b
efe1f30c203936a5ed6451e0d24c7934
根据id删除余额
@RequestMapping("/fundsData/delete/{id}") ResultDto<Integer> deleteById(@PathVariable("id") long id) throws Exception;
1
598704b61119f7d717d54297dd3fc8c7
c917b0bf64ae6456dcc97bd070f8dc8a
默认sn为None,不指定设备序列号时,默认使用第一个设备
dev = device() print(dev.serialno) if dev.serialno == sn: return True
0
df26d5eef8a33bff39c7d5168d119dc8
54d6b8082277be302cdcd17a75bffa91
Sets whether or not the Selenium WebDriver will have performance logging turned on. <p> By default, WebDriver performance logging is turned off. </p> required, such as requests sent and received.
public void setPerformanceReportOn(boolean performanceReportOn);
1
72fc2f6ebcfc53d1c9df69dd7995fce8
26d83603225deae94de63c5998fafb3b
This function Checks if a given channel is available or usable or unavailable based on the time lapse since the last radar time stamp.
wl_max = self.sensors[0].wl0 * (1 + (self.t_max - self.sensors[0].t0) * self.sensors[0].st) wl_min = self.sensors[0].wl0 * (1 + (self.t_min - self.sensors[0].t0) * self.sensors[0].st) ret_value = False if min(wl_min, wl_max) <= wl_pm <= max(wl_min, wl_max): ret_value = True ...
0
61bf60475d3394e916a89c5f7fbd181c
854ed2620a7e86db65f292116bc51abb
进入审核列表时,自动显示最近的十条未审核记录。
namespace QX.Controllers public class DesktopController : Controller public ActionResult WaitAuditList() { return new EmptyResult(); }
0
d7c7e6d86415ffffa971708ac0fe12dc
05c3544352f047f195a70e688008c585
Creation of the matrix representation of the rectangle
matrix, count = [], 0 for l in range(2*hauteur+1) : ligne = [] if l%2==0 : ligne = [-1 for c in range(2*largeur+1)] else : for c in range(2*largeur+1) : if c%2==0 : ligne.append(-1) else : li...
1
8c89faf48bade36f0a95ac62d93ca65e
9d5b9113912545cc3e7a32f5a9ff1b44
读入一个点对
{ input >> coor.x1 >> coor.y1 >> coor.x2 >> coor.y2; return input; }
1
28959e6766e15cecd6c38bdbc58ae860
8927bb5adf3db3996461b437c67517cf
1. Listar números del 1 al 100.
int main(int argc, const char * argv[]) { int i = 1; while(i <= 100) { printf("%d ",i); i++; } return 0; }
1
895b3313f6312ae02069d0dad9f4d5a6
df37d3a69468bf349b60f18b28e4e9a5
获得需要进行减法计算的明细ID
@Component public class ExpenseControlService extends GenericService implements java.io.Serializable public List getAllItemIds(String delIds){ String sql = "select t.expenseaccountitemid from T_CC_EXPENSEACCOUNTITEM t where t.expenseaccountid="+delIds; List allItemId = genericDao.executeSql(sql); return allItemI...
1
e329e9bd6cb3fd8184f4af83e3c94896
d84000ebd7d177db3c90a1e5a24390cb
Infer whether a mean or proportion test is being performed
{ BOOL retval = TRUE; switch (meanType) { case EXPONENTIAL_MEAN: _exponentialMean.reset(); retval = TRUE; break; case ARITHMETIC_MEAN: _arithmeticMean.reset(); retval = TRUE; break; default: retval = FALSE; } return retval; }
0
52f85115d200135c80beb1a076b56308
3c928b88278fb7b019a25bec9f207b00
新增数据,返回新增数据的id(存一个带primaryKey的对象到localStorage中)
export class DataBase add(data) { let storeName = this.storeName; let openRequest = this.indexedDB.open(this.dbName, this.dbVersion); let id = this.genaratorKey(); let temp = Object.assign({ id: id }, data); return new Promise(resolve => { openRequest.onsuccess = e => { let d...
0
1de5e98a03fee6f8fd8525e2ff19dfb7
748c3bbffafa8ec6dcef3905db4b5e7f
删除全部设备
@Service("DeviceServiceImpl") public class DeviceServiceImpl implements DeviceService{ public void deleteAll(String[] USER_IDS)throws Exception{ dao.delete("DeviceMapper.deleteAll", USER_IDS); }
1
7e10153f75273314ae8f391fcce79af5
22c8d73e3874a89680ca2a9302939fca
Gets the "Understand" attribute
QName getMustUnderstandAttributeName();
0
79246ccc900566a2e29248a5d0638026
e97e6c10b8cfb703a3156fc4033ad672
Runs the program :D
namespace Gamanet_002 class Program static void Main(string[] args) { run(); }
1
d4097c49eaf154af5eca81d5a1b6d960
8c9739d1188abeaf25cc8e36e48ecfff
Initialize the mutation
class MutationBitRipple def initialize dummy=nil @random = Kernel @codon = CodonMod.new end
1
bc1c750ad93c9facf88ea87b28c7c88d
8f0716f2d5c79251fdd65fbb8b382a12
Get This field is used to return the data ID parameter passed in when the video moderation API is called for easier data identification and management.
public class CreateVideoModerationTaskRequest extends AbstractModel{ public String getSeed() { return this.Seed; }
1
17e284513067e24a8c5e86a95cdd0230
3fb0e807f831777ac19da1e5fa963d16
Method to change visibility of dropdown lists.
class _InformationCenter extends Component chgDropDownVisble() { this.setState({ dropdownVisible: !this.state.dropdownVisible }); }
1
7244d31ea952d5ec75795b73b5197eb5
5578185d41bcc6b2742507d1e8dd68a5
将图片上传到图库
void uploadPic(String path);
1
efb3b280384b320dd211afe3257fbfa0
a79d04d51677e0ccaa8eb743958792ea
获取当前时间(格式:yyMMddHHmmss)
public class DateUtil public static String getCurrentTime() { DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); return dateFormat.format(new Date()); }
1
ce33cd8bf6cd75f7b5c7383557cc5061
e697d9f105c522eb7d1d8a0339bee91a
Modifiersopt : Modifiers | empty
def p_variable_modifiers_non_empty(p): p[0] = p[1]
0
7c156a0b0e593b6520b8d1bb14e0c90f
57f4d7c843abd93771d31ca0275074c6
Create an instance of a web crawler.
class Crawler(object): def __init__(self): self._session = Session()
1