query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a persona with the specified identifier and automatically creates an associated session with it. | Persona createPersona(String personaId); | [
"public void createSession(int uid);",
"public CreateIdentificationResponse createSession(CreateIdentificationRequest request) throws Exception, IdfyException {\n Object localVarPostBody = request;\n // create path and map variables\n String localVarPath = \"/session\";\n\n // Base pat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a timemap that starts at the given startTick and covers the period given by "timeSize". | private TimeMap(double startTick, double timeSize, double tempoFactor) {
if (tempoFactor == 0.0D) {
throw new IllegalArgumentException("Zero tempoFactor.");
}
if (startTick < 0.0F) {
throw new IllegalArgumentException("startTick is less that zero.");
}
this.startTick = star... | [
"public Map(int size) {\r\n nodes = new MapNode[size];\r\n start = 0;\r\n finish = 0;\r\n }",
"public void createMap() {\n float amountOfTilesNeeded = WORLD_WIDTH/(tileTur.getWidth()/60f);\n float x = 0;\n float y = 0;\n\n for (int i = 0; i < amountOfTilesNeeded... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This will set the IE driver | private void setIEDriver() throws Exception {
capabilities = DesiredCapabilities.internetExplorer();
// capabilities.setCapability("ignoreProtectedModeSettings", true);
// capabilities.setCapability("ignoreZoomSetting", true);
// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,
// tr... | [
"protected void initIEDriver() {\n webDriver = new InternetExplorerDriver();\n }",
"public void createIExplorerDriver() \n\t{\n\t\t\tDesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();\n\t\t\tieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SEC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
lncli: `addinvoice` AddInvoice attempts to add a new invoice to the invoice database. Any duplicated invoices are rejected, therefore all invoices must have a unique payment preimage. | public void addInvoice(lnrpc.Rpc.Invoice request,
io.grpc.stub.StreamObserver<lnrpc.Rpc.AddInvoiceResponse> responseObserver) {
asyncUnimplementedUnaryCall(getAddInvoiceMethod(), responseObserver);
} | [
"public lnrpc.Rpc.AddInvoiceResponse addInvoice(lnrpc.Rpc.Invoice request) {\n return blockingUnaryCall(\n getChannel(), getAddInvoiceMethod(), getCallOptions(), request);\n }",
"public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.AddInvoiceResponse> addInvoice(\n lnrpc.Rpc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "columnOperation" $ANTLR start "properties" /home/alex/workspace/cassandramv/src/java/org/apache/cassandra/cql3/Cql.g:764:1: properties[PropertyDefinitions props] : property[props] ( K_AND property[props] ) ; | public final void properties(PropertyDefinitions props) throws RecognitionException {
try {
// /home/alex/workspace/cassandra-mv/src/java/org/apache/cassandra/cql3/Cql.g:765:5: ( property[props] ( K_AND property[props] )* )
// /home/alex/workspace/cassandra-mv/src/java/org/apache/cassand... | [
"public final void property(PropertyDefinitions props) throws RecognitionException {\n ColumnIdentifier k = null;\n\n String simple = null;\n\n Maps.Literal map = null;\n\n\n try {\n // /home/alex/workspace/cassandra-mv/src/java/org/apache/cassandra/cql3/Cql.g:769:5: (k= ciden... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Alarm record ID | public String getAlarmId() {
return this.AlarmId;
} | [
"long getRecordId();",
"public String getRecordId();",
"public int getRecordID();",
"java.lang.String getClientRecordId();",
"public Integer getRecordId() {\n return recordId;\n }",
"public String getRecordId() {\n return recordId;\n }",
"public int getRecordID() {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the ITEM IDs of menu items in this order. | public int[] getItems() {
int[] itemIds = new int[items.length]; // worse case -- every item on menu is in order
int count = 0;
for(int k=0; k<items.length; k++) if (items[k] > 0) itemIds[count++] = k;
// trim array to correct size by copying it
return Arrays.copyOf(itemIds, count);
} | [
"public String itemIds() {\n return this.itemIds;\n }",
"public int[] getItemIDs()\r\n\t{\r\n\t\treturn itemIDs;\r\n\t}",
"public String getMenuids() {\n return menuids;\n }",
"public int[] getItemIDs() {\n return General.intsInRange(1,size()+1);\n }",
"public int[] getItemIds(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the capture request configuration for the current capture session. | private void updateCaptureSessionConfig() {
ValidatingBuilder validatingBuilder;
synchronized (mAttachedUseCaseLock) {
validatingBuilder = mUseCaseAttachState.getActiveAndOnlineBuilder();
}
if (validatingBuilder.isValid()) {
// Apply CameraControlInternal's Sessi... | [
"protected void updatePreview() {\n if (null == mCameraDevice) {\n Toast.makeText(CameraActivity.this, \"Couldn't find Camera\", Toast.LENGTH_SHORT).show();\n }\n mCaptureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n try {\n mC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println("WWWWWW: " + Thread.currentThread().getName() + " clearAndStart 1" + getState().l); | public static void clearAndStart() {
clear();
// System.out.println("WWWWWW: " + Thread.currentThread().getName() + ": clearAndStart 2" + getState().l);
pushAndStart(null,null);
// System.out.println("WWWWWW: " + Thread.currentThread().getName() + ": clearAndStart 3" + getState().l);
} | [
"default void clearThreadState() {\n\t}",
"public void clearState();",
"public void reset() {\r\n state = 0;\r\n }",
"public void setStart()\n {\n currentState = 0;\n preDone = false;\n }",
"public synchronized void reset() {\n state = State.WAITING_TO_START;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets array of all "addressHistory" elements | ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability[] getAddressHistoryArray(); | [
"public ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability[] getAddressHistoryArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(ADD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WebRTC event which is triggered when peer opens a data channel | void onDataChannel(DataChannel dataChannel, NBMPeerConnection connection); | [
"void onRemoteStreamAdded(MediaStream stream, NBMPeerConnection connection);",
"public void securityMessageReceived(CallPeerSecurityMessageEvent event);",
"@Override\n public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) {\n // Add the new opened channel to the neddy ChannelGroup.\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleUnaryExpr" $ANTLR start "entryRuleNumberExpr" InternalMGPL.g:754:1: entryRuleNumberExpr : ruleNumberExpr EOF ; | public final void entryRuleNumberExpr() throws RecognitionException {
try {
// InternalMGPL.g:755:1: ( ruleNumberExpr EOF )
// InternalMGPL.g:756:1: ruleNumberExpr EOF
{
if ( state.backtracking==0 ) {
before(grammarAccess.getNumberExprRule());
... | [
"public final void entryRuleNumberExpression() throws RecognitionException {\n try {\n // InternalArithmetic.g:254:1: ( ruleNumberExpression EOF )\n // InternalArithmetic.g:255:1: ruleNumberExpression EOF\n {\n before(grammarAccess.getNumberExpressionRule()); \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Position__Group__2__Impl" $ANTLR start "rule__Position__Group__3" InternalDroneScript.g:5144:1: rule__Position__Group__3 : rule__Position__Group__3__Impl rule__Position__Group__4 ; | public final void rule__Position__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:5148:1: ( rule__Position__Group__3__Impl rule__Position__Group__4 )
// InternalDroneScript.g:5149:2: rule__Position__Group... | [
"public final void rule__Position__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5121:1: ( rule__Position__Group__2__Impl rule__Position__Group__3 )\r\n // InternalDroneScript.g:5122:2: r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Data__Group_5__1__Impl" $ANTLR start "rule__Data__Group_5__2" InternalMyDsl.g:11345:1: rule__Data__Group_5__2 : rule__Data__Group_5__2__Impl rule__Data__Group_5__3 ; | public final void rule__Data__Group_5__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:11349:1: ( rule__Data__Group_5__2__Impl rule__Data__Group_5__3 )
// InternalMyDsl.g:11350:2: rule__Data__Group_5__2__Impl rule__Data__Gr... | [
"public final void rule__Data__Group_6__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:11457:1: ( rule__Data__Group_6__2__Impl rule__Data__Group_6__3 )\n // InternalMyDsl.g:11458:2: rule__Data__Group_6__2__Impl ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XCasePart__Group_1__0" $ANTLR start "rule__XCasePart__Group_1__0__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9784:1: rule__XCasePart__Group_1__0__Impl : ( 'case' ) ; | public final void rule__XCasePart__Group_1__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9788:1: ( ( 'case' ) )
... | [
"public final void rule__XCasePart__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22450:1: ( ( 'case... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required bytes splitkey = 1; | boolean hasSplitkey(); | [
"org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString getSplitkey();",
"public boolean hasSplitkey() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"String[] split(String hashKeyRangeKey);",
"public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString getSplitkey() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for the calculated attribute Foliosintramo | public Number getFoliosintramo() {
return (Number) getAttributeInternal(FOLIOSINTRAMO);
} | [
"public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }",
"String attributeValue();",
"int getAttValue();",
"public Number getTara()\n {\n return (Number)getAttributeInternal(TARA);\n }",
"public double getMont_fiscal() {\n return this.mont_fiscal;\n }",
"public Number ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests to see if the point is within the range of the begining of the drag action's first point. (The point on Action Down). This helps differentiate from holds and attempts to register a drag lock. Measures if a drag attempt was made. | private boolean validDragAction(float[] point) {
return movedOutOfBufferZone(point) && userAttemptedDrag(point);
} | [
"private boolean userAttemptedDrag(float[] endingTouchPoint) {\n return Utils.getDistance(beginningTouchPoint, endingTouchPoint) > MINIMUM_DRAG_START_DISTANCE;\n }",
"protected boolean shouldStartDragInteraction(final PInputEvent event) {\n return getMousePressedCanvasPoint().distance(event.getCa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column catch_info.catch_person | public void setCatchPerson(String catchPerson) {
this.catchPerson = catchPerson == null ? null : catchPerson.trim();
} | [
"public void setPerson(String person) {\n this.person = person;\n }",
"public void setPerson(Person person) {\r\n this.person = person;\r\n }",
"public String getCatchPerson() {\n return catchPerson;\n }",
"public void setFillinperson( String fillinperson ){\n this.fillinpe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Note that if there isn't a common memory frequency, this will return 0. | public int getInstalledMemFreq(){
HardwareSet ramSet = this.hardwareSetMap.get(EnumHardwareType.RAM);
if(ramSet.isEmpty()) return 0;
List<String> ramFreqs = ramSet.readCommonStringVals(EnumKeyStrings.FREQUENCY);
if(ramFreqs.size() != 1) return 0;
try{
return ... | [
"int getFrequency();",
"public int getNumSamplesOnMemory() {\n return numSamplesOnMemory;\n }",
"public static long getCurrentFreqency() {\n try {\n return Long.parseLong(FileUtil.getFileOutputString(CPU_FREQ_CUR_PATH).trim());\n } catch (Exception e) {\n e.printSta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform an actual rollback of the given transaction. An implementation does not need to check the "new transaction" flag; this will already have been handled before. Usually, a straight rollback will be performed on the transaction object contained in the passedin status. | protected abstract void doRollback(DefaultTransactionStatus status) throws TransactionException; | [
"void rollback(Transaction transaction);",
"@Override\n public Object doInTransaction(TransactionStatus transactionStatus) {\n transactionStatus.setRollbackOnly();\n return null;\n }",
"protected abstract void rollback(WorkFlowChainContext chainContext) throws... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column favortie.favortieid | public void setFavortieid(Integer favortieid) {
this.favortieid = favortieid;
} | [
"public Integer getFavortieid() {\n return favortieid;\n }",
"public void setFavour(Integer favour) {\n\t\tthis.favour = favour;\n\t}",
"public void setFavNum(Integer favNum) {\n this.favNum = favNum;\n }",
"FavoritesVo selectByPrimaryKey(Integer favId);",
"public Integer getFavoritesId(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Atribui uma velocidade ao veiculo | public void setVelocidade(int velocidade) {
this.velocidade = velocidade;
} | [
"public void setVelocidade(int velocidade) {\n this.velocidade = velocidade;//Tranformando velocidade em tempo de espera\n }",
"public int getVelocidade() {\n return velocidade;\n }",
"protected void creaViste() {\n /* variabili e costanti locali di lavoro */\n Vista vista;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get table of contents | public TableOfContents getTableOfContents()
{
if (tableOfContents == null)
{
FacesContext facesContext = FacesContext.getCurrentInstance();
VariableResolver resolver = facesContext.getApplication()
.getVariableResolver();
tableOfContents = ((TableOfContentsTool) resolver.resolveVar... | [
"public TableOfContents getTableOfContents() {\r\n \t\treturn this.tableOfContents;\r\n \t}",
"public abstract Object getTableOfContents();",
"Object getTables();",
"public void readCompleteTable()\n\t{\n\t\topen();\n\t\tList<Map<Object, String>> tbl = HtmlTable.rowsFrom(table);\n\t\t//System.out.println(tbl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ expressions binary arithmetic | public void visit(BinaryArithmeticExp exp) { visit((BinaryExp)exp); } | [
"private Expr addition(){\n Expr expr = multiplication();\n\n while (match(PLUS, MINUS)){\n Token op = previous();\n Expr right = multiplication();\n expr = new Expr.Binary(expr, op, right);\n }\n\n return expr;\n }",
"public int expr(){\n int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
si el nodo a desconectar no es cabeza = retorna el nodo caso contrario = null | public NodoA desconectar(NodoA t){
if(t != cabeza){
t.getLigaDer().setLigaIzq(t.getLigaIzq());
System.out.println("Direccion:"+t+" izquierdo:"+t.getLigaIzq()+" derecho:"+t.getLigaDer());
t.getLigaIzq().setLigaDer(t.getLigaDer());
return t;
}
return... | [
"public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }",
"public void desconectar(NodoDoble x){\r\n if(x==primero){\r\n primero=primero.getlD();\r\n if(primero==null){\r\n ultimo=null;\r\n return;\r\n }\r\n primero.setlI(ultim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the dias pg. | public void setDiasPg(Integer diasPg)
{
this.diasPg = diasPg;
} | [
"public Integer getDiasPg()\r\n\t{\r\n\t\treturn diasPg;\r\n\t}",
"public void setDit( int pDit )\r\n {\r\n ( (IntegerMetricBO) getMetrics().get( DIT ) ).setValue( new Integer( pDit ) );\r\n }",
"public void setDPG(double argDPG)\r\n {\r\n this.DPG = argDPG;\r\n }",
"public void setP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Definitions used for interacting with the Host applicationtable | public interface HostApp {
/**
* Data row MIME type
*/
static final String MIME_TYPE = "aef-host_application";
/**
* Path segment
*/
static final String HOST_APP_PATH = "host_application";
/**
* Content URI
*/
static final Uri URI = Uri.withAppendedPath(BASE_URI, HOST_APP_PATH);
} | [
"public interface HostAppColumns extends BaseColumns {\n\n\t\t/**\n\t\t * The package name of a host application\n\t\t * \n\t\t * @since 1.0\n\t\t */\n\t\tstatic final String PACKAGE_NAME = \"packageName\";\n\n\t\t/**\n\t\t * The version of a host application\n\t\t * \n\t\t * @since 1.0\n\t\t */\n\t\tstatic final S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the FullSyncStatus for the Channels associated with this manager and begin syncing if all Channels do not already have a FullSyncState of COMPLETE. The MessageManager.retrieveAndPersistAllMessages() method is used to perform the sync. | public void checkFullSyncStatus(ChannelSyncStatusHandler handler) {
checkFullSyncStatus(true, handler);
} | [
"public void startFullSync(final ChannelSyncStatusHandler handler) {\n mMessageManager.retrieveAndPersistAllMessages(getChannelsArray(), new MessageManager.MessageManagerMultiChannelSyncResponseHandler() {\n @Override\n public void onSuccess() {\n handler.onSyncComplete()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rulePatternExpCS" $ANTLR start "entryRuleLambdaLiteralExpCS" InternalMyDsl.g:6527:1: entryRuleLambdaLiteralExpCS returns [EObject current=null] : iv_ruleLambdaLiteralExpCS= ruleLambdaLiteralExpCS EOF ; | public final EObject entryRuleLambdaLiteralExpCS() throws RecognitionException {
EObject current = null;
EObject iv_ruleLambdaLiteralExpCS = null;
try {
// InternalMyDsl.g:6527:59: (iv_ruleLambdaLiteralExpCS= ruleLambdaLiteralExpCS EOF )
// InternalMyDsl.g:6528:2: iv_r... | [
"public final EObject entryRuleLiteralExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleLiteralExpression = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/inter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XRelationalExpression__Group_1_0_0_0__1" $ANTLR start "rule__XRelationalExpression__Group_1_0_0_0__1__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18348:1: rule__XRelationalExpression__Group_1_0_0_0__1__Impl : ( 'instanceof' ) ; | public final void rule__XRelationalExpression__Group_1_0_0_0__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18352:1: ( ( 'ins... | [
"public final void rule__XRelationalExpression__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6285:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private constructor so only LocalOfficeManager can initialize an instance of this builder. | private Builder() {
super();
} | [
"public LocalOfficeConnection()\n\t{\n\t\t// init member vars\n\t\ttry\n\t\t{\n\t\t\tsetUnoUrl( \"uno:pipe,name=\" + getPipeName() + \";urp;StarOffice.ServiceManager\" );\n\t\t}\n\t\tcatch ( java.net.MalformedURLException e )\n\t\t{}\n\n\t\t// load libofficebean.so/officebean.dll\n\t\tString aSharedLibName = getPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes the rules in the bound rule execution set using the supplied list of objects. | public final List executeRules(List objects, ObjectFilter filter)
throws InvalidRuleSessionException {
session.reset();
session.addObjects(objects);
session.executeRules();
return session.getObjects(filter);
} | [
"public final List executeRules(List objects)\n throws InvalidRuleSessionException {\n return executeRules(objects, ruleSet.resolveObjectFilter());\n }",
"public void apply(List<RexNode> exprsList, RexNode expr)\n {\n RexNode [] exprs = new RexNode[exprsList.size()];\n exprsL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the underlying meem from the connected MeemClientProxy. | protected Meem getUnderlyingMeem() {
return getMeemClientProxy().getUnderlyingMeem();
} | [
"protected MeemClientProxy getMeemClientProxy() {\n\t\treturn meemClientProxy;\n\t}",
"static synchronized MMXClient getMMXClient() {\n checkState();\n return sInstance.mClient;\n }",
"public Meem getMeem() {\r\n\t\treturn (Meem)getSource();\r\n\t}",
"public static MessageProxy getMessageProxy() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether the given switch is metercapable. | private boolean isMeterCapable(OpenFlowSwitch sw) {
Driver driver;
try {
driver = driverService.getDriver(DeviceId.deviceId(Dpid.uri(sw.getDpid())));
} catch (ItemNotFoundException e) {
driver = driverService.getDriver(sw.manufacturerDescription(), sw.hardwareDescription... | [
"public boolean isMetered() {\n return mIsMetered;\n }",
"public static boolean isMeterEnabled(int state) {\n return hasMask(state, METER_ENABLED_MASK);\n }",
"public boolean isMetered() {\n return mIsScoredNetworkMetered\n || WifiConfiguration.isMetered(mConfig, mInfo)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get instance by reflect. | public static synchronized <T> T get(Class<T> clazz) {
T instance = null;
try {
String className = clazz.getName();
instance = (T) instances.get(className);
if (Objects.isNull(instance)) {
instance = clazz.newInstance();
instances.put(className, instance);
}
} catch (... | [
"private Object getPojoInstanceFor (Class clazz) \n throws InstantiationException, IllegalAccessException\n {\n Object instance = _pojoInstances.get(clazz);\n if (instance == null)\n {\n instance = clazz.newInstance();\n _pojoInstances.put(clazz, instance);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clean all HttpDatas (on Disk) for the current request. | @Override
public void cleanFiles() {
checkDestroyed();
factory.cleanRequestHttpData(request);
} | [
"public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}",
"public void clean() {\n\t\tserver.clearPersistentData();\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t}",
"public void clearAllData();",
"public void clearRequests() {\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load and return a saved snapshot of a board of Othello. | public Board.Snapshot load () {
try {
ObjectInputStream in =
new ObjectInputStream (
new FileInputStream (filename));
return (Board.Snapshot) in.readObject ();
} catch (Exception e) {
e.printStackTrace ();
throw new RuntimeException (e.getMessage ());
}
} | [
"public void saveBoard() {\n\t\tthis.history.push(this.board);\n\t}",
"BoardFramework copyBoard();",
"private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }",
"public Board getCopy() {\n\t\ttry {\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\tObjectOutputStrea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
NAME: getColumnsNameAndUnits() PURPOSE: Implement a Vector with all the fits columns name and Units INPUT PARAMETERS: None OUTPUT PARAMETERS: None. RETURN VALUE: Vector columnsName | public static Vector getColumnsNameAndUnits(String urlString) throws Exception {
URL fitsUrl = new URL(urlString);
Fits fitsFile = new Fits(fitsUrl, false);
BasicHDU[] hdus = fitsFile.read();
Vector columnsName = new Vector();
//process the primary HDU containing "image"
... | [
"public List<String> getColumnsName();",
"public String[] getColumnsName(ResultSet results) throws SQLException\n {\n ResultSetMetaData rsmd=results.getMetaData();\n int n=rsmd.getColumnCount();\n String[] names=new String[n];\n for(int i=1;i<=n;i++)\n {\n names[i-... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field771' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField771(java.lang.CharSequence value) {
validate(fields()[771], value);
this.field771 = value;
fieldSetFlags()[771] = true;
return this;
} | [
"public void setField771(java.lang.CharSequence value) {\n this.field771 = value;\n }",
"public void setField770(java.lang.CharSequence value) {\n this.field770 = value;\n }",
"public void setField71(java.lang.CharSequence value) {\n this.field71 = value;\n }",
"public void setField772(java.lang.C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read a boolean from a File by wrapping it using a RandomAccessFile. | public static boolean readBoolean(File file, boolean def) {
try (RandomAccessFile af = getRandomAccessFile(file)) {
return af.readBoolean();
} catch (IOException e) {
Slog.w(TAG, "Error reading file:" + file.getAbsolutePath(), e);
}
return def;
} | [
"public static void writeBoolean(File file, boolean b) {\n try (RandomAccessFile af = getRandomAccessFile(file)) {\n af.writeBoolean(b);\n } catch (IOException e) {\n Slog.w(TAG, \"Error writing file:\" + file.getAbsolutePath(), e);\n }\n }",
"public interface RandomA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a map of property name and descriptor for XPathexpression properties. | public Map<String, XPathPropertyDesc> getXPathProperties() {
return xPathProperties;
} | [
"public Map getProperties();",
"private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_noneValidation] = new PropertyDescriptor(\"noneValidation\", PredicateValidator.class,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the categoryParentId property. | public int getCategoryParentId() {
return categoryParentId;
} | [
"public Integer getParentCategory() {\n return parentCategory;\n }",
"public void setCategoryParentId(int value) {\n this.categoryParentId = value;\n }",
"@ApiModelProperty(value = \"Unique identifier of the parent category\")\n\n\n public String getParentId() {\n return parentId;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will get a sensor by name. | public Sensor getSensor(String sensorName)
{
for (Sensor sensor : this.sensors)
{
if (sensor.getName().equals(sensorName))
{
return sensor;
}
}
return null;
} | [
"public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Sensor getSensor(String uuid);",
"Sensor getSensor();",
"private MonitoredSensor ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invader Specific // Swaps the invaders images and clears destroyed invaders | protected void updateInvaders()
{
invaderCount = 0;
// Clear other invaders
for ( int i = 0; i < this.invaders.length; i++ )
for ( int j = 0; j < this.invaders[i].length; j++ )
if ( invaders[i][j] != null )
{
if ( invaders[i][j]... | [
"protected void fillInvaders()\n {\n // Hehe..\n SIinvader spacerInvader = new SItop( 0, 0 );\n invaderCount = 0;\n int spacingHorizontal = 5;\n int spacingVertical = 1;\n\n int middle = SI.width / 2;\n\n int x, y = (int) ( SI.height * 0.2 );\n for ( int i ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modele de la table Ip | public void remplireListeIp(){
bddIp.add("id");
bddIp.add("ip");
bddIp.add("nom");
bddIp.add("latence");
bddIp.add("etat");
bddIp.add("popup");
bddIp.add("mac");
bddIp.add("bdext_perte");
bddIp.add("port");
} | [
"DBPublicIp selectByPrimaryKey(String public_ip_id);",
"int getIp();",
"int getInIp();",
"protected ColumnSchema<GenericTableSchema, String> getIpaddrSchema() {\n return tableSchema.column(COL_IPADDR, String.class);\n }",
"public void setIp(String ip) {\n this.ip = ip;\n }",
"MbIp selectByPr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inform the Application to set the Stage to the Homepage | public void goToHomepage() {
stage.setScene(new Scene(homepagePresenter.getView()));
} | [
"public void showHomeScreen() {\n try {\n FXMLLoader loader1 = new FXMLLoader();\n loader1.setLocation(MainApplication.class.getResource(\"view/HomeScreen.fxml\"));\n AnchorPane anchorPane = (AnchorPane) loader1.load();\n rootLayout.setCenter(anchorPane);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
loads saved destination names from XML | public ArrayList<String> loadDestinations() {
Element root = doc.getRootElement();
ArrayList<String> destinations = new ArrayList<>();
for(Element destination : root.getChildren()){
String destinationStr = destination.getChild("name").getText()
+ "," + d... | [
"private void importLocation(IXMLElement xml) throws XMLFormatException{\n\t\tif (!xml.getName().equals(\"view\"))\n\t\t\tthrow new XMLFormatException(\"Root element must be <view>\");\n\t\tEnumeration children = xml.enumerateChildren();\n\t\twhile (children.hasMoreElements()){\n\t\t\tIXMLElement child = (IXMLEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Multiple rows are present, merge them into a single result set | private List<T> mergeResults( final Rows<R, C> result, final int maxSize ) {
if (logger.isTraceEnabled()) logger.trace( "Multiple rows have columns. Merging" );
final List<T> mergedResults = new ArrayList<>(maxSize);
for ( final R key : result.getKeys() ) {
final ColumnList<C... | [
"public boolean supportsMultipleResultSets() throws SQLException {\n return true;\n }",
"public boolean supportsMultipleResultSets()\n throws SQLException\n {\n return false;\n }",
"private List<Row> extractRows(QueryResultBundle results) {\r\n\t\tassertNotNull(results);\r\n\t\tassertNot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for a client. This contains a single method that allows the factory to pass a set of command line options to the client. | public interface ClientType {
/**
* Run the client, processing the specified options.
*
* @param options The options extracted from the command line.
*/
public void run(ClientOptions options);
} | [
"public void run(ClientOptions options);",
"public interface CommandLineProvider {\n CommandLine create();\n}",
"private static CommandLine getCommandLine(String[] args) {\n\t\tCommandLineParser parser = new DefaultParser();\n\n\t\t// create the Options\n\t\tOptions options = new Options();\n\t\toptions.addO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method called to forcefully update the dynamic information for the job linked to the given DynamicResourcesProperty. | private static synchronized void updateJobDynamicInfo(DynamicResourcesProperty property,
DynamicInfoData data) {
Map<?, ?> configWithoutJobReservation = getDynamicResConfig(property, data);
Set<Map<?, ?>> createResources = new HashSet<Map<?, ?>>();
Set<Map<?, ?>> consumeResources =... | [
"public static synchronized void updateJobDynamicInfoIfRequired(DynamicResourcesProperty property,\n DynamicInfoData data) {\n if(DynamicResourcesManager.getJobDynamicInfo(data.uniqueJobName) == null) {\n updateJobDynamicInfo(property, data);\n }\n }",
"public abstract void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Consulta los perfiles diponebles y libres para el usuario | @SuppressWarnings("unchecked")
private void cargarPerfiles(){
try{
sourceStr = new ArrayList<String>();
targetStr = new ArrayList<String>();
target = new ArrayList<Perfil>();
RequestDTO reqDTO=new RequestDTO(context);
reqDTO.setEntidadLocal(usuario);
ResponseDTO resp=usuarioServicio.co... | [
"public List<Perfil> perfilesBD() throws SQLException, ClassNotFoundException {\r\n List<Perfil> listaPerfiles = new ArrayList<>();\r\n \r\n //Iniciamos la conexion con la base de datos.\r\n try (Connection connection = getConnection()) {\r\n \r\n \tString sql = \"SEL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get number of empty tours in population | public int checkforNull() {
int notNull=0;
for(int a=0; a<populationSize();a++) {
if(getTour(a)!=null) {
notNull++;
}
}
return notNull;
} | [
"public int countNotEmpty() {\n\t\tint count = 0;\n\t\tfor (HexagonPos hexagonPos : hexagonsPos) {\n\t\t\tif (!(hexagonPos.getHexagon() instanceof Empty))\n\t\t\t\t++count;\n\t\t}\n\t\treturn count;\n\t}",
"public int size() {\n return population.length;\n }",
"public int countNPEs() { return npes.siz... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "feePlanData" element | void setFeePlanData(nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData feePlanData); | [
"public void setFeeAccrData(nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData feeAccrData)\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData target = null;\n target = (n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
post: Regardless of the given name's case, it should return true if the given name is in the kill ring. However, if the given name is not found in the kill ring then, it will return false . | public boolean killRingContains(String name) {
return containsName(frtKill, name);
} | [
"public boolean killRingContains(String name) {\r\n return checkName(killRing, name);\r\n }",
"public boolean killRingContains(String name) {\n AssassinNode current = poolFront;\n return contains(name, current);\n }",
"private boolean isNameUsed(final String name) {\n\t\tif(TextUtils.isE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'OBJECT'. | OBJECT createOBJECT(); | [
"Object createObject();",
"public static ObjectNode newObjectNode() {\n return objectMapper.createObjectNode();\n }",
"public T newObject()\n {\n T object = null;\n\n if (freeObjects.size() == 0)\n {\n object = factory.createObject();\n }\n else\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field391' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField391() {
field391 = null;
fieldSetFlags()[391] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField390() {\n field390 = null;\n fieldSetFlags()[390] = false;\n return this;\n }",
"private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the seeing value | public int getSeeing() { return seeing; } | [
"public int getValue() {\n\t\tlt.fetchSample(ltdata, 0);\n\t\tlightVal = (int) (ltdata[0] * 100);\n\t\treturn lightVal;\n\t\t\n\t}",
"public int getSeeing() {\n \n return seeing;\n \n }",
"public String getFaceValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the progress bar in 100ms | public static void updateProgressBar() {
mHandler.postDelayed(mUpdateTime, 100);
} | [
"public void updateProgressBar(double value);",
"private void updateProgress() {\n ((Activity)context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n progressBar.setProgress((int)Math.round(100*current_time/scan_period2));\n }\n });... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getAllDataSourceInstanceNames returns all data source instances | public static String[] getAllDataSourceInstanceNames()
{
int iLen = dataSource.size();
String[] instances = new String[iLen];
Enumeration<String> inst = dataSource.keys();
int i = 0;
while (inst.hasMoreElements())
{
instances[i] = inst.nextElement();
i++;
}
return instances;
} | [
"Set<DataSourceName> getDataSourceNames();",
"@Nonnull\r\n List<DataSource> getDataSources();",
"public List<DataSourceDescriptor> getDataSources()\n\t{\n\t\tList<DataSourceDescriptor> result = new ArrayList<DataSourceDescriptor>();\n\t\tresult.addAll(dataSources.values());\n\t\treturn result;\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the chapter local service. | public com.traintium.books.service.ChapterLocalService getChapterLocalService() {
return chapterLocalService;
} | [
"public com.traintium.books.service.ChapterService getChapterService() {\n\t\treturn chapterService;\n\t}",
"public LocalRichService getLocalRichService() {\n\t\treturn localRichService;\n\t}",
"LocalService getService() {\n\t return LocalService.this;\n\t }",
"LocalService getService() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if slice valid for current pizza. | public boolean isValid(Pizza pizza) {
//TODO check rectangularity
int mushroomsNumber = this.cells.stream()
.filter(cell -> cell.ingredient.equals(Ingredient.MUSHROOM))
.collect(Collectors.toList())
.size();
int tomatoesNumber = this.cells.stream()... | [
"private static boolean sliceIsValid(final int[] slice, final int flowOrderLength) {\n int consecutiveZeros = 0;\n for ( int key : slice ) {\n if ( key != 0 ) {\n consecutiveZeros = 0;\n } else {\n consecutiveZeros++;\n if ( consec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Native method to get capture devices pointers. | private native long[] getCaptureDevices(long ptr); | [
"public DSCaptureDevice[] getCaptureDevices()\r\n {\r\n if(devices == null)\r\n {\r\n long nativeDevices[] = getCaptureDevices(ptr);\r\n \r\n if(nativeDevices != null && nativeDevices.length > 0)\r\n {\r\n devices = new DSCaptureDevice[nativeDe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns PointState that is represented by provided value. | public static PointState decode(String value) throws Exception {
if(value.length() == 3) {
String color = value.substring(0, 1);
int quantity = Integer.parseInt(value.substring(1, 3));
return valueOf(Color.decode(color), quantity);
} else {
throw new Illeg... | [
"StateValue createStateValue();",
"public static TransactionState forValue(int value) {\n return values()[value];\n }",
"public static State valueOf(int value) {\n State entry = mValueToEnum.get(value);\n if (entry != null) {\n return entry;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
change chat room name | private void changeChatRoomName() {
changeChatRoomDialog = new AlertDialog.Builder(activity);
changeChatRoomDialog.setTitle(getString(R.string.em_chatroom_change_name));
final EditText editText = new EditText(activity);
editText.setText(chatRoom.getName());
changeChatRoomDialog.s... | [
"public void setRoomName(String room) {\n\t\t_roomName = room;\n\t\t_isRoom = true;\n\t\t_isType = false;\n\t}",
"public String getName()\n {\n return chatRoomName;\n }",
"public void writeUserMessage(String room, String name, String message) {\n ((GroupChatPanel)grouptabs.get(room)).writeU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
??2????failover?? Executor?? = ??????? | @Test
public void test_B_JavaJob() throws Exception {
AbstractSaturnIT.startExecutorList(2);
final int shardCount = 2;
final String jobName = "failoverITJobJava2";
failover(shardCount, jobName);
AbstractSaturnIT.stopExecutorListGracefully();
} | [
"boolean hasAutomaticFailover();",
"Executor asExecutor();",
"public void testBug6966() throws Exception {\n Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);\n props.setProperty(\"autoReconnect\", \"true\");\n props.setProperty(\"socketFactory\", \"testsuite.UnreliableSoc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log Boolean Value from JavaScript | @JavascriptInterface
public void getBoolean(Boolean check){
Log.i("BOOLEAN", check.toString());
} | [
"private static String htmlInputTruthValue(boolean b) {\n return b ? \"true\" : \"false\"; \n }",
"public static void logBooleanFunction(String name, String funcName, Object value, boolean isSuccess) {\r\n\t\tString str = \"[b]\" + name + \": \\t\" + funcName + \"(\" + value + \") => \" + isSuccess;\r\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Addded by Ebtesam write the result to .csv file | public void writeCSV() {
StringBuilder buf = new StringBuilder();
buf.append((int) taskStats.getN()).append(",")
.append((int) taskStats.getMin()).append(",")
.append((int) taskStats.getMean()).append(",")
.append((int) taskStats.getMax()).append(",");
buf.append((int) taskFoundStats.getN()).append(... | [
"public void exportToCSV();",
"public void generateCsvFile() {\n try {\n String outputFilePath = \"kettlebel-treninky.csv\";\n FileWriter writer = new FileWriter(outputFilePath);\n\n workouts.forEach((w) -> {\n \n w.getExercises().forEach((... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field tradeAccountId is set (has been assigned a value) and false otherwise | public boolean isSetTradeAccountId() {
return EncodingUtils.testBit(__isset_bitfield, __TRADEACCOUNTID_ISSET_ID);
} | [
"public boolean isSetAccountID() {\n return this.accountID != null;\n }",
"public boolean isSetAccount() {\n return this.account != null;\n }",
"public boolean isSetTargetAccountId() {\n return this.targetAccountId != null;\n }",
"public boolean hasAccountID() {\n return fieldSetFlags()[2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.SendHeartBeat sendHeartBeatMsg = 3; | edu.usfca.cs.dfs.StorageMessages.SendHeartBeat getSendHeartBeatMsg(); | [
"public void sendHeartbeat();",
"boolean hasSendHeartBeatMsg();",
"public void trackHeartRate();",
"boolean hasHeartBeatMsg();",
"HeartBeat.Req getHeartBeatReq();",
"edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg();",
"public void onHeartbeat(Event theEvent) { \n}",
"@Test\n public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. The scope of this search request. The `scope` is invalid if `include_org_ids`, `include_project_ids` are empty AND `include_gcp_public_datasets` is set to `false`. In this case, the request returns an error. .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQU... | @java.lang.Override
public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getScope() {
return scope_ == null
? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance()
: scope_;
} | [
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getScopeOrBuilder() {\n return scope_ == null\n ? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance()\n : scope_;\n }",
"public com.google.cloud.datacatalog.v1.SearchCat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spawn a new heal powerup with a certain size and with a specific texture. Used for testing. | public PowerupHeal(double size, Vector2f position, Texture texture) {
super(
size,
position,
texture
);
} | [
"public PowerupHeal(double size, Vector2f position) {\n super(\n size,\n position,\n new Texture(Gdx.files.getFileHandle(\"upgrades/heal.png\", Files.FileType.Local))\n );\n }",
"@Override\n public void createPowerUp() {\n SpeedBoost speedBoo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the error detail code. | @Nonnull public String getDetailCode() {
return errorDetailCode;
} | [
"public String getErrorcode() {return errorcode;}",
"public int getErrorCode() {\r\n\t\treturn ERROR_CODE;\r\n\t}",
"public int getErrorNumber();",
"String getErrorCode();",
"public int getInternalCode(){\n\t\tif (error != null)\n\t\t\treturn Integer.parseInt(error.get(\"code\").toString());\n\t\telse\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'orgId' field. | public void setOrgId(java.lang.String value) {
this.orgId = value;
} | [
"public com.fretron.Model.Equipment.Builder setOrgId(java.lang.String value) {\n validate(fields()[5], value);\n this.orgId = value;\n fieldSetFlags()[5] = true;\n return this;\n }",
"public com.fretron.Model.Employee.Builder setOrgId(java.lang.String value) {\n validate(fields()[1], v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes paths from given config instance. | public Config withoutPaths(@NonNull Config config, @NonNull String... paths) {
return withoutPaths(config, Arrays.asList(paths));
} | [
"public Config withoutPaths(@NonNull Config config, @NonNull Collection<String> paths) {\n // Config instance throws exception if we're querying keys/paths with reserved/invalid chars in it,\n // sanitize paths to remove\n val pathsToRemove = paths.stream()\n .filter(Objects::nonNull... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Admin() description of method: creates admin object parameters: int id, long contact, String name, String password returntype: Admin method Type: contructor authorName: Shubham version 1.0 | public Admin(int id, long contact, String name, String password) {
super();
this.id = id;
this.name = name;
this.password = password;
this.contact = contact;
} | [
"public Admin(String adminID){\n this.username_ID=adminID;\n this.name = \"\";\n this.age = 0;\n this.emailID = \"\";\n this.gender = \"\";\n this.nationality = \"\";\n this.contact = \"\";\n }",
"public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'And Join'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseAndJoin(AndJoin object) {
return null;
} | [
"public T caseAnd(And object) {\n\t\treturn null;\n\t}",
"public T caseAnd(And object)\n {\n return null;\n }",
"public T caseANDNodeExpression(ANDNodeExpression object)\n {\n return null;\n }",
"public T caseAndExpression(AndExpression object)\n {\n return null;\n }",
"public T caseLogicalAn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Open an InputStream to conditions data by name and type. To be found, the conditions data must exist as a resource on the classpath like: /[resourcePath]/[name].[type] It will throw an IOException if the conditions do not exist. | public InputStream open(String name, String type) throws IOException {
InputStream in = getClass().getResourceAsStream("/" + _resourcePath + "/" + name + "." + type);
if (in == null) {
throw new IOException("The conditions " + name + " of type " + type + " do not exist at path " + _resourcePath... | [
"protected InputStream openFileStream(ResourceType type, String path) {\n // Create full path\n String fullPath = type.makePath(path);\n\n // Check overrided\n if (!ResourceOverrides.isResourceOverrided(fullPath)) {\n // =null: failed to load resource pack file\n th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.object_detection.protos.ConvolutionalBoxPredictor convolutional_box_predictor = 1; | object_detection.protos.BoxPredictorOuterClass.ConvolutionalBoxPredictorOrBuilder getConvolutionalBoxPredictorOrBuilder(); | [
"object_detection.protos.BoxPredictorOuterClass.ConvolutionalBoxPredictor getConvolutionalBoxPredictor();",
"object_detection.protos.BoxPredictorOuterClass.WeightSharedConvolutionalBoxPredictor getWeightSharedConvolutionalBoxPredictor();",
"object_detection.protos.BoxPredictorOuterClass.MaskRCNNBoxPredictor get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add items to destination spinner | public void addItemsOnSpinnerDestination() {
spinnerDest = (Spinner) findViewById(R.id.spinnerDest);
List<BartMeLocation> list = SortedBartDistance.getSortedBartStations();
BartMeLocationArrayAdapter dataAdapter;
dataAdapter = new BartMeLocationArrayAdapter(this, R.layout.bartmelocation... | [
"public void addItemsOnSpinners() {\n spinnerFrom = findViewById(R.id.spinnerFrom);\n spinnerTo = findViewById(R.id.spinnerTo);\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item,\n currenciesName);\n dataAdapter.setD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleERequirementDefinitionBody" $ANTLR start "ruleERequirementDefinitionBody" InternalAADMParser.g:2424:1: ruleERequirementDefinitionBody : ( ( rule__ERequirementDefinitionBody__UnorderedGroup ) ) ; | public final void ruleERequirementDefinitionBody() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAADMParser.g:2428:2: ( ( ( rule__ERequirementDefinitionBody__UnorderedGroup ) ) )
// InternalAADMParser.g:2429:2: ( ( rule__ERequirement... | [
"public final void rule__ERequirementDefinitionBody__UnorderedGroup__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:23592:1: ( rule__ERequirementDefinitionBody__UnorderedGroup__Impl ( rule__ERequirementDefinitionBody_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method updates the given hike in the database. | public boolean updateHike(Hike hike) {
if (hikeDao.updateHike(hike) > 0) {
return true;
}
return false;
} | [
"public Hoppy update(Hoppy hoppy) throws DataAccessException;",
"public boolean editBike(Bike bike){//Edits the desired bike with matching bikeId\n if(!findBike(bike.getBikeId())){\n return false;\n //Bike_ID not registered in database, can't edit what's not there\n }else{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds everyone that has either sent a friend request to the user, or received one from them, that has not yet been accepted or declined. A map is used to encode the result. There will be two keys: "sent" and "received". Each of these points to a list of FriendRequest objects. | public static Map<String, List<FriendRequest>> getAllRequests(Context context) {
JSONObject data = getUserJson();
Map<String, List<FriendRequest>> result = new HashMap<>();
result.put("sent", new ArrayList<FriendRequest>());
result.put("received", new ArrayList<FriendRequest>());
... | [
"public Iterable<FriendRequest> getAllFriendRequest(){\r\n return repoFriendReguest.findAll();\r\n }",
"public List<FriendRequestVO> queryFriendRequestList(String acceptUserId);",
"java.util.List<com.cst14.im.protobuf.ProtoClass.User> \n getNewFriendRequestList();",
"public synchronized boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the users session mode. | void setSession(mode m); | [
"void setUserMode(UserMode userMode);",
"@Override\n public final void switchUserMode() {\n }",
"void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes);",
"public void setUserSessions(java.lang.Integer value);",
"public void setLoginMode(Integer loginMode) {\n this.loginMod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets whether the rotation is frozen. | boolean isRotationFrozen(); | [
"public boolean isFrozen() {\r\n return this.frozen;\r\n }",
"public boolean isFrozen() {\r\n return frozenFlag;\r\n }",
"public boolean isFrozen() {\n\n return frozen;\n\n }",
"public final boolean isFrozen() { return frozen; }",
"boolean isFrozen();",
"public boolean getFreezeTim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the user uuid of this e s f match type. | @Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _esfMatchType.getUserUuid();
} | [
"public String getUserUuid();",
"@Override\n\tpublic long getUserId() {\n\t\treturn _esfMatchType.getUserId();\n\t}",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ActionTaskLink actionTaskLink = getByKey(nIdProcess, sKey, nIdSubjectHolder); | @Transactional
@Override
public ActionTaskLink setActionTaskLink(Long nIdProcess, String sKey, Long nIdSubjectHolder) {
ActionTaskLink actionTaskLink = new ActionTaskLink();
if (actionTaskLink != null && actionTaskLink.getnIdProcess() != nIdProcess)
actionTaskLink.setnIdProcess... | [
"String getTaskId();",
"String activity_key () throws BaseException;",
"public String getActionId() {\n return actionId;\n }",
"public Action get(String key)\n\t{\n\t return actions.get(key);\n\t}",
"public String getTaskKey() {\n\t\treturn (taskKey == null) ? taskId : taskKey;\n \t}",
"int ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TRS_RPT_COLLATERAL_STATUS.ALLOCATED_OUTSTANDING_AMOUNT | public void setALLOCATED_OUTSTANDING_AMOUNT(BigDecimal ALLOCATED_OUTSTANDING_AMOUNT) {
this.ALLOCATED_OUTSTANDING_AMOUNT = ALLOCATED_OUTSTANDING_AMOUNT;
} | [
"public BigDecimal getALLOCATED_OUTSTANDING_AMOUNT() {\r\n return ALLOCATED_OUTSTANDING_AMOUNT;\r\n }",
"public void setALLOCATED_COLLATERAL_AMOUNT(BigDecimal ALLOCATED_COLLATERAL_AMOUNT) {\r\n this.ALLOCATED_COLLATERAL_AMOUNT = ALLOCATED_COLLATERAL_AMOUNT;\r\n }",
"public void setOutstandin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field lastJoinRequestAt is set (has been assigned a value) and false otherwise | public boolean isSetLastJoinRequestAt() {
return EncodingUtils.testBit(__isset_bitfield, __LASTJOINREQUESTAT_ISSET_ID);
} | [
"public boolean isSetJoinRequestCount() {\n return EncodingUtils.testBit(__isset_bitfield, __JOINREQUESTCOUNT_ISSET_ID);\n }",
"public boolean isSetLastUpdateTime() {\n return this.lastUpdateTime != null;\n }",
"public boolean isSetLastAccessTime() {\n return org.apache.thrift.EncodingUtils.testBit(_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the (script identifier, script instance object) pair from the scriptInstanceMap | public void removeScriptInstance(String scriptIdentifier) {
LOGGER.info("Removing the script instance identifier ["
+ scriptIdentifier + "]");
scriptInstanceMap.remove(scriptIdentifier);
} | [
"public void removeScript() {\n scriptHistory = null;\n }",
"public void removeWorldMapInstance(final int instanceId) {\r\n\t\tinstances.remove(instanceId);\r\n\t}",
"public static void remove(Script sc) {\r\n\t\tint tmp = scriptList.indexOf(sc);\r\n\t\tif (tmp != - 1) {\r\n\t\t\tscriptList.remove(tmp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save the primary language to the Shared Preferences | public void putPrimaryLanguage(String value){
editor.putString(PRIMARY_LANGUAGE, value);
editor.apply();
} | [
"public void saveLanguage(String language) {\r\n try {\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(ConstValue.PREFS_LANGUAGE, language);\r\n\r\n\r\n editor.apply();\r\n language = language.equalsIgnoreCase(\"es\") ? \"Spanis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update language set (asynchronously) Updates the specified language set with the parameters passed. | public CompletableFuture<LanguageSetDTO> updateLanguageSetAsync(Integer id, LanguageSetUpdateDTO languageSetUpdate) throws Exception, IdfyException {
Object localVarPostBody = languageSetUpdate;
// create path and map variables
String localVarPath = "/language-sets/{id}"
.replace... | [
"public void updateLanguage() {\n try {\n getUserTicket().setLanguage(EJBLookup.getLanguageEngine().load(updateLanguageId));\n } catch (FxApplicationException e) {\n new FxFacesMsgErr(e).addToContext();\n }\n }",
"java.util.concurrent.Future<UpdateBotLocaleResult> upd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called whenever the X axis length of the Board is needed. | public int getBoardXLength()
{
return board.size();
} | [
"public void setBoardSizeX(int boardSizeX);",
"void inBounds(int boardWidth) {\n if (getXCoord() >= boardWidth) {\n setXCoord(boardWidth - getHSpeed());\n } else if (getXCoord() < getHSpeed()) {\n setXCoord(0);\n }\n }",
"public int getXDimension() {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We need 3 RetailItem objects | public static void main(String[] args)
{
ArrayList<RetailItem> items = new ArrayList<RetailItem>();
for (int i = 0; i < 3; ++i)
items.add(new RetailItem());
// Populate the objects' fields with the given information
items.get(0).setFields("Jacket", 12, 59.95);
it... | [
"public void initiateRetailerDB() {\n\n\t\ttry {\n\t\t\tList<RetailerInventoryItem> rii = new ArrayList<RetailerInventoryItem>();\n\t\t\trii.add(new RetailerInventoryItem(productDB.get(0), \"oid1\",\n\t\t\t\t\tnew SimpleDateFormat(\"HH:mm:ss\").parse(\"12:45:20\"),\n\t\t\t\t\tnew SimpleDateFormat(\"HH:mm:ss\").pars... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends a splitted segment to the given StringBuilder. | public static void appendSplittedSegment(StringBuilder sb, List<String> fields, char fieldSeparator) {
for (String field : fields) {
sb.append(field).append(fieldSeparator);
}
for (int len = sb.length(); sb.charAt(--len) == fieldSeparator; ) {
sb.setLength(len);
... | [
"void appendSegment(SequenceSegment segment);",
"public static void appendSegments(StringBuilder sb, List<String> segments, int startIndex, int endIndex) {\r\n for (int i = startIndex; i < endIndex; ++i) {\r\n sb.append(segments.get(i)).append('\\r');\r\n }\r\n }",
"public void split... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the schemaVersion property: Schema version. | public Manifest setSchemaVersion(Integer schemaVersion) {
this.schemaVersion = schemaVersion;
return this;
} | [
"public void setSchemaVersion(int value) {\r\n this.schemaVersion = value;\r\n }",
"public void setSchemaVersion(int schemaVersion)\r\n\t{\r\n\t\tthis.schemaVersion = schemaVersion;\r\n\t}",
"SchemaReference setVersion(String version);",
"public void setMajorSchemaVersion(java.lang.Integer value) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ehr_person_file_condition.file_condition_id | public Long getFileConditionId() {
return fileConditionId;
} | [
"public void setFileConditionId(Long fileConditionId) {\n this.fileConditionId = fileConditionId;\n }",
"public int getIdFile()\n {\n return this.idFile;\n }",
"public Integer getFileid() {\n return fileid;\n }",
"public String getFileId() {\n return fileId;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column GL_TYPE_TEMPLATE.CLT_SL_NO | public BigDecimal getCLT_SL_NO() {
return CLT_SL_NO;
} | [
"public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }",
"public void setCLT_SL_NO(BigDecimal CLT_SL_NO) {\r\n this.CLT_SL_NO = CLT_SL_NO;\r\n }",
"public java.lang.Long getPRPSLLNCOSTTYPID() {\n return PRPSL_LN_COST_TYP_ID;\n }",
"public java.lang.Long getPRPSLLNCOSTTYPID() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the message has a global TTL grater than 0. At least one parameter has a TTL greater than 0. | public boolean hasTTL() {
removeZeroTTL();
return parameterEntries.size() > 0;
} | [
"public boolean isValidToSend() {\n\t\treturn (isValid() && this.ttl > 0);\n\t}",
"public boolean hasTTL() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"hasTTL() \");\n Via via=(Via)sipHeader;\n return via.hasParameter(Via.TTL);\n }",
"public boolean isSetTtl() {\n return EncodingU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased killbill.qualpay_payment_methods table reference | public QualpayPaymentMethods(String alias) {
this(alias, QUALPAY_PAYMENT_METHODS);
} | [
"public QualpayPaymentMethods() {\n this(\"qualpay_payment_methods\", null);\n }",
"public static String getPaymentMethods(String account){\n return \"select pm_method from payment_methods where pm_account = '\"+account+\"'\";\n }",
"void encodeTableAlias(final String raw, final StringBuilde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |