query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
abbreviation for the instrument that is carried by a Sentinel mission [SAR (Sentinel1 Synthetic Aperture Radar), MSI ( Sentinel2 MultiSpectral Instrument)] | @ApiModelProperty(value = "abbreviation for the instrument that is carried by a Sentinel mission [SAR (Sentinel-1 Synthetic Aperture Radar), MSI ( Sentinel-2 MultiSpectral Instrument)] ")
public String getInstrument() {
return instrument;
} | [
"public String getInstrumentName() {\r\n return MusicManager.getInstrumentName(synthInstrument);\r\n }",
"private String getInstrumentName( String file_name )\n {\n String instrument_name = UNKNOWN_INSTRUMENT;\n String file_inst = FileIO.getSNSInstrumentName( file_name );\n\n for ( int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes energy tiles at a horizontal axis from a given location. | private void removeHorizontalEnergyTiles(int x, int y, int range) {
int varX = x - range;
int endX = x + range;
if (varX < 0) {
varX = 0;
}
if (endX >= xwidth) {
endX = xwidth - 1;
}
for (; varX <= endX; varX++) {
if (map[y][v... | [
"public void removeVerticalEnergyTiles(int x, int y, int range) {\n int varY = y - range;\n int endY = y + range;\n\n if (varY <= 0) {\n varY = 0;\n }\n if (endY >= ywidth) {\n endY = ywidth - 1;\n }\n\n for (; varY <= endY; varY++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Iniciar el servicio. Ejecuta una llamada de sistema para iniciar el servicio y evalua la respuesta de la misma para determinar si se ha iniciado el servicio. | @Override
public int iniciar(){
try {
Process proceso;
proceso = Runtime.getRuntime().exec("/etc/init.d/"+nombreServicio+" start");
InputStream is = proceso.getInputStream();
BufferedReader buffer = new BufferedReader (new InputStreamReader (is));
... | [
"public void ligar() {\n\t\t\n\t\ttry {\n\t\t\tthis.sistemaOperacional.iniciarSistema();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Nao foi possivel iniciar o sistema:\");\n\t\t\tSystem.out.println(\"\\t\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"@Override\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter fo the previous compression of the rear right tyre | private float getPrevRearRightTyreDelta() {
return prevRearRightTyreDelta;
} | [
"private float getPrevFrontTyreDelta() {\n\t\treturn prevFrontTyreDelta;\n\t}",
"public double getZPrevious()\r\n\t{\r\n\t\treturn zPrevious;\r\n\t}",
"private Segment getRecentShift () {\r\n\t for (int i = stack.size(); i-- > 1;)\r\n\t\t if (stack.get(i).isShift())\r\n\t\t\t return stack.get(i);\r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines where the start of the next block (physical record) header in some buffer is located (in bytes). This assumes the start position has been maintained by the object performing the buffer read. | long nextBufferStartingPosition(); | [
"long getBufferStartingPosition();",
"protected long readDataStartPointerHeader() throws IOException {\n file.seek(RecordConstants.DATA_START_HEADER_LOCATION);\n return file.readLong();\n }",
"private static int findEndOfHeader(final ByteBuf buffer) {\n final int n = buffer.readableBytes();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the child array to the correct size. Initializes List and Opt nta children. | public void init$Children() {
children = new ASTNode[2];
} | [
"public void init$Children() {\n children = new ASTNode[5];\n setChild(new Opt(), 1);\n setChild(new List(), 2);\n setChild(new List(), 3);\n setChild(new List(), 4);\n }",
"public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new Opt(), 2);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the caption layout of the component. Valid Values are CAPTIONS_ON_LEFT, CAPTIONS_ON_RIGHT and CAPTIONS_ON_TOP. | public int getCaptionLayout() {
return _captionLayout;
} | [
"public void setCaptionLayout(int layout) {\r\n\t_captionLayout = layout;\r\n}",
"public static int getCaptionHeight() {\n\t\treturn CAPTION_HEIGHT;\n\t}",
"public String getCaptionVerticalAlign(){\n return this.captionVerticalAlign;\n }",
"public String getCaptionSide();",
"public static in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the surface type | public int get_surface_type() {
return surface_type;
} | [
"@DISPID(1611005963) //= 0x6006000b. The runtime will prefer the VTID if present\n @VTID(36)\n int surfaceType();",
"@DISPID(1611005963) //= 0x6006000b. The runtime will prefer the VTID if present\n @VTID(37)\n void surfaceType(\n int oType);",
"SurfacePropertyType getBaseSurface();",
"public void set_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "fromClause" $ANTLR start "whereClause" SQL.g:71:1: whereClause : ( 'where' c= cnfExp | ); | public final void whereClause() throws RecognitionException {
Expression c = null;
try {
// SQL.g:72:2: ( 'where' c= cnfExp | )
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==13) ) {
alt2=1;
}
else ... | [
"public final TrcParser.whereClause_return whereClause()\r\n\t\t\tthrows RecognitionException {\r\n\t\tTrcParser.whereClause_return retval = new TrcParser.whereClause_return();\r\n\t\tretval.start = input.LT(1);\r\n\r\n\t\tCommonTree root_0 = null;\r\n\r\n\t\tToken KW_WHERE313 = null;\r\n\t\tParserRuleReturnScope s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new builds the status wrapper RO. | public BuildStatusWrapperRO() {
super();
} | [
"public CreateStatus()\n {\n super(new DataMap(), null);\n }",
"public Status() {\r\n\t}",
"public Status() {\n }",
"private StatusMessage() {\n\n\t}",
"public StatusType()\n {\n }",
"private ProjectStatus createProjectStatus() {\r\n ProjectStatus status = new ProjectStatus();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_member.lock_status | public void setLockStatus(Integer lockStatus) {
this.lockStatus = lockStatus;
} | [
"public void setLockStatus(long lockStatus) {\r\n this.lockStatus = lockStatus;\r\n }",
"public void setLockedStatus(boolean locked){\n this.locked = locked;\n }",
"public void setMemberStatus(String newStatus){this.memberStatus = newStatus;}",
"public void setLocked(boolean locked) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save meeting and process the invited persons with person service | public Uni<Meeting> processAndSave(Meeting meeting) {
logger.info(meeting.toString());
meeting = meetingRepository.save(meeting);
personService.updateInvitedPersonContext(meeting.splitAttendees(),meeting.context);
return Uni.createFrom().item(meeting);
} | [
"boolean createMeeting(long userId , MeetingInfo meeting , List<ContactInfo> participants);",
"@Override\n\tpublic boolean saveMeetingService(Meeting meeting, ArrayList<User> members) throws NotEnoughCreditsException, MeetingRoomAlreadyBookedException {\n\t\t\n\t\treturn (dao.saveMeetingDao(meeting, members));\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A interface to represent a full movement consisting of two animation frames (start and end), with different ticks. | public interface Animation {
/**
* gives the caller access to the start field of the animation class.
*
* @return the class' start field
*/
AnimationFrame getStart();
/**
* gives the caller access to the end field of the animation class.
*
* @return the class' end field
*/
AnimationFra... | [
"@ThreadAnimation\n void startAbsoluteFrame(float startAbsoluteFrame);",
"public interface Animated {\r\n\r\n\t/**\r\n\t * Reset the animation state of this object\r\n\t */\r\n\tvoid reset();\r\n\r\n\t/**\r\n\t * Rewind the animation to the beginning\r\n\t */\r\n\tvoid rewind();\r\n\r\n\t/**\r\n\t * Pause the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to invoke the Uber API and then store the record in CSV | public static void queryUberAndStore(LocationAndTime locationAndTime,UberClientUtil uberClient){
Map requestMap=new HashMap<>();
requestMap.put("startLatitude",locationAndTime.getStartLatitude());
requestMap.put("startLongitude",locationAndTime.getStartLongitude());
requestMap.put("endLa... | [
"public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}",
"public void printRecordCSV() throws IOException {\n FileWriter out= new FileWriter(\"record_output.csv\");\n String[]Headers={\"startTime\", \"requestType\",\"latency\",\"responseCode\"};\n try{\n CSVPrinter printer= new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used in testing to create a bundle info response message that can be used to create a bundle model. | private BundleInfoType createBundleInfo(int bundleState)
{
BundleInfoType bundleInfo = BundleInfoType.newBuilder().
setBundleDescription("Descrip").setBundleName("SomeBundle").setBundleId(Long.valueOf(5)).
setBundleLocation("Location").setBundleSymbolicName("SymbolicName").se... | [
"public InfoMessage createInfoMessage();",
"public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify that WsUpgrader is properly configured from config file | @Test
void testConnectionConfig()
throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {
// This will pick up application.yaml from the classpath as default configuration file
Config config = Config.create();
WsProtocolConfigProv... | [
"@Test\n void testUpgraderConfigBuilder() {\n WsUpgrader upgrader = WsUpgrader.create(\n WsConfig.builder()\n .name(\"@default\")\n .addOrigin(\"bOrigin1\")\n .addOrigin(\"bOrigin2\")\n .build());\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loop through the current set of LogEntry objects and collect those LogEntry objects where the stepName attribute matches the parameter value. | public LogEntrySet filterStepName(String value)
{
LogEntrySet result = new LogEntrySet();
for (LogEntry obj : this)
{
if (value.equals(obj.getStepName()))
{
result.add(obj);
}
}
return result;
} | [
"public LogEntrySet createStepNameCondition(String value)\n {\n LogEntrySet result = new LogEntrySet();\n \n for (LogEntry obj : this)\n {\n if (value.equals(obj.getStepName()))\n {\n result.add(obj);\n }\n }\n \n return result;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The SVIP tested against. | public String getSvip() { return this.svip; } | [
"protected IFtVerificationPoint IPResponseVPVP() \n\t{\n\t\treturn vp(\"IPResponseVP\");\n\t}",
"protected IFtVerificationPoint IPStatusVP() \n\t{\n\t\treturn vp(\"IPStatus\");\n\t}",
"public boolean getVIP();",
"public VIP getVip() {\r\n return vip;\r\n }",
"public String getIsVip() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the deliveryPointList value for this GetDeliveryPointsResponse. | public void setDeliveryPointList(DeliveryPoint[] deliveryPointList) {
this.deliveryPointList = deliveryPointList;
} | [
"public DeliveryPoint[] getDeliveryPointList() {\r\n return deliveryPointList;\r\n }",
"public void setShipping_price_list(java.lang.String shipping_price_list) {\n this.shipping_price_list = shipping_price_list;\n }",
"public void setFeeList(List<FeeComponent> feeList) {\r\n this.fee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Endpoint to insert order details into the database. | @PostMapping("/orders")
public ResponseEntity<OrderDTO> insertOrder(@Validated @RequestBody OrderDTO order) throws OrderNotFoundException {
System.out.println("Insert order started");
log.info("Insert Order Start");
OrderDTO orderReturned= orderService.createOrder(order);
log.info("Order Inserted"... | [
"public void insertOrder (Order order);",
"public irestads.model.Orders create(long orderId);",
"public void addOrder(Order order){\n orderRepository.save(order);\n log.info(\"Order has been successfully added!\");\n }",
"public void createOrder(OrderModel order) throws DataException;",
"vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the marketPrice property: Market Price that's charged for the usage. | public BigDecimal marketPrice() {
return this.innerProperties() == null ? null : this.innerProperties().marketPrice();
} | [
"public BigDecimal getMarketPrice() {\n return marketPrice;\n }",
"public BigDecimal getMarketPrice() {\n return marketPrice;\n }",
"public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}",
"public double getMarketValue()\n {\n return this.totalShares * super.getCurrentP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets album art to display on this panel | public void SetAlbumArt(String albumart) throws IOException{
BufferedImage myPicture; // BufferedImage object to hold our picture
try{ // Lets try to load from the relative path in our Eclipse project
myPicture = ImageIO.read(new File("src/resources/imgs/"+albumart+".jpg"))... | [
"public void setAlbum(String al){\r\n rAlbum.set(al);\r\n }",
"public void setAlbum(Album album)\n {\n this.album = album;\n }",
"public native void setArtwork(JavaScriptObject artwork) /*-{\n\t\tthis.@com.pmt.wrap.titanium.media.Item::handler.artwork = artwork;\n\t}-*/;",
"private void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adicionar Produtos a Reserva | public void adicionaProduto(Produto produto) {
listP.put(produto.getCodigo(), produto);
} | [
"public void adicionarProduto(Produto p) {\n produtos.add(p);\n }",
"public void adicionaProvaEscrita(ProvaEscrita prova)\n\t{\n\t\tthis.provasEscritas.add(prova);\n\t}",
"void Cadastro( char tipo, float preco, int cod, int qtdestoque, String nome, String autor, String editora, int anopub){\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test method for 'org.springmodules.jcr.JcrTemplate.getNamespaceURI(String)' | public void testGetNamespaceURI() throws RepositoryException {
String result = "namespace" ;
String prefix ="prefix";
sessionControl.expectAndReturn(session.getNamespaceURI(prefix), result);
sessionControl.replay();
sfControl.replay();
assertSame(jt.getNamespace... | [
"String getNamespaceURI(String prefix, Object session) throws RepositoryAccessException;",
"int getNamespaceUri();",
"public void testGetNamespacePrefix() throws RepositoryException {\n String result = \"namespace\";\n String uri = \"prefix\";\n \n sessionControl.expectAndReturn(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SEZ(WPAY) + Intra + Debit Note + Exempted | @Test(priority = 64)
public static void DebitNote_Creationfor_India_SEZ_WPAY_InterState_Exempted()
throws InterruptedException, AWTException, IOException {
GST_Debit_Note DN = new GST_Debit_Note();
DN.createDebitNote_NIL_Rated_Exempted_Non_GST(driver, SEZ_WPAY, Exempted_Product_ID);
} | [
"@Test(priority = 65)\n\tpublic static void DebitNote_Creationfor_India_SEZ_WOPAY_InterState_Exempted()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Debit_Note DN = new GST_Debit_Note();\n\t\tDN.createDebitNote_NIL_Rated_Exempted_Non_GST(driver, SEZ_WOPAY, Exempted_Product_ID);\n\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Do the compare of the file/path arguments given. There are two modes: a) Exactly two inputs: assume they are either file or directory names, and compare as such; b) N inputs: assume the first N 1 are file or directory names, and the last is a target directory where they are to be compared to. | private static void processCompare(final List<String> pathArgs) {
// Initialize statistics for this bunch of compares
// Note: this won't work if we ever allow recursion of "@file" processing
numberOfFiles = 0;
numberOfMismatches = 0;
int size = pathArgs.size();
if (size == 2) {
File f1... | [
"public static void main(String... args) throws IOException {\n\t\t\n\t\tPath path1 = Paths.get(\"/lizard/./\").resolve(Paths.get(\"walking.txt\")); \n\t\tPath path2 = new File(\"/lizard/././actions/../walking.txt\").toPath();\n\t\tSystem.out.print(Files.isSameFile(path1,path2)); \n\t\tSystem.out.print(\" \"+path1.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the currently displayed player list footer for this player. | public String getPlayerListFooter ( ) {
return extract ( handle -> handle.getPlayerListFooter ( ) );
} | [
"String getPresentationFooter();",
"public trans.encoders.relayVote.DirFooter getDirectoryFooter() {\n return directory_footer;\n }",
"public trans.encoders.relayVote.DirFooter getDirectoryFooter() {\n return directory_footer;\n }",
"public void setPlayerListFooter ( String footer ) {\n\t\texecute... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'availableMemoryInfo' field has an active Builder instance | public boolean hasAvailableMemoryInfoBuilder() {
return availableMemoryInfoBuilder != null;
} | [
"public boolean hasAvailableMemoryInfo() {\n return fieldSetFlags()[7];\n }",
"public com.iot.data.schema.AvailableMemoryInfoData.Builder getAvailableMemoryInfoBuilder() {\n if (availableMemoryInfoBuilder == null) {\n if (hasAvailableMemoryInfo()) {\n setAvailableMemoryInfoBuilder(com... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the UserOffer entity. | @SuppressWarnings("unused")
@Repository
public interface UserOfferRepository extends JpaRepository<UserOffer, Long> {
@Query("select user_offer from UserOffer user_offer where user_offer.user.login = ?#{principal.username}")
List<UserOffer> findByUserIsCurrentUser();
@Query("select uo from UserOffer uo wh... | [
"@Repository\npublic interface UserBadgeRepository extends BaseRepository<UserBadge> {\n\n /**\n * Find the badges of a specified user.\n * \n * @param userId the user id\n * @return the badges\n */\n List<UserBadge> findByUserId(UUID userId);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This resets the calculation if we for some reason would like to redo it. | public void reset()
{
doneCalculation = false;
} | [
"public void restartCalc() {\n\t\tthis.model.reset();\n\t\tthis.view.update(model);\n\t}",
"void recalc() {\n\t\tthis.currentValue = baseValue;\n\t\tthis.modifiers.stream().forEach(a -> this.currentValue += a.getValue());\n\t}",
"public void reset() {\n sumDoM = 0;\n numberDoM = 0;\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers a shutdown hook for the Neo4j instance so that it shuts down nicely when the VM exits (even if you "CtrlC" the running example before it's completed) | private void registerShutdownHook()
{
Runtime.getRuntime().addShutdownHook( new Thread()
{
@Override
public void run()
{
db.shutdown();
}
} );
} | [
"private void registerShutdownHook() {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n graphDatabaseService.shutdown();\n }\n });\n }",
"private static void registerShutdownHook() {\n Runtime.getRunti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sign up in Parse using username, password, email, and handle | private void signup(String username, String password, String email, String handle){
// Create the ParseUser
final ParseUser user = new ParseUser();
// Set core properties
user.setUsername(username);
user.setPassword(password);
user.setEmail(email);
user.put("handl... | [
"private void signUpUser() {\n if(!validateDetails()) {\n authentication.createUserWithEmailAndPassword(email.getText().toString(), password.getText().toString(), this);\n }\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the index of a particular title in the FaculyMember.STATUS. | public int getStatusOrdinal() { return status.ordinal(); } | [
"public int getEntryIndexByTitle(String title) {\n return getTitles().indexOf(title);\n }",
"private int indexOf(String title) {\n\t\tint index = -1;\n\n\t\tboolean found = false;\n\t\tfor(int i = 0; i < this.nor && !found; i ++) {\n\t\t\tif(this.registrations[i].getTitle().equals(title)) {\n\t\t\t\tfou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the field expandNode. | public ch.ivyteam.ivy.scripting.objects.Tree getExpandNode()
{
return expandNode;
} | [
"public boolean getExpand() { return expand; }",
"public void setExpandNode(ch.ivyteam.ivy.scripting.objects.Tree _expandNode)\n {\n expandNode = _expandNode;\n }",
"@ApiModelProperty(value = \"Expand options that include additional issue details in the response.\")\n public String getExpand() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shuffles the list for random alphabets | public List<Alphabets> shuffle(List<Alphabets> shufflelist)
{
List<Alphabets> shuffleList = shufflelist;
Random random = new Random();
for (int i = shufflelist.size() - 1; i >= 0; i--)
{
int j = random.nextInt(i + 1);
if( i != j )
{
/* swap cards i,j */
Alphabets alphabe... | [
"public void shuffle()\n{\n String nonCoreLetters = letters.substring(1);\n for (int i = 1; i <= 6; i++) {\n int index = (int) (Math.random()*nonCoreLetters.length());\n displayedLetters[i] = nonCoreLetters.charAt(index);\n nonCoreLetters = nonCoreLetters.substring(0, index) + nonCoreLetters.substring(in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a node type from memory | void removeNodeType(NodeTypeData nodeType); | [
"public void unsetType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TYPE$4, 0);\n }\n }",
"public void removeObjectTypeNode(ObjectTypeNode node) {\n this.inputNodes.remove(node.getDeftempla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of buckets on this member. Only applicable for partitioned regions. | int getBucketCount(); | [
"public int getBucketCount() {\n return buckets.size();\n }",
"public int numBuckets() {\n return this.buckets;\n }",
"public int numBuckets();",
"int getTotalBucketSize();",
"int getPrimaryBucketCount();",
"private int numOfBuckets(){\r\n \treturn (int) Math.floor((1.4404*(Math.log10(thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "DelegateSuggestedSigner" element | void unsetDelegateSuggestedSigner(); | [
"void unsetDelegateSuggestedSignerEmail();",
"void unsetDelegateSuggestedSigner2();",
"void xsetDelegateSuggestedSigner(org.apache.xmlbeans.XmlString delegateSuggestedSigner);",
"void setDelegateSuggestedSigner(java.lang.String delegateSuggestedSigner);",
"void xsetDelegateSuggestedSigner2(org.apache.xmlbea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers a TrustManager that skips SSL validation | public static final void registerTrustingSSLManager() {
registerTrustingSSLManager("SSL");
} | [
"public static final void registerTrustingSSLManager(String protocol) {\n Validate.notBlank(protocol, \"Invalid SSL protocol\");\n\n // Check SSL SocketFactory\n SSLSocketFactory trustingFact= getTrustingSocketFactory(protocol);\n SSLSocketFactory curFactory= HttpsURLConnection.getDefaul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the tw1OpenTime value for this RoutingStop. | public void setTw1OpenTime(org.apache.axis.types.Time tw1OpenTime) {
this.tw1OpenTime = tw1OpenTime;
} | [
"public org.apache.axis.types.Time getTw1OpenTime() {\n return tw1OpenTime;\n }",
"public void setTw1CloseTime(org.apache.axis.types.Time tw1CloseTime) {\n this.tw1CloseTime = tw1CloseTime;\n }",
"public void setTw2OpenTime(org.apache.axis.types.Time tw2OpenTime) {\n this.tw2OpenTime ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the troops that are roughly in the position they are supposed to be. This is very helpful for troops drawer optimization. | public boolean[][] getTroopsInPosition() {
boolean[][] inPositionMap = new boolean[depth][width];
for (int i = 0; i < depth; i++) {
for (int j = 0; j < width; j++) {
if (aliveTroopsFormation[i][j] == null) continue;
if (aliveTroopsFormation[i][j].isInPosition... | [
"public List<Tile> findTargets() {\n List<Tile> targets = new ArrayList<>(); // our return value\n int fearDistance = 2; // Ideally we're 2 spots away from their head, increases when we can't do that.\n int foodDistance = 3; // We look at a distance 3 for food.\n\n // If fearDistance ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column MONITOR_KPI_3G_MAIL.HOUR_5 | public Integer getHour5() {
return hour5;
} | [
"public Integer getHourmbin5() {\r\n return hourmbin5;\r\n }",
"public Integer getHourmb5() {\r\n return hourmb5;\r\n }",
"public Integer getHour3() {\r\n return hour3;\r\n }",
"public Integer getHouriops5() {\r\n return houriops5;\r\n }",
"public Integer getHourmbin3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes the payload of the incoming post as the contents of a file to GCS. If the request path is /gcs/Foo/Bar this will be interpreted as a request to create a GCS file named Bar in bucket Foo. | @Override
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String requestURI = "/gcs/"+BudgetConstants.BUCKET_NAME+"/GtfReport";
String[] splits = requestURI.split("/", 4);//req.getRequestURI().split("/", 4);
/* String requestURI = req.getRequestURI();
String... | [
"public static void uploadFile(String bucketName, String filePath, String stg)\n throws Exception {\n\n new UploadFileTask().execute(bucketName, filePath, stg);\n\n /* Storage storage = getStorage();\n\n StorageObject object = new StorageObject();\n object.setBucket(bucketName)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the red component, from 0 to 1 | public float getRed() {
return r;
} | [
"float getRed();",
"public int getRedComponent() {\n return ((m_vPaint.getColor() & 0xff) << 16);\n }",
"public int getRed()\n {\n return (int)(r * 255);\n }",
"public float getRed() {\r\n return this.r;\r\n }",
"public int getRed() {\r\n\t\treturn red;\r\n\t}",
"public int getC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if currently is over threshold | public boolean isOverThreshold(){return isOverThreshold;} | [
"public boolean isThresholdExceeded()\n {\n return (written > threshold);\n }",
"public int getAboveThreshold()\n {\n return this._aboveThreshold;\n }",
"int getThreshold();",
"public double getThreshold(){\n return threshold;\n }",
"int getTreshold();",
"public double ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log the value of a variable. | final <V> V logVariable(final String name, final V value) {
return LOGGER.logVariable(name, value);
} | [
"public void log() {\n System.out.println(\"Message: Value-\" + value\n + \", clientId-\" + clientId);\n }",
"public static void log(String name, int value) {\n m_output += \" | \" + name + \": \" + value;\n }",
"public static void log(String name, double value) {\n m_o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes an interface from the config. | public void removeInterface(String name) {
checkNotNull(name, INTF_NULL_ERROR);
checkArgument(!name.equals(Interface.NO_INTERFACE_NAME), INTF_NAME_ERROR);
Iterator<JsonNode> it = array.iterator();
while (it.hasNext()) {
JsonNode node = it.next();
if (node.path(NA... | [
"private void editConfigDeleteInterfaceEntry(String interfaceName) {\n checkNotNull(interfaceName);\n StringBuilder sb = new StringBuilder();\n sb.append(ORG_OPENROADM_DEVICE_OPEN_TAG);\n sb.append(\" <interface nc:operation='delete'>\");\n sb.append(\" <name>\" + interfaceNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates partial likelihoods at a node when both children have partials. | private void calculatePartialsPartialsPruning(int iNode1, int iNode2, int iNode3) {
// prepare the stack
m_nOperation[m_nTopOfStack] = OPERATION_PP;
m_nNode1[m_nTopOfStack] = iNode1;
m_nNode2[m_nTopOfStack] = iNode2;
m_nNode3[m_nTopOfStack] = iNode3;
m_nTopOfStack++;
} | [
"@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {\n\n calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],\n partials[currentPartialsIndices[nodeIndex2]][... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called to set the version for a file header entry after reading the version from the item data. See FileHeaderEntry.readEntry. [16939] | public void setFileHeaderVersion(final int logVersion) {
entryVersion = logVersion;
} | [
"public void setEntryVersion(String entryVersion) {\r\n this.entryVersion = entryVersion;\r\n }",
"public void setFileVersion(int fileVersion) {\r\n\t\tthis.fileVersion = fileVersion;\r\n\t}",
"private void rewriteRepHeader() {\r\n\t\t// assume that the value of headVersionNum has been \r\n\t\t// incr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show one teacher and his/her courses | @RequestMapping(value="/{id}/courses", method=RequestMethod.GET)
public Teacher viewCourses(@PathVariable("id") Integer id) {
TeacherService teacherService = new TeacherService();
Teacher teacher = teacherService.getTeacherCourses(id);
return teacher;
} | [
"public static void printAllTeacherPerCourse() {\n if (Course.getCoursesList().isEmpty() || Teacher.getTeacherList().isEmpty()) { //Checks if we have teachers or courses with in our course.\n System.out.println(colour.TEXT_RED + \"Something is missing.\" + colour.TEXT_RESET\n + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that CurrencyUnit implementations are comparable. | @SpecAssertion(section = "4.2.1", id = "421-B3")
@Test(description = "4.2.1 Ensure registered CurrencyUnit classes are Comparable.")
public void testCurrencyClassesComparable() {
for (Class type : TCKTestSetup.getTestConfiguration().getCurrencyClasses()) {
TestUtils.testComparable("Section 4... | [
"@SpecAssertion(section = \"4.2.1\", id = \"421-B2\")\n @Test(description = \"4.2.1 Ensure registered CurrencyUnit classes implement equals.\")\n public void testImplementsEquals() {\n List<CurrencyUnit> firstUnits = new ArrayList<>();\n List<CurrencyUnit> secondUnits = new ArrayList<>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__HostNode__ObjectsAssignment_5" $ANTLR start "rule__Link__NameAssignment_1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30097:1: rule__Link__NameAssignment_1 : ( ruleQualifiedName ) ; | public final void rule__Link__NameAssignment_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30101:1: ( ( ruleQualifiedName ) )
... | [
"public final void rule__End__NameAssignment_1() 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:28732:1: ( ( ruleQualifi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BA.debugLineNum = 52;BA.debugLine="Public Sub SetThumbColor(BorderColor As Int, Inner"; BA.debugLineNum = 53;BA.debugLine="mThumbBorderColor = BorderColor"; | public String _setthumbcolor(int _bordercolor,int _innercolor) throws Exception{
_mthumbbordercolor = _bordercolor;
//BA.debugLineNum = 54;BA.debugLine="mThumbInnerColor = InnerColor";
_mthumbinnercolor = _innercolor;
//BA.debugLineNum = 55;BA.debugLine="CreateThumb";
_createthumb();
//BA.debugLineNum = 56;BA.debug... | [
"public String _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(int _bordercolor,int _innercolor) throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4 = _bordercolor;\n //BA.debugLineNum = 54;BA.debugLine=\"mThumbInnerColor = InnerColor\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field130' field. doc for field130 | public java.lang.CharSequence getField130() {
return field130;
} | [
"public java.lang.CharSequence getField130() {\n return field130;\n }",
"java.lang.String getField1301();",
"java.lang.String getField1360();",
"java.lang.String getField1393();",
"java.lang.String getField1200();",
"java.lang.String getField1371();",
"java.lang.String getField1040();",
"java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is team 2 full boolean. | public boolean isTeam2Full() {
int teamSize = pMax / 2;
return teamSize == team2Count;
} | [
"public boolean isTeam1Full() {\n \n int teamSize = pMax / 2;\n \n return teamSize == team1Count;\n }",
"public boolean isTwoPlayers() {\n\t\treturn players.size() == 2;\n\t}",
"private boolean isPlayerTwoTurn()\n\t{\n\t\treturn appModel.getCurrentPlayer() == appModel.getPlayer2()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Records that the given team has responded to the challenge. Meaning they have either submitted another chain or they passed. | public void registerTeamChallengeResponse(int teamId) {
challengeSubmissionStatus.put(teamId, true);
} | [
"public void challengeAccept(int challengeNmr) {\n try {\n write(\"challenge accept \" + challengeNmr);\n } catch (IOException e) {\n System.out.println(\"No connecting with server:challengeAccept\");\n }\n }",
"void acceptChallenge(int challengeId);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__3" $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19735:1: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl : ( ruleOpSingleAssign ) ; | public final void rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19739:1: ( ( ruleOpS... | [
"public final void rule__XMemberFeatureCall__Group_1_0_0_0__3__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:8051:1: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'documentId' field. | public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder clearDocumentId() {
documentId = null;
fieldSetFlags()[1] = false;
return this;
} | [
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearDocumentId() {\n documentId = null;\n fieldSetFlags()[8] = false;\n return this;\n }",
"public DocumentSchema.Builder clearDocID() {\n fieldSetFlags()[0] = false;\n return this;\n }",
"void unsetDocumentNumb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Like a Plip, when a Clorus replicates, it keeps 50% of its energy. The other 50% goes to its offspring. No energy is lost in the replication process. | public Clorus replicate() {
Clorus p2 = new Clorus(energy/2.0);
energy /= 2;
return p2;
} | [
"public Clorus replicate() {\n double babyEnergy = energy * repEnergyGiven;\n energy = energy * repEnergyRetained;\n return new Clorus(babyEnergy);\n }",
"private void reproduceIfPossible() {\n if (numberOfChrononsSurvivedSinceLastReproduction < chrononsNeededToReproduce) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
applies the new config by setting it as the current config and populating the UI using it | public void applyNewConfig(final Configuration newConfig){
this.currentConfiguration = newConfig;
populateForm(currentConfiguration);
} | [
"private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for the calculated attribute Suggestion. | public String getSuggestion() {
return (String) getAttributeInternal(SUGGESTION);
} | [
"public String getSuggestion() {\n return (String)getAttributeInternal(SUGGESTION);\n }",
"String attributeValue();",
"public String getAttrValue();",
"@NonNull\n String getNecessaryAttribute();",
"public int getValueOfBonus() {\n return valueOfBonus;\n }",
"public String getValue()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets enemy for room | public void setEnemy(Enemy enemy){ this.enemy = enemy; } | [
"public void setEnemy(Enemy enemy) {\n this.enemy = enemy;\n }",
"public void setEnemy(Enemy enemy){\n this.enemy = enemy;\n enemy.setXGrid(getXGrid());\n enemy.setYGrid(getYGrid());\n setEntity(enemy);\n }",
"private void setEnemy(){\n depths.setEnemy(scorpion);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method getEulerNumber calculate the EulerNumber of each nucleus, and add the EulerNumber to the nucleus | private static void setEulerNumber(final Cell3D[] aCells, final ImageStack aInputStack, final int[] aLables)
{
final double[] eulerNumbers = GeometricMeasures3D.eulerNumber(aInputStack, aLables, connectivity);
for (int i = 0; i < aCells.length; i++)
{
aCells[i].getNucleus().getMeasurements().setMeasureme... | [
"public Euler getEulerBlock() {\n return eulerBlock;\n }",
"java.math.BigInteger getEftReferenceNumber();",
"public\n\tArrayList<Integer> traverseEulerianCycle() {\n\t\t\n\t\t\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\ttraverseEulerianCycleRec(this.root, result);\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine the smallest unit of time contained in a path as a time parameter | private int determineTimeSteps(String path) {
return
path.contains("#h") ? Calendar.HOUR_OF_DAY : path.contains("#d") ? Calendar.DAY_OF_MONTH :
path.contains("#m") ? Calendar.MONTH : Calendar.YEAR;
} | [
"public static long getMinimumFileTimestampResolution(IPath path) {\r\n\t\t// VFAT on Win32 uses 2 second increments. Linux ext2/3 uses 1 second resolution,\r\n\t\t// until ext4, where it becomes nanoseconds.\r\n\t\t// Assume the worst format in all cases.\r\n\t\tlong res = HostOS.IS_WIN32 ? 2000 : 1000;\r\n\t\tif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The maximum number of sessions in memory. The number of persistent sessions may be larger. | @Description("The configured maximum number of sessions in memory. The number of persistent sessions may be larger")
public int getSessionMax(); | [
"public int getMaxNbOfSession() {\n return maxNbOfSession_;\n }",
"public int getMaxNbOfSession() {\n return maxNbOfSession_;\n }",
"int getMaxNbOfSession();",
"public static int getMaxSessionCount() {\n\t\treturn (maxSessionCount);\n\t}",
"int getMaxNumberOfConcurrentTestSessions();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load the table model with the key pair entries from the Keystore. | public void load() throws CMException {
// Place key pair entries' aliases in a tree map to sort them
TreeMap<String, String> sortedAliases = new TreeMap<>();
for (String alias: credManager.getAliases(KEYSTORE))
/*
* We are only interested in key pair entries here.
*
* Alias for such entrie... | [
"private void loadKeyStore() {\r\n\t\ttry {\r\n\t\t\tthis.keyStore = KeyStore.getInstance(\"JKS\");\r\n\t\t\tthis.keyStore.load(new FileInputStream(this.keyStorePath),\r\n\t\t\t\t\tKEY_STORE_PASSWORD.toCharArray());\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error: cannot load Key Store \" + e.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
rugby expect to beat | @Test
void rugExpectBeat1() {
assertTrue(rug1.expectToBeat(rug2));
} | [
"private void beat() {\n\t\t\tSystem.out.println(\"Heart beating\");\n\t\t}",
"@Test\n public void vmIsSendingHeartbeatsTest()\n {\n this.logger.debug(\"Checking to see if is sending Heartbeats\");\n new Thread(this.node).start();\n \n JsonNode eng_cfg = CcdpUtils.getEngineCfg();\n long hb = 3;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to remove empty spaces in the HashTable | private String[] removeEmptySpaces (String[] unsortedHashTable) {
ArrayList<String> sortedList = new ArrayList<String>(); // create ArrayList for holding valid entries
for (String string : unsortedHashTable) { // for every entry in the unsorted HashTable
if ((string != (null)) && (string != "-----"))... | [
"private static String removeWhiteSpace(final String row) {\n\t\treturn row.trim().replaceAll(\"\\\\s+\", \" \");\n\t}",
"static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o ins... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleEEntity" $ANTLR start "ruleEEntity" InternalRMParser.g:9289:1: ruleEEntity returns [EObject current=null] : ( (lv_entity_0_0= RULE_ENTITY ) ) ; | public final EObject ruleEEntity() throws RecognitionException {
EObject current = null;
Token lv_entity_0_0=null;
enterRule();
try {
// InternalRMParser.g:9295:2: ( ( (lv_entity_0_0= RULE_ENTITY ) ) )
// InternalRMParser.g:9296:2: ( (lv_entity_0_0= RULE_ENTI... | [
"public final EObject entryRuleEEntity() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEEntity = null;\n\n\n try {\n // InternalRMParser.g:9282:48: (iv_ruleEEntity= ruleEEntity EOF )\n // InternalRMParser.g:9283:2: iv_ruleEEntity= ruleEEntity E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXBlockExpression" $ANTLR start "ruleXBlockExpression" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1282:1: ruleXBlockExpression : ( ( rule__XBlockExpression__Group__0 ) ) ; | public final void ruleXBlockExpression() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1286:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )
// ../de.n... | [
"public final void ruleXBlockExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1542:2: ( ( ( rule_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int64 memberId = 2; | long getMemberId(); | [
"private void setMemberId(long value) {\n \n memberId_ = value;\n }",
"int getMemberId2();",
"int getMemberId1();",
"long getSteamid();",
"long getSteamID();",
"public String id() {\n return memberId;\n }",
"public Long getMember_id() {\n return member_id;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private final PushStreamWork mPushStreamWork; Configures encoder and muxer state, and prepares the input Surface. | public VideoEncoderCore2(int width, int height, int bitRate)
throws IOException {
mHandlerThread = new HandlerThread("encode_worker");
mHandlerThread.start();
mHandler = new PushStreamHandler(mHandlerThread.getLooper(), mFrameMessages);
MediaFormat format = MediaFormat.cre... | [
"public void startEncoder(){\n if(mMediaCodec != null){\n Log.i(TAG, \"encoder format is \" + mMediaFormat.toString());\n mMediaCodec.setCallback(mCallback, mVideoEncoderHandler);\n mMediaCodec.configure(mMediaFormat, mSurface, null, CONFIGURE_FLAG_ENCODE);\n mMedi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the percentEnrolledbyRxPlan value for this Account. | public java.lang.String getPercentEnrolledbyRxPlan() {
return percentEnrolledbyRxPlan;
} | [
"public java.lang.String getPercentEnrolledbyPlan() {\n return percentEnrolledbyPlan;\n }",
"public void setPercentEnrolledbyRxPlan(java.lang.String percentEnrolledbyRxPlan) {\n this.percentEnrolledbyRxPlan = percentEnrolledbyRxPlan;\n }",
"public void setPercentEnrolledbyPlan(java.lang.Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the Module's list of aliases. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/include/llvm/IR/Module.h", line = 504,
FQN="llvm::Module::getAliasList", NM="_ZN4llvm6Module12getAliasListEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module1... | [
"@NonNull\n public final List<String> getAliases() {\n return this.aliases;\n }",
"public Collection<String> getAliases() {\n return Collections.unmodifiableCollection(aliases);\n }",
"public String[] getAliases()\n\t{\n\t\treturn aliases;\n\t}",
"public List<String> getAliasList() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if current position is a Room | private boolean isRoom(Position p) {
return !(board[p.x][p.y] instanceof Room);
} | [
"public boolean isRoom(){\n\t\treturn (cellType == CellType.ROOM);\n\t}",
"@Override\r\n\tpublic boolean isInsideRoom() throws UnsupportedOperationException {\r\n\t\tint x = this.position[0];\r\n\t\tint y = this.position[1];\r\n\t\t\r\n\t\tif(this.inMaze(x, y)) {\r\n\t\t\tif(controller.getMazeConfiguration().getM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a TAST for the type structure: 0[1][2], 5 > | public void testTypeASTMapper() {
MyTAST tast = MyTAST.parameterization(0,
MyTAST.arrayOf(1,
MyTAST.arrayOf(2,
MyTAST.parameterization(3,
new MyTAST(4)
)
... | [
"public Type createdType() {\n\t\tType result = elementType;\n\t\tfor (int i = 0; i < levels.size(); i++) {\n\t\t\tresult = new ArrayType(result, new NodeList<>());\n\t\t}\n\t\treturn result;\n\t}",
"public AST parse(AST type_ast) throws Jml2bException {\n\t\t// create a new temporary type\n\t\tType tmp = new Typ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An internal method that fills the patients variable with data read from patient_records.txt | public void populate(String filePath){
Scanner scanner;
try {
scanner = new Scanner(new FileInputStream(filePath));
String[] record;
while (scanner.hasNextLine()) {
record = scanner.nextLine().split(",");
int patientNum = Integer.parseInt(record[0]);
this.patients.add(new Patient(record[1], rec... | [
"public void readPatient() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"patients.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString ssn = fields[0];\n\t\t\t\tString name = fields[1];\n\t\t\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets annotation's stream to the value specified. Subclasses should call this method if they want to read annotations from the stream other then one for objects themselves. | protected void setLocStream(ObjectInputStream in) {
locStream = in;
} | [
"public void setStream(byte[] value) {\n this.stream = ((byte[]) value);\n }",
"public void setInStream(InputStream is) throws IOException {\n\n }",
"public void setInStream(InStrategy s){\n\t\tif(s==null) throw new MVError(\"Cannot set inStream to null\");\n\t\telse inStream = s;\n\t}",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the specified text value to the view and to LogCat. | public void outputText(final TextView view, final String value) {
runOnUiThread(new Runnable() {
@Override
public void run() {
view.append(value + "\n");
System.out.println(view);
}
});
} | [
"private void setText(View view, String text) {\n\t\t((TextView) view.findViewById(android.R.id.text1)).setText(text);\n\t}",
"public void showText(View view) {\n EditText editText = findViewById(R.id.editText_main);\n TextView textView = findViewById(R.id.text_phonelabel);\n if (editText != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the textFont to use for rendering. Call to update the text textFont settings | public CanvasFont getFont() {
return this.textFont;
} | [
"public Typeface updateTextFont() {\n Typeface family;\n switch (font) {\n\n case default_bold:\n family = Typeface.DEFAULT_BOLD;\n break;\n case monospace:\n family = Typeface.MONOSPACE;\n break;\n case sans_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies that indexes for property ProgressBooks in zObjVal are the same as in Cache. It does not return anything but it throws an exception in case of inconsistency. Please note, that if there is any inconsistency in zObjVal indexes this is fatal and class can not work correctly and must be regenerated. | public static void checkProgressBooksValid (com.intersys.objects.Database db) throws com.intersys.objects.CacheException {
checkZobjValid(db, CACHE_CLASS_NAME, "ProgressBooks",ii_ProgressBooks, jj_ProgressBooks, kk_ProgressBooks);
} | [
"public void verifyIndex(PackIndex idx)\n\t\t\tthrows CorruptPackIndexException {\n\t\tObjectIdOwnerMap<ObjFromPack> inPack = new ObjectIdOwnerMap<>();\n\t\tfor (int i = 0; i < getObjectCount(); i++) {\n\t\t\tPackedObjectInfo entry = getObject(i);\n\t\t\tinPack.add(new ObjFromPack(entry));\n\n\t\t\tlong offs = idx.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make sure we delete 0sized block when deleting an underconstruction file | @Test
public void testDeletionWithZeroSizeBlock2() throws Exception {
final Path foo = new Path("/foo");
final Path subDir = new Path(foo, "sub");
final Path bar = new Path(subDir, "bar");
DFSTestUtil.createFile(hdfs, bar, BLOCKSIZE, REPLICATION, 0L);
hdfs.append(bar);
INodeFile barNode = fs... | [
"@Test\n public void testDeletionOfLaterBlocksWithZeroSizeFirstBlock() throws Exception {\n final Path foo = new Path(\"/foo\");\n final Path bar = new Path(foo, \"bar\");\n final byte[] testData = \"foo bar baz\".getBytes();\n \n // Create a zero-length file.\n DFSTestUtil.createFile(hdfs, bar, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true, if the log level allows debug messages to be printed. | public static boolean isDebugEnabled() {
return getInstance().getDebuglevel() >= LogTarget.DEBUG;
} | [
"public boolean isDebugEnabled() {\n return isLevelEnabled(LOG_LEVEL_DEBUG);\n }",
"public boolean isDebugEnabled() {\n\t\treturn this.logger.isDebugEnabled();\n\t}",
"public final boolean isDebugOn()\n {\n return this.getPropertyValue(GUILoggerSeverityProperty.DEBUG);\n }",
"public b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the given course to the schedule only if it is not in conflict with courses currently on the schedule. | public boolean add(Course course) {
for (Course c : this.courses) {
if (c.inConflict(course)) {
return false;
}
}
this.courses.add(course);
return true;
} | [
"private void addToCoursesInSchedule(String course) {\n coursesInSchedule[currentCourses] = course;\n currentCourses++;\n }",
"public void addCourse(Course c) {\n if (this.contains(c) != true) { // checking if the course is in the courseList or not\n courseList.add(c);\n numOfCourses... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "angularRateUnit" flips.g:715:1: angularRateUnit : ( 'rpm' > REVOLUTION MINUTE | ( 'hz' | 'hertz' ) > REVOLUTION SECOND | ( 'rev' | 'revs' | 'revolution' | 'revolutions' ) Per timeUnit > REVOLUTION timeUnit ); | public final flipsParser.angularRateUnit_return angularRateUnit() throws RecognitionException {
flipsParser.angularRateUnit_return retval = new flipsParser.angularRateUnit_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token string_literal491=null;
Token string... | [
"public final flipsParser.angularUnit_return angularUnit() throws RecognitionException {\n flipsParser.angularUnit_return retval = new flipsParser.angularUnit_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal506=null;\n Token string_lit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get one purchaseOrder by id. | @Transactional(readOnly = true)
public PurchaseOrder findOne(Long id) {
log.debug("Request to get PurchaseOrder : {}", id);
return purchaseOrderRepository.findOne(id);
} | [
"PurchaseOrder getPurchaseOrderById(Integer id) throws DvdStoreException;",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"Order getOrder(int id);",
"OrderInfo fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set text in textArea2 to select text from textArea1 | public void actionPerformed(ActionEvent event){
textArea2.setText(textArea1.getSelectedText());
} | [
"public void actionPerformed(ActionEvent e) {\n String text = textField1.getText();\n textField2.setText(text);\n\n }",
"void copyTextToTextBox(String text,boolean isMaxSet);",
"public void Buscar(JTextPane texto){\n //Asigno a la variable textoBuscar el texto seleccionado en... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Persist a permission owner to the data layer, creating or updating the owner as appropriate. | public IPermissionOwner saveOwner(IPermissionOwner owner); | [
"PermissionModel setOwnerId(String ownerId);",
"public IPermissionOwner getOrCreatePermissionOwner(String name, String fname);",
"public void save(Owner o){\n this.ownerRepo.save(o);\n }",
"public void setOwnerPermission(TUserPermission ownerPermission) {\n\n\t\tthis.ownerPermission = ownerPermissio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the logarithmic binomial of the two parameters. | public static double logBinomialCoefficient(long n, float k){
return log_gamma(n+1) - (log_gamma(k+1) + log_gamma(1+n-k));
} | [
"double log(double a, double base){\n }",
"public static double logBase2(double x){\n return Math.log(x)/Math.log(2);\n }",
"private double log(int x, int base){\r\n\t return (Math.log(x) / Math.log(base));\r\n\t}",
"private static long binomial(int n, int r) {\n long prod = 1;\n for (int i =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Primary__Group_0__1__Impl" $ANTLR start "rule__Primary__Group_0__2" InternalTym.g:3067:1: rule__Primary__Group_0__2 : rule__Primary__Group_0__2__Impl ; | public final void rule__Primary__Group_0__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalTym.g:3071:1: ( rule__Primary__Group_0__2__Impl )
// InternalTym.g:3072:2: rule__Primary__Group_0__2__Impl
{
pushFoll... | [
"public final void rule__Primary__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:31083:1: ( rule__Primary__Group_0__2__Impl )\n // InternalDsl.g:31084:2: rule__Primary__Group_0__2__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should verbose comments be written into the normalized metadata? Constructor for the NRIndexer object | public NRIndexer2() { } | [
"public interface IndexMetadata extends Freezable<IndexMetadata> {\n\t\n\tAnnotatedFields annotatedFields();\n\t\n\tdefault AnnotatedField mainAnnotatedField() {\n\t return annotatedFields().main();\n\t}\n\t\n default AnnotatedField annotatedField(String name) {\n return annotatedFields().get(name);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new set of type. | protected static BaseSet makeNewSet(PyType type) {
return makeNewSet(type, null);
} | [
"Set createSet();",
"protected abstract Set<T> newSet();",
"public Types createTypes();",
"DomainSetType createDomainSetType();",
"protected static BaseSet makeNewSet(PyType type, PyObject iterable) {\n BaseSet so;\n if (type == PySet.TYPE) {\n so = new PySet(iterable);\n } e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns service ID of a given host. | public VtnServiceId serviceId() {
String serviceId = host.annotations().value(SERVICE_ID);
return VtnServiceId.of(serviceId);
} | [
"java.lang.String getHostId();",
"int serviceId(String serviceName)\n {\n return _serviceCache.serviceId(serviceName);\n }",
"String getServiceId();",
"java.lang.String getServiceId();",
"public static String getHostID() {\n return Tracer.hostId;\n }",
"public String getHostId() {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes this object. This method resolves the specified dependency and, recursively, all dependencies it depends on. The found bean providers are stored in an internal data structure. If a dependency cannot be resolved, a InjectionException exception is thrown. The return value indicates whether all found bean prov... | public boolean initialize(Dependency dependency, BeanStore store)
{
Map<Dependency, BeanProvider> depMap = new HashMap<Dependency, BeanProvider>();
Queue<Dependency> q = new LinkedList<Dependency>();
q.add(dependency);
while (!q.isEmpty())
{
Dependency d = q.remo... | [
"private void verifyInjectionIsAvailable() {\n LookupService lookupService = LookupService.get();\n // This crazy stream operation basically collects all class names where we need to verify that\n // it belongs to an injectable bean\n Stream.of(\n schema.getQueries().strea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ method taking two arguments name that is to be saved and id of the name from SQLite if the name is successfully sent we will update the status as synced in SQLite | private void saveName(final int id,final String status, final String age, final String latitude,final String longitude, final String name) {
} | [
"private void saveName(final int id, final String name) {\n //Call call = retrofit.create(APIInterface.class).saveName(name);\n Call call = apiInterface.saveName(name);\n call.enqueue(new Callback<ResponseName>() {\n @Override\n public void onResponse(Call<ResponseName> cal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 flag = 11; | int getFlag(); | [
"long getFlags();",
"Flag createFlag();",
"public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}",
"Flag getFlag();",
"public Integer getFLAG() {\n return FLAG;\n }",
"int getFlags();",
"com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a nfl_plays.fumble table reference | public Fumble() {
this("fumble", null);
} | [
"private void createFingerTable() {\n\t\tfinger = new ArrayList<Finger>();\n\t\tfinger.add(null);\n\t\tfor(int i=1; i<=m; i++) {\n\t\t\tfinger.add(new Finger(nodeId, i));\n\t\t}\n\t}",
"private static void createFingerTables(boolean showTables, int bBit, ArrayList<Integer> nodes) {\r\n \tFingerTables.createFin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes, from String text, the portion of text after the rightmost occurrence of the specified separator. Ex.: removeSuffix("readme.txt", ".") Returns "readme". | public static String removeSuffix(String text, String separator) {
int index = text.lastIndexOf(separator);
if (index == -1) {
return text;
}
return text.substring(0, index);
} | [
"private static String truncateAfter(String s, String separator)\r\n {\r\n int idx = s.toLowerCase().indexOf(separator.toLowerCase());\r\n return (idx > -1 ? s.substring(0, idx) : s);\r\n }",
"public final static String cutTrailingSeparator(\n final String path,\n final c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert another bound string including both string and bindings. | public void insert(BoundString bstr) {
this.sb.insert(0, bstr.getString());
this.bindings.addAll(0, bstr.getBindings());
} | [
"public void append(BoundString bstr) {\r\n\t\tthis.sb.append(bstr.getString());\r\n\t\tthis.bindings.addAll(bstr.getBindings());\r\n\t}",
"public static String bind(String id, String binding1, String binding2) {\r\n \treturn bind(id, new String[] {binding1, binding2});\r\n }",
"public static String bind(String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method take administrator profile from database through VehicleDekhoservice and set profile as a request attribute and dispatch request to AdminHome.jsp | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Map<String, String> profile;
VehicleDekhoService service = new VehicleDekhoService();
try {
profile = service.getProfile();
request.setAttribute("profile", profile);
} catch (VehicleDekh... | [
"@RequestMapping(value = \"/applicantProfile\", method = RequestMethod.GET)\n\tpublic ModelAndView applicantProfile(Model model,HttpServletRequest request) throws Exception\n\t{\n\t\t\n\t\tApplicant applicant=(Applicant) request.getSession().getAttribute(\"applicant\");\n\t\treturn new ModelAndView(\"applicantProfi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |