query_id
string
corpus_id
string
query
string
code
string
label
int64
ab49c09ac5ed9864d891853b22fa5d72
fdf88766b4638714de40768a024b60ed
Sets Item Option Value Id. The unique id of the selected value for the item option.
{ foreach ($optionId as $optionIdsOptionIdItem) { if (!is_string($optionIdsOptionIdItem)) { throw new \InvalidArgumentException(sprintf('The OptionId property can only contain items of string, "%s" given', is_object($optionIdsOptionIdItem) ? get_class($optionIdsOptionIdItem) : ge...
1
25e10afd26227500bdf10a6f1cefbee8
348b736178682de7f1ea3a4ea6c16464
P2D_PutText
{ _height = SCREEN_HEIGHT-STATUS_LINE_HEIGHT; uint16_t tempX = _cursorX; uint16_t tempY = _cursorY; uint16_t tempBGColor = _TXTBackColor; uint16_t tempFGColor = _TXTForeColor; uint8_t tempScaleX = _scaleX; uint8_t tempScaleY = _scaleY; uint8_t tempFontWidth = _FNTwidth; uint8_t tempFontHeight = _FNTheight; if...
1
734416894580df36f988bd190f0ba50e
3e9f93ef0c57aa090d78ac99e76c94d2
Returns heat capacity as a function of temperature.
def specific_heat(T): t = T / 1000 if 500 <= T < 1700: a, b, c, d, e = [30.092, 6.832514, 6.793425, -2.53448, 0.082139] elif T == 1700: return 2.7175 elif 1700 < T <= 6000: a, b, c, d, e = [41.96426, 8.622053, -1.49978, 0.098119, -11.1576] else: raise ValueError('Input temperature outside valid domain') r...
1
4d7e980198ef1281231720defca021b9
c43183ac09a815f956f93f55c58daf7e
Testing base shop id getter
{ $identification = new Identification(); $value = '200123'; $identification->setShopperid($value); $this->assertEquals($value, $identification->getShopperId()); }
0
cf1a3666ae5f9dccb27b6e171de78316
088c4efcd88b5dbcddb6b73489b8c6ca
Copys the referenced Roadnetwork
{ base.CopyParameters(source_object); if (source_object != null && source_object is CRoadDistributionCriterion) { CRoadDistributionCriterion source = source_object as CRoadDistributionCriterion; mNumber = source.mNumber; mShortName = source.mShortName; mValueUnit = source.mValueUnit; ...
0
e536f7527270ea9b5bbfda6b0bfdc4e5
9eb9436d1a4d6c72fa408c68e9d6bd71
Convert clean metadata to bloom filter index records.
class KeyFilter: def _reindex_bloom_filter(self): pass
0
073929b484b643c1db88aa9bf6149bdb
a6431407b4ee23e2341070dae3f4477d
論理削除機能
class Model_Delete extends Model public static function set_del_flg($id) { $query = DB::update('tb_term') ->set(array( 'del_flg' => 1,)) ->where('term_id', '=', $id); return $query->execute(); }
1
f3e7f1a913e4834c70c4fcf936f14b56
c5f783a114ce9bfec1afa1886d6baea9
<p>功能:根据父亲id查找特定题型子题</p>
List<ItemClass> findSomeChildClassByFatherId(int fatherId);
1
e10712b13629418c1a656ab7dfe23383
2e2f0874658cf112ebc68afeddbcc041
Sets the size callback for the specified window. <para>This function sets the size callback of the specified window, which is called when the window is resized. The callback is provided with the size, in screen coordinates, of the client area of the window.</para>
namespace Glfw3 public static partial class Glfw public static FrameBufferSizeCallback SetFrameBufferSizeCallback(IntPtr window, FrameBufferSizeCallback callback) { return SetInternalCallback(Internal.SetFrameBufferSizeCallback, callback, window); }
1
ab211cb03ac1e34d6a08be02c31aac40
ad29f0decaf66cae5a94b23251be0ae7
new订单邮件发送
{ $order = M('Ordernew')->where(array('orderno'=>$orderno))->find(); $cleaning = M('OrderCleaning')->where(array('orderno'=>$orderno))->find(); $body = '<div>订单号:'.$orderno.'(金额:<span style="color:red">'.$order['amount'].'元</span>) <br />时间:'.$order['create_time'].'</div>'; $body .= '<div>类型:'.($cleaning['type...
1
c9dde7486a1115c7df3572bbec9f0a81
5db27aa1e8baec739f31fd4da49a2f3d
Returns the meta object for the reference ' {@link com.lvl6.mobsters.domainmodel.player.BeginTaskStagesBuilderInternal#getPlayer <em>Player</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Scene_players_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Scene_players_feature", "_UI_Scene_type"), OMPac...
0
0d41e2ee0d780e4622b18e898df11874
e0da1755472fde81420f2888684fd79e
Displays a form to create a new SuperCategory entity.
class subcategoriacrud extends Controller public function create() { }
0
691d13cc2a64d4b98d70bff698798831
df93b076361729f5ca64fc628f8d20dd
Valida si las fases han terminado y si hay que mostrar el boton de siguiente fase
if (firePositions.size == 0){ Utils.sendMessage("¡Has ganado!",context ) currentState = "won" points += 50 } else if(gameEnded){ currentState = "finished" Utils.sendMessage("¡Se ha terminado el tiempo!",context ) } }
0
f7cc305ec3676dff8fcb596659e83410
d50d9093c1293a29cfeb1bbb8973d0a9
Convert the string to MBCS
{ #if defined(_WIN32) || defined(_WIN64) int uLen = MultiByteToWideChar(CP_ACP, 0, pmb, mLen, NULL, 0); if (uLen <= 0) { return false; } pun.resize(uLen); int nRtn = MultiByteToWideChar(CP_ACP, 0, pmb, mLen, &*pun.begin(), uLen); if (nRtn != uLen) { pun.clear(); return false; } #endif retu...
0
2af5f8f554a146368b3e076c570379f3
98cb7e0ba7a4142f5ededa79224dbf2c
Get/store values such as runtime & peak memory usage
{ $aUsage = array( 'usage'=>'memory_get_usage', 'peak_usage'=>'memory_get_peak_usage' ); foreach ($aUsage as $sKey=>$sFuncName) { if (function_exists($sFuncName)) $this->aData[$sKey] = $sFuncName(); } }
1
3cba17bf521b2114317c8950e46cffaa
a5852790c982f55e42c723735808120f
generates a XYZ formatted file
def write_xyz(file_name, cds, atom_str): with open(file_name, 'w') as f: ...
1
624cc6e3c02148c852922a35c40e7794
10629cc53067ca600587431fed66a318
Add each log in datatable. Text color and badge is based on level.
class IMGT_Logs_List_Table extends WP_List_Table private function _display_rows( $posts, $level = 0 ) { foreach ( $posts as $post ) { $this->log = new IMGT_Log( $post ); $this->single_row( $post, $level ); } $this->log = false; }
0
f1d465843cfa9704a4f02e260a0e1998
17d6180f55462f67e98abbee547aa82e
force the activity component to reset it by removing and adding it again
public abstract class BaseActivity extends AppCompatActivity @Override protected void onNewIntent(Intent intent) { ActivityTaskStack.remove(this); ActivityTaskStack.add(this); super.onNewIntent(intent); }
1
7175e655c14e96c4078a5c27595a02b9
776abedf81adef923540e43fd7768649
@brief Executes an A* algorithm to find the solution to the problem.
{ std::unordered_map<uint64_t, VertexState> visited; std::priority_queue<std::pair<uint64_t, VertexState>, std::vector<std::pair<uint64_t, VertexState>>, VertexComparator> queue; auto initVertex = std::make_pair(initialPosition.first, VertexState(initialPosition.second, calcHeuristics(initialPosition.first)...
1
7c7d93055fa479ab9ab3603dc120df37
d5c1265fafda4c4fcec645fcc67e1740
Test we can remove some links
test_string = "Text <a name=noHyperLink></a> moreText<a href=importantTag></a>" expected_string = "Text <a name=noHyperLink></a> moreText <i>link</i> " actual_string = xml_parser.remove_link_tags(test_string) self.assertEqual(expected_string, actual_string)
1
3066d3447310ac843d0d9ef7fc2951d7
8316b93e14f7a6bbb44c0af2e2be170f
Construct the appropriate deserialiser for this iteration of the service.
public abstract class OData public abstract ODataDeserializer createDeserializer(ContentType contentType) throws DeserializerException;
1
d47811a0a74ad478d955a2effee54376
8ee05a42bf45ce98cac7daf2c4e6d1ea
The method invoked just before the game saves.
namespace AT.Character public class Sheet : AT.Character.Situation.DcProducer, SerializedObject public void AboutToResolveSave(SaveSituation cs) { if (OnAboutToResolveSave != null) { OnAboutToResolveSave (cs); } }
1
72ea34929a24035c4fd4d6d8bf541806
38dc610614f3a0b5676582dca4e4f281
Remove todos os elementos da lista de sócios.
namespace EnveloperUI public partial class ResponsavelForm : Form private void DesmarcarLista() { listaResponsaveis.Items.Clear(); }
1
422d19dcc691c59c6533038ad25081a8
665166bbd19b0ea8e95fcecc602ec960
Function to process the mode transition from static to dhcp
EthClientDHCPConnect(void) { UARTprintf("Inside EthClientDHCPConnect"); if(HWREGBITW(&g_sEnet.ui32Flags, FLAG_DHCP_STARTED) == 0) { HWREGBITW(&g_sEnet.ui32Flags, FLAG_DHCP_STARTED) = 1; } else { lwIPNetworkConfigChange(0, 0, 0, IPADDR_USE_STATIC); lwIPNetworkConfigChange(0, 0, 0, IPADDR_USE_DHCP); UARTpri...
1
3c2c9ed66b437313a6051a6ed4ea98b2
56017de3acea29035efea9923127cd82
Registers the given function to be run when somebody quits the IRC server.
func AddQuitFunc(listener func()) { AddQuitListener(genericQuitListener(listener)) }
1
276316532c94a4d41cf8565b3cf8b70a
fe392ac8a41939120e92f3572422d8c8
Adds the numbers together when moved.
{ numericalScore = numericalScore + _toAdd; scoreText.text = numericalScore.ToString(); }
1
42369e343a31159411d617de7c92c38c
8abf4db63b319f9dc4796ccd59e868db
问题每天热度记录
{ DailyPvModel::firstOrCreate([ 'dated' => date('y-m-d'), 'times' => date('H'), ])->increment('count',1); }
1
37c772dfa35c92675a9cffeed0f2b48e
582a656a3732302b0678232824e1a044
模拟浏览器cookie登录,方式一,知乎网站
browser = webdriver.Chrome( executable_path="C:/Users/a9340/Downloads/chromedriver.exe") browser.get("https://www.zhihu.com/signin") browser.find_element_by_css_selector(".SignFlow-accountInput input[name='username']").send_keys( "934008411@qq.com") browser.find_e...
1
b0b80c79ad2554e25010286967dade75
2cba2eb62f508d0e2e15ef8c5bcc0833
设置技能玩家属性消耗
function setskilllevel(GID, SkillID, Level) SetPlayerObject(GID) return SetSkillLevel(SkillID, Level) end
0
447b50c3ed80a53c8329dc0189402956
847552460e2a4d07b57c3038f1e112d1
Interpret packet data from Nonin Pulse Oximeter
{ char valueX[4], valueY[4], valueZ[4]; xyz3D[0] = 0x00000000; xyz3D[1] = 0x00000000; xyz3D[2] = 0x00000000; if(0x01 == pPacket[2]) bengOpen = 1; if(0x03 == pPacket[2]) bengOpen = 3; if(0x02 == pPacket[2]) bengOpen = 2; if(0x04 == pPacket[2]) bengOpen = 4;...
1
53028470fada3358360d3f3a56f30fd4
4e29b5aca8db8bee3588f4b76cf47112
Returns a commit hash given either a commit hash or commit position.
def extract_commit_hash(resolved_file: Optional[str], commit_hash: Optional[str] = None): if resolved_file is None or commit_hash is not None: return commit_hash resolved_file = str(Path(resolved_file).as_posix()) search = re.search(r"snapshots/([^/]+)/", resolved_file) if search is None: ...
1
cb241eff9681b642d55eed60afc56caf
4b273ca189750cebde1a757a13bef423
A Raspberry Pi has many Day Metrics
class RaspberryPi extends Model public function dayMetrics() { return $this->hasMany('App\Models\DayMetric'); }
1
9e86cf9cb3b27a9dcb90e9932d0fbca2
b24b9430d599cfd980ad4f1979e506b0
handle submit form which updates table info
export default class AssayForm extends React.Component handleFormUpdate(data) { console.log(data); const assay = { ...this.state.assay, ...data }; console.log(assay); this.setState({ assay: assay }) }
0
0a0124b5fc6f0af28fc660da52ecc335
359cc597efb7f23835bc7df01358e8a9
判断目的地址和metric值是否已经存在
assert(f); if (dbFindMetric(id, f, name)) return true; DbMetricInfo info = {}; bool found = false; for (auto && rule : s_rules) { if (regex_search(name.begin(), name.end(), rule.pattern)) { found = true; info.type = rule.type; info.retention = rule...
1
e15a0b9e9cfd0fe251911f027d448ea8
494ce2c79ca5c8e488f9f17c7b409194
Delete Professor by UUID
{ $prof = Professor::where('cpf', $id); if(isset($prof)){ $prof->delete(); } return response('ok',200); }
0
eea40ccb1a6cc59236ff7e6e81dfbf24
8fbfc0932c878b34967eee5b29c829ee
Writes to file when someone does a payment.
$towrite = PHP_EOL . '$payment_data: ' . print_r($payment_data, TRUE); $towrite .= PHP_EOL . '$user_id: ' . print_r($user_id, TRUE); $towrite .= PHP_EOL . '$posted: ' . print_r($posted, TRUE); $fp = fopen('rcp_valid_ipn.txt', 'a'); fwrite($fp, $towrite); fclose($fp); }
1
c2153557f5139799f0469fd58ce3ac18
55ad6e53cca38ab526cb2b05171a7856
获取下个月第一天(yyyy-MM-dd 00:00:00)
var date=new Date(); var currentMonth=date.getMonth(); var nextMonth=++currentMonth; var nextMonthFirstDay=new Date(date.getFullYear(),nextMonth,1); var oneDay=1000*60*60*24; return new Date(nextMonthFirstDay-oneDay); }
0
a689b370ec1af82afd1c5774581136de
7332a68fed353699e36ede4b16bfd1ac
Returns the cached model metadata associated with the given database ID or null if non exist
namespace Tortuga.Chain.DataSources public abstract class DataSource : IDataSource protected abstract IDatabaseMetadataCache OnGetDatabaseMetadata();
0
ad76a1869ffd25d6432feaf1fea2a33f
b88b4ae0befa0c4a0909646da08a508d
移除中文停詞
stop_dict = load_stop("stopwords.txt") result_list = [] for line in text_list: line = line.strip() if not check_contain_chinese(line): continue seg_list = jieba.cut(line, cut_all=False) for word in seg_list: if word in stop_dict: continue else: result_list.append(...
1
6053631c4018d7221d5c781d83727087
2c3d97f42aafb6a00852b4ed9741205f
Decorator to restrict the use of a command. Channel owners are always allowed to use a command.
if not await ctx.bot.is_owner(ctx.author): raise commands.NotOwner("You must own this bot to use Jishaku.") return True
0
ce6c755dc487f48fa621b24609d5e376
19aa0a9c35136f6dcde5ce810074ae47
Predicate matching any export location
exports = settings.get('exports') for key in exports: if re.match(key, url) is not None: return exports[key] return None
1
1934f4cb27dc94bf4c9f56ebf3a658ef
969feae37a0aaf350281cffb876eb262
Append an int16 to the buffer.
union { float fnum; uint32_t inum; } data = { num }; return l_buffer_append_uint32_t(buf, data.inum); }
0
82ceeebe9fc2a370d428b37618ccc067
4efd62da144a29e0f9f17595efdb6709
Get default log file
currentWorkDir, err := os.Getwd() if err != nil { return "", err } return filepath.Join(currentWorkDir, DefaultLogFile), nil }
1
95ffd4acc6a6d2fcf2374299ea5a0abf
347f43ea064ccb184564e16f9329c362
Checks if the wrapped servlet has been annotated or flagged in the deployment descriptor as being able to support asynchronous operations. false otherwise
public boolean isAsyncSupported();
1
be98c6d1f35bc40207b67661014aabbd
9d770daabc25be1d4259f76cc1b2bc7e
Convert mm/s to mm/min
def s2min(time_sec): return time_sec / 60
0
d7b82797ede385646e8ebf448c9b0c60
915e61a03097b465bbcb1fce5220cfb8
Find a matching class for given partial class name.
public class TypeManager public long findClassByName(String name) { Class<?> cls = null; try { cls = Class.forName(name); } catch (ClassNotFoundException ex) { } if (cls == null && !name.contains(".")) { if ("boolean".equals(name)) cls = Boolean.TYPE; if ("byt...
1
0fc0d2d8dd569260d2fcd3c2da4e387a
dcc06f3f5133c1021ad0a89ce6ee6bf3
Convert any vague color description to a hex color
const colNames: { [key: string]: string } = { "black": "000000", "red": "ff0000", "green": "00ff00", "blue": "0000ff", "white": "ffffff" }; if ((!color) || (color.length === 0)) { color = '00000000'; } else { color = color.toLowerCase(); color = colNames[c...
1
c21198fe4ce76c61db9c7d25d726e344
c6a87a8b33d8e3eea7a20c83bbbd9a29
Returns a list with the indel positions of the reference sequence.
def indel_size(row): indel_size = len(row["indel_seq"]) return indel_size
0
3d28f4e66bd0288c605e2aab2f9dc590
9c570d5a7153520b6f6f7394b89c9a90
============================================================ <T>从字符串信息中读取JSON文档。</T> ============================================================
if (jsonObjectAsSingleString==null) { throw (new JArgumentNullException("jsonObjectAsSingleString","Source string can not be null")); } return innerParseString(jsonObjectAsSingleString,null); }
1
2c1832abab646db8618238c376cbd106
cbbd2e90af69f1c6bad1e0a55a6705b7
funzione per ricavare l'ultimo indice dell'array messaggi
int lastIndexOfArray = 0; for (int i = 0; i < arrayForList.length; i++) { if (arrayForList[i] != null) { lastIndexOfArray = i; } } return lastIndexOfArray; }
1
8e3ed637a9d1c1783d6f6645b554ab49
b12d4a1594c1dd6820bf2f159202e88f
Se consulta la BD por los capítulos de una serie.
class BookFileCollection extends AbstractCollection public function findBySerieId($serieId) { return $this->setDataFromArray( $this->getRepository()->findBySerieId($serieId) ); }
1
5b9f44786465ffda061baae8862cd72e
9bbbfd10553aea9d3509470d033eb3a3
@brief A getter function for the team's wins-to-date count.
public class Team public String getWins(){ return wins; }
1
2df613ab6bce7ed3efda0bc40af4195b
18d34ac5ca89ffee80b5245f6f7753b3
Returns the height of the last block stored.
blocks = self.blocks_get_height if blocks["success"] return blocks["height"] else return nil end end
1
84016cbf3b8f09adc97c40af53dbc2b4
28afac08af97a258591638c30b980d9e
Get Insurance Dashboard Data
{ $tenants = Tenants::select(DB::raw('count(*) as no_of_tenants')) ->where('is_deleted', 0) ->get(); $contracts = ContractInfo::select(DB::raw('count(*) as no_of_contracts')) ->where('is_deleted', 0) ...
0
0d9e39bdb1d997bd8069342cf6669b3c
d345c4119dff55e60caa4bc6fc8ab238
Получаем путь при первом обращении и сохраняем его значение
namespace WpfApplication1 public partial class MainWindow : Window private void InitialPath() { tbDirectoryName.Text = Directory.GetCurrentDirectory(); Path = Directory.GetCurrentDirectory(); }
1
c08da54338fe5fb286fd18715abc0d45
e696ad15fcfc26875c164332d2b69c86
Aggiorna la console con la situazione corrente del gioco.
String uitxt = ""; vm.setHpLabel(player.getCurrentHp(),player.getTotHp()); vm.setMoneyCount(player.getMoney()); inventoryStatus="close"; uitxt = (map.getCurrentRoom().getName() + "\n================================================\n" + map.getCurrentRoom().getDesc...
1
4959ee110024f88beda89442f60e6c72
5a3b148c87319f226548f1e46931891e
Loop through node's addresses and make request.
void NetworkSearch::getNetworkAddress(const QByteArrayList &list) foreach (auto info, infoList) { for (int type = 0; type < 2; type++) { sendGetModuleInfoRequest(info.ip, type); } m_seqNumber++; }
1
b8a95e92ccbea0bde3f80c2c2515b461
9fe052ce9cf9dba5be4a7ff3e0ae12dc
Remake all body parts
public class P2ATAI extends SleeperThread implements Runnable public void detectBodyParts(){ ArrayList<BodyPart> partsTemp = sd.getBodyPartList(); for(int i = 0; i < partsTemp.size(); i++){ BodyPart limb = partsTemp.get(i); double bpxp = limb.getLocationX() * Math.cos(- sd.getYaw()) + limb.getLocationY() * M...
1
1276a3ba403173790851df217d5f164e
682bb5dfce77ac5202617f3e47c1f308
根据actiontypeId查询action类型信息
@Slf4j @Service @Transactional(rollbackFor = Exception.class) public class SysActionServiceImpl extends ServiceImpl<SysActionMapper, SysAction> implements ISysActionService @Override public SysAction getAction(Long actionId) { return this.getById(actionId); }
0
7000f4c9b2f55dc8b45262bea389b31d
95d6b6a28e58cd84eb977368ea640100
Entry point for routing tag based data portal operations.
public class HttpPortalController : Controller public class HttpPortalController : ApiController public virtual async Task<HttpResponseMessage> PostAsync(string operation) { var requestData = await Request.Content.ReadAsByteArrayAsync().ConfigureAwait(false); var responseData = await InvokePortal(oper...
1
1236248345f44a41317be4fe0241c783
6d9f5ff517df8919756b022baae77afe
Creates the menu item for quitting the game with click events.
if (openReplay == true) { gameOverMessage.disableNameTextField(); gameOverMessage.saveScoreItem.setDisable(true); } gameOverMessage.saveScoreItem.setOnMouseClicked(evt -> { gameOverMessage.saveScore(playerScore); gameOverMessage.disableNameTextField(); gameOverMessage.saveScore...
0
f3326b5eb89a88f038b996ecb6ae4765
6ccbfd323bbec8ad41074d302d780bcc
计算卷积函数结果
def conv(x, W): return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
1
0961dc5ab6c5afd81267b924a44bd651
e09e6e45b07d3a42dd7d677dc3c79c45
Gets whether a character matches the unreserved production.
protected boolean isReserved(int c) { return (this.isGenericDelimiter(c) || this.isSubDelimiter(c)); }
0
685e0d128734d463b52d4f7a8b78ff79
3b89d90c5c4425417c037965477aa89d
Rechnet das angegebene Simocracy-Datum in einen RL-Monat um
mon--; if(!mon) { mon = 12; year--; } return 32 - new Date(year, mon, 32).getDate(); }
0
8595df1e166b0154f89ef679fb51331f
ce1ec73c3c57ce21dcde6f404f2fe266
Borrar los mensajes de errores cuando ya se ingresaron los datos correctos de la parte de gallos
function borrarMjeError(){ var mjeBlanco=document.getElementsByClassName('mjeBlanco'); for (var i=0; i<mjeBlanco.length; i++){ mjeBlanco[i].innerHTML=''; } }
1
85253cb3b68c4942ad3d90e6e9d5dd36
b2cfa9af6b458edd4b781a7472fa565a
Rotates a point around a 2D center by X degrees
public static partial class Operations [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static (TResult X, TResult Y) RotatePoint2D<T, TResult>(T x, T y, TResult angle) where T : INumber<T> where TResult : IFloatingPointIeee754<TResult> => RotatePoint2D(x, y, TRes...
0
4d4c03c70aea0213780e082be3dee2b2
98d4448152534d3eef572dcaf695aa51
Run a task that publishes messages to subscribers.
class Task: def pub(self, *args, **kw): self.slicer.pub(*args, **kw)
1
e90024f9b62209211af19e7118df9202
ffaefff93033c8a270d2ed19a2480d7f
Normalize parentheses in a query.
query = re.sub(r'(?<=\S)\-', '\-', query) query = query.replace('/', '\\/') return query.replace('^', '').replace('$', '')
0
e0ee1dfd1462b7a9470d2c8a6b6978d3
24164c021616d4ef7b68a423af7c597e
Internal Helper method which converts a Collection into Notation 3 Syntax.
{ $words = explode('.', $dotsNotation); return implode('', array_map(function ($w) { return sprintf('[%s]', $w); }, $words)); }
0
1c8bd2c4d4dd16f6b044d03903b89b54
c4de43fe24cf734575c50158a763f1d5
Sets if the deflater should actually be used otherwise data gets passed unchanged.
ITableExportPopupButtonBuilder setEnableDeflateCompression(boolean enableDeflateCompression);
1
2c8aedbb33ea1c5642fa17601395dd50
0324db39c7500f9abe929b2e92a6931f
Default interval includes/excludes, applied to all aggregators that do not have specific configurations.
int getDefaultInterval();
1
f64c33d0f462906efb012b3bc3d67b76
f8a4843861d6111d400fd590f01b147a
ORIGINAL LINE: public org.maltparser.core.feature.FeatureVector predictExtract(org.maltparser.core.feature.FeatureVector featureVector, org.maltparser.parser.history.action.SingleDecision decision) throws org.maltparser.core.exception.MaltChainedException;
public abstract class ChunkerSVM implements Chunker public String predict(String line, Object model) throws IOException { double v = predictOneLine(line, model); String result = transform(String.valueOf(v)); return result; }
0
d6f11f8b455de6c2cc5dd5664c672a5a
28769cf3a9553c8812b6111e09eb9f5a
Specifies that a hit be considered non-interactive. Optional
class Server(object): def disable(self, hitid): return self.client.update_expiration_for_hit( HITId=hitid, ExpireAt=datetime.utcnow())
0
050ac2bf1a2338effad057b4bcea7c4f
4662b68f287d3776318d0c23d7098ee6
How replies should be sent.
class StatusOptions extends AbstractSource implements SourceInterface, OptionSourceInterface public function getRepliedStatusIds() { return [self::STATUS_REPLIED]; }
0
6e0e2a414b7d006947598f20db6ec258
e7290f1a1577fae1cd2415d89eda9612
Sets the acknowledgment mode.
class ShovelInfo(dict): def ack_mode(self) -> Optional[str]: return pulumi.get(self, "ack_mode")
0
e8b8a720f1ddfeb357d4add0589bd8f6
96e0f58303fd9280787da1ba44eb1334
Accessseur pour récupérer l'ID du professeur qui met la note
public class PointProvisionDto extends AbstractDto{ public String getTeacherId(){ return teacherId; }
1
553e9ea19a6a0e55dbb9545db9efdb2a
10534d335ad520ce2f8f323ba5df19d1
Bitwise AND of 2 words.
public class opcodes static int op21( CPU_STATE_S cpu ) { int src1, src2, dst; cpu.cnt |= BCNT_1; src1 = get_ea_val_16(cpu); src2 = get_reg_val_16(cpu, cpu.modrm(CPU_STATE_S.GetBit, CPU_STATE_S.reg)); dst = src1 & src2; set_ea_val_16(cpu, dst); flags.set_flag_log_word(cpu, dst ); return cpu.cnt; }
1
73d31924a2d096c0241252835633dfb3
82f8f6962257c1612db76a0c7582c56c
Adds another level to the end of the list.
void AddLevelItemToList( levelitem_t* li ) { if( levelitems ) { levelitems->prev = li; } li->prev = NULL; li->next = levelitems; levelitems = li; }
0
d9726f76351f067a4a1d1cb7232d3947
6a5cdde9af601f56841362069d3de5f2
Determines whether the combination of file access and file modes are valid or not
namespace GUCEF namespace CORE bool CMFileAccess::IsValid( void ) { return true; }
0
b1fc90009d1aff0cfcb95c3a2020e863
fafe9527fc6c40af37e87d7c9115cacd
InitializeConditions for UnitDelay: '<S38>/Unit Delay'
void Bik_Nooverflowdetected_Init(rtDW_Nooverflowdetected_Bikair_ *localDW, rtP_Nooverflowdetected_Bikair_M *localP) { localDW->UnitDelay3_DSTATE = localP->UnitDelay3_InitialCondition; }
1
b59f8e2a724f374739b9bb83379545d9
94bf7cb13af8447cdcd1d449c995623f
根据标题和类型查询
public void selectByTypeAndTitle(QueryBase queryBase);
1
11dc0a3c88a108aff239db7461c2a898
3dcae09a7c74a1975d6dc04b328220af
Get the current block, Return NULL if buffer empty
{ if((m_paBarcodes != NULL) && (m_iInBuffer > 0)) { if(m_iActive + 1 < m_iInBuffer) { m_iActive++; return GetActive(); } } return NULL; }
1
bd4ce6c1a17eddf47609263eac5eb63d
b4ed4d6f9fe963b2e43f495b8dc24033
获取装修公司信息
log.info("url:" + url); CommunityInfo communityInfo = new CommunityInfo(); communityInfo.setUrl(url); Document communityDoc = Jsoup .connect(url) .header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8") .header("Accept-Encoding", "gzip, deflate, sdch") .hea...
0
c35806ac4257e12eae228663d83caaad
6c4407d0704b63084f7d5ca918da52e6
GET: M_detail1
{ List<SelectListItem> items = new List<SelectListItem>(); items.Add(new SelectListItem() { Text = "changhua", Value = "changhua" }); items.Add(new SelectListItem() { Text = "Taichung", Value = "Taichung" }); ViewBag.ItemsForDDL_1 = items; ViewBag.Item...
1
9a6ccf688f272feef9b6785deae42c4a
8bd510bc8ca1406c471bc02a9bfd5f1e
Create a new node as a child of a node id.
org.subsonic.restapi.Child insertNewChild(int i);
1
b457520a68504071c7ac7048c91c84f9
f478a018cf3aad81615713ed51e5118f
Check if registration plate is in correct form
def isRegged(plate): return (plate in open(PLATES).read())
0
c7c4bdaade487539f0da23a516a7a339
fedca9eed8f6b9d8a6fedb69a2df2995
Shutdown the currently running droplet
def remove(ctx, name: str) -> None: remove_droplet(ctx.obj["mgr"], name)
0
ebe9c798ab8d5166f0e48e4ae5dcde96
5cffd9b83b348c13336b886cb0e935f7
Server should use files updated by watcher.
{ FileSystemWatcher watcher = new FileSystemWatcher(); if (ServerIsAlive) { SetupWatcher(watcher); } var switchThreadForFsEvent = (Func<FileSystemEventHandler, FileSystemEventHandler>)( (FileSystemEventHandler handler) => ...
1
366539307627927cc72d09eeb269b271
4d133e182755598ac93a433c16cb7c57
Returns cascade of the config files
if "cascades" not in self.sheets: return sc.odict() cascade_list = self.sheets["cascades"] data_present = False d = sc.odict() for df in cascade_list: cascade_name = df.columns[0].strip() if cascade_name is None or len(cascade_name) == 0: ...
1
77882940f145dd4cbf3dd9662d6913eb
cd4f646f3fbfda319366eeececad74be
@brief 五取样切分使用从数组中采样的五个数的中位数进行parition
int findMedian(int a[], int aLen) { int low = 0; int high = aLen - 1; int mid = (aLen - 1) / 2; int div = PartSort(a, low, high); while (div != mid) { if(mid < div) { div = PartSort(a, low, div - 1); }else { div = PartSort(a, div + 1, high); ...
0
4e0ab5550f90d1441ba6b00fb5868501
7f7406e0036c4dd45497df91fcf4e191
turn off the HTTP server to avoid port conflicts between the drill bits
def stop_server(): global httpd httpd.server_close()
1
95cd3294c143c62db99ae8bdfee1a104
f4ef3143a9af66abf3ebb41617b119c3
设置表单 checkbox 字段的值
function setCheckBoxVal(chkboxIds){ for(var i=0;i<chkboxIds.length;i++){ var chkboxId = chkboxIds[i]; var checkbox = $("#" + chkboxId); if(checkbox.length > 0){ if(checkbox[0].checked){ checkbox.val('1'); }else{ checkbox.val('2'); ...
1
3ac8483c65a56cc760c1490b96f26d42
89c02b9c7355be3646fc832135b9539b
TELA DE FIM DE JOGO
char msg[15] = "VitoriaDerrota"; int i; if(pts_jg==14){ printf("\n\n "); for(i=0;i<7;i++){ printf("%c",msg[i]); Sleep(300); } }else{ printf("\n\n "); for(i=7;i<14;i++){ printf("%c",msg[i]); Sleep(300); }} printf("\n\n"); }
1
2aeb106a5fa9b849945324e50c2c6f99
6fb9a0a6d77e46100bc09f1f1ff302e1
Functional left fold
if len(l) == 1: return f(l[0], acc) else: return f(l[0], func.enum.foldr(f, acc, l[1:]))
0
64cd8208ca7a729e85590d5fd1ff01df
9fdc17d21f2a25f64928ce6e587e579a
! \brief constructeur par défaut d'un réseau. Crée un réseau vide.
namespace TP2 ReseauInterurbain::ReseauInterurbain(std::string nomReseau, size_t nbVilles): nomReseau(nomReseau),unReseau(nbVilles) { }
0
a1d0d088ec9ed7184c2258433c2ed448
6b7d384faf68d1eca5e23daf121deadf
将指定文件对象挂载到指定的挂载点,当指定文件对象挂载到挂载点后,将成为此文件系统一部分
namespace Lexical.FileSystem public class VirtualFileSystem : FileSystemBase, IPathInfo, IFileSystemMount, IFileSystemBrowse, IFileSystemOpen, IFileSystemCreateDirectory, IFileSystemObserve, IFileSystemDelete, IFileSystemFileAttribute, IFileSystemMove public VirtualFileSystem Mount(string path, params (IFileSystem ...
1
ddaf740363431e893b236376f2fcaf1e
54602abc7ad5e2012e89520e8431a735
Increments the count of elements for this sub-trie. Invoked whenever a value is added to this sub-trie. This is the same as the following:<pre> node.addToCount(1); </pre>
public void incCacheCount();
1
b78107222ef0a0219f0bf39085a3ace6
b21dd2a6034f9182ef8ed90ad5558158
设置经销价/袋
class HjbService{ HjbSetPrice(data){ return xhr({ method:"post", url:`${this.url}/hjb/setprice`, data:{ ...data } }) }
1
030076828034137cbe4bfd3eab09be4c
41b55a0f3dfdd018a719936bdebb2d41
Sets up the value tree when needed. Returns the value tree.
{ $treeBuilder = new TreeBuilder('zicht_key_value'); $rootNode = $treeBuilder->getRootNode(); $rootNode ->children() ->arrayNode('json_defaults') ->prototype('scalar')->end() ->end() ->arrayNode('defaults') ...
1
5159f957aa2d06b5c6d468e993ad42d2
d6857729aa79d8a95c09fa6880fba9ad
Initializes the command history persistence.
class MetaApiConnection(SynchronizationListener, ReconnectListener): async def initialize(self): await self._historyStorage.initialize()
1