query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
f742b9ab5f0792cf9e366367e1b766fa | e38c7118f9e21e5178a48dd47d79e121 | Delays the current dialogue from showing immediatly. Used in tangent with a cutscene | public class Dialogue2 : MonoBehaviour
IEnumerator tempDialogue()
{
yield return new WaitForSeconds(5);
secondDialogue.SetActive(false);
gameObject.SetActive(false);
} | 1 |
5f1e2fa2007121b4977f3ce00cf09830 | bd601b7ccdb10cceb8623d4033cd8f65 | Get the name of the "updated by id" column. | class BaseModel extends Model
public function getUpdatedByColumn()
{
return static::UPDATED_BY;
} | 1 |
2ae28307816107c709f154de12793b4f | 1fad264e579152c79f481c53771b6e8e | PREGs that describe valid sources to route trough | {
return array(
self::DESTS, self::AP, self::JAVA_SCRIPT, self::PAGES,
self::TEMPLATES, self::IDS, self::URLS, self::EMBEDDED_FILES,
self::ALTERNATE_PRESENTATIONS, self::RENDITIONS
);
} | 0 |
6f7d72757271e8b3454ae7bcc2e1c5f8 | 97e2d5ab7407155fadf844da4240e3dd | キューの受信結果を整形 | try {
var json = JSON.parse(result);
Util.buffer = (json.text) ? Util.sanitize(json.text) : (json.code != 'o' && json.message) ? "<font color=\"gray\">(" + json.message + ")</font>" : "<font color=\"gray\">(なし)</font>";
} catch (e) {
if (result.indexOf("\x01") == -1) {
Util.buffer = (r... | 1 |
81f82983dc633fb027febedad6329bdf | 2317bbe47a3a3d6be7ad4fb69e1e618e | 从SS view的config view接收消息 | function LoadMatchControlEx:onSuonaBroadRecv_(evt)
if evt.data and evt.data.msg_info then
local msgInfo = json.decode(evt.data.msg_info)
local msgType = msgInfo.type
if msgType == 4 then
local loadConfigCallback = self.loadMatchConfigCallback_
self:loadConfig(nil,load... | 1 |
6103bbe6b41dad7f076ed16292d158b6 | 729b8feec5371288649260ff0f5243d2 | Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations | class EndpointProtocol:
def dsk_output_key_map(self):
return self._endpoint.outputs | 0 |
d2cb71227b2cc780d0791267509ff730 | fcc859e9590b0bfe462c5683f2762c51 | Looks at the digit at [row][col] and determines whether
that digit has already been seen by checking digit_location_arr.
If the digit has been seen, then set the cell state to :wrong, otherwise
record the location of the digit. | class Sudoku
def process_cell(digit_location_arr, row, col)
return unless @grid[row][col][:digit]
current_digit = @grid[row][col][:digit]
if digit_location_arr[current_digit]
maybe_set_cell_state(row, col, :wrong)
maybe_set_cell_state(*digit_location_arr[current_digit], :wrong)
else
d... | 1 |
88cbec1d39fc444013427a90a181821f | ce36e12ae33b7ad13fa38ca7c48160b3 | Получить список типов счетов для открытия торгового счета трейдера | {
AccountReferenceModel model = new AccountReferenceModel();
model.AccountTypes = AccountTypesDao.LoadAll().ToList().ConvertAll(x => new AccountTypeDto() { Id = x.Id, Name = x.Name, IsActive = x.IsActive }).ToList();
return model;
} | 1 |
ce247555cfde0f0743bc06861d6b64d6 | 1f6c8ef76e66cb846a56dc72e52f7113 | Добавление заявки. | public RequestDto addRequest(RequestDto requestDto) {
logger.debug("add request");
requestDtoValidator.validate(requestDto);
Request request = new Request(requestDto.getSum(), requestDto.getTerm());
Client client = clientDao.getClientByFullName(requestDto.getClientFullName());
... | 1 |
1254936ef0cef530c45185aa7d63045c | c8a3b291399772eb0828ecbb748139da | Returns the deque of loaded transportables | public class Transporter<T extends Transportable>
public Deque<T> loadedGoods() {
return loaded ;
} | 1 |
5f6e49103ea5f110183c476de94111c5 | d0b31b0fe42e9b758d15a0251ca474fc | Sets the bounds for recording, relative to the center of the screen | namespace YesAndEngine.Components public class YesAndCamera : MonoBehaviour
public void SetBounds (float? left = null, float? right = null, float? top = null, float? bottom = null) {
leftBound = left;
rightBound = right;
topBound = top;
bottomBound = bottom;
LockedToBounds = true;
HorizontalMotionEna... | 0 |
da9148827525f2053c76b7067306a4a8 | 3b6a64eda283960dd0e64a50c7f3e4aa | Show the a confirmation of the request made by the user. | class ContactController extends FrontController
public function confirm(ContactRequest $request){
return view('front.contact_confirm', $request->all());
} | 1 |
d94f12b095be1aa6c2d3a042b2de6c08 | 8b0f3988f86fc7739cff4c252bba58a3 | Mendapatkan semua tugas kelas TA2 yang diberikan di kelas ini. | {
$tugas = Tugas::where('tugas_kelas', \Auth::user()->kelas)->orderBy('created_at', 'DESC')->get();
return view('students.tugas.index', compact('tugas'))->with([
'page' => $this,
$this->breadcrumbs = [
['url' => '', 'title' =>'Tugas Siswa'],
]... | 1 |
fceb3ac6a767ae53687fa113b6b4cebf | cc228198cd359772e60da0fd9d22c23f | Handle notification of one or more FIBs coming from the controller. | class LVNFPMainHandler(tornado.websocket.WebSocketHandler):
def _handle_hello(self, hello):
addr = EtherAddress(hello['addr'])
pnfdev = self.server.pnfdevs[addr]
if pnfdev.connection:
delta = time.time() - pnfdev.last_seen_ts
dl_bytes = hello['downlink_bytes'] - pnfdev.do... | 0 |
9959f385c0fb26b4af3345e9b041e732 | 78165009e9a36894075ca737ef10c8bb | Writes the field data on disk. | namespace Dolhouse.Engine
public class JField
public void Write(DhBinaryWriter bw)
{
bw.WriteU32(Hash);
bw.WriteU32(Bitmask);
bw.WriteU16(Offset);
bw.WriteS8(Shift);
bw.WriteU8((byte)Type);
} | 1 |
bb559def4a071adae406bd631faaaddc | 6a488d0896b7c0b9dc08913388d4fe5d | Initialize the QtiPlot module. | class SshTunnelQgis:
def __init__(self, iface):
self.iface = iface
self.plugin_dir = os.path.dirname(__file__)
locale = QSettings().value('locale/userLocale')[0:2]
locale_path = os.path.join(
self.plugin_dir,
'i18n',
'SshTunnelQgis_{}.qm'.format(locale... | 0 |
be01d6174a681a9215019a389ec6494f | 64de47e2fe7199cdd02749c5d44792fa | Execute GetStatistics action to get Wifi statistics. | {
var options = new InvokeOptions();
options.RequestMarshaller = GetWirelessGatewayStatisticsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWirelessGatewayStatisticsResponseUnmarshaller.Instance;
return InvokeAsync<GetWirelessGatewayStatisticsRespon... | 0 |
7effbf3495c9ddf43453d4fbf676be79 | 3989f0ad30e348e8f06e378467576995 | Interface for touch event(ex down, up, move) | class PainView(context: Context?, attrs: AttributeSet?) : View(context, attrs)
override fun onTouchEvent(event: MotionEvent?): Boolean {
val action = event?.actionMasked
val actionIndex = event!!.actionIndex
if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_POINTER_DOWN) {... | 1 |
159193fc674a1e4e6a7cbf6906bf01f8 | 6900b0c6a5543bf270f930e85549773b | Check to see if ControlSetName property is set | namespace Amazon.Route53RecoveryControlConfig.Model
public partial class AssertionRule
internal bool IsSetName()
{
return this._name != null;
} | 0 |
2b32ac10fde0df08e2879d60029fa7e5 | 62fb3f9d7bc98867c5acf96b595eff26 | 获取属性transAmt的值 | @Entity
@Table(name = "T_MSG_SAPS_601_001_01")
public class Saps60100101 implements java.io.Serializable
@Column(name = "AMT_VALUE1")
public Double getAmtValue1() {
return amtValue1;
} | 0 |
3b1c2c8d74c0d73ea94edbd56af11bc3 | 3cb8ccc20c7cdf446b9068cf1dec6408 | Sets the boost value for this document
The index-time boost value for this document.
</p> | namespace MongoDB.Labs.Search
public sealed class ScoreDefinitionBuilder<TDocument>
public ScoreDefinition<TDocument> Boost(double value)
{
return new BoostValueScoreDefinition<TDocument>(value);
} | 1 |
7bb3d51b8765bfea6145acd955d11bbd | c826d09bc3a6d8ce96866b79fe27302e | 查询区域下拥有某一角色的所有人 | @Service
public class RegionServiceImpl implements IRegionService
@Override
public List<UserOutPut> findUserByAndRegionId(Long regionId) {
return regionDao.findUserByAndRegionId(regionId);
} | 0 |
47806a2fb9f352a7d642520b0aca6e46 | ea62ffc3bdc2885bbbbe462d7209b437 | Increases a specific count of students by one. | public class Course implements Comparable<Course>, Serializable
public void studentAdded() {
currNum++;
} | 1 |
c04019f54dba85ad7587e3084a894a70 | fb0fefe9bd4bb5140394d9e220c4464a | Gets the "statuscode" element | @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StudySubject", propOrder = {
"paymentMethodCode",
"statusCode",
"studySubjectProtocolVersion",
"studySubjectStatus"
})
public class StudySubject
extends Subject
public CD getStatusCode() {
return statusCode;
} | 1 |
15e52a9ab373b35069cf7fdb67794536 | 0b73d1071d608d5237548099c1ededa1 | This function occurs when a player name is clicked in the loadCharacterDropdown.
Currently, it is very basic and functionality will be added in the future. | let name: string;
switch (playerRole) {
case 'player':
name = this.playerDataArray.controls[i].get('playerName').value;
this.teamService.playerName = {index: i, playerName: name};
break;
case 'farm':
name = this.farmPlayerDataArray.controls[i].get('playerName').value;... | 0 |
7d2b7938aef7c1b5247e76747d23ec54 | bf62cb232aadbf3712bd632b5e2bc36c | 根据用户ID查询用户购买过的训练营 | List<Map<String, Object>> queryJoinListByuId(@Param("userId")Long uId) throws Exception; | 1 |
02495b73af224488910d4466305d330e | 4239b917e01be1bf7737388dd019635d | Saves the product file. | await appendFile(
this._filePath,
[
JSON.stringify( result.articleNumber ),
JSON.stringify( result.productName ),
JSON.stringify( result.productImage ),
JSON.stringify( result.pricePerDay ),
JSON.stringify( r... | 1 |
92d98948bbf8a1a2c1fe2ea4e43c3652 | b45fc02f11fd69c875d45b2b3c0b5aed | # Create and plot a continuous color legend | var[is.nan(var)] <- 0
var[is.infinite(var)] <- 0
plotvar <- var
nclr <- 8
plotclr <- brewer.pal(nclr, color)
class <- classIntervals(plotvar, nclr, style = "quantile", dataPrecision=1)
colcode <- findColours(class, plotclr)
legcode <- paste0(gsub(",", " - ", gsub("[[]|[]]|[)]", "", names(attr(colcode, ... | 1 |
1e6733eeb559dadeaa64b82b7e1c8aaf | 144c5570fb5af3de8b5542332d99ab38 | number of ternary operators | unsigned numbOperators(const std::string &str)
{
unsigned cnt = 0;
for (const auto &i : str)
if (i == '+' || i == '-' || i == '*' || i == '/' || i == '^' || i == '$')
++cnt;
return cnt;
} | 0 |
8735ae16c3688c436008b4c8a7435f62 | b739b9500a2ebe0a605932da09038ece | The level of permissions that the user has within the RStudioServerPro app. This value defaults to `R_STUDIO_USER`. The `R_STUDIO_ADMIN` value allows the user access to the RStudio Administrative Dashboard. Valid values are `R_STUDIO_USER` and `R_STUDIO_ADMIN`. | class DomainDefaultUserSettingsRStudioServerProAppSettingsArgs:
def user_group(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "user_group") | 0 |
b2835479fff4b3daebe6c0451ac13202 | dcba95a6bfbb599e3ebbf6adef056535 | Return to windowed mode | termcap_mode_end()
{
g_attrSave = g_attrCurrent;
ResizeConBufAndWindow(g_hCurOut, g_nOldColumns, g_nOldRows);
check_winsize();
g_hCurOut = g_hSavOut;
SetConsoleActiveScreenBuffer(g_hCurOut);
SetConsoleCursorInfo(g_hCurOut, &g_cci);
normvideo();
if (!p_rs)
g_coordOrig.Y = g_srOrigWindowRect.Bottom;
SetConsole... | 1 |
0637d7a34890457cd7e102034a7cd14d | a14f96f96a1cd5b6114de8d654fee3d4 | Test that an admin user cannot add an existing unit name. | tests.create_base_items(self.session)
tests.create_site(self.session)
site = mirrormanager2.lib.get_site(self.session, 1)
results = mirrormanager2.lib.add_admin_to_site(
self.session, site, 'pingou')
self.assertEqual(results, 'pingou added as an admin')
result... | 0 |
6fabdbcdc2c9d6a98e849a404ec11045 | 79d2f3489a17b3e9a722f6740b218a4a | int型变量的大小端转换 | {
byte[] le_size = BitConverter.GetBytes(src);
if (BitConverter.IsLittleEndian)
{
return le_size;
}
else
{
Array.Reverse(le_size);
return le_size;
}
} | 1 |
a0934a8e6f372233ed7c90b3ef8b7586 | 55edc9e9a113dbb17d43e4d10697c2e2 | calculates the output of a convolutional layer
pre- and post-activation | def conv_forward(A_prev, W, b, hparameters):
m, n_H_prev, n_W_prev, n_C_prev = A_prev.shape
f, f, n_C_prev, n_C = W.shape
stride = hparameters['stride']
pad = hparameters['pad']
n_H = int((n_H_prev + pad * 2 - f) / stride) + 1
n_W = int((n_W_prev + pad * 2 - f) / stride) + 1
Z = np.zeros((m,... | 1 |
f10b9e97ae69937d153ffaa3e8f9e3a1 | 2c2d13cba2a84403154c61da79f02e4f | 変形前後の三角形からあふぃん変換行列を計算する関数 | x11: Float, y11: Float, x21: Float, y21: Float, x31: Float, y31: Float,
x12: Float, y12: Float, x22: Float, y22: Float, x32: Float, y32: Float): Matrix {
val matrix = Matrix()
transformTriangle(x11, y11, x21, y21, x31, y31, x12, y12, x22, y22, x32, y32, matrix)
return matrix
} | 1 |
990dcb34fd22487e9a481e6f0e5f67b2 | 7b717886cb52c0c10bcc6b33bdadb806 | Adds a new entry to the shop_category table based on JSON data
return values and what they mean:
0: shop category with name already exists | $output = $this->input->post("output");
$given_arr = json_decode($output, true);
create_categories($given_arr, 0);
header("Location: ".$_SERVER["HTTP_REFERER"]);
exit;
} | 0 |
10af18cc75a0affc172e0ca5824c3e77 | c04af6fdf98e6d21f83f17e1f70f0824 | Check whether variable size is less than or equal to vlen_max,
without overflowing in arithmetic calculations. If OK, return 1,
else, return 0. For CDF1 format or for CDF2 format on non-LFS
platforms, vlen_max should be 2^31 - 4, but for CDF2 format on
systems with LFS it should be 2^32 - 4. | nc_def_vlen(int ncid, const char *name, nc_type base_typeid, nc_type *xtypep)
{
NC* ncp;
int stat = NC_check_id(ncid,&ncp);
if(stat != NC_NOERR) return stat;
return ncp->dispatch->def_vlen(ncid,name,base_typeid,xtypep);
} | 0 |
8e54fcb03e016288ff6b58181921bd32 | 66552faede191e9042170f689cb9ca41 | Funcion tiempo medio laminas de todos los pedidos finalizados y con un rango de fechas | $this->layout='';
$senderlogs = $this->Senderlog->find('first',array('fields'=>array('(TIMESTAMPDIFF(SECOND,Senderlog.fechaenv,now()) % 86400) DIV 60 AS Minutos'),
'order'=>'Senderlog.fechaenv DESC'));
$tiempopas=0;
if($senderlogs[0]['Minutos'] < 0)$senderlogs[0]['Minutos'] = $senderlogs[0]['Minut... | 0 |
795faba5ffb43124c52c356c64fef65a | 98731d3fd2cc1cb90f8a5254e5b939ca | Retrieves the source records via the given delegate. | namespace VanessaSharp.Data.Linq.Internal.ExpressionParsePipeline.Queryable
internal sealed class QueryableExpressionPreEvaluator : IQueryableExpressionHandler
void IQueryableExpressionHandler.HandleGettingRecords(string sourceName)
{
_internalHandler.HandleGettingRecords(sourceName);
} | 0 |
ff8d283478a083f578ce95e156d9a544 | 175cb2ff3ce0017f6ceb0f8ef9a33f91 | Tells if this listener must be removed after transaction completion | public class BCPManager
public boolean getRemoveAfterExecute() {
return removeAfterExecute;
} | 1 |
383ab51aa46a6e34937e2bbc9a095e5e | 00830d7ea92f84e884a51c651910fe2a | Constructor method for esdContraintesAgence | {
$this->agence = $agence;
$this->userAgence = $userAgence;
$this->manager = $manager;
$this->compteRepository = $compteRepository;
} | 0 |
637e0b405308e14f057112adf0f22009 | 099285980f54f1b4989e8671f213079e | Check that particular file in local dir meets size requirement
specified by schema | if type(condition) == str:
self.log("checking file "+condition)
if not exists(condition):
condition = True
else:
if os.path.isfile(condition) and os.path.getsize(condition) <=0 and size_check:
condition = True
... | 1 |
788d357fd34226e96cd06a0ad477774b | 217a4578b7c717fbfe55d1899890ed7f | parses a Project from a line of text. discards comments, as they
are recomputed by the scripts. | line = line.rstrip()
columns = line.split("\t")
if len(columns) != 5:
raise ValueError("I don't understand the format of %s" % line)
sunid, self.nodetype, self.sccs, self.name, self.description = columns
if self.name=='-': self.name =''
self.sunid = int(su... | 0 |
59318f723f46d3a8e7ac54e41d6b8a1b | e230088e7186e2aae80542b2c850e756 | Method that returns a list of that k colors computed using k-means. | int[] middles = getRandomMiddles(points, numColors);
DominantColor[] colors = new DominantColor[numColors];
while(true) {
ArrayList<Integer>[] newClusters = new ArrayList[numColors];
for (int i = 0; i < numColors; i++)
newClusters[i] = new ArrayList<Integer>();
for (int point : points) {
double ... | 1 |
fd5808fd0dd73e95bfc3dd2d8020e711 | f76d43c590ef6ab58e60422d696a0f1f | @brief TIMER set preload register low 32bits value | void T30_SetHizReg(TIMER3n_Type* TIMER3n, uint32_t u32T30HizSet)
{
TIMER3n->HIZCR = u32T30HizSet;
} | 0 |
a474c027923e2e69d743d545931b13ef | 14ff633036bdaaa5cf8624b7b9675ec0 | taobao.items.search 搜索商品信息
- 根据传入的搜索条件,获取商品列表和商品类目信息ItemCategory列表(类似于淘宝页面上的商品搜索功能,与 taobao.items.get的区别在于:这个方法得到的结果既有商品列表,又有类目信息列表)
- 商品列表里只能获得商品的部分信息,商品的详细信息请通过taobao.item.get获取
- 商品类目信息列表里只包含类目id和该类目下商品的数量
- 不能通过设置cid=0来查询 | @Service(timeout = 5000)
public class ItemSearchServiceImpl implements ItemSearchService
@Override
public Map search(Map searchMap) {
Map map=new HashMap();
map.putAll(searchList(searchMap));
List<String> categoryList = searchCategoryList(searchMap);
map.put("categoryList", categoryL... | 1 |
205de146510aa495beb1a67fb5e19f06 | 3df823d5721fbec3ff49a032d403a71a | Method to get count of Autos | {
try {
return $this->createQueryBuilder('a')
->select('COUNT(a)')
->getQuery()
->getSingleScalarResult();
} catch (NonUniqueResultException $e) {
return 0;
}
} | 1 |
eb9d03e1212edae833d873bc58c5902c | 34f727fd8e940f6049e588673dd05557 | Grabs all reviews from given restaurant's yelp page. | allreviews = []
parseurl = url
while True:
response = retrieve_html(parseurl)
if response[0] == 200:
root = parse_page (response[1])
allreviews = allreviews + root[0]
if root[1] != None:
parseurl = root[1]
else:
... | 1 |
d9ed417cb39a4b9d4683d09d4106109b | 9be422a6d2be3ade0689123d2a6f9685 | Recalculates the forwarding table based on the router's current link costs and the copies of
distance vectors it has from its neighbors. | public class RouterNode
public void recvUpdate(RouterPacket pkt) {
System.arraycopy(pkt.mincost, 0, table[pkt.sourceid], 0, num_network_nodes);
recalculate_table();
} | 1 |
eb152cc5ab0e1f1765f107e0b3e00233 | 565edc6724eacffe70e3c0977403ff69 | Selects all records from the PM_Equipment_OWS table. | namespace ERIMS.DAL
public sealed class clsPM_Equipment_OWS
public static DataSet SelectAll()
{
Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand = db.GetStoredProcCommand("PM_Equipment_OWSSelectAll");
return db.ExecuteDataSet(dbCommand);
} | 1 |
c9936a1902f55a818cefc8877d050033 | 19773da9cbb35993a05342cc65e228e2 | Tests IndexCount execution plan is changed to Collect/Scan when index is unavailable. | String query,
String index)
throws SQLException {
String query_plan = getQueryPlanString(stmt, query);
assertFalse(query_plan.contains("Sort"));
assertTrue(query_plan.contains("Index Only Scan using " + index));
} | 0 |
df6a7de0fbc8aa32b290358de0d56478 | c69a42e5f261c1335ebc2aa8f1dc29b9 | Check whether this game object can have the given horizontal velocity as its horizontal velocity. | Rigidbody2D rigid = GetComponent<Rigidbody2D> ();
float x = rigid.velocity.x;
return Mathf.Abs (x) > 0f;
} | 0 |
9f403cd443cc1b7833f28612df9638e2 | 9753c32ad019fd809f83e0501d2f6538 | Gets all active Badges affecting Mario's Partners | class SeasonProvider implements DataProvider
public function getBadges()
{
return Badge::select('badges.*')
->join('badge_player', 'badges.id', '=', 'badge_player.badge_id')
->where('badge_player.season_id', '=', $this->playerSeason->season_id)
->where('badge_player.player_id', '=', ... | 0 |
ee70e135c681415d48f3d0ffa2c6b0cb | 87dbd84c992001b9783220fb13b76a55 | Visit a parse tree produced by mintParser#ufmoduleStat. | class Parser(object):
def p_stat8(self, p):
p[0] = esl.interpreter.NumericFor(p.lineno(0), p[2], p[4], p[6], None,
p[8]) | 0 |
b0d3befd77becbb83af84c94fa6bfeb6 | bd921dbbef671071c2696837c6494aef | getAllVideoCount方法实现了查询本地库中所有Video记录的数目的功能 | public int findAllCollectionVideoCount(); | 0 |
6e181c47e469220503ab350a528ff235 | e8816342ad72153f281b3f9b1489f79e | Look up a writer for a given structure and media type. | SiftWriter findWriter(long invokerId, long taskId) throws TaskException; | 0 |
7c452fb66122eff427cafc26798a4472 | 4cd513000ac24cd114f49afbee8abef0 | 使用學校簡碼創建學校行政人員帳號 | class brightStaffLanderModel extends PHPDS_model
public function createTmpUser($email, $school_id)
{
$sql = "
REPLACE INTO _db_registrations
(
email,
verification,
role,
school_id
... | 0 |
d722ac7f598fa762dd3011ba444707d4 | e5f75a90672b7fd7006fead9a52e4cd6 | 查询球星信息 | public class StarActivity extends AppCompatActivity
private void queryStarList(){
starList = LitePal.findAll(Star.class);
for (Star star:starList){
dataList.add(star.getName());
}
} | 1 |
b16eb9aacb5fad7f0cb872507c379c6b | 7a758cb6afb9ca0fed845a271716b565 | Возвращает строку поиска по договорам для подстановки в SQL условие | namespace Kesco.Lib.Web.DBSelect.V4.DSO.FOpt.Residence
public class FOptName : FOptBase, IFilterOption
public string SQLGetClause()
{
var whereStr = Value != null && !string.IsNullOrEmpty(Value)
? GetWhereStrBySearchWords("T0.МестоХранения", WordsGroup)
: string.... | 0 |
dd064d718c1ff1b3f8069b4e4ba2c081 | 781e71df8f0ad8ab32d55b4b38d77285 | 对应测试用例http://itest.oa.com/v1/2272/case/home/detail/8486939,第5.1和5.2步, 1个function映射到2个delegate,第2个预期抛异常----->v2.0.5调整为一个function可以映射到多个delegate上 | function testCase0619() {
showTestResult("测试用例ID:0619----------------------------------------");
InitContractApprove();
sectionLaunch06(chiefOne,branchOne);
branchApprove06(branchOne,"待审批","sendBack","发起人");
sectionLaunch06(chiefOne,branchOne,"被退回");
branchApprove06(branchOne,"待审批","agree");
... | 0 |
7b5431770a1e2cd5b84fd32bd319eca1 | 184bd0a112eea2abf8c32e97c2e3485a | generate methods for binary arithmetic decoding | abstract class Expr extends Component
public static LinkedList<Instruction> getBinaryOpInsts(Expr expr1,
Expr expr2, InstructionType op,
HashMap<String, SymbolValue> symbolTable) {
LinkedList<Instruction> res = new LinkedList<>();
LinkedList<Instruction> code1 = expr1.translate(symbolTable);
LinkedList<Inst... | 1 |
285947fb96fad458c6daa9687a2f3b6c | 570f0502ef77b255fd7180f48cdf8552 | This directs the schema migration functionality to ignore the presence of this named index
on the document storage table | class NoSqlConnection
def drop_mongified_index(collection_name)
db[collection_name].indexes.drop_one('pre_mongified_id_1') unless db[collection_name].indexes.get('pre_mongified_id_1').nil?
end | 1 |
311a948ee50a24ca29d87db9882d4529 | 29b27a71fb0bbfd53293516de1b5cd0f | Converts the time date to the number of milliseconds since 1/1/70. | async function DateTimeToMilliseconds(dateToConvert) {
return new Promise(function (resolve, reject) {
if (typeof dateToConvert !== "undefined" && dateToConvert !== null) {
resolve("" + dateToConvert.getTime());
}
resolve(undefined);
});
} | 1 |
ff4c8cf890077929d03de3d90a0edc71 | 698f66ab4a804f750d58da862f50bf06 | Устанавливает метку времени последней операции на текущее время. | class Bechat extends ClassBase
protected function setTimestamp() {
$this->_timestamp = time();
return $this;
} | 1 |
0c2d0607ceb50c8145835f6ed1156283 | af3c4dc12669b389e12f3d2203c62aa8 | Find the range of the data in the table. | class TableRangeAccess(Operator):
def run(self):
self.do_run() | 0 |
68399931d17097899d4c5cc6789671a5 | 2cad547dae75f8deaf9e42afd9936c78 | Creates image conditioning for aging. | self.adjustment_funcs = {}
for age_idx, timeseries in age_mixing.items():
func = scale_up_function(timeseries.times, timeseries.values, method=4)
self.adjustment_funcs[str(age_idx)] = func | 0 |
d2b8f0102893e3c10e213a1486fbf48e | 90849d7495454a45d2636feb161394bf | Write to the LEDs by writing to the shift register
Instead of using an SPI peripheral, a GPIO pin is manually toggled to
simulate the clock line | void shift_register_all_leds() {
SHIFTREGISTER_DATA.setDigitalValue(HIGH);
SHIFREGISTER_CLOCK.setDigitalValue(LOW);
for (int i = 0; i < SHIFTREGISTER_BITS; i++) {
SHIFREGISTER_CLOCK.setDigitalValue(HIGH);
SHIFREGISTER_CLOCK.setDigitalValue(LOW);
}
SHIFREGISTER_CLOCK.setDigitalValue(H... | 1 |
0b8917419f5cbb5f42b52b04aeeaef35 | e54ed081903721a2dc310f7eb4c275fd | Called at the beginning of each turn to find out where the player can move.
Calls other functions that will eventually activate the correct buttons, but for now all are deactivated. | public class BattleHandler : MonoBehaviour
public void PlayTurn(){
GenerateEnemyMoves();
} | 0 |
529060d4ef2afe8a21c5f36e0a946817 | 1feeacb28ba7e5d065b67735e33c1211 | 更新是否上传平台字段 | namespace WebLearning.DAL
public class Vendor_Modify_File_DAL
public static int upDataUploadFlag(string sql)
{
return DBHelp.ExecuteCommand(sql);
} | 1 |
dcdf611119848ff210f2260e2a3478f2 | 8bf9adf611a68cc17d9280cf01412bb2 | Returns the value of the '<em><b>Trigger Type</b></em>' attribute.
<!-- begin-user-doc -->
<p>
If the meaning of the '<em>Trigger Type</em>' attribute isn't clear,
there really should be more of a description here...
</p>
<!-- end-user-doc -->
extendedMetaData="kind='attribute' name='TriggerType'" | @JsonFlatten
public class VulnerabilityAssessmentScanRecordInner extends ProxyResource
public VulnerabilityAssessmentScanTriggerType triggerType() {
return this.triggerType;
} | 1 |
d202ba59b0195f0784b9c62fd394a7cb | 225bda27dc16327ef9c2de9507bc7a76 | Get the speed score for the current session. | public function getSpeed(); | 1 |
4948fe36f99e9f06f4f8e8cc62151567 | 7a0e990469f009c95d0fae93d8176799 | System.Object Firebase.Unity.UnitySynchronizationContext/<SignaledCoroutine>c__Iterator0::System.Collections.Generic.IEnumerator<object>.get_Current() | RuntimeObject * U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m312769063_gshared (U3CStartU3Ec__Iterator0_t1273073359 * __this, const RuntimeMethod* method)
{
RuntimeObject * V_0 = NULL;
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get_U24current_3();
V_0 = (RuntimeObject *)L_0;
goto IL... | 0 |
eb68a2a5580086cf120786c659e2a4dc | 2afa46ac84973c0344aa122bb6004837 | THAY ĐỔI SẢN PHẨM ĐẶC BIỆT | class ProductController extends Controller
public function destroy($id){
$product = Product::findOrFail($id);
if(Product::where('id', $id)->update(['is_deleted' => 1])){
Session::flash('success','Xóa sản phẩm thành công');
return redirect()->intended('admin/product');
}
... | 0 |
7db32aae19b0cc69669911a27b3ddbb1 | 5c956fdd287cdf9ab7f512f187f4e699 | Calculates the sum of the top right to bottom left diagonal | int diagSum = 0;
for(int i = 0; i < rowLen; i++){
diagSum += grid[i][i];
}
return diagSum;
} | 0 |
f6c1be569aff4c0f1d9bf7b381af0a87 | 03536a846ef7718c6971e234f8e33f8c | This method replace existing monomer with new monomer for a given polymer
type in the complex notation | line, subpos = self.get_position(pos)
temp_massive = tref_massive[line]
tref_massive[line] = temp_massive[:subpos] + substitution + temp_massive[subpos + 1:]
return tref_massive | 1 |
fd3af6b9fbdcfb18b81c2b2cbac0b07e | 4505e73d053f6c53faee9420c4ff661d | Returns the em-width of the current font in layout coordinates | class View(object):
def em_width(self):
return sublime_api.view_em_width(self.view_id) | 1 |
01163ea91a76ef06f2fb35dc2fad8f4d | 2a929b57b6af3608ca2adcfcfc38de4a | Draws the Bézier path into a point pen. | class RandomizePointPen(AbstractPointPen):
def beginPath(self):
self._outPen.beginPath() | 0 |
8f365b6f131df304dc6b919fd8107dca | 432d401feaa19a5bf22cce6b704dc35d | For the purposes of SGZ, weapon lift is temporarily disabled. | public class WeaponComponent extends Component
@Override
public void stateChange(EntityState oldState, EntityState newState) {
if(newState != EntityState.ENTITY_STATE_CROUCH || newState != EntityState.NO_ENTITY_STATE) {
if(getActiveWeapon() != null)
getActiveWeapon().stopReload();
}
} | 0 |
d44642197c42bc7b45ade07f5950d1ad | 3dd0477169238023d0ca839590cebe17 | Gets the source of this DataCatalogTopologyEdge. # noqa: E501 | class User(object):
def source(self, source):
if self.local_vars_configuration.client_side_validation and source is None:
raise ValueError("Invalid value for `source`, must not be `None`")
self._source = source | 0 |
908e7752346fd3cf0a191e7c6281b6fc | 9e4353e8c84fc65236b25947ee17389d | Get input4.txt data as list of strings | input = []
with open("test_data.txt", "r") as fd:
for line in fd:
line_split = line.replace("\n", "").split(" ")
input.append(list(map(float, line_split)))
return input | 0 |
3994331c76cd6969962e5f2900c3d321 | c86da843ab53b0388631e0c5f37a1178 | Gets the federationBrandName property value. Name shown to users that sign in to an Azure AD tenant. | nsresult
GetBrandName(nsACString& aBrandName)
{
nsresult rv;
nsCOMPtr<nsIStringBundleService> bundleService(do_GetService("@mozilla.org/intl/stringbundle;1", &rv));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIStringBundle> brandBundle;
rv = bundleService->CreateBundle(BRAND_PROPERTIES, getter_AddRefs(brandBundle))... | 0 |
b949c463c94d99bf9c94f36b5c1d1d2e | d12e8c1c309ce2c56ba79d97251f5f0d | Classify incoming frames as silence or speech. | class Endpointer:
def __init__(self, filename, adv_ms, len_ms):
framer = AudioFrames(filename, adv_ms, len_ms)
rms_stream = RMSStream(framer)
self.adv_ms = adv_ms
self.len_ms = len_ms
self.intensity_dB = np.asarray([dB for dB in rms_stream])
self.intensity_dB = self.inten... | 1 |
94ac7593f16e86f6f55253810cea7f0a | 67a0945fcd942902940d8c45043493e0 | realnamelist : realnamelist COMMA realname | {
uchar *lstp;
uint siz;
uint lstsiz;
runsdef val;
runsdef stkval;
bifcntargs(ctx, 1, argc);
bifchkarg(ctx, DAT_LIST);
lstp = runpoplst(ctx->bifcxrun);
stkval.runstyp = DAT_LIST;
stkval.runsv.runsvstr = lstp;
lstsiz = osrp2(lstp) - 2;
lstp += 2;
if (lstsiz... | 0 |
c97ed696a15592d28f39b0e0f40b88e6 | 3a1f614f7c7765a673ceec4ae52547a3 | 申請責任者(かな)姓を設定し、自オブジェクトを返します。 | @SuppressWarnings("serial")
public class AccidentInputForm implements Serializable
public void setYcKinyukikanNameKana(String ycKinyukikanNameKana) {
this.ycKinyukikanNameKana = ycKinyukikanNameKana;
} | 0 |
c5bc295495726fada09c7c41b40cf8d0 | 9221e8e9baa1c0c5fa77845f7913ad18 | toggles whether moves are shown or not | public class PKM_ListItem : MonoBehaviour
public void ToggleMoves() {
Moves.gameObject.SetActive(!Moves.gameObject.activeInHierarchy);
} | 1 |
46660141b45a7b0e60742ad613c13c9d | c5708562c335efab447e056e124c8969 | 과목명을 받는 메소드이다. | public class Subject{
public String getSubject(){
return this.subject;
} | 0 |
3812e61e562f5fa53f3d6a1710d2e016 | e45fd411c381ccf7467feae2b5a24578 | Método que establece los sucesos cuando se suelta el cursor. | if (sd.getRaton().isClickIzquierdo()) {
if (r.intersects(dificultadFacil)) {
GestorPrincipal.setCancion(Constantes.CANCION1);
cancion1 = Constantes.INFOCANCION1CONMOUSE;
cancion2 = Constantes.INFOCANCION2;
cancion3 = Constantes.INFOCANC... | 0 |
9dfcbd1d1ed4651d799db1fa53910532 | c92c9dd8c348facc263085e15ef91a37 | Forward logs to appropriate client. | {
if (m_useOneWay)
{
m_oneWayClient.ProcessLogMessagesAsync(events);
}
else
{
m_twoWayClient.ProcessLogMessagesAsync(events);
}
} | 1 |
babd7f0206dc002a185cae6666983f45 | 02002db08720a8d60fdaec528071a980 | Deletes data in books table, given an ID and using the backend SQL delete query. | def delete_books_id(params):
db.deleteBookById(params)
print("Data sudah dihapus") | 1 |
2b42f59223a8ac383172d117f87e270e | f87f955fe4292e9f5f73d29cf6864f30 | 根据首条记录位置和返回记录数构建分页信息。 | namespace OneCoin.Service.Helper.Http
public class Spanner
public static bool GetRangeInfo(int totalCount, int pageIndex, int pageSize, out int startIndex, out int retCount)
{
startIndex = (pageIndex - 1) * pageSize;
retCount = 0;
if (startIndex < 0)
{
... | 1 |
6cd53562203d1e402c749c9ea4096c8c | d1d83921cd54aff6a4934d49c63f9423 | Возвращает последнюю заявку текущего пользователя | export class ApiService
public getLastOrderInfo(): Observable<any> {
const reqHeader = new HttpHeaders({
'Content-Type': 'application/json; charset=utf-8'
});
return this.httpClient.get(`https://jbandflowers.ru/api/v10/customer/orders/getLastInfo`, { headers: reqHeader, withCredentials: true });
} | 1 |
1a9900b032b9c9dc8f2bf01003c3e545 | 92b174dd62fc52d3b581bfd35dea05d4 | The cost estimate that the query planner calculated for this node. Value has no meaning outside of this
explanation and is only used to compare and order the nodes in the query plan. | size_t QueryPlanner::SubtreePlan::getCostEstimate() const {
return _qet.get()->getCostEstimate();
} | 1 |
3c31869021de442bac38e115c54fc7df | 736f0554ce3fc869ac0d3ea874267e62 | Purpose : Read data from button
Input : varBtn: Number indicates button (1, 2)
Output : Data | {
string button_event;
button_event = devide_data(read,1);
return button_event ;
} | 0 |
35dbf14fdb020bd96f57121fd6d2aa7c | 74dc03f4db09a094845374a75fad9116 | saves a new brewery object to our db | def save_my_beer(beer_id):
response = requests.get("https://api.punkapi.com/v2/beers/{}".format(beer_id))
response = response.json()
favourite_beer = Beers(
barcode=response[0]["id"],
name=response[0]["name"],
img_url=response[0]["image_url"],
IBU=response[0]["ibu"],
... | 0 |
44f078f77da116c1a4954ebb0a351ae3 | a1411fef0be2d62e13f3ce1585049c97 | Open and close the bookmark bar, confirming visibility at each step. | function openBookmarkFolder(e) {
if (!!document.querySelector('#main-window:-moz-window-inactive')) return;
item = e.target;
if (item.nodeName == 'toolbarbutton') {
closeBookmarkMenu();
item.open = true;
}
} | 0 |
705721d16571f2efb3d39c33c952041f | d7628a701beb9fc2c9690a9e71a790e6 | 获取符合条件的所有数据并根据动态构建Model类委托来创建合适的返回结果(适用于临时性结果且无对应的模型实体类的情况) | namespace JingruiZhang.EF
public class ZDbContext : IDisposable
public List<T> GetModelList<T>(Expression<Func<T, bool>> where,
out int total, List<OrderByModel<T>> orderby_isascs, int skip, int take)
where T : class
{
var setq = ctx.Set<T>().Where(where);
IQu... | 0 |
60a49f8436cf97185f4b6336517ca0de | 8a85ca522260885a27d45120a20df293 | Moves the mouse cursor to the specified locations. | namespace Zu.WebBrowser.AsyncInteractions
Task MouseMove(ICoordinates where, CancellationToken cancellationToken = default(CancellationToken)); | 1 |
571e2ddc96fe7a0161a68922ebcc19cf | 052215e0216cb408c7ffcec795101ae8 | Find active agent | $agents = Agent::where('status', 'like', 'active')->orderBy('updated_at', 'desc')->paginate(20);
return view('admin.pages.agent.activeList', compact('agents'));
} | 1 |
66e186f6b863b4dde76909ca4dbd218e | fb2a23fdf27f7b81cad89d0ce3287b81 | 这个视频是否是属于我的 | boolean isUserLikeVideo(String userId, String videoId); | 0 |
2ed70b2419dcd9b7fdf99e89c1d43563 | 935cae7a09f7e9b8ced7f9ff3f7e8101 | Bundles are boxed on the heap, so we count their own size as well as the size
of `Vec`s they allocate. | impl<T> ExactSize<T>
pub const fn get(&self) -> usize {
self.inner.len
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.