query_id
string
corpus_id
string
query
string
code
string
label
int64
2b542fdaf987d50c76bc49daf7359265
5ff65169b71c3b3136f769fd4ab63867
Clear env vars to ensure that previously set values are not affecting the next test
class BotHelpersTests(unittest.TestCase): def tearDown(self): os.environ.pop('HANISH_TEST_FOO') os.environ.pop('HANISH_TEST_PATH')
1
e13b7425dc1d48d6d61778f351240175
63e1f91290dec536ccc5c557c61afbfa
为当前的应用程序释放鼠标捕获
Input::~Input() { if(m_MouseCaptured) ReleaseCapture(); }
1
feebdf7ec127ca476d2f4ac571a80961
3d31966db7f15de11faaa1c6ae342900
Sets this to a rotation matrix. The formula comes from the <a href="http://www.j3d.org/matrix_faq/matrfaq_latest.html">Matrix and Quaternion FAQ</a>.
public IQuaternion setFromMatrix(IMatrix mat);
1
6ed7f9a321ebbf2781c43b8202be5fbb
d3f25898d5186225c802c0b1071bb34d
modalEl에 프로젝트 모달 템플릿 삽입 함수
document.querySelector(".modal").classList.remove("hidden"); document.getElementById("modal-overlay").classList.remove("hidden"); let proName = selectedPro.value; document .querySelectorAll(".modal-pro-name") .forEach(el => (el.innerHTML = proName)); }
0
e224fe735b2f27c6eb06a7ff6fa2b307
4f61615b28f09dace59a3a08bb897e55
声明从库数据源 Bean实例
public class SecondaryDataSourceConfig @Primary @Bean(name = "secondaryDataSource") public DruidDataSource dataSource() throws Exception{ DruidDataSource dataSource = new DruidDataSource(); dataSource.setDriverClassName(properties.getDriverClassName()); dataSource.setUrl(properties.getUrl()); ...
1
0349c09a601a70d5f2f22d2c3c9231ac
fefe22e6a3a3a2b4255531075c6fa99c
Helper function used for demonstrating the strong components found from the dependency analysis by implmenting Tarjan's Algorithm for finding strongly connected components
{ ArrayList<ArrayList<Integer>> stronglyConnectedComponents = new ArrayList<ArrayList<Integer>>(); Stack<Integer> workStack = new Stack<Integer>(); int overallIndex = 0; int[] sccIndex = new int[vertices.size()]; int[] lowLink = new int[vertices.size()]; for (int i = ...
1
5f88a6ce4d279b5f87cbce1cf4d4d710
d3738b369f593740e4fe2b5e6723de17
Called by <code>Display</code> to notify an <code>ItemLF</code> in current <code>FormLF</code> of a change in its peer state. Return false since no notification is needed.
public boolean relationChanged(MagneticGrip gripSource, GraphicComponent target) { return false; }
1
c8f4b9c9791c2ed9a20beaef80c5cac5
2aef14120bfa7f1865f1099e521dcb8f
Checks if the package exists in the workbench
XPathFactory xPathfactory = XPathFactory.newInstance(); XPath xpath = xPathfactory.newXPath(); XPathExpression expr; Object result1; try { expr = xpath.compile("//value[@name='name']"); result1 = expr.evaluate(doc, XPathConstants.NODESET); } catch (XPathExpressionException e1) { throw new Generator...
0
14a187a1e354604f00a9dcb03314b4b7
6ba9f660002bdd9ba9377912b48f208a
Returns the text to be displayed on lcd. Returns None if there is nothing to be displayed.
display_value = [display for (value, display) in display_choices if value.lower() == (data or '').lower()] if display_value: return display_value[0] return None
1
65ce8aa5adcb0df4ac0140cd9ccec3b3
50b15d3d60aae47da0ab35e755645eb4
Shifts sample index values circularly by speficied amount
public class BodyGrid : MonoBehaviour{ private bool[] RotateVals(bool[] vals, int steps) { if(vals == null || vals.Length == 0) { return null; } bool[] retVal = new bool[vals.Length]; for(int i = 0; i < vals.Length; i++) { int outIndex = i + st...
1
a914c2a15f0a171e8c7b0500b1d6e3fb
62b8d2f2c156be974c4b31b8fac0d433
Position and set size of brewsListView
{ measureDataListView.removeAllViews(); CardView row_item; for(int i = 0; i < displayableMeasureData.size(); i++) { row_item = (CardView) getLayoutInflater().inflate(R.layout.list_item_history, null); ImageView image = (ImageView) row_item.findViewById(R.id.me...
0
2d9fe8a30b0372511bc247e5915d40a2
701633f2df412a7809a9132358740719
─── FUNCTION : GET TOTAL ACCESSIBILITY AREA ────────────────────────────────────
class Common public function getTotalAllocationWithAdjustmentByArea($area_row_id = 0, $budget_year = 0, $start_date = 0, $end_date = 0) { $budget_year = !empty($budget_year) ? $budget_year : date('Y'); $absolute_allocation = 0; if (!empty($start_date) && !empty($end_date)) { if ($are...
0
4f7db797c5a396d149aa785eb38d7580
32bef32785bd700ac7019969f1d3b51f
Start the preview service in air gapped mode.
@NonNull CompletableFuture<Void> startPreview();
0
ebb3d3be4c558b047c7f9f25109542ef
7e708d1c2d6d39a97152a1b994bc144b
删除专题查询结果
$condition = array(); $condition['special_id'] = array('in', $_POST['special_id']); $special_model=Model("special"); $result=$special_model->drop($condition); if($result){ $this->log("专题删除成功", 1); showMessage("专题删除成功", self::LINK_SPECIAL); }else { ...
1
eaca8ea968234e93717d5c3dd4601842
e58c2cc32650b7e0338fe886ea3cfe06
Validation method for <see cref="PrivateEndpointConnectionProxiesCreateOrUpdate" /> method. Call this like the actual call, but you will get validation events back.
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub public partial class WebPubSub internal async global::System.Threading.Tasks.Task WebPubSubPrivateEndpointConnectionsGet_Validate(string privateEndpointConnectionName, string subscriptionId, string resourceGroupName, string resourceName, Microsoft.Azure.PowerSh...
0
1df53efbd79f3188a534db605bddf3a9
e8421e63899f255edb7aafdfec7ded19
Возвращает вычисленный хэш в виде шестнадцатеричной строки.
[JsonObject(MemberSerialization = MemberSerialization.OptIn)] public sealed class Sequence : IEquatable<Sequence>, IToCodeString public string GetHashString() => GetHashCode().ToString("X");
1
eec47d5e3f9378e39af5a6d02d9a0021
52b64beeedd7428c84c5ce90eca3e01e
Create a form from an object.
public function createForm($entity = null);
1
642d7fa93f38d74ce2b510d996bde416
bedf45e4ac73feb36d0545312139c142
<p> Sets the epsilon value to be used with this validator. </p>
public class ContactResolver public void setEpsilon(double velocityEpsilon, double positionEpsilon) { this.velocityEpsilon = velocityEpsilon; this.positionEpsilon = positionEpsilon; }
1
1b713a9eb0c5e6c787a00989265ca7db
e50bcf7a04849dac879f259a71d1944d
对solr返回结构进行解析
@Service public class SearchServiceImpl private SearchResponseVo parseResult(SearchResponse response){ SearchResponseVo responseVo = new SearchResponseVo(); SearchHits hits = response.getHits(); responseVo.setTotal(hits.getTotalHits()); SearchHit[] hitsHits = hits.getHits(); List...
1
4ed40cb4a811cca7000c7529b5323a8c
1f5bf2af1c860d6e46fccedfe17c39c7
Set the minimum length that tracks need to have in order to be written to disk
{ if (track_length != _track_length) { track_length = _track_length; } }
0
0e992d29d385da205fbb1b01832aea17
3a3e077460c02fcc1e4e69ef6ed27768
根据权限点id获取角色列表
@Component("pmsRoleBiz") public class PmsRoleBiz public List<PmsRole> listByActionId(Long actionId) { return pmsRoleDao.listByActionId(actionId); }
1
5e5be13dd7c98450bd30b0d96ce2f2a6
c9f01de65eba3477c2c3126cca785019
If true, the sequence error, if found, is reported. Returns: bool
class TestConfig(Base): def ReportSequenceError(self): return self._get_attribute('reportSequenceError')
1
1d1ada50ebc9b8dd9b14e1d880abee88
59b2d982a8c5e79a85a5f55259177660
Deletes all the Product objects in the system.
@Repository("productDao") public class ProductDaoImpl public void deleteAllProducts() { String hql = "delete from Product"; Query query=this.sessionFactory.getCurrentSession().createQuery(hql); query.executeUpdate(); }
1
8f61d6e103ab7fef5a1155a06d267893
4901b3ad2d2d9e5d8bc6677e7ee8b0ad
List a site's credit payments Keyword Arguments
class credittradesGet(AuditableMixin, mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView): def get(self, request, *args, **kwargs): return self.list(request, *args, **kwargs)
1
8236e249559b8a306b9baecaa913aae3
5e270f4570d01f80998db8156ddd204a
Simple helper function to get the newly created inv_send row
class SheetOps: def sendentry(row): log.append_row(row)
0
15995410c8c9f9d6f3c4b4e8b0b0ac9e
1e1e0a07a02b6e439c1c8ac47c6e3220
根据券号获取券实例和券定义详情
VoucherManager getDetail(String JZPZH);
1
8183feeee881b303310be8d60447a733
2a83b0cf440b323c5f3919093367c963
Обработчик прерываний ОС
{ this.Trace("Handling IRQ~" + irq); switch (irq) { case Globals.INTERRUPT_REQUEST_TIMER: this.TimerISR(); break; case Globals.INTERRUPT_REQUEST_KEYBOARD: Globals.m_KrnKe...
1
69103d0a70ad8e322e11ccbcfdcd271f
0c9051ed27399819aecb653647f81d1a
Builds the circular linked list
void LinkCircle::Initialize(int n) { if(head) { delete head; head = tail = temp = NULL; } for(int i = 1; i <= n; i++) { Append(i); } }
1
c3b7209a09691c68cc7ef3cdef5a608d
c8e99a35af6c687ad7963280e5a91b39
Inserts a new node at the end of the list in O(1)
class LinkedList: def append(self, n): pass
1
25354c04be41fef1fad4bc8f6785e5fd
55ca95a21fcc46f7e51763366f0e0f89
This API endpoint uses the [User-Interactive Authentication API](https://matrix.org/docs/spec/client_server/r0.5.0#user-interactive-authentication-api). Deletes the given devices, and invalidates any access token associated with them. Requires auth**: Yes.
InternalResponse deleteDevicesFromAction(ActionRequest actionRequest);
0
ff53a4658d01f415a3174b90ede80ed8
e4245527fc933a1438b3b8eed167a2cc
初始化本类配置 null时将自动获取配置目录下的配置文件,文件名称依据本类的类常量CONF_NAME string类型时表示类的配置文件的名称,配置文件存放于预定义目录下,使用PHP的设置 array类型时表示类的惯例配置,此时将不读取用户配置,该配置可以是缓存中的(提高执行效率)
if(! $config){ return true; } $this->_sFile = 'Excel测试'; if(isset($config['filename'])){ $this->_sFile = $config['filename']; } if(isset($config['data'])){ $this->_aData = $config['data']; ...
0
3acfee57eb72d59bf7dde46233b04c1c
3cf12dbcf9d4e2e8ed2066fde48545c9
Removes all the clip types where id = &#63; from the database.
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public com.vportal.portlet.vclip.model.ClipType getClipType( java.lang.String id) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException;
0
dc709e823272315730342b020b01b07a
43de14399f2b9f8e38d1a90f5219a317
@brief 查找(获取)映射表子项的映射句柄。 <pre> 一般情况下,不建议使用该接口,若需要获取映射句柄, 可使用 maptbl_lock()/maptbl_unlock() 完成该功能。 </pre>
size_t file_offset; void* p; p = mmfor_x2p(mmforhp, x); return mmfor_lock_record_p_read(mmforhp,p); }
0
985ecfb73af9bfba9de5ba6c32faeec0
191018a1cf5894aadffb0ad4398b6b59
Initializes the internal density grid
self.rho = np.zeros(self.n) indices_in_grid = (self.pos/self.dx).astype(int) X_sorted = self.X[indices_in_grid] rho_values = (1-(self.pos-X_sorted)/self.dx)/self.dx np.add.at(self.rho,indices_in_grid,rho_values) np.add.at(self.rho,(indices_in_grid+1)%self.n, 1/self.dx - r...
1
830a11649dd78e340f79946e3ef6de94
ca36547065b6393a70f4aa4524bab2f5
根据sku id 列表获取库存列表
public List<SkuOrderStockDTO> getSkuOrderStockDTOListBySkuIds(Collection<Long> skuIdColl);
1
49fbb718d087649035258aca5814d3e9
4ae6af08e5f113a8f0ee8a1a96bc4e71
Initiates an asynchronous operation to acquire the lease on a mutex that governs the exclusive access to a resource.
public void AcquireLock() => AcquireSRWLockExclusive(_value);
0
55f96ea6ffe3ab241982ce4c25e1dbc7
ad69b302ee585937c73fdef1d91607c7
checks if the given piece is valid with its given rotation
if (m_heldPiece->inOriginalPosition() && m_board[tileX][tileY] != 0 && m_board[tileX][tileY]->getType() == ROOK && m_board[tileX][tileY]->getColor() == m_heldPiece->getColor() && m_board[tileX][tileY]->inOriginalPosition() && tileY == m_origTileY) { if (tileX < m_origTileX) { for (int i = m_origTileX; i > tileX...
0
8eb210c349bdb95b20ee8fa813636df0
d64a06e901c256e82d46011e46c6e639
过滤掉 "."和".."
static int filterDot(const struct dirent * dir) { if (strcmp(dir->d_name,".") == 0 || strcmp(dir->d_name, "..") == 0) { return 0; } else { return 1; } }
1
94244e3e9de983d080defa8747131c07
20c0a56b6e41aab89ebc76406afbc8ba
Gets the default billing and shipping addresses
class WC_SC extends WC_Payment_Gateway private function get_order_addresses() { global $woocommerce; $form_params = array(); $addresses = array(); $cart = $woocommerce->cart; if (!empty($this->get_param('scFormData'))) { parse_str($this->get_param('scFormData'), $form_params); } $bfn = $this-...
1
9f7f2a56351cd9f361d59b9c157f98e4
0a7c247af83de5c53cb4d66f1dcded2a
this function prevents purchasing obsolete crew items based on current inventory
{ if (spaceshipCrewButton.interactable == false) { spaceshipCrewButton.interactable = true; } i += 1; if (i >= 8) { i = 1; } while (buyStatusCheckValue[i - 1] == 1) { i += 1; if (i >= 8) ...
0
52ece7b3a271d36db42881ec605d3be8
f9ce951a51255581cb8a9da78ace0315
未签到
@Service public class GxhAttendenceInfoServiceImpl implements GxhAttendenceInfoService @Override public int handleUnSignAttendenceInfo() throws Exception { String onDate = DateFormatUtils.format(Calendar.getInstance(), "yyyy-MM-dd"); List<GxhAttendenceInfo> infoList = attendenceInfoMapper .queryUnSignAtten...
1
cb33eecb8d98111cdf6f2e726d8d8065
7a90d4430c1ac30f7675ff9f06bb61ee
Function that goes through and updates Pixels and recalculates Centroids to make Centroids approach prominent colors
for (int i = 0; i < num_centers; i++) { for (int j = 0; j < dimensions; j++) { centroids[i][j] = matrix.get(i)[j]; } } int i = 0; double[][] cur_centroids; ArrayList<double[]> distance_matrix; while (i < iterations) { distance_matrix = getDistanceMatrix(matrix); cur_centroids = updateCent...
1
7f3b0ac7ec73dc752c7a1e52238bd391
3d47c60e1160c3793f1dbef66e68dd8d
Devuelve el nombre de la película
public String getMovieName();
1
1e075980bd755e0fdfa00b3b3d65cd7b
0a2d7dbba57c73b01522ab66e4545f49
Computes the diffeomorphism applied to a point.
class HyperbolicIsometryUHP(HyperbolicIsometry): def _call_(self, p): return self.codomain().get_point(moebius_transform(self._matrix, p.coordinates()))
1
8c9e2b7696acaeaa9b7aafbf717ca069
ba16d54f1c1a0b6f9119d6f897bd7dd4
设置标准类别的利润率
public class BgProdVO implements Cloneable{ public void setGrossProfit(double rrprice,double vatprice) { if(rrprice>0 && vatprice>0) { BigDecimal rrp = new BigDecimal(rrprice); BigDecimal vatp = new BigDecimal(vatprice); BigDecimal groPro = rrp.subtract(vatp).divide(rrp,2,B...
0
63b84b270da9e9c17c6964ef9975e4c8
4827e654aa791e655c516d6aeb292592
Setzt die Postleitzahl einer Stadt
class pm_standort public function setPostalCode($plz) { $this->i_postalcode = $plz; }
1
76f2154ea8bc527d58f9e93593c6897f
aa3b7dc58d3f21b4a6bfe1ab6184b7c4
Despublicamos una notificación.
$db = new BDConnection(); $resultado = $db->consulta("DELETE FROM notifications WHERE idNoti=\"$idNoti\""); return $resultado; }
1
b352b7228ce0263b14a594ddd51ff2d1
fbbb428a33219a669692447a5dae95d1
funzione per la scelta di registrazione\accesso ad un utente presente nel programma o termine del programma
public class MainActivity extends AppCompatActivity implements OnFragmentInteractionListener{ public void loginRegister(){ dialog = new Dialog(MainActivity.this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.login_dialoge); dialog.show(); f...
1
043cb672686c46ba0ee448753f1c7045
345ff07c6b339d79a00416eaf4da21b7
保存Excel數據到數據庫
{ Microsoft.Office.Interop.Excel.Application excel = null; try { if (this.dgvShowData.Rows.Count <= 1) { MessageBox.Show("沒有可滙出的資料!", "訊息", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; ...
0
3337d4917e4f6aa577dc2392b778df4b
372eb77e25cf0591e7f332bc86963bef
Add primary keys to tables that need them.
export class Table addPrimaryKeys(addedKeys: TablePrimaryKey[]) { addedKeys.forEach(key => this.primaryKeys.push(key)); }
1
f775aa14ae7a6f868e8b9779caf2aeea
656db114ebbceeeedb9e4ab82dcdf430
Checks the presence of sequenceNumber field. This flag can also be bulk-get by {@link #flags()}
abstract boolean hasFlowNumber();
0
8e84e336bd979020f45763026fd1f870
35c4653dcf553a54a8ab9a7bb0fe9e5d
Validates that the distance argument is not requested
class oneGNNAttack(object): def checkDistanceFlag(self, args: ArgumentParser): if args.distance is not None: exit("This attack doesn't requires the distance flag")
1
547f1ec72d40d921dc9ad479e1df4c08
35608ab4619fb6980a12383ee26bd278
Randomly resets the merchants inventory. This simulates a different merchant at each stop
namespace OregonTrailDotNet.Window.Travel.Store public sealed class StoreGenerator private void Reset() { _totalTransactions = new Dictionary<Entities, SimItem>(Vehicle.DefaultInventory); }
0
958cf16cfec0abe196085ed7919cd732
ba361afa52ad2bfc8ba2bbf5eb246ecf
Gets garanty months.
class CrontabJob public function getMonths() { return $this->months; }
0
076c03bd649588872accd9faf574404e
cf9a711eacafbf29f85cb3533f5a5789
Determine equality of plugins using origin to uniquely identify them
public class EKSPlugin implements Plugin @Override public boolean equals(Object o) { if (!(o instanceof Plugin)) { return false; } return this.getOrigin().equals(((Plugin) o).getOrigin()); }
1
d532e5a3fcba5cf2e366c9dd158d4daf
7369b5077727a7a91cdd2963a8708022
<p>Returns property value with all {@code ${propKey}} like references replaced with the value of the relevant property with recursive resolution.</p> <p>The method returns <code>null</code> if the property is not found.</p> the specified key value.
public class PropertyPlaceholderHelper @Nullable String resolvePlaceholder(String placeholderName);
1
868ea8d2767a5148d5a93c03163747df
17a81ff11025928d5746e5b2ea2a07ab
バンドル販売割引
$SQL = DB::update(self::$_table_name); $SQL->value('bid_adjust_flg', 'C_CPA3'); $SQL->where('wabisabi_id', $wabisabi_id) ->where('sum_imp', '>', 0) ->where('sum_cost', '>', 0) ->where('sum_conv', '>', 0) ->where('(sum_cost / sum_conv)', '>', $target_cpa) ->where('(sum_cost / sum_conv)', '<=', $ta...
0
69848b3a4bb07b68b824e9bcbae3bdab
d29b1705731e4346701f2fd116f54454
辅助函数(查看有几人)
self:lazyInit() local count = #self.accountList_ if checkint(userfrom) ~= USER_FROM_UNKOWN then count = 0 for k, v in ipairs(self.accountList_) do if v.userfrom == userfrom then count = count + 1 end end end return count end
1
8e4f5ce9572d759dbf5ff072ee773345
7276d0817532a5f4c5d5c605431cd2f6
判断tomcat是运行在windows上还是Linux上
public final class ServerManager public static boolean isTomcat() { if (IS_TOMCAT != null) { return "true".equals(IS_TOMCAT); } String serverType = getServerType(); if (IServerConfig.TOMCAT_SERVER == serverType) { IS_TOMCAT = "true"; return true; ...
0
35bd3cbff67fd462d47e00e2db2c3bb8
16b20892f94fc1ef7911e6fc093f2cd8
Perform Deadline Monotonic Scheduling
std::map<const char*, Task> DeadlineMonotonic::prioritize(std::map<const char*, Task> tasks) { int max_priority = tasks.size(); for (auto pair : tasks) { m_task_vector.push_back(pair.second); } std::sort(m_task_vector.begin(), m_task_vector.end(), deadlineMonotonicSorter); for (auto elem : m...
1
b2d969d40c483348cb7a80ad15abf0be
042d2800eba671ada563bed27a70db1d
Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position. <p> The text shadow produced does not interact with the properties on view that are responsible for real time shadows, {@link View#getElevation() elevation} and {@link View#getTranslationZ() translationZ}. re...
HasShadow = true; ShadowOffset = offset; ShadowBlurRadius = blurRadius; ShadowColor = color; }
1
a603ee61047121c83a3a51d3c8cd75df
6a4c2ec61985a11b1a378abcdf43959b
round to 3 decimal places
public class Test public static float getFloat3(float f){ return (float)Math.round(f*100)/100; }
0
650e26364d762fb65497198ff65cc531
ab423f5eeba95a877106ca2853c64bf6
Draws the Mandelbrot set
"use strict"; var xmin = -2, xmax = 2; var ymin = -2, ymax = 2; var bail = 100; var context = canvas.getContext("2d"); var canvasData = context.createImageData(canvas.width, canvas.height); for(var i = 0; i < canvas.width; i++) { for(var j = 0; j < canvas.height; j++) { var xy = canvas_to_xy([i,j], xmin, x...
0
6a03c528d1e9619372c57f0a87957e80
e69f24db888caa7b90973fb159c0f183
URLが指すページに付いたはてなスターを表す画像を取得
return try { val document = Jsoup.connect(url).get() document.select("div.content > a")[0].select("img").attr("src") } catch (ex: Exception) { "" } }
0
bb61cfbff4f1f657cddbdb7b27c95ad0
cf5662deec0888eaad0cd468e2ddb4fb
Обращение завершен
public function okruzi();
0
d48407d4d718b1eee622c29f421c6af4
e80878c67dd0b4f1b9b3f02be360803f
sum two same sized matrices
class MatrixMultiply MATRIX add_matrices(MATRIX mat1 , MATRIX mat2) { MATRIX result_mat(mat1.size(), vector<int> (mat1.size(), 0)); for ( int i = 0; i < mat1.size(); i++ ) { for ( int j = 0 ; j < mat1...
1
48aa162ba966f23a94731d074b930089
f126f9fcf2276a5d3cc9652f63fd47b0
Returns periods in the current ones that are not covered by periods passed as arguments. A [====] B [========] C [=====] CURRENT [========================]
{ if (allPeriods == null) throw new ArgumentNullException("allPeriods"); TimePeriodIntersector<TimeRange> periodCombiner = new TimePeriodIntersector<TimeRange>(); return periodCombiner.IntersectPeriods(allPeriods); }
0
dd0cf04e9c77c158baa80463ee457d21
ead21be69e24b2b1d49a403f7f366818
今日开始和结束的时间戳
var timeObj=new Date(),toDay=timeObj.toLocaleString().replace(/\s/,"^").split("^")[0]; var timeStart=toDay+" 00:00:00",timeEnd=toDay+" 23:59:59"; var timeStampStart=Date.parse(timeStart),timeStampEnd=Date.parse(timeEnd); return [timeStampStart,timeStampEnd]; }
1
5dd297bf950d66371cedb48eaf433f79
ef4022f69459f743751654b94771b1db
Returns the meta object for the containment reference '{@link org.xtext.project.browserautomationdsl.domainmodel.FILL#getIdentifier <em>Identifier</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getIdentifier();
1
3adb23db64cac368d46628ba664a5ae1
526828000c7bf6e01ff794729a073525
获取全部数据表的下拉列表
namespace MultipleDbContextDemo.Application IList<DictionaryTypeOutput> GetAllTablesType(string dataBaseName);
1
acc72263277496603ebce1edca787986
c547b938d70d6137bf00fc5f08a67c12
Creates children which will hopefully replace the worst performing tanks
for(int i = 0; i < numberOfCritters(wave)/3; i ++){ listOfCritters.add(new DroidCritter(critterLevel(wave))); } for(int i = 0; i < numberOfCritters(wave)/3; i ++){ listOfCritters.add(new AirCritter(critterLevel(wave))); } for(int i = 0; i < numberOfCritters(wave)/3; i ++){ listOfCritters.add(new Troo...
0
a075569844e4a086bf5770f6c3a92320
bc8968bb7a83ab220ff0909b80558b3f
FUNCTION GC2236MIPI_SetShutter DESCRIPTION This function set e-shutter of GC2236MIPI to change exposure time. PARAMETERS iShutter : exposured lines RETURNS None GLOBALS AFFECTED
void SP0838_sub_Set_Shutter(kal_uint16 iShutter) { }
0
de7f2e7bb4adfc8253321be8d940a1be
38b6042da664fe0ab1babd0217a2751f
Increasingly thickens the stroke.
namespace PolygonEditor public partial class Form1 : Form private void button12_Click(object sender, EventArgs e) { if(thickness > 1) { thickness--; } }
0
e0e4cbfe28cc1b0be9013c8c0f86746b
0fef0d2a1f7c92af81afdcad832df038
Define the function to convert coordinates into appropriate format for bokeh
val=coord[0] if isinstance(val,float) or isinstance(val,int): x=coord[0]*11.67151-750.54 y=(-0.107987882)*coord[1]**2-6.92431742*coord[1]+706.272492 return [x,y] elif isinstance(val,list): outVal=[] for v in coord: x=v[0]*11.67151-750.54 y=(-0.107987882)*v[1]**2-6.92431742*v[1]+706.272492 ...
1
87b1451cd89fa75e974f2f3cb22a3a42
9fc90546f2363aac8907c768e20fa231
Run a XER test case and assert it parses correctly
e = parse_item(get_path('test1', 'test_diff_1'), ExecOpTest) pprint(e) e = parse_collection(get_path('test1'), ExecOpTest) pprint(e) for case_name, case in e.items(): assert exec_op(case.x, case.y, case.op) == case.expected_result
1
07191438c9df7ab37eb44053b4655a24
741302821ced1731401d50550638c609
prepares to execute the SHA256 hash operation
{ method = NID_sha256; if(SHA256_Init(&ctx) != 1) { THROW_IOEXCEPTION("Failed to initialize SHA256 digest calculator: %s", ERR_reason_error_string(ERR_get_error())); } }
1
bd3eb9025bd2f2259334fef29078aa0a
47fc103d00f0ec440d4ad8db68072ec7
Gets the latest finish time of the activity.
public class Stats public Date getFinishTime() { return finishTime; }
1
d7cb9ed10f8f842ca24ad36273bfc876
1a032bc65c4a7aad59331be7d23e5651
Dans le cas de d'une attaque qui en attaque une autre, permet de savoir laquelle des deux doit l'emporter
class Room: def getAdversarySocketId(self, socketId): if self.ids[1] == socketId: return self.ids[2] elif self.ids[2] == socketId: return self.ids[1] else: return None
0
2d337549f5d4eb105390e471d37900da
61ef96a2f29d6bb2f5c5281d69c2e8c4
returns mouse input parameters
{ POINT P = ___MOUSE_POSITION; SDL_Event event; while (SDL_PollEvent(&event)) { if (event.type == SDL_QUIT) exit(0); if (event.type == SDL_KEYDOWN) { switch (event.key.keysym.sym) { case SDLK_ESCAPE : exit(0); default : break; } } if (event.type == SDL_MOUSEMOTION) { P.x...
1
56c7984032bdc4525e2ca3ff2063326f
73c245fa799728e22547b633719cb654
获取今日天气文件路径
public class DateUtil public static String getPathOfDate() { return DateUtil.get( "yyyy" + File.separator + "MM" + File.separator + "dd" + File.separator, null ); }
0
757cc08c60818611b28920dbcc390ff7
970e49b5903f9e1d25082d98697935c1
Matches a null value
class Container_Utilities_Assert_AssertionChainAdaptor public function nullOr() { if (null === $this->value) { $this->alwaysValid = true; } return $this; }
1
6a63e7dea14ea4951fabc35c682ca3b3
2fabf46cce5ca534710b34c172992aca
Returns the break position of the line given by _lineIndex_, which is one past the last character on the line.
class HighlightContext(HighlightContextBase): def get_line_character_index(self): return self.line_character_index
0
91d38e5750b3f35083094b7fa5e79549
35996f86903d47e674a745e8ec2ab837
Parses to see if this is an empty tag element. Do a manual parse to avoid overhead of XmlDocument object
return Content.Contains("<" + tag) && Content.Contains("</" + tag + ">"); }
0
d93c3199341d420cfc469bd534b96d26
4d021a5748bdc19123f62c31d895cacc
加载停用词,以列表方式存放
def load_stop_words(): return [ele.encode('utf8') for ele in nltk.corpus.stopwords.words('english')]
1
b237722dc8f5ffbd6db9ab9e226c6040
427298f3f158ed6e35dbac6213a1f44e
Get value of codedDate.
public class CodedSequenceItem public String getCodeValue() { return Attribute.getSingleStringValueOrEmptyString(list,TagFromName.CodeValue); }
0
0759b8e26bb4f55d3f5f9674d3a91239
06e941d5895cf9bc513b1baa1f9fe822
将Character数组转化为字符型数组
String s = new String(bytes); char [] c = s.toCharArray(); return c; }
0
1287294e5a93d79060dddfc151081e70
9bf8efdcd082e0982a1b450d3961c94e
未開のマスの数を返す
int emptCell(Map m){ int ret = 0; int i; for(i=0;i<16;i++){ if(mapElem(&m, i) == 0) ret++; } return ret; }
1
cff459cf667301af4075d7aa88e5c455
a31e9f8c067f436cc2ad28170637c855
Test method for {@link io.wzw.backend.data.dao.impl.HibernateRoleDAO#selectAll()}.
@RunWith(PowerMockRunner.class) @PrepareForTest({BeanUtil.class,SysConfigUtil.class,NPAdminClient.class}) public class RoleServiceImplTest @Test public void testGetAllRole() { roleServiceImpl.getAllRole(); }
0
8aec3b1b10c89711a2b5108de649e509
83dc897eb1ee0258e20d6e9120909b40
Indica si 2 cançons donades són iguals
public class Playlist @Override public boolean equals(Object other) { if (other == null) return false; if (other == this) return true; if (!(other instanceof Playlist)) return false; Playlist otherPlaylist = (Playlist)other; if (this.nombre == otherPlaylist.nombre && this.numAlbumes == oth...
0
32b7ee63a0c292f33619f04fb3e8f57d
cfeb0766d436f17173f4e3f89eaed25b
Set the menu height.
{ MenuSetWidth(menu, (UINT8)Width); return gControl.SetDimensions( menu, Width-2, Height ); }
0
4075295c326bedd6d6e79dbf73c79a6c
516e7a795e2dc08df27761470391451e
Check if nick is free
public function checkNickName($nickname);
1
5a82d6eb91f1e4c51051f9f785f7a91c
7039eb417e217f5083cc9f1698944be1
Render callback function to the reCaptcha button.
{ return 'var recaptchaCallback_' . $this->_randomString. ' = function() { $(\'button.recaptcha-' . $this->_randomString. ':not(.submit)\').remove(); $(\'button.recaptcha-' . $this->_randomString. '.submit\').removeClass(\'hide\'); $(\'' . $this->formSelector . '\').submit(); }'; }
1
1aaf798760a95b894cdd3946f1b7b2bb
27c84bdb889c4cda602c681219dd9758
移動を停止する
[RequireComponent(typeof(CharacterController))] public sealed class PlayerCharacterMovement : MonoBehaviour public void StopMove() { isMovable = false; }
1
adab13e8539e536292a50baf8b8b733a
19d839b7465daf8b768100659c3d15d6
ブロックに引数を渡して実行
@args = args raise "block must be MethodType" unless (not block) or (block.instance_of? MethodType) @block = block @ret = ret super() end
0
8513f757701b24dbadad3df74e817df5
137fe8b64abe075a7d2a6542fa4ba670
SES
impl<'a> Parser<'a> fn semi(&mut self, a : AST) -> AST { a }
0
ce794eb93654a7a8a2351ebdd9d2a863
c19b9879e9e03e23f5ce93cdc8fc0b82
function called to display the next image by updating the figure.
def animate(i): gs.next_step() fig.suptitle("Fluid Dynamics, Gray-Scott Model\n step:" + str(gs.time)) im.set_data(gs.u_conc) return im,
1
d7fd3d1cc6da361e8557efac4834151c
5bd496d910f7c8cdc084317fef36dac0
Thực hiện thêm bài viết vào csdl
{ $title = $request->get('title'); $slug = $request->get('slug'); $desc = $request->get('description'); $author = ($request->has('author'))?$request->get('author'):NULL; $content = $request->get('content'); $mp3 = $request->file('audio'); $format = 1; ...
1
4021890480d9d8905c56164d7f417dee
27c10d20e99c8d1cf2f6f48f5e846137
历遍m页小说列表,获取其小说url
def all_chapters_url(novel_list): for novel in novel_list: a_novel = ANovel(novel[0], novel[1], novel[2], novel[3], novel[4], novel[5]) a_novel.getChaptersUrl() for chapter in a_novel.Chapters: a_novel.getOneCh...
0
b773f161673f4db2d5309aaefd0929e8
c68547deb381806cae4fb777b896b308
@brief Set day, month and year
{ if (mm < 1 || mm > 12) cout << ("init_day: Invalid month") << endl; if (dd < 1 || dd > 31) cout << ("init_day: Invalid day") << endl; y = yy; m = mm; d = dd; }
1
ad1b2ef450178ec16cce2c9eb42648fe
be8dc3e91c9bf5a8c831758b4b708740
time derivative for sensitivity ODE
terms = react_terms(y) dh1_dt = -terms.sum() dhe4_dt = terms[3] dc12_dt = -terms[0] + terms[3] dc13_dt = -terms[1] + terms[0] dn14_dt = -terms[2] + terms[1] dn15_dt = -terms[3] + terms[2] return np.np.array([dh1_dt,dhe4_dt,dc12_dt,dc13_dt,dn14_dt,dn15_dt])
1