query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Methods for field "radiusOfCurve" | public long getRadiusOfCurve()
{
return (this.radiusOfCurve).longValue();
} | [
"public double getCircleRadius();",
"public double radius();",
"public abstract float getRadius();",
"public double getRadius() { return radius.get(); }",
"public double radius() {\n return radius;\n }",
"int getRadius();",
"public float [] get_radius() {\n return radius;\n }",
"@Basic\n\t@Raw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para barajar las cartas de centro | public void barajarMazoCentro(){
for (int i = 0; i<= 200; i++){
int num1 = getNumAleatorio(0, CARTASDELCENTRO-1);
int num2 = getNumAleatorio(0, CARTASDELCENTRO-1);
Carta carta1 = mazoCentral[num1];
Carta carta2 = mazoCentral[num2];
mazoCentral[num2] = ... | [
"public void repartirCartasCentro(){\n cartasQueTieneElJugador = new Carta [10][jugadores];\n barajarMazoCentro();\n for (int i= 0; i <= jugadores -1; i++){\n for (int e= 0; e <= 4 ; e++){\n cartasQueTieneElJugador [e][i] = mazoCentral [contadorCartas];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res); | public static native void CVec_TransactionZ_free(byte[][] _res); | [
"public static native void CResult_TransactionNoneZ_free(long _res);",
"public static native void CVec_TxOutZ_free(long[] _res);",
"public static native void CVec_TxidZ_free(byte[][] _res);",
"public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);",
"public static native void T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Does the user have the given permission on any resource of the given type. | boolean hasAccessToResourceOfType(UserInfo user, ObjectType resourceType, ACCESS_TYPE permission); | [
"AuthorizationStatus canAccess(UserInfo user, String resourceId, ObjectType resourceType,\r\n\t\t\tACCESS_TYPE permission);",
"private boolean hasResourceActionAllowPermissions(Resource resource,\n String action) {\n String whereClause = \"p.resource = :resource AND (\"\n + \"(p.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a device knowledge response that indicated an application error. | public static DeviceKnowledgeResponse applicationErrorResponse(){
return new DeviceKnowledgeResponse(null, APPLICATION_ERROR);
} | [
"public static Response createAllocationErrorResponse(char errorCode, String reasonPhrase) {\n Response allocationErrorResponse = new Response();\n allocationErrorResponse.setMessageType(Message.ALLOCATE_ERROR_RESPONSE);\n //error code attribute\n ErrorCodeAttribute errorCodeAttribute = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Selects all of the currenlty selected keys on the selector and returns the result as an array of keys. | protected SelectionKey[] selectedKeys() throws IOException {
return (SelectionKey[]) selector.selectedKeys()
.toArray(new SelectionKey[0]);
} | [
"private SelectionKey[] keys() throws IOException {\n return (SelectionKey[]) selector.keys().toArray(new SelectionKey[0]);\n }",
"public String[] getSelectKeys() {\n return selectKeys;\n }",
"public Collection getSelectedKeys()\n \t{\n \t\tif (!m_ok || m_results.size() == 0)\n \t\t\treturn null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If fillEnabled is true, the action will apply the TMP_ARRAY of fillBefore. Otherwise, fillBefore is ignored and the action transformation is always applied until the action ends. | public Action setFillEnabled(boolean fillEnabled) {
mFillEnabled = fillEnabled;
return this;
} | [
"@Override\n public void toggleFill() {\n // empty bc mock\n }",
"public void toggleFill() {\n\t\tfill = !fill;\n\t}",
"private void startFilling() {\n\t\t/* since this example only has one talon, just update that one */\n startFilling(mProfile.getPoints(), mProfile.getPoints().length);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads equivalent stresses from XLS file. | private void loadFromXLS(Connection connection, SpectrumItem eqStress) throws Exception {
// initialize variables
Workbook workbook = null;
try {
// get workbook
workbook = Workbook.getWorkbook(inputFile_.toFile());
// get sheet
Sheet sheet = workbook.getSheet(0);
// task cancelled
if (task... | [
"public void LoadHexFile(String filename) throws RuntimeException\n {\n int memPtr = 0;\n Yytoken current_token;\n boolean moreLines = true;\n\n int startingAddress;\n String recordType;\n int valueForMemory;\n\n File theFile = new Fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows setting a resource ID that can be retrieved when serving the resource through HstRequest.getResourceID() method in a HstComponent instance. | void setResourceID(String resourceID); | [
"public void setResourceID(int value) {\n this.resourceID = value;\n }",
"private Resource setNewResourceId(Resource resource) {\n return resource.toBuilder().id(UUID.randomUUID().toString()).build();\n }",
"public void setResourceId(String id)\n {\n Id = id;\n }",
"public int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the sgfens_banco table that match the criteria 'NOMBRE_BANCO = :nombreBanco'. | public SgfensBanco[] findWhereNombreBancoEquals(String nombreBanco) throws SgfensBancoDaoException; | [
"public DatiBancari[] findWhereBanNominativoEquals(String banNominativo) throws DatiBancariDaoException;",
"public DatiBancari[] findWhereBanNomeBancaEquals(String banNomeBanca) throws DatiBancariDaoException;",
"public SgfensBanco[] findWhereIdBancoEquals(int idBanco) throws SgfensBancoDaoException;",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAndExpression__Group_1_0_0__1" $ANTLR start "rule__XAndExpression__Group_1_0_0__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4245:1: rule__XAndExpression__Group_1_0_0__1__Impl : ( ( rule__XAndExpression__FeatureAs... | public final void rule__XAndExpression__Group_1_0_0__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4249:1: ( ( ( ru... | [
"public final void rule__XAndExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4095:1: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "AnchorOffset" element | boolean isSetAnchorOffset(); | [
"int getAnchorOffset();",
"org.apache.xmlbeans.XmlInt xgetAnchorOffset();",
"protected boolean refersToOffset() {\n return refersToOffset;\n }",
"default boolean hasAnchor (@Nullable final String sAnchor)\n {\n return EqualsHelper.equals (sAnchor, getAnchor ());\n }",
"public boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ getMovespeed() return the objects movespeed | public double getMovespeed()
{
return movespeed;
} | [
"public int getMoveSpeed(){\n\t\treturn moveSpeed;\n\t}",
"public double getMoveSpeed() {\n\t\treturn moveSpeed;\n\t}",
"public double getMovementSpeed() {\n return movementSpeed;\n }",
"public double get_speed(){\n return this.speed;\n }",
"public double getSpeed() {\r\n\t\treturn trave... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getDescription method, of class Category. | @Test
public void testGetDescription() {
System.out.println("getDescription");
Category instance = new Category();
String expResult = "";
String result = instance.getDescription();
assertEquals(expResult, result);
// TODO review the generated test code and remo... | [
"@Test\n public void testGetDescription() {\n System.out.println(\"getDescription\");\n Meal m = new Meal(\"rizek\", \"toto je super kureci rizek z kurete z volneho chovu\", \"1,3,2,4\", \"1\", 100, 1);\n assertEquals(\"toto je super kureci rizek z kurete z volneho chovu\", m.getDescription(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the state history. | public void clearStateHistory() throws ProvisioningException {
StateHistoryUtils.clearStateHistory(home, log);
} | [
"public void clearHistory() {\n historyStack.clear();\n lastTransition = null;\n }",
"public void clearHistory() {\n history = null;\n }",
"public void clear() {\r\n history.clear();\r\n historyPointer = -1;\r\n }",
"void clearHistory();",
"public void clearHistor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function returns a BaseGearPiece or one of its children that's been created by a GearPieceGenerator | public BaseGearPiece generateGearPiece(); | [
"public interface GearPieceGeneration {\n\n\t// This function returns a BaseGearPiece or one of its children that's been created by a GearPieceGenerator\n\tpublic BaseGearPiece generateGearPiece();\n}",
"public GamePiece spawnPiece() {\n communicator.send(\"PIECE\");\n logger.info(\"Spawning Piece!\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns true if the MouseEvent coords are inside of the Choice itself (it doesnt's depends on if this choice opened or not). | private boolean isMouseEventInChoice(MouseEvent e) {
int x = e.getX();
int y = e.getY();
Rectangle choiceRect = getBounds();
if (x < 0 || x > choiceRect.width ||
y < 0 || y > choiceRect.height)
{
return false;
}
return true;
} | [
"public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for f_Paragraph11 called 1 times. Type: DEFAULT. Build precedence: 4. | private org.gwtbootstrap3.client.ui.html.Paragraph get_f_Paragraph11() {
return build_f_Paragraph11();
} | [
"public int getParagraphNumber() { \n return(this.paragraphNumber); \n }",
"private org.gwtbootstrap3.client.ui.html.Paragraph get_f_Paragraph112() {\n return build_f_Paragraph112();\n }",
"private org.gwtbootstrap3.client.ui.html.Paragraph get_f_Paragraph101() {\n return build_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
metodo che consente di recuperare il riferimento all'oggetto GestionePunteggiD | public GestionePunteggiD getGestionePunteggiD() {
return gestionePunteggiD;
} | [
"public void setGestionePunteggiD(GestionePunteggiD gestionePunteggiD) {\n this.gestionePunteggiD = gestionePunteggiD;\n }",
"public String popolaFondoPluriennaleVincolatoUscitaDaGestioneDaBilancio() {\n\t\tfinal String methodName = \"popolaFondoPluriennaleVincolatoUscitaDaGestioneDaBilancio\";\n\t\tlog.debug... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the sessionID value for this EvaluateCondition. | public void setSessionID(java.lang.String sessionID) {
this.sessionID = sessionID;
} | [
"void setSessionID(java.lang.String sessionID);",
"public void setSessionID(String value){\n ((LoginResponseDMO) core).setSessionID(value);\n }",
"public void setSessionId(int sessionId)\r\n {\r\n this.sessionId = sessionId;\r\n }",
"public void setSessionID(Object value) throws DmcValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The main operator business logic of transforming a collection of MetricTimelines to an aggregated endpoint timeline This runs for each group item (endpointGroup,service,hostname) and contains a list of metric timelines sorted by the "metric" field. It uses a Discrete Aggregator to aggregate the metric timelines accordi... | @Override
public void flatMap(StatusTimeline in, Collector<EndpointAR> out) throws Exception {
DateTime runDateDt = Utils.convertStringtoDate("yyyy-MM-dd", this.runDate);
// Initialize field values and aggregator
String service = "";
String endpointGroup = "";
String hostname... | [
"@Override\n public void flatMap(MetricTrends t, Collector<Tuple8<String, String, String, String, String, Integer, Integer,String>> out) throws Exception {\n // if(t.getGroup().equals(\"Group_1\") && t.getService().equals(\"Service_1B\") && t.getEndpoint().equals(\"Hostname_4\") && t.getMetric().equals(\"Met... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Rebases the backing file of the image. This method is a facade for 'qemuimg rebase'. | public void rebase(final QemuImgFile file, final QemuImgFile backingFile, final String backingFileFormat, final boolean secure) throws QemuImgException {
if (backingFile == null) {
throw new QemuImgException("No backing file was passed");
}
final Script s = new Script(_qemuImgPath, t... | [
"public void rebase() {\n this.git.rebase();\n }",
"alluxio.proto.journal.File.ReinitializeFileEntry getReinitializeFile();",
"private void reprocess() {\n exec.submit(this, () -> {\n setImage(ProcessedBI.process(getProcessor(), getInputs()));\n });\n }",
"protected abstr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pillowAttack method This method modifies the energy, it subtracts 1 point and displays a sentence. Test if game over. | public void pillowAttack()
{
Interface.setDialog("A huge pillow is comming right at you!");
if (player.getStaStat() >= 1)
{
player.addStat("staStat", -1);
Interface.setDialog("You did not sleep enough during the night, your pillow comes back to haunt you. You l... | [
"public void attack(){\n image(explosion, position.x - 50, position.y);\n if(( element == combatTarget.element + 1 ) || (element == 1 && combatTarget.element == 3)){\n //println(\"Enemy Type Advantage\");\n health = health - (combatTarget.atk)*2;\n } else if ( ( element == combatTarget.element - ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column sm_sys_dict.PARENT_PARAM_CODE | public String getParentParamCode() {
return parentParamCode;
} | [
"public void setParentParamCode(String parentParamCode) {\n this.parentParamCode = parentParamCode;\n }",
"public Long getParentCodeId() {\r\n return parentCodeId;\r\n }",
"public String getParentCode() {\r\n return parentCode;\r\n }",
"public String getParentCode() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .angel.LogMetadata log_metadata = 1; | com.tencent.angel.core.LoggingProtos.LogMetadata getLogMetadata(); | [
"com.tencent.angel.core.LoggingProtos.LogMetadataOrBuilder getLogMetadataOrBuilder();",
"public com.tencent.angel.core.LoggingProtos.LogMetadataOrBuilder getLogMetadataOrBuilder() {\n return getLogMetadata();\n }",
"public void setLogEvent(LogEvent le);",
"public LogOptions get_log_options(){return lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ClassName: AreaDao Description: date: 2019/10/25 16:13 | public interface AreaDao {
List<Area> queryArea();
Area queryAreaById(int id);
int insertArea(Area area);
int updateArea(Area area);
int DeleteArea(int id);
} | [
"public interface AreaTypeDao extends Dao<AreaType, Integer> {\n\t\n\t/**\n\t * Obtains an {@link AreaType} object found by its {@code name}\n\t * \n\t * @param name the name of the {@code AreaType}, not null\n\t * @return an {@code AreaType} object, not null\n\t * @throws Exception if there is no {@code AreaType}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get a UI control for the current prog from the previously created controls, or create one | protected ProgressUIControl findOrCreateUIControl(Progress prog) {
ProgressUIControl uiControl = progressMap.get(prog);
if (uiControl == null) {
uiControl = new ProgressUIControl();
progressMap.put(prog, uiControl);
progressControlContainer.addView(uiControl.parent);
uiControl.showMsg(prog.getJobN... | [
"Control getControl();",
"public Control getControl() {\n checkWidget();\n return control;\n }",
"public void createNewUI() {\n this.ui = new UdacityUserInterface();\n }",
"public void createCurrentPlayerIndicator()\n\t{\n\t\tcurrentPlayerTextbox = guiFactory.createTextBox();\n\t\t\n\t\tV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new Entry, initialized with the specified text | public Entry(String text) {
this(GtkEntry.createEntry());
setText(text);
} | [
"Entry createEntry();",
"public Entry(String n)\n {\n name = n;\n }",
"public Entry (String word, String clue){\r\n\tthis.word = word;\r\n\tthis.clue = clue;\r\n\r\n }",
"private TextField initHBoxTextField(HBox container, String initText, boolean editable) {\n TextField tf ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the names of the module's lazy dependencies. | SortedSet<String> getLazyDependentModules(); | [
"public List<String> getDependencyNames()\r\n\t{\r\n\t\treturn dependencyNames;\r\n\t}",
"public String[] getResolvedDependencies();",
"public default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}",
"Set<String> getDependencies();",
"public String[] getUnresolvedDependencies();",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Business method that returns role set data as XML from role set id | @NonNull
String queryRoleSetXML(final SQLiteDatabase connection, final long roleSetId, final Character pos); | [
"java.lang.String getRoleid();",
"@Override\n public String toString() {\n return \"Role[\" + \"roleId=\" + roleId + \", rolePost=\" + rolePost + \", rolePay=\" + rolePay + \",userSet=\" + userSet + \"]\";\n }",
"public String getNodeSetAsXML() {\n\n String xml = null;\n if (this.type... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Item Throughput' attribute. If the meaning of the 'Item Throughput' attribute isn't clear, there really should be more of a description here... | int getItemThroughput(); | [
"public double getThroughput () {\n\t\treturn throughputRequired;\n\t}",
"public double getThroughput()\n {\n \treturn throughput;\n }",
"public Float getThroughput()\n {\n return throughput;\n }",
"public String getThroughputRating() {\n return throughputRating;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method adds the contact information to a combobox for the user to choose from. It uses a lambda expression to create a filtered list. | @FXML
void onActChooseContact(ActionEvent event) {
ObservableList<Appointment> filteredAppointments = allAppointments.filtered(a -> {
if(contactList.getSelectionModel().getSelectedItem().equals(a.getContact()))
return true;
return false;
});
contactAp... | [
"public void fillCombobox() {\n List<String> list = new ArrayList<String>();\n list.add(\"don't link\");\n if (dataHandler.persons.size() == 0) {\n list.add(\"No Persons\");\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the job viewer panel group. | public PanelGroup<JQueueJobViewerPanel>
getQueueJobViewerPanels()
{
return pQueueJobViewerPanels;
} | [
"public abstract String getJobGroup();",
"String getEvaluationGroup();",
"public String\n getPipelineGroup()\n {\n return (String) pProfile.get(\"PipelineGroup\");\n }",
"default String getGroup() {\n return this.getModuleId().getGroup();\n }",
"public String getGroup() {\n return gro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Initializes Android location manager, Google Play Service objects and a Geocoder | public void init(Context context) {
Log.d(TAG, "Entering init");
cached_context = context;
Log.d(TAG, "Requesting android location system service");
location_manager = (LocationManager)cached_context.getSystemService(
cached_context.LOCATION_SERVICE);
// Set Goog... | [
"private void initLocationManager() {\n if (locationManager == null) {\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n }\n }",
"public void start_location() {\n Log.d(TAG, \"Entering start_location\");\n\n // There is no use in listenin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets a new status for our board | public void setStatus(Status newStatus){
status = newStatus;
} | [
"@Override\n public void changeStatus(String newStatus){\n if(isAvailable())\n setStatus(newStatus);\n else\n System.out.println(\"Table has already occupied\");\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ZhihuApi Created by xiaqiulei on 20151230. | public interface ZhihuApi {
// 1.启动界面图像获取
GetStartInfoResponse getStartInfoResponse(GetStartInfoRequest request) throws AppException;
// 9.主题日报列表查看
GetAllThemesResponse getAllThemesResponse(GetAllThemesRequest request) throws AppException;
// 3.最新消息
GetLastThemeResponse getLastThemeResponse(G... | [
"public interface API {\n @C7730f(mo20420a = \"/aweme/v1/music/collect/\")\n C1592h<BaseResponse> collectMusic(@C7744t(mo20436a = \"music_id\") String str, @C7744t(mo20436a = \"action\") int i);\n\n @C7730f(mo20420a = \"/aweme/v1/hot/music/\")\n C1592h<MusicList> getHotMusicList(@C7744t(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The top part of the Shop contains the name and the price range (from Facebook) associated with this shop. | private void setupShopTopSection(String name, String priceRange)
{
TextView squareInitials = (TextView) containerView.findViewById(R.id.review_square_initials);
squareName = (TextView) containerView.findViewById(R.id.review_square_name);
TextView squarePrice = (TextView) containerView.findVi... | [
"public BigDecimal getShopPrice() {\n return shopPrice;\n }",
"java.lang.String getLowPrice();",
"public double getPriceHead() {\n return 20.0;\n }",
"java.lang.String getHighPrice();",
"java.lang.String getPrice();",
"public void displayTop5BestPriceSup() {\n PurchaseRequisitio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Properties constructor to create styling, length and id of each rectangle task | public Properties(long lengthMs, String style, String taskId) {
super();
_length = lengthMs;
_styleClass = "gantt-border";
_taskId = taskId;
//If task is unassigned, do not show!
if (!style.equals("#000000")) {
_style = "-fx-backgr... | [
"void buildRectangles(){\n background(255);\n for(int i=0;i<arr.length;i++){\n noStroke();\n Rect r=new Rect(40+i*80,400,75,-arr[i]*20,color1);\n createRectangle(r,color1);\n }\n }",
"protected abstract Optional<Integer> createJobRectangle(\n\t\t\t@ValidTri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ServicePoint point = servicePointService.getFromCache(1622034l); | @Test
public void getServicePointFromRedis(){
ServicePoint point = servicePointService.getFromCache(1622036L);
log.info(ServicePointAdapter.getInstance().toJson(point));
//Assert.assertTrue("主帐号未登录过app",point.getPrimary().getAppLoged().equals(1));
//System.out.println(point.getName()... | [
"public ServicePoint getServicePoint(String serviceId);",
"Object getNativeCache();",
"public ServicePointDefinition getServicePoint(String id);",
"public int getSslSessionIDMemCacheHit() throws java.rmi.RemoteException {\n if (super.cachedEndpoint == null) {\n throw new org.apache.axis.NoEn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get admin by id rest api | @GetMapping("/admin/{id}")
public ResponseEntity<Admin> getAdminById(@PathVariable Long id) {
Admin admin = adminRepository.findById(id)
.orElseThrow(() -> new ResourceNotFoundException("Admin not exist with id :" + id));
return ResponseEntity.ok(admin);
} | [
"@GetMapping(\"/admins/{id}\")\n\t\tpublic ResponseEntity<Admin> getAdminById(@PathVariable Long id) {\n\t\t\tAdmin admin = adminRepository.findById(id)\n\t\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Admin not exist with id :\" + id));\n\t\t\treturn ResponseEntity.ok(admin);\n\t\t}",
"@Override\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given the index of a cluster, finds point furthest away from the cluster mean and returns its index (in all expression data) Called by checkForEmptyClusterAndReassign. | int findIndexOfMostDistantPointInCluster(int indexOfClusterWithLargestSSE){
// Get array of all points (an array of indices pointing to )
ArrayList<Integer> pointsInCluster = this.ciorg.get(indexOfClusterWithLargestSSE);
// Calculate mean of all points in the cluster
double sum[] = ne... | [
"public Point getFurthermost(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMin = Double.MAX_VALUE;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint closest = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance < distanceMin){\n\t\t\t\t\tdistanceM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up each screen and loads all the sounds. Originally shows a loading screen while the sounds are loaded in. (Estimate time: 1015 seconds to load in the sound files) | public void setup() {
push();
background(255);
fill(0);
textSize(10);
text("Loading",50,50,width - 100,500);
pop();
for (Screen s : screens)
s.setup();
loadNextSong();
sounds[0].amp((float) 0.05);
sounds[1].amp((float) 0.1);
sounds[2].amp((float) 0.1);
sounds[3].amp((float) 0.075);
} | [
"@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void loadSo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the protein gene name | public void setGeneName(String geneName) {
this.geneName = geneName;
} | [
"public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}",
"public String getGeneName() {\n return geneName;\n }",
"public void setGene(Gene gene)\r\n\t{\r\n\t\tthis.gene = gene;\r\n\t}",
"public void setGeneA(String a) {\n this.geneA = a;\n }",
"public void setName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the special income counter in this hex, if one exists | public ITileProperties getSpecialIncomeCounter()
{
for(ITileProperties tp : getThingsInHex())
{
if(tp.isSpecialIncomeCounter())
{
return tp;
}
}
return null;
} | [
"public boolean hasSpecialIncomeCounter()\r\n\t{\r\n\t\treturn getSpecialIncomeCounter()!=null;\r\n\t}",
"public void removeSpecialIncomeCounterFromHex()\r\n\t{\r\n\t\tif(hasSpecialIncomeCounter())\r\n\t\t{\r\n\t\t\tthingsInHex.remove(getSpecialIncomeCounter());\r\n\t\t}\r\n\t}",
"public int getMissedRegularInc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The credentials is the token retrieved | @Override
public T getCredentials() {
return token;
} | [
"Object getCredentials();",
"Credentials getCredentials();",
"public String getCredentialsToken() {\n\t\treturn mCredentialsToken;\n\t}",
"public HashMap<AuthScope, Credentials> getCredentials() {\n return credentials;\n }",
"public abstract String getCredentials();",
"private String getCredenti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tax pop > nation. | public static void taxMe(Pop pop, Nation nation) {
double taxPercentage = nation.taxPercentage;
int population = pop.population;
//double averageWealth = pop.getAverageWealth();
double taxEvasion = getTaxEvasion(pop, getTaxEvasionReducer(nation.taxEfficency));
double toTax = taxPercentage * nation... | [
"java.lang.String getTaxon();",
"String getRegionTitle(Nation nation);",
"public String getNation() {\n return nation;\n }",
"public void setNation(String nation) {\n this.nation = nation;\n }",
"public Nation getNation() {\n return nation;\n }",
"public final String getNatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column repository_details.inbound_iid | public void setInboundIid(Integer inboundIid) {
this.inboundIid = inboundIid;
} | [
"public Integer getInboundIid() {\n return inboundIid;\n }",
"public void setIID(String in)\n {\n m_IID = in;\n }",
"public void setInboundStatusId(Integer inboundStatusId) {\n this.inboundStatusId = inboundStatusId;\n }",
"public void setOutboundId(Integer outboundId) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleXDoWhileExpression" $ANTLR start "entryRuleXBlockExpression" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1383:1: entryRuleXBlockExpression : ruleXBlockExpression EOF ; | public final void entryRuleXBlockExpression() throws RecognitionException {
try {
// ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1384:1: ( ruleXBlockExpression EOF )
// ../org.xtext.guicemodules.ui/src-gen/org/xtext/g... | [
"public final void entryRuleXBlockExpression() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1188:1: ( ruleXBlockExpression EOF )\n // ../org.xtext.example.helloxcor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for SHIP_NO_INTERNAL using the alias name ShipNoInternal. | public String getShipNoInternal() {
return (String) getAttributeInternal(SHIPNOINTERNAL);
} | [
"public void setShipNoInternal(String value) {\n setAttributeInternal(SHIPNOINTERNAL, value);\n }",
"public String getShipMnftNo() {\n return (String) getAttributeInternal(SHIPMNFTNO);\n }",
"public int getNalInternal() {\n return nalInternal;\n }",
"public Number getNoatel()\r\n {\r\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fonction permettant de printer le plan de salle | private static void printPlan(String[][] salle) {
for (int i = salle.length - 1; i >= 0; i--) {
System.out.printf("R " + i + "| ");
for (int j = 0; j < salle[i].length; j++) {
System.out.print(salle[i][j]);
}
System.out.println();
}
... | [
"public void printSpelbord() {\n\t\tthis.printHeader(); // kolomnummers boven spelbord\n\t\tStringBuffer output = new StringBuffer();\n\t\tfor (int i = 0; i < this.AANTAL_RIJEN; i++) {\n\t\t\toutput.append(\"| \");\n\t\t\tfor (int x = 0; x < this.AANTAL_KOLOMMEN; x++) {\n\t\t\t\toutput.append(\" \");\n\t\t\t\toutpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a Gantt chart task object for the name, start time, and end time. | public static org.jfree.data.gantt.Task createTask(String name, int start, int end) {
return new org.jfree.data.gantt.Task(name, SchedulerUtils.dateTime(start), SchedulerUtils.dateTime(end));
} | [
"private Task createTaskFromGivenArgs(Name name, TaskDate taskStartDate, TaskDate taskEndDate, Status taskStatus) {\n\t if (isEventTask(taskStartDate, taskEndDate)) {\n\t return new EventTask(name, taskStartDate, taskEndDate, taskStatus);\n\t }\n\t if (isDeadline(taskEndDate)) {\n\t return ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Blocks a user in the desired community. Request example: method=GET | @PutMapping(value = "/{id}/block", params = "userId")
public ResponseEntity<?> blockUser(@PathVariable("id") Long id, @RequestParam("userId") Long userId) {
LOGGER.debug("Block user with id {} from community with id {}", userId, id);
try {
Long principalId = securityService.getPrincipal... | [
"boolean blockUser(User user);",
"void block(Request request);",
"boolean unblockUser(User user);",
"public void requestLeaveLobby() {\n LOGGER.info(\"REST_CLIENT: Leave request from [{}] received.\", currentLobby.getConfig());\n currentLobby.requestLeaveLobby();\n currentLobby = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Total quantity of separators | public int getNumberOfSeparators() {
return numberOfSeparators;
} | [
"int getSeparatorPos();",
"int number() {\r\n\t\treturn delimiters.size();\r\n\t}",
"static int getLengthOfSeparator(String fileName, int counter) {\n List<String> separators = new ArrayList<>();\n\n separators.add(\"_\");\n separators.add(\" - \");\n separators.add(\" \");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Describe ejbFindByCustomerId method here. | public Collection ejbFindByCustomerId(final Integer customerId)
{
PreparedStatement ps = null;
try
{
ps = getConnection().prepareStatement("SELECT ID FROM CCBMPACCOUNT WHERE CUSTOMERID = ?");
ps.setInt(1, customerId.intValue());
ResultSet rs = ps.executeQuery();
... | [
"@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }",
"@Test\n\tpublic void testFindCustomer() throws SQLException {\n\t\tint customedID = 1;\n\t\tCustomerEntity result = myDAO.findCustomer(custom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for f_Panel12 called 1 times. Type: DEFAULT. Build precedence: 3. | private org.gwtbootstrap3.client.ui.Panel get_f_Panel12() {
return build_f_Panel12();
} | [
"private org.gwtbootstrap3.client.ui.Panel get_f_Panel24() {\n return build_f_Panel24();\n }",
"private org.gwtbootstrap3.client.ui.Panel get_f_Panel62() {\n return build_f_Panel62();\n }",
"private org.gwtbootstrap3.client.ui.Panel get_f_Panel76() {\n return build_f_Panel76();\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the integral result of Function | public abstract double integral(double a, double b, int n); | [
"public double integral(double x) {\n\t\t\treturn a * a * Math.sinh(x / a);\n\t\t}",
"public Integer getIntegral() {\n return integral;\n }",
"@Override\n public double integral(double lowerLimit, double upperLimit, double numTrap){\n double step = (upperLimit-lowerLimit)/numTrap;\n d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field961' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField961(java.lang.CharSequence value) {
validate(fields()[961], value);
this.field961 = value;
fieldSetFlags()[961] = true;
return this;
} | [
"public void setField961(java.lang.CharSequence value) {\n this.field961 = value;\n }",
"public void setField994(java.lang.CharSequence value) {\n this.field994 = value;\n }",
"public void setField963(java.lang.CharSequence value) {\n this.field963 = value;\n }",
"public void setField991(java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute a robot by its fully qualified name. | public void execute(String robotName) throws RobotExecutionException {
execute(robotName, false);
} | [
"public void agregarRobot(String nombre);",
"public void runProgramOnRobot() {\n String fileName = model.getCurrentFileName();\n String fileContents = model.getCurrentFileContents();\n\n String commandContents = fileName + \":\" + fileContents;\n\n manageCommandAsync(new Command(\"run\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Product Promo'. | ProductPromo createProductPromo(); | [
"ProductPromoProduct createProductPromoProduct();",
"ProductPromoUse createProductPromoUse();",
"ProductPromoContent createProductPromoContent();",
"public PresaleProduct() {\n this(DSL.name(\"b2c_presale_product\"), null);\n }",
"private Product getThisProduct(Product p) {\n\t\tProduct product = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BaseMatrix__Group__4__Impl" $ANTLR start "rule__BaseMatrix__Group_0__0" ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/srcgen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8111:1: rule__BaseMatrix__Group_0__0 : rule__BaseMatrix__Group_0__0__Impl rule__BaseMatrix__Group_0__1 ; | public final void rule__BaseMatrix__Group_0__0() 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:8115:1: ( rule__BaseMatrix__... | [
"public final void rule__BaseMatrix__Group__0__Impl() 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:7969:1: ( ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the model index range policy of this model output chart order. | @AutoEscape
public String getModelIndexRangePolicy(); | [
"public void setModelIndexRangePolicy(String modelIndexRangePolicy);",
"public int getModelOutputChartOrder();",
"public int getRange() {\n\t\treturn range;\n\t}",
"public int getRange() {\n return range;\n }",
"public int getRange(){\r\n\t\treturn range;\r\n\t}",
"public int getPolicy()\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asks a Cyc query (new inference parameters) and returns an XML stream according to the specifications in the CycArrayList xmlSpec. | public String queryResultsToXMLString(FormulaSentence query,
CycObject mt,
InferenceParameters queryProperties,
CycList xmlSpec)
throws CycConnectionException, com.cyc.base.exception.CycApiException {
return queryResultsToXMLStringInternal(query, mt, queryProperties, xmlSpec)... | [
"public String queryResultsToXMLString(CycList query,\n CycObject mt,\n InferenceParameters queryProperties,\n CycList xmlSpec)\n throws CycConnectionException, com.cyc.base.exception.CycApiException {\n return queryResultsToXMLStringInternal(query, mt, queryProperties, xmlSpe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes a file to HDFS | public void writeToHdfs(String hdfsPath, byte[] data) throws IOException {
try (ByteArrayInputStream in = new ByteArrayInputStream(data)) {
writeToHdfs(hdfsPath, in);
}
} | [
"public void writeToHdfs(String hdfsPath, InputStream data)\r\n throws IOException {\r\n try (OutputStream os = fileSystem.create(new Path(hdfsPath))) {\r\n IOUtils.copyBytes(data, os, chunkSize);\r\n }\r\n }",
"public static void putFile(String localFile, String hdfsFile) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the remote callback used by this proxy. | public abstract RemoteCallback<?> getRemoteCallback(); | [
"Object getCallback();",
"public BaseCallback getBaseCallback() {\n\t\treturn baseCallback;\n\t}",
"@Field(10) \n\tpublic Pointer<UA_Connection.recv_callback > recv() {\n\t\treturn this.io.getPointerField(this, 10);\n\t}",
"public CommandCallback getCommandCallback() {\n return callback;\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of BaseCompanyTable | public BaseCompanyTable() {
} | [
"public HrCompanyDao() {\n super(HrCompany.HR_COMPANY, com.moseeker.baseorm.db.hrdb.tables.pojos.HrCompany.class);\n }",
"protected String getTableName() {\n\treturn \"Company\";\n }",
"void createCompany(Company company);",
"private static void companyTableAlignment() {\r\n\t\t// adding new comp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an ordered range of all the terms where groupId = &63; and termId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_PO... | public static List<Term> findByG_T(
long groupId, long termId, int start, int end,
OrderByComparator<Term> orderByComparator) {
return getPersistence().findByG_T(
groupId, termId, start, end, orderByComparator);
} | [
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<Term> findByG_T(\n\t\tlong groupId, lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
given a Quantity checks whether its units are acceptable and if so constructs a new Quantity of the correct subclass for this DOF and returns it | @Override
protected Quantity checkTarget(Quantity newQuantity) {
Length rtrn = null;
try {
rtrn = (Length) newQuantity;
} catch (ConversionException cce) {
// Deliberately do nothing because if the cast fails then the
// targetQuantity is not a length so we should return null
}
return rtrn;
} | [
"BaseQuantityType getBaseQuantity();",
"Quantity createQuantity();",
"@Override\n\tprotected Quantity checkTarget(Quantity newQuantity) {\n\t\tLength rtrn = null;\n\t\tif (newQuantity instanceof Length) {\n\t\t\trtrn = (Length) newQuantity;\n\t\t}\n\t\tif (newQuantity instanceof Energy) {\n\t\t\trtrn = Waveleng... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When URI and system property both have Zookeeper configuration, those in the URI has the highest priority. | @Test
public void initializeWithZookeeperUriAndSystemProperty() throws Exception {
try (Closeable p = toResource()) {
ConfigurationUtils.reloadProperties();
URI uri = URI.create("alluxio://zk@zkHost:2181");
FileSystem fs = getHadoopFilesystem(org.apache.hadoop.fs.FileSyst... | [
"private static String getGlobalResolutionPolicy(CuratorFramework zooKeeper) throws Exception {\n String policy = ZkDefs.LOCAL_HOSTNAME;\n List<String> validResolverList = Arrays.asList(ZkDefs.VALID_RESOLVERS);\n if (exists(zooKeeper, ZkPath.POLICIES.getPath(ZkDefs.RESOLVER)) != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates panel with parameters for LDA | private JPanel createLdaPane() {
JPanel ldaPane = new JPanel();
ldaPane.setBorder(BorderFactory
.createTitledBorder("Linear Discriminant Analysis"));
ldaPane.add(new JLabel("No parameters for this classifier"));
return ldaPane;
} | [
"private JPanel createParameters() {\n\t\t// MLP\n\t\tJPanel mlpPane = createMlpPane();\n\n\t\t// KNN\n\t\tJPanel knnPane = createKnnPane();\n\n\t\t// LDA\n\t\tJPanel ldaPane = createLdaPane();\n\n\t\t// SVM\n\t\tJPanel svmPane = createSvmPane();\n\n\t\t// Correlation\n\t\tJPanel correlationPane = createCorrelation... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this is called from the GameLoop when it polls the model and detects that the game is over. It resets the game and creates a new level. Another possibility would be to go to a level completed activity.... but we don't do that yet... | public void levelOver(){
// this is called by the model when the user wins the game!
if (gameModel.levelOver){
synchronized(gameModel){
gameModel.resetGame();
gameModel.createLevel(2,width,height);
for(Square s:gameModel.targets){
Log.d(TAG,"target = "+s);
}
gameModel.levelOver=false;
}
... | [
"public void resetCurrentLevel(){\n this.model.initialize(this.model.currentLevel);\n window.updateGame(model.board);\n }",
"public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"public void advanceLevel( int level ){\r\n // rese... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the dvsUuid value for this HostProxySwitch. | public void setDvsUuid(java.lang.String dvsUuid) {
this.dvsUuid = dvsUuid;
} | [
"public java.lang.String getDvsUuid() {\n\t\treturn dvsUuid;\n\t}",
"@Override\n public void setUuid(java.lang.String uuid) {\n _leagueDay.setUuid(uuid);\n }",
"public void setUuid(String uuid);",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_esfTournament.setUuid(uuid);\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provider for a Localizer. | public interface LocalizerProvider {
/**
* NOTE: DO NOT USE THIS FOR CULTURE LOCALIZATION
* This really should be deprecated
* @param language the language for the user
* @return a localizer that <em>can only be used for labels</em>
*/
BaseLocalizer getLabelLocalizer(HumanLanguage language);
/**
* @retu... | [
"public Localizer() {\n processor = new ComponentProcessor();\n }",
"protected ILocalizationService i18n() {\n\t\treturn getService(ILocalizationService.class);\n\t}",
"public interface Localizable {\n /**\n * Updates the current object with the locate given.\n */\n void localeChanged(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
display the following output: name, dough, sauce and toppings Using StringBuffer | public String toString() {
StringBuffer strb = new StringBuffer();
strb.append(name + "," + dough + "," + sauce + "," + toppings);
return strb.toString();
} | [
"public String printBuffs() {\n \t\tString r = \"(\";\n \t\tBuff b;\n \t\tfor (int i = 0; i < buffs.size; i++) {\n \t\t\tb = buffs.get(i);\n \t\t\tr += b.getName() + \"(\" + b.getDuration() + \"s)\";\n \t\t\tif (i < buffs.size - 1) r += \", \"; \n \t\t}\n \t\tr += \")\";\n \t\treturn r;\n \t}",
"@Override\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the technotes as an array list (as opposed to a single printable string). | public ArrayList <String> getTechNotesArrayList()
{
return techNotes;
} | [
"public java.util.List getAnalyticalNotes();",
"public String getTechNotesString()\r\n\t{\r\n\t\tString s = \"***Begin Tech Notes***\";\r\n\t\tString ls = System.lineSeparator();\r\n\t\t\r\n\t\tfor(int i = 0; i < this.techNotes.size();i++)\r\n\t\t{\r\n\t\t\ts += ls + techNotes.get(i);\r\n\t\t}\r\n\t\r\n\t\ts = s ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last child challenge in the ordered set where groupId = &63; and challengeId = &63; and status = &63;. | @Override
public ChildChallenge fetchByGroupIdAndChallengeAndStatus_Last(
long groupId, long challengeId, int status,
OrderByComparator orderByComparator) throws SystemException {
int count = countByGroupIdAndChallengeAndStatus(groupId, challengeId,
status);
if (count == 0) {
return null;
}
List<C... | [
"@Override\n\tpublic ChildChallenge fetchByGroupIdAndChallengeAndChallengeStatus_Last(\n\t\tlong groupId, long challengeId, String challengeStatus,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByGroupIdAndChallengeAndChallengeStatus(groupId,\n\t\t\t\tchallengeId, challeng... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of all perspectives. | @Override
public List<Perspective> listPerspectives() {
Query q = entityManager.createNamedQuery("perspectiveService.perspectiveList");
q.setHint("org.hibernate.cacheable", true);
return q.getResultList();
} | [
"public List<IHopPerspective> getPerspectives() {\n return new ArrayList<>( perspectivesMap.values() );\n }",
"public List<Permanent> getPermanentsInPlay() {\n\t\tList<Permanent> permanents = new LinkedList<Permanent>();\n\t\tpermanents.addAll(permanentsInPlay);\n\t\t\n\t\treturn permanents;\n\t}",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated method Setter of the BrainTreePaymentInfo.usePaymentMethodToken attribute. | public void setUsePaymentMethodToken(final boolean value)
{
setUsePaymentMethodToken( getSession().getSessionContext(), value );
} | [
"public void setUsePaymentMethodToken(final Boolean value)\n\t{\n\t\tsetUsePaymentMethodToken( getSession().getSessionContext(), value );\n\t}",
"public void setUsePaymentMethodToken(final SessionContext ctx, final boolean value)\n\t{\n\t\tsetUsePaymentMethodToken( ctx,Boolean.valueOf( value ) );\n\t}",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns list of positions of hallmark features in BED file format. Hallmark features are 1) last 5SS, 2) last 3SS and 3) polyA site | public ArrayList<BEDentry> getHallmarkBEDEntries() {
final String chrom = getBEDentry().getChrom();
final String parent_name = getBEDentry().getName();
final String strand = getBEDentry().getStrand();
ArrayList<BEDentry> bedList = new ArrayList<BEDentry>();
bedList.add( new BEDentry(chrom, getLast5... | [
"private void readHBonds(int n) throws Exception {\r\n Lst<Map<String, Object>> list = newList(\"hBonds\");\r\n for (int i = 0; i < n; i++) {\r\n Map<String, Object> data = new Hashtable<String, Object>();\r\n String[] tokens = PT.getTokens(rd());\r\n data.put(\"atno1\", Integer.valueOf(PT.pars... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Iterates through a list of company tickers, uses downloadFile() to get the file, uses pullInfo() to create HashMap of the company info, then creates a company object with that info and adds it to HashMap of company objects stored in this instance. | public void getAllCompanyInfo() throws FileNotFoundException, IOException
{
String tickerFileLoc = "companylist.csv";
CSVReader nameReader = new CSVReader(new FileReader(tickerFileLoc));
String[] nextLine;
String tempFileLoc;
int x = 0;
... | [
"static ArrayList<Company> initCompanies() {\n\n companyList = new ArrayList<Company>();\n\t\t/* Tier 0 */\n Rahoi = new Company(\"Rahoi\", 0, \"\\u001B[34m\", 0, 0);\n companyList.add(Rahoi);\n Tower = new Company(\"Tower\", 0, \"\\u001B[32m\", 0, 1);\n companyList.add(Tower);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Truncates the BLOB value that this Blob object represents to be len bytes in length. Note: If the value specified for pos is greater then the length+1 of the BLOB value then the behavior is undefined. Some JDBC drivers may throw a SQLException while other drivers may support this operation. | public void truncate(long len) throws SQLException {
if (len < 0) {
throw Util.invalidArgument("len: " + len);
}
checkClosed();
RandomAccessFile randomAccessFile = null;
try {
randomAccessFile = new RandomAccessFile(m_file, "rw");
randomAcce... | [
"public void truncate( long length ) {\n\t\tfinal byte[] data = new byte[(int)length];\n\t\tSystem.arraycopy( _data, 0, data, 0, (int)length );\n\t\t_data = data;\n\t}",
"public void truncate(long newLength) {\n if (newLength > getPosition() || newLength <= 0) {\n throw new IllegalArgumentExcept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of AdditionalInput | public final void setAdditionalInput(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String additionalinput)
{
getMendixObject().setValue(context, MemberNames.AdditionalInput.toString(), additionalinput);
} | [
"public final void setAdditionalInput(java.lang.String additionalinput)\n\t{\n\t\tsetAdditionalInput(getContext(), additionalinput);\n\t}",
"public void setUserInputText(HtmlInputText userInputText) {\n this.userInputText = userInputText;\n }",
"public void setExtendedInput(String extendedInput)\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test authenticated access to the upload Artifact page in HTML | @Test
public void testGetUploadArtifactPageBasicHtml() throws Exception
{
// prepare: add an artifact
final ClientResource getArtifactClientResource =
new ClientResource(this.getUrl(PoddWebConstants.PATH_ARTIFACT_UPLOAD));
final Representation results =
... | [
"@Test\n public void testUploadArtifactBasicHtml() throws Exception\n {\n final ClientResource uploadArtifactClientResource =\n new ClientResource(this.getUrl(PoddWebConstants.PATH_ARTIFACT_UPLOAD));\n \n final Representation input =\n this.buildRepres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get information about a specific media item | MediaBrowserCompat.MediaItem getItem(String mediaId); | [
"MediaItem getMediaItemWithInfo(Long itemId, BizContext context);",
"public abstract MediaItem getMediaItem(String id);",
"Resource getMediaItemResource(MediaItem item);",
"Collection getMediaItemCollection(MediaItem item);",
"Media getMedia(long mediaId);",
"io.bloombox.schema.product.struct.testing.Test... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "INTO" $ANTLR start "JOIN" | public final void mJOIN() throws RecognitionException {
try {
int _type = JOIN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// F:\\workspace\\PossDB\\Grammers\\CreateTable.g:187:11: ( J O I N )
// F:\\workspace\\PossDB\\Grammers\\CreateTable.g:187:15: J O I N
... | [
"public final void mJOIN() throws RecognitionException {\n try {\n int _type = JOIN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:357:5: ( J O I N )\n // /Users/cbinnig/Workspace/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the banner to the given image if it's not already displayed. | private void setBannerImage(Image nextImage) {
Objects.requireNonNull(nextImage);
if (nextImage.equals(bannerImage.getImage()))
return;
FadeTransition fade = new FadeTransition(Duration.millis(300), bannerImage);
fade.setFromValue(1.0);
fade.setToValue(0.0);
fade.setOnFinished(event -> {
bannerImage.... | [
"private void resetBannerImage() {\n\t\tsetBannerImage(defaultImage);\n\t}",
"void setBannerImages();",
"void setBannerStaticImages();",
"private void changecoverimage() {\n\n Category c = categoryFactory.getCategory(category);\n int drawableId = getResources().getIdentifier(\"cover_\"+c.getCate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column mail_mail.references | public void setReferences(String references) {
this.references = references == null ? null : references.trim();
} | [
"public void setReferences(org.purl.dc.elements.x11.SimpleLiteral references)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
STUDENT GET COURSE EVENT LIT FOR USER | public List<Events> getAllCoursesEventsListForUser(long userId); | [
"public String getEventCourse() {\n\t\treturn courseRelation;\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.UserEvent getEvent();",
"public ArrayList<Event> viewAllEvents(String username)\r\n\t{\r\n\t\tArrayList<Event> eventList = new ArrayList<Event>();\r\n\t\tArrayList<String> courseNames = new ArrayList<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checking if the class to be generated is a valid java identifier Also the name should be not same as the target interface | private boolean checkIdValidity(String name, Element e) {
boolean valid = true;
for (int i = 0; i < name.length(); i++) {
if (i == 0 ? !Character.isJavaIdentifierStart(name.charAt(i)) :
!Character.isJavaIdentifierPart(name.charAt(i))) {
error("AutoImp... | [
"boolean isValidJavaIdentifier(String string);",
"private static boolean isValidJavaIdentifier(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n {\r\n return false;\r\n }\r\n char[] c = s.toCharArray();\r\n if (!Character.isJavaIdentifierStart(c[0]))\r\n {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A list of tensor values. repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11; | public java.util.List<com.google.cloud.aiplatform.v1beta1.Tensor> getListValList() {
if (listValBuilder_ == null) {
return java.util.Collections.unmodifiableList(listVal_);
} else {
return listValBuilder_.getMessageList();
}
} | [
"@java.lang.Override\n public java.util.List<com.google.cloud.aiplatform.v1beta1.Tensor> getListValList() {\n return listVal_;\n }",
"@java.lang.Override\n public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.TensorOrBuilder>\n getListValOrBuilderList() {\n return listVal_;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testing addOrder of OrderImpl class | @Test
void testadd() {
assertEquals(true,service.addOrder(ob));
} | [
"@Test\n public void testAddOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Add Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the album art uri. | public String getAlbumArtUri() {
return albumArtUri;
} | [
"public URL getAlbumArtUrl(final ZonePlayer zp) throws MalformedURLException {\n String uri = getAlbumArtUri();\n if (uri.startsWith(\"/getAA\")) {\n // need to use mpath. what does this mean??\n LOGGER.info(\"uri = \" + uri);\n }\n\n return uri.length() == 0 ? null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Comment status value defined in the properties according to its id | public String getCommentStatusByID(int ID) {
String status = "Status not found!";
if (ID < 0 || ID >= this.commentStates.length) {
throw new RuntimeException(ID + " no valid StatusID!");
} else {
status = this.commentStates[ID];
}
return status;
} | [
"public String getCommentStatusByID(int ID) {\r\n String status = \"Status not found!\";\r\n if (ID < 0 || ID >= this.commentStates.length) {\r\n throw new RuntimeException(ID + \" no valid comment StatusID!\");\r\n } else {\r\n status = this.commentStates[ID];\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Callback fired once connection is completed (IceConnectionState is COMPLETED). | void onIceCompleted(); | [
"void onConnectFinished();",
"void onIceStatusChanged(IceConnectionState state, NBMPeerConnection connection);",
"void onIceConnected();",
"public void onIceConnected();",
"public void onPeerConnectionClosed();",
"void onPeerConnectionClosed();",
"public void connectionComplete(IRCEvent e)\n\t{\n\t\t/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the point (u, v) is on top of the shape | public boolean pointOnShape(int u, int v){
//doing this properly would be nasty because we would have to find out the size of the font
// and the size of the string when displayed in the font currently used by the canvas
// Instead, this uses an approximation, based on the default font of the canvas
ret... | [
"public boolean under(Vector v) {\n\t\treturn (v.x <= x && v.y < y);\n\t}",
"public boolean isPointOnPath();",
"public boolean insideOf(Point p) {\n double e = 0.0001;\n //check if it contains the x and y values that are withing the rect.\n Line bottomSide = new Line(downLeft, downRight);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This indicator says if all parameter is visible. If entity is specified, all won't be visible | @CliOptionVisibilityIndicator(params = {"all"}, command = "service",
help = "--all parameter is not visible if --entity parameter has been specified before.")
public boolean isAllParameterVisible(ShellContext context) {
if (context.getParameters().containsKey("entity")) {
return false;
}
retur... | [
"@CliOptionVisibilityIndicator(command = \"service\", params = {\"entity\"},\n help = \"--all parameter is not visible if --entity parameter has been specified before.\")\n public boolean isEntityParameterVisible(ShellContext context) {\n if (context.getParameters().containsKey(\"all\")) {\n return fa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the simulator linked to this event. | public final Simulator simulator() {
return sim;
} | [
"public String getSimulatorName() {\n return simulatorName.getValue();\n }",
"public Simulator getSimulator()\r\n {\r\n return sim;\r\n }",
"public SoccerSimulator getSimulator()\n {\n\treturn(thisSimulator);\n }",
"public Simulator getSimulator() {\n return sim;\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens the database (the interface) for the player requesting it | public void openDatabase(Player player) {
updateElements(player);
for (int i = 0; i < 5; i++)
player.getPA().sendFrame126("-", 59556 + i);
player.getPA().showInterface(59550);
} | [
"public void openIeltsDatabase() {\n openDatabase(DB_PATH + \"/\" + IELTS_DBNAME, 3);\n }",
"private void open() {\n\t\tFile dbf = new File( dbName );\n\n\t\tif ( dbf.exists( ) == false ) {\n\t\t\tSystem.out.println(\n\t\t\t\t \"SQLite database file [\"\n\t\t\t\t+ dbName\n\t\t\t\t+ \"] does not exist\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads iconlink tags and add them to forecast | private void readIconLinks(XmlPullParser xpp)
throws XmlPullParserException, IOException
{
int eventType = xpp.next();
while (eventType != XmlPullParser.END_DOCUMENT)
{
if (eventType == XmlPullParser.START_TAG)
{
// Read a tag
... | [
"private void readIcons(){\n\t\tString tag = \"\";\n\t\t\n\t\t//Handles tags that have no related icon\n\t\tImage unknownImg = null;\n\t\ttry {\n\t\t\tunknownImg = ImageIO.read(new File(ICON_FILE_PATH + \"Unknown.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\tfor(LinkedLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the view to the children list and corrects rectangle of composite view bound. The location of view is copied from view location | public void add(View v)
{
if( children.size() == 0 )
rect = (Rectangle)v.getBounds().clone();
else
rect.add(v.getBounds());
children.addElement(v);
} | [
"private void addView(ViewPart part) {\n assert (!part.isPart()) : \"Attempt to add part instead of full view\"; // NOI18N\n assert (wrapLine.endPart == null) : \"End part already set\"; // NOI18N\n if (wrapLineNonEmpty) {\n assert (wrapLine.endViewIndex == childIndex);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AtomicDomainSpecificEvent__Group_7_2__1" $ANTLR start "rule__AtomicDomainSpecificEvent__Group_7_2__1__Impl" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2860:1: rule__AtomicDomainSpecificEvent__Group_7_2__1__Impl : ( ':' ) ; | public final void rule__AtomicDomainSpecificEvent__Group_7_2__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2864:1: ( ( ':' ) )
// ../... | [
"public final void rule__AtomicDomainSpecificEvent__Group_7_2__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2923:1: ( ( 'end' ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |