query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
10e802b304895a47868126450d8aed64 | 67f90548286d9ead5aa99ead83caf6e0 | Invoke PKG_F_AUTHOR_EXISTS | long IDAuthor_in
) {
return isObject(
IDAuthor_in,
null
);
} | 0 |
022e419ce9c31922857fd8684d4c0f13 | 443294e1c1efe049b14a30f0d2786671 | Configures whether wasm execution can be interrupted via interrupt
handles. | public class Behavior implements Builder
public Behavior setHandleUserInterrupt(boolean handleUserInterrupt) {
model.setHandleUserInterrupt(handleUserInterrupt);
return this;
} | 1 |
03f7971881e4ae403d50521ecee046b5 | 0c785cd61d8817b3d4e047333f278423 | Convert from at. % to wt. % | abstract class Mivec_Catalog_Product_Price_Abstract extends Mivec_Abstract
protected function convert($v)
{
return 1 - str_replace('%' , '' , $v) / 100;
} | 0 |
697c67aa73d4575af15fea369dd95267 | 523f54ce4b3ed3c8412f35d882c709a7 | Find attraction categories of a place | GetCategories(placeId) {
return Bridge.request('rule:GetCategories', 'SERV:rule:', {
placeId,
});
} | 1 |
9c05bb954d94e7dfa16a3fa14061bbc1 | 2686602ce6957abb5d4314b57fc335a7 | =================== Mã thông báo tự tăng =============================== | {
try
{
string MabgThang = "BG" + year.ToString("0000") + month.ToString("00");
List<Model.BaoGia> dsbg = (from bg in db.BaoGias
where bg.MaBaoGia.Contains(MabgThang)
sel... | 1 |
393c6a3176df1f8572e229a4ceafccc2 | 72e2010007fb57a411676564d8ab075a | Set the header pointer and the new head bit according to the access category | long ACCESS_DIR = PC_address & mask;
if (preferenceUpdate == 'P') {
if (table[ACCESS_DIR] == 'g') {
table[ACCESS_DIR] = 'p';
} else if (table[ACCESS_DIR] == 'p') {
table[ACCESS_DIR] = 'P';
} else if (table[ACCESS_DIR] == 'G') {
table[ACCESS_DIR] = 'g';... | 0 |
9027e3642a3267472e2ab81c415710d3 | de1fe80d292d796a14584354b1f49884 | @brief Extracts the CoAP version from the given message. | static ssize_t coap_msg_parse_hdr(coap_msg_t *msg, char *buf, size_t len)
{
char *p = buf;
if (len < 4)
{
return -EBADMSG;
}
msg->ver = (p[0] >> 6) & 0x03;
if (msg->ver != COAP_MSG_VER)
{
return -EINVAL;
}
msg->type = (p[0] >> 4) & 0x03;
msg->token_len = p[0] & 0x... | 1 |
ccf600a30ddb8e2d9315a459ce8300d1 | 2972fc2f113d05e70f7bc0b4bd97751e | Retorna a lista de todos os setores exceto aquele pertencente ao funcionário. | {
return SourceContext.Instance.CreateQuery()
.From<Data.Model.TipoFuncionario>()
.Where(string.Format("IdTipoFuncionario Not In ({0},{1})", (int)Utils.TipoFuncionario.MarcadorProducao, (int)Utils.TipoFuncionario.SupervisorProducao))
.OrderBy("Descrica... | 0 |
348b44d170f63da3ab2c8905a23957fc | 358ad3aa2f9354c05127326a4f0de87e | 创建音乐播放器界面 | namespace QingTing.Fm.ViewModels
public class HomeViewModel : ViewModelBase
private void CreatePlayer()
{
wavePlayer = new WaveOutEvent();
wavePlayer.PlaybackStopped += WavePlayerOnPlaybackStopped;
} | 0 |
0a96e5de3bd1dfa368adb5671b6ca91c | 710e3f5bedcda71d30a4ece4ecb32adb | あるスキルがこのキャラにとってクラス技能かどうかをチェックする。
習得しているクラスの中でひとつでも該当技能がクラス技能であればクラス技能になる | {
if (SkillConditionType == SCO)
return true;
else
return false;
} | 0 |
02958d32fcad9ece8a520c77baf5850f | de77fc3b6f5d0b7dbe460fd9602f7435 | Returns tuition information for colleges and universities. | class DeptOfEducation_CollegesAndUniversities_FinancialAid_Results extends Temboo_Results
public function __construct($outputs = array())
{
parent::__construct($outputs);
} | 0 |
9928ed43fdf5f1965ea30cae359ff02c | 8ba17ea487affe304ba68b07a12da80a | Get ConfirmationNumber value | public class MegPaymHelper
public static String getConfirmationNumber() {
return finalPage.getConfirmationNumber();
} | 1 |
5606ff7eedb0e01e494a61368a10acca | 3a1eea453f3427e32e39dcef33fa6ac9 | Check whether the language file has a specific property | class rex
public static function hasProperty($key)
{
return is_string($key) && isset(self::$properties[$key]);
} | 1 |
f09a165a9d23c1b7418da8494e9c8280 | 5518f6ac4ee366f63d36042bb857ffa3 | <p>
Accuracy test for <code>config(XMIReader, String)</code>.
</p> | public class ReliabilityCalculatorImplAccuracy extends TestCase
protected void setUp() throws Exception {
XMLFilePersistence filePersistence = new XMLFilePersistence();
ConfigurationObject myconfig = filePersistence.loadFile("myconfig",
new File("test_files/accuracy/db.xml"));
co... | 0 |
83389b28975c356157ec8b4435f21b33 | 48e358274f02ffcc60e3aa3a92e2b3e8 | Add the default parameters such as result and errorMsg to the stored procedures parameters list. | namespace DbClassLibrary
[ComVisible(false)]
public class ProcedureDefinition : DbAggregate
protected override void Initialize()
{
AddParm(System.Data.ParameterDirection.Input,
_parameterNames[(int)eParmList.PackageName],"",System.Data.DbType.AnsiString);
AddParm(System.Data.ParameterDirection.Input,
... | 0 |
5e0405123347ea030de464389eca3afd | d5494c2551c813f2ededabaa2c575af7 | r'''Calculate the viscosity of an aqueous mixture using the form proposed
by [1]_. Parameters are loaded by the function as needed. Units are Kelvin
and Pa*s.
.. math::
\mu_m = \mu_w^{w_w} \Pi\mu_i^{w_i} | self.species_viscosity[:] = \
self.species.calc_viscosity(temperature)
x_sqrt_mw = gf.array_vector_multiply(
self._mole_fraction, np.sqrt(self.species.mw))
x_sqrt_mw = np.where(x_sqrt_mw == 0.0, 1.0, x_sqrt_mw)
return np.sum(self.species_viscosity * x_sqrt_mw, axi... | 0 |
4fa4f0a55b14500ff40a61aa4c13b921 | 17c6d2623575c59b0256f2482ca9f3ee | Returns the result of interpreting the object as an instance of '<em>Object Type</em>'.
<!-- begin-user-doc -->
This implementation returns null;
returning a non-null result will terminate the switch.
<!-- end-user-doc --> | public class MetamodelSwitch<T> extends Switch<T>
public T caseType(Type object) {
return null;
} | 1 |
35cc334087a24c0105484b6a5df35152 | faedad0fefb66561352116b3cf3992bb | OnCommand | class Main extends PluginBase implements Listener
public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {
$subcommand = strtolower(array_shift($args));
switch ($subcommand) {
case "adduser":
if(isset($args[0])) {
... | 1 |
f628305e8a16673b806942ccc2a1d30a | a0dd0682342bf148763fed7551ab6ebf | Function to upload additional material by customer on particular task | return new Promise((resolve, reject) => {
return this.uploadService.uploadMaterialsAdd(data.infos)
.then(result => {
if (result) {
data.uploadFlag = this.globalService.uploadedFlagForUploaded;
resolve(this.dbService.updateFlagMaterials(data));
} else {
... | 1 |
f39986dbd7d6e6479b5c000939a47681 | 398ff7364191e8b8961334d4708fa1c8 | Saves records that are referencing current record and are linked to it in-memory | class sspmod_janus_EntityController extends sspmod_janus_Database
private function _saveLinkedEntities($revision, $type)
{
if ($this->_modified) {
$entityManager = $this->getEntityManager();
foreach ($this->{'_'.$type} AS $linked) {
$remoteConnection = $this->getConne... | 1 |
7dce678afec4b650673dc473aa8705a3 | 4192c6acece6d975f090de4edf982e6e | Enforce waiting to consume the rest of the time slice but ensure that there is no overflow. | public void testConsumeOverflow() {
final long quotaLimit = 10;
ResourceQuota rq = new ResourceQuota("quota1", quotaLimit);
rq.consume(1);
assertThatThrownBy(() -> rq.consume(Long.MAX_VALUE))
.isInstanceOf(ArithmeticException.class);
} | 0 |
1ca62b8a5dbc64edf904d4b0599de082 | 39fcc2318a0f809714f067f99e211392 | 获取下次保养时间 | @Slf4j
@Controller
@RequestMapping("shop/order")
public class OrderController extends BaseController
@RequestMapping(value = "get_upkeep_mileage", method = RequestMethod.GET)
@ResponseBody
public Result<Integer> getUpkeepMileage(@RequestParam(value = "carId", required = false) Long carId, Integer carModelId, In... | 0 |
92e01b7d4bebd99e33c265a3866e42e4 | cf7f9d8f4c6d9c0af8952e54b596a7c5 | Get all script known variable names. | def script_input_vars(script: Dict) -> List[str]:
set_vars = {node["var"] for node in collect_script_operator(script, "set")}
get_vars = {node["var"] for node in collect_script_operator(script, "get")}
return sorted(get_vars - set_vars) | 0 |
e1ef64614896c8fff62a8bfa5db03e24 | 5d7a4eacc392e11071fa1cb6fdcd5f87 | 验证最新列表作品信息与作品详情页信息一致 | var flag = true;
data.forEach((ele, index) => {
if (ele.src === $(".content").find(".pic").eq(index).val() && ele.title === $(".content").find(".title").eq(index).val() && ele.desc === $(".content").find(".desc").eq(index).val()) {
flag = flag && true;
} else {
... | 1 |
7fed11c658d0666b72444afe5649360b | 731a3c70207828b183ea20261d87e532 | Достаем и с файла граф объектов и помещаем его в список + заполняем таблицу | objects loaddata() {
pipe p; ks k;
objects data;
string file = "data.txt", name;
int pid = 1, kid = 1, diameter, numc, numcw;
float length, effective;
bool fix;
string currentline;
ifstream fin;
fin.open(file, ios::in);
if (fin.is_open()) {
while (getline(fin, currentlin... | 1 |
ef18895bcacacb884296126afec13ecd | 51d3ad58d27931e7db7ac41721abf937 | Gives a default drawing style to the module
which is used by each method, if no
concrete parameters are passed to it. | public void setDefaultStyle(LineStyle style); | 1 |
475f9f98234d2accaf4bceffb4ac41c4 | c64dfdf37eb88f5ec4f0597ea4dc49b8 | Method used to test a maze to make sure all edges
on boundaries exist. | public void testSetMapBorder() {
Map map = new Map(xBorderSize, yBorderSize);
map.setBorder();
Tile[][] tiles = map.getMap();
int x = 0;
int y = 0;
while (x < map.getXSize()) {
assertEquals(Tile.WALL, tiles[x][y]);
x++;
}
x--;
while (y < map.getYSize()) {
assertEquals(Tile.WALL, tiles[x][y])... | 1 |
12f2202bf2fce5920e51ef628e377313 | 977e638e53fd8fbcc303edd8103d62c8 | 通过公司id和表单名字删除表单(所有历史版本),表单控件属性 | class Table extends \Phpcmf\Model
public function delete_form($data) {
$id = intval($data['id']);
$pre = $this->dbprefix(SITE_ID.'_form');
$this->db->table('field')->where('relatedid', $id)->where('relatedname', 'form-'.SITE_ID)->delete();
$table = $pre.'_'.$data['table'];
$this-... | 1 |
fbfd5bb4b6fdfadf0954862706aa2561 | 0e22357a3a75f639013858470b9c378f | Draws edges at the sides and the top of the level. No arguments required. | int width = this.level.width(), height = this.level.height();
Block top = new Block(new Rectangle(0, this.level.edgeBuffer(), width, this.level.edgeBuffer()),
Color.DARK_GRAY);
Block bottom = new Block(new Rectangle(0, height, width, this.level.edg... | 1 |
5041f006a4eeb97bdc327afd045434a1 | 5af59c1186c9b86dcedc4d840a32f7d6 | METODO QUE TRAE UN LABORATORIO ESPECIFICO DEPENDIENDO EL ID-LABORATORIO | @Service
public class LabServiceImpl implements LabService
@Override
public Lab findOne(Long id) throws ObjectNotFoundException {
try {
return labRepository.findById(id).orElseThrow(() -> new ObjectNotFoundException(Lab.class, "id", id.toString()));
} catch (Exception ex) {
t... | 1 |
5c04c667e65add2c86a8733bf1ada4b5 | 979cb1500c4f4386f65a9b8fb5363e1d | Constructor. See above. | function public:constructor()
end | 1 |
3fe60bcf152967c8dfd1a6b40427e34f | bb94b11d231ffd302d187a2e4d6a7343 | Returns a model that is extremely simple (one layer). | function createModel() {
const model = tf.sequential();
model.add(tf.layers.dense({ inputShape: [1], units: 1, useBias: true }));
model.add(tf.layers.dense({ units: 1, useBias: true }));
return model;
} | 0 |
e5282527a1572c09869af89c07139499 | 3c0ea1339cac46c138ca16e6d3b82e2b | For supplemental FHIR versions, we only care about resources and types,
but for normal packages, we care about everything. | @Override
public Object[] getElements(Object object) {
Object[] result = null;
if (object instanceof ResourceSet) {
final List<Resource> resources = ((ResourceSet)object).getResources();
final List<Resource> elements = new ArrayList<Resource>(resources.size());
for (final Resource resource : resou... | 0 |
a73f326dd07777e2e87e698286737fe2 | f18994af410968d64ebb415aadfb5992 | Inserts a record into the MockupNotes table. | class MockGitLabNotes(object):
def create(self, data):
pass | 0 |
21798f08f77158a6c92ef89cab8f844e | 4c05e27cb07e87eb15f1d1a33db0da15 | GET: api/TaskTypes | public ActionResult Index()
{
var taskCategories = _taskCategoryService.GetAll().ToList();
return View(taskCategories);
} | 0 |
0229f05a33d9e7a6f1010e7bb3baf43e | fda2512aa88e652f5ce5077190708c99 | Get all the features in a review document and put them together
in a dictionary. | def get_documents(data):
data['reviews'] = data['reviewText'].apply(clean)
documents = data[['asin', 'reviews']]
documents = documents.groupby('asin', as_index=False).agg(lambda x: x.tolist())
documents['documents'] = documents['reviews'].apply(get_doc)
documents = documents[['asin', 'documents']]
... | 0 |
e33d54397a4f5486f95a464a478bfdea | 8234df1d50d3212e294d1b70210f83ad | An object that stores a string, as well as the pixel coordinates of that string. | self.text = text
self.text_height = text_height
self.text_align = text_align
self.text_valign = text_valign | 0 |
2b89db59240552a5cfd716e7f47cc0f5 | bd784253f7932cd3a45f653ebe587b89 | 3D音源のドップラー係数の設定 | namespace cAudio
void cAudio::setDopplerStrength(float doop)
{
alSourcef(source,AL_DOPPLER_FACTOR,doop);
} | 1 |
6fb6819945b17aabb23e9efef7240bf6 | 21752a11004074af5cebb0a8b6d98665 | 如果当前用户查看没有菜单的权限,就从集合中移除掉
解决方案给菜单domain添加权限
如果菜单有关联权限,需要进行权限验证,如果没有关联,所有人都可以看 | public class MenuUtil
public static List<Menu> checkPermission(List<Menu> menus) {
Subject subject = SecurityUtils.getSubject();
Iterator<Menu> iterator = menus.iterator();
while (iterator.hasNext()) {
Menu menu = iterator.next();
Permission permission = menu.getPermissio... | 1 |
9b15d168be1e60348b8476f6cfa507ae | 414f6acfbaa9f388089d57b810105241 | function to perform bytewise xor operation | for(int i=0; i<length; i++)
XOR_Bytes_Array[i] = (unsigned char)(A_Bytes_Array[i] ^ B_Bytes_Array[i]);
} | 1 |
b1108fe908053513b7abc7622cc508db | 7a094977bc789374ff675809dd616f39 | Returns the Fibonacci Sequence up to and including number specified by the user | {
Console.Write("Enter a number: ");
int input = int.Parse(Console.ReadLine());
Console.WriteLine("The Fibonacci of the {0} th term is {1}", input, CalcFibonacci(input));
} | 0 |
41779ae100ed00ca49ddb70ead90cedd | bf95a0f43f730b2fe153a9ee30ba6b2e | 分页获得订单列表 | class Order_Model extends Model
static function getPagedOrders(Pager $pager, array $options){
$muid = $GLOBALS['user']->uid;
$where = " and is_delete = 0 ";
$orderby = "";
if($options['order_sn']){
$where .= " and o.order_sn like '%%".D()->escape_string(trim($options['order_s... | 1 |
4320c88eec50a96e1f7e9ef12f665a6d | ac2a5c0c62d84aa14501f8fdc3c7473c | Handles the AjaxRequest event of the ajaxPanel control. | int oldCurrentESpaceId = heContext.CurrentESpaceId;
try {
heContext.CurrentESpaceId = ssCaseConferencing.Global.eSpaceId;
if (CommandOnNotify(heContext
)) {
doAJAXRefreshScreen(heContext);
}
} finally {
heContext.CurrentESpaceId = oldCurrentESpaceId;
}
} | 0 |
fcbf0796e7bfc5b41854dbac396dba7e | b4975c4f2dc86fef3b73ec02e5cbe388 | Fonction de création d'un tableau de mot | {
int i,j,k=0;
for(i=1;i<10;i=i+2)
{
for(j=i+2;j<10;j=j+4)
{
tab[k].xy.x=i;
tab[k].xy.y=j;
tab[k].E=NULL;
tab[k].W=NULL;
tab[k].N=NULL;
tab[k].S=NULL;
tab[k].nb_prise=0;
k++;
}
}
j=k;
for(i=0;i<j;i++)
{
tab[k].xy.x=tab[i].xy.y;
tab[k].xy.y=tab[i].xy.x;
tab[k].E=NULL;
tab[k].... | 0 |
db4a5193e75e630e90bd09f870b1d36f | 465032e6f6701628c70be572ae542f3a | Цикл по папкам в поданной директории. Идет по всем папкам.
Игнорирует ярлыки (.lnk), т.к. они будут обработаны ниже как файл
Так же игнорирует папки с . и .. перед именем (отдельно тестировал цикл, без этого флага папок на 2 больше, но в интернете внятной информации что это за папки не нашел) | void IterateDir(std::string& dir_path, std::string& mode)
{
try {
const fs::path pathToShow{ dir_path };
for (auto iterEntry = fs::recursive_directory_iterator(pathToShow); iterEntry != fs::recursive_directory_iterator(); ++iterEntry) {
if (iterEntry->is_regular_file())
{
if (_stricmp(iterEntry->path().... | 0 |
1466e8587d9d0e88b6275f28e2617af6 | 12cfb44d2a6cf35552a4d62f7be7d4f8 | WithNodeID set the customized nodeID. | public class NodeDetailPage implements INodeDetailPage
public void setNodeID(String nodeID) {
sNodeID = nodeID;
} | 1 |
c6e84e1a3703f01d6181d81d152e6387 | 6c806dbcb0ef912195e1c959b3812ce7 | 计算e的值 | double E(int index) {
double tmp = 0;
for (int i = 0; i < 16; i++) {
tmp += calculate(index, i);
}
return tmp;
} | 0 |
0f56399774308a6a504ea8840318cb97 | 843348178c9b90d6a5db828904f4556e | Tính điểm tf-isf trung bình trên cả câu. | if ntotal_frase != 0:
t_med_fras = sum_ncaract / ntotal_frase
else:
t_med_fras = 0
return t_med_fras | 0 |
ce14517889ceb5b82c3ed141f6e7e919 | cd8852525cb2876f0e21311ec375e8f7 | Returns true if there is a previous record to select | if (!$this->last_rs) {
return false;
}
$this->last_rs->MoveFirst();
return (!$this->last_rs->EOF);
} | 0 |
dd588c14188650c6a747f64ea01ee080 | 4191238f39ace24d54905100d0e98418 | 获取应用包名称 | public class AppInfoUtil
public String getPakageName(){
return mContext.getPackageName();
} | 1 |
c1af59ae5cbcc2f89613bb5b2e5818ca | 4812ed33a2d61deeecfe0cbd1f24f539 | ___________________________________________________________________________________________________ getTracksSession | u, err := url.Parse("https://api.soundcloud.com/me/tracks.json")
if err != nil {
return nil, apperror.Err{err, "Could not parse url", 500}
}
q := u.Query()
q.Set("oauth_token", c.Token.AccessToken)
u.RawQuery = q.Encode()
req, err := http.NewRequest("GET", u.String(), nil)
if err != nil {
return nil, apperr... | 1 |
2b0cbd651f60d428646f0b76316306d5 | 7ff876cd0b2494dc28bf7c52b48088ea | Chessboard piece spawner which allows for dynamic naming. | public class Controller : MonoBehaviour
public GameObject Create(string name, int x, int y)
{
GameObject obj = Instantiate(chessPiece, new Vector3(0, 0, -1), Quaternion.identity);
ChessPiece cp = obj.GetComponent<ChessPiece>();
cp.name = name;
cp.xBoard = x;
cp.yBoard = y;
... | 1 |
17803066a3531347d2d0c88489370993 | 3c638f9629af36760bc91b0b8b07bd49 | Find the number of pixels that overlap between two rectangles. | def overlapx(rect1,rect2,pixels=20):
dy1=abs(rect1[0]-rect1[2])+1
dx1=abs(rect1[1]-rect1[3])+1
dy2=abs(rect2[0]-rect2[2])+1
dx2=abs(rect2[1]-rect2[3])+1
cy1=(rect1[0]-rect1[2])/2.0
cx1=(rect1[1]-rect1[3])/2.0
cy2=(rect2[0]-rect2[2])/2.0
cx2=(rect2[1]-rect2[3])/2.0
dc=max(abs(cy1-cy2)... | 0 |
2dbb9a03a6de402f34a7f5113d9f22f9 | a441d940a221f8dd430293dac703a71c | 首页应该显示所有工具的名字 | class Tools extends Base
public function index()
{
$data = array();
output("tools_index", $data);
} | 0 |
238f88fcfc21c65fa3c538b6420f93e2 | e204ee8da941c8377961fe679392a757 | order Items by count | @SuppressWarnings("WeakerAccess")
@Tag("Item")
public class StatisticsItem implements Comparable<StatisticsItem>
@Transient
@Override
public int compareTo(@NotNull StatisticsItem o) {
return o.count - count;
} | 1 |
274850e5dd3dab0448f4a6c7514b536d | 91b67a4a29bcaf5c50b9934bbbfc33bf | Setup player's icon, movement, and restrictions | class Player(ScreenObjects):
def __init__(self, icon, x, y, height, width, x_change):
super().__init__(x, y, height, width)
self.icon = pygame.image.load(icon)
self.x_change = x_change | 1 |
500343a6a4432c74df13d677aaf0dceb | 4bbd5dea30d06f68b66ff11e8a2b69da | определяет права пользователя, если нет прав доступа-посылает на указанный редирект или на error_Perm, если неуказан редирект | class classPG_Rights extends classPG_ClassBasics
public function loadRight($_xUser, $_sRightName = NULL)
{
global $oPGUsers;
$_sRightName = $this->getRealParameter(array('oParameters' => $_xUser, 'sName' => 'sRightName', 'xParameter' => $_sRightName));
$_xUser = $this->getRealParameter(array('oParameters' => $_x... | 0 |
32ce7589f47eec29893f1af5ff11f6b3 | fd1f64a5a314630a3be9db6246457b30 | Displays meta info of dicom and segmentation in the info box on slicer | def load_dcm_meta(filepath, contrast):
ds = pydicom.dcmread(filepath)
metadata = {}
d_x, d_y = ds.PixelSpacing
orient = np.array(ds.ImageOrientationPatient).reshape((2,3)).T
affine_transform = np.zeros((4,4), dtype=np.float32)
affine_transform[:,-1] = [*ds.ImagePositionPatient, 1]
affine_tra... | 0 |
808d65ccac789e5ff625efe492cb8127 | 6618a1ccfb3e3bf38b1fc452e403e35b | Sets the collection parameters for the collection for 'ServiceLocationCollectionViaServiceLocationEmployeeAssignment_____'. These settings will be taken into account
when the property ServiceLocationCollectionViaServiceLocationEmployeeAssignment_____ is requested or GetMultiServiceLocationCollectionViaServiceLocationEm... | namespace Reliant.RenuOil.DAL.EntityClasses
[Serializable]
public partial class ServiceTypeEntity : CommonEntityBase, ISerializable
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
public virtual void SetCollectionParametersAccountCollectionViaServiceLocation(long m... | 0 |
d97d7254aa7ecf9a80f408d306d8bb99 | 8f4879f4294a90dd37112f4bbfa8ffbc | Return the number of available pages of physical memory in the
system. There is currently (as of version 2.0.21) no system call
to determine the number. It is planned for the 2.1.x series to add
this, though.
One possibility to implement it for systems using Linux 2.0 is to
examine the pseudo file /proc/cpuinfo. Her... | long
sysmem()
{
long physmem;
int i;
if ((physmem = (long) sunmem(PHYSMEM)) == (long)-1 )
return ((long)-1);
if (physmem > (MAXLONG & ~(MEG4 - 1)))
return (-1);
physmem = (physmem + (MEG4 - 1)) & ~(MEG4 - 1);
return ((long)physmem);
} | 0 |
f96ea8d2dc0e05d1557efce06c6bf58a | 79a5eae7472d16e0bfb7f6afca8e1dc5 | Constructor method for GetOfferListPaginatedResponse | class CdiscountOfferQuestionListMessage extends CdiscountServiceBaseAPIMessage
public function __construct(?\SengentoBV\CdiscountMarketplaceSdk\Arrays\CdiscountArrayOfOfferQuestion $offerQuestionList = null)
{
$this
->setOfferQuestionList($offerQuestionList);
} | 0 |
73b3abff493d3edcb701aad988662781 | bedd001c1b082ada750e0afedcdfc23e | Routine di comunicazione col DAC.
La routine spedisce al DAC di indirizzo specificato i due byte che
definiscono i valori delle sue due uscite analogiche. | void writeDAC (uint8_t dacval) {
SLAVE_ENABLE();
ioMasterSPI1(0b00001011);
ioMasterSPI1(dacval);
SLAVE_DISABLE();
} | 0 |
dc6d18bfa5fe6e6afbc154d612378b16 | 24bc01d61346d45f6364b75fead7e0e5 | Gets the remote party associated with a specified Party ID. | namespace Microsoft.Internal.GamesTest.Xbox
internal abstract partial class XboxConsoleAdapterBase : DisposableObject
protected virtual string GetPartyIdImpl(string systemIpAddress, uint titleId)
{
throw new XboxConsoleFeatureNotSupportedException(NotSupportedMessage);
} | 0 |
488df90be03b3eb0c6f299aca2e2a7a4 | 053415fa61f65c1e4e95d1b00625d730 | The well known ID for the projection. | int getProjId(); | 1 |
0993efb4bc187d47510df8c34329dbc4 | 27d7763cb7f802faeeeb501413ccfd84 | Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck
server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is
finished (or aborted) or is still running. The script will not be dispatched to nodes, but be exec... | variables = kwargs.get("variables")
context = kwargs.get("context")
wait = kwargs.get("wait", True)
await self._async_start_run(variables, context, wait) | 1 |
8c94f3d36cd91eae0b5eeafa13f4228f | 00b9851d17d107e089f1b337f95dd482 | Set up the addons index mapping. | {
$db = static::getDb();
$command = $db->createCommand();
$command->setMapping(static::index(), static::type(), static::mapping());
} | 1 |
9c53eef86121ce6f661254e6fd4b76ee | b8e8ae79b6e4195708c7dab7c0c53a30 | 初始化全局唯一的静态资源文件对象 | export class ConfigManager
public initResConfig(url: string): void {
this._resConfig = loader.getResByUrl(url, true);
} | 1 |
fac6d585cd42a090c1563613c4741cfb | d8382ca0369469cc35c5bbba59d09820 | 根据卫星ID和时间范围查询遥控指令 | List<MData> queryMdataByStationIdAndTime(String statonId, String startTime, String endTime); | 0 |
02e8aefd885cafb8313e4e9df3e3ee2f | 15ac7a7c82af062eb3f57e595a37404c | Returns the first height of this motion. | double getFirstHeight(); | 1 |
4cb85ef7f99b3949ce99cceee7210416 | 8d8a86c6cac27e7055e5c0577fcac412 | Returns ``True`` if player is in a time-trial session. | class SessionView(_DataView):
def is_qualifying(self):
return self.state == pcars_enums.SessionState.QUALIFY | 0 |
79fa7c26c7e9c61801eb743517edd0ae | a1850366e857e471f6fd17673b2af761 | This method send a snmp.Get request with a specific OID number and returns "Mono" if printer has only one color, otherwise "Color". | namespace AccountingLib.Printers
public static class DeviceHandler
public static Boolean IsColorPrinter(String printerName)
{
Boolean isColorPrinter = false;
SysPrinter printer = LocateSystemPrinter(printerName);
foreach (PrinterCapabilityEnum capability in printer.Capabi... | 0 |
7949eac6ac6ce28efb784cc99daf0816 | 9238a749c579fb08ce59906be6c2ef94 | Test the SN SNR metric | SNObjectSED = self.SN_extincted.SNObjectSED(time=self.mjdobs,
wavelen=self.wavenm)
SNCosmoSED = self.SNCosmoModel.flux(time=self.mjdobs, wave=self.wave) \
* 10.
np.testing.assert_allclose(SNObjectSED.flambda, SNCosmoSED,
... | 0 |
1c36f7a0787e56596753b7830dd72966 | b8bfdfc21765aa696a09a77ba84de30b | Test case for projectProjectsIdNotesCountGet
. | class DefaultApiTest extends \PHPUnit_Framework_TestCase
public function testProjectsProjectIdKeysKeyIdCommentsGet()
{
} | 0 |
7f4b52f9eda002b57a5cfd38ade1d1ca | 330c34382b9f0209d815c59ab119a26d | Gets the day start. | namespace Miracle.Common.Utility.DateTimeExtension
public static class DateTimeExtension
public static DateTime DayStart(this DateTime dateTime) => dateTime.Date; | 1 |
cea1c816d49d5b8e4ecae836c66f4d4e | 2c068d5846de10a7cd53871c374c1c00 | Returns a new CompoundWithCoeff with coeff = -self.coeff. | copied = deepcopy(self)
copied.name = f"(-{self.name})"
copied.vector = -self.vector
return copied | 0 |
707b0f4b769313b34fd99a3a3ed46769 | 7789c4cb9b55dca501f6826dcc1361bf | Defines win lines array due to result reel positions of slot-machine. | List<List<positionTicTacToe>> winningLines = new ArrayList<List<positionTicTacToe>>();
winningLinesArray = new int[76][4];
for (int i = 0; i < 4; i++)
for (int j = 0; j < 4; j++) {
List<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();
oneWinCondtion.add(new positionTicTacToe(i, j... | 0 |
63faaeffb390be4d5b60d5cce08145d2 | da9eeea8dd146380a591341eaa171e18 | Check HTTP Server and Database Status (asynchronously)
This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` h... | getHealth(options?: any): AxiosPromise<InlineResponse200> {
return DefaultApiFp(configuration).getHealth(options)(axios, basePath);
} | 1 |
29abcf1c6457b4d3a3f0ce1baeeed02b | 4cd28494526029fe8b0f985b010b08ed | Returns the number of edges leaving this vertex | public class DirectionGraph
public int E() {
return E;
} | 0 |
9396e62ba46bd36f55b5dc832b55451b | 62c0eae634f2fcc7b8268a576627dcd7 | Function to update the dataframe column statistics in the status bar. | upload = round(upload, 3)
download = round(download, 3)
self.uploadLabel.setText('upload: {:02} KB |'.format(upload))
self.downloadLabel.setText('download: {:02} KB |'.format(download))
self.packageSentLabel.setText('sent: {} packages |'.format(sent))
self.packageRecveLab... | 0 |
ba0993215637771596a346d32de51d5a | f38b0170f5f4f4795fc25d8bcd7b748e | =====Sobrecarga do operador "="===== | if(this == &other)
return *this;
destroy();
this->largura = other.getNumColunas();
createalturas();
for(int c = 0; c < getNumColunas(); c++)
alturas[c] = other.alturas[c];
jogo = new char*[getNumColunas()];
for(int c = 0; c < getNumColunas(); c++)
jogo[c] = new char[other.getAltura(c)];
for(int c = 0; c <... | 1 |
811182a50cda88b4df222fa5675ff4f0 | ebb01a785a168513d5ce07a8d218a92b | 读取数据,将每个句子用一个以词分割的列表表示 | def Read_Sentences():
content = []
fp = open('datasetSentences.txt', 'r')
try:
lines = fp.readlines()
finally:
fp.close()
for line in lines:
line_list = line.split(' ')
if line_list[0] == 'sentence_index':
continue
content.append(line_list[1].strip('\n'))
return content | 0 |
3e9f57140c0a69f8f7b4b09d35e3019d | 937b0dff00a2368a7cb9fac571833ae7 | получить скидку2 для сделки | CModule::IncludeModule('iblock');
$result = 'c';
$res = CIBlockElement::GetList(
array('ID' => 'DESC'),
array(
'IBLOCK_ID' => rrsIblock::getIBlockId('deals_deals'),
'ACTIVE' => 'Y',
'ID' => $deal_id
),
... | 0 |
cdef7266012b89871dd94d961ecc1984 | 125975c0287ad452038714ba6e772017 | Check if user id belongs to a system admin.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved. | if user_id not in model_id:
return False
if user_id in feconf.SYSTEM_USERS:
return True
return user_models.UserSettingsModel.get_by_id(user_id) is not None | 0 |
bc3b8d98eb9e52e050799d8d8060a2c1 | c7c627a6a992475f6727b14aad2fb418 | The information level supported by the SUT for quering file information. | namespace EsentLib.Api
JET_DBINFOMISC GetFileInfo(JET_DbInfo infoLevel); | 1 |
2cfe36f49673d2dbc4f5fe8c5658b156 | 48a79891b69d9572e2c0338bc7d11ea9 | Returns available space in TX fifo in bytes | namespace Meadow.Foundation.ICs.IOExpanders
public abstract partial class Sc16is7x2 : ISerialController
internal int GetWriteFifoSpace(Channels channel)
{
return ReadChannelRegister(Registers.TXLVL, channel);
} | 1 |
3930ec12553e55b4bd0840d2c3e49ef8 | c667a1af57bc6011b8d5dc7232f213f6 | Station has changed, remove tracks from previous station from tracklist. | if len(self.track_list) > 0:
self.track_list[:] = []
self.track_list_index = 0
return True
return False | 1 |
0e8c7e6e0cea9a646b16dd8c70b64f31 | a355152c55c9abca5bb730d083d107d5 | returns the tags and their story counts. | public SortedMap<String, Long> tagStats(); | 1 |
9c542e0efcb9be51efa7a17b44b45b5d | 306d637c61200cc290d328db71794f44 | Transfers state from emulator to device, | class Emulator(object):
def sync(self):
pass | 0 |
ddeb63cb73df3c7667a8539463b47a3f | 2ee07871b6c6858a9e2000d11609d08c | Initial implementation of hittest for billboard. Needs further improvement. | namespace HelixToolkit.Wpf.SharpDX
public class BillboardTextModel3D : MeshGeometryModel3D
public override bool HitTest(Ray rayWS, ref List<HitTestResult> hits)
{
return false;
} | 1 |
df689145e8844ab4b640350652775509 | 7a806f27104f071b8f928300582a571b | Open Configured Databases (step 1 of final ready process) | requireJSON("databases", inp, "databases")
con = None
try:
con = dbConnect(database = options["dbname"], user = options["dbuser"], password = options["dbpassword"], host = options["dbhost"])
setupDatabases(con, options, requireJSON("databases", inp, "databases"))
except psycopg2.Database... | 1 |
f30a9455796c2756b8210878f2abb71e | b480d4038eb5900652129b672657d8b0 | Gets the tab the manager is currently on. | class _Announcements
public function getTab()
{
if ( ! \IPS\Member::loggedIn()->modPermission('can_manage_announcements') )
{
return null;
}
return 'announcements';
} | 0 |
312cabada1ca5c68e35423ee6e213d7e | 40e3cea8794bf9383a59bb7cabbe29c3 | We have two monkeys, a and b, and the parameters a_smile and b_smile
indicate if each is smiling. We are in trouble if they are both smiling
or if neither of them is smiling. Return True if we are in trouble. | if( (a and b ) or ( (not a) and (not b) ) ):
return True
else:
return False | 1 |
76f38194b211d345383cbe1a60cc7bcd | 6e475265d687995c4520e727a4f5d2af | 创建一个我方坦克 | function MyTank.create()
local myTank = MyTank.new()
return myTank
end | 1 |
f0b810784d4b91d754a1c359a5b300cd | 73fb922c77a42b52174052654ec5fe32 | Set all reservations that happened without payment | {
try {
\DB::beginTransaction();
$downpaymentList = Downpayment::leftJoin('tblDownpaymentPayment', 'tblDownpayment.intDownpaymentId', '=', 'tblDownpaymentPayment.intDownpaymentIdFK')
->where('tblDownpayment.boolPaid', '=', false)
->whereNull('tblD... | 1 |
445c292a98184f9b424c49f2e1b1bc26 | 9ebea9ad9392171be864b1358bcc5cc9 | Parses the "session" option for an execute method. The client object should
correspond to the Manager executing the operation and will be used to ensure
that the session is correctly associated with that client. If mongoc_opts is
not NULL, the option will be appended. If zsession is not NULL, it will be
assigned to the... | {
mongoc_server_description_t* selected_server;
const mongoc_read_prefs_t* read_preference = NULL;
bson_error_t error = { 0 };
if (zsession) {
const mongoc_client_session_t* session = Z_SESSION_OBJ_P(zsession)->client_session;
if (mongoc_client_session_get_server_id(session) > 0) {
... | 1 |
0319aa99025377cc74c437980a6b220f | 5dbdfa662d25bc1190fdbba6c017ecb6 | Reset internal data-dependent state of correlation. | void CPns_ResetData(CPnsData *pPnsData,
CPnsInterChannelData *pPnsInterChannelData) {
FDK_ASSERT(pPnsData != NULL);
FDK_ASSERT(pPnsInterChannelData != NULL);
pPnsData->pPnsInterChannelData = pPnsInterChannelData;
pPnsData->PnsActive = 0;
pPnsData->CurrentEnergy = 0;
FDKmemclear(pPnsData-... | 1 |
f4e9e280b44b92ff48adad445a5b56d4 | c53f30fd4b82e030963f1f9f3e32445a | 融资金额を設定する | public class TradingFixInfo implements Serializable
public void setFinancialMoney(BigDecimal financialMoney) {
this.financialMoney = financialMoney;
} | 1 |
41226d72a42f500426ebf3dfc1002631 | 68e76ea149cfb4cc99fa575ce8373720 | Open game url | class OpenGamesService
public function getGameUrl ($gameid, $version)
{
$url = get_static_url("https") .get_cdn_xyx_dir() . "/" . get_upload_cdn_evn() . "/open/games/" . $gameid . "/" . $version . "/";
return $url;
} | 1 |
d64a6dd252a26e9f26175029f1b7db67 | 7f76c9234a7db4dc704bae850605c083 | Calculates the first sets of every symbol | Iterator<Character> iter = nvSet.iterator();
while(iter.hasNext()) {
Character nvItem = iter.next();
ArrayList<String> arrayList = expressionMap.get(nvItem);
TreeSet<Character> firstSet = firstMap.get(nvItem);
for(String now_proc : arrayList) {
... | 1 |
f38dbd38316aa0bf6cf8687d0389fcbd | dd002e6a8733db2872d88062a5902aad | Prep the connector with configuration data. | {
$this->transport = $this->contextMediator->getTransport($context, true);
$this->channel = $this->contextMediator->getChannel($context);
$this->validateConfiguration();
$this->transport->init($this->channel->getTransport());
$this->setSourceIterator($this->getConnectorSour... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.