query_id
string
corpus_id
string
query
string
code
string
label
int64
17ab83689abe2f2622276932d3769191
a3a2bcb4211f1cd6cdafede1bbe54862
根据条件查询满足条件的(用户定位信息)记录数,精确查询
public int getUserPositionInfoCountDim(Map<String,Object> paramMap);
1
47c2b54b86465126e4e2184a993feda2
a6e01e952cf557fc3a4d968e4b207b70
京东支付异步通知页面
class WeChatPublicController extends Controller public function notifyJd() { $info = file_get_contents('php://input'); $orderClass = new Order(); $orderClass->orderNotifyJd($info); echo "ok"; }
1
bbb6577252c59633d12dc9eb94abddca
2d211af81bbec2ae6419e760ee3e816b
数字がFizzBuzzか判定
class _Number: def is_fizzbuzz(self): return self.is_fizz() and self.is_buzz()
1
4a15133b9ef632d8d73ccb8fdd0e4d33
37459e08ae8484cf2d4493379222c152
automatically maps contacts from redux to props when page loads (component mounts)
function mapStateToProps(state) { return { } }
0
b6a91114f32729414ed756ece76ca5b7
6c53e4c2cff2ab9928f637d976ed4320
Change colorbar title.
visible=True, **kwargs): obj = self.pic[name] obj.width = width obj.height = height obj.translate = translate obj.visible_obj = visible self.cbar_control(name, **kwargs)
0
36ea99bd32fcff89d8eca950a1c6e53a
1d8ab55d649c68e453a442c6f725c450
初始化hystrix配置,读取环境变量.
func SetHystrixConf(openStream bool) { hystrix.ConfigureCommand("common", hystrix.CommandConfig{ Timeout: 1000, MaxConcurrentRequests: 1, RequestVolumeThreshold: 1, ErrorPercentThreshold: 1, SleepWindow: 5000, }) if openStream { hystrixStreamHandler := hystrix.Ne...
0
066428a1324863da6b0827b21ca5350c
c2adf82e7ed4d8f449b7312b1c14c919
shifts elements of array right one from point of entry to right end
def step_right_array(A:list): N=len(A) temp=A[N-1] for k in range(N-2, -1, -1): A[k+1]=A[k] A[0] = temp return A
1
f8de977d0af4e741e9415eb70eb650bd
7a77b7805c47fe734edc1108d26e83c0
查询供应商有权限的药品
namespace CHIS.Services public class DrugService : BaseService public IQueryable<CHIS_Code_Supplier> GetDrugSuppliers(IEnumerable<int> supplierIds) { return _db.CHIS_Code_Supplier.AsNoTracking().Where(m => supplierIds.Contains(m.SupplierID)); }
0
bf2275aaebd62dc8a563152135750d5d
b93c1eb2ec657e1b1141cdbf72ceb53c
获取字节长度【Oracle数据库适用,一个中文字符占3个字节】【默认去掉前后空格】
namespace QuartzExtScheduler.Utility.Core public static class ObjectMethodExtensions public static int GetCharLength(this string value, bool trim) { return !string.IsNullOrEmpty(value) ? System.Text.Encoding.Default.GetByteCount(GetString(value, trim)) : 0; }
1
49419a486a973d5f81336e9d733399e6
21e2d23a673ffb222685bde5e008648e
Get the mass per unit length, :math:`\frac{m}{L}`
return util.Quantity( data=1.0 / self.dx.data, dims=self.dx.dims, origin=self.dx.origin, extent=self.dx.extent, units="m^-1", gt4py_backend=self.dx.gt4py_backend, )
0
04ac5be19888fa0a9424f60d85df0c79
fe5df614633957207252ed82968037c6
Процедура удаления выбранных компаний
class CompanyController extends Controller public function destroy(Request $request, $id) { $ids = $request->item_checked; if($ids){ if(count($ids)){ foreach($ids as $id){ $company = Company::find($id); User::whereCompanyId($id)->del...
1
bf6c57e523acc52bec7a2c13a698de43
db67ecc706ccf14e978b6026eb89c378
=================== G_RegisterCharacter ===================
int CAccount::AttachChar( CChar * pChar ) { ASSERT(pChar); ASSERT( IsMyAccountChar( pChar )); int i = m_Chars.AttachChar( pChar ); if ( i >= 0 ) { int iQty = m_Chars.GetCharCount(); if ( iQty > MAX_CHARS_PER_ACCT ) { g_Log.Event( LOGM_ACCOUNTS|LOGL_ERROR, "Account '%s' has %d characters" DEBUG_CR, (LPCTST...
0
0c8fd3bd6051e62490e500c3b9a59f6a
2b5f013680d156f2addbeafefa87cbdc
Returns the second body involved in the contact.
public class FContactResult public FBody getBody2() { return m_body2; }
1
db2a1d385bd769645a0539af92db1ad1
f28ee5a836581199c12333a10a4f5582
Проверяем первое поле. 6.1 Допустимое газосодержание при откачке нефтегазовой смеси по объему.
def f_b_003_f_15_GPCFuelOil(GRO20PCFuelOil,G0N2PCFuelOil,GH2OPCFuelOil,L0PCFuelOil,Arab,V0PCFuelOil,AlfaMax): Rez = GRO20PCFuelOil+G0N2PCFuelOil+GH2OPCFuelOil+(AlfaMax-1.0)*L0PCFuelOil return Rez
0
361b08d8778bac5e39e45081b4ba9299
9d80f1b66825db988c8a378928716c1e
Visit a parse tree produced by {@link OracleParser#over_clause_keyword}.
@SuppressWarnings("CheckReturnValue") public class PostgreSqlParserBaseListener implements PostgreSqlParserListener @Override public void enterOver_clause(PostgreSqlParser.Over_clauseContext ctx) { }
0
a9f75a9af84ade698690aaed3d6e817b
078464a7d8b8c503fd164f3539d574ba
Use the specified number of threads (processes) for requesting recommendations.
public final class IndexClient implements Closeable public static class Builder public Builder setSearchThreadNum(int searchThreadNum) { this.searchThreadNum = searchThreadNum; return this; }
1
8dfb696005fb6198fe4bd434db1468c6
4867541c841d5d9ea08b14d40f8b11d0
Отработка действия 'Использовать зелье здоровья' героя.
namespace Game public class CombatView : MonoStateSubscriber<ActionState, CombatUIState> public void UseAction4() { Events.ExecuteStrict(ActionEvent.UseAction4); }
0
a0429992b155cada6c7e6c6870ae3acd
09474b9e3d0b74e4628645f0c685d674
演出场次处理
{ $timeStart = date("Ymd",time()) . "000000"; $timeEnd = date("Ymd",strtotime("+16 day")) . "235959"; $playMapper = new Admin_Model_Mapper_Play(); $partner = $this->_getSyncPartner(); $cinemas = $this->_organizeCines($cinema); $updateCines = array(); foreach (...
1
1a1f0fee1bd5ebcc1e8e944ca5b8cade
d2ae632d25ff9573ecd57e61a33917e3
Constructor method for Training_TypeType
class EbayTradingTypeAutomatedLeaveFeedbackEventCodeType extends EbayTradingWsdlClass public function __construct() { parent::__construct(array()); }
0
0ae3cebbcd7002f50c057095c1fd0b47
fc32c955135d2b09e00f7bd3d7e115ba
Check if items title is displayed in 'Game of Thrones' page
public boolean isPresent() { return browser().getTitle().contains("Search results") && browser().getTitle().contains("Nature"); }
0
66c296f08761d29e2126be9a68352667
7fae57107c122fca6d241c7a4147c0a0
Test that we don't get a default channel used for this alert.
class RescheduleTests(unittest.IsolatedAsyncioTestCase): async def test_skipped_missing_channel(self): self.cog.unsilence_timestamps.items.return_value = [(123, -1), (123, 1), (123, 10000000000)] self.bot.get_channel.return_value = None await self.cog._reschedule() self.cog.notifier.add_...
1
b18b7fb37202d060c44062679052ae83
a813e9803f2e079aaed36457c6c88db7
Ekta Books => ekta-books
function dasherize(str) { return str.replace(/::/g, '/') .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2') .replace(/([a-z\d])([A-Z])/g, '$1_$2') .replace(/_/g, '-') .toLowerCase() }
1
588c801cf969a5af7efe9357a65f9ee9
29c269e0bd8e4d1854b25b6b61f4dbc2
根据ip获取pad信息
public class OpasPadDaoImpl extends AbstractDAO implements OpasPadDao,Serializable @Override public List<Map<String, String>> queryPadInforByAppId(String appId) { return getSqlMap().queryForList("OpasPadInfor.queryPadInforByAppId", appId); }
0
1e5c8b3fc31fe3984cbdced0afe1554d
f619eea675c3fea1dfe085f57a013760
Removes a second from the player's available time.
class BattleServer extends \BaseModel implements BattleServerInterface public function removeTime($time) { $this->time -= $time; }
1
d21db478cd9df5e60d0c311dcefcf1c5
c5ecd0cc350aaaf54e4c3802678eda7a
Create SQLite LIKE starts-with expression.
def to_sql_starts_with "#{to_sql_escaped_for_like}%" end
1
3fb252ba0ba19b3cd1d40742d519a828
045dd0d522c4f7bd4b404dc3677a3a03
Сложение матриц.
{ Matrix c = new Matrix(rows, cols); if (b.Rows == rows && b.Cols == cols) { for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { c[i, j] = m[i, j] + b[i, j]; ...
1
78171aee771df98cc6c3ac6282a2f61c
efc89cced22db0249b3c555235e4e13f
Определяет площадь цилиндра
{ double v = M_PI * pow(r, 2) * (h/3); return v; }
0
ef234372ab3ccb4c6e2f4ec2094e156b
9f26dbe57301e5c2db43d3b90fb47e89
Compact the database and have the status callback throw an exception.
namespace Chesterfield public partial class CouchDatabase : CouchBase public void Compact() { Compact(new Result()).Wait(); }
0
c3fbbc5bff30a78b871c61ea0bbbef4a
04c9a2efa7bc92dc889f8aab71bc41bb
Extending the variables from the HANA ML SQL trace with basic naming and convenience attributes.
extended_vars = [] for variable in variables: extended_var = copy.copy(variable) if self.TRACE_KEY_VARS_ATTRIB_NAME in extended_var: transformed_name = self._clean_string(extended_var[self.TRACE_KEY_VARS_ATTRIB_NAME]) extended_var[self.TRACE_KEY_...
1
ae031493a50a1b6981a4dd4902e54ed8
0c721a70e2b8e72fe927314426ab4fea
Returns the {@link ColumnStatistics} for the specified file and column.
{ ColumnList colList; boolean average = false; String dateColumnName = ""; boolean sleepDuration = false; switch (tableName) { case LocalStorageAccessDiet.TABLE_NAME: dateColumnName = LocalStorageAccessDiet.DATE; break; ...
1
1678335aca90e0b5e56febac8fc87f23
6802aa0f22f0db2f7adf01d0802b0464
Handle interaction with terrain
global selected if phase == "Pregame": return if phase == "Preposition": handle_preposition(t, button) return if phase == "Place": if handle_place(t, button): return if selected is None: if t.player != currentplayer: return issh...
1
65d9d83a8450bf34abe59eba85d2487f
23e442b4dcccd10a2c0c5e07af75b4a4
Gets the value of the street2 property. possible object is {@link String }
public class CrpCustRostersVImpl extends EntityImpl public String getStreetAddress2() { return (String)getAttributeInternal(STREETADDRESS2); }
1
f7ee790a3c81df1f1053a803f97ce8c6
28d2e4b2fc4b75456425361cba06eaac
if element exists, switch its class name
function switchClass(elem, to_cl) { elem.className = ''; elem.className = to_cl; }
1
07e380ea2e246eb337c2359cb343b7b3
a26c8fbd23031c01341dd2e9097297ae
Return the key used to store this party.
public String getTheKey() { return theKey; }
1
52ac45562768ff934d2058911fd41c86
79e58132c5fc3d1a714973cc043b7d8b
Returns the version information of the native Scintilla library.
namespace TreSharp public static class Tre [DllImport(TreLibrary, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] public static extern IntPtr tre_version();
0
50545925c8e2d6df752d5daea0d39faf
f5430e8a26e8b4788d595bdd2e892ee4
Write the sos marker
void write_scan_header(compress_io *cio) { write_dht(cio); write_sos(cio); }
1
2e69e481658c660843bd57172d371f67
d432ca5eaf00dda0a670a7ca9442cc70
Narrowed
class EventsController def narrow_down @events = Event.where("events.date >= ?", Date.today).where(area_id: current_user.area_id).order(created_at: :desc) render :index end
1
f6ec7db8a466e8f0031a5d91e1b8ac1a
c7d0edd6b1a1c964c839c22c1a9f43c8
将txtytwth转换为常用的x1y1x2y2形式。
class LoadFace(data.Dataset): def xyxy2xywh(self, x): y = x.clone() if isinstance(x, torch.Tensor) else np.copy(x) y[:, 0] = (x[:, 0] + x[:, 2]) / 2 y[:, 1] = (x[:, 1] + x[:, 3]) / 2 y[:, 2] = x[:, 2] - x[:, 0] y[:, 3] = x[:, 3] - x[:, 1] return y
0
c55c6a520718876a1e34d9371fa695f1
16318ba95958c52ff154db8b8a213dfb
Bài 5: Viết chương trình nhập vào 1 số nguyên n. Kiểm tra xem n có phải là số nguyên tố hay không ?
public class Tong_Hop_BaiTapMang1Chieu public static boolean ktSnt(int n){ if( n < 2 ) return false; if( n == 2) return true; for(int i = 2; i < n; i++){ if(n % i == 0){ return false; } } return true; ...
1
80f444cbfbd97c6029a1b31b4c0a9bbd
66e537a29e0df19aa16953d9077dda0c
Tests that polynomials are offset when used in compound models. Issue #3699
m1 = self.model() c1 = m1.add_component('c1') c2 = m1.add_component('c2') a1 = c1.add_variable('a1') a2 = a1.add_variable('a2') a3 = a2.add_variable('a3') a4 = a3.add_variable('a4') a3b = c2.add_variable('a3') a3b.set_rhs(10) a4.set_rhs('1 ...
1
41a89feddede63083812d863a0945015
6089fef546bdca9a61a9452fbcef0243
角度を XY 座標に変換する
namespace Indigo.Utility public static class MathUtility public static void AngleXY(ref float X, ref float Y, float angle, float length, float xOffset = 0, float yOffset = 0) { angle *= RAD; X = (float) Math.Cos(angle) * length + xOffset; Y = (float) Math.Sin(angle) * length + yOffset; }
1
575413974cd615b1847f9db03f933f4e
b518b762ba1af21765d47ad318198d2a
the maximum length of a sequence name
class BloomWindowService(LocalWindowService): def max_sequence_length(self) -> int: return 2048
0
5fdb4aef983c8d739e93d59b72439c28
b20447241813dd0953994550598cee5f
Закрываем документ согласно его типу
namespace DocumentStructure public partial class MainWindow : Window private void OnClose(object target, ExecutedRoutedEventArgs args) { CloseDocument(); }
0
ee27be217d6e0d1c46f0d1c5913e89ea
3e1f172f0d4504711c1e50542dbe44df
Animation for defeating the goblin champion and it shows the victory screen after a few seconds.
public class GoblinBoss : AbstractEnemy public override void Die() { CanvasManager.Instance.Victory(); }
0
9d23c05baddf0034be752a5505e660e2
902200ec5e68d25edd4f36e141c3ea41
Create a new scattering center definition
class SD(Node): def __init__(self, label, alpha, rho, n=0, particle=UTIL.Proton(UTIL.PARAMS['injection_energy']), position=(0.,0.,0.), aperture=None): super().__init__() self.label = label self.alpha = alpha self.rho = rho self.n = n self.particl...
1
0c660903aded8bf3235bb3bc6adb0b9a
5b50fc2a37bc9a2e11d21f528cc6e4dd
Test case for orgApacheFelixScrScrService .
class ConfigmgrApiTest extends \PHPUnit_Framework_TestCase public function testOrgApacheFelixSystemreadySystemReadyMonitor() { }
0
8d9f08d6e47f3da2ab00d9f1478964d6
04844ae19f390dc0738722cfcb937c3e
Used to indicate that the categories associated with each result document should be returned.
namespace Elasticsearch.Client public class SearchParameters : Parameters public virtual SearchParameters stats(string value) { SetValue("stats", value); return this; }
0
6fe7d635cca0c18488e524cfe7e21a5b
61e19004b3f5b06146651831a7df3847
将float 转换为 字符串 ,把小数点后的0 去掉
String strValue = ""; try { strValue = String.valueOf(Decimaldf2.format(value)); if (strValue.substring(strValue.length() - 2).equalsIgnoreCase("00")) { strValue = strValue.substring(0, strValue.length() - 3); } else if (strValue.substring(strValue.len...
1
5843f0c9318239c5c610ae3d046730b3
210dd77975539e044c86ee66f559cf95
Generates popup to show results of resize texture function. Collects contents of resize texture dictionary, combines into a string, and generates a popup witht his string.
try: size = 600 if addon.preferences['largePopups'] == 0 else 900 except: size = 600 context.window_manager.invoke_props_dialog(self, width=size) return {'RUNNING_MODAL'}
0
afa47c389ce1f37db81fd64b722712db
98371b117f896f6df8859ed601363def
Проверяем формирование динамического представления при использовании поля символьного типа.
namespace ICSSoft.STORMNET.Business.LINQProvider public static class UtilsLcs public static string GetNameForDynamicView(Type dataObjectType) { return string.Format("DynamicViewFor{0}", dataObjectType.FullName); }
0
4f1edb1174490602255bf765a56933b9
a5b46b129e0a4be27f0afe8d7620027b
判断鼠标在屏幕上部
var pos=Input.mousePosition; Rect rect=new Rect(200,100,Screen.width-200,Screen.height-100); if (pos.x<rect.x||pos.x>rect.width){ return false; } if (pos.y<rect.y||pos.y>rect.height){ return false; } return true; }
0
6e2585e88ce8d6faac86b63bdcab5b18
26fb0c35c832b0003dd71b3628269bf4
更新device_id 到 车辆表中 绑定
{ string strSQL = "update User_BaseInfo set deviceID='"+deviceID+"' where ID="+userID; SQLHelper.ExecuteSql(strSQL); }
0
c8d8fc9aaf53cc96534aaacf022fc475
5973000c8c92c402ac0a2aed64ed6367
Initialize the secret store.
class SecretStash(object): def __init__(self, region, local_filename): self.region = region self.local_filename = local_filename
1
0b79ef52523ae0b11deb328e14f13dd8
4d7cfc244731028154f5a7d26d0918db
Создание входного слоя
def newLayer(): for i in range(1,3): inpt.append(neu[i].output)
0
112f70ec9750707efdb081af01f94ec5
c4ae27e810637f94fa8c1daed8c2681d
Returns the possible block types based on the type of the previous block.
public class BlockList implements IBlock @Override public BlockType getBlockType() { return BlockType.UNKNOWN; }
0
0e0b8de919248685ce57f54572f54a84
bfafe3ed62cd112994ac4f1542a5c169
get(int i) - returns the Data array at a given index If the index is out of the bounds of the array, it will throw OUT_OF_BOUNDS throw OUT_OF_BOUNDS;
{ if (i >= 4 || i < 0){ cout << "Index out of range" << endl; exit(1); } return m_elements[i]; }
0
9325e29e639c1bc6e2f81ab57bb779b4
fb0da414a54900aa89d2c0f427990fad
Handles add user request and dispatches actions based on server response.
console.log(`addUser: ${username}, ${password}`); return function(dispatch) { axios.post(`${ROOT_URL}/user`, { username, password }, { headers: getAuthorizedHeader() }) .then((response) => { if(response.data.status == 1) { dispatch({ type: ADD_USER_SUCCESS, payload:response }); callback(); } e...
1
dbcc19f0f86b1f4094d637c5516621c4
3b1999aa35d4624985ca8874e7478c7e
Copy the src file (src is a path on the host) to dst (dst is a path on the guest).
import os reload(os) if not dst_ip: dst_ip = self._dst_ip source = self._wrap(os.path.abspath(source)) dst = self._wrap(self._double_the_slash(dst)) return self._submit_request('FS', 'COPY FILE %s TOFILE %s TOMACHINE %s' % (source, dst, self...
1
c03e24b1622db8a0221d693f1ea1e421
f1aa37a0e8d54702964f0b2a49e60940
-------------------------------------------------------------------------------- ガンマ関数(負の引数についても)
{ return Math.Log((Math.Sqrt(-x * x + 1) + 1) / x); }
0
5bb1936667f8ac5cec3d6d799d40fba6
7b2bae4bf6b26107b4fc793d0ee8157f
This will convert a Julian date to a date time.
namespace Aardvark.Base public static class DateTimeExtensions public static DateTime ComputeDateFromJulianDay(double jd) { var p = (int)(jd + 68569.5); var q = 4 * p / 146097; var r = p - (146097 * q + 3) / 4; var s = 4000 * (r + 1) / 1461001; var...
1
fb6d17d18e0f37c45b3b5e7facd5f1f6
b91d281ba292a5cf559d9e4585ea6f74
Extract the faces from each cat image.
class Capture_Images: def extract_face_detections(self): self.detector.setInput(self.image_blob) self.detections = self.detector.forward()
0
43a5984d4425999c09b0686cede7ef8c
7f2f443b3c12efb64212f0c1ce02cdbb
Create an instance of {@link GetMessageAuthorLengthResponse }
@XmlRegistry public class ObjectFactory public GetLanguesResponse createGetLanguesResponse() { return new GetLanguesResponse(); }
0
4e01bee7ad2ed0f0d6e5ea03e6c10bf1
c0c0269b4884394d97b411d37d1f031e
Instanciranje novog menija na temelju tipa korisnika.
{ foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(FrmKorisnik)) { form.Activate(); return; } } FrmKorisnik.izmjeni = 0; FrmKorisnik kor...
0
43bc4b7046646e83355c55617d6948c1
1222fe22e7bb6b9468af8d80968adf7b
Action handler for Skip Backward button.
namespace Microsoft.PlayerFramework public static class ViewModelCommandFactory public static ViewModelCommand CreateSkipBackCommand() { return new ViewModelCommand( vm => vm.SkipBack(), vm => vm.IsSkipBackEnabled, new HandlerReference<IInteractive...
1
8f3dd3623a62d20ddd91b21c3bf8eadb
c8ae2bf4e372d631501854712cc36a14
# a set of "words" to exclude from cleaned up text fields
result <- gsub("/|@|\\|~|_|\\*|#|%|\\^|&|\\+|`|=|\\{|\\}\\[|\\]", " ", text) result <- gsub("[!:;\'\"?\\.,]", " ", result) result <- gsub("[[:digit:]]", " ", result) result <- gsub("^ *", "", result) result <- gsub(" *$", "", result) result <- gsub(" +", " ", result) ...
0
2666afc02399186c67f7ceb4180d47eb
cc9d903b9f7a35776255002d460f315c
Periodic task running every hour to fetch data from alphavantage website api.
{ while (_dataService.isConnected.Equals(true)) { await Task.Delay(10000); currentDateTime = await Task.FromResult<string>(DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString()); } }
0
9ee29def17e7e4d47c43e1ea43de34c5
d467fbfa994cbc6cb2fc8b57ae37968e
用数据库账号登录,登录成功则进入主界面
public class LoginWindow extends JFrame implements ActionListener,KeyListener{ public void Login(){ user_database.Find_Login(this.GetUserName(), this.GetPassword()); if(!user_database.getData().isEmpty()){ new MainWindow(); this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); }else { JO...
1
b388258a62a0a135a31265fb23441f2e
b2bc4daec839f4019f6cec9ac076fc5a
Executes the specific help dialog on the FTP server.
if not self.is_authenticated: return FTP_STATUS_CODES["INVALID_LOGIN"] + "\r\n" print_debug("Executing HELP") help_msg = "FTP Server Help: \n" if cmd and cmd.upper() in VALID_COMMANDS: help_msg += "%s: %s" % (cmd.upper(), VALID_COMMANDS[cmd.upper()][0]) el...
1
ffa3513519dbf0d0050656b3ab3ae3ab
1afb25fb45d1ce6191c03439aea824f9
Add a response object, and an optional status, to the list of responses to be returned via _simpleRequest.
static inline void resp_add_obj(struct redis_engine_internal_s *dest, FIOBJ o) { if (dest->ary) { if (!dest->ary_count) fprintf(stderr, "ERROR: (redis) array overflow indicates a protocol error.\n"); fiobj_ary_push(dest->ary, o); --dest->ary_count; } dest->str = o; }
0
24c6d83645853cdb0cc750f790e00608
c60da3542d4165b7b2c09d96b49c9cd0
l2-table add ip-mcast sip <IPV4ADDR:sip> dip <IPV4ADDR:dip> port ( <PORT_LIST:port> | all | none ) fwdpri ( disable | enable ) priority <UINT:pri>
int ipaddr_add_or_del(const char * addr, const char *ifacename, int prefixLen, unsigned long preferred, unsigned long valid, int mode) { struct rtnl_handle rth; struct { struct nlmsghdr n; struct ifaddrmsg ifa; char buf[256]; } req; inet_prefix lcl; inet_prefix peer;...
0
13ea456dc9d574eb1a7fc3117ad46b38
1bd581496a0f4488fb49f76e8f693315
関数を呼び出す
void c_call(void (*fun)(void *), void *arg) { fun(arg); }
1
a06d65a31e2bb58c4eed1b0477d165d8
17f80520132355ff4c5d1e3310ef1d36
Method Tested: to_json Context: Passing test model blocks Expectation: Should return OK
class TestBaseModel(unittest.TestCase): def test_to_dict_method(self):
0
7c9503bcc3c7bb60cbd32c5369a6436c
5c718e3b8d9152a1bd4f2443dbe67a84
@brief These settings are wrt enabling TIMER0 on Lunchbox
void register_settings_for_TIMER0() { P1DIR &= ~BIT2; P1SEL |= BIT2; TA0CCTL1 = CAP + CM_1 + CCIE + SCS + CCIS_0; TA0CTL |= TASSEL_1 + MC_2 + TACLR; }
1
50bc9ce7990d56c1bdf3444e876ce9d2
1c2ea27529a2a4215b50f27099c52f41
Same as GetDataSource, but if a remote/XML data source needs to be constructed, then this method will issue a <b>blocking</b> Refresh call on that data source.
unsigned short CDataSourceManagerImp::RefreshContent(int iDataSourceID, IDataSource::RefreshMode mode, int iUpdateChunkSize) { PutEvent(RT_EVENT_REFRESH_DS, (void*)new rt_ds_refresh_t(iDataSourceID, m_usScanID, mode, iUpdateChunkSize)); return m_usScanID++; }
0
b680500bf0649a20fd80ad6243af28ed
4eda876274d5e5d19ef09d7ba33f9330
题号向下滚动
function gotoQue(i){ var er = top.examRight; var currentpage = top.currentpage; var pageSize = top.examInfo.pageSize; var nextPage = 1; if(pageSize != 0){ nextPage = Math.ceil(i/pageSize); } if(currentpage != nextPage){ er.showExamPaperByPage(nextPage); } if(er != null){ er.$("#CK_"+i).ScrollTo(800); c...
1
01df73ecee68f5bf7cc8d27261e157a5
2971b52a8ed542ae2f6de3f99b37cfc9
Retrieves the earthquakes between a date range
SismosResponseDto getEarthQuakeByCountryAndDateRange(CountryAndDates request);
1
ccbfa339c967990d78df2b1108b770b2
a323617a8c923712083e8ec0508a650a
Set when the maintenance event starts
class Event public function setStart($start) { $this->start = $start; return $this; }
1
43d9876ce007008e01e25bb51484b080
258fdf4942698009fb65a4e360b0ef71
数据是按列排列并用空格分隔的, 按列读取
MTS_NAMESPACE_BEGIN namespace class BinaryMatrix32x32 BinaryMatrix32x32(std::istream &is) { for (int i = 0; i < 32; ++i) { is >> m_rows[i]; } }
0
e38d1f5e066dfb3ff5a348ecbc539ed7
23f3e6d79e1691fd2bc083a9cc919ceb
Test that settings are discarded and initialization is done correctly when changing project type from P6 to P5
namespace SIL.FieldWorks.FDO.FDOTests [TestFixture] public class ScrImportSetTests : ScrInMemoryFdoTestBase [Test] public void SwitchFromParatext6ToParatext5Project() { CheckDisposed(); m_importSettings.ImportTypeEnum = TypeOfImport.Paratext6; Unpacker.UnPackParatextTestProjects(); RegistryData regDat...
1
af5a37ab7046f00884f9cb840a06ae28
7386abb326d4c9fe57bb942b21934c5d
Check update duplicate Value in Car Maker
public void Test3() { webDriver.Url = "file:///C:/Assignment%20Final/newcar.html"; IWebElement sellerName = webDriver.FindElement(By.Name("Name")); IWebElement email = webDriver.FindElement(By.Name("Email")); IWebElement phone = webDriver.FindElement(By.Na...
0
3a3b97117db3fec047e5dfbf8c8d648e
abb2954ff5f72fab04ff043f977bf44f
Duration of system maintenance (in mins)
class InstanceArgs: def deny_maintenance_period(self) -> Optional[pulumi.Input['InstanceDenyMaintenancePeriodArgs']]: return pulumi.get(self, "deny_maintenance_period")
0
b66cd095e0d079ef7493f44978f4d1e8
4ea715dd1533efed6efbd4e6031cdff1
获取该单头id下的书本数量
session = getSession(); hql = "select b.storage_num from Book as b where b.book_id='" + book_id + "'"; return (Integer) bookDao.find(hql, session); }
0
d10ac7cba057f90fccc0713e5f92ab66
e1732d5472b0c1afc12bdfb9664f2e42
Indique si une donnée est deja dans le hash à partir de sa clef d'identification
boolean isHere = false; try { PreparedStatement requetePresence = DBConnexion.getConnexion().prepareStatement("SELECT * FROM Enigma WHERE id=?"); requetePresence.setString(1, String.valueOf(id)); ResultSet resultatPresence = requetePresence.e...
0
546c04ae4abb83006c67a4bbf16747fe
85626d0edc67feac7652db2a0bd92d30
increment both variables of the shared data
long i, tmp; for(i = 0; i <= 10000; i++){ tmp = share_value; tmp = tmp + 1; share_value = tmp; } }
0
3e0f5409aa44b929c14574db4b0c9bf9
f851e1563784b457b285cba58e2f4073
获取后天天气的数据
{ $weather_model=new WeatherMessage(); $start_time=strtotime(date('Y-m-d',time())); $end_time=$start_time+86400; $weather_data=$weather_model->select(['code','weather_text','temperature_low','temperature_high']) ->whereBetween('time',[$start_time,$...
0
757847244b079901b3f268df58e3d0c1
146d2208662356875a8cae4ae082ac51
Verify that current popup is Reconnect to mobile device via: - title - Close button
class Preview(SmartFlow): def verify_rename_popup(self): self.driver.wait_for_object("rename_title")
0
58265073c1574c9564b558a608fddb6e
bf2f7dd664e759b49becb65259269ef2
converts parsecs to meters
class Convert: def au_to_pc(self, distance): return distance/Constant.au_parsec
0
bec9b6cae8d068082985e64d96b8c4f1
ee8516105c90136acaa1af10f288d2d7
Sets the percentage of the instances to deploy in each batch.
class OceanUpdatePolicyRollConfigArgs: def batch_size_percentage(self) -> pulumi.Input[int]: return pulumi.get(self, "batch_size_percentage")
0
aa42932f9a29eb9aad09603528c287e9
1ec34e07838e1798dccde0978e4bb1b9
! \brief Store buffer contents in DS1307 RAM.
char i; clear_bit(intcon, GIE); i2c_start(); i2c_write(DS1307_I2C_WRITE_ADDR); i2c_write(DS1307_SECONDS_REG); i2c_restart(); i2c_write(DS1307_I2C_READ_ADDR); gca_ds1307_regs[DS1307_SECONDS_REG] = i2c_read(0) & 0x7F; gca_ds1307_regs[DS1307_MINUTES_REG] = i2c_read(0) & 0x7F; gca_ds1307_regs[DS1307_HOURS_REG] ...
0
e3467016e89806dee6235a80ac20babd
02be4f860304ace762f26da9bce613a7
这里需要补全
class Model: # 定义整个模型 def build_model(self, inputs): raise NotImplementedError('Here is your model definition')
1
11fa0203f06b112fce35467b7acb3865
6b9f88d3a1144b700bc0711627ac5170
列印醫檢費匯款明細表
class Report_cheque extends CI_Controller public function cheque_book_print($cbe_id, $createdate) { $this->load->model("report/cheque_book_report_model","cheque_book"); $createdate = urldecode($createdate); $return = array(); $return["year"] = date('Y',strtotime($createdate)); $return["month"] = date('m',str...
0
5957b36ab30aec2750b609627820d5c9
0d77344ce05c9df7540b4fbd26b35f22
Container's getter for OppurtunityTeamFk3Link1.
public class AppModuleImpl extends ApplicationModuleImpl implements AppModule public ViewLinkImpl getInteractionTeamFk3Link1() { return (ViewLinkImpl) findViewLink("InteractionTeamFk3Link1"); }
0
510bd66f341b559432c39e7208023738
e083bac8c045e223b12d278cd0452243
https://stackoverflow.com/a/17141899/190597 (falsetru)
x ^= x >>> 16 x ^= x >>> 8 x ^= x >>> 4 x &= 0xf return !!((0x6996 >>> x) & 1) }
1
a1f74f3f1f8fde45cc92dac49528e8ed
01e7a41b0fac9d880487747812687614
get the rankings for an apartment by its url
return this.http.get(environment.api + '/songs/rankings/' + slug) .map((res:Response) => res.json()) .catch((error:any) => Observable.throw( error.json().error || 'Server error' )); }
0
761807107ae8a675dd3d039456226898
d122cfb92053eac36c7e5465578299fc
计算初始化。加载TPN项目
{ DataTable tblComChkTPN = new DataTable(); if (!this.db.GetRecordSet(SQL.SEL_ALWAY_CHK, ref tblComChkTPN)) { lvTPN.Items.Add("加载通用审方失败:" + this.db.Error); return null; } string prepIDs = ""; foreach (ListVie...
1
e8471027c9f151b18a4818aab25644bc
a18241365fa34a0045a12a4f5d575b88
Метод вызывающий начальный метод родительского класса
class Base extends Controller protected function initialize() { parent::initialize(); }
1
92264b211e1627e62fb767d7044ec8a2
1800a3ec2c3d3675c80a5544aad89501
creates the mutation primal heuristic and includes it in SCIP
SCIP* scip ) { SCIP_HEUR* heur; SCIP_CALL( SCIPincludeHeurBasic(scip, &heur, HEUR_NAME, HEUR_DESC, HEUR_DISPCHAR, HEUR_PRIORITY, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_TIMING, HEUR_USESSUBSCIP, heurExecShifting, NULL) ); assert(heur != NULL); SCI...
1
4b3253ac2deab33c1d417f91730baa25
6eb3a793a5a9cf549aaa3f63df73e98a
用户绑定钉钉
String userId = dUser.getUserid(); String corpid = dUser.getCorpId(); if (StringUtils.isNotBlank(userId)) { OapiUserGetResponse response = dingTalkService.fetchUserById(corpid, userId); if (Objects.equals(0L, response.getErrcode()) && StringUtils.isNotBlank(response.getUs...
1
bc22d6a7175369cf5ba693acc7b66efc
836c171c895db9cfa0298afbbe0bc392
Función que realiza la suma de dos vectores con números complejos (lista,lista)->(lista)
def addComplex(a, b): return [a[0] + b[0], a[1] + b[1]]
1
2f27660e875badd09562707e740a7149
a2b5732c190f115c2522ee55d02863e0
Tests if retrieval correctly manages capacity.
public static class UnmanagedValueListTests [Test] public static void EnsureCapacityTest() { var array = new UnmanagedArray<int>(3); array[0] = 1; array[1] = 2; array[2] = 3; using var valueList = new UnmanagedValueList<int>(array); valueList.EnsureCapacity(0); ...
1