query_id
string
corpus_id
string
query
string
code
string
label
int64
d5287ed21dc70848c9ad0df57d2c248e
c2a34fe5c2d4bbcd921b57a4bc2db59d
Deletes all auto generated user budget
$Db = $this->getDbConnection(); $Db->query(self::SQL_DELETE_ALL, array ( 'user_id' => $this->User->getId(), )); return (int) $Db->affectedRows(); }
1
a87ad7ced8e18f3545f284ceeab6e8e6
6113ff978affa9b713ac6e798761447c
Return empty array instead of array with 1 empty string as entry
class WPCLITest extends \Codeception\Test\Unit public function it_should_handle_the_case_where_the_command_output_is_an_empty_array() { $this->executor->execAndOutput(Argument::type('string'), Argument::any())->willReturn([]); $sut = $this->make_instance(); $this->assertEquals([], $sut->cliT...
1
8eed70ee02437bfcd42b185021326b6e
736137e6ded909be22a9cc99efcb6b92
Returns the total number of times the specified integer value was recorded.
int count(int v);
1
b1e44bb1afbb357c5796441e186fae9d
405b21c81f835b540a5fb3f51d80a89c
关联查询所有主讲的课程
class Teacher extends \think\Model public function course() { return $this->belongsToMany('Course','teachercourse')->using('Teachercourse'); }
1
b81a0d8ed31809f7dfb0b7ce373914be
c212f29dd1b287df4962bd06f66722b8
Selector for determining if the prejoin display name field is visible.
namespace ssCaseConferencing.Flows.FlowCommon public class ScrnPopup_AttachDocument: OSPageViewStateCompressed, IWebScreen, INegotiateTabIndexes, IBookmarkableURL public bool selSelectedUser_isVisible() { return true; }
0
f8caf275fde22d33375d0dacb84f997d
261f6807d79ea4e901c49cf09ff749e3
reinicia la posicion cuando el personaje sale de la escena / util para puntos de control
public class PisoMovilController : MonoBehaviour void Start() { if (objtivoMov != null) { objtivoMov.parent = null; inicio = transform.position; fin = objtivoMov.position; } }
0
21f8c53a2416cb9855c899d9e54144e5
fbd55b79019126c2227fc326964161a6
Adds a new AND where EXISTS clause
namespace Algotec.MSTCommon.CommonUtilities.DBAccess.QueryBuilders.Update IWhere WhereExists(string filter);
1
c1bae94406dc9b470700016ab130ad58
591c800cd30ddb2273e7e9731cd91913
方法描述 改变图片后调用此方法重新加载pagicView
public class pagicView extends AppCompatImageView public void restoreImg(Bitmap bm){ mRect.setmBase(bm); mBase = bm; reInit(); }
1
9abcf30b575f0278ad0da1372204edb1
51c24a143f1baaab9226ac945e1e72fb
跳转登陆页面
@Controller public class UserLoginController extends BaseController @RequestMapping(value="/user/toLogin",method=RequestMethod.GET) public String toLogin(){ return "timeout"; }
0
9885aff31ccfdca0876eb9498587dd2f
2347f14af751ea79f0aae9ec3e7f5dc8
<p> 担当者名を設定します </p>
public class StTaskDto extends StTaskEntity{ public void setEmpName(String empName) { this.empName = empName; }
1
8d5f851b6fe8c685a35ef4d156acc58c
b41e782111f93d23ad956faece2a9a76
直接用所有点的坐标构成的矩阵右乘变换矩阵结果得到所有的变换之后的坐标
transform_list = [] for first_list in input_array: first_list_transform = [] for second_list in first_list: first_list_transform.append(second_list[0] * a + second_list[1] * b + second_list[2] * c) transform_list.append(first_list_transform) return transform_list
0
15e65a1116d4f88d5d34bd56576d2110
165889f1ea53e547f84daaaa6641bfd7
Returns currency data object from current slide.
public class RecyclerViewDataFragment public CurrenciesEntity getCurrency() { return mCurrency; }
1
97d31f45aa424c30bb7e4a11467bfaa8
c488acd1cb0d7ee51c00750935146d1e
Returns list of all metadata records, limited by kind if param provided
async function getBlogList(kind){ let query = {}; let results = []; if(kind!='/'){ query = {kind:kind} } await blogList.find(query).then(function(doc){ results = doc; }); return results; }
1
49a74ae5e1ff2116586def238224a2dd
e3dfe2bd0b4b9b7d999d21dc4347e726
# iteratively merge two clusters until new number of clusters is reached
repeat { graph_Df <- graph_Df[!duplicated(names(graph_Df))] print(nrow(graph_Df[graph_Df$is_core == FALSE,])) if (nrow(graph_Df[graph_Df$is_core == FALSE,]) == 0) break assign_df <- check_alternate(graph_Df[graph_Df$is_core == FALSE,], graph_Df[graph_Df$is_core == TRUE,]) cluster_df <-...
0
47d6ba91903fc837c72a83284749d73a
ec132075f27934006eff098d04d11843
Возвращает текущий день в unixtime
function today() { return (int) (($_SERVER['REQUEST_TIME'] + 28800) / 86400); }
0
7d3b7e44350a33cfc9ac7a64e872d2fe
9e4b6b1910728e00ea6edca1fe837d4f
Return a html formatted list of items
class OpenFDAHTML(): def get_html(self, elems): html = ''' <html> <head> <title>OpenFDA Cool App</title> </head> <body> <ol> ''' for elem in elems: html += '<li>' + elem + '</li>\n' html += ''...
1
731c73a3829945bd9069ca5924599118
a549315e1b3751b86d6f76a37851442c
Shortcut to get the Host IP, open the connection, get the axis handle, and initialize the axis just with one function. This steps are used in almost every situation such as polling or streaming mode.
always_wait_for_stop=True,delay=500,**kwargs): super(ESP300, self).__init__(address) self._instrument.timeout = 10000 self.current_axis = current_axis self.always_wait_for_stop = always_wait_for_stop self.delay=delay
0
24b7e032e418a44de6a45393eff5771a
080509deae184678ac7d59eb728088f3
Adds additional metrics to site aggregated data.
abstract class Host public function getAdditionalMetrics() { return $this->additionalMetrics; }
0
a4fcb56952703aba7e08c0bb239cae28
a49f730ce079e88d7c85362e2264d2e0
List of states of a control field that may be used to evaluate a condition.
super(StateField, self).__init__(**kwargs) self._type_modifiers = set(_re_modifier.findall(self._type)) self.__is_writable = 'Writable' in self._type_modifiers
0
2a894acc024317b7ad6bb93fc0c64435
853df71673341ce96198bf1645a197f2
=========================================================================== DESCRIPTION If the given software configuration is different from the active config, then sets it as the new active config. DEPENDENCIES None PARAMETERS config_id [in] RETURN VALUE None SIDE EFFECTS May trigger a device reset to active a new co...
static exit_code_t zfcp_lun_st_configure_active(struct subtype *st, struct device *dev) { return device_write_active_settings(dev); }
0
96032390ec4aef45e9fd324503b11546
6db63d79bae355da6ae0a4844cd9418f
Funcion que returna el precio de cada producto que se elija
function PrecioProducto($identificador) { global $database_conexionproductos, $conexionproductos; mysql_select_db($database_conexionproductos, $conexionproductos); $query_ConsultaFuncion = sprintf("SELECT dblPrecio FROM tblcakes WHERE idProducto = %s", $identificador); $ConsultaFuncion = mysql_query($query_Consulta...
1
ed7246d262dd7c1ca7e641dbac4deed2
e224088529a23b0baeaa757384e0d07a
Set the continuation point for this frame.
public class LPInterpreter private void setupTripleMatchCall(int pc, int ac) { TripleMatchFrame tmFrame = new TripleMatchFrame(this); tmFrame.setContinuation(pc, ac); tmFrame.linkTo(cpFrame); cpFrame = tmFrame; }
1
48daf41fe884d0f4368b3db5c49288fd
a0ef59b248e55c5718b21c85c8721ec3
Sets state to handle collision when bumpers detect collision from front
state = TRACK_TO_BUMP; done = false; hitFrontBump = false; }
1
99bb54611b134672912153640da61159
a43b7d304c3f13aef2610a2052b64196
Returns the list of known board states.
@RestController @RequestMapping(value=["/api"]) class CompetitionController @RequestMapping(method=[RequestMethod.GET]) fun getBoardState(): Array<Array<TileState>> { return represent(this.competitionWorld) }
0
61da8d0fd90e5fc431540a3c3240f019
12cc975b88d09a8045ed5268d6a26b27
displays projects that a user can contribute to
def my_projects(request): projects = request.user.membered_projects.all() active = 2 return render(request, 'projects/myprojects.html', { 'projects': projects, 'active': active })
1
137d12e7a237f68d2c5d57084335aa4d
a05e19bffc8f6f95feffaa1bb02a77a8
Проверка Изменения значения настройки
namespace CDFM.Gui public partial class CDFMonitorGui : Window//, INotifyPropertyChanged private bool VerifySetting(Configuration.ConfigurationProperties.EnumProperties property, bool repair = false) { return _cdfMonitor.Config.Verify.VerifySetting(property.ToString(), repair); }
1
8f2945ec294fab7d936795ede5c98c78
a1e90246ea4bf97cfe22595d9a4f99e6
渲染操作提示信息为图片 并将其放置于帮助信息下方
class Helper_Form public static function render_toop_tip($description) { if($description != null && $description != "") { return '<span class="form_description" title="'.htmlspecialchars($description).'">&nbsp;</span>'; } return ''; }
0
b6dad8d55ae462da1f2d34728036579b
430d8b9b5af32ae22ed661001e5c2a9e
With this call, the user program logs on at a VFD of an underlying communications system. As input parameters, the user program specifies the configured name of the communications processor via which communication will take place and the configured name of the VFD whose resources and services will be used.<br> The user...
String physicalname, TCType type, String resourceid, List<Profile> lfnprofiles, List<Profile> pfnprofiles, SysInfo sysinfo ) throws Exception;
0
600bbd37b6dcd06315ce702f8cde762f
85deb3215cda8c70e197a73996e0b04b
Add plugin to inform about view state changes.
class PluginInterface(object): def setViewUpdateCallback(self, callbackFunc): self.viewUpdateCallbacks.append(callbackFunc)
1
318b4c5cca348aec51ac020ca01044da
c46500ce3eb309da03aaaa48950432d9
vrati vsetky podmienky
class search_parser public function getRules() { return $this->_db->rows("SELECT * FROM search_kwords_filters_rules"); }
1
05d8e3c3b6947d3d9759f872a6c27c4d
12cddc8691e642b17f9691a795e6cd5a
wczytaj ustawienia strefy noc/dzien z EE lub ustaw defaulty
void NVM_vLoadSettings(void) { BOOL bError = FALSE; unsigned char aucMagic[NVM_MAGIC_LEN]; unsigned int uiVersion; eeprom_read_block ( &(aucMagic[0]), &(NVM_aucMagic[0]), sizeof(aucMagic) ); eeprom_read_block ( &(uiVersion), &(NVM_uiVersion), sizeof(uiVersion) ...
0
ef579a8d152edd210b4c161af6cc9f30
0d85c6ff5e8438cbbaf8f3261d656e21
Lists the animals and their sounds and movements.
namespace CretaceousClient.Controllers public class AnimalsController : Controller public IActionResult Index() { List<Animal> allAnimals = Animal.GetAnimals(); return View(allAnimals); }
0
661848b033baa6007df9f8a0585fad88
2539e555d05bb96230162df865a72f85
Sets nb videos.
class ApiVideoRequest extends AbstractStructBase public function setCount($count = null) { if (!is_null($count) && !(is_int($count) || ctype_digit($count))) { throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($count, true), gett...
1
599f606d8114a4d4548bb9cca7326518
ce468c696064d5940b14428a7819b92a
Update external state and tell MP that the current media item ended.
class MovieActivity : AppCompatActivity() override fun onMovieStopped() { updatePlaybackState( PlaybackStateCompat.STATE_PAUSED, binding.movie.getCurrentPosition(), binding.movie.getVideoResourceId() ) }
0
e915a24384dfd8723fbd5328ff9b9bf3
d62a5df483e10809315e1b379e2a2cda
根据身份证号查询客人信息
public GuestModel selectByCerNum(String cernum) throws Exception;
1
34c21eaf86c05e216b49d3f9f51cd3e7
3fce50aabf59410fc8433f7b3cbb3e83
尝试检查注册到该节点的服务可用情况,返回是否需要刷新服务表
@Slf4j public class RPCRegistry implements Runnable{ public boolean checkJob(){ List<String> children; try { children = registry.getConnect().getChildren().forPath(Config.SERVICE_PATH); log.info("The FaceCompareWorker on Zookeeper : " + children.toString()); return ch...
1
73a13d1c9cc4f976e832c40292b40ab5
6e0fd90bafce85b109e3acb6979b46ee
对指定的字节流进行加密,并以字节流返回
{ if (bytesToEncrypt.IfIsNullOrEmpty()) throw new ArgumentNullException(nameof(bytesToEncrypt)); TEncryptDigestInfoModel encryptBytesDigestInfoModel; using (var sourceStream = new MemoryStream(bytesToEncrypt)) using (var encryptStream = new MemoryStream()) ...
1
42b7c617bbc8822f0ab4f4dd476dffec
775bc837dc5d324a2e6cbb9704f9c8ef
and indexes all entries currently in the mail file.
class Epistle: def loadmail(self, widget, widget2): if self.gmdone == False: try: self.gmData = self.gmq.get(block=False) self.eemailrf = self.gmData[2] self.gmdone = True if self.listed == False: if self.gmData[0] < 50: for x in xrange(0,(self.gmData[0]-1)): y = self.gmData[0] - ...
0
2a76821cc1f7736e0ce4287cf7eb4050
09e8537b4c27e7653bee8821cd596f85
Hook for canonicalising a URI if we want to.
public class FastenURI implements Serializable public FastenURI canonicalize() { return this; }
1
30f58e3ded84043d3848450401d0516a
95cd4be37bb29b28df4c267c433310e3
Checks if passed in string value is undefined, null or empty and shows warning
if (value == null || value == "") { alert(msg); return true; } return false; }
1
4d67657db5eb3dd93998041bd614ee01
a3c6262014135112d5f187e1bd7330d6
Given an open fd_or_path to a pickeled file, return an iterator over all the experiments saved in that file. Can be called multiple times to get successive instances that were all Raises StopIteration when nothing left.
public final class Ofm public PartialObject[] enumerateExperiments() throws IOException { return enumerateObjects( Persistent.TypeId.Experiment ); }
0
4ec74bdfdd490bb15289e43baa840eac
41d502bf7ff19dd47b1c60e88af36437
# From http://stackoverflow.com/a/24569739
tryCatch(read.csv(file, ...), error = function(c) { c$message <- paste0(c$message, " (in ", file, ")") stop(c) }) }
1
75d37a1efa0d52438da207618424128a
0646336f4f1bcb9fc5a0e5785ca31ac5
Enter a parse tree produced by {@link DDLParser#drop_statement}.
public class SQLParserBaseListener implements SQLParserListener @Override public void exitDropOperatorStatement(SQLParser.DropOperatorStatementContext ctx) { }
0
59a275413b8a40404d886f5d190421b5
3c690a88b1f2a4b3fd564f5255ddd6df
<p>指定されたインスタンス名と属性を持つインタフェースを、当該ポートが持つPortProfile内の PortInterfaceProfileから削除します。</p> また、該当するインタフェースが見つからない場合はfalseを返します。
InstancePort removeInstancePort(String portId);
0
419f415cd5a7c97956a7a9f6d7402c50
b3718213942cf605ddeacf4338a6bfb3
Used by TimelineBarController when rightClicked and the user chooses to "move seeker to the right clicked position".
mContextDragOver = new EventHandler <DragEvent>() { @Override public void handle(DragEvent event) { Pane timelineBarController = parentController.getRoot(); Point2D p = timelineBarController.sceneToLocal(event.getSceneX(), event.getSceneY()); Bounds mediaControllerRect; if(p.getX() - mDragOffs...
0
815a9374bc9a4419dff873e832713b50
f0069a407cc9ecb1738e9877b68327e8
初始化的时候让.Gallery-imgObject高度随着宽度变化
function initImg(obj){ var imgWidth=jQuery(obj).attr("imgWidth"); if(imgWidth>400) jQuery(obj).width(400); else if(imgWidth==0) jQuery(obj).width(400); else{ if(jQuery(obj).width()>400) jQuery(obj).width(400); } jQuery(obj).coomixPic({ path: 'js/weaverIm...
0
106301014c1a3e366cfad619e163d3f7
057ac4ea059d43c891e0a29c4f7f9adc
Junta os protocolo no Docflow. Se os protocolos são digitais e foram validados sem erros, realiza a juntada no Docflow e adiciona mensagem de erro no dto caso haja falha no consumo deste serviço na api do Docflow
public class ValidSignerService private byte[] geraDocumentoFinalAssinado(byte[] signaturePackage) { ByteArrayOutputStream outPdf = new ByteArrayOutputStream(); try { ByteArrayOutputStream baosPdf = FileUtils.getByteArrayOutputStreamFromBase64(signatureDetailsDto.getBaosPdf()); PdfReader pdfReader = new PdfRe...
0
ba69e2251824ffd68f242340636ad34a
ce16f20037e438ccfa65606802707841
Remove the client by removing client_socket from sockets and clients
int server::remove_client(int socket) { client_info * current = client_head; client_info * previous = current; while(current != NULL) { if(current->peer_socket == socket) { if(current != client_head && current != client_tail) { previous->next = current->next; ...
1
005647e17741e11c313ecdda754d9305
3b3dc37c6717ae132db14c104dfa8dc4
Возвращает коллекцию со всеми пресетами
public class PresetFacade public List<Preset> get() { try { return dao.get(); } catch (DAOException e) { throw new ApplicationException(e); } }
1
43e6a55787f2530cb0e9950d67a0e057
48a9960a232492148450b618b0f9bff7
自然対話のappIdの取得
return __awaiter(this, void 0, void 0, function () { var appIdAns; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 , inquirer_1.default.prompt(getAppidQuestions())]; case 1: appIdAns = _a.sent(); ...
1
5a9d6d9becc707f7770e090eb3e2bbe1
1f11f46f857eba4ac888464a9fc2739b
Test bundle mapping parser when requesting non string bundle name.
@FixMethodOrder(MethodSorters.NAME_ASCENDING) public class BundleApiIntegrationTest @Test public void test031PostFaultyBundle() throws JsonProcessingException { given().content("blah") .when().post(API_URL) .then().log().everything().statusCode(STATUS_INVALID); }
0
a0aff954713430e884953edb1e70154c
51d6cc740170274473c399d9d8ba70dc
3C根据用户名跟状态查询申请件信息
{ SqlParameter[] p = new SqlParameter[] { new SqlParameter("@state",state), new SqlParameter("@mid",mid) }; return SQLHelper.ExecuteReader("joblist_Applictions", CommandType.StoredProcedure, p); }
0
d02fe11ac6c66f597dbdae56df3f9cad
8c83ad670e73fed93cb74c86d59cc28a
take an object from a char
void CellPointer::coni_c(){ char ch = (char) getch(); cell_ptr -> from_char(ch); }
1
d3b427099e2bd01829f6f7a81f6043d3
be3068263929ed199f3172f04e86ce71
Handler for Menu-Button-Link-onBlur events:
class AddToBasketController public onBlur() { this.states.hasFocus = false; this.states.isBlurred = true; if (!this.isUpToDate) { this.setQuantity(this.quantityInBasket); } if (this.position === 'minibasket' || this.position === 'basket' || this.responsiveService.isTouch) { this.cancelTimer(); ...
0
6e144ff9fd19327d532e091796a61cdf
69b7971a59985b06da02b58553909552
英数字もしくはJIS X 0208漢字のデータが現れる位置を調べる
namespace EuropaEnginePatcher public static class PatchEngine private static bool ScanGetTextWidthStart() { AppendLog("ScanBinary - 特定バイナリを探す\n"); AppendLog(" \"%09 文字列幅の処理を埋め込む位置\"を探します\n"); byte[] pattern; switch (_patchType) { c...
0
2d2dcaa361276f29acb582b14e44f041
c966829b99e4451dec16e32287098335
Returns true if any gestures are enabled, otherwise false.
result.success( _uiSettings.isZoomGesturesEnabled && _uiSettings.isRotateGesturesEnabled && _uiSettings.isScrollGesturesEnabled && _uiSettings.isTiltGesturesEnabled ) }
0
0cb57037b8e5202469caa4c1b86585ce
49d1cc87042d3ca6cec73433c33c7e5f
Shows "video not playable/available" modal
try { this.videoRef.style.display = 'none' } catch (error) { console.log(error.message) } }
0
2e0c22c35b7d6039705c442146dafb26
ffc4af187c0dfbabeebbed18f6519229
해당면을 시계방향으로 돌림
void clock_wise(int side) { clock_wise_side(side); char temp[3]; char temp1[3]; int side3=change_side[side][3][0]; for(int j=1; j<4; j++) { int row=change_side[side][3][j]/3; int col=change_side[side][3][j]%3; temp[j-1]=cube[side3][row][col]; } for(int i=0; i<4; i++) { int side3=change_side[side][i][0]...
1
471deab9908ae455480f28d29d7ce3a2
29e478d4c9ff9b3779141e290af1d301
Sets the number of modbus slaves initialized by the library before it starts running.
public static void setup() { try { SlaveOperator slaveOperator1 = new SlaveOperator(SLVLIB1); slaveOperator1.start(); SlaveOperator slaveOperator2 = new SlaveOperator(SLVLIB2); SLVLIB2.setInitialCapacity(CAPACITY + 1); SLVLIB2.setAllowDefaultValues...
0
83383059bec2c3e8f2c11997ea8cdeac
b86bc0ef5e77f777980dd47bb0338b99
Add a derivative preference to a given item
class MyOOS_CoreApi function addDerivativePreference($order, $itemId, $derivativeType, $derivativeOperations) { MyOOS_CoreApi::requireOnce( 'modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class'); return GalleryDerivativeHelper_advanced::addPreference($order, $itemId, $derivativeType, ...
1
17e6e933e19d18d921575a44d5dcea75
67e60af8d9a630158f1e1fbef6a5a159
histogram equilization for a single channel , input is numpy array of image
def histeq(im): h=imhist(im) cdf=np.array(cumsum(h)) sk=np.uint8(255*cdf) s1,s2=im.shape new_im=np.zeros_like(im) for i in range(0,s1): for j in range(0,s2): new_im[i,j]=sk[im[i,j]] return new_im
1
96d189f2e7ca0fb3e03d1d0cc7bed448
ef0e7d04789d7d29b1e72f6b23e5ddeb
Lists all TPost models.
{ $searchModel = new PostTypeSearch(); $dataProvider = $searchModel->search(request()->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
0
7b484293093786301ca851d783b1ab45
7168b53fec8922b64488d3a0fab129a1
The function displays the confusion matrix cm as an image.
fig, ax = plt.subplots() im = ax.imshow(confm, interpolation='nearest', cmap=plt.cm.Blues) ax.figure.colorbar(im, ax=ax) ax.set(xticks=np.arange(confm.shape[1]), yticks=np.arange(confm.shape[0]), xticklabels=classes, yticklabels=classes, title=title, ylabel='T...
1
b28184ba82829fd8a138b21f42d5a60e
df97fcac912ecdc4fad51eb6eb9d6fe8
Método responsável por confirmar presença de um membro em um jogo.
{ $return = $this->repository->findWhere(['project_id'=>$id, 'id'=>$memberId]); if (($result) && count($result)>=1) { return $result; } return ['error'=>true, 'Membro não encontrado.']; }
1
8873bdabdd9c4d8d9263dc70e5f4b88c
4e15801d31f0a0bf893bbb9b8f1890ea
Initializes writing for fields.
namespace Xnet public class Bytes public void InitForWrite(int grade, int offset) { this.accessor = Bytes.ObtainAccessor(grade); this.allocGrade = grade; this.headpos = offset; this.tailpos = offset; this.offset = offset; th...
1
411c4374dff139f87086e81ed42ad8c1
7736acfc8199afd646642a83f071fba7
Test study list limited to a certain user.
class ViewsTest(TestCase): def test_study_list(self): response = self.client.get(reverse("projects:study_list")) self.assertEqual(response.status_code, 200) self.assertTrue("study_list" in response.context) self.assertEqual(response.context["study_list"].count(), 1) self.assertEq...
0
4a700964285a30eca2e154dd21a45dc1
7e732d01732e32f597feff79a401ea84
doPost method is uses for insert and update figures. If ID of the figure = 0, call insert method and response ID from data base, which is uses to set ID to figure at map.
{ if (this.id != 0) { this.myUpdateMethod(this.id, this.number, this.name, this.image, this.url, this.sort, this.describe, this.is_active, this.is_delete,this.fat_Id, this.class_level, this.child_number, this.city_ID,this.count_child); } else ...
1
c5bdf79ae0da0b94aa84b07b90c5317b
cd9623b305c584ec1e915216762cb033
分页查找运营商
@SuppressWarnings("rawtypes") PageBean operatorList(PageParam pageParam, Map<String, Object> paramMap);
1
b42c01436c9f12ca87961cf450e425d5
cf0ab386117e838d905bd8cca4c5dd8f
Helper to check login, clear cache later and commit transaction
public class LoginActivity extends AppCompatActivity /*implements LoaderCallbacks<Cursor>*/ private void attemptLogin() { doCheckBeforeAction(1); }
0
7d88654d2ac7f639b8e6ffb190f970eb
1ca334acad65cb01a7be9198b1ef3a41
Show the current slots remainings.
class Row: def remaining_slots(self) -> int: return self.get_max_cards() - self.get_current_length()
1
5d6915ba5636dec4ebabc38a79f89fd2
7f61448ad6da3ef0f9cb03f40c5be655
Between 0 and 1. It could be 0, but not 1.
cases like (1)
0
7606e67d5af65aaebc0084aaf2dd639a
bd39d954eb18ca5a12410b69bca7f074
Returns a dictionary containing the database items that match the location specified
namespace HiNSimulator2014.Models public class Repository : IRepository public List<Thing> GetThingsInLocation(Location currentLocation) { return DbContext.Things.Where(t => t.LocationID == currentLocation.LocationID).ToList(); }
0
982394b9215102fd963a0c15eb446736
fb4621a54abc06c9894767da931faa0a
验证买家分批订单明细的有效性
if (count($this->agentBatch, COUNT_NORMAL) === 0) throw new TrxException(TrxException :: TRX_EXC_CODE_1101, TrxException :: TRX_EXC_MSG_1101, "批次信息不允许为空"); if ((int) $this->agentBatch["AgentCount"] !== count($this->details, COUNT_NORMAL)) { throw new TrxException(TrxException :: TRX_EXC_CODE_1101, TrxExceptio...
1
1408d8ecb1dfd3d352ab06fc19037245
1d06a4151851ebc5f0321d585dcafaa9
Sets the drawable that will be drawn adjacent to every child in the list. This will be drawn using the same height as the normal divider ({@link #setDivider(Drawable)}) or if it does not have an intrinsic height, the height set by {@link #setDividerHeight(Int32)}.
public class SmartRecyclerView extends RecyclerView public void setDivider(@Nullable Drawable divider) { if (divider != null) { dividerHeight = divider.getIntrinsicHeight(); } else { dividerHeight = 0; } this.divider = divider; addItemDecoration(new Divide...
1
5074a8c4514b1e652ba7040cefdba3c5
3bcb90ef1f013f9054f93144c5ca555c
Method to check whether the two given schemas are compatible.
namespace Hexx.Core public class Table public bool IsCompatibleWith(Table other) { return Schema.IsCompatibleWith(other.Schema); }
1
8a37ebb8b95ee0208416bf5c66806c4a
305b949869a3450605ef0f5db2059e32
Supprimer la table direction
class CreateJuriesDirecteursTable extends Migration public function down() { Schema::dropIfExists('juries_directeurs'); }
0
6bfc8e7b3b197c8e654d03c3a9b63e50
199f31418f1695f73c40adf88644b474
Test the generated vector field datasymbols are created correctly. These are straight subclasses of the equivalent field datasymbols.
class M44dVectorDataTest(BaseVectorDataTest, unittest.TestCase): def testConstructors(self): BaseVectorDataTest.testConstructors(self)
0
57d91fc922007904d37f517fad7d07fe
1ec7c57460f1083b5ac8a5607af02ecb
Send contents of {@link ByteBuffer} to remote address
ByteBuffer fill(ByteBuffer dest) throws IOException;
0
95a3c9ee797b00076ef6ffb51f23a33c
699ffa0c290e457a752bdd0eb16c5f35
closes the main menu
public class FB_GameMenuController : MonoBehaviour public void CloseGuestMenu() { ShowMainMenu(); GuestUserMenu.SetActive(false); }
0
042e9fbffca22b9abfde7c63d74c8781
c896ea860ffefa820f20318fa2326d15
Change the gene's value into any of the possible alleles, subject to mutation probability 'self.mutProb' perform mutation IN-PLACE, ie don't return mutated copy
chars = array('u', gene) for i in list(range(len(chars))): prob = random.random() if prob < mutation_rate: chars[i] = random.choice(gene_library) return chars.tostring()
0
eede5a5c412bf74a4f349d89960110b6
2317087ba6c0ec4021463e3622b2699a
生成器,枚举某一个细胞附近所有的坐标
range_coors = self.get_range_coors(start_row, end_row, start_col, end_col) for a in range_coors: for b in a: yield b
0
6796e349facf57a2ba6cf6184579462b
44a08b65bb38af68818fc413ad5f6400
将收藏项目的状态包装到Item中
isCollected = mPhotoItem.isCollected(); Resources res = mContext.getResources(); if (isCollected) { Drawable img = res.getDrawable(R.drawable.fav); img.setBounds(0, 0, img.getMinimumWidth(), img.getMinimumHeight()); mCollectionBtn.setCompoundDrawables(null, im...
0
111e3d1b0a4506abd2e3140236c73e75
efa7d39e5bb183a4368fd2dafe4ae8aa
Closes the checkout window.
namespace TradingControl.Views public partial class CheckoutWindow : Window private void Accept(object sender, RoutedEventArgs e) { DialogResult = true; this.Close(); }
1
d3b935300fb55fbc9694cfaae68e67cf
6a8f734556cf8f0c048ef0298694ab8e
向node发送停止运行某个规则的请求
@RequestMapping(value="/rule/ruleStop", method= RequestMethod.GET,produces = "application/json;charset=UTF-8") public Result<Boolean> ruleStop(@RequestParam("pointid") String pointid);
1
e690c92de0e39c40a2aad35e1a8b9936
bcb483859732c290b37c0ba5d33e6979
获取数据集当前版本文件数量
public long getCurrentVersionSize();
0
1a2d407340b0b8c178cd4d24bdfe4ea6
a42690821b7599ecc3adcf63d3bdbcfc
Gets the error_recovery_level of this IscsiNegotiableSessionSettings. The level of error recovery negotiated between the initiator and the target.
boolean isRecoverableMode();
0
d6f2dc4744829e0ab4386f55bfd860f4
c33f107d2bcaa444ce2b58bb2cd2288b
when user presses any button the game returns to menu
public class GameOverGUI : MonoBehaviour public void ReturnToMenu() { }
0
e8bade42f3f8047aa8f03fae794e5b12
4b8d0fc1d8966458591093f6194a4644
u'''维修单高级查询
super(RepairConfirmForm, self).__init__(*args, **kwargs) self.dept_code.choices = [(dept.code, dept.name) for dept in Department.query.order_by(Department.code).all()] self.brand_code.choices = [(brand.code, brand.name) for brand in EquipmentBrand.query.order_by(EquipmentBrand.code).all()] ...
0
aa9411fad1a8cb0c5adc1338d73eed59
3eda4a25534a1360618967edc1e5d7bc
Guarda el usuario en nuestra base de datos y nos devuelve su ID.
global $mysqli; connectDB(); $mysqli->query("INSERT INTO `users` (`name`, `email`) VALUES('$name','$email')"); $id = $mysqli->insert_id; closeDB(); return $id; }
1
2b8aac01afbfb105ed20ef855707b261
0e17ea638e69b2d06fbc4a38a1078d4d
函数:获取动作状态
int getActionState();
1
9040ad88849ec5e30a6ddfb5f1eb9a8c
d4022398671e6acc2e7a8d11f049b4cf
Gets the number of spline segments.
public abstract class CCSpline implements Iterable<CCVector3>, CCInterpolatable<CCVector3>{ public int numberOfSegments(){ return _mySegmentsLength.size(); }
1
17f6dcbba637d5962054da9efdc094a7
2d525ff859ace02591d9c7c3829492ba
根据提供的正则表达式将源字符串分割成List
List<String> list = new ArrayList<>(); split(list, values, regex); return list; }
1
464ef808702c86c2b031eb6c351bb95f
267ee7f7f62131aa670dbdca041b07f0
获得三种尺度上的输出
class RecognizerTransformer(BaseRecognizer): def test_step(self, data_batch): clips_list = paddle.split( data_batch[0], num_or_sections=3, axis=2 ) cls_score = [ self.forward_net(imgs) for imgs in clips_list ] cls_score = paddle...
0
f214a30bccecddad4c1e55e929c46124
8564c86b3f24a3cabd8e6d6e280ae2a9
Returns the name of the computation problem associated with the task.
public String getProblem();
1
6bc8367fd4f2e58432eb2b5fbe22fc3e
d61af95d744731b1ef0664ae71096d2e
GET: api/schedule
data := []byte(SchedulesResp) var body []library.Schedule _ = json.Unmarshal(data, &body) c.JSON(http.StatusOK, body) }
1
392bfe083c06bbfcfaf81f5dcb1f6467
9a01986f12606db20d5b979a8e9d1d55
This signifies the number of LCK frames transmitted. Returns: number
class TransmitStatusResponse(BaseResponse): def frame_id(self): return self._frame_id
0
1fe5d76c9bb94e66db2a9f8f9bdeacc3
0a1ddfb9623d991239aa67ab5a90980f
Loads satellites and transponders from satellites.xml file
_stations.clear(); xmlDocPtr doc; doc=xmlParseFile(path.c_str()); if(nullptr==doc) return; xmlNodePtr root=xmlDocGetRootElement(doc); if(nullptr==root){ xmlFreeDoc(doc); return; } xmlNodePtr st; for(st=root->children;st!=NULL;st=st->next){ if(st->type==XML_ELEMENT_NODE&&xmlStrcmp(st->name,BAD_CAST"stat...
0
4c4b38e5e0184d7f51cd082dff8e0900
1154fde8d8573f2554d15ead33ed50dd
Callback when rabbitMQ connection lost. Try to reconnect
class LoudbotFactory(protocol.ClientFactory): def clientConnectionLost(self, connector, reason): connector.connect()
1
5f95150b15814d4995aeff59ee276d67
e7ea53a5570b28ac10f7127e593fc2b9
scans whitespace, skipping past containers on newline
void consume_leading_whitespace() { this->remaining.scan_while<rstring_t::char_is_whitespace>(); }
0
6b233221da9b346a127e70d908af739b
334c5a81bb3a1f5002450c27d97b5a0f
this function calculates n!/(n-r)!
size_t nPr(size_t n, size_t r){ return factorial(n) / factorial(r); }
1