query_id
string
corpus_id
string
query
string
code
string
label
int64
b7760a663bbe84392052c4c4a21f6b61
30bcba7682fcfc40723db23e65354db3
updates segment status and modification time details
public class OverviewController public void setSegmentInformation( SegmentationWorker segmentationResults ) { Platform.runLater(() -> { numberOfSegments.setText(Long.toString(segmentationResults.getSegmentCount())); totalSegmentLength.setText(Long.toString(segmentationResults...
0
24907824df1538dd49a273be135d6c72
870ef3988ef50e2de43ab0d91481a1f8
加密长考照片文件
public JsonResult UploadImg3() { string returnurl = string.Empty; string returnurl2 = string.Empty; string msg = string.Empty; string tag = "0"; NameValueCollection nvc = System.Web.HttpContext.Current.Request.Form; HttpFileCollecti...
0
be64b5b508d81c43c88d3a6e6b6eb00c
3dc00a20da6c2dbea48cc71453553eb5
Encrypt / decrypt tuple attributes from a TupleTableSlot.
void par_tunpack(StringInfoData buf, TupleTableSlot *slot) { int i; int natts; TupleDesc typeinfo; ExecClearTuple(slot); buf.cursor = 0; typeinfo = slot->tts_tupleDescriptor; natts = typeinfo->natts; int16 *typlen = (int *)palloc(natts * sizeof(int16)); bool *typbyval = (bool *)palloc(natts * sizeof(bool)); f...
0
0b178124e9ac3e84e28b69efbde19a05
bcc8cc4a55d39dc397f4dc985d428877
Retrieve a frame and store the contents into an internal buffer.
int read_frame() { struct v4l2_buffer buf; unsigned int i; CLEAR(buf); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; buf.memory = V4L2_MEMORY_MMAP; if(xioctl(fd, VIDIOC_DQBUF, &buf) == -1) { switch(errno) { case EAGAIN: return 0; case EIO: default: errno_exit("mmap"); } } assert(buf.index <...
1
c83f7eb026b12cc4dabee6d9a3184ba8
231921b1b32b9b1192d8de20a3d29700
Rotate vector v by angle a (rad).
Point rotate(const Point &v, double theta) { return Point(v.x * cos(theta) - v.y * sin(theta), v.x * sin(theta) + v.y * cos(theta)); }
1
739b99bb78faabe51b3b1c78af2ecfa5
dab49d9c886db228b524a6bdd4fb1cf2
<p> Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using <a href="https://docs.aws.amazon.com/inspector/v2/AP...
java.util.concurrent.Future<AssociateMemberResult> associateMemberAsync(AssociateMemberRequest associateMemberRequest, com.amazonaws.handlers.AsyncHandler<AssociateMemberRequest, AssociateMemberResult> asyncHandler);
1
229028812a97530bcdff90fc1002ce30
bc55cfceea8d8e18d08e79ec31eb5f45
13) List out all duplicate elements in an array
int i,j; int unique[size]; for ( i = 0; i < size; i++ ) { int found = 0; for ( j = 0; j < size; j++ ) { if (inputArray[i] == unique[j]) found = 1; } if (found == 0){ unique[i] = inputArray[i]; printf("%i, ", inputArray[i]); } } }
0
78c33c4abf7ce7dbf347ed5a1e6b24bd
9cfa8befa2880ab3dfb93b47784d6367
显示“灵歌推荐”窗体
namespace 聆听 public partial class mainForm : Form public void showLrc() { timer4.Enabled = true; }
0
2dea98cd4eab787fb690822298baef2b
9e1ca82f656891455d491152d6642e3d
玩家按键信息传递给服务器
{ RoVInput my_input; my_input.type = (int)PacketSfEvent; my_input.event = event; ENetPacket *packet = enet_packet_create(&my_input, sizeof(RoVInput), ENET_PACKET_FLAG_RELIABLE); enet_peer_send(m_server, 0, packet); }
1
87f231dc1934c6c5fb39662f16a9bee5
22ac30c0c01375ba769513836ddf7623
Delete check not found message.
user_id = self.request.META.get('HTTP_IDREGISTER') query_set = self.get_queryset() deleted_at = utc_now() MessageCheck.objects.filter( user_id=user_id, message__in=[message for message in query_set] ).update(deleted_at=deleted_at) query_set.filter(...
0
db2aa7f54223f0761210538d01ab89a6
507fa440252198b0c67d36195031c485
Add a new seasonal event
class AddSeasons implements ShouldQueue public function __construct() { }
0
d5f216085f03fa77948d49f316f5046d
4353cabd988cca8f87e87cc96efc71cf
ESC[J:清除光标右下屏所有字符,光标不动。
void vt100_erase_screen() { char buf[] = {0x1B,'[','2','J','\0'}; USART_transmit_block(buf); }
1
7363e50a58069f5feb3914993704f75c
212f19bc0dcda394cad8c2d2bd894c00
Oracle:
ora_stats = ( "bytes received via SQL*Net from client", "bytes sent via SQL*Net to client", "consistent gets", "enqueue waits", "execute count", "leaf node splits", "logons cumulative", "parse count (total)", "parse count (hard)", "phys...
1
9cb5e5a4d687aea5d7a4b3dc442742df
61f827edbd02d945c98919b50232d257
Gets the file name of the policy engine for deployment on the engine service.
class FileZip(colony.System): def get_engine_name(self): return ENGINE_NAME
0
44be5b12955a77244b074ed0ad2e484d
4a3422cef4d549a540bc71700d3f99a8
Return the ManagedIncidents as an Array.
public synchronized IncidentListType getListOfIncidents() { IncidentListType response = IncidentListType.Factory.newInstance(); List<Incident> incidents = incidentDAO.findAll(); if (incidents != null && incidents.size() > 0) { List<IncidentInfoType> infoList = new ArrayList<Incid...
1
8e7d03dfab1a55e090116b4e2f049761
a460ae746b97bd22a3bd3a4bd2e65ca0
! @brief A happy send case with tls sockets number of bytes that TLS_Send returned
send_tls_message(int socketno, void *msg, int msg_len) { int n = 0; n = write(socketno, msg, (size_t) msg_len); if (n < 0){ return ERR_FAILURE; }else{ return ERR_OK; } }
0
ca5e2eece4004563bc99ec9453e120ee
b8f6dae692161e0a521acfc4bbcfe5a5
获取我买过的物品
{ if (arRequest('u_id')) : $uid = arRequest('u_id'); else : $uid = arModule('Lib.User')->getUid(); endif; if ($uid) : $myItems = arModule('Lib.Item')->myItems($uid); if ($myItems) : $this->showJson($myItems); ...
1
95340b279655f70cf7dda6a993a8b555
72ff98879567374b9a0026f06f32ace1
G2-HASH-TABLE-CLEAR
void cl_block (void) { cl_hash ( (count_int) hsize ); free_ent = ClearCode + 2; clear_flg = 1; output( (code_int)ClearCode ); }
1
b79503a4093a17f603a506543a3fcc2c
974bb5c0d47e653727c8ff4eec60a9c9
Gets configuration as supplied by the user using this form. This configuration will be later used by a tracking system.
namespace HP.ScalableTest.Plugin.RegusKiosk [ToolboxItem(false)] public partial class RegusKioskConfigurationControl : UserControl, IPluginConfigurationControl public PluginConfigurationData GetConfiguration() { RegusKioskActivityData _activityData = new RegusKioskActivityData() ...
1
79477d327660f471d46b324f4fe745e8
4619d7eb09c295659edd553fe38b0491
处理来自内部的请求
public class SmartHttpServer private class ClientWorker implements Runnable, IDispatcher public void internalDispatchRequest(String path, boolean directCall) throws Exception { Path rootPath = documentRoot.toAbsolutePath().normalize(); Path requestedFile = rootPath.resolve(path.toString().substring(1)); if (p...
1
238b2588740bce5ab507d8a5e8984797
91a42d8e8e671fe82744bed198607bb1
Return the length of the specified vehicle.
class TaxiAPI: def get_length(): return random.randint(5, 50)
0
df764ce7c02f95837b5c00202999d02e
38e9c3b12aeae18d5af18bb41b244c1a
elimina un conto in base ad un predicato fornito al metodo
public class LoanController public static void deleteuser (UserModel elem)throws SQLException { try { Connection connect = DBConnector.getConnection(); String query = ""; query = "DELETE FROM Pret WHERE RefContact = \"" + elem.getRefContact() + "\""; Statement stmt = connect.createStatement(); stmt.exe...
0
7acf552e6ae59f88a3997aca0d5b4a9c
5efaf37cc5d7cbb4ed329fbc3e4f8193
角度轉換為duty cycle
class ServoMotor: def angle_to_duty_cy(theta_radian): return (theta_radian * 180 / pi) / 18
1
45314aec49cc5a891390a71634732a47
edad7369716808ce1d51cae7ec5f2def
Test creating lesson missing required parameters.
{ $this->login(); $lecture = factory(Lecture::class)->make(); $this->json('post', 'lectures', array_merge($lecture->toArray(), [ 'subject_id' => 'foo' ])); $this->seeError('validation_failed', Response::HTTP_UNPROCESSABLE_ENTITY); }
1
66c5b6f8f506d433129752a2ecf05606
cac453c186e6ee098b8a73c5fe56823e
Get products imported.
{ $start = $this->_importSession['ImportProducts']['done']; if($this->_importSession['ImportProducts']['done'] == 0) { $query = "SELECT COUNT(productId) FROM [|PREFIX|]CubeCart_inventory"; $result = $GLOBALS['CUBECART_DB']->Query($query); $this->_importSession['ImportProducts']['count'] = $GLOBALS['CUBECA...
1
53d17fe2b0d7dd38b0ed3a95fd1ac4da
fd169f6b521b2fd5947b6032aef348c7
Test too many args given throws error
class testsForConsole(unittest.TestCase): def test_quit_too_many_args(self): self.assertEqual(self.hbnb.do_quit("arg"), True)
0
a0aae6beab7a08b151bf6af135ed960e
d5e6e24051bc477abd50fc5e19c2c913
(dependent on the given tags).
public void tagsIn(final Collection<FileObjAPI> files, final Collection<TagObjAPI> tags, final ProgressHandle progressHandle) { progressHandle.switchToDeterminate(files.size() * tags.size()); coreEMLkp.getEntityManager().getTransaction().begin(); int progressWorkUnits = 0; for (TagObjAPI t : tags) { for (Fi...
1
f2c1c129cf60b59be6485e4e8df1c1be
d487a414165371aff02016e701e17747
将前台yyyy-MM-dd HH:mm:ss或yyyy-MM-dd 转成 yyyyMMddHHmmss 或yyyyMMdd
public class DateUtil public static String strConvertTime(String date, boolean isTime) throws SyException { String tmpDate = ""; tmpDate = date.substring(0, 4) + "-" + date.substring(4, 6) + "-" + date.substring(6, 8); if (isTime) { if (date.length() >= 17) { tmpDate = tmpDate + " " + date.substring(9, 11)...
0
7d95617c49cef0648235b52d5867e172
cfc817b95bdefcb821822adbc582b5f6
applies filters to highlight rows
if row.Result == 'ok': return ['background-color: #33FF9F'] * 4 elif row.Result == 'no data': return ['background-color: #E56868'] * 4 else: return ['background-color: white'] * 4
1
1192500e567f962334e35ab53fa67001
83ed434338a1dc4a369a546f9ad73386
Récupération de l'identifiant de l'intervention en cours
class InterventionDetail public function getId() { return $this->id; }
1
d89083e05cf1d03466144479821e319c
c72078d9ca38995668b5b7586d4396ca
Determine if item is child of existing cart item
class OrderItemProcessor extends DataObject private function isChildProduct(): bool { if (isset($this->parentLineItem) && $this->parentLineItem->getId() === $this->productItem->getParentItemId() ) { return true; } return false; }
1
61bd5ceee419f5b1c9cc6f0e1184e6f6
77eadd462f0519d99d39ae265ac8f7ee
檢查session中是否有登錄信息,如果有獲取對應數據的uname值
class LoginController extends Controller public function sessionCheck(){ session_start(); if( $_SESSION['isLogin']==1){ $back=array("data"=>$_SESSION['userName']); }else{ $back=array("data"=>"未登陆"); } $this->ajaxReturn($back); }
1
775fd8acee39b5ade016c3207ae393a6
96bc5e8dbb3d7d25ed9e7eacfc37e80b
Find double defines in two blocks
for (Map.Entry<String, Collection<IASTDeclarator>> e : tree.getDefinitions().entrySet()) { if (e.getValue().size() >= 2) { duplicatedDefinitions.addAll(e.getValue()); } else if (e.getValue().size() == 1) { DeclarationTree supertree = tr...
1
aeec1e11afcd84af717a13ba8cab0386
179691be7a99a4e4dafb55fdc83435a7
Exits the control panel.
void StartPanel::onExitButton(wxCommandEvent& event) { GetParent()->Close(true); }
1
24b40a2e60d26a7eeab07c5bc67d9936
bbefd88a284c6a6be9b35c66070598de
Returns a ``float`` of the percentage of possessions that ended in a steal by the opponent. Percentage ranges from 0-100.
class Team: def offensive_rebound_percentage(self): return self._offensive_rebound_percentage
0
acd045bbf73748c6227799c502933639
fdf3a92ad745ad6318a2708ae3478332
Ensure can make request on configured {@link HttpServer}.
public void serverConfiguration() throws IOException { initJadlerUsing(new JettyStubHttpServer()); try { onRequest().respond().withStatus(EXPECTED_STATUS); assertExpectedStatus(); } finally { closeJadler(); } }
1
7c5cb4deaa8cc49526c0efef521bd9d0
eef7402073d59b2921a7f922700e6a2e
pubkey_authentication_module constructor.
PAMBasicAuthenticatorStandAlone::PAMBasicAuthenticatorStandAlone() { PEG_METHOD_ENTER(TRC_AUTHENTICATION, "PAMBasicAuthenticatorStandAlone::PAMBasicAuthenticatorStandAlone()"); #if defined(PEGASUS_HAS_SIGNALS) _pid = -1; #endif _createPAMStandalone(); SignalHandler::ignore(PEGASUS_SIGPIPE); ...
0
ec14509dd44dd67c1e497d9329b10b36
8a95a1e76fde1ff8d5950bb52614c4d3
将左子树的所有节点转移到root的右节点上。 先找到最右最大的节点,然后依次向上回溯,找到次大的节点即pre,放在root的右节点。
class thread_tree_node(tree_node): def post_threading(root, pre): if root is None: return else: thread_tree_node.post_threading(root.left, pre) thread_tree_node.post_threading(root.right, pre) pre.next = root root.pre = pre pre = ro...
0
0e0477b2001cda0201f3257c2b8ae6dd
dd9c49c374756f7d8f0e4435e37446f5
GET /profiles/me
class Api::ProfilesController def show respond_with current_user, :api_template => :angular end
1
2dd8a75ba34a60a74be7bb231bef2ae8
1a976a3fa9b13d168a96d6c1509c3d4b
获取收藏的餐品列表
@GET("usershoucanggoodsshow.php") Observable<Results<ArrayList<UserCollectionBean>>> getGoodsCollection();
1
fdae0d3d6fdb497a1718a5c55efe7158
86d8587be3c5db8b316e9119fb8a3588
设置Toast的显示位置在屏幕的中央
mParams = new WindowManager.LayoutParams(); mParams.gravity = Gravity.TOP | Gravity.LEFT; mParams.x = 0; mParams.y = 100; mParams.type = WindowManager.LayoutParams.TYPE_TOAST; mParams.format = PixelFormat.RGBA_8888; mParams.flags = WindowManager.LayoutParams.FLAG_...
0
00a59880db1443ae30c35a508dad08c9
5ebe050d5d2fc729d09e194d2d276273
Поиск клиента по имени его питомца
public class Clinic public Client findClientsByPetName(final String name){ Client findClient = new Client(); for (Client cl:clients ) { if(cl.getPetName().equalsIgnoreCase(name)) { findClient = cl; ...
1
e6224afe99bf15ca1209b665b05ae148
374f195bede3decb9a70a9238096114f
A substitute SMTP connection for use during test sessions. The test connection stores email messages in a dummy outbox, rather than sending them out on the wire.
self.smtp = SMTP_SSL(email_server) self.smtp.ehlo(email_server) self.email_from_addr = email_from_addr self.smtp.login(self.email_from_addr, password) self.email_to_addr = []
0
be4d0b05a875e0a8d5a131edfec2c286
468031f0a4876df93899f2019f054240
기본상태인 경우 => 액티브로
public class Mob1_1act : MonoBehaviour void stateSetting(){ col.enabled = true; rigid.gravityScale = 8; transform.position = new Vector3(state.spawnX, state.spawnY, 0); state.hp = state.maxHp = 30; state.stunTime = 0; state.ignoreKnockback = false; state.isDead = fals...
1
167e281c8ac01c06cb884063e995f2b4
d2314397ac913e12785bea9797c58b8b
通过str(通常为DFA的输出字符串)构造TCTHelper对象
{ if(root!=NULL||constant_str.size()==0) return false; this->constant_str=constant_str; initialize(); scan_all_surffix(); return true; }
1
d52761f1d7753eb0b42aa41a5db16736
17211f78da8da3b7bb8da8c54dbf199c
Test encode empty error array.
class EncodeSimpleObjectsTest extends BaseTestCase public function testEncodeEmptyIterator() { $encoder = Encoder::instance([ Author::class => AuthorSchema::class, ]); $actual = $encoder->encodeData(new \ArrayIterator([])); $expected = <<<EOL { "data":...
0
700b9256099c3239d5205b16e97dfae0
1b414f1bcf7c848b5e649a310d957d34
\ <player>: Remove baninfo on ipdb for given player
class ChatManager: def banip(self, ip): success = self._aaa.banip(ip) if success: logging.info("ip banned: {}".format(ip)) self._purgeUsers([u for u in self._users if u.ip == ip]) return success
0
2805fdaf51977988b52dfefac1beaf0c
546af06c0a9befa671260c20d64e6931
计算该用户在本站的排名
class RankListRenderer _findMyrank() { if (this._mOpenid) { for (let index = 0; index < this._mGameDatas.length; index++) { if (this._mGameDatas[index].openid == this._mOpenid) { this._mMyRank = index + 1; break; } }...
1
4dedfa75b81396b737b20e7bbc309016
b8d8f2ef102af1d046421c9b0b339875
Moves the arm all the way to position zero
class MoveDorna: def zero(self): self.robot.move({"movement": 0, "path": "joint", "joint": [0, 0, 0, 0, 0]})
1
16c4425486c0febb67fdf2c69d66f40e
9ee0da15129baca40d631f3b9551c6d3
Returns Vue View plugin options An array of plugin labels keyed by id
class TrackerPluginManager extends DefaultPluginManager public function getDefinitionLabels() { $options = array(); foreach ($this->getDefinitions() as $plugin_id => $plugin_definition) { $options[$plugin_id] = String::checkPlain($plugin_definition['label']); } return $options; }
1
3b65dd4a51036cae418cadc05241f294
d44b3b906a688123b45b92e6567f29dc
查询指定频道下可用的广告位 频道ID为空时,查询所有 频道ID
Map<String, Object> param = Maps.newHashMapWithExpectedSize(1); param.put("adzoneId", adzoneId); return list(param); }
0
e424f714f3be4078cdca007f25595625
6a5f3c88fb64187a6652c0dba2499bc9
Function that writes list of search sessions to pickle file
def write_to_output_file(SortedSessions,fo): for item in SortedSessions: fo.write((item.__str__())+'\n') print(item)
0
ed38e0ea85bd400cedaacddab33c508b
dab4df2eac3ce18beba834e3a3961b38
DELETE /goups/:id : delete the "id" goup.
function deleteGroup({ id, ...data } = {}) { let toPathGroup = pathToRegexp.compile(restUrl_publish+'/api/digital_books/groups/:id') return request_delete(toPathGroup({ id }), data) }
1
adc7ce932a803eb11adda66a6c2c8996
fee2dbd35eee9d08b2e2c8643de05cab
냉장고 재료 추가하기
this.getFood(sn).setEa(this.getFood(sn).getEa() + addea); Sales s = new Sales(useTime, "재입고", this.getFood(sn).getinprice() * addea); saleslist.add(s); this.serialization(); }
1
75bd69e9a8d33157e7992d853997c442
b5d50e3a72684db49f172c332b13cd04
在基准内容后面添加文本内容
public class ExtFunction public void appendContent(String appendContent){ content = content + appendContent; }
1
4bc59a749adeb5051f29c0a476115877
0361336478b4b92cb36d7aa6421fd250
Verify that all nodes can be listed from the store 1. Run sqlite migrations 2. Create DieselAdminServiceStore 3. Create a circuit and nodes 4. Add circuit and nodes to store 5. Fetch circuit from store 6. List all nodes from the store
fn test_list_nodes() { let pool = create_connection_pool_and_migrate(); let store = DieselAdminServiceStore::new(pool); let circuit = create_circuit("WBKLF-BBBBB", CircuitStatus::Active); let nodes = create_nodes(); store .add_circuit(circuit.clone(), nodes) ...
1
88b1270641940e3f566bcbae86414156
f9526f773ec43d0e76e969eb159f08e6
Loads the features for all featurized frames. Returns: an `num_frames x dim` array of features
def featurize_all(filenames, featurizer, topology, chunk=1000, stride=1): data = [] indices = [] fns = [] feat_name = [] for file in filenames: kwargs = {} if file.endswith('.h5') else {'top': topology} count = 0 for t in md.iterload(file, chunk=chunk, stride=stride, **kwargs...
1
27a7243f0c9d6d00177a87bdf2f4a374
1f53c37375c0aaaaae4a44680cd76c0e
Wait until all clients are connected.
private IEnumerator waitUntilAllClientsDisconnect() { while (playerCount != 1) { yield return null; } networkManager.StopHost(); yield break; }
0
77bfb57237765d16313f45a8af13c801
c897604d40029c8c99f1781b2d501a8d
设置定时器,将未及时发送验证的连接关闭
namespace DAL public class ModbusTcpClient : IDisposable public void CloseCheckAlive() { timerCheck.Stop(); timerCheck.Dispose(); }
0
840e9ef9a98b9d19118a42c0165fc795
05607baad5913477b986db16eca52b28
予約情報の取得(予約Noから個別で取得)
public class ReserveDao public ReserveDto getData(String id) { ReserveDto dto=null; Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; try { conn = new DbcpBean().getConn(); String sql = "SELECT num, member_id, dog_num, service," + " to_char(checkin, 'yyyy-mm-dd') check...
0
1e8738b6b90a248d018392af4fd69688
003cca235bbec2562a41048a6c2cce6c
Create a navigation view controller.
class Navbar(object): def __init__(self, controller: object) -> None: self.view = controller.view
0
384f6c049056cb50b6c25adbfa762ddc
5e907b1150d86cd994d15db740c5bce7
Edit a lamination
if($pcbID == -1) $pcb = $this->pcbService->getItem($part->getPCBID()); else { $pcb = $this->pcbService->getItem($pcbID); $part->setPCBID($pcb); } $system = $this->systemService->getItem($pcb->getSystemID()); $part->setLam($lambda); $pcb->setSu...
1
5f166040f15034a19499da0cccd90279
41a013466df7d7b90b8e7f8abc3a2190
GetDefaultAK 获取默认的 ak
return &akvClient{ clientID: clientID, tenantID: tenantID, clientSecret: clientSecret, vaultName: vaultName, } }
0
53b059438e9fc24dd5084055de8df616
48fd602b3e2e6bb8d1180669ea0d7cba
Returns the meta object for the reference list '{@link org.eclipselabs.simplegt.benchmarks.MutexB.Process#getRequest <em>Request</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EDataType getRequests();
0
f5a432b78dcc8e24378c0008a0891ddd
3d2093e9bcc822af7dd1483597a66b5d
删除该作者所有博客
$blog = new BlogModel(); $userBlogs = $blog->readUser($userId); foreach($userBlogs as $key=>$value){ $flag = $this->deleteCol($value["collection"]); if(!$flag) return false; } return $blog->deleteUser($userId); }
1
883591d20201f04fa289b3b36e50a7f3
a6ab289a6432a74dbbf90a7cc262e317
Raises the <see cref="SchedulerTimeOut"/> event.
var handler = SchedulerTimeOut; if (handler != null) { handler(this, new SchedulerEventArgs(scheduler, scheduleElapsed)); } }
1
404813b0f2f782c204c40eb15c99e4ed
f7eb11e5809b000bfccf5c1c877f362d
現在ログインユーザがデフォルトユーザであるかどうか
{ if (_default == null) { return false; } else { return _default; } }
0
421db886c5dd33d3a6389b726f5b0dae
20f1449470285b5c6a9bb145e0105081
设置异常类型(1. java/ios崩溃 2. native崩溃 3.ANR 4.自定义异常 5.卡顿) 参数示例:<pre>1</pre> 此参数必填
@Table(name = "alc_refund") public class AlcRefund public void setBustype(String bustype) { this.bustype = bustype == null ? null : bustype.trim(); }
0
45008a796ce246f29ca71df6d6cf2888
a99c6e929faac49f01b8109b6590df49
(Available in 1.123.1+) The type of the CMK.
class EncryptionKeyDetailsResponse(dict): def kek_type(self) -> Optional[str]: return pulumi.get(self, "kek_type")
1
f1d65c40f2d9fbc0239aba92af4bff5b
3105ea7692d562f01b2803aec05a661e
Edit a background on an On Demand page
namespace VimeoOpenApi.Api public partial class OnDemandBackgroundsApi : IOnDemandBackgroundsApi public async System.Threading.Tasks.Task<Picture> CreateVodBackgroundAsync (decimal ondemandId) { VimeoOpenApi.Client.ApiResponse<Picture> localVarResponse = await CreateVodBackgroundAsyncWithHttpIn...
0
0ac033d9ce5d6b43200d3fb5909853db
b0a0a261f87f3b2cba1a2eb13781cb25
Summary: Adds the specified System.ComponentModel.Component to the System.ComponentModel.Container and assigns it a name. Parameters: component: The component to add. name: The unique, case-insensitive name to assign to the component.-or- null, which leaves the component unnamed. Exceptions: T:System.ArgumentNullExc...
public virtual void Add(IComponent? component, string? name) { lock (_syncObj) { if (component == null) { return; } ISite? site = component.Site; if (site != null && site.Container...
1
0118126bd7b6b89af94c04aecd4a95be
5616068fa539bdcd88ccb7654ba922c1
adjusted to confirm to the latest.
AnaJet::jetetmiss_calibrate( const CONF::ConfType& conf , const boost::shared_ptr<const AnaJet>& jet , const unsigned long& event_number , const int& jet_number , const double& mu , const int& npv , const bool& is_mc , const bool& calibrate, const bool& smear) { assert( is_mc || !smear...
1
335fd7e7fe5fd3b3a794cade2f7997f2
1995c69134b18ba41549a75ad822364d
Performs the currently built action.
public class DecisionTree public void Run() { if (currentAction != null) currentAction(); }
1
9336e8d479c1719a525700759683d61d
ffc5d871e89e84bf3f6d2805d8f98571
Скрывает тень под ресурсом
namespace Minigame1 public class Resource : MonoBehaviour public void HideShadow() { if (shadowTransform != null) shadowTransform.gameObject.SetActive(false); }
1
f0399ce80d6f6cea92e6fe7832998b48
da767fb18f3fee09bc4ffd01f1bdf07f
Handles all user inputs. Returns boolean "done
self._show() returnCode = False while True: self._update() key = self._window.getch() if key in [curses.KEY_ENTER, ord('\n')]: for button in self._buttons: if (button.mode == button._selected and ...
1
ad7ded460575de7233df306b882f8ba7
6315f8428d9188412d6707a75076a070
得到所有 每日任务
class Open_FarmModel extends PluginModel public function getAllTask() { global $_W; global $_GPC; $currentTime = date('Y-m-d H:i:s'); $field = 'id,title'; $sql = ' SELECT ' . $field . ' FROM ' . tablename('ewei_shop_task_list') . (' WHERE `uniacid` = ' . $_W['uniacid'] . ' AND `starttime` <= "' . $currentTim...
1
50ae1b7cef2fd2669885990e44aae531
1544adc62b23f1c74775a170ffc511bc
交易关闭接口线程
namespace SaveBaseInfo public partial class MainWindow : Form public void ExecuteMarketThread() { string value = ""; while (isSave) { try { value = marketBlockingCollection.Take(); NetInfo ni = new Ne...
0
5e7a5742a2f5112b70257bdd06c7df9c
1aababa67b7b8823b5013319c5f4c340
2D Fourier Derivative
func dft2d(x [][]complex128) (X [][]complex128) { N0 := len(x) N1 := len(x[0]) X = make([][]complex128, N0) for l0 := 0; l0 < N0; l0++ { X[l0] = make([]complex128, N1) for l1 := 0; l1 < N1; l1++ { for k0 := 0; k0 < N0; k0++ { for k1 := 0; k1 < N1; k1++ { a := 2.0 * math.Pi * float64(k0*l0) / float64...
0
29c8b08071df08b45d0f93d2898a47f4
96e07de7b6ab81db758c7c92179357bb
Komparator porównujący numery pracowników
{ if ($a['number'] == $b['number']) { return 0; } return ($a['number'] < $b['number']) ? -1 : 1; }
1
a41e2c5a6086c035e5c445a5d420e7c1
e7c9441f8420de855eee2f1b1eb8ab81
返回 职务参数列表
{ int iTotalRecord = 0; var list = Dao.GetDutyList(param, ref iTotalRecord); return list.EHECDAsPagedString(iTotalRecord); }
1
7b7835f3bf9caf04bc52c28976e44013
557f70792f8f2e1de3fcd5910354c157
測試設定domain可用的幣別
{ $client = $this->createClient(); $params = array( 'currencies' => array() ); $client->request('PUT', '/api/domain/3/currency', $params); $json = $client->getResponse()->getContent(); $output = json_decode($json, true); $this->assertEquals('error'...
1
5c837a4d913d887767168ebab7da8c6c
f4ce1e61283c6b50f8c6747b43f8ca92
Shows raw filters box and fills it with the current user filters
var user = "test_user"; var filter_name = ""; var xml = '<xml version="1.0">' + '<user>' + user + '</user>' + '<parameter>' + filter_name + '</parameter>' + '<user_parameter>more</user_parameter>' + '</xml>'; var request = $.ajax({ type: "POST", url: "model/reporting/get_filters.php", ...
1
599f32de3de3b3cbbe7fc769f57fa959
72986a850a590d39ca41ba2a2b4dd34b
取得資料夾中存有超過指定數目檔案的資料夾名稱列舉
public class NgAsset public static string[] GetFolderList(string strDir, string inclusiveName, string exclusiveName, int nMinArrayCount, out int nFindFolder) { #if UNITY_WEBPLAYER Debug.LogError("In WEB_PLAYER mode, you cannot run the FXMaker."); Debug.Break(); nFindFolder = 0; return null; #else if (strDir[...
0
bba2747f0471c188508cccac9119a619
ed645fea54b4a262d09de2fbb2eee3d4
获取查询数据,返回字典格式
namespace HIS_ThatFee.Winform.ViewForm public partial class FrmThatFeeCount : BaseFormBusiness, IFrmThatFeeCount private Dictionary<string, object> GetDictionary() { string currentUserName = (InvokeController("this") as AbstractController).LoginUserInfo.EmpName; Dictionary<string, ob...
1
1c313bbadb9f5fecb871651e53e28174
3f9b35d4188e3b1a9865a8afe62c456c
Read Ramp Status
{ uint8_t sret; uint16_t _data = ((uint16_t)RA8876_SPI_STATUSREAD<<8 | 0xFF); sret = (uint8_t)hal_spi_write16((uint16_t)_data); return (sret); }
0
e27a1d59f29997c0ef137e2298ca39e4
c59c5c320a2967bbdad8ecc379a52ab8
Adds an effect to a pane to highlight it for the user The pane that the highlight effect will be applied to
{ if (!this.internalHighlight.Contains(part)) { this.internalHighlight.Add(part); Program.AddDebugLog("Adding Highlight Color (" + (VisualUi.UiSettings.HighlightRed / 255f) + ", " + (VisualUi.UiSettings.HighlightGreen / 255f) + ", " + (VisualUi.UiSettings....
1
e7d33ae0d45faff01f6c1191c3dfe1f4
4ea6f29d5e0946c2cc0f180a7e25df8d
Send plot config to plot
class LuxDataFrame(pd.DataFrame): def set_plot_config(self,config_func:typing.Callable): self.plot_config = config_func
1
b80fa9a4c9af2e574206e09e4482d07d
b5f87057534eb4790e8f25fb8f066202
Remap a block of memory.
kmem_remap_pages(object, offset, start, end, protection) register vm_object_t object; register vm_offset_t offset; register vm_offset_t start, end; vm_prot_t protection; { pmap_pageable(kernel_pmap, start, end, FALSE); while (start < end) { register vm_page_t mem; vm_object_lock(object); if ((mem ...
1
7cf37786c896be5c614126c8587e05d9
8c7b54a64d4a1acb724314a2c091180c
Headline starting with the category like Breaking, Important or Feature
class Business: def get_headline(self, data, slug): data = list(filter(lambda a: any(map(lambda t: t['slug'] == slug , a['tags'])), data)) result = Card(data[0]) return result
0
f53effed8172884182ce6a8b005604c3
ad8b5155acb26bec9169f102f66ada74
发布合伙信息
namespace Blowing.MoveHouse.WebPoint.Controllers public class MvhInfoController : Controller [HttpPost] public ContentResult PublishMvhInfoPost( string name,string mobile, short isNeedHelpBj, decimal costStart, decimal costEnd, string decription) { int resultInt = 0; string u...
1
69e5ac7114023f01c41590abc33fda07
5134627d2ae6e94e63280f5a96e545f3
Loads all the objects into the map tables.
public class WorldMap private void loadMapObjects() { loadMapObjectsOfType("box2D"); loadMapObjectsOfType("spawn-passenger"); loadMapObjectsOfType("spawn-taxi"); loadMapObjectsOfType("destination-point"); loadMapObjectsOfType("powerups"); }
1
f109dace6b342ae0a05b894387efec36
a032dbabd0c10c713855758a6a923faa
Returns swLon
@Entity @Table(name="P_DEPARTMENT") public class Department implements java.io.Serializable @Column(name="LON",nullable=true,precision=15, scale=0) public Double getLon() { return lon; }
0
cad4ff46ec7bf7a276b791feb0b3237b
fa9d325f368f324f6e212e8f86f7d45b
Generate all platforms from bot definitions
crawler = getCrawler(); Map<String, Map<String, TiviStructure>> tiviGames = new HashMap<>(); platformsBindingMapEntries.forEach(e -> { Map<String, TiviStructure> data = new HashMap<>(); try { data = loadTiviGames(e.getKey(), false).stream().collect(Collect...
0
3856b90dae8371212419fa30e1118a46
af15bd332bc7ee37dca6f25778d24d6e
Enter a parse tree produced by clipsparser#rule_property.
def p_rule(p): p[0] = ast.RuleNode(p[1],p[3],p[5])
0
d98f687afc2ce02409245f3b17231ae1
b916592b3a0c58cd172f9c5696c22ea2
specifies which file data is read from
class ReadCSV: def __init__(self, choice): self.choice = choice
0
d12303a14492b51a277bfe6b33a71fb9
6ebe20c6eb52e0c3eccc978baeca8d9d
Test Replacing - Overwriting Nothing
def test_replace(): dict1 = { 'key1': 'key1', 'key7': None, 'dict2': { 'key2': 'key2', 'key4': None, 'dict3': { 'key5': 'key5', 'key6': None } } } new_dict = _replace(dict1, None, 'None') asse...
1
e32d4805e3f9ab3d4abb60abb5de0672
ad1443a22f863fe1ccb519ae1b189cbc
承認完了メールを送信する
class UserManage extends ManagePluginBase private function sendMailApproved($user) { $configs = Configs::where('category', 'general') ->orWhere(function ($query) use ($user) { $query->where('category', 'user_register') ->where('additional1', $user->columns_set...
1
5b4f66c09d6db90009ba5c4f6ce1da1e
5e211b7efbf9e77d0b4247e77b05e6ca
получить код основной валюты для пользователя
abstract public class MyPreference static public String getMainCurrency(Context context ) { String mainCurrency = getPreference(context, context.getString(R.string.PREF_MainCurrency)); if (mainCurrency == null) mainCurrency = context.getString(R.string.DefaultMainCurrency); return mainCurrency; }
1
402c21a3fa34b110d7373d5539eed2c2
a3a9bd6b85fe9a9d4c7e73089ab096f1
Return descriptor slot usage masks from the given shader info.
get_variable_io_mask(nir_variable *var, gl_shader_stage stage) { if (var->data.location < 0) return 0; unsigned location = var->data.patch ? var->data.location - VARYING_SLOT_PATCH0 : var->data.location; assert(var->data.mode == nir_var_shader_in || var->data.mode == nir_var_shader_out ||...
1
ac0a75d29e9b4e7c37dd4d94b28ece40
95841c2d095deab9c8f9b98405920fe3
getPathAlias()
main() getPath(self) { if (!self.parent) { return ""; } return `${self.parent.getPath(self.parent)}/${self.name}`; }
0