query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
49af7bf5f5105f7bcc7a59596cad0317 | 06bf14bf1894520bb6aca4494e5beec8 | calculates distance to target | public class MainActivity extends Activity implements View.OnClickListener class MyServerThread implements Runnable
public double distanceFromTargetPos(float targX, float targY) {
return Math.sqrt(Math.pow(targX, 2) + Math.pow(targY, 2));
} | 1 |
f1f7c4f577eb92cd6ccb48e41017c612 | e9aca177477c193ef6947d17974dfdc2 | 查询公会中个人相关信息 | function ChessSociatyModuleController.onGetSociatyMemberInfo(self,data)
if not data or type(data) ~= "table" then return end
local params = {};
params.param = data;
HttpModule.getInstance():execute(HttpModule.s_cmds.getSociatyMemberInfo,params)
end | 1 |
64a064103ad5e16037c9dc3782c8844a | ce571e65f1355be1622e8691735bfc4b | A string that is not printed in tracebacks | get TRACE() { return 'trace' } | 0 |
f981d97274c537666b56e0c9444e78f6 | 9c1e24969deb174ef2865b057fd1b521 | Has to be called by all static methods to ensure the table exists.
Creates the table with the provided column-settings of the child-class | class Table implements \Iterator,\ArrayAccess,\Countable
public function create()
{
} | 0 |
ee6f06bada5f46963988b48bdf036a2a | 0d96163c80f9c690e4a5f30e510329da | Actualiza y agrega un contenido | {
if (isset($data) && is_array($data)) {
$arr = array('author' => $data['author'],
'description' => $data['descr'],
'keywords' => $data['keywords'],
'url' => $data['url'],
'title' => $data['title'],
'text' => $data['... | 1 |
2ebc9886558b79ae13bd208c5519a4c3 | 01464648d6e29019a91f7a2b1c0fc641 | Check if [`Sig`]nal is present in [`SigSet`] | impl<T> AsmOption<T>
pub fn is_present(&self) -> bool {
self.present
} | 0 |
dd98916151a21f5f15ba940ab1ef9589 | 7f61448ad6da3ef0f9cb03f40c5be655 | ==========================================================
= Python Interfaces (Abstract method) =
========================================================== | cases like (1) | 0 |
6a4d5836f65c86c2f54e5904fce53991 | edce924e4d155175ef37894666049970 | Custom value object for opening times without seconds. | unsigned int secs, bool am_val)
: hours{hrs}, minutes{mins}, seconds{secs}, am{am_val}
{} | 0 |
738e320b8b755412a1e98c153cec403d | f964f20cca44c60d2b200cab42d06e88 | Pytest fixture for exporting the :class:`~backend.python_interface.AltInterface` instance. Context manager is
responsible for both setup and teardown (thanks to ``yield`` keyword). | try:
self._establish_connection()
yield self
except BaseException as e:
raise exceptions.StorageError(str(e))
finally:
self._destroy_connection() | 1 |
67ff73776bf03b7065afc77148e00d70 | 3ac15233dea9e8b8b86dcf786e326f68 | 更新剩余输入字数 | function words_count(){
var curLength=$("#number").val().length;
if(curLength>500){
var num=$("#number").val().substr(0,500);
var over=curLength-500;
$("#number").val(num);
alert("超出"+over+"字,多出的字将被删除哦" );
}else{
$(... | 1 |
9c84d330da7e205d14ac99e3b7904f07 | 7e785bdfc1006b8533baa00122c3ebd2 | Присоединение второстепенных трип_транспортов к основному | {
int index = ui->comboBox_edit_trip_number_2->currentIndex();
ui->comboBox_edit_trip_number_2->clear();
for(auto it : ctr->terminals)ui->comboBox_edit_trip_number_2->addItem(it.name);
ui->comboBox_edit_trip_number_2->setCurrentIndex(index);
QString cur_t = ui->comboBox_edit_trip_number_2->currentTe... | 0 |
c13beafaef90032b37778a0fd3d1ac2d | 096240548e3593e5e1364cee740e4ef8 | 根据筛选条件获取数据记录集合:含分页排序(多个排序字段:字符串) | namespace EDRS.IDAL
DataSet GetListByPageEx(string strWhere, string orderby, int startIndex, int endIndex, params object[] objValues); | 1 |
b413d56576892ed433d5595143a04279 | 85baf79f280b59f862943fd1af9df8d7 | Create code of start and end line of method header. | {
return __CLASS__ . '[' . $this->className . '::' . $this->methodName . "()] {\n}\n";
} | 1 |
d0eb1c8a71ac76885caaac6bc01ed342 | eb08cbf7ae6b67ae84be6c5fd7326569 | function to split a row into seperate words by space and comma | string input;
cin >> input;
vector<string> commaSplitted;
commaSplitted = split(input, ',');
return commaSplitted;
} | 0 |
17eb2b77ad33bfca6645a764292666df | eb218469f81be976d970ed0adc042720 | Связь с производителем | class Product extends Model
public function company()
{
return $this->belongsTo(Company::class);
} | 1 |
79cc1ea7e4b4803b49ea66e23c15005a | 8a9baa46cc32d4361a41447349348633 | Remove hop-by-hop headers from a header dictionary. | def remove_hopper(message):
lines = message.split("\n")
hoptohop = ["Connection", "Transfer-Encoding", "Keep-Alive", "Proxy-Authorization", "Proxy-Authentication", "Trailer", "Upgrade"]
output = ""
for line in lines:
if(line.split(":")[0] not in hoptohop):
output = output + line + "\n"
return output | 1 |
69b065956da488f458a33c3e9e708beb | 50493eb314b18035495b36efb4d64b58 | Method to download a CV | class ReportManagment extends ParentController
public function download_pdf($id){
$cvr_id = array('id' => $id);
$url = '/fpdf?'.http_build_query(json_decode(json_encode($cvr_id), true));
if($url){
return redirect($url);
}
} | 1 |
df66f786e6a69f014c59bbb45e0e6b6e | d008662406e5b40fa33ee73d334f4613 | check, whether BPEL project wsdl-operation is in ESB service | namespace WsdlValidationTests
public class WebServiceTestsUsingWsdl
static public bool doesWsdlSupportMethodInBinding( Uri wsdlObj, string bindingName,
string methodName ) {
try {
WebClient testWsdlValid = new WebCl... | 0 |
f051e2894c62394c19d9785c850fa611 | 5d54788b63c49131818a7a7911271741 | Test that the variable names are automatically deduced from the
first available stream. | class TestCommandLineParsing(unittest.TestCase):
def test_main_config_variables(self):
self.parser.define('a_float', default=6.5, type=float)
self.parser.define('an_implied_string', default='here')
self.parser.define('a_string', default='now_here', type=str)
self.parser.define('an_int', ... | 0 |
cd23f4c47231a68bf9824fe84cfb8a49 | f521dc33faf3b50475acabcfebea47ee | Checks if copy action is available. | boolean canCopy(); | 1 |
fd01e2fa8935a9a2f37148154e2df619 | bee8047f3ef6804201fb4626ad68524c | In RX mode the receiver demodulates the signals from the RF channel, constantly
presenting the demodulated data to the baseband protocol engine | {
uint8_t byte;
uint8_t pos;
for(pos = 0; pos < length; pos++)
{
byte = src[pos];
switch(rx->State)
{
case RX_IDLE:
if(byte == 0x55)
{
rx->Msg.Header = byte;
rx->State = RX_CHECKSUM_LSB;
AppTimer_StartTimer(rx->TimeoutTim);
}
else if(rx->PatternSignal != INVALID_SIGNAL)
{... | 1 |
58eac2735aabbdbbfb49b08d40ef4437 | 5329ed4a6ff34dae3a2b79e9be948a63 | <p>
Creates a launch configuration.
</p>
<p>
If you exceed your maximum limit of launch configurations, the call fails. To query this limit, call the
<a>DescribeAccountLimits</a> API. For information about updating this limit, see <a
href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.ht... | java.util.concurrent.Future<CreateLaunchConfigurationResult> createLaunchConfigurationAsync(
CreateLaunchConfigurationRequest createLaunchConfigurationRequest); | 1 |
503312a2f957fab35f2bac2c3cf979ff | ce4b8e60e71d2aabe45c77e9ff74006e | Gets the number of active group messages | {
SqlCommand cmd = new SqlCommand();
cmd.Transaction = GetTransaction(); cmd.Connection = GetTransaction().Connection;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "Select Count(*)" +
" From dbo.Message M" +
... | 1 |
e0220ed56ec12de7ff0df5108731bd2e | 1f8421e8a80b8694e87594eea2619bff | Insert into front of list | void insertFront(struct Node **head, int n) {
Node *tmp = *head;
tmp->data = n;
} | 0 |
904b2f91317a0d7e4db705ecb1073093 | 118ea687544413072f91db44f1f297dd | Set the epargne sal mnt4. | class EmpDadsuRectif
public function setEpargneSalMnt4(?float $epargneSalMnt4): EmpDadsuRectif {
$this->epargneSalMnt4 = $epargneSalMnt4;
return $this;
} | 1 |
0f21294ffa1abb1f5b14f01ac5144c73 | c6ca93133d21fc3adf28fc40b15feb64 | Creates a division combinator. | function getCombinator() {
var type = NodeType.CombinatorType,
token = tokens[pos],
line = token.ln,
column = token.col,
content = tokens[pos++].value;
return newNode(type, content, line, column);
} | 0 |
71eba3fbccba5800241dcb62ba42c2ac | 5a2a575af612023856bf3757f4abef9d | Represents the leading icon color for a menu item, depending on its [enabled] state. | internal sealed class AndesButtonHierarchyInterface
fun iconColor(context: Context) = textColor(context) | 0 |
b1070aebae40efd98b8432fad109695f | b642aabf4ce5f9e42f4ca632cad6599a | Initializes necessary drivers for the AVR, some drivers are already set in the TinyTimber kernel | timeImpl.init(0);
rateGroupDriverComp.init();
rateGroup20HzComp.init(10, 0);
rateGroup1HzComp.init(10, 1);
eventLogger.init(10, 0);
chanTlm.init(20, 0);
cmdDisp.init(10,0);
health.init(25,0);
groundInterface.init(0);
#ifdef COMM_SERIAL
comm.init(0, 115200);
#else
comm.init(0,... | 1 |
8aa79dc0abebbcb7eb03e0a4402e64f8 | 5698ff760ec933d8697223e75d65b7e5 | Adds listeners to the table to be used by the popup menu | public class MainViewFXMLController implements Initializable
public void setTableListeners() {
target_table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
final ContextMenu rightClickMenu = new ContextMenu();
final MenuItem addToMonitoringItem = new MenuItem("Add to monitoring");
... | 1 |
d49db43c1eecee9502e5c2d0b18fb6e4 | f27c6c3a04fc51ed59d10d8d05de0ad7 | Returns a new object of class '<em>Hospital Admission Medications Section Entries Optional</em>'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | ImmunizationsSectionEntriesOptional2 createImmunizationsSectionEntriesOptional2(); | 0 |
c249d0974e1015ed7fd7a4e0e425093d | e40eec79fd8e76c5533f3bb84aa5aba2 | 'a'-'z' | class Lexer(val source: Source)
private fun isLetter(code: Int): Boolean = (
(code in 0x0061..0x007a) ||
(code in 0x0041..0x005a)
) | 1 |
c4b4638f985bbed0098ab5f54d2ca6e8 | c11e4064edf465d7551d661a4b481f19 | Returns orders which have not been processed. | public override IEnumerable<Order> Get()
{
var orders = m_repository.Entities.Where(x => !x.IsFinished).ToList();
return orders;
} | 1 |
8f768faa305922ec09c469d82783057b | daef8c818d8860593035d664aac948d0 | Callback function for mouse selection.
This is the callback function used by the method queryAABB to select a physics
body at the current mouse location. | var c = document.getElementById('c');
var offsets = c.getBoundingClientRect();
var x = ( ev.clientX - offsets.left ) / c.width * world.width;
var y = ( 1.0 - ( ev.clientY - offsets.top ) / c.height ) * world.height;
var pos = new Vec2( x, y );
for( var i = 0; i < world.obs.length; ++i ) {
... | 1 |
a363484e2c3595f4744d6a052a26f42b | 8f9ae9546aed7c6c372d3dfc285b59e0 | 删除所有融资项目及其相关的信息 | $funding_list = $this->getFundingList($condition);
$funding_id_string = '';
if(!empty($funding_list)) {
foreach ($funding_list as $value) {
$funding_id_string .= $value['funding_id'] . ',';
}
}
if($funding_id_string !== '') {
$m... | 1 |
5f2be00069ae13fb538db411222cbce3 | d0de314354092bdb7cd7ac7e73c43ecc | 获取x轴敌人数量 | {
int i;
int number = 0;
for(i = 0; i < game.crossNum; i++){
if(game.isThereEnemy[i] == 1) number++;
number += 2;
}
return number;
} | 0 |
fd3d3b6ec3c2faccc687c68668dd4250 | 8a4b5033cd560a4cfab1f8ef4299ddc8 | getMarca
Método que obtiene la marca del objeto Reactivo | class Entrada extends \Admin\Entity\Entrada implements \Doctrine\ORM\Proxy\Proxy
public function getMarco()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMarco', array());
return parent::getMarco();
} | 0 |
76e23463f52b26ee6578457654a27923 | fa889cbee42855557e8f3a7001756433 | Clear highlighted text in all pages that make up the current document | for ( let doc of this.domDocuments ) {
const domSelection = doc.getSelection();
if ( domSelection.rangeCount ) {
const activeDomElement = doc.activeElement;
const viewElement = this.domConverter.getCorrespondingViewElement( activeDomElement );
if ( activeDomElement && viewElement ) {
doc.getSel... | 1 |
4e09fed88b180d1c8a273f885920783f | af8ce863776557c96792cf0cd99489b8 | Gets the note attached to the given study. | namespace Fujifilm.Synapse.DAL.Query.Workflow
StudyNote GetStudyNoteByIuid(string studyIuid); | 1 |
d1fd5d7fa17daa40884363d7fe4147e5 | 454cf520f982cc8262f66de13af813b4 | @brief Sets signal handler for SIGINT and SIGTERM | void signal_init()
{
signal_set(SIGINT, sigint);
signal_set(SIGTERM, sigint);
} | 1 |
212742079d9b1bf5b0f7a1c060443bb1 | 1b0c31a840224314c125079100d838e6 | (根据初始阵营)选择初始卡组 | local nowId = TeamProxy.Instance.myTeam.type;
local cells = self.targetCtl:GetCells();
for k,v in pairs(cells)do
if(v:InitChoose(nowId))then
break;
end
end
end | 1 |
6900468fe24ca0f1b0ee13e003ad679a | f16ca19fbd1fdbd982738881af7b2490 | Verifica se o caracter do texto está presente no padrão | public class PDFByteArray
public boolean isChar(String chars) { return isChar(getPosition(), chars); } | 0 |
796425792dafae04f63662c8163b39c7 | 33e05c8ff50576314afdea5250b05bf1 | Helper routine to form the IDS SL900A AccessFifo Read command | {
byte bitn =0;
if(funcType == READ_DI)
startreg += 10001;
else
startreg += 1;
_len = numregs/8;
if(numregs%8)
_len++;
_len +=5;
_msg = (byte *) malloc(_len);
_msg[0] = _device->getId();
_msg[1] = funcType;
_msg[2] = _len-5;
while(numregs--)
{
if(_device->get(startreg))
bitSet(_msg[3], bitn);
e... | 1 |
ac1e9dd85d93373ed307e91d702ab4b9 | 40f3ede91efc596a5297679533a3973b | Upload local_path to GCP cloud_path | result = False
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blob_fn = os.path.basename(file_path)
blob = bucket.blob(blob_fn)
try:
blob.upload_from_filename(file_path)
print("Uploaded [{}] to Google Cloud Storage bucket [{}]".format(blob_fn, bucket_name))
result = "g... | 1 |
9621149b61c3b789fccf9194e617fa48 | 4697b6f836ee8b7ce9bc897e7fce525c | Gets ORCs in the selection, if any. | return isActorSelected() || !isPlanner() ? Collections.singletonList( actor )
: getAllActors( getAllAssignments() );
} | 0 |
2468604e11584b078a3f2669ba1a8c5e | 03d67ed157c4c63d2869c270a4f0b3c0 | The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59". | public String getIntervalRule() {
if (StrUtil.isNotBlank(rule)) {
return rule;
}
if (month == 1) {
rule = "自然月";
return rule;
}
List<String> ruleList = CollUtil.toList();
for (int i = 1; i < 12; i++) {
int end = i + month - 1;
ruleList.add(StrUtil.format("{}~{}月", i, end));
i = end;
}
... | 0 |
abb4b846ed4ad75b8451ace3bf98e3b5 | 09a0e3c3ab868706e3d4c05e58c4a7a4 | 通用机器人性格列表 | {
$page = Yii::$app->request->get('page',1);
$limit = Yii::$app->request->get('limit',10);
$rows = (new Query())
->select('*')
->from('t_general_robot_character')
->where('')
->orderBy('id')
->offset(($page-1)*$limit)
->... | 1 |
58277de02322665faf18a60d08d63c25 | 99dc6e63894ebdb368eb3032fb551efb | e.g. 24-Jan-2018 | function rearrangeFormattedDate(dateString) {
const dateParts = dateString.split('-');
return dateParts[1] + '/' + dateParts[2] + '/' + dateParts[0];
} | 0 |
fd444df50f0482dc6dd7c7643ac49f58 | 48c853b65431c9ccdf1abca881d936c0 | Test running from inside meta folder. | class TestInfoFromMetaDir(unittest.TestCase):
def test_simple(self):
data = textwrap.dedent("""{
"arch": "amd64",
"build": 1,
"ctime": "Thu Apr 24 15:41:24 2014",
"hook": false,
"key": "VTK-5.10.1-1.egg",
"name": "vtk",
"osdist"... | 1 |
adb8337c297bde5953265ffee26ec14c | f3e5355e1fb8ccb2636e84c07f1ea5c0 | Sets the link type of an adapter
the "link type" determines how the driver will encode the packets captured from the network.
Aircap supports two link types:
- \ref AIRPCAP_LT_802_11, to capture 802.11 frames (including control frames) without any
power information. Look at the "Capture_no_radio" example application i... | static void fw_caps_to_lmm(enum fw_port_type port_type,
unsigned int fw_caps,
unsigned long *link_mode_mask)
{
#define SET_LMM(__lmm_name) \
__set_bit(ETHTOOL_LINK_MODE_ ## __lmm_name ## _BIT, \
link_mode_mask)
#define FW_CAPS_TO_LMM(__fw_name, __lmm_name) \
do { \
if (fw_caps & FW_PORT_CAP32_... | 0 |
b7d8f9f5441ed564c5f9ae1c68be933f | b15fbcfee65f49a6c1fe4d6403378d54 | Returns a boost of the search result. | $boost = (float) $boost;
$this->boost = $boost;
if ($notify) {
$fields = $this->index->getOption('fields', array());
if (isset($fields[$this->fieldIdentifier])) {
if ($boost != 1.0) {
$fields[$this->fieldIdentifier]['boost'] = $boost;
}
else {
unset($f... | 0 |
eaba824803b29582a5e059337c5497ad | e2ef8b6e74db13ed48361ee6823f294f | Invocata dal dialog API key, quando viene inserita una nuova key valida. | public class TeleportalLogic : MonoBehaviour
public void ApiKeyOk(List<string> args) {
TeleportalAuth.Shared.AttemptSavedLogin();
} | 1 |
b05a502f944665b17d283c9a1fd58ec2 | 5a2c0cd7db52f743729ab35830e52c28 | Get the messenger RNA features | class MessengerRNA (GRNElement):
def __init__ (self, parent, sequence):
GRNElement.__init__(self, parent)
self.sequence = sequence | 0 |
ae44e685ef0c060c305ede72d43d275f | ae7f1e2efa11b48fc551f3b3f9ecc0b8 | split_overlap() divided an existing blame e into up to three parts in split.
Adjust the linked list of blames in the scoreboard to reflect the split. | Header *nextp = afterp[2].blkp;
bp[1].blkp = afterp;
bp[2].blkp = nextp;
afterp[2].blkp = nextp[1].blkp = bp;
} | 1 |
2a651740a332ddd4f1d530e060a4382b | e205baf20ac4117b8b8ff5f834b4421f | Returns the current object as string. If value is null or DBNull, returns String.Empty. | namespace Avend.API.Model.XmlNullable
public override string ToString()
{
return HasValue ? Value.ToString() : "null";
} | 0 |
e9d92694cb72276a8ddc48426bd7b125 | abf7a32a3d78706ebdf514af7f7188bb | 生成图书快捷搜索按钮 | {
try
{
string searchWhat = context.Request.Form["searchKeywords"];
StringBuilder sb = new StringBuilder();
sb.Append(@"<ul>");
string sql = string.Format("BookName like '%{0}%' or BookTitle like '%{0}%' or BookClassfication... | 0 |
b341db7d740e8d4e9ec31a25eb997b4f | ef2e262a2bbf3cc08fdb07b47a10a1d5 | Returns a new object of class '<em>Column Text Object</em>'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | TextObject textObject = new TextObject();
textObject.text = text;
return textObject;
} | 0 |
f59b5fd0ddeb5be2ac996dc2b5cba7aa | 473ef30d949a1036f1899a09a6c7142c | Load the Monaco editor object. | function configureMonaco(monaco) {
} | 0 |
b22053c68789e013c70568032b90e1d3 | ce14ba15482b27cb4ceebea12c041d2d | Save a query string to SharedPreferences | interface NaverLocalDataSource
fun saveQuery(query: String) | 0 |
abe1e52bbe87446b5decdf4f8d07594a | a90f592ac2c69690e777f50fb3d8ae7c | Encode the commands to a DisMod database so they can be
passed to the command line. | class Agilent33250a(TriggerableDevice):
# A human readable name for device model used in error messages
def generate_code(self,hdf5_file):
TriggerableDevice.generate_code(self, hdf5_file)
grp = hdf5_file.require_group(f'/devices/{self.name}/')
dset = grp.require_dataset('command_list', (len... | 1 |
b79d12669b6f8350c3c795c9581b9fad | 7beb8879d86a90f117c40293d44263d9 | Takes stamp of some PDF document page, and writes page numbers
in format " current / total " on this page. | public class iText
public static void updatePageLabels(PdfStamper stamper) {
PdfDictionary root = stamper.getReader().getCatalog();
PdfDictionary pageLabels = root.getAsDict(PdfName.PAGELABELS);
if (pageLabels != null) {
PdfArray newNums = new PdfArray();
PdfArray nums = pageLabels.getAsArray(PdfName.NUMS);... | 0 |
c9e58c51f810eeacc3fda4045b77893b | 39028cd2ed285e4482020a3696cb7a3c | Saves a new NII file after processing | struct nifti_1_header hdr1 = hdr;
int nVol = 1;
for (int i = 4; i < 8; i++) {
if (hdr.dim[i] > 1) nVol = nVol * hdr.dim[i];
hdr1.dim[i] = 0;
}
hdr1.dim[0] = 3;
size_t imgsz = nii_ImgBytes(hdr1);
size_t pos = 0;
char fname[2048] = {""};
char zeroPad[PATH_MAX] = {""};
... | 1 |
d60e91a59cd821ec6cb252e2a92ec20f | 059a6ec33122b06ef4c9b0374ce0e8ba | | Purge database ready for new information |
| NB Only used for storeall | | public class LocalStore extends Store
public void clearCache() {
Debug.v(TAG_DBOPER, "clearCache()");
try {
getMDB().beginTransaction();
String sqlbody = "delete from body";
getMDB().execSQL(sqlbody, new Object[] {});
String sqlattachments = "delete from attachments";
getMDB().execSQL(sqlattachments,... | 1 |
4a84a7acbb4ca6160f055a19ed368be0 | f37df7151e66c917e8e0da3e73bc4852 | Метод, порождающий таблицы (если их не было в схеме) по конфигурации. | namespace COTES.ISTOK.Assignment
class StructureReportSource : IReportSource
private void CreateTables(OperationState state, DataSet dataSet, PropertyManager propertyManager, StructureReportSourceSettings reportSettings)
{
foreach (var table in reportSettings.Tables)
{
... | 1 |
93b4824799a7e38f40d8db64a6ff21f2 | 8aa9437ab7eab1c6e8a68000b315d9d6 | Возвращает дату завершения теста | class Task
public function getDateEnd()
{
return $this->dateEnd;
} | 1 |
3ad808e316b01c184554a4fad4c60909 | 4aa91abf2beef44362f18111bde877ac | Convert the entire paragraph with correct grammar as specified in the grammar file | def autoParagraph(paragraph):
lines = paragraph.runs
for line in lines:
line.text = autoLine(line.text)
return paragraph | 0 |
66264dd79778cabd31c33145d7d0715e | bbe4afa4751d11d7a8050b4b1f3ec1fa | Returns the content of the variable, if it is of type single-value | public class Content extends Component
public ContentValue getSingleValue() {
return _singleValue;
} | 1 |
eb6e0ba74d67ea128f9e340850f70b1a | 836fa4fc0a71ec5f7e516262b2967354 | This is a convenience method that allows direct modification of the value of the record's vUserRoleSummary_.PwdExp field. | @Entity(name = "t_certif_info_common", type = "common")
@OptimisticConcurrency(resolver = BroadleafOptimisticConcurrencyResolver.class)
public class CertifInfoCommon extends BroadleafDomainEntity<CertifInfoCommonId>
public void setPwdExpiryDt(Timestamp pwdExpiryDt) {
container().setPropertyValue(PWD_EXPIRY_DT, pwdE... | 0 |
01b1f44f871af4a59683534e94e09e31 | 7f7a2d56ffe6c5297e08e9b5dc8263fe | Returns a list of scan names (not full paths) of available preprocessed
MOVIE task scan resources. | class Hcp7T_Archive(hcp_archive.HcpArchive):
def available_retinotopy_unproc_names(self, subject_info):
dir_list = self.available_retinotopy_unproc_dirs(subject_info)
name_list = []
for directory in dir_list:
name_list.append(self._get_scan_name_from_path(directory))
return n... | 0 |
04026f987a778512ea80bf5cf6550d9c | 8667069e00da2262720cbabb64aa0cc6 | @brief Get NEG Totalize value. | uint16_t LIB_ZC_GetHalfWaveLengthNeg(void)
{
return LIB_ZC_Control_Var.HalfWaveLengthNegUsec;
} | 0 |
97be061682f49fec251f4c8e644f8005 | 9a39518745e5b3bd624d9f57175ef58e | Extension function to delete the named destination by parsing the embedded type prefix. | namespace Naos.FluentUri
TResult Delete<TResult>()
where TResult : class; | 0 |
2d84a8817a2c1a5f33e33750afdde58f | c3d9f50c649953a0bc4f77bcb19e8ec8 | Converts an array of bytes to an array of ushort | namespace ImageProcessing
public class ByteUtil
public static ushort BytesToUshort(byte[] data, int offset)
{
ushort a = data[offset], b = data[offset + 1];
return (ushort)((a << 8) + b);
} | 0 |
184a1af6d03afaf6305c0c3e62d7a46b | 5a58ad00493fc84e41367a61b27f4361 | Detect if user uses iOS phone | ua = request.env["HTTP_USER_AGENT"]
ua.downcase!
if ua.include?('iphone') && !app_request?
return true
else
return false
end
end | 1 |
41c0db074831b0e548356efc94dd758a | fc72aca7179f64b78f0feaee841711f9 | Get Markov parameters from state space model. | class MarkedSpatialTemporalLSTM(object):
def _m(self, batch_size, hidden_state):
dense_feature = tf.nn.relu(tf.matmul(hidden_state, self.Wm0)) + self.bm0
dense_feature = tf.nn.elu(tf.matmul(dense_feature, self.Wm1) + self.bm1) + 1
eps = 1e-13
rv_uniform = tf.random_uniform... | 0 |
30eb3d355a710241dc78eef8442e5daa | dccb99545cc863f55a35879493a1cb6c | Get NAT网关个数 | {
using (var context = UnitOfWork.Get(netType, DataBaseType.Normal))
{
var q = new NeRepository(context).GetNeCells().Count();
return q;
}
} | 0 |
8b0a9bd7740c577c69f250c65dcc696f | 989663c8f526eb499269cd5bf4e63db8 | 商店每天免费购买物品 | NewShop("1", int32(pb.SHOP_STATUS0), int32(pb.PROP_TYPE2),
int32(pb.PAY_WAY1), 10000, 100, "金币", "100钻石兑换10000金币")
NewShop("2", int32(pb.SHOP_STATUS1), int32(pb.PROP_TYPE1),
int32(pb.PAY_WAY0), 10000, 100, "钻石", "100元兑换10000钻石")
NewShop("3", int32(pb.SHOP_STATUS2), int32(pb.PROP_TYPE9),
int32(pb.PAY_WAY1), 100... | 0 |
491955b4e9e12f92c60f95f0d03061f5 | 3b569b34c4f10a27241c3b4e93303978 | 往上滑 | class DouYin():
def hua_up(self):
self.poco.swipe([0.5, 0.6], [0.5, 0.8], duration=0.2)
time.sleep(0.1) | 1 |
ad72f89a23270a8e930af312370fb9e0 | 4784cb52a760a669c807651e2e9efdc0 | Показує або сховує бокову панель | function showbox(ul) {
if (ul.css('display') === 'none') {
$('.select-menu').hide();
ul.show();
} else {
ul.hide();
}
} | 1 |
794bd11d538f65f1cad0aa766ec5139a | 9a5112999996266b4a7a1b6d3773fc00 | 请求电影搜索,影院搜索数据 | wx.request({
url: 'https://app.vmovier.com/apiv3/index/index',
enableCache: true,
success: (res) => {
this.setData({
findData: res.data.data
})
console.log(this.data.findData);
}
})
} | 1 |
0d7c002f62b9944b19aae599a75b929c | b776c64a9a5e1bc02259b48a26cad05f | 獲得Hp Contract相关的Group | {
xmlHttp=GetXmlHttpObject(xmlHttp);
if (xmlHttp==null)
{
alert ("Browser does not support this web page");
return;
}
var url="php/getGroup_ContractPlainList.php";
xmlHttp.open("GET",url,false);
xmlHttp.send(null);
addOption(document.getElementById("selGroupContract"),"All", 0);
var data = xmlHttp.respo... | 1 |
6d6ad245520172ef5b5f3c15d544f687 | 9f9a805eb35ef8e833b8715dda9ce9d6 | This method returns the secondaryRoadColor of the colorScheme. | public class Theme
public String getSecondaryVariant() {
return secondaryVariant;
} | 0 |
d7847ed86f4610e4055c24be018e443a | 43a247b7b07c176422206d541b6e55d5 | 自定义过滤器接口,此接口在生成列表数据的时候被调用
返回一个经过处理的列表数据,进而生成列表视图 | class MetaModelList extends Controller
protected function modifyFilter()
{
return $this;
} | 0 |
75320ec465e0f00af8b833e53f7595af | 17016a3ee5e9a16e845b6e9b999885eb | 等待drbd资源同步 | def wait_for_sync():
m_conn.mset({
"sunchen": "meinv",
"sunchen1": "meinv",
"sunchen2": "meinv",
"sunchen3": "meinv",
"sunchen4": "meinv"
})
while not s_conn.info()['master_link_status'] == 'up':
time.sleep(.001)
while not s_conn.get('sunchen'):
ti... | 0 |
e07bc111b7713fb78a0b2438eae7d09a | 8ccb481e0110d0f6276c7954e7012446 | 忘记密码发送验证码划动验证 | self.login()
find_element(self.browser, By.XPATH, "//span[text()='忘记密码']").click()
find_element(self.browser, By.XPATH, "//input[@class='ant-input u-input-big']").send_keys(13712666007)
find_element(self.browser, By.XPATH, "//span[text()='下一步']").click()
VAInputVCode = find_eleme... | 0 |
f322ecfc9d73b630b7be645e7049b55c | ca032f454dd239358e60e889d2ffa80b | Moves this Shape object by some amount. | public void move(double dx, double dy); | 1 |
2f8295cf49f8ee4f7ea4b17329cbbd84 | dcbb4a32e7cc285373dc973d5fb992e1 | вывод подсказки над картой при попадании курсора на объект | class GraphicCard(QLabel):
def enterEvent(self, e: QMouseEvent) -> None:
self.explanation.move(680, 400)
self.explanation.setText(self.card.name + "\n\n" + self.card.game_text)
self.explanation.setVisible(True) | 1 |
fb8ee0b755b2803e365b7f5b933dfcae | 6083b5f488e5102399c796224c18560f | Returns a set of tuples (definition, score) for chance that they are a defn.
Scores are in real numbers | if not filename:
return []
predefined = ['_emoji_', '_math_']
def_names = set(predefined)
def_re = re.compile(r'!define ([a-zA-Z][a-zA-Z0-9_]*)\s*=\s*(.*)\s*')
flag_re = re.compile(r'([^;]+);\s*(in|not in)\s*;\s*(.*)\s*')
def_info = [('!define', item, None) for item in predefined]
flag_info = []
wit... | 0 |
c6a262c4a7f6af2023a9851e5e380500 | bf5d1775ca72146bcbc61381482f60b7 | This is middleware that validates the users information.
It will sit between Express routes and your route handler
For more info on Express middleware:
https://expressjs.com/en/guide/writing-middleware.html | const user = users[req.params.index];
if (!user) {
return res.status(400).json({ error: "User does not exists" });
}
req.user = user;
return next();
} | 1 |
f8a220fd1916ab57eb48b564e5788d39 | 0d69a5b7cea93c6b90185dcd233f8119 | <p>
Returns a list of event source mappings you created using the
<code>AddEventSource</code> (see AddEventSource), where you identify a
stream as event source. This list does not include Amazon S3 event
sources.
</p>
<p>
For each mapping, the API returns configuration information. You can
optionally specify filters to... | public Future<ListEventSourceMappingsResult> listEventSourceMappingsAsync(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
throws AmazonServiceException, AmazonClientException; | 1 |
5b00a76d267262d10a7d3edc25ea79f8 | b647d7d2d9314ff5457bf17a839e0448 | Adding details to the sample list collection. | for sample in sampleList:
detailsPageurl = "https://malwr.com/analysis/" + sample[0] + "/"
opener = urllib2.build_opener()
opener.addheaders.append(('Cookie', ('sessionId=' + sessionId)))
detailsPage = opener.open(detailsPageurl)
for line in detailsPage:
if '<td><... | 1 |
074d888930a78bb1300c41493779316c | 6e580ef18a9035ff21c1f3095d18cace | test if class is deleted | public class Class101BITest extends TestCase
public final void testDeleteClass101BI() throws DaoException {
Class101BI class101BI = getClass101BIExample();
class101BIDao.createClass101BI(class101BI);
class101BIDao.deleteClass101BI(class101BI);
boolean found = false;
for (Class101BI currentClass... | 1 |
93b5c9ef903a4692292bbfc0714f4002 | 413e170b9908c88df089754ba9901868 | function to generate an print a random char in range [A..Z] as well as spaces | void random_letter(char *l,int *A,int *B,int *C,int *D,int *E)
{
int exit=0;
int r;
do
{
r = rand()%5 +65;
if(r==65)
{
if(*A<4)
{
*l='A';
(*A)++;
exit=1;
}
}
if(r==66)
{
if(*B<4)
{
*l='B';
(*B)++;
exit=1;
}
}
if(r==67)
{
if(*C<4)
{
*l=... | 0 |
c0ec1f68b231ee1561c1c60f40dd0c89 | cf310098ea20d16229314ed2686b8a93 | replaces brackets with '-' and removes ',* | function cleanBracketHyphen(budget){
return budget.replace(/\[[^\[\]]*\]|\(est\.\)/g, '').replace(/\u2013|\u2014/g, "-");
} | 0 |
8e4dc8473fd84fb5acebcff5ee9367a2 | 42c0f9d29ba4e8b200ccf499d869221c | Inizializza le velocità delle animazioni in modo tale da riportarle alla normalità senza sfasarle | this.currentSpeed = 0;
this.speed = [0, 10, 25, 50, 75];
} | 1 |
b85be2e04cf5047002943ad032d432d1 | dadc210f0fab1d567d3110fcd70e2c90 | If true will not serialize null values | public class DefaultXMLWriter implements XMLWriter
@Override
public final void setSerializeNulls(boolean serializeNulls) {
this.serializeNulls = serializeNulls;
} | 0 |
d377f5c8dda363cb657ff8daaf3df4e0 | 401e301e5f788d048a41fe0a724e0eab | The 'select' system query option allows the clients to requests a limited set of properties for each entity | B selectProperties(Collection<String> selectProperties); | 1 |
5602989b6d41c6e841140de0b21903ce | 645f372672b771a806991033bdfba18a | Hiển thị thanh toán | namespace OnlineShoppingStore.Controllers
public class PaymentController : Controller
public ActionResult PaymentViwe()
{
return View();
} | 1 |
3d46dea711cb71348fcc755ba6fcbe3d | 6424197d25efc36132ffbbcad07db99f | Listens for MIDI messages on the port opened on open_port. | function listenToMIDIPorts(input, onMidiMessage) {
input.onmidimessage = onMidiMessage
} | 1 |
273af77793f10db5588234a712b69cbf | 8c7119357b8c40c8780ead209d7a6207 | Reset sort column, and sort direction. | class TableModel(GridModel):
def no_column_sort(self):
self._sorter = self._filtered_cache = None
self.column_sorted = GridSortEvent(index=-1) | 1 |
958d70c0371036f89798a118b8cf5dde | e9dc4a07fe36aa4054d2932e7e2766e1 | Get the quality map based on the phase derivative variance (pages 76-79, Ghiglia and Pritt) | namespace Nfiq
public static partial class Nfiq
internal static int[,] gen_quality_map(int[,] direction_map, int[,] low_contrast_map,
int[,] low_flow_map, int[,] high_curve_map, int map_w, int map_h)
{
int[,] quality_map = new int[map_w, map_h];
int qual_offset;
... | 0 |
247ee24a5d560ff00e23edb22e9aa6e5 | cfa1bb60e78c56c76cdf494a496095ef | Convert tuple of (PLAYERS_TEAM_SCORE,OTHER_TEAMS_SCORE) -> -(integer) if down, 0 if tied, +(integer) if leading | class Tournament
static function players_end_compare($player1, $player2) {
$result = 0 ;
if ( $player1->score->matchpoints != $player2->score->matchpoints )
$result = $player2->score->matchpoints - $player1->score->matchpoints ;
else {
if (
property_exists($player1->score, 'opponentmatchwinpct')
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.