query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns a newly instantiated SlidesConfig class that contains path to the image directory, path to the sound files, selection of manual or automatic change, and if automatic is selected, the interval of change. | public SlidesConfig getSlidesConfig()
{
String slidesFolder = folderPathTextField;
if (slidesFolder.trim().isEmpty()) {
slidesFolder = null;
}
String[] soundFiles = wavComponent.getElements().stream().map(SelectableElement::getData).toArray(String[]::new);
boolean... | [
"public PictureConfig getConfig() {\n return config;\n }",
"public StepConfig getConfig() {\n StepConfig stepConfig = new StepConfig();\n stepConfig.setEnableTickCallback(true);\n stepConfig.setRunningPeriodicDelay(5);//10 Seconds\n stepConfig.setMonitorEnabledForStep(true);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setMotor method, of class Motorization. | @Test
public void testSetMotor() {
System.out.println("setMotor");
String motor = "GE CF6-80C2B1F";
Motorization instance = new Motorization();
instance.setMotor(motor);
} | [
"void setMotor(Motor motor);",
"@Test\n public void testSetMotorType() {\n System.out.println(\"setMotorType\");\n String motorType = \"swzrsdfxhb\";\n Motorization instance = new Motorization();\n instance.setMotorType(motorType);\n\n }",
"@Test\n public void testSetMotor_t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the layout of the footer frame | public void createFooterLayout(List<Node> elements) {
footerFrame = new BorderPane();
Label currentKeg = (Label) elements.get(0);
Button adminSettings = (Button) elements.get(1);
StackPane headerStack = new StackPane();
adminSettings.setGraphic(images.get("settings"));
... | [
"private void createFooter() {\n okButton = new JButton(new OKAction());\n JPanel footerPanel = new JPanel(new MigLayout(\"fill, insets 0 15 10 15\"));\n footerPanel.add(okButton, \"alignx right, aligny bottom, split, tag ok\");\n footerPanel.add(new JButton(new CancelAction()), \"aligny... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Expression List Entry'. | ExpressionListEntry createExpressionListEntry(); | [
"public static EntryList getEntryList(){\n if (entryList == null){\n entryList = new EntryList();\n\n }\n return entryList;\n }",
"ExpressionList createExpressionList();",
"public Registry(List<Entry> entryList){\n\t\tthis.entryList = entryList;\n\t}",
"Entry createEntry();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the page has requested to go fullscreen. The delegate is responsible for putting the system into fullscreen mode. The delegate can exit out of fullscreen by running the supplied Runnable (calling exitFullscreenRunner.Run() results in calling exitFullscreen()). NOTE: we expect WebLayer to be covering the who... | public abstract void onEnterFullscreen(@NonNull Runnable exitFullscreenRunner); | [
"public abstract void onExitFullscreen();",
"public void doToggleFullscreen() {\n // If there is no callback for handling fullscreen, don't do anything.\n if (fullscreenCallback == null) {\n return;\n }\n\n MediaPlayerController playerControl = layerManager.getControl();\n if (playerControl ==... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ITERATE FROM COMPOSITE CLUSTERED ENTITY | @Test
public void should_iterate_with_partition_keys_and_partition_keys_IN() throws Exception {
//Given
long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
insertCompositeClusteredValues(partitionKey,"bucket1",1,"name1",1);
insertCompositeClusteredValues(partitionKey,"bucket... | [
"@Test\n public void should_iterate_with_default_params() throws Exception {\n long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);\n insertClusteredValues(partitionKey, 1, \"name1\", 5);\n\n Iterator<ClusteredEntity> iter = manager.sliceQuery(ClusteredEntity.class)\n .... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert all the days an alarm is scheduled to go off, to Calendars. | public static List<Calendar> toCalendars(NacAlarm alarm)
{
List<Calendar> calendars = new ArrayList<>();
// Alarm is null. Return an empty list
if (alarm == null)
{
return calendars;
}
// No days are selected. This alarm will occur either today or tomorrow and
// is a one-time alarm
if (!alarm.are... | [
"Calendar toCalendar();",
"public static HolidayCalendar[] calendarArray() {\n return new HolidayCalendar[] {TARGET };\n }",
"public void removeAllCalendar();",
"public static Calendar toCalendar(NacAlarm alarm, Day day)\n\t{\n\t\tint dow = NacCalendar.Days.toCalendarDay(day);\n\t\tint hour = alarm.getHou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the networkAccessPolicy property: Policy for accessing the disk via network. | public NetworkAccessPolicy networkAccessPolicy() {
return this.networkAccessPolicy;
} | [
"@NonNull\n public NetworkPolicy getNetworkPolicy() {\n return networkPolicy;\n }",
"public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy(\n com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Forwards the request to delete the given term to the repo | public void deleteTerm(TermEntity term) {
mRepository.deleteTerm(term);
} | [
"Observable<String> deleteTermAsync(String listId, String term, String language);",
"public void removeTerm(VocabularyTerm term) throws IOException;",
"public void deleteSingleTerm(String termName)\n\t{\t\t\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this met... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'approvalDetails' field has an active Builder instance | public boolean hasApprovalDetailsBuilder() {
return approvalDetailsBuilder != null;
} | [
"public boolean hasApprovalDetails() {\n return fieldSetFlags()[17];\n }",
"public boolean isSetApprovalPerson() {\n return this.approvalPerson != null;\n }",
"public boolean isSetApprovalDate() {\n return this.approvalDate != null;\n }",
"public boolean isSetApprovalStep() {\n return this.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method sets the value of the database column WLSCM.JAT_MATER_TRANS.STYLEORNACLASS | public void setStyleornaclass(BigDecimal styleornaclass) {
this.styleornaclass = styleornaclass;
} | [
"protected void setStyle(RMTextStyle aStyle) { _style = aStyle; }",
"public void setStyle(Style newStyle){\r\n\tstyle = newStyle;\r\n }",
"protected String getStyleClass()\n {\n return _styleClass;\n }",
"public void setStyle(String operationStyle)\n {\n mOperationStyle = operationStyle;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for NtnNo, using the alias name NtnNo. | public String getNtnNo() {
return (String)getAttributeInternal(NTNNO);
} | [
"public String getNRN();",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"public Number getNoatel()\r\n {\r\n return (Number) getAttributeInternal(NOATEL);\r\n }",
"public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ (2) The signatures on each input of the transaction are valid | private boolean checkSignatures(Transaction tx) {
boolean isValid = false;
int i = 0;
for (Transaction.Input txInput : tx.getInputs()) {
if (txInput.outputIndex >= 0 && txInput.prevTxHash.length > 0) {
UTXO utxo = new UTXO(txInput.prevTxHash, txInput.outputIndex);
... | [
"@Test\n public void testValidSig() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the details of stage columns within this particular DataStage job using the type provided: some IGC versions need to retrieve 'stage_column' and others must retrieve 'ds_stage_column'. | private List<StageColumn> getStageColumnDetailsForLinks(String usingType, String jobRid) throws IGCException {
final String methodName = "getStageColumnDetailsForLinks";
IGCSearch igcSearch = new IGCSearch(usingType);
igcSearch.addProperties(DataStageConstants.getStageColumnSearchProperties());
... | [
"private void getStageColumnDetailsForLinks() throws IGCException {\n String jobRid = job.getId();\n log.debug(\"Retrieving stage column details for job: {}\", jobRid);\n List<StageColumn> stageCols = getStageColumnDetailsForLinks(\"stage_column\", jobRid);\n if (stageCols == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get token life duration | Duration getTokenExpiredIn(); | [
"public long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }",
"public long getTokenValidityInSecondsForRememberMe() {\n return tokenValidityInSecondsForRememberMe;\n }",
"public Long getExpiryDuration() {\n return jwt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the action associated with this form instance maps to the Narrative page | private boolean isNarrativeAction() {
boolean isNarrativeAction = false;
if (StringUtils.isNotBlank(actionName) && StringUtils.isNotBlank(getMethodToCall())
&& actionName.contains("AbstractsAttachments")
&& StringUtils.isEmpty(navigateTo) && !getMethodToCall().equalsIgno... | [
"public boolean isPageRequested() {\n\n // If we're in add XML MO mode and have at least one future MO, a new page is not desired.\n if (wizard.isInAddXmlMoMode() && wizard.hasFutureManagedObjects()) {\n return false;\n }\n\n return getPageIdx() >= 0;\n }",
"public boolean isSetAction() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new XY series consisting of the x values and the imaginary parts of the complex y values in this complex XY series. | public XYSeries imagXYSeries()
{
final XYSeriesComplex outer = this;
return new XYSeries()
{
public int length()
{
return outer.length();
}
public double x (int i)
{
return outer.x (i);
}
public double y (int i)
{
return outer.imag (i);
}
};
} | [
"public Series imagSeries()\n\t\t{\n\t\tfinal XYSeriesComplex outer = this;\n\t\treturn new Series()\n\t\t\t{\n\t\t\tpublic int length()\n\t\t\t\t{\n\t\t\t\treturn outer.length();\n\t\t\t\t}\n\t\t\tpublic double x (int i)\n\t\t\t\t{\n\t\t\t\treturn outer.imag (i);\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public XYSeries re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Popup to remove a trap | private void popupRemoveTrap() {
new AlertDialog.Builder(this)
.setTitle("Remove " + trap.getName())
.setMessage("Do you really want to remove " + trap.getName() + "?")
.setIcon(android.R.drawable.ic_dialog_alert)
.setPositiveButton(android.R.stri... | [
"private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}",
"public void removeBtnHandler(MouseEvent event){\n RemoveScreenStarter r = new RemoveScreenStarter(); //Open remove windwo\n r.start(null);\n }",
"void commandHidePopup() throws UnifyException;",
"private void Remove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the usuarioFirmante value for this RequestExternalGenerarTarea. | public void setUsuarioFirmante(generartarea.external.services.satra.gedo.gcaba.gob.ar.RequestExternalGenerarTareaUsuarioFirmanteEntry[] usuarioFirmante) {
this.usuarioFirmante = usuarioFirmante;
} | [
"public generartarea.external.services.satra.gedo.gcaba.gob.ar.RequestExternalGenerarTareaUsuarioFirmanteEntry[] getUsuarioFirmante() {\n return usuarioFirmante;\n }",
"public void setUsuario(java.lang.String usuario) {\n this.usuario = usuario;\n }",
"public void setUsuarioRegistro(String u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// whatsAtPos test // // This test case is unique and distinct because we are testing a condition in which our board is empty and thus our method should always return false | @Test
public void test_WhatsAtPos_boardEmpty(){
char[][] boardArray;
boardArray = new char[5][8];
for(int i = 0; i < 5; i++){
for(int j = 0; j < 8; j++){
boardArray[i][j] = ' ';
}
}
IGameBoard ourBoard = boardMake... | [
"@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ function encoding our problem to sat | @Override
public CNFFormula encodeToSAT ()
{
CNFFormula formula = super.encodeToSAT ();
encodeForbiddenColorClauses (formula);
encodeExplicitOneOnOneMappingPieces (formula);
encodeExplicitOneOnOneMappingPlaces (formula);
return formula;
} | [
"double[] encodeNetwork();",
"void decode(T solution, double[] values);",
"private static void encode(short di, BSI bsi) {\n // compute di category\n short di_abs;\n if (di < 0) {\n di_abs = (short)-di;\n } else {\n di_abs = di;\n }\n byte ni = com... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
computer play Computer checks the board from the first row to the last row. In each row, the computer checks from the first column to the last column. The simplest placement is to find the first available cell. A more sophisticated approach is to use "mark first; if unfit, then remove mark" 1. Try to win first. Mark an... | public void computerPlay() {
System.out.print("Computer places O at ");
int numRows = board.getNumRows();
int numCols = board.getNumCols();
for (int row = 0; row < numRows ; row++){
for (int col = 0; col <numCols ; col++)
if (board.isAvailable(row, col... | [
"static int blockOrWin(char[][] board){\r\n int open = 0;\r\n int human = 0;\r\n int comp = 0;\r\n boolean win = false;\r\n int cell = -1;\r\n int openPos = 0;\r\n \r\n //check for horizontal block/win\r\n for (int row = 0; row < 3; row++){\r\n for (int col = 0; col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'OT_AVAIL_CACHE_IND' field. | public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTAVAILCACHEIND() {
OT_AVAIL_CACHE_IND = null;
fieldSetFlags()[11] = false;
return this;
} | [
"public void setOTAVAILCACHEIND(java.lang.CharSequence value) {\n this.OT_AVAIL_CACHE_IND = value;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setOTAVAILCACHEIND(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.OT_AVAIL_CACHE_IND... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
declare and instantiate a FileController object for text file "student.txt" | public static void main (String[] args) throws IOException {
File file = new File ("student.txt");
FileController fc = new FileController (file);
ArrayList<String> recs = new ArrayList <String>();
ArrayList<String> recsReturn;
recs.add("031111A;Mary Tan;1/06/1981;100;100;90");
recs.add("155555P... | [
"public FileController() {\n\n\t}",
"public void openTxtFile() {\n try {\n input = new ObjectInputStream(new FileInputStream(\"myfile.txt\"));\n System.out.println(\"*** txt File opened for reading ***\");\n } catch (IOException iow) {\n System.out.println(\"Error op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the okuSofor by id. | @Override
public void delete(Long id) {
log.debug("Request to delete OkuSofor : {}", id);
okuSoforRepository.delete(id);
} | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete OkuSefer : {}\", id);\n okuSeferRepository.delete(id);\n okuSeferSearchRepository.delete(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure the directory exists and has the given permissions. Security risk: the mode argument is passed as is to chmod (and thus may be used to inject undesired switches). Only pass values you trust as this argument. | public static void mkdir (String path, String mode) throws IOException, InterruptedException
{
final File f = new File(path);
final String abs_path = f.getAbsolutePath();
if (!f.mkdirs())
{
throw new RuntimeException(
"could not create " + path + "; " +
... | [
"private static void setFilePermissions(String path, int mode) throws Exception {\n \n int errorCode = (Integer) Class.forName(\"android.os.FileUtils\")\n .getMethod(\"setPermissions\", String.class, int.class, int.class, int.class)\n .invoke(null, path, mode, -1, -1);\n assertThat(errorCode)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column BLACKLIST_OVERRIDE_REASON.PARENT_REF | public void setPARENT_REF(String PARENT_REF) {
this.PARENT_REF = PARENT_REF == null ? null : PARENT_REF.trim();
} | [
"public void setPARENT_APP_REF(BigDecimal PARENT_APP_REF) {\r\n this.PARENT_APP_REF = PARENT_APP_REF;\r\n }",
"public void setPARENT_COUNTRY_CODE_OLD(BigDecimal PARENT_COUNTRY_CODE_OLD)\r\n {\r\n\tthis.PARENT_COUNTRY_CODE_OLD = PARENT_COUNTRY_CODE_OLD;\r\n }",
"public String getPARENT_REF() {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the level of enchantment of the item | public int getEnchantLevel()
{
return _enchantLevel;
} | [
"public int getItemEnchantability()\n {\n return this.toolMaterial.getEnchantability();\n }",
"public int getItemEnchantability()\r\n {\r\n return this.toolMaterial.getEnchantability();\r\n }",
"public int getItemEnchantability()\n\t{\n\t\treturn 0; //this.material.getEnchantability();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an instance of VoucherSaleModeInfo given an JSON string | public static VoucherSaleModeInfo fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, VoucherSaleModeInfo.class);
} | [
"public static VoucherPackageSalesInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, VoucherPackageSalesInfo.class);\n }",
"public static IsvMerchantSalesDetailRequest fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Number of bytes being requested (<= 1024) optional uint32 data_length = 1; | int getDataLength(); | [
"int getRequestDataLength();",
"int getDataSize();",
"public int getDataLength() {\n\t\treturn length;\n\t}",
"boolean hasRequestDataLength();",
"public int length(){\n\t\treturn data.length;\n\t}",
"int getResponseDataLength();",
"Long payloadLength();",
"public @Int32 int getUserDataLength();",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the grouping size. Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3. | public void setGroupingSize(int newValue) {
groupingSize = (byte) newValue;
} | [
"public void setGroupingSize(int newValue) { throw new RuntimeException(\"Stub!\"); }",
"public void setGroupingSize(AVT v)\n {\n m_groupingSize_avt = v;\n }",
"int getGroupingSize() {\n return groupingSize;\n }",
"public void setDecimalSize(int size);",
"public AVT getGroupingSize()\n {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getElements get ordered list of menu elements that are members of this menu; possibly contains options, nested menus, or separators | public List<MenuElement> getElements()
{
return elements;
} | [
"public List<OpcionMenu> getElementosMenu()\n\t{\n\t\treturn elementosMenu;\n\t}",
"@Override\n public List<WebElement> getSubMenu() {\n\n final List<WebElement> subMenus = DriverConfig.getDriver().findElements(\n By.xpath(\"//*[@id='submenu']/a\"));\n if (subMenus != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BodyRepetition__Group__1" $ANTLR start "rule__BodyRepetition__Group__1__Impl" ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/srcgen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4352:1: rule__BodyRepetition__Group__1__Impl : ( ( rule__BodyRepetition__NumberAssignment_1 ) ) ; | public final void rule__BodyRepetition__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4356:1: ( ( ( rule__... | [
"public final void rule__BodyRepetition__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4344:1: ( rule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This filter specifies a structured syntax to match against the [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for this expression is a subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a property name and the right of th... | @java.lang.Deprecated
java.lang.String getCustomPropertyFilter(); | [
"boolean isFilterByExpression();",
"private void renderFilterProperties(Collection<StringPropertyFilter> properties,\r\n StringBuilder query, List<Object> args) {\r\n if (properties == null || properties.size() == 0) {\r\n return;\r\n }\r\n List<StringPropertyFilter> gen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Proxy uri. | public ProxyUri() {
this.number = 35;
this.formatter = StringFormatter.getInstance();
this.minSize = 1;
this.maxSize = 1034;
} | [
"public ProxyUri(String s) {\n this();\n value = s;\n }",
"URI createURI();",
"public static <T> ProxyAndInfo<T> createProxy(Configuration conf,\n URI nameNodeUri, Class<T> xface) throws IOException {\n return createProxy(conf, nameNodeUri, xface, null);\n }",
"void setProxyUri(Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs and returns the ServiceItemFilter to be applied by the service discovery manager to the results of the template matching. | protected ServiceItemFilter getFirstStageFilter() {
return new TestFilter2(); //returns even-valued services
} | [
"public static DiscoveryFilter discoveryFilter() {\n return new DiscoveryFilter(ID, \"FireTV\");\n }",
"T getMatchingItem(Filter filter);",
"FilterPattern createFilterPattern();",
"@Override\n public Filter getFilter() {\n return new Filter() {\n @Override\n protected... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'fired' field is set and is not null | public boolean isNotNullFired() {
return genClient.cacheValueIsNotNull(CacheKey.fired);
} | [
"public boolean isFired(){\n return fired;\n }",
"public boolean hasFired() {\n return genClient.cacheHasKey(CacheKey.fired);\n }",
"public boolean isSetEvents() {\n return this.events != null;\n }",
"public final synchronized boolean hasTriggered()\n {\n return triggered ;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the crewId value for this FlightDetails. | public int getCrewId() {
return crewId;
} | [
"public long getCrewNumber() {\n\t\treturn _tempNoTiceShipMessage.getCrewNumber();\n\t}",
"public void setCrewId(int crewId) {\r\n this.crewId = crewId;\r\n }",
"@Override\n\tpublic long getId() {\n\t\treturn _tempCrewList.getId();\n\t}",
"public CrewMember getCrew() {\r\n\t\treturn this.crewSelect;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XOrExpression__Group_1__1" $ANTLR start "rule__XOrExpression__Group_1__1__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4646:1: rule__XOrExpression__Group_1__1__Impl : ( ( rule__XOrExpression__RightOperandAssignment_1_1 ) ) ; | public final void rule__XOrExpression__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4650:1: ( ( ( rule__XOrExpression__Ri... | [
"public final void rule__XOrExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5547:1: ( ( ( rule_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
drops apples on the given tiles | public void appleBomb(List<Tile> area) {
for (Tile t :
area) {
int x = t.getCoordinate().getX();
int y = t.getCoordinate().getY();
if (isOnMap(x, y) && !isWall(t.getCoordinate()))
updateTile(x, y, TileType.Apple);
}
} | [
"public void dropNewTile() {\n ArrayList<Integer> emptyTilesX= new ArrayList<Integer>();\n ArrayList<Integer> emptyTilesY= new ArrayList<Integer>();\n\n for(int x= 0; x<4; x++) {\n for(int y= 0; y<4; y++) {\n if(board[x][y]==0) {\n emptyTilesX.add(x)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Getters a getter for the direction vector | public Vector get_direction() {
return _direction;
} | [
"public DependenceDirection getDirectionVector()\n {\n return _directionVector;\n }",
"public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}",
"public Vector2 getDirection() { return direction.cpy(); }",
"default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We're being destroyed. It's important to dispose of the helper here! | @Override
public void onDestroy() {
super.onDestroy();
// very important:
BasesUtils.logDebug(TAG, "Destroying helper.");
if (mHelper != null) {
try {
mHelper.dispose();
} catch (Exception e) {
BasesUtils.logError(TAG, "Google onDestroy() exception:" + e.getM... | [
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\t// very important:\n\t\tLog.d(TAG, \"Destroying helper.\");\n\t\tif (mHelper != null)\n\t\t\tmHelper.dispose();\n\t\tmHelper = null;\n\t}",
"protected void cleanup() {\n }",
"private void cleanup()\n\t{\n\t}",
"@Override\n public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
deleteDVD Delete a dvd. | private void deleteDVD(){
try{
DVDCtr dvdCtr = new DVDCtr();
Scanner keyboard = new Scanner(System.in);
System.out.print("What's the ID of the dvd you want to delete?" );
int deleteID = keyboard.nextInt();
String title = dvdCtr.getTitleByID(delet... | [
"@Test\n public void testDeleteDVD() {\n Director director = new Director();\n director.setDirectorName(\"dirTest\");\n\n Studio studio = new Studio();\n studio.setStudioName(\"stuTest\");\n\n Dvd dvd = new Dvd();\n dvd.setTitle(\"Test Title\");\n dvd.setReleaseYe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if the definition is a type definition. | public boolean isTypeDefinition()
{
return false;
} | [
"public TypeDefinition isType(String name){\n return((TypeDefinition)typeDefs.get(getDefName(name)));\n }",
"boolean isBuiltInType();",
"public boolean hasName() {\n return typeDeclaration.hasName();\n }",
"public boolean isContainedType(ResourceTypeDefinition def, String resourceTypeName)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testCheckRoot() Tests the checkRoot() method of ProofTree. | @Test
public void testCheckRoot(){
//Test a right-only tree
ProofTree t1 = ProofTree.createATree("~q");
assertTrue(t1.checkRoot("~"));
//Test a root-only tree
t1 = ProofTree.createATree("a");
assertTrue(t1.checkRoot("a"));
//Test a simple tree
t1 = ProofTree.createATree("(a=>b)");
assertTrue(t1... | [
"@Test\n public void testRoot() {\n String message = \"Root node was incorrectly determined\";\n assertEquals(message, root, root);\n assertEquals(message, root, node1.root());\n assertEquals(message, root, node4.root());\n assertEquals(message, root, node7.root());\n as... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the constructor of a lambda yes/no menu with a title and an action on clicking yes or no | public LambdaYesNoMenu(final String title, final Consumer<Player> onYes, final Consumer<Player> onNo) {
super(title);
this.onYes = onYes;
this.onNo = onNo;
} | [
"public LambdaYesNoMenu(final String title, final Consumer<Player> onYes) {\r\n\t\tsuper(title);\r\n\t\t\r\n\t\tthis.onYes = onYes;\r\n\t\tthis.onNo = null;\r\n\t}",
"public LambdaYesNoMenu(final String title, final ItemStack item, final Consumer<Player> onYes, final Consumer<Player> onNo) {\r\n\t\tsuper(title, i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor creates a new FormLine object based on the name and help String passed to it as arguments. It will create a JPanel and fill it with a customdrawn JPanel for feedback, a JLabel, a JTextField, and a JButton for help. | public FormLine(String name, String help, Predicate<String> predicate) {
super();
this.help = help;
this.predicate = predicate;
setLayout(new FlowLayout());
notifySpot = new JPanel() {
private static final long serialVersionUID = -5602302297053566788L;
@O... | [
"public QuestionPanel(Question question)\r\n\t {\r\n\t this.question = question;\r\n\t \r\n\t text = new JLabel(\" \" + question.getText());\r\n\t \r\n\t setLayout(new GridLayout(1, 2));\r\n\t setBorder(BorderFactory.createLineBorder(Color.WHITE));\r\n\t text.setAlignmentY(0.5F);\r\n\t add... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for DcmJobView. | public ViewObjectImpl getDcmJobView() {
return (ViewObjectImpl)findViewObject("DcmJobView");
} | [
"public Dsjob getJobObject() { return job; }",
"public ViewObjectImpl getJobsView1() {\n return (ViewObjectImpl) findViewObject(\"JobsView1\");\n }",
"@Override\n\tpublic JobListView getJobListView() {\n\t\tif(jobListView == null){\n\t\t\tjobListView = new JobListViewImpl();\n\t\t}\n\t\treturn jobList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if AUTO_PK_TABLE already exists in the database. | protected boolean autoPkTableExists(DataNode node) throws SQLException {
Connection con = node.getDataSource().getConnection();
boolean exists = false;
try {
DatabaseMetaData md = con.getMetaData();
ResultSet tables = md.getTables(null, null, "AUTO_PK_SUPPORT", null);
... | [
"abstract boolean tableExist() throws SQLException;",
"private boolean checkExisitingPK(String table, String PK) throws SQLException {\n\t\tString query = \"SELECT COUNT(*) FROM \" + tables.get(table) + \" WHERE \" + pks.get(table) + \"=\" + PK;\n\t\tResultSet rs = query(query);\n\t\trs.next();\n\t\tint num = rs.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method that makes the Player buttons visible called when user is loged in. | private void showPlayerButtons() {
previous.setVisibility(View.VISIBLE);
play.setVisibility(View.VISIBLE);
next.setVisibility(View.VISIBLE);
} | [
"protected void onUserVisible() {\n }",
"private void playingButtons() {\n\t\tcloseButton.setEnabled(false);\n\t\tpauseButton.setEnabled(true);\n\t}",
"private void showPlayerOptions() {\n playStartLinearLayout.setVisibility(View.INVISIBLE);\n timeInfoLinearLayout.setVisibility(View.INVISIBLE);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
go to particular channel | boolean goToChannel(int channel_id) {
for (Map.Entry channel : channel_list.entrySet()) {
if (channel.getKey() == channel_id) {
current_channel = channel_id;
return true;
}
}
return false;
} | [
"Channel channel();",
"public Channel nextChannel();",
"public void nextChannel() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.NEXT_CHANNEL));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates if the Bishops move set allows it to move from its current location (the Tile it currently is placed on) to the desired location (the given target Tile). This method only checks if the move is possible from the viewpoint of the chess piece. It returns false, if the targeted Tile is either not reachable from ... | @Override
public boolean isValidMove(Tile target, Board board) {
if (target == null || board == null) {
throw new NullPointerException("Arguments for the isValidMove method can not be null.");
}
// current and target tiles have to be on a diagonal (delta between row and col index... | [
"public boolean canMove()\n {\n\t\t// create grid object\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return false;\n Location loc = getLocation();\n // check if next location is \n Location next = loc.getAdjacentLocation(getDirection()).getAdjacentLocation(getD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
waits for broadcast from the master which tells his ip | public void catchMasterIp() throws IOException{
DatagramSocket dataSocket = new DatagramSocket(1861);
byte[] buf = new byte[1024];
DatagramPacket packet = new DatagramPacket(buf, buf.length);
dataSocket.receive(packet);
serverIp = new String(packet.getData());
dataSocket.... | [
"public void broadcast(){\r\n Settings settings = Settings.getInstance();\r\n try {\r\n Enumeration<NetworkInterface> it = NetworkInterface.getNetworkInterfaces();\r\n while(it.hasMoreElements()){\r\n for(InterfaceAddress address : it.nextElement().getInterfaceAddr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the predicate does not contain ignore case to the selector for the given field and value. | @UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})
SelectorBuilderInterface<SelectorT> doesNotContainIgnoreCase(String field, String propertyValue); | [
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> doesNotContainIgnoreCase(\n EntityField field, String propertyValue);",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> conta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a set of values consisting of 1 keyvalue pair using the specified value. The key associated with the value is the number 0. value: The value to use to create the keyvalue pair. | private void createSingleValueSet(final double value)
{
m_mockery.checking(new Expectations()
{
{
allowing(m_values).getItemCount();
will(returnValue(1));
allowing(m_values).getValue(0);
will(returnValue(value));
allowing(m_values).getKey(0);
will(returnValue(0));
allowing(m_val... | [
"@Override\n public void makeSet(int value) {\n allNodes.put(value, new Node(value));\n }",
"public KeyVal(V value) {\n\t\tk = new InfKey();\n\t\tv = value;\n\t}",
"public static <V> ReadableIdentitySet<V> singleton(final V value) {\n Preconditions.checkNotNull(value, \"Can not create singleton ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
speichert einen Dienstleister in der Datenbank | public static void saveDienstleister(Dienstleister neu) {
Session session = getSession();
Transaction tx = session.beginTransaction();
session.save(neu);
tx.commit();
session.close();
} | [
"public static Dienstleister getOneById(int id) {\r\n\t\tDienstleister dienstleister = new Dienstleister();\r\n\t\tSession session = getSession();\r\n\t\tdienstleister = session.get(Dienstleister.class, id);\r\n\t\tsession.close();\r\n\t\treturn dienstleister;\t\r\n\t}",
"public static BenutzerDatenbank datenBank... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an xml node for this agent style | public Node createNode(Document doc, int position, File modelPath) {
Node agentNode = doc.createElement("agentstyle");
addAttr(doc, agentNode, "name", name);
addAttr(doc, agentNode, ATTR_VISIBLE, visible);
addAttr(doc, agentNode, ATTR_TRANSPARENT, transparent);
addAttr(doc... | [
"private String toXML(){\n return \"<paint>\\n\"+\"\\t<background_color>\" + this.backgroundColor +\n \"</background_color>\\n\" + touchArea.toXML() + \"</paint>\\n\";\n }",
"private void createXML() {\n\t\txml.writeXML(problemName.getText(), model ,problemDescription.getText(), problemWa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ServidorAplicaciones__RecursosAssignment_8_2" $ANTLR start "rule__ServidorAplicaciones__RecursosAssignment_8_3_1" InternalCeffective.g:8641:1: rule__ServidorAplicaciones__RecursosAssignment_8_3_1 : ( ( ruleEString ) ) ; | public final void rule__ServidorAplicaciones__RecursosAssignment_8_3_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCeffective.g:8645:1: ( ( ( ruleEString ) ) )
// InternalCeffective.g:8646:2: ( ( ruleEString ) )
{
... | [
"public final void rule__Servidor_Impl__RecursosAssignment_7_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9026:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:9027:2: ( ( ruleEString ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Follow a path down into an Edition and return what is at the end of the path. Fail if at any point there is not precisely one choice. | public FeRangeElement follow(FeEdition edition) {
FeRangeElement result;
FeLabel label;
result = edition;
for (int index = 0; index < edition().count(); index ++ ) {
label = (FeLabel) (edition().get(IntegerPos.make(index)));
result = ((FeEdition) result).get((((FeEdition) result).positionsLabelled(label)).theOn... | [
"@Override\n public MFEDirection next()\n {\n if (!this.isPathValid()) {\n String msg = \"Annotated Path\" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": Cannot get next step \" +\n \"when path is invalid.\";\n logger.severe(msg);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests a correct service definition list XML parsing. | @Test
public void serviceDefinitionParsingTest() throws MalformedURLException,
IOException, DataParsingException {
DataParser parser = new XMLParser();
ServiceDefinition serviceDefinition = parser
.parseServiceDefinition(netManager.doGet(new URL(BASE_URL
+ "/services/001.xml"), null));
assert... | [
"@Test\n \tpublic void serviceListParsingTest() throws MalformedURLException,\n \t\t\tIOException, DataParsingException {\n \t\tDataParser parser = new XMLParser();\n \t\tList<Service> services = parser.parseServiceList(netManager.doGet(\n \t\t\t\tnew URL(BASE_URL + \"/services.xml\"), null));\n \t\tassertEquals(se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find books by genre | public List<Books> findBooksByGenre(String genre) {
HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
List<Genre> list = new ArrayList();
Genre g = new Genre();
g.setType(genre);
list.add(g);
session.setAtt... | [
"public ArrayList<Film> searchByGenre(Genre genre);",
"List<Genre> searchByTitle(String title);",
"private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Enum__Group__11__Impl" $ANTLR start "rule__Enum__Group__12" InternalMyDsl.g:1576:1: rule__Enum__Group__12 : rule__Enum__Group__12__Impl rule__Enum__Group__13 ; | public final void rule__Enum__Group__12() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:1580:1: ( rule__Enum__Group__12__Impl rule__Enum__Group__13 )
// InternalMyDsl.g:1581:2: rule__Enum__Group__12__Impl rule__Enum__Group__1... | [
"public final void rule__Enum__Group__11() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1553:1: ( rule__Enum__Group__11__Impl rule__Enum__Group__12 )\n // InternalMyDsl.g:1554:2: rule__Enum__Group__11__Impl rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a module to the gadget by copying the original module file to the currently expanded gadget directory | public IGadget AddModuleToGadget(IGadget gadget, IModule module) throws Exception {
if(gadget != null && gadget instanceof IGadget){
if(module != null && module instanceof Module){
int hasAlreadyCount = 0;
boolean hasMoreThanOne = false;
... | [
"IModule addModule(String name, IModule module);",
"private void duplicateModule(ModuleFrame moduleFrame) {\n try {\n //Marshall the existing module to a file then read it in again\n //This avoids having to deal with cloning objects\n Module module = moduleFrame.getModule()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Handle right click. Fire black hole at target. / \param position coordinates of mouse event. / \return this state (No transition). | public SceneState handleRightClick(PVector position) {
mContext.mManager.fireBlackHole(position);
return this;
} | [
"abstract void onRightClick(int x, int y, boolean down);",
"public abstract void onRightClick(double x, double y, boolean release);",
"public void handleRightClick() {\r\n\t\tgetMatch().handleRightClickNear(player);\r\n\t\tuseRight();\r\n\t}",
"public void rightClick();",
"private void rightClick(boolean on... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
move to my ticket page activity | @Override
public void userPageMyTickets() {
String phone_number = getphoneNumber();
Intent intent = new Intent(userPageModel.this, myTicketsPageModel.class);
intent.putExtra("phone",phone_number);
startActivity(intent);
} | [
"public void goToTicketsTab() {\n logging(\"Attempting to click on the ticket upper tab.\");\n solo.clickOnImage(1);\n searchAndReport(searchTextCaseInsensitive(TEXT_TEXTVIEW_MOVIES), \"Filmer tab found,\", \"Could not find tab with filmer.\");\n clickOnTextCaseInsensitive(TEXT_TEXTVIEW_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/SDTests1 Inform a transporter that the client (such as brokerws) decided to accept the job offer. | @Test
public void testAcceptJob() throws Exception {
JobView jv = CLIENT1.requestJob(CENTRO_1, SUL_1, PRICE_UPPER_LIMIT);
jv = CLIENT1.decideJob(jv.getJobIdentifier(), true);
assertEquals(JobStateView.ACCEPTED, jv.getJobState());
} | [
"public void waitingForPartner();",
"public void sendOffer(Offer offer) {\r\n\r\n }",
"@Test\n\tpublic void madeOfferHasPendingStatus() {\n\t}",
"@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}",
"public void acceptOffer(long offerId) {\r\n }",
"public void confirmSent() {\n\t\tthis.ackn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Uses inverse kinematics to convert a Twist2d into left and right wheel velocities | public static DriveVelocity inverseKinematics(Twist2d velocity) {
if (Math.abs(velocity.dtheta) < kEpsilon) {
return new DriveVelocity(velocity.dx, velocity.dx);
}
double delta_v = kTrackWidthInches * velocity.dtheta / (2 * kTrackScrubFactor);
return new DriveVelocity(velocit... | [
"void updateVectors() {\n\t\t\t\tcurrViewAngle=angleEyeGameWorld+gameWorld.getAngle();\n\t\t\t\tforward.x=PApplet.cos(currViewAngle)*SCROLL_SPEED;\n\t\t\t\tforward.z=PApplet.sin(currViewAngle)*SCROLL_SPEED;\n\t\t\t\tcurrViewAngle+=PConstants.PI; //backwards\n\t\t\t\tbackward.x=PApplet.cos(currViewAngle)*SCROLL_SPEE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sends data to ResultFile to save them | public void saveResult() throws FileNotFoundException, IOException
{
ResultsFile resFile = new ResultsFile();
resFile.addResults(jmeno, points, (int) timeDuration);
} | [
"public void saveResults();",
"public void saveData() {\n\t\tString preJson = \"{'data':[\";\n\t\tString contentJson = null;\n\t\tString postJson = \"]}\";\n\t\tLog.i(tag, \"saveData method hit\");\n\t\tfor (int i = 0; i < savedData.size(); i++) {\n\t\t\tif (i == 0) {\n\t\t\t\tcontentJson = \"{'Title':\" + \"'\" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the maximum heap size of the Java VM running plmaster(1). | public void
setMasterHeapSize
(
long size
)
throws IllegalConfigException
{
validateHeapSize(size, "master");
pProfile.put("MasterHeapSize", size);
} | [
"void setMaxPrimaryMemory(long maxBytes);",
"public void setMaxHeap(int heap) {\r\n\t\tthis.heap = Math.max(heap, this.heap);\r\n\t}",
"void setMaxSpecialMemory(long maxBytes);",
"void setMaximumSize(int newMaxSize);",
"public void setMaxSize(long new_size)\n {\n this.max_size=new_size;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the default Z position for the glyph. | protected float getDefaultZPosition() {
return (control == null)
? 0.f
: (float) control.getZPosition();
} | [
"String getZPosition();",
"public int getzPos() {\n return zPos;\n }",
"public double getZOffset() {\n return getOffset(\"z\");\n }",
"public float getZPosition() {\n return zPosition;\n }",
"double getCurrentZPos();",
"public int getZIndex() {\n return z_index;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generamos las referencias de los diferentes views | private void generarReferenciasViews() {
this.contexto = this;
editText = (EditText)findViewById(R.id.editText);
boton = (Button)findViewById(R.id.btnEjecutarMapa);
boton3 = (Button) findViewById(R.id.buttonActividad3);
editTextLat = (EditText) findViewById(R.id.editTextLatitud);... | [
"public java.lang.String getReferenciado();",
"private void getReferences() {\n llCommentsResource = (LinearLayout) findViewById(R.id.llCommentsResource);\n bAddNewComment = (Button) findViewById(R.id.bAddNewComment);\n getActionBar().setDisplayHomeAsUpEnabled(true);\n }",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the square at the given coordinate and terminates it. | @Override
public void deleteSquareAt(Coordinate coordinate)
throws IllegalArgumentException, CoordinateNotOccupiedException {
if (!isEffectiveCoordinate(coordinate))
throw new IllegalArgumentException();
if (getSubDungeonContaining(coordinate) == null)
throw new CoordinateNot... | [
"public void clearSquare(int x, int y)\n {\n mBoard.setCell(x, y, mSolution.getCell(x, y));\n }",
"public void removePiece(Coordinate coord) \n\t{//tested via data method it calls \n\t\t_data.set(getIndex(coord),-1);\n\t\t\n\t}",
"@Override\r\n\tpublic void removeAsSquareAt(Point position) {\r\n\t\tif ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
VOMencodes the provided VSignature. | static byte[] encodeSignature(VSignature signature) throws VException {
return VomUtil.encode(signature, VSignature.class);
} | [
"int getSignatureV();",
"protected abstract byte[] encode(Object o) throws EncoderException;",
"com.google.protobuf.ByteString getSignatureS();",
"public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);",
"com.google.protobuf.ByteString getSignature();",
"private byte[] prepar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get data schema directory. | private File getDataSchemaDirectory(String schemaName) {
return dataDir.configFile(CONFIG_FOLDER + "/" + schemaName);
} | [
"public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}",
"private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } final... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies the launch manager that a launch configuration has been added. The configuration is added to the index of configurations by project, and listeners are notified. | protected void launchConfigurationAdded(ILaunchConfiguration config) {
if (config.isWorkingCopy()) {
return;
}
if (isValid(config)) {
boolean added = false;
synchronized (this) {
List<ILaunchConfiguration> allConfigs = getAllLaunchConfigurations();
if (!allConfigs.contains(config)) {
allConf... | [
"public void launchAdded(ILaunch launch)\n\t{\n\t\t// Verify that the launch is of the correct configuration type.\n\t\ttry\n\t\t{\n\t\t\tILaunchConfiguration config = launch.getLaunchConfiguration();\n\t\t\tif (! (config.getType().getIdentifier().equals(IRuntimePlayerLaunchConfigurationConstants.ID_RUNTIMEPLAYER_C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set GraduatesPerYear of the Company | public void setGraduatesPerYear ( int GraduatesPerYear )
throws DataObjectException {
try {
// business actions/assertions prior to data assignment
beforeAnySet();
} catch ( Exception e ) {
throw new DataObjectException( "beforeAnySet: " + e.getMessage() );
}
checkLoad();
data... | [
"public void setYears(double years){\r\n\t\tthis.years = years;\r\n\t}",
"public void setGrossTonnage(double grossTonnage);",
"void setYears(int x) {\n\t\tyearsWorked = x;\r\n\t}",
"public void setCurrentYear(BigDecimal currentYear) {\n this.currentYear = currentYear;\n }",
"public double payoffYe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProto unknown = 5; | org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProto getUnknown(); | [
"org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProtoOrBuilder getUnknownOrBuilder();",
"org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmNativePlatformProto getNative();",
"org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmNativePlatformProtoOrBuilder getNativeO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the column indexes for the neighborhood | public int[] getNeighborColIndex() {
if (myRow % 2 == 0) {
return neighborEvenColIndex;
} else {
return neighborOddColIndex;
}
} | [
"public int[] getNeighborRowIndex() {\n return neighborRowIndex;\n }",
"int [] getNeighbors(int cellId);",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"public Location[] getNeighbors() {\n\t\treturn new Location[] {new Location(row - 1, column),\n\t\t\t\tnew Location(row + 1, colu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set all LEDs in the strip to one color | void setStrip( Color color ); | [
"void setColor(int aLedIndex, int aRed, int aGreen, int aBlue);",
"void setStrip( int red, int green, int blue );",
"public void updateLEDs()\n\t\t{\n\t\t\tm_spi.write( m_colorBuffer, m_colorBuffer.length);\t\t\t\n\t\t\t\n\t\t\tresetLatch();\n\t\t}",
"private void reDrawLEDs(){\r\n if (this.isLEDEnable... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSwitchExpression__Group__0" $ANTLR start "rule__XSwitchExpression__Group__0__Impl" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10564:1: rule__XSwitchExpression__Group__0__Impl : ( () ) ; | public final void rule__XSwitchExpression__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10568:1: ( ( () ) )
... | [
"public final void rule__XSwitchExpression__Group_2_0_0__0() 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:10848:1: ( rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increase Team B fouls counter by 1 | public void foulTeamB(View v){
teamBScores[1]++;
displayForTeamB(1);
} | [
"public void add1ToTeamB(View view){\n scoreTeamB = scoreTeamB+1;\n displayForTeamB(scoreTeamB);\n }",
"public void increaseTotalForTeamB(int score) {\n totalScoreTeamB = totalScoreTeamB + score;\n displayTotalForTeamB(totalScoreTeamB);\n }",
"public void addOneFoulForTeamB(Vi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the Car entity. | @SuppressWarnings("unused")
@Repository
public interface CarRepository extends JpaRepository<Car, Long> {
Optional<Car> findByCode(String code);
} | [
"@Repository\r\npublic interface CarRepo extends CrudRepository<Car, Long> {\r\n\t\r\n\t/**\r\n\t * Fetch the Car entry from database for the matching carId and not set as deleted\r\n\t * @param carId\r\n\t * @return Car entity of the matching carId\r\n\t */\r\n\t@Query(\"SELECT c FROM Car c WHERE c.carId=:carId AN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
index of shortest tour in population: used for elitism | private int indexFittest(Tour[] population) {
Tour a = population[0];
int index = 0;
for(int i=1;i<population.length;i++) {
if (a.getLength() > population[i].getLength()) {
a = population[i];
index = i;
}
}
return index;
... | [
"private int getBestTourIndex()\r\n {\r\n return Math.min(bestIndex,bestTourNumber-1);\r\n }",
"private short minTurns(){\n\t\tshort tempTurn = 1000;\t// current max turn\n\t\tshort index = 0;\t\t// the index for current max turn\n\t\tshort turn;\t\t\t// current turn\n\t\tfor(short i=0; i<sizeTour; i++){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the label for the data set which appears in the legend and tooltips. | @Override
public String getLabel() {
return getValue(Dataset.InternalProperty.LABEL, DEFAULT_LABEL);
} | [
"DatasetLabel getLabel();",
"String getTooltipLabel();",
"public String getLabel() {\r\n\r\n return data.getLabel();\r\n\r\n }",
"public String getLegendLabel( int index );",
"java.lang.String getLabelName();",
"java.lang.String getLabel();",
"public String getLegendLabels();",
"public Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "entryRuleBSQL2Java" InternalBSQL2Java.g:53:1: entryRuleBSQL2Java : ruleBSQL2Java EOF ; | public final void entryRuleBSQL2Java() throws RecognitionException {
try {
// InternalBSQL2Java.g:54:1: ( ruleBSQL2Java EOF )
// InternalBSQL2Java.g:55:1: ruleBSQL2Java EOF
{
before(grammarAccess.getBSQL2JavaRule());
pushFollow(FOLLOW_1);
... | [
"public final void ruleBSQL2Java() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:66:2: ( ( ruleBSQLMachine ) )\n // InternalBSQL2Java.g:67:2: ( ruleBSQLMachine )\n {\n // InternalBSQL2Java... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a 64bit long, and change the internal state. Note that all longs can be generated. | public long nextLong( )
{
return ( (long) ( next( 32 ) ) << 32 ) + next( 32 );
} | [
"private long toLong() {\n assert (intLen <= 2) : \"this MutableBigInteger exceeds the range of long\";\n if (intLen == 0)\n return 0;\n long d = value[offset] & LONG_MASK;\n return (intLen == 2) ? d << 32 | (value[offset + 1] & LONG_MASK) : d;\n }",
"public long longValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a. Open Url based on 'DbDomain' parameter value in 'config.properties' file Possible values of DbDomain: jenkins, qa, automation, production b. Initiate IronWasp session if driverName=firefoxIronWasp in 'config.properties' | public static void openURLBasedOnDbDomain() throws Exception
{
String DbDomain = FilesAndFolders.getPropValue("DbDomain");
String url;
int flag;
deleteCookies();
//IronWasp Connection logic for Security Testing
String browser = FilesAndFolders.getPropValue("driverName");
if (browser.contentEqu... | [
"public static void loadDatabaseInfoFromFile(String configFilePath) throws Exception {\n //No need to check RemotingRole; no call to db.\n if (!File.Exists(configFilePath))\n {\n throw new Exception(\"Could not find \" + configFilePath + \" on the web server.\");\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Version__MinorAssignment_2" $ANTLR start "rule__Version__PatchAssignment_3_1" InternalCommunicationObject.g:3824:1: rule__Version__PatchAssignment_3_1 : ( RULE_INT ) ; | public final void rule__Version__PatchAssignment_3_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCommunicationObject.g:3828:1: ( ( RULE_INT ) )
// InternalCommunicationObject.g:3829:2: ( RULE_INT )
{
// In... | [
"public final void rule__Version__Group_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCommunicationObject.g:1711:1: ( ( ( rule__Version__PatchAssignment_3_1 ) ) )\n // InternalCommunicationObject.g:1712:1: ( (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
converts a given frequency, duration, and amplitude into a playable audio note | private static double[] note(double hz, double duration, double amplitude) {
int N = (int) (StdAudio.SAMPLE_RATE * duration);
double[] a = new double[N + 1];
for (int i = 0; i <= N; i++)
a[i] = amplitude * Math.sin(2 * Math.PI * i * hz / StdAudio.SAMPLE_RATE);
return a;
} | [
"public static void playTone (int aFrequency, int aDuration)\n {\n ROM.call ((short) 0x327c, (short) 0x1773, (short) aFrequency, \n (short) aDuration);\n }",
"public void playTone(int frequency, int duration)\n {\n\n AudioHelper.playTone(frequency, 100, duration);\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do post by custom contentType and charset | public static String postWithCustomContentTypeAndCharset(String url, String params, String charset,
String contentType) {
AsyncHttpClient.BoundRequestBuilder builder = asyncHttpClient.preparePost(url);
builder.setBodyEncoding(charset);
builder.setBody(params);
... | [
"@Override\n public String getBodyContentType() {\n return \"application/x-www-form-urlencoded; charset=UTF-8\";\n }",
"public void testContentEncodingWithContentType() throws Exception {\n WebConversation webConversation = new WebConversation();\n PostMethodWebR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turns off the server, aka no longer accepts connections displays out the amount of time total spent on receiving files | public void killServer(){
try {
server.close();
} catch (IOException e) {
e.printStackTrace();
}
// figuring out avg time for all files received
long temp = 0;
for (Long time : totalTimes) {
temp += time;
}
long avgTi... | [
"public void stopServer() {\n this.running = false;\n }",
"public static void closeServer() {\n\t\trun = false;\n\t}",
"void resetPeakServerSocketCount();",
"public static void stopServer() {\n try {\n clientListener.stopListener();\n server.close();\n connect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the cidade value for this LinhaInfo. | public java.lang.String getCidade() {
return cidade;
} | [
"public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}",
"public java.lang.String getDsCidade() {\n return dsCidade;\n }",
"public String getCidadeNascimento()\n {\n return this.cidadeNascimento;\n }",
"public int getCaixa() {\n\t\treturn this.caixa;\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the last modification identifier for optimistic concurrency locking. | public void setLastModificationId(long lastModificationId) {
this.lastModificationId = lastModificationId;
} | [
"public synchronized void setModificationCounter(long modificationCounter) {\n \t\tthis.modificationCounter = modificationCounter;\n \t}",
"public long getLastModificationId() {\r\n return lastModificationId;\r\n }",
"void setLastModifiedTime( long modTime ) throws FileSystemException;",
"void updateLastA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case for setStaffs(ArrayList myStaffs) which sets the staff in the music sheet instance. This method is tested by adding staffs to the music sheet and an arrayList setStaffs and the music sheet's staff is asserted to be equal | @Test
public void testSetStaffs() {
ArrayList<Staff> setstaffs = new ArrayList<Staff>();
Staff staff = new Staff(5);
Staff staff1 = new Staff(5);
Staff staff2 = new Staff(5);
Measure m = new Measure(5);
m.addLine("||*-----<5>-----------<7>----------------------------*||");
m.addLine("||-0-----------7... | [
"@Test\n public void testIsStaffMember() {\n System.out.println(\"isStaffMember\");\n\n StaffMember staffMember = new StaffMember();\n List<StaffMember> staffMembersList = new ArrayList<>();\n staffMembersList.add(staffMember);\n this.staffList.setStaffList(staffMembersList);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find domain based list of vm Instances with pagination. | Page<VmInstance> findAllByDomainId(Long domainId, PagingAndSorting pagingAndSorting, String searchText, Long userId) throws Exception; | [
"@Named(\"TargetInstances:aggregatedList\")\n @GET\n @Path(\"/targetInstances\")\n ListPage<TargetInstance> pageOfTargetInstances(@Nullable @QueryParam(\"pageToken\") String pageToken,\n ListOptions listOptions);",
"ExecutionResult listInstances();",
"Page<VmInstance> findAllByStatusAndDomain(Pagi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a lemon as ingredient. | public static IIngredient Lemon()
{
IIngredient oLemon = (IIngredient) new Produce();
oLemon.setName("Lemon");
oLemon.setOrganic(false);
oLemon.setPrice(new BigDecimal("2.03"));
oLemon.setUnit("");
return oLemon;
} | [
"public CraftingIngredient getIngredient();",
"public static ItemIngredient of(String input) {\n\t\treturn new OreItemIngredient(input, 1);\n\t}",
"@Override\n public String toString() {\n\n return this.ingredient.toString();\n }",
"private RecipeIngredient getBaseMalt() {\n\t\tRecipeIngredient b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies a California county. .opencannabis.geo.usa.ca.CaliforniaCounty california_county = 3; | public Builder setCaliforniaCounty(io.opencannabis.schema.geo.usa.California.CaliforniaCounty value) {
if (value == null) {
throw new NullPointerException();
}
countyCase_ = 3;
county_ = value.getNumber();
onChanged();
return this;
} | [
"public Builder setCaliforniaCounty(io.opencannabis.schema.geo.usa.California.CaliforniaCounty value) {\n if (value == null) {\n throw new NullPointerException();\n }\n countyCase_ = 2;\n county_ = value.getNumber();\n onChanged();\n return this;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the state passed in is in the set of final states. | public boolean isFinalState(final State state) {
return finalStates.contains(state);
} | [
"public boolean isFinal(State s) {\n\t\treturn finalStates.contains(s);\n\t}",
"private boolean checkFinalStates() {\r\n Iterator<State> iterator = estados_finales.iterator();\r\n while (iterator.hasNext()){\r\n if (!estados.contains(iterator.next())){\r\n return false;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the baseline position. Indicates whether the bars are topalign or bottomaligned. | public BaselineAlignment getBaselinePosition() {
return baselinePosition;
} | [
"public int getBaselinePosition() {\r\n\t\treturn baseline;\r\n\t}",
"public int getBaselinePosition()\r\n {\r\n return inner.getBaselinePosition();\r\n }",
"protected double getTextBaselinePosition() {\n if (bcBean.getMsgPosition() == HumanReadablePlacement.HRP_TOP) {\n double ty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies the store and remove outdated or lost files. | public synchronized void verifyStore(BigInteger key) throws IOException {
//@added, support for exported files.
//sh, 22.09.2011
Map<BigInteger, StoreEntry> store = trans.get(key);
//String pstore = path+File.separator+key.toString();
//File dir = new File(pstore);
File dir = pStore(key);
... | [
"private synchronized void verifyAllFiles() {\n if (getSha1Urn() == null)\n return;\n\n for (Iterator<RemoteFileDesc> iter = cachedRFDs.iterator(); iter.hasNext();) {\n RemoteFileDesc rfd = iter.next();\n if (rfd.getSHA1Urn() != null && !getSha1Urn().equals(rfd.getSHA1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |