query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
a8801c6692f8a398ce6836a987f1f568 | b511452cde3018e79729c7d003d967d8 | handle automatic state transitions (based on completion of animation playback) | public class MyVideoPlayer extends JZVideoPlayerStandard
@Override
public void onStateAutoComplete() {
super.onStateAutoComplete();
Log.d("MyVideoPlayer", "onStateAutoComplete");
} | 1 |
aa740666ba58ab5c9a397a86ebd254e0 | 2d2bf8db5fb248668953393159b04c64 | Sets the value of {@link SeccompProfile#getLocalhostProfile}
The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost". | public final class AppConfig
public void setAllowOnlyFromLocalhost(boolean allowOnlyFromLocalhost) {
this.allowOnlyFromLocalhost = allowOnlyFromLocalhost;
} | 0 |
37d807d9e2bc1162491879521175229f | e39feb81c38c62ede56cf5a3b237d863 | Add an element to match any Unicode letter, decimal digit or underscore | public function wordCharacter(): static
{
$this->addToRegex($this->not ? '\W' : '\w');
return $this;
} | 0 |
80bad15a8d8a9539615d2a821a4d768c | 3fb74b6136eae8e4127de093c4656f2a | check if some vector is inside the limits of game (borders left, right and down) | namespace bissa
int check_borders_valid(void *data)
{return get_vect_flag(data,BORDERS_VALID);} | 0 |
56e3c6fb41d56469f3c2b1b4c1560c17 | 53bb9ebf3a89f6e36018278a3d3f6c8d | Get the number of young hadrosauruses are found in this encounter. | public class LionConfig
int fromCount() {
return froms.size();
} | 0 |
8d7b83a6e59767b900afbe909043cd2c | 73cf43846377fc4471be91d0cc951522 | Update all locomotion_bin files | class JsonBin(JsonMain):
def update_bin(self):
headers = {
'Content-Type': 'application/json',
'secret-key': self.api_key,
'versioning': 'false'
}
try:
req = put(self.url, json=self.read_local, headers=headers)
if int(req.status_code) == 200:
... | 0 |
ef1d941278d7ac4ad76352bba6eb32e9 | 3c486ab19bd651f4f6118776afc56163 | 问题2:两种数出现了奇数次,其他数出现了偶数次 | int []num={1,2,3,4,5,6,7,2,3,4};
int i,j;
for(i=0;i<num.length;++i){
if(num[i]%2==0){
for(j=i+1;j<num.length;++j){
if(num[j]%2!=0){
num[i]=num[i]^num[j];
num[j]=num[i]^num[j];
num[i]=num[i]^num[j];
break;
... | 0 |
286ab11a95846c9ebc185d1a26782718 | ca6432856de73e1dcd455e41018cc2ce | Fetches the name of the game corresponding to game_id. | class Twitcher(object):
def game_name(self, id):
return self.request_json("https://api.twitch.tv/helix/games", params={"id": id})["data"][0]["name"] | 1 |
a6ec8f83040b07906fd25d342283d924 | a44d5eb1bc4a61e68fa7de6e4c6f90f9 | Sets the historico persistence. | public abstract class LigneServiceBaseImpl
extends BaseServiceImpl implements IdentifiableOSGiService, LigneService
public void setImportHistoricPersistence(
ImportHistoricPersistence importHistoricPersistence) {
this.importHistoricPersistence = importHistoricPersistence;
} | 1 |
33b84f566df6157e53996462af8d2525 | 11d241f2ecbf1e6856e9a94e86095044 | hack to remove visual tabs | void BG_StripTabs(char *buf)
{
int i = 0;
int i_r = 0;
while (buf[i])
{
if (buf[i] != '\t')
{
buf[i_r] = buf[i];
}
else
{
buf[i_r] = ' ';
}
i_r++;
i++;
}
buf[i_r] = '\0';
} | 1 |
ceb47b89ee7787866f1c9e8c406caec8 | 705c9b74dd93f15c912825cf5361578a | This is the starting point of the tour. It places the user in the living
room and turns off all other cameras to save resources. | def go_home(cap,detector):
align([300, 800], cap, detector)
approach([300,800], cap, detector, 0.25, 20)
align([310,1000], cap, detector)
udp.send_message_unsafe("m", ip)
udp.send_message_unsafe("f", ip)
time.sleep(7.7)
udp.send_message_unsafe("s", ip)
udp.send_message_unsafe("r", ip)
time.sleep(3.3)
udp.send... | 0 |
33a797d53c1ad39af40a34503aa028f1 | a22a933b92fadc05937258afd4110e22 | Set display name of the remote contact | self.logger.warn(
"Setting values on display_name will NOT update the remote Canvas instance."
)
self._display_name = value | 0 |
7d346fe1533b8d3feecf6f3f7df106d9 | 43f81320aa64b650fa7da2bd70677fa4 | Get the Python type associated with this type id. | impl LocalTypeId
pub fn as_python_type(&self) -> &PythonType {
&self.ty.kind
} | 1 |
e7a0961a777eb97028d51beb4e37f842 | e4dbef221bf40b9bc680ae57e42194ac | ListBox mostrará la lista de Personas devuelta por el método Leer de Persona,
invocado al presionar el botón btnLeer. | {
using (TutorialObjectContext entities = new TutorialObjectContext(ConnectionManager.ConnectionString))
{
dgvMain.DataSource = entities.Personas.OfType<Pasante>();
}
} | 0 |
eefb6d62f65f0dcc859f2256124bad64 | 060956fc64c57149c1a9e8028edbaec2 | DEVUELVE LA CANTIDAD DE ARISTAS QUE TIENE EL GRAFO | int GInumeroArestas(Grafo grafo){
return grafo->NumAre;
} | 1 |
21641f847803b2aad5d6fa231e727ffa | 102a8f389b6ea5fc7b2eefcd4631dd33 | Checks if an element is entirely within the viewport.
Based on <http://stackoverflow.com/a/7557433/463471> | function isElementInViewport(el) {
var rect = el.getBoundingClientRect();
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <=
(window.innerHeight || document.documentElement.clientHeight) &&
rect.right <=
(window.inne... | 1 |
5f8b33af576a1f4ac2aa60a206fd7bab | d09da9f25ed404997b0d708285e6226a | print defers to the underlying grid's print method. | class World:
#constructor for the World class -- win should be a GraphWin object
def printGrid(self):
for rowNum in range(WORLD_HEIGHT-1,-1,-1):
for colNum in range(WORLD_WIDTH):
print self.getCharacterCode(colNum,rowNum),
print
print | 0 |
97095788388a700ceb22a38068e84f6a | b93f93a7c7ce5da88ad0b110d0f041b5 | Sets record creation date time in UTC | {
foreach (var record in records)
{
record.CreatedOn = DateTime.UtcNow;
record.CreatedBy = string.IsNullOrWhiteSpace(Username) ?
null : Username;
}
} | 1 |
2f7e9184d6c3cc01a0fd0dbb9d77eaa6 | 047e87e9d5ed4e7c7c3d3fce4ed5e268 | Has this tile been inspected | class Level:
def getHasBeenExplored(self,x,y):
val = bool((self.terrain[x][y] & Level._hasBeenExplored) != 0)
return val | 1 |
90d6df833e133505bed83d352f6c5ec4 | 803ba2dad157de18bdab257508773e21 | 如果未登录,先去登录界面 | class LoginHandler(BackBaseHandler):
def get(self):
if login_open == False:
self.redirect("/")
else:
self.render("../page/back/login.html",
info_message="") | 0 |
40a73f710cfda6916ad9a198c8d010f2 | f6e140aaf542ef0ca9fbe6766c1a330d | Detects support for gesture navigation. | try {
document.createEvent("TouchEvent");
return true;
} catch (e) {
return false;
}
} | 0 |
eedb26ad083e50563f625931d16e5549 | c3fd0cc9db0514a72f66d39b065d39b8 | Check to see if DefaultRootDeviceType property is set | namespace Amazon.OpsWorks.Model
public partial class Instance
internal bool IsSetRootDeviceType()
{
return this._rootDeviceType != null;
} | 0 |
77f658154a40ec6a4fbe3bf1ab92f96b | 93480eb266f809bab4351b05ffbe09e9 | This code checks the implementation of the methods in SimpleVector. | diag("Vector");
Vector<int,3> foo_1 = { { 1, 3, 5 } };
Vector<int,3> foo_2 = { { 1, 3, 5 } };
Vector<int,3> bar_1 = { { 2, 4, 6 } };
ok(foo_1.size() == 3, "foo_1.size");
ok(foo_1[1] == 3, "foo_1[1]");
ok(foo_1 == foo_2, "foo_1 == foo_2");
ok(foo_1 != bar_1, "foo_1 != bar_1");
ok(!(fo... | 0 |
157191167710a0754ff8b5d8307fd9f5 | f44979400bca8ae02c02bdccead6f481 | Try to add the same order twice. | class CartTestCase(unittest.TestCase):
def test_add_twice_to_cart(self):
cart = Cart()
cart.add(self.product, 1)
cart.add(self.product, 1)
self.assertEqual(2, cart.items[0].count) | 1 |
71518228f94e1c397589f33b3f2cef06 | 06f5d266decc9e36dbff0b6a0ce5c6f5 | Returns the name of the map's value class | public class ClassMap
public java.lang.String getName()
{
return name;
} | 0 |
0b2a2f42920199b1ed35c9f3eff45215 | b1e342272b3408b9e9725e5a81f002d7 | 设置调零气体 | {
if (calsyring.Sy_brand == "洁瑞")
{
Cls.utils.SendOrder(_Port_hpump, Cls.Comm_SyringePump.SetBrand_jierui);
this.Close();
}
else
{
Cls.utils.SendOrder(_Port_hpump, Cls.Comm_SyringePump.AutoCal_set(calsyri... | 0 |
e80ee3e51f16da64f1277a8a51f0a507 | eeefd4d08219aa5e98f62db824f12fd4 | Run a Google Page Speed API query to fetch the Core Web Vitals for a URL. | {
$api_key = get_site_option('google_pagespeed_api_key');
if ( $api_key !== '' ) {
$API_URL = sprintf( "%s?url=%s&key=%s", self::$pageSpeedURI, $url, $api_key );
$content = self::fetch_url( $API_URL );
if ( false !== $content ) {
$data = json_decode( $content );
if ( NULL !== $data ) {
return... | 1 |
fc1ce7ed578094e7986ef9b3260304df | f8e81f1b3996a217ccd4f3d9db5ccf65 | 大整数减法
输入:两个整数A, B
输出: result
status参照BigInteger::Compare() | int flag = 0;
auto begin = result.cbegin();
if (a.size() > b.size()) {
for (int i = a.size() - b.size(); i > 0; i--) {
b.insert(b.begin(), 0);
}
}
else if (b.size() > a.size()) {
for (int i = b.size() - a.size(); i > 0; i--) {
a.insert(a.begin(), 0);
}
}
if (CheckLength(a, b)) {
for (int i = a.si... | 1 |
0f2260b059832f666e0ec19e0d79120c | 48176bc0757fd2c2d4c74ccb288a73cc | 根据考核问卷ID获取问卷主表信息 | namespace SCRM.Controllers.ServiceManagement
[ApiVersion("1.2")]
[Route("v{version:apiVersion}")]
public class CrmQpaperMstrController : SCRMControllerBase
[HttpGet("CrmQpaperMstr/GetQpaperMstrInfoById"), MapToApiVersion("1.2")]
public ActionResult GetQpaperQuInfoById(string id)
{
... | 1 |
48c13cf8522d235c7ade3f353ee17750 | 5c7746df095ae6d4bf4fc6220046ec80 | Returns true of the number of nodes visited equals the number of nodes in the tree | RedBlackQueue fringe = this.fringe();
RedBlackNode leaf = fringe.dequeue();
int numblack = this.black_in_path(leaf);
leaf = fringe.dequeue();
while (leaf != null) {
if (this.black_in_path(leaf) != numblack) {
return false;
}
lea... | 0 |
cb4034f4460655a2adfdc310dbd9ab9e | 4d6d2b44c5dbaf7db5cb17d819873cc1 | Displays all files and lets the user pick the one they want to load | void gzrt_wfilesel_show ( void )
{
char * f;
N64Rom * ctx;
GtkWidget * dialog = gtk_file_chooser_dialog_new
(
"Load ROM", NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL
);
while( 1 ) ... | 1 |
967772794ef9e60954e3d600179abb04 | aa79777bcac109d56a28cf1f9fc13c94 | funkcija za racunanje drugog komplementa | int twosCompliment (int num){
num = ~(num);
num = add(num, 1);
return num;
} | 1 |
f070d8b01a0c10b3aa33f9ba0f9765ba | 4e248a8fa9f9c6b71c9ca2dc87fa90bd | Check that transfer is possible. | class SimplePointValidation(object):
def validate_transfer(self, amount_sent, amount_withdrawn):
return amount_sent > 0 and amount_withdrawn > 0 \
and amount_sent <= amount_withdrawn | 1 |
d3a6697e6a6e33afb132acd15fdf27a1 | 0de33df05fb3d84fe7e788eef16d6bca | Return name of current method | class GlobalComputedConfig
public function getMethodName()
{
return $this->inMethod->getName();
} | 1 |
c0407e510ffe354d06d208b35468653b | 48d0cacd9ad5870ff1540c89aa733712 | Gets the table, creates it if it doesn't already exist | public static class PersistenceManager
public static Table GetTable(string name)
{
if(tables.ContainsKey(name)) return tables[name];
var table = new Table();
tables[name] = table;
return table;
} | 1 |
2bdeb5e756a6982d630e41e98e6b8389 | d456500a8b0fd2bae04ac8ac21b73e6c | Test if index file is absent | class TestFetchAndTar(TempfileTestCase):
def test_not_exists(self):
tmpdir, tarfiles = backup._fetch_and_tar(es_url,
'fooindexname')
self.assertIsNone(tmpdir)
self.assertIsNone(tarfiles) | 1 |
643208dd0707ae2421b4659ba000d787 | aa38743efd23101dfbb5a3dc2c6884e4 | loads a list of all bad words from the mysql database | class ChatFilter(commands.Cog):
def load_from_database(self):
self.banned_phrase_list = []
self.numBannedPhrases = 0
for instance in COMMANDDB.query(self.BannedPhrases).order_by(self.BannedPhrases.id):
self.banned_phrase_list.append(instance.phrase)
self.numBannedPhrases ... | 1 |
0de8f01fff1519b85856560d63f7f28e | 179e3009e09668dc8d27792a8ddc9a76 | Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. | {
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.PUT;
return this.SendAsyncWithGraphResponse<TemporaryAccessPassAuthenticationMethodConfiguration>(temporaryAccessPassAuthenticationMethodConfigurationToUpdate, cancellationToken);
... | 0 |
cf25052a930fa038465ba5b31702bd5c | 87ebfb70496962be335fa15634648a1d | 预定义各个标志位 | void InitFlag(FlagType *flag)
{
flag->debug = 0;
flag->verbose = 0;
flag->daterange = 0;
flag->location = 0;
flag->test = 0;
flag->mysql = 0;
flag->file = 0;
flag->post = 0;
flag->repost = 0;
} | 1 |
859241edd0da8174b0001f642f9e2f26 | 51382b83245c1a545b1ba78f0c5ddfb1 | retrieve layouts to exclude from pageTSconfig | {
$this->generatePageTsConfig($dataProviderContext);
$pageTsConfig = $this->getPageTsConfig();
if (!empty($pageTsConfig['mod.']['web_layout.']['BackendLayouts.'])) {
$backendLayouts = (array)$pageTsConfig['mod.']['web_layout.']['BackendLayouts.'];
foreach ($backendLay... | 0 |
601494e4231d2d0f8fa69785a864e8f1 | 39f8cf3ef2a18ffe08286bdcf9f06e6e | 查询销量最高的产品sku | List<String> queryHotSaleSkuList(Integer topNum); | 1 |
29b9e197aa43e025168394f138818652 | 64817400af7f1cd8b7ce7025bd6b00f2 | 通过反射,获取方法上的注解。如果dao层方法上注解了NoSqlInterceptor,则该方法跳过sql拦截 | public class MapperProxy<T> implements InvocationHandler
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (Object.class.equals(method.getDeclaredAnnotations())) {
return method.invoke(args);
}
if (isDefaultMethod(method)) {
... | 0 |
6c288758568fce82cd7e8035185b1111 | 5991d43c6b3b49a5e5d9e8f47f1fc3ff | Функція для порівняння даних із кук з інформацією із БД | function checkData($nameInDb, $prop, $conn)
{
$sql = "SELECT * FROM users WHERE $nameInDb='$prop'";
$result = mysqli_query($conn, $sql);
return $resultCheck = mysqli_num_rows($result);
} | 0 |
10630410eae30f8220753540412db1a0 | dd5ed9e1c66203ccb4b8e32d00e01199 | Average the metric values. | def _average_metric(preds: Tensor, target: Tensor, metric_func: Callable) -> Tensor:
return metric_func(preds, target)[0].mean() | 1 |
704aa325f5e309114520e4f2f02a91c9 | 623a35ccfa868929da699814200cb165 | Creates angle array with radial polarizations. | def create_azimuthal_polarization(dim, rotation):
theta_array = np.zeros((dim, dim))
for i in range(np.size(theta_array, 0)):
for j in range(np.size(theta_array, 1)):
x = -dim / 2 + i
y = -dim / 2 + j
th = math.pi*rotation/180.0
x = np.cos(th)*x - np.sin(t... | 0 |
de7d205ff35721736781509a4a94e56d | d3cb76407f63c9ace24002d35681bc6f | Checks if the value of the minor axis is valid or not | with pytest.raises(ValueError):
TriaxialEllipsoid(
name="zero_semiminor_axis",
semimajor_axis=4,
semimedium_axis=2,
semiminor_axis=0,
geocentric_grav_const=0,
angular_velocity=0,
)
with pytest.raises(ValueError):
Tri... | 1 |
904508cdc4aaa1fd8efcbf9e3b2bb60b | 4f8fdc4f66efb9d57dd7915fed4dc82a | 拿到分类下的全部课程信息 | Example example = new Example(Course.class);
example.createCriteria().andEqualTo("categoryId", categoryId);
return this.courseDao.selectByExample(example);
} | 1 |
23664acaf5080ff606499642780e220b | ea792e6dd1f7ef0ac788377655d8265b | Delete Managed Private Endpoints. | @ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String managedInstanceName, String privateEndpointConnectionName); | 1 |
3d7b7783c70454dc6839ff7f0f5a4ba7 | 579944a40a1ced4c832c5e660dee6ae2 | 公司的月薪是否审核通过 | {
string sqltxt = "select xianzhiip from tb_teachershijuan where shijuanid=" + shijuanid;
string xianzhi = SqlHelper.ExecuteScalar(SqlDal.conn, CommandType.Text, sqltxt).ToString().Trim();
return (xianzhi == "是");
} | 0 |
32ba3baa4173fd28e403509bd0c73d73 | dbd1cb237aeb2061046104d5ff463091 | This method gets utility login information of a specific meter with ID. | {
try
{
DataTable dt = new DataTable();
SqlDBAccess.Instance.Fill(dt, "GetUtilities", new object[] { deviceID });
if (dt.Rows.Count > 0)
{
return Convert.ToDouble(dt.Rows[0][0]);
}
... | 0 |
6018a3426717496891d05b774bc0b36b | 62ab29614d6468c84f580b29f1af70a2 | 根据建筑的 ID 获取所有的房间 | function getAllByBuilding($buildingId); | 1 |
a60ae3e96c0eef2c396108cb0dc5a04f | ecc37980ba89003e70f938c14c22ef24 | @brief This method frees the remote node index back to the available
pool. Once this is done the remote node context buffer is no
longer valid and can not be used. | static void adf_nbuf_track_free(ADF_NBUF_TRACK *node)
{
unsigned long irq_flag;
if (!node)
return;
spin_lock_irqsave(&adf_net_buf_track_free_list_lock, irq_flag);
adf_net_buf_track_used_list_count--;
if (adf_net_buf_track_free_list_count > FREEQ_POOLSIZE &&
(adf_net_buf_track_free_list_count >
adf_net_b... | 1 |
1d6ad53da4808402c13513f230b0c5ce | e0ea0b8c2ca181a082d7ea9d409fb76f | BP등급그룹 등록 | public String insertComCodeGroup(@ModelAttribute("searchVO") ComCodeGroupVO searchVO
, @ModelAttribute("comCodeGroupVO") ComCodeGroupVO insertVO
, ModelMap model
, BindingResult bindingResult) {
if(!EgovUserDetailsHelper.isAuthenticated()) {
return "redirect:/uat/uia/egovLoginUsr.do";
}
beanValidator... | 1 |
ec63cd732d05a8a594a036b89a27995b | 3bc785817cca18d3b019702c6c445140 | Create an insert opcode dialog
Called when the insert opcode action is clicked. | void WF_DialogFactory::requestInsertOptions(PF_ActionInterface* action,
bool on, bool update) {
static UI_InsertOptions* toolWidget = NULL;
if (optionWidget!=NULL) {
if (toolWidget!=NULL) {
delete toolWidget;
toolWidget = NULL;
}
if (on==true) {
... | 1 |
45301e5bb1287745077b2985a29088f8 | badaf487b9e2712230eac6ec23624a44 | 购物卡消费店别排名 | class stat_storeControl extends SystemControl
public function rankOp()
{
$where = array();
if (trim($_GET['order_type']) != '') {
$where['order_state'] = trim($_GET['order_type']);
}
if (! $_REQUEST['search_type']) {
$_REQUEST['search_type'] = 'day';
}... | 1 |
bd5917ef17976178a43fe12abe8a77e0 | 37c2d15ea4173c3e397aabd805f9c993 | Accessor function for #DmQuery:excluded-ids. | class ConditionalAccessLocations
def exclude_locations
return @exclude_locations
end | 0 |
a03116060a2b1aaa647c9e1769db9006 | 999ce79269e05b6b2387b407f2046a68 | Get the parameters that the optimizer is handling. | for param_group in self.optimizer.param_groups:
yield from param_group["params"]
for stats in self.opt_keys_for_averaging:
for param_group in self.optimizer.param_groups:
for param in param_group["params"]:
yield self.optimizer.state[param][sta... | 1 |
e3389fcd353cc2d4d2a73cc8165ddd64 | 6996e2f4629338612ce0a5ef32b0f14c | 根据指定的条件删除数据库符合条件的记录,t_cmp_user_relation | delete(condition){
return UserModel.remove(condition);
} | 0 |
754615f0e81566a40758bed3a77ab4b7 | 0b677f9a380837180b5cc6a0b3e84e5e | 位置情報の観測が開始された際に、利用の認証を要求します。 | DFMLogger.logMessage(TAG, "onStart")
super.onStart()
if (isLocationPermissionGranted) {
registerReceiver(locationReceiver, IntentFilter(GeofencingService.GEOFENCE_RECEIVER_ACTION))
startService(Intent(this, GeofencingService::class.java))
googleMap?.isMyLocati... | 0 |
b72ce8e419eadd23ed630df275cedf0d | 1627f620261ec195c73d35c0fb9352e0 | Calculate losses given the current weights and store in the fitloss
dict | unweighted_losses = {
key: loss(model_input, model_output) for key, loss in self.losses.items()
}
weighted_losses = {
key: self.weights[key] * loss for key, loss in unweighted_losses.items()
}
output = Dict()
output.unweighted_losses = unweighted_l... | 1 |
9de5f96ed42206248d09f92484e39485 | 4dfcbcba0b5cc6133825e12a433352ab | 是否允许安装第三方应用 | fun Context.canInstallPackage(): Boolean {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
packageManager.canRequestPackageInstalls()
} else true
} | 1 |
eeb0473e85a5a9834906c1c511a269b2 | 52832ebf2aecf4974e8cb2dd33e2b883 | 請求書が既に存在するかチェックする | class Action extends ContractAction
private function _existsWrittenPrint()
{
$db = array();
$db['select'] =
$this->_db->select()
->from(
array('tbl_contract'),
array(
'contract_no' => 'f_contract_no',
)
)
->where('f_member_id = ?', $this->_member_id)
->where('f_print_finish_flg = ?', FL... | 1 |
ae9c7e8150710c39d1e61bd3e98c388c | 6f702d597c8b98fb679de5164a2ea492 | Creates a service account | async function createServiceAccount(
projectId: string,
accountId: string,
description: string,
displayName: string
): Promise<any> {
const response = await api.request(
"POST",
`/${API_VERSION}/projects/${projectId}/serviceAccounts`,
{
auth: true,
origin: api.iamOrigin,
data: {
... | 1 |
c024a5516626457783cdfca1a1614033 | ba8f83b2014a7890cdd3226f9ca5912f | 現在報酬月額を取得します。 | public class Apl0013s01Dto extends BaseDto
public BigDecimal getPrincipalSum() {
return principalSum;
} | 0 |
c698f5a026b0d53c6cf8fc21662dfacc | 19aeac8b9a59f79a9f07182ed88f654e | returns whether modules are allowed to prompt or popup dialogs if
neccessary. | get showPrompt() {
return !prefs.preferences.getPref(PB_NO_PROMPT_PREF, true);
} | 1 |
d5788f681c67ba605ca460fd4925bef8 | 7d5a25a44af6ff15ad5ac95045444b24 | Get displayIndex | namespace DevComponents.AdvTree
public class ColumnHeaderCollection : CollectionBase
public int GetDisplayIndex(ColumnHeader column)
{
int index = this.IndexOf(column);
UpdateDisplayIndexMap();
for (int i = 0; i < _DisplayIndexMap.Count; i++)
{
... | 1 |
e29c3c5dff5272d2e4b56de1df374fd5 | 9a711229aef47a283d0e36614a5f0ebd | Get the nearest safe spot | public class LocationUtil
public Location getSafeDestination(final Location loc) {
if (loc == null || loc.getWorld() == null) {
return null;
}
final World world = loc.getWorld();
int x = loc.getBlockX();
int y = (int) Math.round(loc.getY());
int z = loc.getBlo... | 1 |
4e25faa9d9220939a44d3eb9acdabcee | b05858fa17ba64769ca723735f6fdf79 | Returns true if this weather doesn't contains any actual values. | @AllArgsConstructor
@NoArgsConstructor
@Getter
@ToString
public class AggregatedValues
boolean isBlank() {
return count == 0;
} | 1 |
6945dfc6c67f766dbdc7345ebf0bdcfe | 238acd72e851b7e8b475186c11351643 | Set 任务来源, -1:所有, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android); | class UmengUminiGetCustomerSourceOverviewParam
public function setSourceType($sourceType)
{
$this->sdkStdResult["sourceType"] = $sourceType;
} | 1 |
2ee23d8479ec1fdaf0c1ea494c756ab1 | 5cb942d932d32c8f50038184f70bb85e | 2. 包装类 ---> 基本数据类型:调用包装类Xxx的xxxValue() | Integer num1 = new Integer(10);
Double dou = Double.valueOf(20.0);
Character character = Character.valueOf('a');
Integer num2 = Integer.valueOf(17);
int val = num2.intValue();
Object object = 17;
Integer integer = 17;
Object object2 = integer;
int... | 1 |
276a6ebe81e6110e40f4dbac56b8a57c | 573f12df848a5456338cb8bbac5e614d | 根据domainId和purviewId删除互斥体 | class PurgeApi(object):
def purge(self, purgeBatch, domainId=None):
if domainId is not None:
url = self.HOST + "/api/purge/" + str(domainId)
else:
url = self.HOST + '/api/purge'
try:
if domainId is not None:
post = purgeBatchForOneDomainToXml(p... | 0 |
f3f043a1f63f4d6f44587503d6507304 | 83d9972d8999c3f14db049862a1b9cf5 | Gets the user_id of this OsisUser. # noqa: E501
user id # noqa: E501 | class Epubexport(BaseModel):
def user_id(self):
return self._user_id | 0 |
1d703fa36bad6e40a5f1ba82c6ae5213 | c0ca9d5b96cd977d6d9880299df38aac | This function parses BSS related parameters from structure
and prepares TLVs. These TLVs are appended to command buffer. | {
UInt8 simple_tlv_objects[MAX_SIMPLE_TLV_DATA_LENGTH];
UInt16 simple_tlv_length = 0;
UInt8 *simple_tlv_ptr = NULL;
UInt16 tlv_length = 0;
UInt16 command_detail_length = 0;
UInt16 device_identities_length = 0;
UInt16 filelist_length = 0;
KRIL_DEBUG(DBG_INFO,"refreshType:%d appliType:%d F... | 1 |
38866808b602f107f52c7e9251102cc6 | d731a21b32288e750a07f2e8fcee51d2 | 显示保存意见成功时的返回结果 | function responseTip(data) {
layer.closeAll();
var json = JSON.parse(data);
if (json.success === true) {
layer.msg("保存成功");
} else {
alerts("保存失败,请稍后重新尝试");
}
} | 1 |
7d0c1c2816e3675bfda5260f2db50a97 | 345d3d0416f0aaab8a72de37e74da4ce | Check whether the boot loader prompt is currently active
at the device. | class OPCR1(_OPC):
def _enter_bootloader_mode(self):
return True if self.cnxn.xfer(0x41)[0] == 0xF3 else False | 1 |
3a6aa62764bd61886770ab877d6264ce | 7536f04cb60aee0a15484cdb2f2299ba | Initializes or (checks out) the extension that correspond to the specified extension code. | {
if (!Locale.LoadDictionaries(AdminContext.AppDirs.LangDir, Code, out string errMsg))
AdminContext.ErrLog.WriteError(AdminPhrases.ExtensionMessage, Code, errMsg);
ExtensionPhrases.Init();
} | 1 |
423273c09c26ad0822470e2c9d4779ca | 7010564f4a151989114ed312f8e27be1 | Retrieves all books from librivox API. | def get_list_books(params=None):
result = get('{0}/books'.format(host), cookies=auth(), params=params)
return result.json() | 1 |
4af22286f5f18e2856ce2ae5b327a6bd | d79f4719f8e5b6a4d4a0124ec8031041 | Verifica se si verifica l'evento Shutdown | if not self.__getShutDownRunning():
logger.info("WARNING: Shutdown received! - Processing it ...!")
self.__shutdown()
else:
logger.info("WARNING: Shutdown received! - We can't process it because another shutdonw process is running!") | 1 |
b22949c7b96967c3d0bbf1baee7b4131 | f36a79d3edc1dfb5c283d8a15dd25555 | Retrieves a specific <see cref="!:OrganisationDepartmentModel" /> instance. | namespace Consensus.Contact
public partial class LocalOrganisationDepartmentFactory : LocalFactory<LocalOrganisationDepartmentModel, DepartmentRecord, String>, IOrganisationDepartmentFactory
public LocalOrganisationDepartmentModel FetchById(String id)
{
DepartmentRecord record = this.Provider.Da... | 1 |
b3ae47230d427de2d438efe6943c3d20 | 271a521a390f33959372970870b21e51 | Parameter to specify whether to enable database partitions when creating the target database. | class TopicArgs:
def enable_partitioning(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "enable_partitioning") | 1 |
e9f696c8462df732686fc36204391ea1 | 7a79ca4606f0819f6ca4a074683e7ba7 | <para>Called after load to determine if the object can be a cluster root </para>
<return>true if this object can be a cluster root </return> | public abstract class BPItem
boolean canBeRoot() {
return false;
} | 1 |
c74d8d8d83a57fe1d442b43423d91560 | bf062a9cf832b44bc44d09b1fc2c13ca | Returns the previous sibling node of type <see cref="XmlNodeType.Element"/>, or null if there is no such node. | Node n = el.getPreviousSibling();
while (n != null && !(n instanceof Element)) {
n = n.getPreviousSibling();
}
if (n instanceof Element) {
return (Element) n;
} else {
return null;
}
} | 1 |
296ffdfcdb872bdbb5b0ad7c8d79f0e7 | 19d2fd4f45f0e7d8c726522c3303ae35 | @brief USBH_LL_GetLastXferSize
Return the last transferred packet size. | uint16_t getUART_BB_RcvDMAPktLength(void)
{
return huart1.RxXferSize - huart1.hdmarx->Instance->NDTR;
} | 0 |
4945be07552c2e013e2abb18e5212886 | 6a60ae3d938a5a113d3ce65c7365ed7d | Checks, whether response lexeme with specified index is a moved answer lexeme | public boolean isAnswer(); | 0 |
f852d6c04d0e18cc0daad5a21e2eea5b | 676f6b5fe7339e4662701bde5a5239c3 | Gets the list of names of chunks for the given segment. | rv = self._usb.control_transfer_in(
None, 'device', 'vendor',
request=UsbdRequest.READ_CHUNK,
value=segment, index=chunk, length=CHUNK_SIZE)
_ioerror_on_bad_result(rv)
return bytes(rv.data) | 0 |
1a1d93fbf6de7292ce5ef263174abffd | 3ba6cb4765f2a6c0873983e965e3eea5 | MDIクライアントのHWND取得関数 | HWND CreateMDIClient(const HWND hParent,const HINSTANCE hInst)
{
CLIENTCREATESTRUCT ccs;
ccs.hWindowMenu=GetSubMenu(GetMenu(hParent),1);
ccs.idFirstChild=IDM_FIRSTCHILD;
return CreateWindowEx(0,
_T("mdiclient"),
0,
WS_VISIBLE|WS_CHILD|WS_CLIPCHILDREN... | 1 |
6a1de9fe61749d8c436e51779658c8b8 | cc0db74a4b4d260cacec47a7b2f4a2a6 | Create unique URIs | class UriFactory implements UriFactoryInterface
public function create($class, $writtenForm, $seed) {
switch (strtolower($class))
{
case 'lexicalentry' :
$uri = new LexicalEntryUri();
$uri->setUriBase($this->getUriBase());
$uri->buildUri(array(... | 1 |
78bb87ddaf4444a6c889ea2f0ca7f4bf | 14000378f38965391afe28985f091274 | Gets the value of the queryParameters property.
possible object is
{@link QueryParameters } | public class RequestMock
public MultiValuedMap getRequestQueryParameters() {
return requestQueryParameters;
} | 0 |
29d651c7d062276fed9c84d9dc25b912 | 977cadb726d66441bd637a20019d412c | Feature: Check the length of list input Map.
Description: The list in Map should have same length.
Expectation: The list in Map should have same length. | public class ExecutionTests extends AbstractExecutionTest
@Test
public void testMapSequence() throws IOException {
assertEqual("mapSequence");
} | 0 |
0c2a69c841b1fe70da2d021d88480c59 | 22b5578e4f19281904c84b5fc7ae748a | 设置APP只能竖屏显示 | FragmentActivity appCompActivity = PlayerUtils.getAppCompActivity(getContext());
if (appCompActivity != null) {
appCompActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
} | 0 |
5ef4ff15095076be7c3d728af4e70c4a | 9a2d0a212c1086d4bebcc3c044ca0128 | 统计各学校用户数
k:学校代码
v:用户数 | class class_data{
public static function count($request) {
$fieldsAll = ['uid', 'time', 'k1', 'k2', 'v1', 'v2'];
$and = $request->query['and'];
if(is_string($and)){
$and = json_decode($and, true);
}
$AND = [];
foreach($and as $k => $v){
$subk = explode('[', $k);
if(in_array($su... | 1 |
f8eee299b1ea2440183b631b16b1b821 | 9c669f9a032f5d0b523eb5e09f04dae7 | LISTA DE TODOS OS GRUPOS | {
$this -> db -> select('*');
$this -> db -> from('tm_grup');
$query = $this -> db -> get();
return $query;
} | 1 |
56a4cfbec3d1dc091de20e1c8c6f3ce7 | 2af0467cb8f29132467b1595321ffdbe | This method deletes the clicked user
from firestore and removes it from the user table.
Part of the View Staff Component. | private void removeUser() throws IOException {
UserDatabase UDB = new UserDatabase();
UDB.removeUser(dataBaseName, deleteUserIDInput.getText());
deleteUserIDInput.setText("");
userTable.getItems().clear();
populateTable();
} | 1 |
feda39e7d8219262e4b3983ffe21740c | 8ad622d528ed40edec063dac55f3fe55 | 查询余票及价格 | @Service
public class RedemptionBusinessWebServiceClientImpl implements RedemptionBusinessWebServiceClient
@Override
public QueryPriceInformationResponse queryPriceInformation(QueryPriceInformationRequest queryPriceInformationRequest) {
QueryPriceInformationRequestDto queryPriceInformationRequestDto = new Q... | 1 |
f03a2451c9708f939c503e45cf7a16e1 | 78d809b5e988d99797d1e94237d0f4d7 | 返回为true表示文件流打开没问题,false表示出错 | boolean flag = false;
try {
ImageInputStream is = ImageIO.createImageInputStream(file);
if (null == is) {
return flag;
}
is.close();
flag = true;
} catch (Exception e) {
e.printStackTrace();
}
... | 1 |
9cbbf9bfd71c910d54f4fa80345c4a44 | 6a70d3cff1918fcd3e037d914896e618 | Obtem a ultima reprovação feita pela gerencia / diretoria operacional / juridico ou diretoria. | public class Req extends ACBrComposedClass
public String getFinalizacao() throws ACBrException {
ByteBuffer lFinalizacao = ByteBuffer.allocate(STR_BUFFER_LEN);
int ret = ACBrTEFInterop.INSTANCE.TEF_Req_GetFinalizacao(getHandle(), getComposedHandler(), lFinalizacao, STR_BUFFER_LEN);
checkResult(r... | 0 |
ac480358c832687f8732b0c142834f17 | 022cc27217f42bea35dc2493bb02b715 | Returns the meta object for the attribute '{@link PaymentsApp.InformationTemplate#getName <em>Name</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Parameter_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Parameter_name_feature", "_UI_Parameter_type"),
... | 0 |
97886e368029ee71aa28b238e3e5ef0d | 8f7805fff77ee03174bedf01a2d0f861 | Emits parsing error. | export class MD5AnimParser extends ParserBase
private sendParseError(expected: string) {
throw new Error("Unexpected token at line " + (this._line + 1) + ", character " + this._charLineIndex + ". " + expected + " expected, but " + this._textData.charAt(this._parseIndex - 1) + " encountered");
} | 1 |
cdd459906cc82f04702cb9b31cd96184 | 6140dae5b47fad70ee71a42680c474f6 | Seçili Olan Cevabı konrtol işlemleri,Aşama Numarası Güncelleme ve Tarih Güncelleme İşlemlerinin Yapıldığı Yer | namespace sayiBulmaca
public partial class Form1 : Form
public void SayaclariKontrolEt()
{
if (Suaneslesmebasamak > BilgisayarınUrettigiSayi.EslesenBasamakMiktari)
{
if (Suaneslesmesayi == BilgisayarınUrettigiSayi.EslesenSayiMiktari)
{
... | 0 |
e6eeb2d20f27f9cf8ab5117fef464c86 | fb0315044be40e7ea54faffee4ca6e25 | Function Name: Audio_opamp_RestoreConfig
Restores the current user configuration registers.
void
void | void SPDIF_RestoreConfig(void)
{
#if(CY_UDB_V0)
uint8 enableInterrupts;
enableInterrupts = CyEnterCriticalSection();
SPDIF_FCNT_AUX_CTL_REG |= SPDIF_FX_CLEAR;
SPDIF_PREGEN_AUX_CTL_REG |= SPDIF_FX_CLEAR;
CyExitCriticalSection(enableInterrupts);
#endif
SPDIF_FCNT_... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.