query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
faab49e8c0ca112dd1396e8564c336fa | fee26ecc3c2635a14259797287097369 | Asigna un alto al icono | if (h >= 0) {
height = h;
} else {
height = 28;
}
} | 1 |
8e13e7af41f3c7aed800c42610d43c8c | 36474e5c9822db4f82659c31ab7f2218 | 取较短的全球唯一码 | func E取短id() string {
s, _ := shortid.Generate()
return s
} | 1 |
ebc59a72947562bd4ece7dcd633bf5d5 | 29c10295ada2f8ed135f62b5710bdde7 | mp_salesman_cust을 삭제한다. | public List<?> selectMpSalesmanCustList(MpCustPriClassDefaultVO searchVO) throws Exception ; | 0 |
d39520f548ff4aba2f3141ebf17ebc7c | effc18bf17705d05999d0ef76a91d9db | renvoie les parcours d'un enseignant donné liés à un exercice | class ExamenService extends EntityRestService
public function findByIntervenantId($intervenantID) {
return $this->repository->findByIntervenantId($intervenantID);
} | 0 |
4e4d0483d8ace7fb2bc0898f93735081 | 10eff3e140c25d3804c807f42168cf0c | Query function for the types stored on the class. | class ParamHTTP(vr.Interface):
def querytypes(self):
return self._querytypes | 1 |
86b7986640d4bfc9d930595f14e1c20d | bbb77ecfb3e3c235ec7a9e5a567a15cb | 判断点到直线距离. | {
if (AIG_MATH_POINT_EQUAL(line_point0.x, line_point0.y, line_point1.x, line_point1.y))
return math_GetTwoPointsDistance(point, line_point0);
double A = line_point1.y - line_point0.y;
double B = line_point0.x - line_point1.x;
double C = line_point0.y*(line_point1.x - line_point0.x) - line_point0.x*(line_point1.y ... | 1 |
7b9cb27daffca7f2a25fd9d0589cff5c | 360682483e71d992589b719c4cf07041 | Returns the row in which vertex {@code i} is found. | int get(int i); | 0 |
e7959d52f8f6d955a3ad858ad334cdd1 | f31e03ce4c03bfc81d902641addd90c2 | преобразовать целое в строку с запятыми | void intToString(unsigned int value, char *dst) {
unsigned int length = 0;
for (;; ++length) {
if (value <= sizeTable[length]) {
++length;
break;
}
}
unsigned int next = length - 1;
while (value >= 100) {
unsigned int i = (value % 100) * 2;
val... | 1 |
29ecb7002a314e932c2d67e72e51f4f5 | 88fa5433d252e2d66c4865b60ea48165 | starts new connection wizard | PaloBrowser browser = getPaloBrowser();
ConnectionDialog conDlg = new ConnectionDialog(browser);
Rectangle r = browser.getBounds();
int w = 400;
int h = 250;
conDlg.setBounds(r.x + (r.width - w) / 2, r.y + (r.height - h) / 2, w, h);
conDlg.setVisible(true);
} | 1 |
62db7479e776a56de33de58adcd6cc53 | 3cf427b8458344bfb3f7a519f1045ba1 | Create a 64 bit hash value of a data set | BigInteger hashVal = new BigInteger("5381");
for(int i = 0; i < dataToBeHashed.length(); i++) {
hashVal = hashVal.multiply(new BigInteger("33"));
String ch = new Integer(dataToBeHashed.substring(i, i+1)
.hashCode()).toString();
BigInteger bi = new BigInteger(ch);
hashVal = hashVal.add(bi);
}
re... | 0 |
c013494604a51a575a0c33d0833d8104 | 2de7aeee2cac7fca0335f11fd27ec62f | @brief 静音复音快捷键修改 | void mmi_settings_audio_effect_highlight_hdlr(void)
{
ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
SetLeftSoftkeyFunction(mmi_settings_entry_audio_effect, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
SetKeyHandler(mmi_settings_entry_audio_effec... | 0 |
147f75914a4520226e9c2beb9a4b57e4 | e546e27ead172ed689c1847da37b840a | 从配置文件中得到用户密码 | public class LockPatternService
public static String getUserPassword(Context context) {
SharedPreferences preference = getSharedPreferences(context);
String userName = preference.getString(USER_PASSWORD, "");
return userName;
} | 1 |
3a0e6240ae55137be9bb2da7f66bda48 | ff66cfa701a2b54532e3006ba04a435c | 获取满足条件的バックアップ先対象グループ明細数量 | namespace IBLL
int GetBackupServerCount(IEnumerable<SearchCondition> condition); | 1 |
1fb50970f886b4fcdfcf1020dff23397 | f1b685ed6fe5bdb12cc3aff4fb3e17e0 | món ăn | class MonAnController extends Controller
public function index()
{
$dsMonAn = ["dsMonAn"=>MonAn::paginate(4)];
return view('pages.MonAn.index',$dsMonAn);
} | 1 |
fa5bf9d59c5379aecabc3505c237647b | ef78ac6420a7522c0dd0641a213a534c | 将内存bitmap中第bit_idx位所在的512字节同步到硬盘o | void bitmap_set(struct bitmap* btmp,uint32_t bit_idx,int8_t value) {
ASSERT(value ==0 || value ==1);
uint32_t byte_idx =bit_idx / 8 ;
uint32_t bit_odd = bit_idx % 8;
if(value) {
btmp->bits[byte_idx] |= (MASK << bit_odd);
} else {
btmp->bits[byte_idx] &=~(MASK << bit_odd);
}
} | 0 |
95e331ffde5caeee3252c14b96958548 | 4058cce82c165e859af7d5fc73d51311 | A sequential convolutional block from DCGAN for Discriminator.
Uses strided convolution with leaky ReLU activation. | x_out = Conv3D(nf, kernel_size=3, padding='same', kernel_initializer='he_normal', strides=strides)(x_in)
x_out = LeakyReLU(0.2)(x_out)
return x_out | 1 |
a65bb4fa2457f9f4e5a20593d382a864 | a88f43010606a1ff465bd24ddff26349 | Loads the specified block from disk and serves it as a json dictionary. | def get_block(block_id, api_code = None):
resource = 'rawblock/' + block_id
if api_code is not None:
resource += '?api_code=' + api_code
response = util.call_api(resource)
json_response = json.loads(response)
return Block(json_response) | 0 |
67970156bba67e72dd3419c0ada48eba | 1e3809611801db368b73a82a53e2b63d | Test the view presented when some of the DOIs provided can't be validated | authors = [{'name': 'Zhuyin Ren'}, {'name': 'Yufeng Liu'},
{'name': 'Liuyan Lu'}, {'name': 'Oluwayemisi O Oluwole'},
{'name': 'Graham M Goldin'}, {'name': 'Tianfeng Lu'}
]
result = v.validate(
{'reference': {'year': 2014, 'authors': au... | 0 |
9831ca991a92d9c57d641ef461071dc8 | 2b552b7a592d90bee15bccad7c9d9c4e | метод получения списка договоров у которых три дня до окончания срока обслуживания | List<ServiceOrder> serviceOrders = ServiceOrder.getAll(null);
List<ServiceOrder> delayedServiceOrders = ServiceOrder.getAll(null);
Date today = new Date();
for (ServiceOrder s : serviceOrders) {
if (s.getDate().compareTo(today) == 0 && !s.isPaid()) {
delayedSe... | 0 |
27886c97f685c0063f6be580b6e045aa | 582e49aa971a7a48c33592c8db79cf58 | Test conversion to chroot: inside, workspace, nested chroot. | class RunBuildScriptTest(cros_test_lib.TempDirTestCase):
def testFailureOutsideChroot(self):
self._assertRunBuildScript(raises=failures_lib.BuildScriptFailure) | 0 |
87a85f99e2237428abe451a1dfc95745 | 2008acb73118225b8e311996d3bf4702 | Get accessControlSystemId | public class ExceptionPrivilegeReportFilterTO implements Serializable
public Integer getSystemId() {
return systemId;
} | 0 |
559b80302af2a133c1f3641a4d609e8d | 566b28194d58fcce3d7f3686bda56579 | 指定された角度のハイパーボリック アークタンジェントを返します。 | namespace SDDQCore.EntityMode.MathMode
public class Catenary
private double AcosH(double x)
{ return Math.Log(x + Math.Sqrt(x * x - 1)); } | 0 |
c3ee988cb52a8097686a887af444946d | 5b29b12d88344e1d55956860b2d9258b | Initiates the asynchronous execution of the FailoverDBCluster operation. | Completable failoverAsync(String resourceGroupName, String serverName, String databaseName, String linkId); | 1 |
9a38056e3b18cf07746e42aa671acc1f | f3914590c30b52a478cab62837104c1f | 获取新增UDF的请求参数 | boolean flag, String bkfwlx) throws Exception {
Map<String, Object> paraMap = new HashMap<String, Object>();
UserSession userSession = (UserSession) WebUtils.getSessionAttribute(
request, "userSession");
String yhdh = userSession.getSysuser().getYhdh();
Enumeration<String> enumes = request.getParameterNa... | 1 |
eee3979eae9c423156777d277ae4bd2e | c655cb43b12cf9c430bd608c845b2a99 | Custom method to get the metadata of the ghaemiyeh epub file. | def get_metadata():
with open(os.path.join(PACKAGE_ROOT, 'Cargo.toml'), 'r') as f:
data = toml.load(f)
return data['package'] | 0 |
1dd55cd1bda61e97e56a33633aa7d805 | be1095361206b3ffaf54c4b4c038d932 | Creates the OpenGL ES 2.X context and builds the shaders. | ShaderUtil.checkGLError(TAG, "before create");
int[] buffers = new int[1];
GLES20.glGenBuffers(1, buffers, 0);
vbo = buffers[0];
GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo);
vboSize = INITIAL_BUFFER_POINTS * BYTES_PER_POINT;
GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vboSize, null, GLE... | 1 |
a8952978350712cbf06e384038f2414c | 4b1f7626d03a18d46907506d3e77b2bc | Initializes ADMM algorithm | class PolicyAdaptive(object):
def __init__(self, step_size, method):
self.lambda_ = step_size
self.method = method
self.alpha_ = 0.9
self.beta1_ = 0.9
self.beta2_ = 0.5
self.beta3_ = 0.5
self.degree_ = 2
self.eps_ = 1e-8
self.momentum = None
self.mean_square = None
self.loss = None
self.n_iter =... | 0 |
b2ac3c4cf629a6b63cd8441025c4d9e6 | 6d359015b095403e2a5a33305b91e116 | Which ever Promise fulfills first is the result passed to our handler | class Promise then (onResolved, onRejected)
function handle(callback) {
try {
const result = callback(self.data)
if (result instanceof Promise) {
result.then(
value => resolve(value),
reason => reject(reason)
)
... | 0 |
321c30cf662f42b43e992c82073bda13 | 235f041b211e5ec377636a16ac40baee | 进入证据链申请支付页面 | @Controller
public class UrlCtrl extends BaseController
@RequestMapping("/enterInvestAgreement")
public String enterInvestAgreement() {
return "views/agreement/invest_agreement.jsp";
} | 0 |
dbd5cf774bc18df22fb7f7a04729f32a | 6e6a5010a4c3861b7918796e309d7d1b | 功能:
获取设置的CDP个数
参数:
无
返回:
设置的CDP个数 | {
int ret = 0;
char at_out[32] = {0};
char out_str_tmp[32] = {0};
ret = uav_lte_at("AT+QWCLICNT?", at_out, "OK", 2000);
if(ret < 0)
{
UAVATC_LOG_ERR("uav_lte_at error!!!");
return -1;
}
ret = find_data_between_symbol(out_str_tmp, at_out, ":", "\r");
memset(at_out, 0, sizeof(at_out));
if(ret < 0)
{
... | 1 |
57d187583be2fc998a8398c77cb8260c | 2650d4a641f64ade22f6c82e9e29911a | Returns a singleton instance of the FileHandler class,
ensuring that only one instance of the Handler is active
at any single time. | if (s_instance == null) {
s_instance = new LAppWavFileHandler();
}
return s_instance;
} | 1 |
1b2c83925f7a44888b18924acf557408 | 862f4f98a0d3b2e68863577cf12e49a4 | Finishes the asynchronous execution of the CreateFleet operation. | namespace Amazon.IoTRoboRunner
public partial class AmazonIoTRoboRunnerClient : AmazonServiceClient, IAmazonIoTRoboRunner
public virtual CreateWorkerFleetResponse EndCreateWorkerFleet(IAsyncResult asyncResult)
{
return EndInvoke<CreateWorkerFleetResponse>(asyncResult);
} | 1 |
1cc2f151a7ffa4725e93dc321c858dd4 | adb0867d1bae7e86443ef7b80d098a19 | USD to JPY | def usd_to_jpy(dollars):
return dollars * 1000 / 8 | 1 |
6a2d1fa49805afa05a894ac6b3542da9 | e2af14e7e4ce9e38c2c9b830bb6b16d1 | 返回当前程序安装时间(毫秒)。<br/>
<strong><i>如果没有</i></strong>标记程序安装时间,则标记当前时间作为程序安装时间。<br/> | public long systemTime(); | 0 |
17645fefd3a8f4141813412de7f2cb95 | 21eaa18da601718e3559628980d2b65a | -----------------------------------------------------------------------------
Used to align the weapon model with the camera in first person when aiming down sight (position).
----------------------------------------------------------------------------- | public abstract class Weapon : InventoryItem
void AimModes(Vector3 mousePos)
{
if (Input.GetMouseButton(1))
{
aimDown = true;
crosshair.gameObject.SetActive(false);
float camDistance = Vector3.Distance(sight.transform.position, cam.transform.position);
... | 1 |
7b2e6661dc5457969bb963ab55a1ea3d | b8ed19a911a6ac4a46a48235a916c98d | Get first mile tracking object. | namespace ADCC.FPDAM.Domain.Models.Procedure
public class ProcedureLegTrack : DomainObject
public LineSegment GetFirstLineSegment()
{
return null;
} | 0 |
3703d84708449155f0e6f6227b154285 | f8dc413b4bf521185176644a7f705809 | Returns the list of unique words in the file. | with open(f, "r") as infile:
words = [word for line in infile.readlines() for word in tokenize(line)]
words.sort()
return words | 0 |
69b1a75d9a03d77aa12f030011b24864 | fefd34edfae032f0fa25822f062b2dfd | admin special privileges page | namespace HoppsWebPlatform_Revamp.Controllers
[Authorize(Roles="Director")]
public class AdminController : Controller
public ActionResult Permissions()
{
return View();
} | 1 |
1b7dcc1f1e3733d405af91cc4df5e130 | 2d00e82c54c788d9d2768ba539a2e61b | Inserts a column before the given column. | export class Sheet
public insertColumnBefore(beforePosition: number, howMany?: number) : Sheet {
this._range.insertColumnBefore(beforePosition, howMany);
return this;
} | 1 |
ca4bd1d2b6a1ebd7447f5f8046317bb8 | b7a251155e1ce9c33935477b47c5e5b3 | 获得配送规则列表 | namespace WIP_BLL
public class MailRuleBLL
public List<MailRuleEntity> GetMailRuleList()
{
DataSet ds = mailRuleDAL.GetMailRuleList();
return DataTableToList(ds.Tables[0]);
} | 0 |
e8eddd101852d7a5f20a6a7adde4015b | f577f07522860678b590976544838528 | 广度优先遍历/搜索 | public class GraphOfAdjMatrix<T>
private void bfsSearch(GraphOfAdjMatrix graph){
boolean[] visitedArr = new boolean[graph.verArrs.length];
Queue<Integer> queue = new Queue<>();
queue.enqueue(0);
visitedArr[0] = true;
while (!queue.isEmpty()){
try {
int... | 1 |
cb340d3377b920854c92a65fb0df1168 | 38805d4c12dde984c52fa235db830b3b | Price protection leg of a CDS with a term structure of interest rates and credit survival probabilities. Assumes flat forward interpolation in both to allow analytic integrals. | CDS cds,
YieldTermStructure yieldCurve,
PiecewiseconstantHazardRate creditCurve)
{
CDS zeroRR = cds.withRecoveryRate(0);
return -_pricer.protectionLeg(zeroRR, yieldCurve, creditCurve);
} | 1 |
ece91b40e0d57e01f43cda6a15764a9b | f577de85e570f1ce3b916989028b1403 | Set the location text substitution dictionary. | class PHPMorphy implements ObjectInterface
public function setPathDict($pathDict)
{
$this->pathDict = Alias::getAlias($pathDict);
return $this;
} | 1 |
4de0d88cccd9a8898c3b1404d8fdf38d | be191134c953eb340210e8dacc907ffe | Cleanup the dialog so other instances can use it.. | namespace MolexPlugin
public class MoveObject
public void Dispose()
{
if (theDialog != null)
{
theDialog.Dispose();
theDialog = null;
}
} | 1 |
54cbe313305713c537d72869f8de0d74 | 2c191569827ec7f48b9e3303ccb72f2e | Меняет цвет заданного узла на противоположный | class AverageBinaryTree(Tree):
def flip_color(self, node):
node.is_red = True
if node.left:
node.left.is_red = False
if node.right:
node.right.is_red = False | 0 |
98cd8370068a8d0a8d3bb8f35952fba5 | d19e3b90b25ca31be41a9ea1a6b72dd0 | 비동기적으로 메시지 창을 띄우고 선택된 버튼의 인덱스 값을 반환함. | {
MsgViewModel.msg_Caption = caption;
MsgViewModel.msg_IndicateText = indicateText;
MsgViewModel.msg_Icon = msgIcon;
return OpenMsgWindow(messageButtonCount);
} | 0 |
9611b2b365986527e70239d0c47b0b89 | 51d6bdce980363a7ef596d581a05c2ef | Register a class / callback that should be used to create new users. | function registerFactory($key, Callable $callback); | 1 |
5e0122d1111ea475cad250a472a256fd | 157e1e4ae7b20e5f650943bd4aaff037 | Some sources were mismatched. This helps get them all unified. | class FqprIntel(LoggerClass):
def _build_unmatched_list(self):
output = OrderedDict()
output.update(self.multibeam_intel.unmatched_files)
output.update(self.nav_intel.unmatched_files)
output.update(self.naverror_intel.unmatched_files)
output.update(self.navlog_intel.unmatched_fil... | 1 |
e18bb1f6df68db31bf1568b2c94911ba | 25065f5bffcaef6ead924d6e31436bde | AssemblyProductを取得する | {
string _product = string.Empty;
GetAssemblyCommon<AssemblyProductAttribute>(_ass => _product = _ass.Product);
return _product;
} | 1 |
262c3e9e08b0c1bdef4b0e3f565ef2cb | 05109cd79b605e5cb3fc45c073289afa | used when processing OFFSET and LIMIT clauses in MSSQL | class MssqlDriver extends DriverAbstract
public function limit($limit, $offset = null, $page = null)
{
if ($limit) {
$rt = '';
if (!strpos(strtolower($limit), 'top') || strpos(strtolower($limit), 'top') === 0) {
$rt = ' TOP';
}
$rt .= ' '.$limi... | 1 |
2d0bb61b91f70980ac5205715b8bccac | 1d81fca939163cb8b2da30a4023b9dcd | Tests basic usage of ScopedOptionalGlobalMutexLock (Disabled). | START_TEST(test_mutex_acquire_ordering)
{
run_mutex_acquire_ordering(0);
} | 0 |
0891097344670b03caebb120e7df0910 | 353ae5474b49e61c31e40ab68e328e8a | Comparação angular para pré-processamento dos pontos | inline bool cmp2 (const Point &a , const Point &b) {
return sign(atan2(a.y,a.x)-atan2(b.y,b.x)) < 0 ;
} | 1 |
3b942fb916788fce0656b85b53cbfa8e | 8d1b634b0fe0732777169f28d0797ddc | 更新楼盘信息记录 | namespace DianDang
[System.ComponentModel.DataObject]
public partial class DDHouseInfoController
[DataObjectMethod(DataObjectMethodType.Update, true)]
public void Update(int HouseID,string Address,string CompactNumber,string Area,string RegisterDate,string InsuranceDate,string NotarizationDate,int? Pawnage... | 1 |
5ce83c1622f2a8a5278f016f24a31fbf | 4f9fa8d14bc40f81d1547a6e200a0e01 | add a new column to table "users" called username and of type "string" | class AddUsernameToUsers
def change
add_column :users, :username, :string
add_index :users, :username, unique: true
end | 1 |
45f32e96765c1bfed45e49282e111e65 | e4ebf479a99ecb7af2f14c235ec31250 | This script will perform a unit test on your function, and provide useful
output. | def feature_function_test():
pass | 0 |
a0c979f139ba21b9ce930263863a39e9 | 3de0129299a5fa89f35b50d6a582f825 | Instancie l'objet utilisateur. | class uiusers extends CommonFunctions
function uiusers($configEtude,$ctrlRef)
{
CommonFunctions::__construct($configEtude,$ctrlRef);
} | 0 |
2332fe7d8f5fe33b1aa4903d1dd6d04b | 1196e4acf1c162c18db689e22c9497d8 | Redos one Action and changes the edit menu items | public void on_edit_redo(ActionEvent actionEvent); | 1 |
4f215f9cd6ebf20f1d9a90278916f5d2 | 12a918e438e9c77b06223e080962ebda | 配列をCSV形式でデスクトップに保存
デバック用 | {
if (_rows == null)
{
return;
}
if (_rows.Count == 0)
{
return;
}
System.IO.StreamWriter sw = new System.IO.StreamWriter(
path,
false,
System.Text.... | 1 |
c3ff9470bfc47b4bbf70ebd34803155b | 4f1934e6def5600aaf84757e915c87d8 | Tile sprites buffer size adjustement | for (SkTDArray<unsigned>* tile = fTiles; tile != fTiles + (fXTiles * fYTiles); tile++) {
tile->shrinkToFit();
}
} | 1 |
2a4ae3ac46a6ac0890f953989bc7465a | 34f485f3e8291a77bb697762f90c62f3 | 获取博客访问次数
区别于getMemberBlogStat函数的是,
该函数使用缓存数据,原因是点击量蛋疼的设计,会先写入缓存,
缓存定时写入数据库,所以前端读取博客统计的时候,不能每次都从数据库读,不然数据不同步 | global $config, $memcache, $_big;
$keyStr = str_replace('memberid', $memberid, $config['keys']['blogclick']);
$data = get_blogstat($memberid, $_debug);
$data['TotalClick'] += 1;
$data['RealTotalClick'] += 1;
if (isset($data['Dates']) && $data['Dates'] == date('Ymd')) {
$data['TodayClick'... | 1 |
72d2ab106e70c2e55cd0ef4df09fa2ef | 130f1af2f980f50eb6c2f97a67f88233 | 返回某一天所有人的订餐 | {
string sql = string.Format(@"select a.*,b.FullName,c.DepartmentName from ys_OrderMeal as a inner join ACL_User as b on a.UserId=b.Id
left join ACL_Department as c on b.DepartmentId=c.Id
where a.IsRemoved=0 and a.Mealday='{0}'", mealday.Date);
... | 1 |
ca1b0ea1931f545239dc1c1baa763ff7 | 8f30c9354e30bdfdb003d753d2337a54 | Returns the index of the given object (or null if not in array) | public function indexOf(\SprayFire\Core\Object $Object); | 1 |
36e834cfd97ee11db6ca36567cb9251c | e67b568c6bae99cc4668b2455f7a2714 | 处理查询终端参数应答消息 | logger.info("接收到1510-OMC发送的消息:"+respStr);
String[] stringArray = respStr.split("\n");
Map<String, String> map = new HashMap<String, String>();
for (String splitStr : stringArray) {
map.put(splitStr.split(":",2)[0], splitStr.split(":",2)[1]);
}
String success = map.get("executeResult");
String reason = ... | 1 |
ec260d4e0ec575b861f15a307e5883ae | eed7bef1c1585542f4bd2f66d19f8182 | Adds a class translation mapping to the receiver whereby instances of of a given class are encoded with a given class name instead of their real class names. | public function addMapping(string $fromClass, string $toClass, string $mappingClass): void; | 1 |
20bc134e0ac66313c55c799a04ae9ac7 | f0b24816021ffe877ed96534e67985e2 | Returns just the file extension. | const i = theFileName.lastIndexOf('.');
return i < 0 ? '' : theFileName.substr(i);
} | 1 |
3d9f29ac61eb46bed470f974c93cbe8a | a729a3098bce4411d904ea0a7d60421b | 获取入库单的船名 | if($input['stock_sysno']){
$sql = "select sind.shipname from ".DB_PREFIX."doc_stock_in sin
left join ".DB_PREFIX."doc_stock_in_detail sind on sin.sysno = sind.stockin_sysno
where sin.sysno = {$input['stock_sysno']} ";
$res = $this->dbh->select_row... | 1 |
acf5fbcfd57d2015b4810824207c3d80 | 05cb1a448e6b40ce3f2d82b3545c93c4 | Get the cutoff mark required for an Additional Exam. | float getAdditionalExamCutoff(); | 1 |
a58dfb55dae83a729f6c4794aa65e6b3 | 337b5d8b22f72c50ce68944d2d92f377 | remove all non Latin characters | function toLatin(str: string): string {
return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
} | 1 |
77c28379b763db49fb35c1ff88076709 | 7aba21e8a8a465ba2e49f841bb9b92e8 | Check to see if LayerDigest property is set | namespace Amazon.ECR.Model
public partial class GetDownloadUrlForLayerRequest : AmazonECRRequest
internal bool IsSetLayerDigest()
{
return this._layerDigest != null;
} | 1 |
dd5d2db8e7bfa959e36ee737fd0a344c | b15b7ffe0af8760eccb7af58493ab9b0 | Notification that a thread in the target VM is about to wait on a monitor
object. | public void traceWait(long tick, int priority, ProcessTarget t); | 1 |
1b7f77bae07433e60eada8ae00e6380f | 320f165e96b7a9cd3436cae4e58ef890 | 头文件处理函数, | FILE_LABEL_INDEX = 0
MOD_NAME_INDEX = 1
FILE_NAME_INDEX = 2
with open(f_name, 'w') as fp:
fp.write('#include "util_glb.h"\n')
fp.write('#include "statistics_glb.h"\n')
fp.write('\n')
fp.write('\n')
fp.write('/* 函数调用关系, 方便更美观的debug输出 */\n')
fp.write('CALL_R... | 1 |
3a58cdbf05f5b38faa709da40c72b1a7 | d880ee1f9bb607b18e0fd934d8cc7bca | context.PostAsync posts to the user, asking them what operation to be played out - Output | namespace dialogs_basic
[Serializable]
public class MathsDialog : IDialog<object>
public async Task MessageReceivedStart(IDialogContext context, IAwaitable<IMessageActivity> argument)
{
await context.PostAsync("Hi! Welcome to MathBot! \nDo you want to add, square root, or squared?");
... | 1 |
45458e1845d2eb4518b3064f5c30c300 | ef4f3df3aa44dc1cc63a06429540dc4c | 演示通过completionService实现forking模式,冗余某个服务的多方调用,只要有一个正常返回,则返回 | public void testAsynchronousInterface(){
ExecutorService threadPool = Executors.newCachedThreadPool();
CompletionService<String> cs = new ExecutorCompletionService<String>(threadPool);
for(int i = 0; i < COUNTS; i++) {
cs.submit(new Callable<String>() {
public String... | 0 |
2bb9225942155b1f86508b736f85833c | a53cd851453f503182e96ba89d3df6b6 | Scales the vector by a factor. | {
this.x = this.x * factor;
this.y = this.y * factor;
this.z = this.z * factor;
} | 1 |
83cc821082017635476dd8f188ec7bb6 | 13e747b7b578a2640855a5ca501908e5 | Função responsável por agrupar as alocações dos colaboradores: | class Manager(Manager_Interface):
def allocatePlayers(self, players):
player_groupings = []
for idx in range(len(players)):
if idx % self.MAXIMAL_NUM_PLAYERS == 0:
player_groupings.append([])
player_groupings[-1].append(players[idx])
player_groupings[-... | 1 |
0e86d9ad219dbae1c358d675362ac02d | 1d29d7ae7c64b1c5e79f9a1721df6948 | r"""Rate (/s) counter for camicrosoftsmoothstreamingvidcachebytes. | try :
return self._mcyoutubedashbytesrate
except Exception as e:
raise e | 0 |
6f82f69a527b2197bc786107876504c9 | 7e6bd84a32b1989d6e7a8f3285690c23 | Returns a tuple of predicted labels and confidence levels for those predictions | class LearningModel(object):
def scale_and_predict_confidence(self, input_matrix):
scaled_matrix = self.scaler.transform(input_matrix)
return self.classifier.decision_function(scaled_matrix) | 0 |
c4ba9036e21f2c5454de0a0b0fee318a | d05f697cdf2267adb4349632bb23d2aa | инициализация массива - поля нулями | void InitArraysandValues()
{
for (int i = 0; i <= cepStrumP; i++)
Ais[i] = 0;
for (int i = 0; i <= cepStrumP; i++)
Ris[i] = 0;
for (int i = 0; i <= cepStrumP; i++)
CepStral[i] = 0;
for (int i = 0; i <= cepStrumP; i++)
for (int j = 0; j <= cepStrumP; j++)
cepStrumAlpha[i][j] = 0;
} | 1 |
d6500a7ea4f1f6830d72d4bcdfa68e3a | 50fbae9fc35254d04200a31f61b4f913 | 日期所在月的天数
如:“2011-02-02”所在2月份的天数为28天 | public class DateUtil
public static int getDayOfMonth(String date) {
return DateUtil.getDayOfMonth(DateUtil.parseDay(date));
} | 0 |
b9165721a859c96ad6854dbb0a09dbe3 | 3bbc8e6c61b1d99038206e8defcef7fa | Create db command by configured command name. | namespace RefinId
public class TableCommandBuilder
public DbCommandBuilder GetDbCommandBuilder()
{
DbCommandBuilder dbCommandBuilder = _factory.CreateCommandBuilder();
if (dbCommandBuilder == null)
throw new InvalidOperationException("dbProviderName");
return dbCommandBuilder;
} | 0 |
04218f7b0448590dd40292be8f99df46 | b8c4e04d895f0428cbeaf15d5cd7dfbe | Create new probe service instance. | class Probe::Set
def ensure_probe(klass, key, *args)
probes[key] ||= klass.new(key, *args)
end | 1 |
f15057c2e882ffd9f4ad1778b4c8e75c | 8fd971d36abc792ca5cce602e11f8551 | Matches SMTP recipient of the incoming message against the regular expression pattern. | abstract public class AbstractStorageQuota extends AbstractQuotaMatcher
protected boolean isRecipientChecked(MailAddress recipient) throws MessagingException {
MailetContext mailetContext = getMailetContext();
return super.isRecipientChecked(recipient) && (mailetContext.isLocalServer(recipient.getHost()... | 0 |
e52cd16d32dc7aa3995699bba9e58a05 | 12c2f210da1a2e597f5bbd195bbcbfe6 | deallocate all the memory used for records | {
Record n;
while(RecBeg->Next!=NULL)
{
n=RecBeg->Next;
free(RecBeg);
RecBeg=n;
}
} | 1 |
5af40bfd44890442c93f6570671eb306 | abc5384b7ffd1eab7a7ccafb59e5e4d4 | Get membership information for all group members | $givenUserID = $_REQUEST['givenUserID'];
$groupModel = $GLOBALS["groupModel"];
$result = $groupModel->getGroupMembershipFromUserID($givenUserID);
$data = json_encode(array("groupMembership" => $result));
echo $data;
} | 0 |
9d01afab60456b67e9a095736620411a | 78362e8f26c432c83f65cafa5cd652af | Load contents of a binary file to specific memory region on the target | void loadFileTo(const char *file, void *addr){
u32 size;
void *data = loadFile(file, &size);
dmaCopyBuffer(addr, data, size);
free(data);
} | 1 |
eb3b120a96924dd8f9b649ab804255b0 | 27a4df57b6c6eb490372ce4fb1f346d3 | Publishes a message to the event aggregator telling all subscribers to save the solution. | namespace TranslationSolutionViewModelLib.ViewModels
void SolutionIsDirty(); | 0 |
341608ebba6ebb98b4154e516fe5cb63 | 4530d4b91338e88399ef1f9bcbd10882 | split the sentences into words | class Tokenize:
def sentsplit(self):
sent_tokenizer=nltk.data.load('tokenizers/punkt/english.pickle')
return(sent_tokenizer.tokenize(self.rawtext)) | 0 |
97ecd90d65988015fbf4aa279879d25c | 0e8e5b968963b8bb45a7b6f1e5cb1459 | Returns True if augmentation is currently enabled, see setter | class ZoomBarImage(object):
def IsEnabled(self):
return self._enabled | 1 |
2d0237eb84c473b358d88c15350c603c | cd3b61f3c15566b3bc20898c9173a6f2 | Requests in-app purchases details for currently owned items bought within your app. Only
non-consumed one-time purchases are returned.
callback with the list of purchases and the success flag. | namespace Plugin.InAppBilling
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, string obfuscatedAccountId = null, string obfuscatedProfileId = null, string subOfferToken = null); | 0 |
9c607c0bcf56dff29579092ab3bf580d | 12e0e15c243ec52e71a444204760321d | 获得闪避率 | {
double dodge;
dodge = 20 * dodge_skill_lv;
if (dodge > max_dodge)
{
dodge = max_dodge;
}
return dodge;
} | 1 |
2a2756f3385b39c6929973d1cb08d972 | e48fec57b31a6993b9d501860d8fe447 | Constructor for UNet class. | class Unet(object):
def __init__(self, img_rows = 512, img_cols = 512):
self.img_rows = img_rows
self.img_cols = img_cols | 1 |
75915695e6deb016f8a3230c7d4cc431 | ab157d00b6d098ae5931e5274690697f | 敵の名前で検索 | class Tomoe_EnemyManager extends Tomoe_DBManager
public function getNameById($id)
{
$enemy = $this->getEnemyById($id);
return $enemy['name'];
} | 0 |
830be2fcf1c1730dfcc11f3beb64626b | 7f61448ad6da3ef0f9cb03f40c5be655 | like Json.NET | cases like (1) | 0 |
053b340165c211f55d70295641f8aaec | e617e71855b03ca4b0e980c7614d84b8 | Get First Object, Null if not found | public class GovForceFSM : MonoBehaviour
public GameObject GetFirstVisibleObject(params Aspect.AspectName[] _aspectNames)
{
if (isVisionOn)
{
return GovForceFOV.GetFirstVisibleObject(this.transform, _aspectNames);
}
return null;
} | 1 |
c95b26a1f7ed5bb72d0fea410929b79c | cc975c4f68fa3ca2991f9cba2e93892d | Private slot to handle a change of the state of the authentication
group. | {
if (m_bUseCertAuth.getSelection())
{
setEnableForGroup(true, m_gCertAuth);
setEnableForGroup(false, m_gDomainAuth);
}
else
{
setEnableForGroup(false, m_gCertAuth);
setEnableForGroup(true, m_gDomainAuth);
}
} | 1 |
29f581d1805a888abaf57710d8fb41aa | df28efa2446524b58c179a89171914f2 | Create spinner with list of students. | final List<String> list = new ArrayList<>();
ArrayAdapter<String> adapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_spinner_item, list);
} | 0 |
1a5afbf3791ae75fc330449688f06bdf | 2616686d46a4398e025d82642c151740 | Delete files marked for deletion from a target directory using a JSON file generated by the find duplicates command
The de-duplication JSON can be auto-deleted post de-duplication with the flag 'args.del_json | show_errors_only=False):
for target in TARGETS:
if subdir:
target += '/' + subdir
duplicity_command('{} {} {} --full-if-older-than {}'.format(duopts, source, target, full_if_older_than),
show_errors_only=show_errors_only)
duplicity_comman... | 0 |
928b82e2814744bd9bedbb1264775b78 | 006654cfa9766492fccc8eac077e9664 | 카테고리 셀렉트박스 초기화 | var select_str = '<select name="p_dtl_srh_ct_s" class="catSelect" id="ctSsel">';
select_str += '<option value="" selected>すべてのカテゴリ</option>';
var catData = JSON.parse($('#menu_group_json').val());
var mg_cd = $('#mgsel').val();
var ct_cd_arr = $('#ctMsel').val().split("_");
if (ct_cd_arr[0] != "") {
$('#p_... | 0 |
b100287b87f1956465b465c97e951e92 | 14810d71b5237e8adce4c75f6c78d5d5 | # Show the top of an OTU table | class(x) <- "data.frame"
vars <- attr(x, "vars")
vars <- vars %in% c("Seqs", "g", "c", "Codon.Adaptation.Index", "Minimum.free.energy","Prediction")
pred_data <- attr(x, "pred_data")
cat(header)
cat("\n")
if (!is.character(pred_data)) pred_data <- "-----"
cat("Prediction dataset :", pred_data,"\n")
... | 1 |
4b23e8f2d405c4999d7ce754594bfd99 | 715089185e49304ed620e81cb05f1fa1 | Function to load images from a directory of files | int TexPool::loadDir()
{
std::string buf;
DIR *dp;
struct dirent *dirp;
if ((dp = opendir(texPath.c_str())) == NULL)
{
std::cout << "Error opening " << texPath << std::endl;
return 1;
}
std::cout << "\nFiles in " << texPath << ": " << std::endl;
while ((dirp = readdir(dp)) != NULL)
{
buf = dirp->d_name;... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.