query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
66f6af5d8c01a90efd78f317da1e6b67 | 134551cee92ac119bc74c25f8a90dace | 读取数据库中所有的权限列表 | $data = $this->db->query("select * from {$this->db->dbprefix('admin_permissions')} order by id desc")->result();
return $data;
} | 1 |
0657f40e5c84ec95192d95de460bb060 | 9f395ba8c48a0a7c1a0020f28994a5b2 | 获取子View的所有高度相加; | public class MyHorizonScrollView extends FrameLayout{
private int getChildScrollViewTotalHeight() {
if (null == mContent) {
return 0;
}
return mContent.getMeasuredHeight();
} | 0 |
9ea90b39e9e719abe2b02e6ac83ae9cd | 43124c06d28986355d7f0b1039b56478 | Tests for missing license behavior | def test_basic_report_no_licence() -> None:
from valiant.reports import FindingCategory, FindingLevel
from valiant.plugins.reports.basic import BasicReportPlugin
from valiant.plugins.reports.basic.provider import BasicId
from valiant.repositories.pypi import PyPiPackageMetadata
from data.package_no_... | 1 |
bebafcb4ff0b6ecfb54d80fd47a5347c | dad32545108024c684b95b630eb087c4 | Setter method for the allItems variable, as per bean definition. | public class GoCoordePostAction extends ActionSupport implements SessionAware{
public void setAllinoneList(ArrayList<ItemDTO> allinoneList) {
this.allinoneList = allinoneList;
} | 0 |
13c6549b204e0a75a956fe1c055fbe6a | b6405c3fc2bbcae9dc9da6ddc5cf43f0 | 判断key有效才处理 | @Service("jedisCache")
public class JedisCache implements Cache
private boolean isValidKey(String key) {
if (StringUtils.isEmpty(keyPreRule)) {
return true;
}
boolean result = key.startsWith(keyPreRule);
if (LOGGER.isErrorEnabled() && !result) {
LOGGER.error("[Jed... | 1 |
4dc5178240b2cbcce6bd899026dfc7f6 | b4a710d0bad3d4661c5ff04b7295f2af | 3つの整数の中央値を求める | {
int firstValue = 0;
int secondValue = 0;
int thirdValue = 0;
cout << "一つ目の整数値:";
cin >> firstValue;
cout << "二つ目の整数値:";
cin >> secondValue;
cout << "三つ目の整数値:";
cin >> thirdValue;
int centerValue = 0;
int bigValue = 0;
if (firstValue < secondValue)
{
centerValue = firstValue;
bigValue = secondValue;
... | 1 |
a3d27997c588452ba3196ee2368ab152 | 56f6c4efa2b9e59aee09f80a56b707a4 | 通过用户id找出能发送的所有user | public List<User> listSendMessageUser(int uid) {
try{
List<User> sendMessageUsers=getSqlSession().getMapper(UserDAO.class).listSendMessageUser(uid);
return sendMessageUsers;
}catch (Exception e){
e.printStackTrace();
return null;
}
} | 1 |
54d89bbb8b3b61bbc7919223d101e02c | 9950446aaf43a4882b3da10e9fc53891 | This method checks whos turn it is & checks for a tie | void Game::CheckTurn(Player& PlayerObject1, Player& PlayerObject2, vector<vector<string>> GameBoard) {
if ((GetPlayerTurn() == PlayerObject1.GetSymbol()) && (GetPlayerTurn() != PlayerObject2.GetSymbol()))
{
UserInput(PlayerObject1, GameBoard);
}
else
{
UserInput(PlayerObject2, GameBoard);
}
} | 0 |
6858acecf322edf9e29ad3461d4a7a62 | 34e19f87d3863c2980431a5aa90b82fd | <b>根据是否是国内信息,查询热门城市</b> | public Dto queryHotCity(@PathVariable Integer type){
if (type == null) {
return DtoUtil.returnFail("国家type不能为空", "100202");
}
Map<String, Object> param = new HashMap<>();
param.put("isChina", type);
param.put("isHot", 1);
try {
List<ItripAreaDi... | 1 |
1e1be6dcd3750722ea92c8195f369e4c | 2dfd4c22f812a9a2f8aff4719008c66a | Shortcut method: Returns the UNIX timestamp for the last time the
alarm state changed. | class gslbvserver(base_resource) :
def tickssincelaststatechange(self) :
try :
return self._tickssincelaststatechange
except Exception as e:
raise e | 0 |
6aa37a9f16d41776c8cde34f7337f5a2 | 0fa9b9292c0f6d816d2c0f11da852058 | Gets the <see cref="System.Int32"/> value of the entry with the specified <paramref name="key"/>. | namespace PdfSharpCore.Pdf
[DebuggerDisplay("{DebuggerDisplay}")]
public class PdfDictionary : PdfObject, IEnumerable<KeyValuePair<string, PdfItem>>
[DebuggerDisplay("{DebuggerDisplay}")]
public sealed class DictionaryElements : IDictionary<string, PdfItem>, ICloneable
public int GetInteger(stri... | 1 |
2855c36496dc110772dae5910feecca6 | 28fc8d29733721b389d61bdb173be7c0 | Получаем текущие теги (проекты) из локальной БД | {
global $conn;
$array = array ();
$sql = "
SELECT
*
FROM
taggit_tag
";
$result = pg_query ($conn, $sql);
if ($result) {
while ($row = pg_fetch_assoc($result)) {
$array[$row['id']] = $row;
}
}
return $array;
} | 1 |
63be33ec70d559bc0a14471384da1559 | 1ac52fb3d9cc74bc133bd92732082ff2 | Loads a level from a text file with the name levelName.
Returns true if loading was successful. Returns false if an error occured. | {
if (LoadFromFile(FileName, Buffer)) return TRUE;
Error.SetMessage("Unable to load \"" + FileName + "\", file does not exist!");
return FALSE;
} | 1 |
997a0d8344ef9b8f7d2b9e9b15b72cb4 | 70832a49619204e37c9fb0cd2ad98db4 | 将PKCS8编码格式的私钥转换成PKCS1编码格式的私钥 | namespace OdinPlugs.OdinUtils.OdinSecurity.OdinRsa.OdinRsaExtensions
public class RsaKeyTypeConvert
public static string PrivateKey_XmlToPkcs8(string privateKey)
{
return XC.RSAUtil.RsaKeyConvert.PrivateKeyXmlToPkcs8(privateKey);
} | 0 |
2433f4cc7552dd11b053d1eb39d3aba1 | 4d84aad97e466c0f42de4d5f81cb4b23 | 获取南丁格尔玫瑰图数据 | interface DefaultService
@GET("data/{category}/20/{pageIndex}")
fun getGanHuo(@Path("category") category: String, @Path("pageIndex") pageIndex: Int): Observable<HttpResult<List<GanHuoData>>> | 0 |
0fc0690120c550456a45fb2e974d7959 | 377cf1ce0dd21aee411f26c32d89d4d4 | 驼峰堰 | lowHorizontalLineToHump(s) {
let a = s.split('_');
let o = a[0];
for (let i = 1; i < a.length; i++) {
o = o + a[i].slice(0, 1).toUpperCase() + a[i].slice(1);
}
return o;
} | 1 |
930b1e2bc6e7be449e0eb2e324f07539 | 0559f1c483dbf56028bacdf4da2294e9 | Create an instance of {@link IndividualPrpQueryListObjTag } | ICFEngInterogTagEditObj newEditInstance( ICFEngInterogTagObj orig ); | 0 |
a966845ee159bee1bce4ea41dac28280 | a65a4acb31109a2f0898dcf46db8c887 | Shows or hides the error message relating to network status, depending on the specified value. | @BindingAdapter("isNetworkError", "playlist")
fun hideIfNetworkError(view: View, isNetWorkError: Boolean, playlist: Any?) {
view.visibility = if (playlist != null) View.GONE else View.VISIBLE
if (isNetWorkError) {
view.visibility = View.GONE
}
} | 1 |
c68b0fad42b9ee5896ea8b1d4b5cfbb3 | 422d29517101eb70592cefed7e111c46 | Test the tracks GET query | public void findTrack() throws JMBWSException
{
TrackFilter tf = new TrackFilter();
tf.setTitle("gone");
TrackSearchResults trackResults = q.getTracks(tf);
assertTrue(trackResults.getTrackResults().size() > 0);
for (TrackResult tr : trackResults.getTrackResults())
{
Track t = tr.getTrack();
log.de... | 1 |
d8b2d5688c2d358ea740c124ac84e7c7 | c39e893a6326aa0b34afd43d9266a7b4 | Retorna o id de quais serão os participantes da competição | public abstract class AbstractParticipantsBuilder
public List<Integer> getIdPool() {
return participantPool.stream().map(AbstractBoat::getId).collect(Collectors.toList());
} | 1 |
b1006ad0513f4177e93112fec67439cd | 60380abc88a812eb62703a910cb217bc | 验证密码为空,接口返回结果是否正确。 | self._payload['oldPassword'] = self.api.data_md5('12345123')
r = RequestSRC.request_post(url=self._url, headers=self.header,
data=self.api.data_json(self._payload))
logger.info('接口请求地址:%s' % self._url)
logger.info('接口请求头部:%s' % self.header)
log... | 0 |
c30da3760f525f80095fb093a831a16d | a92cc1bb20bb38b8970da87291a03622 | 头插法翻转链表 | {
Linklist p = hc->next, ra, rb;
*ha = hc;
ra = hc;
*hb = (Linklist)malloc(sizeof(Listnode));
rb = *hb;
while (p != NULL)
{
if (p != NULL)
{
ra->next = p;
ra = p;
p = p->next;
}
}
ra->next = rb->next = NULL;
} | 0 |
8c8d9453786de62e2a09e18cce05c48f | 52e4557a5423e4c072038b5ce63b3b4f | Determines whether a weak reference to the specified object is in the collection. | {
T existingRef = default(T);
_refs.TryGetValue(obj.ID, out existingRef);
return (obj.ID > 0 && (existingRef == null || existingRef.Equals(obj)));
} | 0 |
3c490957fb59451708330750a4a4c623 | 7a062055661ce4ddbde47972bc90364b | Set BASIC auth only in production env | {
$this->middleware(function ($request, Closure $next) {
if (config("app.env") == "production") {
$data = makeApiResponse(401, 'Test Error');
return new JsonResponse($data);
} else {
return $next($request);
}
});
... | 0 |
6c8cc3d587cf34767d65b63c57317a0a | 7a914a4c1525cc0c8cb41e204879d0dd | Ritorno allo step 1. | @Component
@Scope(WebApplicationContext.SCOPE_REQUEST)
@PutModelInSession(BaseInserisciAggiornaPagamentoFattureCassaEconomaleAction.MODEL_SESSION_NAME_INSERIMENTO)
public class InserisciPagamentoFattureCassaEconomaleAction extends BaseInserisciAggiornaPagamentoFattureCassaEconomaleAction<InserisciPagamentoFattureCassaE... | 1 |
c2eb1cbe976021233aae313bc5bd2bae | 1d4ebc51cc6fc555f0fdffcdc3be26a1 | !
@brief Hangs thread until signal has been cleared, no timeout | static void rwpipe_sigq_clear_signal(struct rwpipe_sigq_t* sigq, int autolock)
{
int dummy;
int stat;
while (1) {
stat = read(sigq->pipefd[0], &dummy, sizeof(dummy));
if (stat == 0 || errno == EAGAIN) {
break;
} else if (stat < 0) {
syslog(LOG_ERR, "failed to ... | 0 |
0508ea0a4360b870928ceab925e6670b | f75f531f2f7dab38bb49de7062cda14d | FAZ A MULTIPLICAÇÃO DE B * A | {
matC[0] = matA[0] * matB[0] + matA[1] * matB[3] + matA[2] * matB[6];
matC[1] = matA[0] * matB[1] + matA[1] * matB[4] + matA[2] * matB[7];
matC[2] = matA[0] * matB[2] + matA[1] * matB[5] + matA[2] * matB[8];
matC[3] = matA[3] * matB[0] + matA[4] * matB[3] + matA[5] * matB[6];
matC[4] = matA[3] * matB[1] + matA[4]... | 0 |
f994e44ff3ded51fcaf0ef2a1bf9e6b0 | 598a5b6145a7d4e7e86a59c1e8bca756 | Schließt das Validierungsfenster und entfernt den Input | function toggleValidationOff() {
$('#addressBanking').removeClass("requiredContent")
$('#cityBanking').removeClass("requiredContent")
$('#postcodeBanking').removeClass("required-postcode")
} | 0 |
b8a9b658c6cc0a5ce390606afcc1eb42 | fad4ab697a5da2738847aaf34e3d9c71 | 接收嫁接 | function prepareGraft($slotId, $itemId, $itemCount)
{
$data = [];
typeCheckString($slotId, 10);
typeCheckString($itemId, 10);
typeCheckNumber($itemCount, 1);
$slotData = $this->getSlotData($slotId);
logicErrorCondition(!is_null($slotData),
err_dbs_item... | 1 |
11ad2cffb2f0ad4711cefa10fce39cca | 081f4e90bec2c92f56c1243df9163671 | Test reading NEXRAD level 2 files from the filename. | parameters = ['SFMC', 'RZMC', 'GWETPROF',
'GWETROOT', 'GWETTOP', 'TSURF']
img = MerraImage(
os.path.join(
os.path.dirname(__file__),
'merra-test-data',
'M2T1NXLND.5.12.4',
'2018',
'10',
... | 0 |
bd5fec1a75b613f490d37c5a9b3cf77e | 3d1755fa33c3ce474690da0e93286945 | 检测到一个脉冲则脉冲数加1 | void ckPulse(){
ddsPORT|=(1<<ddsPinClock);
tick();
ddsPORT&=~(1<<ddsPinClock);
} | 0 |
1ea24149c67b718756ff2a6da0975bf0 | d085f09129ad7df16d210dad6a6c48a5 | This method writes a message to the center of the screen for clarity.
const char* input - The message to be displayed on screen. | void displayMessage(const char* msg) {
al_draw_textf(font, al_map_rgb(255, 255, 255), 275, 100,
ALLEGRO_ALIGN_CENTRE, "%s", msg);
} | 1 |
24e95019fb2b56318771f9db976903d8 | dba7f2bff273eedb5002e4b7e8c3d7b4 | Estimates model parameters using Baum-Welch algorithm with log backward forward | new_model = self._baum_welch(observations)
prob_old = self.forward_backward(observations, cache=True)
self._update_model(new_model)
prob_new = self.forward_backward(observations, cache=False)
return prob_old, prob_new | 1 |
f010037ee161668fcd115c2a650e7085 | 34371e711bdb053465e95071b67fe530 | 使用HashMap存储对应的元素及次数,找出次数大于二分之一数组长度的元素 | HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
for(int n : nums) {
if(map.containsKey(n)) {
map.put(n, map.get(n) + 1);
} else {
map.put(n, 1);
}
}
int len = nums.length;
for(Integer key : map.keySet()) {
if(map.get(key) >= len / 2 + 1) {
... | 1 |
4b0038298395e5e648e9a48d477c8942 | ea6fa346b2344bd15b0436107ac93f32 | 实时时间设置函数 | function realTime() {
nowDate(".real_time_data", ".real_time_week", ".real_time_now");
setInterval(function() {
nowDate(".real_time_data", ".real_time_week", ".real_time_now")
}, 1000)
setInterval(function() {
var timeH = new Date().Format("HH");
var timeM = new Date().Format("mm");
var timeArray = nextSect... | 1 |
e8d3f66cfc19c4fbfacb7f16990f951d | cfdbb10ef752aab38cbdb81f80d2404d | 获得一个用于迭代所有所有导入操作(包含普通的导入和静态导入)的迭代器 | public IProjectIterator iterator(); | 0 |
7439e1b239ecb7cc224890ab708b77b4 | f3dea966a9dec82d73ab3095cd810054 | Gets the tracker id. | public class UploadTrackerDto implements Serializable
public int getTrackerId() {
return trackerId;
} | 1 |
74805fea05208eb4729b2aa00016f015 | 40d991b4e2ed632645117b4cadd0fe6f | Generate a query id and add it to data store | func_in = {}
func_in["func"] = "getQueryId"
func_in["dataset"] = dataset
request = json.dumps(func_in)
response = self.custom_request(request)
func_out = json.loads(response)
if "query_id" in func_out:
return func_out["query_id"]
return -1 | 0 |
2e5e333a155f4738ae3ec324b4f22666 | 16073383854bd67663982c030b5ad15b | Get genes with constant expression profile across samples. | X = np.load(processed_TCGA_path / cohort_name.upper() / "X.npy")
idx_to_sample = __load_index(processed_TCGA_path / cohort_name.upper() / "idx_to_sample.tsv")
idx_to_gene, _ = load_gene_indices()
return pd.DataFrame(data=X, index=idx_to_sample, columns=idx_to_gene) | 0 |
10d15b5e6b892ecd5648bcf8bbbf273d | 1099c9913dc328903e344bc4fb115b83 | Returns the field filter used by the toString method. | public abstract class _AbstractConditionalFilter implements CollectionFilterType
@Override
public String toString() {
return ClassPathFilter.Util.toString(this);
} | 0 |
c337b4b38addfe146bd2cfbb5c5690dc | 3e71f98feb4929c6cadf196ab595a2e7 | returns com.fedex.ws.openship.v18.DeleteOpenConsolidationReply | class AmazonElasticLoadBalancingServiceDelete extends AmazonElasticLoadBalancingWsdlClass
public function getResult()
{
return parent::getResult();
} | 0 |
d3a8e5167064eb57672726cd4f39cccf | 20d1f5a9651f32d8d06131f886c09284 | Converts year-month-day string to month-day string | if ( input ) {
var parts = input.split( "-" );
return parts[2] + "-" + convertMonth( parts[1] ) + "-" + parts[0];
}
return "";
} | 0 |
bce8c63ed4a240733416fd00b7d51192 | e24bae1c41b4c7c25ed2d9e3aa64b7b9 | 获取指定车辆关联的仓库 | function carInStorage(params) {
return fetch({
url: '/api/storageareacontrol/'+params.ccqbh,
method: 'get',
})
} | 1 |
ef849f99906b9ad97107fbbcc1db7855 | bacd9394959f7ff38d3494d0bf962f84 | 直方体型のボディとジオメトリを生成 | function createBody(bbody) {
var bodyMaterial = new THREE.MeshPhongMaterial( { shininess: 100 } );
bodyMaterial.color.setRGB( 31/255, 86/255, 169/255 );
bodyMaterial.specular.setRGB( 0.5, 0.5, 0.5 );
bodyMaterial.ambient.copy( bodyMaterial.color );
var glassMaterial = new THREE.MeshPhongMaterial( { color: 0x0, spe... | 0 |
c8c8b5bbc4b914ceac4d4661ee88f6d9 | b38be0da945558c76007fb095b587e9b | Get terms that do not have any child terms. | const escapeAlias = (alias: string) =>
this.manager.connection.driver.escape(alias)
const escapeColumn = (column: string) =>
this.manager.connection.driver.escape(column)
const joinColumn = this.metadata.treeParentRelation!.joinColumns[0]
const parentPropertyName ... | 1 |
6dd8ab72ea4973d318ac3f6d88b927dc | 26cac0f587b707645a8cd1b8bdbd5cdd | takes feature class and field name as input and
return field object for the given field name | field = self._field_cache.get(colname, None)
if field is None:
fieldid = self.dd.attrs[colname]
self._field_cache[colname] = field = self.dd.fields[fieldid]
return field | 1 |
4d451f92e5b6db23aa0a677c56a8827d | 287453cad7f6adfa5084111c04e4993e | 指定されたタイプの子コントロールを検索する | public class WaveRefreshLayout extends LinearLayout
private View findChildByType(@ChildType int target) {
final int count = getChildCount();
for (int i = 0; i < count; i++) {
final View child = getChildAt(i);
LayoutParams lp = (LayoutParams) child.getLayoutParams();
i... | 1 |
21fbde932ef1c534890eb090ca927092 | 8bf15881fee2c46c6a5e6e7f71915034 | 获取状态栏高度+标题栏(ActionBar)高度 | int statusBarHeight = getResources().getDimensionPixelSize(getResources().getIdentifier("status_bar_height", "dimen", "android"));
TypedValue tv = new TypedValue();
int actionBarHeight;
if (getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
actionBarHeight... | 1 |
20cbdfe77ea81bc464765f06ce144f95 | 788912fed9cb39878167c9a61f27ba9d | 最後に保存したデータであるかを返す | class TTOutputInstanceBase(TTBase):
def is_latest(self):
return self.find_latest() == self | 1 |
206d0ff34b5b4a3edc55dbe93ac87215 | c3031418502c97b6bc332a13edd19103 | resets the colors to be sure they are not stuck lit. | namespace TicTacToe
public partial class frmTicTacToe : Form
public void ResetColors()
{
if (bGameHasStarted == false)
{
btn00.BackColor = Color.Gainsboro;
btn01.BackColor = Color.Gainsboro;
btn02.BackColor = Color.Gainsboro;
... | 1 |
e2d5522fad1ec4d44e50d88013d8d0fe | 4e7e9eb48224bbb8cc02f1215b36060c | (Inner function)
compute woe of a bin | if cuts is None:
try:
cuts = self.bins[self.ft_name]
except:
self.qlt_bins_func()
cuts = self.bins[self.ft_name]
if data is None:
tmp = self.raw.copy()
else:
tmp = data.copy()
cuts = self._strWoe_merg... | 1 |
bdad1f8dcd91b6e21f3bbf17f15163e9 | d0907b60c74cc9d1859371ef7cedc823 | Generowanie nowej populacji z najlepiej ocenionych osobników z wykorzystaniem krzyżowania i mutacji | {
this.ReportProgress(2, Constants.Reports.GENETIC_SELECTION);
var listGeneration = generationFitness.ToList();
int selectionSeparatorPoint = (int)(listGeneration.Count() * (Constants.Percents.SELECTION_POINT)),
bestIndividualsSelectionCount,
w... | 0 |
1e6af73c25c1ea177db80a34d8e4486d | ca71f930c5d703d677e7b61dd0cd33e8 | 在网络库实例化后,注册新的插件 | class Bootstrap extends Yaf_Bootstrap_Abstract{
public function _initPlugin(Yaf_Dispatcher $dispatcher) {
$objSamplePlugin = new SamplePlugin();
$dispatcher->registerPlugin($objSamplePlugin);
} | 1 |
6146c7180d14917880eddebbc83be8cd | 275b8447924b2655c76d0ea68016539b | Optionally adds one or more "Find" items to a menu.
<p>
Most applications use this method for adding items to the fourth section
of the "Edit" menu.
if the menu is shared by all views. | void addCloseFileItems(JMenu m, Application app, @Nullable View v); | 0 |
d4a7dcd034526e620ed5386cfe75d4e8 | 144618ce607bcd7afdb388d1c364c701 | Frees all of the memory associated with a file reference, including
the file reference structure itself | CR_API void_t
filex_free (
__CR_IN__ const sEX_FILE* filex
)
{
if (!filex->is_free)
return;
switch (filex->ex_file.type)
{
default:
break;
case CR_LDR_ANSI:
TRY_FREE(filex->ex_file.name.ansi);
break;
case CR_LDR_WIDE:
TRY_... | 0 |
5c99dae82efe23eede14b7ac84db314f | 8c368d83e362456a99cff2946912336b | Creates threshold potential element. | node_size_x, node_size_y,
bin_center_x, bin_center_y,
target_density,
xl, yl, xh, yh,
bin_size_x, bin_size_y,
num_movable_nodes,
num_terminals,
num_filler_nodes,
padding,
fast_mode=False
... | 0 |
f57b7ca1c6e175446564625174c4bd4b | 27a5a4800352841498b4b290357e405e | Defines when a document of a spesific type is set to stagnant or expired | {
switch ($value) {
case 'ActiveProfile':
case 'Active':
$result->setIsProfileActive(true);
break;
case 'PendingProfile':
$result->setIsProfilePending(true);
break;
case 'CancelledProfile':
... | 0 |
d54aad122b149194a18ff0c5b8f2591e | 4a84c8cd7b1f45f8d75f8ac5a2706126 | lister les projets accepté par le professionnel | @RestController
@CrossOrigin("**")
public class BienRestController
@GetMapping(value="/listServiceAAccepterParProprietaire/{proprietaires}")
public List<Services> getServiceByIProprietaire(@PathVariable Long proprietaires){
return serviceRepository.findBySuprIsFalseAndActiveIsFalseAndAccepterIsFalseAndProprietaire... | 0 |
4dee119f509863f93739fd51ad0c187c | 6f483a8284f95e67a2fbb162dbbd86f4 | 获取交接单相片 | @Slf4j
@RestController
@RequestMapping("/leave")
public class LeaveController
@RequestMapping("/getActPic/{procDefId}/{execId}")
public void getActPic(@PathVariable("procDefId") String procDefId,
@PathVariable("execId") String execId, HttpServletResponse response) throws Exception {
... | 1 |
159234f8baed1292d9694cdd5b02ee76 | 3da381dfcdf3cbde1be6bd92fb0188b2 | This command validates *.type-files. | class type_tests (sagetest.SAGE_Test) :
def test_type_description(self):
self.cmd = 'test_type_description >out 2>&1'
self.execute() | 0 |
b7007e2e7db851d065603e91810568a8 | 2e482202df385e7d4c54a5f99cd49618 | Returns the locally stored md5 checksum of the currently active mmdb library | char* hdb_file_checksum(hdb_connection* con, const char* username, const char* filename) {
char* csum=redisCS(con,username,filename);
return csum;
} | 0 |
2ba03af57f148bc57f982c187ba2c070 | 388a4c8c3035db10f79622b430a9ddd2 | Don't fire for the artificial "mouseup" generated by a double-click. | void GuiMenuTextListCtrl::onMouseUp(const GuiEvent& event)
{
onMouseDown(event);
} | 0 |
2db79df805a3dbfacdd595dc81948079 | d5b267e20a63fc1a46a4006fbaf53c2b | This is the smaller window that appears displaying notes for a given reference.
...BUT NOW WITH TABS! | public class EReader
private void addNotesBar() {
JComponent displayPane = swingGUI.getDisplayPane();
if (displayPane instanceof JSplitPane) {
JSplitPane dsp = (JSplitPane) displayPane;
JPanel right = (JPanel) dsp.getRightComponent();
JComponent dspScroller = (JComponent)
((BorderLayout) right.getLayo... | 0 |
16eb171a121a7e5bb42c151de2131215 | cd4b64a701c5ebe51450235232fe2ccd | Return the name of the valid SIP file to compare against. | class udpTrafficGeneratorBase(Base):
def get_filename(self): | 0 |
092053ebb1f8e1dbf7dbbeb2a89ed1eb | eb40ecde69024307e1f74f3b16ccb07d | 功能:填充HT1632C的RAM数据 | void Ht1621Wr_Data(uint8_t Data, uint8_t cnt){
uint8_t i;
for(i=0;i<cnt;i++){
HT1621_WR_PIN_CLR();
_Nop();
if(Data&0x01)
{
HT1621_DAT_PIN_SET();
}
else
{
HT1621_DAT_PIN_CLR();
}
_Nop();
HT1621_WR_PIN_SET();
_Nop();
Data >>= 1;
}
} | 0 |
e0d6d65e25224168a922aeec0104ee7a | 22e6b12b5a354546441e9607a0327511 | 对于富文本需要对已经转化的字符进行还原 | public class HtmlUtils
public static final String restoreEscapedChar(String str) {
str = str.replaceAll(">", ">");
str = str.replaceAll("<", "<");
str = str.replaceAll(" ", " ");
str = str.replaceAll(""", "\"");
str = str.replaceAll("“", "“");
str = ... | 1 |
8fb656dbf06ad30c666cfa64eecafd66 | 5d9402e367fd0c177479276f27241856 | /* 获取内存块缓存池大小 */ | ULONG vue_get_cache_size(void)
{
return vue_cache_size * rpage_bitmap_calculate_bytesize(VUE_WIDTH, VUE_HEIGHT, VUE_DEPTH);
} | 1 |
04bba687500ed53ea24a26d9b49cd732 | d8bf1114a3445cc41241517c02cc43c2 | 친구 리스트 추가 | {
if(tmpObj != null)
{
int objLen = tmpObj.Count;
for (int i = 0; i < objLen; i++)
{
GameObject.Destroy(tmpObj[i]);
}
tmpObj.Clear();
}
int y = -25;
StringBuilder sendInfo = new StringBuilder();
... | 1 |
9c6803ebec1e9be852f99f2a7513c99c | 6d17973fda773d0c33edf98e61cd08d9 | Converts a v4 point Entity to a v3 PointValue. | class _EntityConverter(object):
def v3_to_v4_key(self, v3_ref, v4_key):
v4_key.Clear()
if not v3_ref.app():
return
v4_key.mutable_partition_id().set_dataset_id(v3_ref.app())
if v3_ref.name_space():
v4_key.mutable_partition_id().set_namespace(v3_ref.name_space())
for v3_element in v3_ref.... | 0 |
e08f6313b45a0f6dcc93341977ce1e2c | 6bc88e75476c750687b75271c120b5f3 | 日历控件输入日期 | try {
var datepick = sender.get_textBox();
if (datepick != null) {
datepick.focus();
}
}
catch (ex) {
console.log(ex);
}
} | 0 |
4521360574a45e5b05e95ea35aa0a292 | 9f4e219a4bb54963e698292fd1c7b5f0 | Validate length of the list and length of each list item | {
if (! is_array($value)) {
$fail('eloquent-request::validation.list');
}
if (count($value) > static::MAX_COUNT) {
$fail('eloquent-request::validation.list');
}
foreach ($value as $item) {
if (! is_scalar($item) && ! is_null($item)) {
... | 1 |
05b39b84e499edd8008ce2bf0774c299 | f0973226329e5461d631979f91b5b8c7 | rdoc
Return a list of document types suitable for passing to content methods. | def all
[:es, :en, :ja]
end | 0 |
85ddb7c8f70ceab428a22454acf74599 | bf2fd32151d2fbc09e98e8312935ed8d | Converts all aray keys to camelCase. | {
$newArray = [];
foreach ($array as $key => $value) {
$value = (is_array($value) || is_object($value)) ? $this->renameKeys((array) $value) : $value;
if (is_string($key) && str_contains($key, '_')) {
$newArray[$this->camelCase($key)] = $value;
} el... | 1 |
563d1c9be45d9bc4176a7aa3918e3302 | a18e69985e37b57e8a4d379bc0eaa31b | 返回机构树Logo的URL | [Route("Organize/{id}/OrganizeLog")]
[Description("组织机构logo获取")]
public HttpResponseMessage OrganizeLog(string id) => OrganizeService.TryCatchAction(
action: m =>
{
id.CheckNotNull("id");
Guid gid = new Guid(id.AESDecrypt128... | 0 |
54813c527f292dc5d921eaf451142c99 | 4e879f9971b685c81f06f822baa260f8 | Gets the username of this InlineResponse200. | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaMSF4JServerCodegen", date = "2017-08-18T04:28:42.930Z")
public class InlineResponse201
@ApiModelProperty(required = true, value = "")
public String getUsername() {
return username;
} | 0 |
925a23bf4826811309b9f6bf1f8e311f | 25ff411b21a6f222544ac9dcd8c7d6a0 | Získá dokument a jeho skupinu | class DocumentRepository
public function getAccessGroup(int $id) {
return $this->database->table('DOCUMENTS')
->get($id)
->access_group;
} | 1 |
b9c5e41b8cecbc0cd63d8a57b5afb85c | 660951b4e3cd42c9e5cadf1b624268e1 | 获取运动分类信息 | function fetchSportsCategoryList() {
return get({
path: SPORTS_CATEGORY_LIST,
});
} | 1 |
6bddab22deaf92e0f3a072f945aeb86d | b85066c2818f0205ff0b0c0fc74e14cf | 广播玩家可以出牌的消息 | dump(pack, "-----广播玩家开始出牌6004-----")
bm.Room.Status = 3
local recscene = SCENENOW['scene']
if recscene.isspectator == false then
recscene:show_niu_tip(true)
end
bm.addStop = true
recscene:set_recent_txt_visible(true)
recscene:set_recent_txt_(3)
recscene:set_timer_text(tostring(pack.time))
local niu_panel =... | 1 |
fe0b2602ae4ada4eccfd7fa9cf29449c | c8e90b7098476df97c0ff8d2e77f848d | Demos the story tree using user input choices without combat. | print_pause("Enter 1 to knock on the door of the house.")
print_pause("Enter 2 to peer into the cave.")
choice = valid_input("What would you like to do?\n (Please enter"
" 1 or 2)\n", "1", "2")
if "1" == choice:
print_pause("You approach the door of the house")
h... | 1 |
f2c8226b3d8f5c276d8a0768e9509619 | 90dd018fcb26113741defaf4913312e2 | FX_FUNCTION | static inline void fpu_fxsave(struct vcpu *v)
{
typeof(v->arch.xsave_area->fpu_sse) *fpu_ctxt = v->arch.fpu_ctxt;
int word_size = cpu_has_fpu_sel ? 8 : 0;
if ( !is_pv_32bit_vcpu(v) )
{
asm volatile ( REX64_PREFIX "fxsave (%1)"
: "=m" (*fpu_ctxt) : "cdaSDb" (fpu_ctxt) );
... | 0 |
6a284f7ce1cb04558e40f986b69bddd0 | dcb59e5223c7022a930a959c47760b08 | 计件工资走势分析明细页面 | if (empty($_REQUEST['timea']))
$_REQUEST['timea'] = date('Y-m-d', time() - $this->get_day());
if (empty($_REQUEST['timeb']))
$_REQUEST['timeb'] = date('Y-m-d');
if (!isset($_REQUEST['staff_uid']))
$_REQUEST['staff_uid'] = $this->uid;
$chart = $this->t_... | 1 |
143f91bc14374e92d9ada4a435495cee | 784bdd309627d9913565f6e5ba196072 | Moves the specified element downward to it's correct position. | {
Requires.NotNull(project, nameof(project));
Requires.NotNull(target, nameof(target));
var referenceElement = GetReferenceElement(project, target, MoveAction.Below);
return TryMoveElements(elements, referenceElement, MoveAction.Below);
} | 1 |
7f1b9157fc58d006d937daa86b8ea754 | a87fe5122b3b99acf2ae3a5baaf69444 | Tracks number of results and stops to run tests if max_failures reached. | self.checkStartTime = None
if len(self.currentFailures) <= self.maxFailures:
self._resultUp()
else:
self._resultDown(reason="\n".join(self.currentFailures))
self.currentFailures = []
return result | 1 |
2901410f4f0a7d781e5a97a6ca29a19d | fb831e2a6e9dc38414fbdb0abf64a054 | Constructor --> if the pins are not defined while initiating it will be the default pins | class Pins extends Base
public function __construct()
{
parent::__construct();
} | 0 |
30ff9176782a038399df355acaecb135 | e4bf7c106e7db2ab74873caa7d69ddaa | adds a card to the bottom of the stack | self.tail.next = cardToAdd
self.tail = cardToAdd
self.tail.next = None
self.length += 1 | 1 |
5dd91d3df9c27a64741d2216a9d5945f | aef017e7db3e372441373af0af84363d | We are refreshing if we have a thread active. | int sfp_refresh_thread(void *opaque) {
thread_exit = 0;
thread_pause = 0;
while (!thread_exit) {
if (!thread_pause) {
SDL_Event event;
event.type = SFM_REFRESH_EVENT;
SDL_PushEvent(&event);
}
}
thread_exit = 0;
thread_pause = 0;
SDL_Event e... | 1 |
fb097b2ecb6ec88632542dbf9bd65f35 | 869d77954fd0687de0bd927e56c9753e | Initializes the window options, to resolve control transparency. | class CanvasWindow(QMainWindow):
def init_window(self):
self.setWindowOpacity(0.2)
self.setWindowFlags(Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint) | 1 |
5d242ce0d1ac7fd53b94bc797e0a1858 | 61f7a72d92d247559ae7b2841bdb5dad | # Helper function to create the polygon for each hexagon | x_vec_pre = box[1,]
y_vec_pre = box[2,]
x_vec = x_vec_pre[c(1, 1, 2, 2, 1)]
y_vec = y_vec_pre[c(1, 2, 2, 1, 1)]
make_poly = st_polygon(list(cbind(x_vec,
y_vec)))
poly_box = st_sf(id = 1,
st_sfc(make_poly),
crs = box_... | 1 |
9aef1875cd1dd2c0248acdf8cf44880e | 6d72c40e03bbb735f0b8b9c7c88dc7c4 | Set product models. | class WorkerCommand extends ContainerAwareCommand
protected function setProducts($products)
{
return $this->products = $products;
} | 1 |
df8a91ae4650a3968ef8a9439c316376 | ae96e6864a56a0e16f2653043f318417 | Create an OAuth2 client object from the credentials in our config file. | {
$consumer_key = Arr::get($auth_config, 'consumer_key');
$consumer_secret = Arr::get($auth_config, 'consumer_secret');
$auth_callback_url = Arr::get($auth_config, 'auth_callback_url');
return new OAuthConsumer($consumer_key, $consumer_secret, $auth_callback_url);
} | 1 |
cafb0abefc9e1fd66f97241e1bcb92e6 | a617ebc303c31736784cbdb3a1d85dd4 | This method creates a Blank Maze. This means, all walls
are closed and there is no possible path because the
graph is not connected. | Maze maze = new Maze();
Room room0 = makeRoom(0);
Room room1 = makeRoom(1);
Door door0 = makeDoor(room0, room1);
maze.addRoom(room0);
maze.addRoom(room1);
room0.setSide(Direction.North, makeWall());
room0.setSide(Direction.East, door0);
room0.setSi... | 0 |
a8caae2f77c3ab728c773acb3000d0ae | d272e362ae4b866e851f197f3735ec3c | Tries to create an instance without a form. | namespace Botwave.Workflow.Extension.Service.Support
public class EmptyWorkflowFormService : IWorkflowFormService
public void CreateFormInstance(Guid workflowId, Guid workflowInstanceId, string creator)
{
} | 1 |
7c7f695cd972cb56b0769bc880902a22 | dd11374b8bbf76b091565ef5b77113ee | Should be overwritten by subclasses: | class MessageResponse::Base
def success_method
raise RuntimeError, 'Subclass Responsibility'
end | 1 |
3abe1ba71ada00ae407bbce416f50f8f | 5adf37f82b9a382aae66f09375c0e6ef | function that changes the players direction, finalises trail position and creates a new trail object | {
movementStarted = false;
finalOutput = msg.output;
nextOutput = null;
player.gameObject.SetActive(true);
player.transform.position = msg.input.transform.position;
track = null;
tweenDescr = null;
if (StartNewPath(msg.input, out tweenDescr))
{... | 0 |
d9ef8ceb6e7a8f1a7535316cec69c26e | 55663a26202753067afa28efdaac9170 | 获取月份对应的图片 | public class MonCalendar implements Serializable{
public String getImage(){
return tabOfImgs[calendar.get(Calendar.MONTH)];
} | 1 |
44a5a2a86a35378faa1f4e17a51dfe85 | 529f89ca4b10d7c5d7da86325213c851 | model-structure specific;
determines how an encoder model is derived from the fold model parameter values | class BrainEncoder:
def __init__(self, brain_activ=None, model_type=None, model_name=None, cv=3):
self.set(brain_activ, model_type, model_name, cv) | 0 |
e7a26d7aa0c4649a54b19185bcd925c5 | faaa99d5aa112155fcda798244d3b887 | Construct the full post term tree path and add its HTML markup. | {
$this_term = $GLOBALS['wp_query']->get_queried_object();
$taxonomy = get_taxonomy($this_term->taxonomy);
$this->add_crumb($taxonomy->labels->name);
if (0 !== intval($this_term->parent)) {
$this->term_ancestors($this_term->term_id, $this_term->taxonomy);
}
... | 1 |
485ef926d4f43f61e90209d1443db106 | 5d4071f632f249bae49a784c17bd48c2 | Метод возврата суммы прочих удержаний за месяц совместителя | public class BookOnYear implements Serializable
public BigDecimal getPrivilegeAmountOnYear() {
return getSumWithFunction(BookOnMonth::getPrivilegeAmountOnMonth);
} | 0 |
a540e35dac8f870c9d1193b256c92268 | c1a0007c67e71bc62bf919a4231df524 | # Returns the residual mean square. | RSS <- function(observed, predicted) {
sum((observed - predicted)^2)
} | 0 |
b7b5717fecfb434229df86059adaee08 | 502f184cbfbd61385e0bf66423f2a1d5 | 渲染全部Task模版 | var $task_list = $('.task-list:first')
$task_list.html('');
for (var i = 0; i < task_list.length; i++) {
var $task = render_task_tpl(task_list[i], i);
if (task_list[i].complete === true) {
$task_list.append($task);
} else {
$tas... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.