query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This is a Single Threaded matrix multiply. Takes in a matrix and multiplies itself by it so (this x b) | public Matrix multiply(Matrix b){
} | [
"public static Vector multiply(Matrix a,\n Vector x) {\n\n MultiplyThread[] threads =\n new MultiplyThread[THREADS_COUNT];\n int rowsCount = a.n();\n int rowsPerThread = rowsCount / THREADS_COUNT;\n int rowsRest = rowsCount % THREADS_COUNT;\n\n Vector y = new Vector(rowsCount);\n\n for (in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the descripcion mapa gmm. | public String getDescripcionMapaGmm() {
return descripcionMapaGmm;
} | [
"public String getMapDesc() {\n\t\treturn this.mapDesc;\n\t}",
"java.lang.String getDescription();",
"public java.lang.String getDescripcion();",
"public void setDescripcionMapaGmm(String descripcionMapaGmm) {\r\n\t\tthis.descripcionMapaGmm = descripcionMapaGmm;\r\n\t}",
"String getDescriptionPanne();",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get default task executor instance with asynchronous task execution in single thread. | protected abstract T getAsynchronousSingleThreadTaskExecutor(); | [
"protected abstract T getSynchronousTaskExecutor();",
"@Override\n public Executor getAsyncExecutor() {\n int size = 5;\n logger.log(Level.INFO, \":: CONFIGURING EXECUTORSERVICE - {0} THREADS ::\", size);\n return Executors.newFixedThreadPool(size);\n }",
"public abstract java.util.co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the desktop's task bar. | public TaskBar getTaskBar() {
if (taskBar == null) {
taskBar = new TaskBar();
}
return taskBar;
} | [
"public float getTaskbarLocation() {\n\t\treturn playFieldMaxValues[0] * 0.85f;\n\t}",
"Desktop getDesktop()\r\n {\r\n return Desktop.getDesktop();\r\n }",
"Desktop getDesktop();",
"protected Window getStatusBar() {\r\n \treturn statusBar;\r\n }",
"public SystemTray getSystemTray() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Exit action for state 'ActivateAlarm'. | private void exitAction_main_region_digitalwatch_Alarm_ActivateAlarm() {
timer.unsetTimer(this, 18);
sCILogicUnit.operationCallback.setAlarm();
sCIDisplay.operationCallback.refreshAlarmDisplay();
} | [
"private void exitSequence_main_region_digitalwatch_Alarm_ActivateAlarm() {\n\t\tnextStateIndex = 7;\n\t\tstateVector[7] = State.$NullState$;\n\t\t\n\t\texitAction_main_region_digitalwatch_Alarm_ActivateAlarm();\n\t}",
"private void exitSequence_main_region_digitalwatch_Alarm() {\n\t\tswitch (stateVector[7]) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the DropTargetDropEvent of the drop event. take a look at the documentation at api/java/awt/dnd/DropTargetDropEvent | public DropTargetDropEvent dropTargetDropEvent() {
return _myDropTargetDropEvent;
} | [
"public DropTarget getDropTarget() {\r\n\r\n\t\treturn this.dropTarget;\r\n\t}",
"public DropTarget getDropTarget()\r\n {\r\n return this.defaultDropTarget;\r\n }",
"@Override\n\tpublic void drop(DropTargetDropEvent e) {\n\t\tgetContainerDelegate().removeFromPlaceHolderVisibleRequesters(getTargetCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the maxiumum numbers of round in a game. | public GameSettingBuilder setMaxRound(int maxRound) {
this.maxRound = maxRound;
return this;
} | [
"public void setMaxRoundsPerBattle(int value) {\n this.maxRoundsPerBattle = value;\n }",
"public void setMaxNum(int maxNum){\r\n this.maxNum = maxNum;\r\n }",
"public int getMaxRound() {\n return maxRound;\n }",
"public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the last y coordinate of the mouse | public void setLastY(int lastY) {
this.lastY = lastY;
} | [
"@Override\n public void setY(int y) {\n lastPosY = this.getY();\n this.y = y;\n calculateMovementVector();\n }",
"public void setOriginalY(int y){\r\n originalY = y;\r\n }",
"public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordina... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies a range of rows to retrieve based on a starting row key and retrieves up to limit rows. Each row is passed to the supplied DataScanner. | public void ScanRows(String startDate, String symbol,
int limit, DataScanner scanner) throws IOException {
ResultScanner results = null;
try (Connection conn = ConnectionFactory.createConnection(config)){
// Get the table
Table table = conn.getTable(TableName.valueO... | [
"public ColumnRangeQueryRSD(CFMetaData cfMetaData, OperandDef rowKey, int offset, int limit)\n {\n cfMetaData_ = cfMetaData;\n rowKey_ = rowKey;\n superColumnKey_ = null;\n offset_ = offset;\n limit_ = limit;\n }",
"public ColumnRangeQueryRSD(C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if user has permission for given role as string and project as entity | boolean hasPermission(UserEntity userEntity, ProjectEntity projectEntity, String role); | [
"boolean canUserAccessProject(long userId, int projectId);",
"String checkUserAccessOnProject(Long id, String username);",
"AuthorizationQuery hasPermission(Permission permission);",
"private Boolean hasAccess() {\n String appContextPath = this.getApplicationContextPath();\n logger.info(\"appContext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the registro_checkin table that match the criteria 'FECHA_HORA = :fechaHora'. | public RegistroCheckin[] findWhereFechaHoraEquals(Date fechaHora) throws RegistroCheckinDaoException; | [
"public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getTelf method, of class DatosProveedor1. | @Test
public void testGetTelf() {
System.out.println("getTelf");
DatosProveedor1 instance = new DatosProveedor1();
String expResult = "";
String result = instance.getTelf();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default... | [
"@Test\n\tpublic void testInfoProveedor() throws Exception {\n\t\tSystem.out.println(\"infoProveedor\");\n//DTUsuario(\"jorge2\", \"N1\", \"A1\", \"jorge2@gmail.com\", null, new Date(1992, 11, 10))\n\t\tctrlUsuarios.seleccionarProveedor(\"jorge2\");\n\t\tDTProveedor result = ctrlUsuarios.infoProveedor();\n\t\tasser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method inserts a liveStock object into the liveStock table. | public void insert(){
String query = "INSERT INTO liveStock(name, eyeColor, sex, type, breed, "
+ "height, weight, age, furColor, vetNumber) "
+ "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ";
try {
PreparedStatement prepareStatement = conn.prepareStatement(query);
prepareStatement.setString(... | [
"LiveStockDatabase(LiveStock liveStock){\r\n\t\tthis.liveStock = liveStock;\r\n\t}",
"void insertOrUpdate(StockList stockList) throws Exception;",
"stockFilePT102.StockDocument.Stock insertNewStock(int i);",
"public Stock createStock(Stock stock){\n this.open();\n ContentValues stockEntry = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contains the interface for functions that are used to convert a Ds3Type into the Type model within Type Generators | public interface TypeModelGeneratorUtils {
/**
* Converts a list of Ds3EnumConstants into a list of Enum Constants
*/
ImmutableList<EnumConstant> toEnumConstantsList(final ImmutableList<Ds3EnumConstant> ds3EnumConstants);
/**
* Converts a list of Ds3Elements into a list of NetNullableVariab... | [
"public interface DataConverter<JAVATYPE,METATYPE extends FieldDefinition> {\n /** Method invoked for a single JAVATYPE */\n JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE List. This can be used to alter the list length / add / remove elements after processi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set accessor for persistent attribute: id_trasoba | public abstract void setId_trasoba(java.lang.Long newId_trasoba); | [
"public abstract java.lang.Long getId_trasoba();",
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public void setIdroteiro(int pIdroteiro){\n this.idroteiro = pIdroteiro;\n }",
"public void setIdMotivo(int value) {\n this.idMotivo = value;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method takes in the bodyline and keeps appending it to the messagebody string builder if it is valid | private StringBuffer generateBody (String bodyLine, StringBuffer messageBody) {
if (requestIsValid){
messageBody = HttpRequestGenerator.generateBody(bodyLine, messageBody);
return messageBody;
}
/**
* we then return the string builder
*/
return n... | [
"public static StringBuffer generateBody(String bodyLine, StringBuffer messageBody) {\n messageBody.append(bodyLine).append(\"\\n\\r\");\n\n /**\n * returning the string buffer with the appended string\n */\n return messageBody;\n }",
"PulseEmailBuilder body(String body);",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
rpc ping2(.hadoop.common.EmptyRequestProto) returns (.hadoop.common.EmptyResponseProto); | public abstract void ping2(
com.google.protobuf.RpcController controller,
org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,
com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done); | [
"public abstract void ping2(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);",
"public abstract void ping(\n c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the normalized vector from this point to another specified point. | public Vector3D getNormalizedVectorTo(Point3D p) {
Vector3D result = new Vector3D(p.getX() - this.getX(), p.getY()
- this.getY(), p.getZ() - this.getZ());
return result.normalize();
} | [
"public Vector normalize() {\n if(this.vectorLengthSquared() > 0)\n return new Vector(this.getX() / this.vectorLength(), this.getY() / this.vectorLength());\n else\n return this;\n }",
"public Vector2d normalize()\n\t{\n\t\treturn new Vector2d(X/getLength(), Y/getLength());\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes the funds transfer from withdraw acct to deposit acct based on value the user inputs. Resets the transfer amt to "" Updates the current balance string | private void makeTransfer(String withdrawAmt, String depositAcct){
//assume this will come as numbers only (Keyboard restricted to numbers)
Double transferAmt = Double.valueOf(withdrawAmt);
//make transfer
customer.transferFund(currAcctName, depositAcct, transferAmt);
//reset t... | [
"public void deposit(int amt) {\n balance = balance + amt;\n }",
"public void transactWithdraw() {\r\n\t\tif(!login) {\r\n\t\t\tSystem.out.println(\"ERROR: You must LOGIN before you can perform a transaction.\");\r\n\t\t\tverifyCustomer();\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Enter the amount to withd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TRS_SYN_SETLMT_ACC.OLD_VALUE_DATE | public void setOLD_VALUE_DATE(Date OLD_VALUE_DATE) {
this.OLD_VALUE_DATE = OLD_VALUE_DATE;
} | [
"public Date getOLD_VALUE_DATE() {\r\n return OLD_VALUE_DATE;\r\n }",
"public void setVALUE_DATE(Date VALUE_DATE)\r\n {\r\n\tthis.VALUE_DATE = VALUE_DATE;\r\n }",
"public void setVALUE_DATE(Date VALUE_DATE) {\r\n this.VALUE_DATE = VALUE_DATE;\r\n }",
"public void setARRIVAL_AT_LOC_DA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "rel_op_ne" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:770:1: rel_op_ne : ( STR_OP_NE | NUM_OP_NE ); | public final AstValidator.rel_op_ne_return rel_op_ne() throws RecognitionException {
AstValidator.rel_op_ne_return retval = new AstValidator.rel_op_ne_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
CommonTree _first_0 = null;
CommonTree _last = null;
... | [
"public final QueryParser.rel_op_ne_return rel_op_ne() throws RecognitionException {\n QueryParser.rel_op_ne_return retval = new QueryParser.rel_op_ne_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token set645=null;\n\n Object set645_tree=null;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This fallback API mock will be used if the real service fails. | private RatingServiceApi getRatingServiceApiFallback() {
// This fallback mock will be used if the real rating-service fails.
// The fallback service returns an empty list instead of the ratings.
return new RatingServiceApi() {
@Override
public List<RatingResponse> getRat... | [
"@Test\n public void fallbackMethodTest() {\n String result = fallbackBean.demonstrateFallbackMethod(true);\n Assert.assertTrue(\"Did not get the expected result\", result.equals(FallbackBean.expectedResponse));\n }",
"@Test\n public void fallbackHandlerTest() {\n String result = fal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the phone orders from the repository. | public void clearPhoneOrders() {
phoneOrders.clear();
} | [
"boolean deleteOrder(Order order);",
"void deleteOrder(Long orderId);",
"public Order delete(Order order);",
"public void deleteSavedOrder(long id);",
"private void deleteAllOrders() {\n if (mCursorAdapter != null && !mCursorAdapter.isEmpty()) {\n // Delete all orders, returning the number... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method to draw a selector point at the specified coordinates. A selector point is a visual representation of a point that the user can interact with the shape. A white circle will be painted with a blue selector colour border. | public static void drawSelectorPoint(Graphics2D g, int x, int y) {
g.setStroke(new BasicStroke(2));
g.setColor(Color.WHITE);
g.fillOval(x - 4, y - 4, 8, 8);
g.setColor(Shape.SELECTOR_COLOUR);
g.drawOval(x - 4, y - 4, 8, 8);
} | [
"public static void drawSelectorPoint(Graphics2D g, double x, double y) {\n g.setStroke(new BasicStroke(2));\n g.setColor(Color.WHITE);\n g.fill(new Ellipse2D.Double(x - 4, y - 4, 8, 8));\n\n g.setColor(Shape.SELECTOR_COLOUR);\n g.draw(new Ellipse2D.Double(x - 4, y - 4, 8, 8));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a random password. | public static String generatePass(){
String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,
StringBuilder::appendCodePoint, StringBuilder::append)
.toString();
return password;
} | [
"public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.len... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks my tasks for newly created task if i'm potential owner. Expects "user1" on potential owners list. | @Test
public void testGetMyTasks_ByPotentialOwner() throws HTException {
log.info("testGetMyTasks_ByPotentialOwner");
Task t = createTask_OnePotentialOwner();
List<Task> results = this.services.getMyTasks("user1", TaskTypes.ALL,
GenericHumanRole.POTENTIAL_OWNERS, n... | [
"@Test\n public void testGetMyTasks_ByOwner() throws HTException {\n\n Task t = createTask_OnePotentialOwner();\n\n List<Task> results = services.getMyTasks(\"user1\", TaskTypes.ALL,\n GenericHumanRole.ACTUAL_OWNER, null,\n new ArrayList<Status>(), null, null, null, nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the given file is executable. On Unix, this checks the file permission bits. On Windows, it checks whether the file extension is that of an executable file. | public static boolean isExecutable(final File file) {
if (runningOnWindows()) {
return isExecutableWindows( file );
} else {
// Assume a UNIX flavour.
return isExecutableUnix( file );
}
} | [
"@Override\n public boolean isExecutable(File f) {\n return true;\n }",
"public boolean isExecutable(){\n return (this.mType == PegasusFile.EXECUTABLE_FILE);\n }",
"protected boolean isExecutable(Path path)\r\n {\r\n if (path.getParent() != null)\r\n {\r\n Path parent =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint64_t SocketDescriptor_hash LDKSocketDescriptor NONNULL_PTR this_arg | public static native long SocketDescriptor_hash(long this_arg); | [
"public static native byte[] OpenChannel_get_chain_hash(long this_ptr);",
"public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);",
"public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);",
"public static native void OpenChannel_set_chain_hash(long thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the text input type of the prompt | public SuperDialog promptTextInputType(int inputType) {
this.promptTextInputType = inputType;
if (isShown) {
changePromptTextInputType(inputType);
}
return this;
} | [
"public void setInputPrompt(String inputPrompt) {\n\t\tgetInternalField().setPlaceholder(inputPrompt);\n\t}",
"public MFXPasswordFieldOptions promptText(String promptText) {\n this.promptText = promptText;\n return me();\n }",
"public void reset()\n\t{\n\t\tString prefix = \"Type \";\n\t\tStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method which test the good reordering of a list when we insert an application in the middle of the list | public void testCreateListOrderOnInsertMiddle( )
{
_myAppsToInsert.setIdApplication( APPLICATION_ID_3 );
_myAppsToInsert.setApplicationOrder( APPLICATION_ORDER_2 );
List<Integer> listCurrentOrder = Arrays.asList( APPLICATION_ID_2, APPLICATION_ID_1 );
List<Integer> listExpectedResult... | [
"public void testCreateListOrderOnModifyMiddle( )\n {\n _myAppsToInsert.setIdApplication( APPLICATION_ID_3 );\n _myAppsToInsert.setApplicationOrder( APPLICATION_ORDER_2 );\n\n List<Integer> listCurrentOrder = Arrays.asList( APPLICATION_ID_3, APPLICATION_ID_2, APPLICATION_ID_1 );\n Lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for Attribute5, using the alias name Attribute5. | public String getAttribute5() {
return (String)getAttributeInternal(ATTRIBUTE5);
} | [
"public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }",
"public String getAttribute5() {\r\n return (String)getAttributeInternal(ATTRIBUTE5);\r\n }",
"public String getAttr5() {\n return attr5;\n }",
"public String getIntAttribute5() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
changeString method changes the occurencies of oldString by newString in aString | public String changeSubstring(String aString, String oldString, String newString) throws Exception {
this.baseString = aString;
return changeSubstring(oldString, newString);
} | [
"public String changeSubstring(String oldString, String newString) throws Exception {\n this.currentPosition = 0;\n\n while (hasMoreOccurrences(oldString))\n {\n String auxString = baseString.substring(0, currentPosition);\n auxString = auxString + newString;\n auxString = auxString + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TRSDEAL_PROMISSORY_FX.BROKER_CODE | public void setBROKER_CODE(BigDecimal BROKER_CODE)
{
this.BROKER_CODE = BROKER_CODE;
} | [
"public void setBROKER_CODE(BigDecimal BROKER_CODE) {\r\n this.BROKER_CODE = BROKER_CODE;\r\n }",
"public BigDecimal getBROKER_CODE()\r\n {\r\n\treturn BROKER_CODE;\r\n }",
"public BigDecimal getBROKER_CODE() {\r\n return BROKER_CODE;\r\n }",
"public void setBd_code(int Bd_code) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers a mouse click listener (can be only one). | public void setMouseClickListener(MouseClickListener listener) {
mouseClickListener = listener;
} | [
"void addMouseListener(MouseListener mouseListener);",
"public void addMouseListener(MouseInputAdapter mouseInputAdapter);",
"protected void addMouseListener() {\n _mouseListener = new MouseHandler();\n _array.addMouseListener(_mouseListener);\n }",
"void addMouseListener(MouseListener ml);",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs the cache Entry with given name. | public Entry(String n)
{
name = n;
} | [
"public Entry(String name) {\n this.name = name;\n this.isDirectory = true;\n }",
"Cache createCacheFromName(String name) {\n CacheConfiguration cacheConfiguration = null;\n Set cacheConfigurations = configuration.getCacheConfigurations().entrySet();\n for (Iterator iterator ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: adam_apple | public void setAdamApple (java.lang.String adamApple) {
this.adamApple = adamApple;
} | [
"public void addApple(){\n this.food = this.food + 50;\n }",
"public java.lang.String getAdamApple () {\n\t\treturn adamApple;\n\t}",
"public void setName() {\r\n\tapplianceName = \"Dishwasher\";\r\n}",
"public void setApplicationVariable(String name, CompositeData appVar) throws InvalidAttributeVal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AtomicDomainSpecificEvent__Group_7_2__1__Impl" $ANTLR start "rule__AtomicDomainSpecificEvent__Group_7_2__2" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2879:1: rule__AtomicDomainSpecificEvent__Group_7_2__2 : rule__AtomicDomainSpecificEvent__Group_7_2__2... | public final void rule__AtomicDomainSpecificEvent__Group_7_2__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2883:1: ( rule__AtomicDomainSpecificEvent__G... | [
"public final void rule__AtomicDomainSpecificEvent__Group_7__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2787:1: ( rule__AtomicDomainSpecif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the COM property "SmallGrid" | @VTID(102)
boolean getSmallGrid(); | [
"Grid getGrid() { return grid; }",
"public CellGrid getGrid() {\n return grid;\n }",
"public Grid getGrid() {\n return grid;\n }",
"public GameGrid getGrid(){\n return grid;\n }",
"public Grid grid() { return grid; }",
"public final SmileSurfaceDataBundle getGridData() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the image depending on what is set up in SlidingTilesBoard. | private Bitmap getImage() {
if (SlidingTilesBoard.getIMAGE().equals("American Pie")) {
return BitmapFactory.decodeResource(getResources(), R.drawable.american_pie);
} else if (SlidingTilesBoard.getIMAGE().equals("U of T")) {
return BitmapFactory.decodeResource(getResources(), R.d... | [
"public Image getImage(){\n if (activeShields){\n return GameGUI.ENEMY_SPACESHIP_IMAGE_SHIELD;\n }\n return GameGUI.ENEMY_SPACESHIP_IMAGE;\n }",
"public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
loadTrackWithTrackID:completionHandler: Loads an instance of AVCompositionTrack that represents the track of the specified trackID. | @Generated
@Selector("loadTrackWithTrackID:completionHandler:")
public native void loadTrackWithTrackIDCompletionHandler(int trackID,
@NotNull @ObjCBlock(name = "call_loadTrackWithTrackIDCompletionHandler") Block_loadTrackWithTrackIDCompletionHandler completionHandler); | [
"@Nullable\n @Generated\n @Selector(\"trackWithTrackID:\")\n public native AVCompositionTrack trackWithTrackID(int trackID);",
"public void loadWayPointsByTrack(final String trackID) {\r\n\t\tif (trackID.equals(\"\")) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBkitPoma.startLoading(\"Loading...\");\r\n\t\tcurren... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remote interface for QrtzCronTriggersFacade. | @Remote
public interface QrtzCronTriggersFacadeRemote extends UtopiaBasicUsecaseBean<QrtzCronTriggers, QrtzCronTriggers>{
} | [
"public interface ITriggerEngine\r\n{\r\n /**\r\n * This method gets the trigger for the current engine.\r\n *\r\n * @return The trigger for the current engine.\r\n */\r\n ITrigger getTrigger();\r\n\r\n /**\r\n * This method will handle the trigger to see if this message matches the cu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disables the tension motor if it falls outside of it's limits. | public void tensionRangeCheck(){
if(motor.get() < 0){
if(Bottom_Limit_Switch.get() | tenPot.pidGet()> tenPotMAX ){
motor.set(0.0);
}
}else if(motor.get() > 0){
if(Top_Limit_Switch.get() | tenPot.pidGet()< tenPotMIN){
motor.set(0.0);
... | [
"public void enforceLimits() {\n if (isUprightLimitReached() || isInvertedLimitReached()) {\n rotate.setPosition(0.5D);\n Log.d(LOG_TAG, \"rotation limits reached, stopping servo\");\n }\n }",
"@Override\n public void checkAllowed(){\n if (balance < MAX_AMOUNT){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compareFTPFiles > this method is to compare the files only in current src & destination directorys | public static void compareFTPFiles(String compPath1,String compPath2,String fileName) throws IOException{
/*if(fileName.equals("same.txt")){
System.out.println();
}*/
FTPClient ftpCon1=Ftp.getFTPConnection();
FTPClient ftpCon2=Ftp.getFTPConnection();
InputStream inSR=ftpCon1.retrieveFileStream(compPath... | [
"public static void compareFTPFilesDirectory(String dir1,String dir2) throws SocketException, IOException{\n\n\t\t\n\t\tArrayList<FTPFile> arrayDir1Files=new ArrayList<>();\n\t\tarrayDir1Files.addAll(getFTPFilesList(dir1));\n\t\tArrayList<FTPFile> arrayDir2Files=new ArrayList<>();\n\t\tarrayDir2Files.addAll(getFTPF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of isMarkedForDeletion method, of class Comment. | @Test
public void testIsMarkedForDeletion() {
System.out.println("isMarkedForDeletion");
Comment instance = testComment;
boolean expResult = false;
boolean result = instance.isMarkedForDeletion();
assertEquals(expResult, result);
} | [
"@Test\n public void testDelete() {\n System.out.println(\"delete\");\n Comment instance = new Comment(\"Test Komment 2\", testCommentable, testAuthor);\n instance.delete();\n \n assertFalse(testCommentable.getComments().contains(instance));\n assertFalse(testAuthor.getC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the request handler instance | public static RequestHandler getInstance() {
Log.d(TAG, "get request handler instance");
if (requestHandler == null) {
throw new IllegalStateException("request handler instance not initialized yet");
}
return requestHandler;
} | [
"public Handler getHandler();",
"@Nullable\n RequestHandler getHandler(@NonNull HttpRequest request);",
"public Handler getHandler() {\r\n return handler;\r\n }",
"public JingleRequestHandler getRequestHandler()\n {\n return requestHandler;\n }",
"protected Object getHandle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test client id and intra link generation (single graphml file) | @Test
public void testIdGenClient()
{
gen.generateUniqueIdsForGraphmlFile(GraphMLProcessor.SC_ID_PREFIX);
} | [
"@Test\n\tpublic void testIdGenMultipleFilesClient() \n\t{\n\t\tString folder2 = \"C:\\\\Users\\\\Ildi\\\\Dropbox\\\\PhD\\\\SharedBackup\\\\Change detection\\\\constraints\\\\Example graphs\";\n\t\tgen.generateUniqueIdsForMultipleGraphmlFiles(GraphMLProcessor.SC_ID_PREFIX, folder2);\n\t}",
"public void testAdding... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the feeName value for this MonthFeeQueryVO. | public java.lang.String getFeeName() {
return feeName;
} | [
"@ApiModelProperty(value = \"The name of the predefined fee\")\n public String getName() {\n return name;\n }",
"public Integer getFeeNameUid() {\n return feeNameUid;\n }",
"public void setFeeName(java.lang.String feeName) {\n this.feeName = feeName;\n }",
"public String getMe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a custom properties from UserDetailsJsonWebTokenAbstract to Json Web Token | protected void addCustomPropertiesUserDetailsToJwt(UserDetailsJsonWebTokenAbstract authTokenDetailsDTO,
JwtBuilder jBuilder) {
// Empty Properties
} | [
"protected UserDetailsJsonWebTokenAbstract addCustomPropertiesClaimsToUserDetails(Claims claims) {\n\n // Empty Properties\n return new UserDetailsJsonWebTokenTo();\n }",
"User getUserDetails(String token);",
"@Override\n\tpublic String generateJwtToken(UserDetails userDetails) {\n\t\treturn jwtUtil.gene... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to start the running of the program. This is invoked by the SyntaxVerifier class. Once the syntax is totally verified, it calls this method and if the syntax is fine it starts the program. | public void runProgram() {
if (isSyntaxChecked()) {
// panelDebugArea1.getTextArea().setText("");
this.setPause(false);
try {
// Precisa adicionar o Swingworker em uma nova thread para que ele execute!!
// Vai entender.
// Duas ... | [
"public void start() {\n try (BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in, \"UTF-8\"))) {\n String text;\n while ((text = br.readLine()) != null) {\n List<String> words = parseArgs(text);\n if (words.size() == 0) {\n continue;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Entry Point'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseEntryPoint(EntryPoint object) {
return null;
} | [
"public Point getEntryPoint() {\n\t\treturn entryPoint;\n\t}",
"public Point getExitPoint() {\n\t\treturn exitPoint;\n\t}",
"public T casePoint(Point object)\n {\n return null;\n }",
"public T caseRuntimeEntry(RuntimeEntry object)\n {\n return null;\n }",
"public T casePoint(Point object) {\n\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read rule from .json file. | public boolean init() {
try {
rule_obj = (JSONObject) parser.parse( new InputStreamReader(new FileInputStream(rule_path), "UTF-8"));
System.out.println("[Read Rule Success]");
return true;
} catch (ParseException | IOException e) {
// TODO Auto-generated catch block
System.out.println("[DeviceRule.ja... | [
"public void readRules( String filename ) {\r\n\t\ttry {\r\n\t\t\ts.readRules(filename);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static ISpecification<String> createRuleFromJson2(JSONObject jsonRule) throws Exception {\n\t\tISpecification<String> rule = null;\n\t\tLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a has_consequence property value. | void removeHas_consequence(Consequence oldHas_consequence); | [
"void graphRemoveProperty( int propertyKey );",
"boolean clearProperty(String tcProperty);",
"PropertiesTask removeProperty( String key );",
"public TransformedServiceReference<S> removeProperty(String name);",
"void relRemoveProperty( long relId, int propertyKey );",
"Property removeValue(PropertyValue<?... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Active la capacite d'une carte. | public void activerCapaciteCarte(Carte carte) {
carte.activerCapacite();
} | [
"public void seSacrifier(){\n\t\tif (!Partie.getInterfaceGaphiqueActive()) {\n\t\t\tutiliserCapacite1();\n\t\t}else{\n\t\t\tutiliserCapacite2();\n\t\t}\n\t}",
"Activite getActiviteCourante();",
"@Override\n\tpublic int getCapacite() {\n\t\t// TODO Auto-generated method stub\n\t\treturn capacite;\n\t}",
"int g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.build_event_stream.TargetComplete completed = 8; | com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TargetComplete getCompleted(); | [
"com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TargetCompleteOrBuilder getCompletedOrBuilder();",
"com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.TargetCompletedId getTargetCompleted();",
"com.google.devtools.build.lib.buildeventstream.BuildEventStream... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
restocks all the chance cards | public void restockChanceCards() {
Globals.chanceList.add(new AdvanceToXSquare(0));
Globals.chanceList.add(new AdvanceToXSquare(24));
Globals.chanceList.add(new AdvanceToXSquare(11));
Globals.chanceList.add(new AdvanceToType(2, 10));
Globals.chanceList.add(new AdvanceToType(1, 2)... | [
"public void discard(){\n\t\tint rand1, cardsDiscarded=0;\n\t\t//Cycles through the hand and decides whether to discard the card or not\n\t\tfor(int x=HandOfCards.HANDSIZE-1;x<0;x--){\n\t\t\t//The max number of cards that can be returned is 3\n\t\t\tif(cardsDiscarded==3){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List Competitions Returns a list of Competitions (i.e., World Cup 2013) associated with the markets selected by the MarketFilter. Currently only Football markets have an associated competition. | public List<ListCompetitionResult> listCompetitions() throws BetfairException {
return this.listCompetitions(new MarketFilter());
} | [
"public List<ListCompetitionResult> listCompetitions(MarketFilter filter) throws BetfairException {\n return this.makeRequest(ApiOperation.LIST_COMPETITIONS, filter);\n }",
"public List<ObjectId> getCompetitionList() {\n return(new ArrayList<ObjectId>(competitions.keySet()));\n }",
"@GetMapping(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A map of Concept to Observations in the underlying encounter | public Map<Concept, List<Obs>> getObsMap() {
return obsMap;
} | [
"org.hl7.fhir.ConceptMap getConceptMap();",
"org.hl7.fhir.ConceptMap addNewConceptMap();",
"org.hl7.fhir.Observation getObservation();",
"List<Concept2OntClassMapping> lookupConcept2OntClassMappingPairs(Concept concept);",
"public abstract C withConceptMaps(Dataset<Row> conceptMaps);",
"public abstract ja... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: dmrgstat | public java.lang.String getDmrgstat () {
return dmrgstat;
} | [
"public void setDmrgstat (java.lang.String dmrgstat) {\n\t\tthis.dmrgstat = dmrgstat;\n\t}",
"public java.lang.String getPredmrgstat () {\n\t\treturn predmrgstat;\n\t}",
"java.lang.String getStat();",
"public String getRecStat() {\n return recStat;\n }",
"public String getDeviceStat()\r\n {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the text edits managed by the underlying text edit group. | public TextEdit[] getTextEdits() {
return fTextEditGroup.getTextEdits();
} | [
"public List<TextTransform.Edit> getEdits() {\n return edits;\n }",
"protocol.TextEditOrBuilder getEditsOrBuilder(\n int index);",
"public java.util.List<protocol.TextEdit> getAdditionalTextEditsList() {\n return additionalTextEdits_;\n }",
"public TextEditGroup getTextEditGroup() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates all media codes from the media container | protected void validateAllMediaCodes(final AttributeDescriptorModel attribute, final String language,
final Map<String, String> formatUuidMap, final List<ValidationError> errors)
{
if (formatUuidMap == null)
{
return;
}
formatUuidMap.entrySet() //
.stream() //
.filter(entry -> Objects.nonNull(ent... | [
"protected void validateMediaItems(MediaItems[] param){\n \n }",
"void badMediaList(MediaQueryList media);",
"protected void validateMediaContainer(final List<ValidationError> errors, final String language, final String qualifier,\n\t\t\tfinal String medi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SuspensionTestResults s = new TestResultServiceImpl().getResults("sehan", "corolla", "job1", "Rear Left"); | public static void main(String[] args) {
SuspensionTestResults s = new TestResultServiceImpl().getResults(1);
} | [
"@Test\r\n public void testAddresults() throws Exception {\r\n System.out.println(\"addresults\");\r\n Casefile casefileCurrent = null;\r\n BigInteger idModelanalysis = null;\r\n String methodname = \"\";\r\n String mesureName = \"\";\r\n String rawresult = \"\";\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the rowNumber property. | public void setRowNumber(int value) {
this.rowNumber = value;
} | [
"public void setRowNumber(int num) {\n\t\tthis.rowNumber = num;\n\t}",
"public void setRowNum(int rowNum) {\r\n\t\tthis.rowNum = rowNum;\r\n\t}",
"public void setRowNo(Integer rowNo) {\n this.rowNo = rowNo;\n }",
"public void setRow(int value) {\n this.row = value;\n }",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This Function deletes the selected record from the database | private void delete()
{
try
{
Connection con = Connector.DBcon();
String query = "select * from items where IT_ID=?";
PreparedStatement pst = con.prepareStatement(query);
pst.setString(1, txticode.getText());
ResultSet rs = pst.executeQuery();
int count = 0;
while(rs.next())
{
c... | [
"public void deleteRecord(){\n PreparedStatement statement = null;\n int rowIndicator = this.rowIndicatorMain;\n try {\n if(connection == null){\n System.out.println(\"connecting\");\n this.connect();\n }\n statement = connection.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stop the queue. Call this method when the queue engine must be shutdown. | public synchronized void stopQueue() {
if (isStarted.compareAndSet(true, false)) {
try {
transferQueue.close();
} finally {
Runtime.getRuntime().removeShutdownHook(shutdownHook);
}
}
} | [
"public void stopQueue()\n throws QueueException {\n }",
"public void stop() {\n synchronized (eventQueue) {\n isAlive = false;\n }\n }",
"public void shutdown() {\n running = false;\n synchronized (queue) {\n queue.notifyAll();\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column cms_role_privilege.privilege_id | public Integer getPrivilegeId() {
return privilegeId;
} | [
"public Long getPrivilegeId() {\n return privilegeId;\n }",
"public Integer getPrivilegeid() {\n return privilegeid;\n }",
"long getRoleId();",
"Integer getIdRole();",
"public Integer getRolePrivilgeId() {\r\n\t\treturn rolePrivilgeId;\r\n\t}",
"java.lang.String getRoleid();",
"long ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens a Trusted Web Activity where multiple domains are validated to open in full screen. | public void launcherWithMultipleOrigins(View view) {
List<String> origins = Arrays.asList(
"https://www.wikipedia.org/",
"https://www.example.com/"
);
TrustedWebActivityIntentBuilder builder = new TrustedWebActivityIntentBuilder(LAUNCH_URI)
.setAd... | [
"public void openTC(View view) {\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(LINK_TO_TERMS_AND_CONDITIONS));\n try {\n startActivity(intent);\n } catch (ActivityNotFoundException ex) {\n showSnackbar(\"No Browser Detected\");\n }\n\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ The Read method will take in 3 arguments, the file descriptor, the buffer address, and the buffer size. Before anything can be done we must confirm that all three of these arguments are not going to cause any problems. Afterwards we will need to create a buffer array. Then we can use the read method in the SyncConsol... | private int handleRead(int descriptor, int bufferAddress, int bufferSize) {
Lib.debug(dbgProcess, "handleRead()");
int handler = descriptor;
int bufaddr = bufferAddress;
int bufsize = bufferSize;
Lib.deb... | [
"private int handleRead(int fileDescriptor, int virtualMemoryAddress, int byteCount) {\n if (fileDescriptor > 1 || fileDescriptor < 0 || byteCount < 0) return -1;\n\n if (virtualMemoryAddress < 0) return 0;\n\n byte[] buffer = new byte[byteCount];\n\n int bytesRead = fileDescriptor == 0 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populates a DTO with data from a ResultSet | protected void populateDto(Courts dto, ResultSet rs) throws SQLException
{
dto.setCourtId( rs.getInt( COLUMN_COURT_ID ) );
dto.setCode( rs.getString( COLUMN_CODE ) );
dto.setDescription( rs.getString( COLUMN_DESCRIPTION ) );
} | [
"protected void populateDto(Bitacora dto, ResultSet rs) throws SQLException\r\n\t{\r\n\t\tdto.setIdBitacora( rs.getInt( COLUMN_ID_BITACORA ) );\r\n\t\tdto.setIdAplicativo( rs.getInt( COLUMN_ID_APLICATIVO ) );\r\n\t\tif (rs.wasNull()) {\r\n\t\t\tdto.setIdAplicativoNull( true );\r\n\t\t}\r\n\t\t\r\n\t\tdto.setIdUsuar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fill in missing primary keys for delete. | public String[] fillInMissingPrimaryKeysForDelete(Delete delStmt){
String[] newDeletes = null;
if(this.isPrimaryKeyMissingFromWhereClause(delStmt.getTable().getName(),
delStmt.getWhere())){
String primaryKeySelectStr = this.getPrimaryKeySelectionQuery(delStmt.getTable().getName(),
delStmt.getWhere());... | [
"public void recreatePrimaryKey()\n throws DBException\n {\n \n /* drop existing primary key */\n try {\n DBProvider.removePrimaryIndex(this.getUntranslatedTableName());\n } catch (Throwable th) {\n Print.logWarn(\"Primary key does not currently exist\");\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a peer builder with the provided key pair and a peer ID that is generated out of this key pair. | public PeerBuilder(final KeyPair keyPair) {
this.keyPair = keyPair;
this.peerId = Utils.makeSHAHash(keyPair.getPublic().getEncoded());
} | [
"public PeerBuilder(final Number160 peerId) {\n\t\tthis.peerId = peerId;\n\t}",
"public Peer getNewPeer(HFClient hfClient, String key) throws InvalidArgumentException {\n JsonNode peerParameters = requireNonNull(getPeerDetails(key));\n\n String peerUrl = peerParameters.get(\"url\").asText();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jPanelFiltersButtons | private JPanel getJPanelFiltersButtons() {
if (jPanelFiltersButtons == null) {
jPanelFiltersButtons = new JPanel();
jPanelFiltersButtons.setLayout(new FlowLayout(FlowLayout.LEFT));
jPanelFiltersButtons.add(getJButtonSearchFiltered());
jPanelFiltersButtons.add(getJButtonResetFiltered(), null);
}
... | [
"private void initFilter() {\n\t\tJLabel filterLabel = new JLabel(Labels.getString(\"mapfilter.title\"));\n\t\tfilterLabel.putClientProperty(ELFStyle.KEY, ELFStyle.LABEL_SHORT);\n\n\t\tfilterPanel.add(filterLabel);\n\n\t\tboolean first = true;\n\t\tButtonGroup group = new ButtonGroup();\n\t\tfor (final EMapFilter f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If timestamp is Long.MIN_VALUE, this function will simply decode the next frame, Otherwise it will decode to the closest frame whose timestamp is equal to or greater than 'timestamp tolerance' | private int DoDecodeToFrame(long timestamp, long tolerance) {
final int inputBufferCount = m_decoderInputBuffers.length;
final int pendingInputBufferThreshold = Math.max(inputBufferCount / 3, 2);
final int TIMEOUT_USEC = 4000;
int deadDecoderCounter = 0;
while (!m_sawOutputEOS) ... | [
"@Test\n public void testTimestampsWithFramerateBitrateAdjuster() throws InterruptedException {\n TestEncoder encoder =\n new TestEncoderBuilder().setBitrateAdjuster(new FramerateBitrateAdjuster()).build();\n encoder.initEncode(TEST_ENCODER_SETTINGS, mockEncoderCallback);\n\n encoder.encode(createT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows the print receipt and done buttons after the customer has payed. | public void initCustomerPayed()
{
final String printReceiptButtonText = "Print receipt";
final String doneButtonText = "Done";
JPanel finishPanel = new JPanel();
finishPanel.setLayout(new FlowLayout());
printReceiptButton = new JButton(printReceiptButtonText... | [
"public void displayReceipt()\n\t{\n\t\t/**Print array list of selections*/\n\t\tuser.PrintSelections();\n\t\t\n\t\tSystem.out.println(\"------------\");\n\t\t\n\t\t/**Print total price.*/\n\t\tSystem.out.println(\"Total: $\" + totalprice);\n\t}",
"public void printReceipt(){\n sale.updateExternalSystems()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Private methods that support the 4.3 version of the API Gathers and organizes the response based on the specified rootCategory and the permissions of the specified user. | private Map<String, SortedSet<PortletCategoryBean>> getRegistry43(
WebRequest request,
IPerson user,
PortletCategory rootCategory,
boolean includeUncategorized,
Set<IPortletDefinition> favorites) {
/*
* This collection of all the portlets in ... | [
"private void hitGetCategoryListApi() {\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = new HashMap<>();\n Call<ResponseBody> call = apiInterface.hitGetPreferredCategoryListAp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of BusinessDocument objects in the list. | public int getBusinessDocumentCount()
{
return _objBusinessDocument.size();
} | [
"int getDocumentCount();",
"public int numObjects(){\r\n\t\treturn objList.size();\r\n\t}",
"public int CountItems(){\n if (startOfList == null)\n {\n return 0;\n }\n\n\t\tint i = 1;\n\t\tMyData j = startOfList;\n\t\twhile (j.Next() != null)\n {\n i += 1;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the rows from the PROPERTY_IMAGES table that matches the specified primarykey value. | public PropertyImages findByPrimaryKey(PropertyImagesPk pk) throws PropertyImagesDaoException
{
return findByPrimaryKey( pk.getId() );
} | [
"public PropertyImages findByPrimaryKey(int id) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\tList<PropertyImages> list = getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE ID = ?\", this,id);\n\t\t\treturn list.size() == 0 ? null : lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an array of BusinessDocument objects. The length of the returned array is zero if the list of BusinessDocument object is empty. | public BusinessDocument[] getBusinessDocument()
{
return (BusinessDocument[])_objBusinessDocument.toArray(
new BusinessDocument[0]);
} | [
"private List<BdmDocument> getDocumentList() {\n\t\tList<BdmDocument> documents = new ArrayList<>(1);\n\t\tdocuments.add(new BdmDocument(this.getTestBdm()));\n\t\treturn documents;\n\t}",
"public List getBusinessDocumentList()\n {\n return Collections.unmodifiableList(_objBusinessDocument);\n }",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "valueRatio" element | boolean isSetValueRatio(); | [
"boolean isRatioConfigured();",
"org.hl7.fhir.Ratio getValueRatio();",
"boolean hasShortRatio();",
"public boolean hasValueDimension() {\n return value != null;\n }",
"public static boolean isNumberRatio(Object val) throws BaseException\n {\n \tif(val instanceof Number && (NumberUtil.toDouble(val) >= 0 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set method for struct member 'mesh_source'. Field Documentation Blender Source Code (eRigidBody_MeshSource) mesh source for mesh based collision shapes. | public void setMesh_source(short mesh_source) throws IOException
{
if ((__io__pointersize == 8)) {
__io__block.writeShort(__io__address + 12, mesh_source);
} else {
__io__block.writeShort(__io__address + 12, mesh_source);
}
} | [
"@Override\n public abstract void setMesh(Mesh mesh);",
"public void setSource(Mat source) {\n this.source = source;\n }",
"public final void setCustomMesh(RenderPatch[] mesh) {\r\n long key = this.mapiter.getBlockKey(); /* Get key for current block */\r\n custom_meshes.put(key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use external route configured on doamin if account cannot be found. Also see zimbraReverseProxyUseExternalRoute. | @ZAttr(id=1132)
public boolean isReverseProxyUseExternalRouteIfAccountNotExist() {
return getBooleanAttr(Provisioning.A_zimbraReverseProxyUseExternalRouteIfAccountNotExist, false);
} | [
"@ZAttr(id=1132)\n public void unsetReverseProxyUseExternalRouteIfAccountNotExist() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraReverseProxyUseExternalRouteIfAccountNotExist, \"\");\n getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The status of the import of the latest dataset version. .google.maps.mapsplatformdatasets.v1alpha.State status = 12; | @java.lang.Override
public com.google.maps.mapsplatformdatasets.v1alpha.State getStatus() {
com.google.maps.mapsplatformdatasets.v1alpha.State result =
com.google.maps.mapsplatformdatasets.v1alpha.State.forNumber(status_);
return result == null
? com.google.maps.mapsplatformdatasets.... | [
"@java.lang.Override\n public com.google.maps.mapsplatformdatasets.v1alpha.State getStatus() {\n com.google.maps.mapsplatformdatasets.v1alpha.State result =\n com.google.maps.mapsplatformdatasets.v1alpha.State.forNumber(status_);\n return result == null\n ? com.google.maps.mapsplatformdatasets.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the initial branch of this root. | HibBranch getInitialBranch(); | [
"public static Branch getDefaultBranch(){\n BranchDao bDAO = new BranchDao();\n Branch branch = null;\n try {\n branch = bDAO.findByName(\"Main Branch\"); //from SQL script\n } catch (DaoException ex) {\n Logger.getLogger(BranchCtrl.class.getName()).log(Level.SEV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PASS: Ensure all properties on the bean have working getters and setters. | @Test
public void gettersAndSettersShouldWorkForEachProperty() {
assertThat(AssignForceBatch.class, hasValidGettersAndSetters());
} | [
"@Test\n public void validateSettersAndGetters() {\n final PojoClass EcritureComptablePojo = PojoClassFactory.getPojoClass(EcritureComptable.class);\n\n final Validator validator = ValidatorBuilder.create()\n .with(new SetterTester(), new GetterTester())\n .build();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a client dispatcher. | private Uniform getClientDispatcher() {
return getDirectory().getContext().getClientDispatcher();
} | [
"public Dispatcher getDispatcher();",
"public static Dispatcher getDispatcher() {\n return DISPATCHER;\n }",
"public IDispatcher getDispatcher() {\r\n\t\treturn dispatcher;\r\n\t}",
"public IDispatcherIf getDispatcher();",
"public static DispatcherAdapter getDispatcher() {\n return dispatch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the first element of the list | public void deleteFirst() {
// Can't delete from an empty list
if (isEmpty()) {
System.out.println("Error in List.deleteFirst() "
+ "Attempted delete from Empty List ");
}
// Special case: list has only one element
else if (length == 1) {
firstNode = null;
lastNode = null;
length ... | [
"@Override\n public void deleteFirst() {\n if (this.isEmpty()){\n throw new IllegalStateException(\"List is empty\");\n }\n for (int j = 0; j < size - 1; j++){\n data[j] = data[j + 1];\n }\n data[size - 1] = null;\n size--;\n }",
"public T remo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
executes every time a record is successfully sent or an exception is thrown | public void onCompletion(RecordMetadata recordMetadata, Exception e) {
if (e == null) {
//the record was successfully sent
logger.info(message.value.toString());
} else {
logger.error("Err... | [
"private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
csv format: test_id,test_step,suite,action,data(urlpathcontenttypestatuscodelist_of_parameters_pipe_separated) This method will get data from Data Provider for all the cases present in csv file Based on 'whattorun' value in config.properties, performAction() method will be called | @Features("Test Method")
@Stories("Data provider Consumer")
@Severity(SeverityLevel.CRITICAL)
@Title("API Calls")
@Description("Description: All types of calls")
@Test(dataProvider = "csvdataprovider",dataProviderClass=DataProviderClass.class)
public void testRequest(String test_id, String test_step, String sui... | [
"public ArrayList<String> getData(String testcaseName) throws IOException \n\t{\n\t\t/* Identify Testcases column by scanning the entire list 1st row\n\t\t * Once the column is identified, scan the entire testCases column to identify the purchase testCases row\n\t\t * After grabbing the purchase testCases row, pull... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the lab date. | public Date getLabDate() {
return labDate;
} | [
"public Date getSpecimenToLabDateTime() {\n\t\treturn specimenToLabDateTime;\n\t}",
"@Override\n\tpublic java.util.Date getLabor_contract_start() {\n\t\treturn _ext_information.getLabor_contract_start();\n\t}",
"java.lang.String getIssueDate();",
"public void setLabDate(Date labDate) {\n this.labDate =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a command to run the given script. The script interpreter is inferred by platform: cmd on Windows or bash otherwise. | public static String[] getRunScriptCommand(File script) {
String absolutePath = script.getAbsolutePath();
return WINDOWS ? new String[] { "cmd", "/c", absolutePath } : new String[] { "/bin/bash", absolutePath };
} | [
"public static synchronized Vector<String> determineCommandShell() {\n\n String osName = System.getProperty(\"os.name\");\n osName = osName.toUpperCase();\n Vector<String> cmd = new Vector<String>();\n if (osName.indexOf(Constants.WINDOWS) != -1) {\n cmd.add(\"cmd\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/songSkipBack() go to the PREVIOUS song in our hotList/shuffleList | private void songSkipBack()
{
//do nothing if we have nothing loaded
if(song_loaded == false)
{return;}
if(enable_skipping==false)
{return;}
enable_skipping = false;
hotIndex--;
mp.seekTo(0);
progressBar.setProgress(0);
startPlaying(0... | [
"public void playPrev() {\n if (isShufflePlay) {\n posOfSongPlayed = getRandomNum();\n } else {\n posOfSongPlayed = (posOfSongPlayed - 1 + songsList.size()) % songsList.size();\n }\n navigateToNewSong();\n }",
"private void songSkipForward()\n {\n //d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XForLoopExpression__EachExpressionAssignment_3" $ANTLR start "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0" InternalDroneScript.g:18428:1: rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 : ( ruleXExpressionOrVarDeclaration ) ; | public final void rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:18432:1: ( ( ruleXExpressionOrVarDeclaration ) )
// InternalDroneScript.g:18433:2: ( r... | [
"public final void rule__XBasicForLoopExpression__Group_3__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:11775:1: ( ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) ) )\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encrypts provided data with passPhrase | private static byte[] encrypt(byte[] data, char[] passPhrase) {
try {
final Cipher encryptionCipher = getEncryptionCipher(deriveSecretKey(passPhrase));
return encryptionCipher.doFinal(data);
} catch (IllegalBlockSizeException | BadPaddingException e) {
throw new Illeg... | [
"static byte[] encrypt(byte[] data) {\n return encrypt(data, DEFAULT_PASS_PHRASE);\n }",
"void encryptWallet(String passPhrase);",
"public void encrypt\n\t\t(byte[] text);",
"void encrypt(EncryptionStrength encryptionStrength);",
"String encrypt(String text);",
"public String encrypt(String plai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns scanline stride of this image in bytes | public int getScanlineStride() {
return scanlineStride;
} | [
"public final int getScanlineStride() {\n return scanlineStride;\n }",
"public final int getPixelStride() {\n return pixelStride;\n }",
"public long stride()\n\t\t{\n\t\treturn stride;\n\t\t}",
"public int getPixelStride() {\n return 4;\n }",
"public int getStride() {\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'SRC_COMMIT_DT_UTC' field. | public org.LNDCDC_NCS_TCS.POB_CONTRACT_QUARTERS.apache.nifi.LNDCDC_NCS_TCS_POB_CONTRACT_QUARTERS.Builder clearSRCCOMMITDTUTC() {
SRC_COMMIT_DT_UTC = null;
fieldSetFlags()[9] = false;
return this;
} | [
"public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearSRCCOMMITDTUTC() {\n SRC_COMMIT_DT_UTC = null;\n fieldSetFlags()[58] = false;\n return this;\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_POINT.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_POINT.Builder clearSRCCOMMITDTUTC() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
builds collage with ImageTransform object and returns Collage object | public Collage build(){
imageTransformer = new ImageTransform(topic);
BufferedImage completeCollage = imageTransformer.createCollageImage();
Collage collageWrapper = new Collage();
collageWrapper.setTopic(topic);
collageWrapper.setImage(convertBufferedImageToBase64(completeCollage));
return collageWrapper;
... | [
"public void createCollage()\r\n {\r\n Picture flower1 = new Picture(\"flower1.jpg\");\r\n Picture flower2 = new Picture(\"flower2.jpg\");\r\n this.copy(flower1, 0, 0);\r\n this.copy(flower2, 100, 0);\r\n this.copy(flower1, 200, 0);\r\n Picture flowerNoBlue = new Picture... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setM_sfc method, of class Regime. | @Test
public void testSetM_sfc() {
System.out.println("setM_sfc");
double sfc = 9.5;
Regime instance = new Regime();
instance.setM_sfc(sfc);
double result=instance.getSfc();
double expResult=9.5;
assertEquals(expResult, result, 0.0);
} | [
"@Test\n public void testGetSfc() {\n System.out.println(\"getSfc\");\n Regime instance = r1;\n double expResult = 8.2;\n double result = instance.getSfc();\n assertEquals(expResult, result, 0.0);\n }",
"@Test\n public void testSetTSFC_() {\n System.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the pattern as an XML string. FIXME: this is not complete, information might be lost! | public final String toXML(PatternRule rule) {
final StringBuilder sb = new StringBuilder();
sb.append("<rule id=\"");
sb.append(StringTools.escapeXML(rule.getId()));
sb.append("\" name=\"");
sb.append(StringTools.escapeXML(rule.getDescription()));
sb.append("\">\n");
sb.append("<pattern mark... | [
"public String getXmlFormat();",
"public String toString() { return \"RMRegex \\\"\" + getPattern() + \"\\\"\"; }",
"public String toString() {\r\n if( false && thePattern == null )\r\n return \"\";\r\n else {\r\n StringBuffer sb = new StringBuffer();\r\n if(esc !... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the fetch size. | public java.lang.Integer getFetchSize()
{
return this.fetchSize;
} | [
"int getFetchSize();",
"public int getFetchSize() throws SQLException\n {\n return m_rs.getFetchSize();\n }",
"public int getFetchSize() throws java.sql.SQLException {\r\n return wrappedStatement.getFetchSize();\r\n }",
"short getFetchBufferSize() {\n\t\treturn fetchBufferSize_;\n\t}",
"i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sample usage of the onProfileChanged listener if the clicked item has the identifier 1 add a new profile ;) | @Override
public boolean onProfileChanged(View view, IProfile profile, boolean current) {
if (profile instanceof IDrawerItem && profile.getIdentifier() == PROFILE_SETTING) {
int count = 100 + headerResult.getProfiles().size() + 1;
... | [
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == PROFILE_SETTING) {\n IProfile newProfile = new ProfileDrawe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new SignalBarrier without an owner. | public SignalBarrier() {
_owner = null;
} | [
"public void signal() {\n // Remove the current owner of this barrier.\n Thread t = ownerAccess.getAndSet(this, null);\n\n // If the owner wasn't null, unpark it.\n if (t != null) {\n LockSupport.unpark(t);\n }\n }",
"public abstract BarrierType getBarrierType();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |