query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
a8f89aa1524014f0b8efaae50cc7d44d | 99308039797c1d27520dc41c96e4c811 | perNodeHostBits defines the number of host bits to be
configured per node. A subnet mask determines how much of
the address is used for network bits and host bits. For | class ClusterCIDRSpec(_kuber_definitions.Definition):
def per_node_host_bits(self, value: int):
self._properties["perNodeHostBits"] = value | 1 |
45c9c4234ceb461519cc71ecc5dee80b | e55db0cd318798c5744d5004fa810d99 | 社員別金額クリア | function _clearSumPrice () {
CRONWMMM.sumPrice.value = 0;
} | 0 |
89ed6691bcbdacd258cafd173ef51e73 | d5777a88277d506f901a666bc5e20880 | 根据公文编号 获取公文的序号 | @Controller
@RequestMapping("/docComCtrl")
public class DocCommonController
@SuppressWarnings("rawtypes")
@RequestMapping(value = "/genWenHao")
@ResponseBody
public TeeJson genWenHao(HttpServletRequest request) {
TeeJson json = new TeeJson();
String sql = "";
int runId = TeeStringUtil.getInteger(request.getPar... | 1 |
2e61eb6e1bc5798ffc95115e935d85bc | ea2e48c2f25bfeebda9a78eb31c66227 | 是否是PubMed来源code. | public class PubXmlDbUtils
public static boolean isIsiDb(Long sourceDbId) {
return PubXmlConstants.SOURCE_DBID_ISTP.equals(sourceDbId) || PubXmlConstants.SOURCE_DBID_SCI.equals(sourceDbId)
|| PubXmlConstants.SOURCE_DBID_SSCI.equals(sourceDbId);
} | 0 |
729911259f071dda7a2b3f435e73aae7 | ee5b48a44ec5b80f5a7bea2cdfd73063 | u"""
コーナーの8点を得る。 | yield self.upperleft, self.upperright
yield self.upperright, self.bottomright
yield self.bottomright, self.bottomleft
yield self.bottomleft, self.upperleft | 0 |
771ee752c2731736815935cc4b08ea12 | 0c2725b4d7bbac4cf1d2679580ce43cf | Setter for <code>NOTES_SERVICE.NOTES.ENTITY_ID</code>. | public class CrpAgencyNotesImpl extends EntityImpl
public void setAgencyNotesId(Number value)
{
setAttributeInternal(AGENCYNOTESID, value);
} | 0 |
99b74d94f8ccfa3fe2114584abeb0a0e | 2af387dd45bec7ff69a0c21c923bf137 | 删除GET表单参数 | if(!empty($_GET)){
$str = '?';
foreach($_GET as $key => $val){
if(!in_array($key,$arr_del_key,true)){
$str .= $key.'='.$val.'&';
}
}
$str = mb_substr($str, 0, -1, "UTF-8");
return $str;
}... | 1 |
4b1dba53a400fcf248141a7fe820bb52 | 21d7c11f46dc81e4d0853202ccf7a5a5 | Return an instance with the specified variable appended.
This method MUST retain the state of the current instance, and return
an instance that contains the append variable. | namespace QuercusDotNet.Env{public class Var : Value
: Serializable
public override StringValue appendTo(LargeStringBuilderValue sb)
{
return _value.appendTo(sb);
} | 0 |
63cac969d11c0d9630aa81e51cf8b57a | 5ee609ecca569c9f1390fe40e722da87 | given the middle and pre order , solve the post order | void pta1020::Solve(int postorderindexstart , int inorderindexstart , int length ,pos *node)
{
if (length <= 0)
return;
if(!(*node))
(*node) = new Node;
unsigned root = postorder[postorderindexstart+length-1];
(*node)->data = root;
auto target = find(inorder.begin() + inorderindexstart, inorder.begin() + inord... | 0 |
06e03b90c031f1962dbbb1c7a1d3b98f | b33ca911aaf1f2533271eeff0f422b2b | Get vertical white edge distance of character image. | long
__fastcall TOcrRecogniseCharacter::NumberWhitePixelAtTop(BYTE* hTotalImage, long lRectW, long lRectH, long lLine) {
long lPointer;
long lCounter;
lPointer = lLine + (lRectW * (lRectH-1));
lCounter = 0;
while (hTotalImage[lPointer]==0xFF && lPointer>0) {
lCounter++;
lPointer-=lRe... | 1 |
358380eaf38937a782e43c2dabf9e2a4 | 305c96768cb0fe9e51304587c144d8ba | Unregister the endpoint on termination. | {
struct rpmsg_device *rdev;
if (!ept)
return;
rdev = ept->rdev;
if (ept->addr != RPMSG_NS_EPT_ADDR)
(void)rpmsg_send_ns_message(ept, RPMSG_NS_DESTROY);
metal_mutex_acquire(&rdev->lock);
rpmsg_unregister_endpoint(ept);
metal_mutex_release(&rdev->lock);
} | 1 |
94d8b6032ca323d226ee354ab1169da6 | fb360e8ff8ec8a8b91f8df34ff92e89c | Returns the number of regions available. | public class WorldPresenter extends Observable implements WindowListener
private class ActiveRegionList
public int size()
{
return activeRegions.size();
} | 1 |
1abafdef0d0499e3e23085c8bcd061f0 | e470ea695d58eec70af9ac464ae095e4 | Denne test sikrer at turen bliver registreret hvis man kører over Øresund på MC | public void TestFuldtHusHvisDerIkkeEr()
{
_spil = SpilSingelton.InstansSpil;
_spil.SpillereCollection[0].PointFelter[14].Point = 0;
_spil.SpillereCollection[0].PointFelter[14].CanChange = true;
_spil.Bæger.Terninger[0].Eyes = 1;
_spil.Bæger.Ter... | 0 |
e2ab726c8c485cc407af266541d2697b | 55a04649e89bc05bd25104a0c652aec5 | taken from Django Source Code | def urlquote(link=None, get={}):
if not (link or get):
raise ValueError('need link or get values')
if isinstance(link, dict):
assert not get, get
get=link
link=''
assert isinstance(get, dict), 'wrong type "%s", dict required' % type(get)
assert not (link.startswith('http:... | 1 |
96e155d30020646ba02b54c940dd88be | 5e876b0cafe8c78ea41db88c431338e6 | Apply one auxiliary (omega) network for one real eigenvalue or a pair of complex conj. eigenvalues. | class bse_iter_c(tddft_iter_c):
def apply_l0(self, sab, comega=1j*0.0):
assert sab.size==(self.norbs2), "%r,%r"%(sab.size,self.norbs2)
sab = sab.reshape([self.norbs,self.norbs])
self.l0_ncalls+=1
nb2v = np.dot(self.xocc, sab)
nm2v = blas.cgemm(1.0, nb2v, np.transpose(self.xvrt))
if use_numba:
... | 1 |
79e9fe8bb485f4729fcf38e563164df7 | aeadc91c2415064f5c9789875ce587c0 | Metoda zajistí zakrytí programové lišty a korektně nastaví vzhled okna i po minimalizaci | upperPanel.setMinimumSize(new Dimension(500, 100));
bottomPanel.setMinimumSize(new Dimension(500, 200));
receivingSize = receivingScrollPane.getBounds().getSize();
sendingSize = sendingScrollPane.getBounds().getSize();
connectionDetailsPanel.setVisible(false);
connectMenu... | 0 |
146fb374da4b60504c188f31ce669dce | 3244e8b6b3c8c8792f10ec927f3fc462 | Ouvre la fenêtre pour sélectionner la façon dont les communes seront triées | namespace ProjetNET
public partial class MainWindow : Form
private void FamiliesToolStripMenuItem_Click(object Sender, EventArgs Event)
{
Families Families = new Families();
Families.ShowDialog();
LoadDatabase();
} | 0 |
bae1282aa755b43d759c432ed96619c0 | c001c8e9ce2998ef111c7616b08b3523 | Remove data from the specified Firebase reference. | var ref = new Firebase(path);
ref.onDisconnect().cancel();
ref.set(value);
delete this._presenceBits[path];
} | 0 |
7e1057dcbcf8e09ecb967847a84f70fb | f5a9ee2236abb401609aebdd6d25a057 | Template to render objects retrieved via Ajax | function c_ajax_object() {
} | 0 |
ab396afe21de176231be3a63c8702c05 | 595c49194a66928437f6ecc6806086ac | Evaluates the logging entries. | {
Argument.IsNotNull(entry, () => entry);
Argument.IsNotNull(entry, () => entry);
if (null != this.Filters && this.Filters.Count > 0)
foreach (var filter in this.Filters)
if (!filter.Filter(entry))
return;
... | 1 |
74849030e841aaad670df1b2c03b38bc | b5a4b07ee038f22ec123e30f5916cf84 | Creates a volume measure property. | namespace BIM.IFC.Exporter.PropertySet
class PropertyUtil
public static IFCAnyHandle CreateVolumeMeasureProperty(IFCFile file, string propertyName, double value, PropertyValueType valueType)
{
switch (valueType)
{
case PropertyValueType.EnumeratedValue:
... | 1 |
ecd0a545787a09e7450888a5abac249f | f1cc1900f4773112b4a04231ecd059da | Отсчет времени до следующего ивента | class Calendar:
def sleeps_to_next_event(self):
return self.sleeps_to_event(self.next_event) | 1 |
ac6cc69f381ddd7052c446019de76e8b | dbad1bbbda8cb9af637dc4a5aaafb81c | Function that recreates dictionary of hyperparameters from string | def get_params(experiment_dir_str):
parsed_params = {}
start_idx = experiment_dir_str.find('-') + 1
for kv in experiment_dir_str[start_idx:].split(','):
key, value = kv.split('=')
try:
value = eval(value)
except:
pass
parsed_params[key] = value
return parsed_params | 1 |
8dade027fe8781a81223a2330f942bbe | 0d8184b8581acba26776f44a1f74aa01 | 获取某主播在某家族的某月开播时长记录 | $dateCal = new PipiDateCal();
list($condtion['startTime'],$condtion['endTime']) = $dateCal->getCurPointMonthTime($month);
$return = $this->getFamilyExitRecords($familyId,$condtion['startTime'],$condtion['endTime'],$pageSize,($page - 1) * $pageSize);
if(!$return){
return array();
}
$consumeService = new C... | 0 |
22d5fec3f5100bf3eec5cb7b8f3f6b84 | a4e82034160fe5b9c32cbe1efce0eaf1 | 获取锅炉数(台) | {
try
{
double h1 = Convert.ToDouble(getOPC("L0LBD30CF101C_RT-TOTAL"));
double h2 = Convert.ToDouble(getOPC("M0LBD30CF101C_RT-TOTAL"));
double h3 = Convert.ToDouble(getOPC("N0LBD30CF101C_RT-TOTAL"));
double And = h1 + h2 + h... | 0 |
c8bd317b3363ae30c0cee931dd9a6ec2 | 353bb5b1d928f396ec1247a79ffbde58 | Rescans the server, and rebuilds the child nodes. | class FileTreeViewModel : ViewModel()
fun rescanFrom(selectedNode: TreeItem<FsNode>) {
fileTreeModel.rescanFrom(selectedNode)
} | 1 |
a503e67a1b9d8198af233f959def7c46 | debe56a70a604042c2cfc6a81d914ddc | Waits for a file to be available (not locked). | class LockedFileTest(unittest.TestCase):
def test_wait(self):
pass | 0 |
89376c2625782d8848fa83f75950ff90 | c013a5645e35c3286e3376f65d81c300 | Ouvre un menu contenant les règles du jeu. | class Ui_PlayWindow(object):
def openRules(self):
self.DisableAllButtons()
self.widgetValidation.hide()
self.widgetRules.show() | 1 |
bd59297778bb260c5d2a4be694d90827 | f6be1a06209d64bac451a966a6a86f14 | List all recipes from a specified id chef | {
$recipeData = DB::select('SELECT * FROM recipe WHERE fk_user = ?',array($id));
} | 1 |
7814d5aceb8b89f29f7fbac42cb445f3 | 5551bbc545cd2baa37405492ee35cc0b | 解除周年光行差修正 | sql='select * from uf_dingxb'
ls=ExecQuery(sql)
sum=0
for row in ls:
sum=row[9]+row[10]+row[11]+row[12]+row[13]+row[14]+row[15]
sql_update='update uf_dingxb set gongzhj=%f where xingm=%d'%(sum,row[3])
print(sql_update)
ExecNoQuery(sql_update) | 0 |
8dab4c348e7f3b16205a9957842ee676 | 9dc358b71e694133738135cd2debd868 | Create a new Review for a CapabilitiesImplemented | public function createReview(array $data) : ApiResponse
{
return $this->client->executeCreateRequest(
$this->generateUrl(self::API_URL_REVIEW),
$data
);
} | 1 |
9c116707c8e7579e322b34995e13caa6 | 4f9862dd13f2bb1583a21658788b62ef | Returns Matrix state of the pipeline. | public class ProjectionProcessor<Q, T extends Image<Q, T>> implements AccumulatingImageCombiner<T, T>
public Matrix getMatrix() {
return this.currentMatrix;
} | 1 |
1229b6bd53984dcf07c0aeb4f2ec08da | 38a79840c7d2d8e53456b3e0fb3bd5ae | Gets the running page | class Application extends AbstractLogger
function getCurPage() {
return $_SERVER['PHP_SELF'];
} | 1 |
1ca44855c9f8c4b6963f7b70a69d0283 | 7c4b3698932f0faaa75ef84f4639fd10 | Get Athlete School Year property | class Student extends \StudentBundle\Entity\Student implements \Doctrine\ORM\Proxy\Proxy
public function getSchool()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSchool', array());
return parent::getSchool();
} | 0 |
6b7d7a268365f27e5100f7c1537dfc82 | b0dbd83d19df07eb3fb2194db529e17b | 将进项list填充月份的金额值,没有月份的填充0 | sheet2 = wb['except_list']
for i in range(72, 75):
data = sheet2[chr(i) + '2':chr(i) + '12']
for row in data:
for cell in row:
if cell.value == 0:
break
else:
for k in range(len(list_T)):
... | 0 |
406e7fc5fc6d575d740239279f471255 | 94dc18c64228902c8c623c6431f32d6e | 获取最大4位推荐生成码 | namespace IvyTran.BLL.OnLine
public class Order : IOrder
public string GetToTheCode()
{
Random ro = new Random();
string str = ro.Next(0, 10).ToString() + ro.Next(0, 10).ToString() + ro.Next(0, 10).ToString() + ro.Next(0, 10).ToString() + ro.Next(0, 10).ToString() + ro.Next(0, 10).To... | 0 |
b3f5b158f0a2999c5a13160fe682da6b | fed5bb58df9917cc649b83a0fa98a8b6 | Apply filters to a string | class TextFilter
public function parse($text, $filters)
{
if ($filters[0] != "") {
foreach ($filters as $filter) {
if (!isset($this->validFilters[$filter])) {
throw new InvalidFilterException("The filter [" .
implode(", ", $filters) .
... | 1 |
1220128897f6d2c0fa2fcb8a460d9242 | fd33b8a7b7e9372696c4b04c4b78bd55 | This method handles the exit Button. When the user presses the exit-Button, a pop-up window
appears and stops the game. | private void exitButton(ActionEvent event) {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.initModality(Modality.NONE);
alert.setTitle("Confirm Exit");
alert.setHeaderText("Confirm Exit");
alert.setContentText("Are you sure you want to exit?");
Optional... | 1 |
07dfae3861c1df4301ca974a87e8847a | 6b485f47c6c6e6a46da6cec52ce312ad | Забрать все деньги из кошелька. | class Vendor:
def _withdraw(self, _) -> str:
to_return, self._balance = self._balance, 0
return f"Возвращено:{to_return}" | 1 |
965c2a6d156f439051e66aaaa302ad75 | 1ec636918154401110983875f3a04e8d | Create blank blue color Image with size 256x256 | def create_img():
img = np.zeros([600, 800, 3], dtype=np.uint8)
img[:, :, 2] = np.ones([600, 800]) * 255
cv2.imshow("created_img", img) | 0 |
1fcca1735f56b85b749a4e33926e85df | aa7edf8ab7201bb37aa28e60baef746c | Convert an integer to uint8. | class BikeController():
def convert_to_uint(self, num):
if num < 0:
return np.uint8(256 + num)
else:
return np.uint8(num) | 1 |
e59b10ee267196e16f0568d85e496421 | 1f4e0e16b3cad0a712002b6fa60c18c6 | Getter for <code>calc.category_level.caption</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.2"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CalculationStepRecord extends UpdatableRecordImpl<CalculationStepRecord> implements Record15<Integer, Integer, Integer, String, St... | 0 |
cd2a7cf0a6a6f6de85527d61f46223f0 | 364d0f887ad41d8a4d3e705e8eb8127f | creates new custom pipeline. Will run stages in the order of which they were declared | namespace Unity.Networking.Transport
NetworkPipeline CreatePipeline(params Type[] stages); | 1 |
c0099e174417e2efac7889f2cebeb915 | 5596711fd18047a5c210dfd176d52cfc | ボーンごとのアニメーションを削除する。 | namespace projectQ
public class Animator_Event : MonoBehaviour
public void Animator_EventClear(string animName)
{
RuntimeAnimatorController m_AnimController = A_mation.runtimeAnimatorController;
for (int i = 0; i < m_AnimController.animationClips.Length; i++)
{
... | 0 |
706248878d777b2101af0203f691143a | cff5b60fda9cfd6ce0525ca16bf844f6 | Utility to get a token good for updating a specific entry
from a specific table for one day. | params = (('yr', dt.year),
('month', dt.month),
('dy', dt.day),
('cid', 'mc-0191cbfb6d82b4fdb92b8847a2046366'))
return params | 0 |
61c061e8a79372339551cd8155daef4a | 4294ed195b84075b006a378374de1625 | 子账户授权 | class sms_ctl_site_member extends b2c_ctl_site_member
public function sub_account()
{
$this->output('sms');
} | 0 |
5f046dcfe533b49af99db8ce30bf1ec1 | 02d7003661410fdbc85d26484cd01f7a | Writes a list of doubles to the stream. | class MeshWriter:
def writeDoubles(self, ds):
bs = struct.pack(">%sd"%len(ds), *ds)
return self._out.write(bs) | 1 |
b60bf879b4a51b426920624532238d29 | d037ff049ae52cb150c54f4fd618f916 | Generates SQL query to select output from a table | namespace Otto.ClassBuilder
string GenerateSelect(string jQuery, string name); | 0 |
95d22d9290c8cb70fa71187644701908 | e81eeab3601d110a6e7763cfdbfd9acf | Persists the column widths in localStorage | let arr = document.getElementsByClassName('column');
let arrID = [];
for (let i = 0; i < arr.length; i++) {
arrID.push($(arr[i]).attr('far'));
}
arrID = arrID.filter(function (e) { return e });
const data = {
"data": arrID
}
let requestURL = 'http://localhost/iNordic/bitk... | 0 |
ecd6c7c662a7bf2a24a3a4403995006f | 349177019c6b095657c0cc1164d99069 | remove any malformed or empty intervals | class IntervalList(object):
def _tidy(self):
if self.no_overlap:
self.remove_overlap(self.no_contiguous)
else:
self.sort() | 0 |
33db1f68973cbbcb1401179984fbc6bd | 4c99bee043533f5b529f2508124175b3 | Obtiene los Municipios de un Estado | Optional<List<Municipio>> BuscarPorEstadoId(Long id_estado); | 1 |
f45e99f4ce991478e9be06085902627c | 4b9c7d9607bc95a15c39184f9db3679e | Pauses the polling of the bot for testing purposes | try:
bot.polling()
except:
traceback_error_string = traceback.format_exc()
with open("Error.log", "a") as myfile:
myfile.write(time.strftime("%c") + "\r\n<<START ERROR polling>>\r\n" + traceback_error_string + "\r\n<<END ERROR polling>>" + "\r\n\r\n")
bot.stop_polling... | 0 |
f4ef163993e0cdf9d6b47517f02ffd7c | 8871dc16462e019cf1081950d91f07df | Getter function that calls the value of End 1. | public class SecondDefaultResourceWorkingHourBean implements AdminNotifyConstants
public String getMonEndTime1() {
return monEndTime1;
} | 1 |
664ae18de9a0e6744938eb2d455afa10 | e7453a77836c4ccded1da8790e70bf5d | 将毫秒时间格式化成 yyyy-MM-dd HH:mm:ss | public class DateUtils
public static String formatDateTime(Long millis) {
return formatDateTime(millis, DATE_PATTERN_1);
} | 1 |
3e9a41797a029364b00ad9c530a01456 | f863967f3d6ff8eae3fd0e4e22dd7e43 | Activates timeout flag and increments the timeout count | void SetTimeout(timerFlag_t *pFlag)
{
pFlag->time = PLATFORM_GetTime();
pFlag->expired = false;
} | 0 |
252502664f7da292470e8f76f0f1208c | 819250a7050db9197c49c458c2068874 | Delete the active widget set and allocates a blank one.
Must be called before any other GUI functions are called. | {
if (_win1) { delwin(_win1); }
if (_win2) { delwin(_win2); }
_blistboxes.resize(0);
_slackbuilds.resize(0);
_displayed_slackbuilds.resize(0);
_categories.resize(0);
_displayed_categories.resize(0);
_taglist.clearList();
_category_idx = 0;
_activated_listbox = 0;
} | 1 |
4d17d5eeca61b15e4c35b1951d2904d2 | fb2c26e91e91d31ab4dde4ff7695fb02 | 打开帮会日志 | function GuildvoyageController:openGuildVoyageLogWindow(status)
if status == false then
if self.log_window then
self.log_window:close()
self.log_window = nil
end
else
if self.log_window == nil then
self.log_window = GuildVoyageLogWindow.New()
e... | 1 |
35e79e6de4cd9d5fa2c41afceb268ceb | b8750e02a33249a59ff05c32e20afc7d | 弹出表尾 | function this:pop_back( )
if(this.size == 0)then
_throw("XList.pop_back error,size is 0")
end
local tmp = this.head.prev
tmp.prev:connect(this.head)
if(this.intrusive)then
tmp.__node__ = nil
end
XListAllocator_dealloc(tmp)
this.size = this.size - 1
end | 1 |
e54bf8ae473628652b80fc0298540ff1 | e9c8e0bcd3c09f985e6bf4c491686631 | 通过类型名获取ILog实例。 | namespace MyBatis.Common.Logging
public static class LogManager
public static ILog GetLogger( Type type )
{
return Adapter.GetLogger( type );
} | 1 |
8394107a9b32ab90e8410c07b5bfed78 | 7f57316e6d06142a7fcb7602eecae709 | carts cannot contain repetitions | class Products extends Component getCartList()
function removeDuplicates(array) {
const unique = new Set(array.map(e => JSON.stringify(e)));
return Array.from(unique).map(e => JSON.parse(e));
} | 1 |
55899e28b5fb0bfec1d914990e525248 | 920caede0e76605d24b262aba83e30f5 | 如果某名的checkbox至少有一个 checked=true 则返回 true | function hasChecked(cbName){
if(cbName == undefined){
return false;
}
if(cbName.length == undefined){
if(cbName.checked){
return true;
}
}
for(var i=0; i<cbName.length; i++){
if(cbName[i].checked){
return true;
}
}
return false;
} | 1 |
7d5b2c0756e797eee30d5e005ce87b4f | a36f7664e05ad2e1824ee12663d69fe8 | Returns the packet length field of the received packet. | class CCSDSio:
def packet_length(self) -> int | None:
if self.__hdr is None:
return None
return self.__hdr['length'] | 1 |
2fa69f52b8babcb9416c7922a31ecc91 | d515e301c4b99e4e097c6376446d7b08 | 绝缘电阻测试 | {
byte[] cmdBuf = new byte[CGloabal.nCOM_RECV_NUMS];
CGloabal.MakeTestCmd(8, CGloabal.g_dUserInputVolt, cmdBuf);
Power.SetOutputVoltage(CGloabal.g_InstrPowerModule.nHandle, CGloabal.g_nSimulteFlag, CGloabal.g_nPowerModuleChanID, CGloabal.g_dUserInputVolt, strErrMsg);
... | 0 |
e0814bc4eacabf736cdb30a7a51fed83 | 04f5872746952e5cc4dd907393d3c6e2 | gestion des passagers liés à une réservation. | {
SqlConnection oConnect = new SqlConnection();
SqlDataAdapter dataAdapter = new SqlDataAdapter();
DataSet dataSetPassagers = new DataSet();
try {
SqlCommand command = DatabaseUtils.GetCommandForStoredProcedure("adminAirline.PLAN_FetchListePassager... | 1 |
237d3d03effdee3ce187e79eb4203b9a | ddeb2cc4f99086f5cb46d29b5323e54c | Метод проверяет работает ли листенер. | public abstract class ImageOfAbsoluteConicRobustEstimator
public boolean isListenerAvailable() {
return mListener != null;
} | 1 |
b823349b1ff7cb6ca656d6a6af079c8b | fd80af9b44e1ed213da8f51f107545c9 | The message group id of the queue. | @ConfigurationProperties(prefix = PubSubProperties.BIAN_PUBSUB)
public class PubSubProperties
public String getGroupId() {
return groupId;
} | 1 |
4c8f2ebbc72472de5c7bc0ce1daa9193 | c03fb63b663b016eac3537ff8bc46baa | Ouve o servidor para buscar novas mensagens | while True:
mensagem = client_socket.recv(MTU)
if mensagem == "exit":
client_socket.close()
break
print mensagem | 1 |
d4c2b623f2747f3344b1cf08bc729c8c | 6bd5046bedd1c44efda813b250b91bd0 | !
@brief Initializing DSP core.
Power up DSP
Enable DSP clock
Reset DSP peripheral | {
#if defined(STM32F765xx) || defined(STM32F769xx)
SCB_InvalidateICache();
SCB_InvalidateDCache();
SCB_EnableICache();
SCB_EnableDCache();
#endif
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
__GPIOA_CLK_ENABLE();
__GPIOB_CLK_ENABLE();
__GPIOC_CLK_ENABLE();
__GPIOD_CLK_ENABLE();
... | 0 |
e848dc6a0ccafa41a138406e51d02b72 | 6805ed1b6f9c765a6135078403414a04 | 若点击某项,将某项的值设置到搜索框中并提交表单 | function formSubmit() {
$("#searchName").val($("#searchNameMain").val());
document.getElementById("searchAll").submit();
} | 1 |
1acab4ef6ea2d0c8ab6b86a197350a7d | 1e03f686b2ac74cefa07acd023d0f75c | propagate the bank/pclath register value to the destination | PPR_PfeSetDestM29 (const void TTX_MEM* pDest)
{
bool_t bOk = FALSE;
const TTX_Address_t dest = ((TTX_Address_t)pDest) >> 3;
PPR_REQUIRE( (((TTX_Address_t)pDest) & 0x07) == 0 );
TTX_Reg32Write( VBIPPR_BPKT_DES_BADDR_REG_0x40d8, dest);
bOk = ( ((TTX_Address_t)8)*TTX_Reg32Read(VBIPPR_BPK... | 0 |
ee46a0b1a3bc156d5e87731832c0f3bf | 748a2638625cb0b2f0dde58de7d4dd7c | returns a list of alt names | class pFont(object):
def alternates(self, namesOnly=False):
return [glyph if not namesOnly else glyph.name for glyph in self.fg if self.__altMarks['alt'] in glyph.name and not self.__altMarks['hide'] in glyph.name and glyph.name not in self.__specialGlyphs] | 1 |
f4b89e4da07bddf972f977cecf07961c | 6b77231aabf3a34831c28c8b4f07ccc7 | Удаление коллекции постов с указанным префиксом. | namespace vkProject
public partial class MainWindow : Window
private void UnloadPosts(int begin, int end)
{
int now = begin;
for (; begin < end; ++ begin)
{
posts.Children.RemoveAt(now);
}
} | 0 |
0121f3f49d7f69e04acc0317603f2004 | 3b3a0a209afb4a9cbe5f98f17a221f1e | Builds the model based on the target function and the constraints | class ModelFunction(ot.OpenTURNSPythonFunction):
def __init__(self, W, L):
ot.OpenTURNSPythonFunction.__init__(self, 6, 1)
self.W = W
self.L = L | 0 |
a15b01529574a6c6ab5cb1fa16230c81 | 57e3550e5a924582230ee0744578e9a2 | 获取Intent, 以此方式启动,登录成功后将跳转至指定Activity | public class LoginActivity extends BaseActivity
public static void startIntent(Activity activity) {
activity.startActivity(new Intent(activity, LoginActivity.class));
} | 0 |
3ab3c3913613686df8889f1fa43fdc94 | f3042ee44bc187b02b1522e05a10f46e | Close the extrude valve (if any) | bool valve_exhale() {
HAL_GPIO_WritePin(PEP_VALVE_GPIO_Port, PEP_VALVE_Pin, PEP_VALVE_EXHALE);
return true;
} | 0 |
f06475dd2f2a8dc577c880a3bebf11db | 4b310c26d861895440abea42ade40bef | Picks up where startActionForTest() left off and actually calls the
controller action. | @Ignore
@NoHttpd
@TestPlugin(
name = "high-availability",
sysModule = "com.ericsson.gerrit.plugins.highavailability.Module",
httpModule = "com.ericsson.gerrit.plugins.highavailability.HttpModule")
public abstract class AbstractIndexForwardingIT extends LightweightPluginDaemonTest
protected abstract void doA... | 0 |
52ac8bd75d738f680b879881019d1f84 | 3d5580e149ddf5716475efcde9d6b49b | 设置三级分销人员单独下单优惠比例 | $distribution_isuse = Model('setting')->getRowSetting('distribution_isuse');
if($distribution_isuse['value'] == 1){
$member_now_level = $member_info['distribution_level'];
$member_now_lpower = 0;
$all_level = Model("distribution_level")->order("level_weight asc")->sel... | 0 |
0428ed780ac23a03ff784aa713993403 | 2e52e393eea6258c0d7a37e17c67d67b | Adds a has_Description_Material property value.<p> | public com.ibm.adtech.jastor.Thing addHas__discussion() throws com.ibm.adtech.jastor.JastorException; | 0 |
b3625173ca5a119a4662284ddf121b11 | 79802eedfab21af7dd19feff440421b6 | Returns a valid shell function name, or the empty string. | class InterpretableLanguage(Language):
def get_shell_name(cls):
return cls.get_interpreter_name() | 0 |
110145a7f1c5acb08ae1e591429195b9 | aa83452643fd403e0f563c3a596332b0 | Configures the storage of subscriptions in Amazon S3 | CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
getApplicationContext(),
"us-west-2:af04cf4e-54ef-4854-97aa-8613ba65e9a9",
Regions.US_WEST_2
);
setAmazonS3Client(credentialsProvider);
} | 0 |
48d5c3f3e2a6ab7066325ecb7392bbd1 | a63547b949fd73c183735530ca7a0d55 | <p>enq220DefDateMonth をセットします。 | public class Enq010ParamModel extends AbstractParamModel
public int getEnq010svAnsDateToMonth() {
return enq010svAnsDateToMonth__;
} | 0 |
568453fe173ad924fe9d65cf53657fff | 16dbc1b4d7705e37886f9599f4cf3151 | Get a local property set upstream in the driver, or null if it is missing. See also
<code>org.apache.spark.SparkContext.setLocalProperty</code>. | public void setLocalProperty(String name, String value); | 0 |
3be79058c2f897d77be8c673af9860fa | dc0e3044f4e31adb60afdcab31febfc7 | Привязываем текстуры к разным текстурным слотам,
ранее установленным для uniform-переменных (см. `Use`). | void Procedural::prepare(gpu::Batch& batch, const glm::vec3& size)
foreach(QString key, _uniforms.keys()) {
std::string uniformName = key.toLocal8Bit().data();
int32_t slot = _shader->getUniforms().findLocation(uniformName);
if (gpu::Shader::INVALID_LOCATION == slot) {
... | 0 |
c89dfe894d7d904d34f9044b358beef1 | 8b0539ca6441e34257296879b8a292b7 | Bläddra bakåt | def hoyre():
BrickPi.MotorSpeed[motor2] = -hastighet
BrickPi.MotorSpeed[motor3] = hastighet
BrickPi.MotorSpeed[motor1] = hastighet
BrickPi.MotorSpeed[motor4] = -hastighet
BrickPiUpdateValues() | 0 |
fb22291fc54db1be22febcf918461f69 | 06631f9cfb1120900226ac0e3cfdb779 | tato metoda mi vytvori combobox s moznostami akeho specialistu si mozem vybrat | public class AppointmentController implements ActionListener
private void createSpecialityComboBox(){
SpecialityRefference refference=new SpecialityRefference();
DefaultComboBoxModel newModel = new DefaultComboBoxModel(refference.getSpecialityTypes().toArray());
getView().getSpecialityComboBox... | 1 |
5aeacf1a68438a95f239346350465da3 | d614f2e4c05c469cc457ad84154ca0e8 | 获取相邻顶点 | def getAdjacentVertex(n , e):
if (e[0] == n):
return e[1]
else:
return e[0] | 1 |
afcef7f6e81ca50e1eb0443ecf799802 | 9ffa2a224a0ea9df790bd5e709dab95c | GET: vLeaves | namespace VueHr.Controllers
public class UserLeavesController : Controller
public async Task<IActionResult> Index()
{
var vueHrContext = _context.UserLeaves.Include(u => u.Employee).Include(u => u.LeaveType);
return View(await vueHrContext.ToListAsync());
} | 1 |
4c162ca97fb6a788eeb4e83a45d2d996 | 79cdd9b3f85fff3d289b8ee634e75074 | for plus_minus | def plusMinus(value):
if value < 0.0:
value = 'm'
else:
value = 'p'
return value | 1 |
1d9a1e788550722d980f98c5daa1ed84 | 4b22714934a4046ff3be10d32bc2e43f | https://stackoverflow.com/questions/9433541/movsx-in-python | def swapper(B):
return (B << 4 | B >> 4) & 0xff | 0 |
98b261a688e5a93e8ce5e7fea8a5abce | 4f77f7cebd07b22a2c2daba1ff31d20d | Custom sort based on first number in each line of summary.txt file | def sort_enum_col():
def my_key(item):
return item[1]
return sorted(enum_sum_columns(), key=my_key) | 0 |
f7d318169eaaa60777dbb4e6d4312b65 | aea9a990fbbb14c750e76aa53ab890b7 | 關閉全部程式 | namespace Image_repair
public partial class Form1 : Form
public void FullClose()
{
System.Environment.Exit(0);
} | 1 |
b70f8cf3659a8d440a6bfce25684a71f | 61d8964684fb7fe81f193e3153373ece | palindrome in a array using recursion | bool isPalindrome(int arr[],int n){
int l=0;
int r= n-1;
while(l < r){
if(arr[l] != arr[r]){
return false;
}
l++;
r--;
}
return true;
} | 0 |
4d7aeddeeedfadaa60ce4b9b3bf394b2 | b474f41d39ea69b60f9f5572afc625e2 | parse an XML declaration header for external entities [77]
TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?> | int parse_declaration(XmlParser *parser)
{
char *begin;
char *p = parser->workp;
if (p != parser->string)
{
print("cannot start a declaration with a blank space!\n");
return terminate(parser, p);
}
begin = p;
p = p + 2;
bool isVaildVersion = false;
if (!strcmp_part(p,... | 1 |
063d47091887f1376805ee822ecfe6ad | 4ec5a56f29b9a0c3f0fe4f1fee0b29c8 | r"""
Get all keys as a tensor. | class SparseVector(AbstractSparseArray, LabeledVectorMixin):
def keys(self):
return list(self.find()[2]) | 0 |
f900e64a70980ffc44801e4229cfa19a | 5247e1b403c478608d0fd76031c10002 | Opens a Session between an application and a token in a particular slot.
use <tt>CKF_SERIAL_SESSION | CKF_RW_SESSION</tt> for read-write session.
* If called with block, yields the block with the session and closes the session
when the is finished.
* If called without block, returns the session object. | __root CK_RV SE_KMS_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags,
CK_VOID_PTR pApplication, CK_NOTIFY Notify,
CK_SESSION_HANDLE_PTR phSession)
{
CK_RV ck_rv_ret_status = CKR_OK;
uint32_t primask_bit;
SET_CALLGATE();
SE_EnterSecureMode(&primask_bi... | 1 |
63fc45f5a5678dfa2708d7b081535302 | a5d2b0b5c291e194bba3912c2221adf6 | spawns a volley of snowballs at the top of the screen | {
if (timerLock == false)
{
StartCoroutine(delay(2f));
GameObject fire = (GameObject)Instantiate(fireball, fireballspawm.position, fireballspawm.rotation);
fire.GetComponent<Rigidbody>().velocity = fire.transform.forward * 10.0f;
Destroy(fire, 3);
... | 0 |
60bd79166e87bf12aefeb10f1ac6b3ed | f59a16986e9d79a473df6f782dcb1d28 | AUC and mAP metrics only work when positive sample presents.
However, in some batches, a class' ground truth labels could be all negative.
Thus, we need to filter out those classes to avoid computation error. | img_ids = rois[:, 0].long().unique(sorted=True)
assert img_ids.numel() <= len(img_metas)
bboxes_list = []
for i in range(len(img_metas)):
inds = torch.nonzero(
rois[:, 0] == i, as_tuple=False).squeeze(dim=1)
num_rois = inds.numel()
bbox... | 0 |
95b365c8ef2334c8c45c10ddc9877742 | 16d496b78188ddac3b46bfcc12620eec | this method expects a proc | def my_map(&my_proc)
return self.to_enum unless block_given?
arr = []
for i in self
arr << my_proc.call(i)
end
arr
end | 1 |
feba3bc216f63ed7a2b5990b881c3331 | 7fcfb1b97ba117d79501973501bd88c5 | !
\fn void astarList_set_on_first(astarList * l)
\brief Set the current cursor of the list on the first item | int i = l->elem[0].cur;
if (i) {
l->elem[0].cur = l->elem[i].cur;
}
return i;
} | 0 |
f3b5367b1a9b32ecd8192f70516e4d7d | b71adb2ff79f7603dcdcdf714ca99b34 | join the array guessingWord to a string | function getGuessText(){
var wordLength = HM_Word.length;
var guessText = "";
for(var pos = 0; pos < wordLength; pos++){
var letter = HM_Word.charAt(pos);
if (GuessedLetters.includes(letter)){
guessText += " " + letter;
} else {
guessText += " -";
}
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.