query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Use CSSpeedUpBreed.newBuilder() to construct.
private CSSpeedUpBreed() {}
[ "private SCSpeedUpBreedRet() {}", "EthCepPac build();", "private Baby(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DeckBuilder() {\n Strategy = new NormalDeckStrategy();\n }", "public PizzaBuilder()\n\t{\n\t\tthis.size = CrustSize.S;\n\t\tthis.type...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the artifactId of the project.
public String getArtifactId() { return artifactId; }
[ "java.lang.String getArtifactId();", "String getArtifactId();", "public String getArtifactId()\n {\n return artifactId;\n }", "public String getArtifactId() {\n checkStatus();\n return info.getOrDefault(\"Implementation-Artifact\", null);\n }", "pb.lyft.datacatalog.Datacatalog.ArtifactId...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used by guess() poll the first entry of the priorityQ and insert other grammars into the priorityQ.
private String guessNext(List<MyNode>[] lowerList, List<MyNode>[] upperList, List<MyNode>[] digitList, List<MyNode>[] symbolList, double threshold) throws Exception { MyNode entry = priorityQ.poll(); if (entry == null) { System.out.println("[OUT OF PATTERN!]!"); return null; // System.exit(0)...
[ "public void insertPriorityItem (T T)\n {\n m_Q.addFirst (T);\n }", "public void priorityInsert(Message input) {\n\n int i;\n\n if (numberOfItems == 0) {\n\n insert(input);\n\n } else {\n\n for (i = numberOfItems - 1; i >= 0; i--) {\n\n if (input.comp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Revokes a tablelevel permission from a user or role.
public RevokePermissionTableResponse revokePermissionTable(RevokePermissionTableRequest request) throws GPUdbException { RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse(); submitRequest("/revoke/permission/table", request, actualResponse_, false); return actualR...
[ "void revokePermission(User userToRevoke, PermissionEnum permissionType) throws UserManagementException;", "public void revokePermission(Permissable perm, IPermission permission);", "void revoke(String principal, EntityId entityId, Permission permission) throws Exception;", "@Override\n\tpublic void revoke(Us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Discovers local or remote connectors. The operation will try to search for new connectors. It works either on local host (hostType is null) or on a remote host (hostType is not null). All discovered connectors are stored in the repository. It returns connectors that were discovered: those that were not in the repositor...
Set<ConnectorType> discoverConnectors(ConnectorHostType hostType, OperationResult parentResult) throws CommunicationException;
[ "public Connector[] findConnectors();", "private void discoverConnectors() throws IOException {\n // Find the factory class name\n final ClassLoader classLoader = org.restlet.util.Engine\n .getClassLoader();\n\n // Register the client connector providers\n discoverClient...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for fields in this group or any subgroup
boolean checkForFields (GroupElement topgroup) { GroupElement[] subgroups = topgroup.getGroups(); FieldElement[] fields = topgroup.getFields (); if (fields.length > 0) return true; for (GroupElement group : subgroups) if (this.checkForFields (group)) ...
[ "boolean hasFieldNested();", "public boolean definesGroupFieldNames() {\n return getGroupFieldNames() != null && !getGroupFieldNames().isEmpty();\n }", "boolean hasNestedField();", "boolean hasField0();", "public boolean check(Group group){\n return false;\n }", "protected boolean canGenerat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field askVolume is set (has been assigned a value) and false otherwise
public boolean isSetAskVolume() { return EncodingUtils.testBit(__isset_bitfield, __ASKVOLUME_ISSET_ID); }
[ "public boolean isSetBidVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME_ISSET_ID);\n }", "private boolean shouldRestrictVolume()\n\t{\n\t\treturn this.getShouldRestrictVolumeCheckBox().isChecked();\n\t}", "public boolean shouldModifyVolume();", "protected boolean isVolumeOn(int min...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure the Codec that will be used to encode and decode Messages sent through Connections managed by this ConnectionManager.
public void setCodec(Codec codec);
[ "protected CodecConfiguration() {\n\t\t\t\tsuper();\n\t\t\t}", "void setMessageEncoder(MessageEncoder<MessageType> messageEncoder);", "public void setCodec(Codec codec) {\n\t\tthis.codec = codec;\n\t}", "private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tproces...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This updates the current active page, and the enabled state of the previous and next buttons in the Pagination based on the state of the given SimplePager.
private void updatePaginationState(final SimplePager pager) { for (int i = 0; i < getWidgetCount(); i++) { if (i == 0) { //previous button ((AnchorListItem)getWidget(i)).setEnabled(pager.hasPreviousPage()); } else if (i == getWidgetCount() - 1) { //next butto...
[ "public void rebuild(final SimplePager pager) {\n clear();\n\n if (pager.getPageCount() == 0) {\n return;\n }\n\n final AnchorListItem prev = addPreviousLink();\n prev.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(final Cli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /tbcanalisescomponentes : get all the tbc_analises_componentes.
@GetMapping("/tbc-analises-componentes") @Timed public ResponseEntity<List<Tbc_analises_componente>> getAllTbc_analises_componentes(@RequestParam(value = "idAnalise") @ApiParam Long idAnalise, @ApiParam Pageable pageable) throws URISyntaxException { log.debug("REST request to get a page of Tbc_a...
[ "List<Tbc_analises_componente> findAllListForAnalise(Long id);", "@GetMapping(\"/_search/tbc-analises-componentes\")\n @Timed\n public ResponseEntity<List<Tbc_analises_componente>> searchTbc_analises_componentes(@RequestParam String query, @ApiParam Pageable pageable)\n throws URISyntaxException {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register the given datanode with the namenode. NB: the given registration is mutated and given back to the datanode.
public void registerDatanode(DatanodeRegistration nodeReg) throws DisallowedDatanodeException, UnresolvedTopologyException { InetAddress dnAddress = Server.getRemoteIp(); if (dnAddress != null) { // Mostly called inside an RPC, update ip and peer hostname String hostname = dnAddress.getHostNam...
[ "public int register(DataNode node) throws RemoteException;", "private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Should this gui pause the game when it is opened?
@Override public boolean doesGuiPauseGame() { return false; }
[ "public boolean doesGuiPauseGame()\n {\n return true;\n }", "public boolean doesGuiPauseGame()\n {\n return false;\n }", "public boolean doesGuiPauseGame()\n\t{\n\t\treturn true;\n\t}", "public boolean doesGuiPauseGame()\r\n\t{\r\n\t\treturn false;\r\n\t}", "public boolean doesGuiP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface used by the class ProjectEJB
@Remote public interface ProjectEJBRemote { List<Project> findProjects() throws Exception ; Student findProjectById(long id) throws Exception ; Student createProject(Project p) throws Exception ; void deleteProject(Project p) throws Exception; Student updateProject(Project p) throws Exception ; }
[ "public interface ProjectDashboardEJBLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * getID\r\n\t */\r\n\tpublic java.lang.String getID();\r\n\t/**\r\n\t * getName\r\n\t */\r\n\tpublic java.lang.String getName();\r\n\t/**\r\n\t * getCode\r\n\t */\r\n\tpublic java.lang.String getCode();\r\n\t/**\r\n\t * get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Duplicates another form into this form.
public abstract void duplicate(Form other);
[ "public HttpContentRequestImpl duplicate() {\n HttpContentRequestImpl copy = new HttpContentRequestImpl();\n copy.setMethod(this.getMethod());\n copy.setForm(this.isForm());\n copy.setProxiedLocation(this.getProxiedLocation());\n copy.setHttpContext(this.getHttpContext());\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the WeaponObject if not null
public WeaponObject getWeaponObject(){ if(w != null) return w; else return null; }
[ "public Item getWeaponObject()\n {\n Item i = ItemJaxb.getItemFromXml(this.getWeaponName());\n \n if(i != null)\n i.itemLevel = level;\n \n return i;\n }", "public WeaponItem getWeapon(){\n \treturn equippedWeapon;\n }", "public Weapon getWeapon(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lower case percentage frequencies in str is returned as a list
public List<Float> frequency(final String str) { int letterCount = lowers(str); List<Float> list = new ArrayList<Float>(); for (int i = 0; i < 26; i++) { list.add((float) count(nat2let(i), str) / letterCount * 100); } return list; }
[ "public void toFindFrequency() {\r\n \t System.out.println(\"Enter the string to find the frequency of the charater\");\r\n\t String string = scanner.nextLine();\r\n\t int [] upper = new int [26];\r\n\t int [] lower = new int[26];\r\n\t \r\n\t for (int i = 0; i < string.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove a truck in the database.
public void removeTruck(int plateNo) { new TruckDB().deleteTruck(plateNo); }
[ "@Override\r\n\tpublic synchronized void remove(Truck truck) {\n\t\tIterator<Truck> it = trucks.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tTruck t = it.next();\r\n \t\t \tif(t.equals(truck)) {\r\n \t\tit.remove();\r\n \t\t}\r\n\t\t}\r\n\t\t// trucks.remove(truck);\r\n\t}", "public EntyTruck rem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last loan in the ordered set where status = &63;.
public Loan fetchByStatus_Last(String status, com.liferay.portal.kernel.util.OrderByComparator<Loan> orderByComparator);
[ "public ExpenseItem fetchByStatus_Last(\n\t\tint status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<ExpenseItem>\n\t\t\torderByComparator);", "public Loan findByStatus_Last(String status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Loan> orderByComparator)\n\t\tthrows NoSuchLoanException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of findTripsByDestination method, of class TripDAO.
public void testFindTripsByDestination() { em.getTransaction().begin(); Trip trip1 = prepareTrip(); trip1.setDestination("Greece"); tripDAOImpl.createTrip(trip1); Trip trip2 = prepareTrip(); trip1.setDestination("Spain"); tripDAOImpl.createTrip(trip2); ...
[ "public void testGetAllTrips() {\n em.getTransaction().begin();\n Trip trip1 = prepareTrip();\n Trip trip2 = prepareTrip(); \n tripDAOImpl.createTrip(trip1);\n tripDAOImpl.createTrip(trip2);\n em.getTransaction().commit();\n assertEquals(2, tripDAOImpl....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
change screen lock time out
public static void setScreenTimeOut(int value){ if (Log.LOGV) { Log.v(t + ".setScreenTimeOut(): value = " + value); } Settings.System.putInt(OBS.getInstance().getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, value); }
[ "public void setScreenTimeOut(int milisecond) {\n try {\n android.provider.Settings.System.putInt(mContext.getContentResolver(),\n android.provider.Settings.System.SCREEN_OFF_TIMEOUT, milisecond);\n } catch (NumberFormatException e) {\n Log.print(\"could not pe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as attribute value for EVENT_TYPE using the alias name EventType.
public void setEventType(String value) { setAttributeInternal(EVENTTYPE, value); }
[ "public void setEventType(java.lang.String value) {\n this.eventType = value;\n }", "public void setEventtype(java.lang.String newValue) {\n\tthis.eventtype = newValue;\n}", "public void setEventType(ValueExpression eventType) {\n this.eventType = eventType;\n }", "public void setEventType(int e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure the score labels contain only the expected number, with no other digits.
private void checkScores(int expectP1, int expectP2) { assertTrue(p1ScoreLabel.getText().matches("[^\\d]*" + expectP1 + "[^\\d]*")); assertTrue(p2ScoreLabel.getText().matches("[^\\d]*" + expectP2 + "[^\\d]*")); }
[ "@SmallTest\n\tpublic void testBadMatchPenalty() {\n\t\tbadMatch();\n\t\tassertEquals((Integer) (START_SCORE - BAD_MATCH_PENALTY), Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "@Test\r\n\tpublic void testSpecificScore() throws ComponentOutOfRangeException {\r\n\t\tassertEquals(new MarkGrade(50, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the mode property: Abstract base class for defining a distribution mode.
public DistributionModeInternal getMode() { return this.mode; }
[ "public PropertyMode getMode() {\r\n\t\treturn mode;\r\n\t}", "public PropertyMode getMode() {\n\t\treturn mode;\n\t}", "public AttributeMode getMode()\n {\n return mode;\n }", "int getMode();", "public int value() { return mode; }", "MeasuringMode getMode();", "public String getModeName() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Try to test this interceptor1_value1 interceptor1_value2 interceptor2_value1 interceptor2_value2
public void testBuildInterceptor_3() throws Exception { InterceptorConfig interceptorConfig1 = new InterceptorConfig(); interceptorConfig1.setClassName("com.opensymphony.xwork.config.providers.InterceptorBuilderTest$MockInterceptor1"); interceptorConfig1.setName("interceptor1"); InterceptorConfig interceptor...
[ "public void testBuildInterceptor_1() throws Exception {\n\t\tInterceptorStackConfig interceptorStackConfig1 = new InterceptorStackConfig();\n\t\tinterceptorStackConfig1.setName(\"interceptorStack1\");\n\t\t\n\t\tInterceptorConfig interceptorConfig1 = new InterceptorConfig();\n\t\tinterceptorConfig1.setClassName(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To select preferred payment day
public void selectPreferredPaymentDay(String Day, ExtentTest extentReport, boolean screenshot) throws Exception { try { WaitUtils.waitForElement(driver, drpdwnPreferredPaymentDay); Select preferredPayementDay = new Select(drpdwnPreferredPaymentDay); preferredPayementDay.selectByVisibleText(Day); WaitUtils...
[ "public boolean verifyPreferredPaymentDay(String Day) throws Exception {\n\t\ttry {\n\t\t\tboolean status = false;\n\t\t\tif (WaitUtils.waitForElement(driver, drpdwnPreferredPaymentDay)) {\n\t\t\t\tSelect drpReason = new Select(drpdwnPreferredPaymentDay);\n\t\t\t\tif (drpReason.getFirstSelectedOption().getText().eq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process a mouseExited event. If a line is being drawn (and mouse go off the map), it will be erased. The anchor point rPoint1 is kept in case the mouse comes back on the screen. Then, a new line will be drawn with the original mouse press position.
public void mouseExited(MouseEvent e) { if (e.getSource() instanceof MapBean) { // erase the old line first paintRubberband(rPoint1, rPoint2); // set the second point to null so that a new line will be // re-drawn if the mouse comes back, and the line will us...
[ "public void mouseReleased(MouseEvent e) // When mouse is released:\n {\n hLineGrabbed = vLineGrabbed = // Neither line is grabbed\n hLineMoved = vLineMoved = false; // Neither line is moved anymore\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n // Reset mouse positi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the knowledge manager that is supposed to be used within this runtime. Used by the OSGi framework.
public void setKnowledgeManager(Object km);
[ "public void setManager(Manager manager);", "public void setMemManager(MemoryManager memManager) {\r\n\t\tKnowledgeBaseManager.memManager = memManager;\r\n\t}", "public void setManager ( Object manager ) {\r\n\t\tgetStateHelper().put(PropertyKeys.manager, manager);\r\n\t\thandleAttribute(\"manager\", manager)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0" $ANTLR start "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:31900:1: rule__XTryCatchFinallyExpression__Finally...
public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g...
[ "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Switches the view to the screen specified.
@Override public void setView(Screens screen) { switch (screen){ case MAIN_MENU: switchView(mainScreen); break; case COMBAT: switchView(combatScreen); break; case PARTY: switchView(partyScreen...
[ "public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }", "public void switchScreens (String screen)\n {\n CardLayout temp = (CardLayout) (card.getLayout ());\n temp.show (card, screen);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns operator associated with specified key.
public Operator getOperator(Object key) { Operator operator = (Operator) mComparisonOperatorMap.get(key); if (operator == null) { return mDefaultComparisonOperator; } return operator; }
[ "public LogicalOperator getLogicalOperator(Object key)\n\t{\n\t\tLogicalOperator operator = (LogicalOperator) mLogicalOperatorMap.get(key);\n\t\tif (operator == null)\n\t\t{\n\t\t\treturn mDefaultLogicalOperator;\n\t\t}\n\t\treturn operator;\n\t}", "public OperatorKey getOperatorKey() {\n return mKey;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleBooleanLiteral" $ANTLR start "ruleBooleanLiteral" ../org.osate.xtext.aadl2.properties/srcgen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesParser.g:675:1: ruleBooleanLiteral returns [EObject current=null] : ( () ( ( (lv_value_1_0= KEYWORD_19 ) ) | otherlv_2= KEYWORD_21 ) ...
public final EObject ruleBooleanLiteral() throws RecognitionException { EObject current = null; Token lv_value_1_0=null; Token otherlv_2=null; enterRule(); try { // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/an...
[ "public final EObject entryRuleBooleanLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleBooleanLiteral = null;\n\n\n try {\n // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesPars...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method recursively rolls through the dataPropertyNodeHierarchy
private OWLDataPropertyNodeSet getSubDataPropsRecursively(Node<OWLDataProperty> currentNode, OWLDataPropertyNodeSet instances) { if (!instances.containsEntity(currentNode.getRepresentativeElement())) { instances.addNode(currentNode); } Set<DefaultEdge> incomingEdges = dataProperty...
[ "private static List<BeanProperty<?>> getPropertyHierarchy(BeanProperty<?> property) {\n\t\tList<BeanProperty<?>> hierarchy = new LinkedList<>();\n\t\thierarchy.add(property);\n\t\tproperty.getParentProperty().ifPresent(p -> hierarchy.addAll(0, getPropertyHierarchy(p)));\n\t\treturn hierarchy;\n\t}", "private sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a given weightHistory to the persistencelayer for deleting.
@Override void delete(WeightHistory weightHistory) throws ServiceException;
[ "public void delete(History history) {\n //todo implement\n }", "@Override\n WeightHistory update(WeightHistory weightHistory) throws ServiceException;", "@Override\n void delete(BodyfatHistory bodyfatHistory) throws ServiceException;", "void deleteCommandHistory(CommandHistory commandHistory)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if mobile network enabled
public boolean isMobileNetworkEnabled() { final NetworkInfo info = mConnectivityManager.getNetworkInfo( ConnectivityManager.TYPE_MOBILE); return (info != null && info.isConnected()); }
[ "public boolean CheckForMobileNetwork(){\n ConnectivityManager manager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n boolean mobile = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isConnectedOrConnecting();\n return mobile;\n\n }", "public boolean hasMo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assign CellProcessor to each of the required columns.
private CellProcessor[] getCellProcessors(String[] headers, Map<String, CellProcessor> requiredColumns) { CellProcessor[] processors = new CellProcessor[headers.length]; for (int i = 0; i < headers.length; i++) { final CellProcessor processor = requiredColumns.get(headers[i]); if...
[ "public AbstractColumnProcessor() {\n\t\tthis(1000);\n\t}", "private void setCellFactoryAllColumns(\r\n\t Callback<TableColumn<Product, Number>, TableCell<Product, Number>> cellFactory) {\r\n\tcolumn1.setCellFactory(cellFactory);\r\n\tcolumn2.setCellFactory(cellFactory);\r\n\tcolumn3.setCellFactory(cellFactory...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nos retorna la linea maxima del detalle para poder asignar correctamente la proxima linea a la hora de quitar
private int getLineaMaxima(){ int max = 0; if(this.lstDetalleVO != null) { for (IngresoCobroDetalleVO d : this.lstDetalleVO) { if(d.getLinea() > max) max = d.getLinea(); } } return max; }
[ "private int lineWithNextToClear() {\n\t\tint idx = 0;\n\t\tint minDepartTime = Integer.MAX_VALUE;\n\t\tint temp;\n\t\tfor (int i = 0; i < checkpoints.size(); i++) {\n\t\t\tif (checkpoints.get(i).hasNext()) {\n\t\t\t\ttemp = checkpoints.get(i).nextToGo().getArrivalTime() + checkpoints.get(i).nextToGo().getWaitTime(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Place a game element into the game area.
NewSprite placeElement(String elementTemplateName, Point2D startCoordinates) throws ReflectiveOperationException;
[ "int placeElement(String elementName, Point2D startCoordinates);", "public TowerDefenseElement placeElement(String elementName, double x, double y);", "public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}", "void doPlaceObject() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When the user chooses menu option 3, prompt the user to enter a property ID. Search the ArrayList to find the object with this ID. Remove this object from the ArrayList if found. Display an error message if not found or if the ArrayList is empty. Be sure to test deleting the last property from the array list.
private static void option3() { int newPropertyID; System.out.println("\nEnter The Property ID You Would Like To Find: "); newPropertyID = scanner.nextInt(); scanner.nextLine(); if (propertyObjects.isEmpty()) { System.out.println("The Property List is currently empty"); return; ...
[ "public void processDeletion()\r\n\t{\t//Test if id matches an id in our list\r\n\t\tif (checkId())//id matches the list\r\n\t\t{\t//Delete the FitnessClass object from the array\r\n\t\t\tclassList.setClassNull(idIn.getText().trim());\t\t\t\r\n\t\t\tclearTextFields();\r\n\t\t\t\r\n\t\t\t//Refresh the timetable disp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of menorArray method, of class SolActividad1.
@Test public void menorArrayTest() { System.out.println("menorArray"); int[] vector = {10,20,30,40,5}; int expResult = 5; int result = SolActividad1.menorArray(vector); assertEquals(expResult, result); }
[ "@Test\n public void testTransforma() {\n \n int [] ordem = new int [5];\n \n \n ordem[0]=1;\n ordem[1]=4;\n ordem[2]=2;\n ordem[3]=3;\n ordem[4]=5;\n assertEquals(\"ateste\",this.modelo.transforma(ordem, \"Teste\"));\n \n \n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_trade_model.year_earn_rate
public void setYearEarnRate(Double yearEarnRate) { this.yearEarnRate = yearEarnRate; }
[ "public Double getYearEarnRate() {\r\n return yearEarnRate;\r\n }", "public void setEarnRate(Double earnRate) {\r\n this.earnRate = earnRate;\r\n }", "protected void setChangeYearHigh(BigDecimal changeYearHigh){\n\t\tsynchronized(this){\n\t\t\tthis.changeYearHigh = changeYearHigh;\n\t\t}\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Incorporates the provided newStats into the multieStatus.
boolean mergeStatus(MultiStatus multiStatus, IStatus newStatus) { if (!newStatus.isOK()) { multiStatus.add(newStatus); return !UIBindingsUtils.isFatalError(multiStatus); } return true; }
[ "public void setStatChanges(int[] newStatChanges) {\r\n\t\tSystem.arraycopy(newStatChanges, 0, statChanges, 0, NUMSTATS);\r\n\t}", "public void setPlayerStats(PlayerStats newStats);", "public void setPlayerStats(PlayerStats oldStats, PlayerStats newStats) {\r\n\t\toldStats.username = newStats.username;\r\n\t\to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the application key. The value of the key may be used to resolve property files by using the convention [key].properties.
public String getApplicationKey() { return m_key; }
[ "public static String getApplicationKey() {\n\n\t\treturn applicationKey;\n\t}", "java.lang.String getAppKey();", "public String getAppKey() {\r\n return appKey;\r\n }", "@Schema(description = \"The key of the application property. The ID and key are the same.\")\n public String getKey() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of external links where componentId = &63; and linkType = &63;.
public int countByComponentIdWithType(long componentId, String linkType) throws SystemException { Object[] finderArgs = new Object[] { componentId, linkType }; Long count = (Long) FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_COMPONENTIDWITHTYPE, finderArgs, this); if ...
[ "int getNumberOfLinks();", "public int countLink() {\n\t\tint count = 0;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT count(*) from links\");\n\t\t stmt.execute();\n\t\t ResultSet rs = stmt.executeQuery();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INSTRUCTIONS: Given 2 int values, return true if they are both in the range 30..40 inclusive, or they are both in the range 40..50 inclusive. in3050(30, 31) > true in3050(30, 41) > false in3050(40, 50) > true
public static boolean in3050(int a, int b) { // ADD YOUR CODE HERE }
[ "public boolean in3050(int a, int b) {\n return ((a >= 30 && a <= 40) && (b >= 30 && b <= 40)) ||\n ((a >= 40 && a <= 50) && (b >= 40 && b <= 50));\n}", "public boolean in1020(int a, int b) {\n return ((a >= 10 && a <= 20) || (b >= 10 && b <= 20));\n}", "public static boolean Between10and20(int a, int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
3 e73ju97kxz883q0hp1udq4rd7 int gvRenderContext(GVC_t gvc, graph_t g, const char format, void context)
public static Object gvRenderContext(Object... arg) { UNSUPPORTED("6bxfu9f9cshxn0i97berfl9bw"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("1bh3yj957he6yv2dkeg4pzwdk"); // int rc; UNSUPPORTED("1ag9dz4apxn0w3cz8w2bf...
[ "public int getRenderContext();", "public Graphics2D getRenderContext(\n )\n {return renderContext;}", "public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for attribute 'LinkEnd.IsOrdered' Metamodel description: Determines if this LinkEnd is ordered.
@objid ("fcf73d01-d406-41e9-9490-067237966153") boolean isIsOrdered();
[ "public boolean isOrdered() {\n return ordered;\n }", "public boolean isOrderDesc() {\n return orderDesc;\n }", "public Boolean getOrdered() { \n\t\treturn getOrderedElement().getValue();\n\t}", "public boolean isOrderingAsAdded() {\n return mOrderingAsAdded;\n }", "public jav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the existingCollectionIndexingSession attribute of the CollectionIndexer object
protected CollectionIndexingSession getExistingCollectionIndexingSession(String sessionId) { CollectionIndexingSession sess = new CollectionIndexingSession(); sess.setSessionId(sessionId); return sess; }
[ "public CollectionIndexingSession getNewCollectionIndexingSession(String collectionKey) {\n\t\treturn new CollectionIndexingSession(collectionKey);\n\t}", "public ClusterSession getClusterSession() {\n return cl;\n }", "public Integer getCollectionid() {\n return collectionid;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "longitude" flips.g:778:1: longitude : (x= numericValuePositive ew= longitudeEastWest > ^( ANGLE $ew $x DEGREE ) | x= numericValuePositive xu= angularUnit ew= longitudeEastWest > ^( ANGLE $ew $x $xu) | deg= integerValuePositive 'd' min= numericValuePositive '\\'' ew= longitudeEastWest > ^( ANGLE $ew $deg D...
public final flipsParser.longitude_return longitude() throws RecognitionException { flipsParser.longitude_return retval = new flipsParser.longitude_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token char_literal527=null; Token char_literal528=null; fl...
[ "public final flipsParser.latitudeLongitude_return latitudeLongitude() throws RecognitionException {\n flipsParser.latitudeLongitude_return retval = new flipsParser.latitudeLongitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal518=null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of IOHelper
public IOHelper() { this("---"); }
[ "public IOHelper(String name) {\r\n this(name,false);\r\n }", "IOFile createIOFile();", "public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}", "public FileIO()\n {\n\n }", "private IoUtil() {\n\n }", "private FileUtils() {\n super();\n }", "@Override...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
selects all paused players for a new round
public void calculatePausedPlayers(Tournament tournament, Round round) { // this is the number of players in one match int numberOfMatchPlayers = tournament.getTeamSize() * 2; // home and away team // this is the maximum number of players in one round int maxNumberOfActivePlayers = tournament.getCourts() * ...
[ "public static void pauseGame() {\r\n\t\tfor (MovingUnit mu : _players) {\r\n\t\t\t((WinningInterface) mu).pauseUnit();\r\n\t\t}\r\n\t}", "public void playRound() {\r\n Player[] gamePlayers = players;\r\n for (Player player : gamePlayers) {\r\n takeTurn(player);\r\n System.out....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether collection is not null, index is lower than the size of collection and index is not negative.
public static boolean isIndex(Collection<?> col, int idx) { return col != null && idx >= 0 && idx < col.size(); }
[ "public static boolean validCollection(Object collection) {\r\n return collection != null && collection instanceof Collection && ((Collection<?>) collection).size() > 0;\r\n }", "public static void requireSaneCollection(Collection<?> collection) {\n \t requireNotNull(collection);\n \t require(! collec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a random date between the min date (inclusive) given and the current date (exclusive).
public static Date getRandomPastDate(Date minDate) { Date maxDate = new Date(); if (minDate != null && minDate.after(maxDate)) { Calendar cdr = Calendar.getInstance(); cdr.setTime(maxDate); // go back a month cdr.add(Calendar.MONTH, -1); minDate = cdr.getTime(); } ...
[ "private Date randomDate() {\n int minDay = (int) LocalDate.of(2012, 1, 1).toEpochDay();\n int maxDay = (int) LocalDate.now().toEpochDay();\n int randomDay = minDay + intRandom(maxDay - minDay);\n LocalDate randomDate = LocalDate.ofEpochDay(randomDay);\n Date d = toDate(randomDate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Facet__Group__1__Impl" $ANTLR start "rule__Facet__Group__2" InternalMyDsl.g:348:1: rule__Facet__Group__2 : rule__Facet__Group__2__Impl rule__Facet__Group__3 ;
public final void rule__Facet__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:352:2: ( rule__Facet__Group__2__Impl rule__Facet__Group__3 ) // InternalMyDsl.g:353:2: rule__Facet__Group__2__Impl rule__Facet__Group__3 { pushFollow(FOLLOW_9); rul...
[ "public final void rule__Facet__Group__1() throws RecognitionException {\n\n\t\t\t\tint stackSize = keepStackSize();\n\t\t\t\n\t\ttry {\n\t\t\t// InternalMyDsl.g:325:2: ( rule__Facet__Group__1__Impl rule__Facet__Group__2 )\n\t\t\t// InternalMyDsl.g:326:2: rule__Facet__Group__1__Impl rule__Facet__Group__2\n\t\t\t{\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test accuracy of constructor JNDIConnectionProducer(URL, Properties, User, Password).
public void testConstructor4() throws Exception { producer = new JNDIConnectionProducer(AccuracyTestHelper.getDBJNDI(), new Hashtable(), AccuracyTestHelper.getDBUserName(), AccuracyTestHelper.getDBPassword()); assertNotNull("Failed to create instance with property.", producer); }
[ "public void testConstructor1() throws Exception {\n producer = new JNDIConnectionProducer(AccuracyTestHelper.getProperty(AccuracyTestHelper.JNDI));\n assertNotNull(\"Failed to create instance with property.\", producer);\n }", "public void testConstructor3() throws Exception {\n producer ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the parsed string as int or defaultValue if an exception occured
public static int convertStringToIntDef(String string, int defaultValue) { try { return Integer.parseInt(string); } catch (NumberFormatException e) { return defaultValue; } }
[ "public static int parseIntOrDefault(String s, int defaultInt) {\n try {\n return Integer.parseInt(s);\n } catch (NumberFormatException e) {\n Logger.trace(MESSAGE, s, e);\n return defaultInt;\n }\n }", "public static int stringToInt(String str, int default...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__DistributedEventUpdate__Group_0__4" $ANTLR start "rule__DistributedEventUpdate__Group_0__4__Impl" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6242:1: rule__DistributedEventUpdate__Group_0__4__Impl : ( '(' ) ;
public final void rule__DistributedEventUpdate__Group_0__4__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6246:1: ( ( '(' ) ) // ../eu.qu...
[ "public final void rule__DistributedEventUpdate__Group_0_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6400:1: ( rule__DistributedEventUpd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for processing token reinforce country command
private ReinforceCountryCommand processTokenReinforceCountryCommand(int i) { Player player = mapData.getPlayers().last(); if (player.getPhase() == Phase.REINFORCEMENT) { if (player.getCards().getNumberOfCards() == 5) { commandSytanxProcessor.onError("You have 5 cards and you...
[ "private PlaceArmyCommand processTokenPlaceArmyCommand(int i) {\n Player player = mapData.getPlayers().last();\n String countryName = tokens.get(i).getContent();\n if (player.doesCountryBelongToPlayer(countryName)) {\n PlaceArmyCommand placeArmyCommand = new PlaceArmyCommand(mapData,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Filter strings that contains the pattern
Stream<String> filter(Stream<String> stringStream, String pattern);
[ "Set<String> wildcardMatches(String pattern);", "private boolean filterWords(String[] line, String[] filter) {\n boolean skipLine = false;\n int i = 0;\n for (String s : filter) {\n i++;\n if (s.length() > 0 && !s.trim().equals(line[i].trim())) {\n skipLin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the social authentications.
public Boolean getSocialAuthentications() { return socialAuthentications; }
[ "public List<AuthenticationHelper> getRegisteredAuthentications() {\n return this.registeredAuthentications;\n }", "public void setSocialAuthentications(Boolean socialAuthentications) {\n\t\tthis.socialAuthentications = socialAuthentications;\n\t}", "@NonNull\n public Set<Uri> getAuthenticationMeth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public abstract ReadCommand createReadHandler(SocketChannel theSocketChannel); public abstract void allocateReadState(SocketChannel theSocketChannel);
public abstract ReadCommand getReadHandler(SocketChannel theSocketChannel);
[ "protected ReadCommand createReadHandler(SocketChannel theSocketChannel) {\n\t\tReadCommand retVal = ReadCommandFactorySelector.getFactory().createReadCommand(selectionManager, theSocketChannel);\r\n\t\tReadRequestCreated.newCase(this, retVal);\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "void makeMessageRead();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Trigger'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseTrigger(Trigger object) { return null; }
[ "public T caseTrigger(Trigger object) {\n\t\treturn null;\n\t}", "public T caseTrigger(Trigger object) {\r\n\t\treturn null;\r\n\t}", "Trigger getTrigger();", "public T caseLOTrigger(LOTrigger object)\n {\n return null;\n }", "public T caseGenericTrigger(GenericTrigger object)\n {\n return null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getAdvancedSearch method, of class ComponenteDAO.
@Test public void testGetAdvancedSearch() { System.out.println("getAdvancedSearch"); query = mock(Query.class); String cQuery = "Componente.dummyQuery"; List<Componente> expected = new ArrayList<>(); when(this.em.createNamedQuery(cQuery)).thenReturn(query); when(cDao....
[ "@Test\n public void testComplexSearch() throws Exception {\n System.out.println(\"complexSearch\");\n\n try (DataAccessContext dac = dap.getDataAccessContext()) {\n CRUDdao cd = dac.getCRUDdao();\n // seach all start cities of all routes of user 1;\n List<SearchTer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ isMacOSXVersionLT Comparison function for checking OS X version / compatibility, which handles supporting skewed version numbering schemes / used by the "darwin" triples.
@Converted(kind = Converted.Kind.AUTO, source = "${LLVM_SRC}/llvm/include/llvm/ADT/Triple.h", line = 405, old_source = "${LLVM_SRC}/llvm/include/llvm/ADT/Triple.h", old_line = 393, FQN="llvm::Triple::isMacOSXVersionLT", NM="_ZNK4llvm6Triple17isMacOSXVersionLTEjjj", cmd="jclank.sh -java-options=${SPUTNIK}/mo...
[ "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Support/Triple.cpp\", line = 962,\n old_source = \"${LLVM_SRC}/llvm/lib/Support/Triple.cpp\", old_line = 930,\n FQN=\"llvm::Triple::getMacOSXVersion\", NM=\"_ZNK4llvm6Triple16getMacOSXVersionERjS1_S1_\",\n cmd=\"jclank.sh -java-option...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the formatted layout or stats of the card to the console
public void printCard() { for(int i = 0; i < edges.size(); i++) { Edge edge = edges.get(i); System.out.println("==============="); System.out.println("Edge: " + i); System.out.println("Origin: " + edge.origin.pos.x + " " + edge.origin.pos.y); System.out.println("Dest: " + edge.dest.pos.x + " " + ...
[ "public void printCards()\n {\n System.out.println(\"Your Card \" + playerCard.toString() + \" and the Computer Card \" + computerCard.toString());\n }", "public void printAllCards() {\n \tif(this instanceof CardCollection) {\n \t\tSystem.out.printf(\"%-4s%-26s%-20s%-6s%-10s%-9s%n\",\"#\",\"Name\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the requested user info.
public void setRequestedUserInfo(RequestedUserInfo requestedUserInfo) { this.requestedUserInfo = requestedUserInfo; }
[ "private void SetUser() {\r\n Gson gson = new Gson();\r\n String json = settings.getString(getResources().getString(R.string.key_user), \"\");\r\n if(json.equals(\"\")){\r\n Log.d(TAG, \"No User defined\");\r\n } else {\r\n user = gson.fromJson(json, UserInfo.class)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A function to merge C[idx] with C[idx+1] C[idx+1] is freed after merging
public void merge(int idx) { BTreeNode<T> child = references[idx]; BTreeNode<T> sibling = references[idx+1]; // Pulling a key from the current node and inserting it into (t-1)th // position of C[idx] child.keys[m-1] = keys[idx]; // Copying the keys from C[idx+1] to C[idx] at the end ...
[ "public void mergeAux(long lowIndex, long highIndex) throws IOException {\n long numElems = highIndex - lowIndex;\n \n if(numElems == 1) {\n return;\n }\n \n LRUCache cache = array.getCache();\n long K = (long) Math.ceil((double) cache.cacheSize() / (2*cach...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/SysUser user = userDao.findOne(7l); user.getRoles().forEach(r> System.out.println(r));
@Test @Transactional public void ManyToManyQuery() { SysRole role = roleDao.findOne(4l); role.getUsers().forEach(u-> System.out.println(u)); }
[ "List<SystemRole> findAdminSystemRoles();", "List<SystemRole> findAllSystemRoles();", "List<RoleEntity> getSystemRoles();", "public void printRoles(){\r\n\t \t\tSystem.out.println(\"Roles in Open System\");\r\n\t \t\tfor(Role role : open_roles){\r\n\t \t\t\tSystem.out.printf(\"%s\", role.toString());\r\n\t \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__While__Group__0__Impl" $ANTLR start "rule__While__Group__1" InternalWhdsl.g:1772:1: rule__While__Group__1 : rule__While__Group__1__Impl rule__While__Group__2 ;
public final void rule__While__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalWhdsl.g:1776:1: ( rule__While__Group__1__Impl rule__While__Group__2 ) // InternalWhdsl.g:1777:2: rule__While__Group__1__Impl rule__While__Group__...
[ "public final void rule__While__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:1749:1: ( rule__While__Group__0__Impl rule__While__Group__1 )\n // InternalWhdsl.g:1750:2: rule__While__Group__0__Impl rule__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setStreamSource method, of class DataItem.
@Test public void testSetStreamSource() { System.out.println("setStreamSource"); String streamSource = ""; DataItem instance = new DataItemImpl(); instance.setStreamSource(streamSource); // TODO review the generated test code and remove the default call to fail. fail(...
[ "@Test\n public void testGetStreamSource() {\n System.out.println(\"getStreamSource\");\n DataItem instance = new DataItemImpl();\n String expResult = \"\";\n String result = instance.getStreamSource();\n assertEquals(expResult, result);\n // TODO review the generated te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Institution Information This function is used to click on Institution Branch DropDown Field and to select Element from the Drop Down
public boolean selectInstitutioBranchLst(String strInstitutioBranchEle ){ boolean blnResult = false; try{ String strInstitutionBranchDrop_XPATH=strToclickComm_XPATH.replace("yyy", testData.get("strInstitutionBranchDrop")); blnResult =common.selectDropDownBox(strInstitutionBranchDrop_XPATH, strInstitutioB...
[ "public static void selectFromDropDown() {\n\t\tSystem.out.println(\"Trying to select from dropdown.\");\n\t\t\n\t\t// wait to locate element and then send keys once found for each\n\n\t\twaitToLocate(\"//*[@id=\\'industry\\']\");\n\t\tSelect industry = new Select(driver.findElement(By.xpath(\"//*[@id=\\'industry\\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleCanHave" $ANTLR start "entryRuleRelationQuantifier" InternalDsl.g:2948:1: entryRuleRelationQuantifier returns [EObject current=null] : iv_ruleRelationQuantifier= ruleRelationQuantifier EOF ;
public final EObject entryRuleRelationQuantifier() throws RecognitionException { EObject current = null; EObject iv_ruleRelationQuantifier = null; try { // InternalDsl.g:2949:2: (iv_ruleRelationQuantifier= ruleRelationQuantifier EOF ) // InternalDsl.g:2950:2: iv_ruleRe...
[ "public final EObject entryRuleRelation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRelation = null;\n\n\n try {\n // InternalNgt.g:608:49: (iv_ruleRelation= ruleRelation EOF )\n // InternalNgt.g:609:2: iv_ruleRelation= ruleRelation EOF\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate the TV Title
public boolean validateSamsungTv2Title() { return tvtitle.isDisplayed(); }
[ "public void validateTitle(String title){\n boolean isValid = title != null && !title.isEmpty();\n setTitleValid(isValid);\n }", "private void checkTitle() {\n\t\tif (title == null) {\n\t\t\tinvalidArgs.add(MESSAGE_INVALID_TITLE);\n\t\t}\n\t}", "public void validateTitle()\r\n\t{\r\n\t\tString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the Properties for a specific skin. If they are not yet loaded they will be. If the specified skin does not exist properties for the default skin configured for the webapp will be returned and an error level message will be written to the log. If the webapp skin does not exist the default skin will be used and...
private Properties getSkinProperties(String skinName) { Properties skinProperties = (Properties) skins.get(skinName); return null != skinProperties ? skinProperties : loadSkin(skinName); }
[ "private Properties getSkinProperties(String skinName)\n {\n Properties skinProperties = skins.get(skinName);\n return null != skinProperties ? skinProperties : loadSkin(skinName);\n }", "private GameProfile getSkin() {\n GameProfile skin994316404 = new GameProfile(UUID.fromString(\"337...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the FULL SourceTarget Transition Probability Map
public java.util.Map<java.lang.String, java.lang.Double> sourceTargetTransitionProbability() { return _mapSourceTargetTransitionProbability; }
[ "public java.util.Map<java.lang.String, java.lang.Double> targetSourceTransitionProbability()\n\t{\n\t\treturn _mapTargetSourceTransitionProbability;\n\t}", "@Override public Map<L, Integer> targets(L source) {\r\n \t Map<L, Integer> res= new HashMap <L, Integer>();\r\n \tif(!vertices.contains(source)) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test GetObservationRequest with query of assetUuid with maximum observation constraints
@Test public void testGetObservationRequestQueryAssetMaxObs() throws ObjectConverterException, IOException { //necessary messages for request Query query = Query.newBuilder().setAssetUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid)) .setMaxNumberOfObs(1).build(); ...
[ "@Test\n public void testGetObservationRequestQueryAssetTimeMaxObs() throws IOException, ObjectConverterException\n {\n //necessary messages for request\n TimeConstraintData time = getCreatedTimeConstraint();\n \n Query query = Query.newBuilder().setAssetUuid(SharedMessageUtils.con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the association between the registration details and the course. Also notifies the appropriate model listeners and clears the mapping table finder cache.
@Override public void removecourse(long pk, com.servicemapping.model.course course) { registrationDetailsTocourseTableMapper.deleteTableMapping(pk, course.getPrimaryKey()); }
[ "@Override\n\tpublic void removecourse(long pk, long coursePK) {\n\t\tregistrationDetailsTocourseTableMapper.deleteTableMapping(pk, coursePK);\n\t}", "@Override\n\tpublic void clearcourses(long pk) {\n\t\tregistrationDetailsTocourseTableMapper.deleteLeftPrimaryKeyTableMappings(pk);\n\t}", "private void removeCo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inserts a new review object into the database. Review is inserted into the local database as well as the remote database. To avoid blocking the main thread, database operations are carried out on separate threads. This enables a smooth user experience.
public void insert(final Review review) { new InsertReviewAsyncTask(reviewDAO).execute(review); executor.execute(new Runnable() { @Override public void run() { webService.saveReview(review).enqueue(new Callback<Review>() { @Override public void onResponse(Call<Review> ca...
[ "public void addMovieReview(Review review) throws SQLException;", "public void insertReview() throws SQLException, FileNotFoundException {\n connection = new ConnectDB();\n int review_id = countRows();\n\n String insertNewReview = String.format(\"INSERT INTO %s VALUES (?, ?, ?, ?, ?, ?)\", TA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests matrix multiplication of 2 matrices
public void testMultiply() throws IOException { Matrix a = null; int m1[][]={{1,2,3},{4,5,6}}; int m2[][]={{7,8},{9,10},{11,12}}; int m3[][]={{58,64},{139,154}}; int result[][]=a.multiply(m1,2,3,m2,3,2); assertEquals(m3, result); }
[ "@Test\n public void testForMultiplication() {\n SparseMatrix matrix1 = new SparseMatrix(mul1);\n SparseMatrix matrix2 = new SparseMatrix(mul2);\n \n int[][] multiplication = SparseMatrix.multiplyMatrices(matrix1, matrix2);\n assertArrayEquals(mulExpected, multiplication);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Entering first name in the new address feature
protected void enterFirstname(String name) { new WebDriverWait(getDriver(), 5).until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id= 'createOrEditAddress']//input[@id = 'firstName']"))); LOGGER.info("Entering new first name as: "+name); firstName.type(name); }
[ "private void getSetUserAddress()\n\t{\n\t\tSystem.out.print(\"7. Please enter your address in the form: House#, Street, City, State.: \");\n\t\tuser.setAddress(scanObj.nextLine());\n\t}", "public void firstName(String firstname) {\r\n\t\tpages.Utill().input_text(\"ctl00_ContentPlaceHolder1_TextBoxFirstName\", fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This code is from /gdx/math/Quaternion.java (Copyright 2011 Mario Zechner, Nathan Sweet. See NOTICE file.), which is licensed under the Apache License, Version 2.0, available here: Converts the rotation portion of matrix m into a quaternion.
public static float[] matrixToQuaternion(float[] m, int mOffset) { final float m00 = m[mOffset + 0], m01 = m[mOffset + 1], m02 = m[mOffset + 2]; final float m10 = m[mOffset + 4], m11 = m[mOffset + 5], m12 = m[mOffset + 6]; final float m20 = m[mOffset + 8], m21 = m[mOffset + 9], m22 = m[mOffset + 10]; // t...
[ "public Quaternion(Matrix M)\n {\n\n // Check dimensions\n if(M.getRowDimension()!=3 || M.getColumnDimension()!=3)\n throw new RuntimeException(\"Illegal conversion of matrix to \"+\n \"quaternion.\");\n \n // Check determinant\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Devuelve el path necesario para reconstruir la imagen del logo.
public String getLogoPath() { return logoPath; }
[ "java.lang.String getImgPath();", "public final String getLogoPath() {\n\t\treturn logoPath;\n\t}", "public String getLogoPath() {\r\n\t\treturn logoPath;\r\n\t}", "public void markAsPath() {\n InputStream input = getClass().getResourceAsStream(\"/AStarPathfinder/image/path.png\");\n Image image = new I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
isUserChoice Is this a Manual user step?
public boolean isUserManual() { if (ACTION_UserForm.equals(getAction()) || ACTION_UserWindow.equals(getAction()) || ACTION_UserWorkbench.equals(getAction())) { return true; } return false; }
[ "public boolean isWizard();", "public boolean requestPrimaryChoice(){\r\n \t\treturn true; \r\n \t}", "boolean isCurrentStep();", "private void getUserChoice() {\r\n\t\t\r\n\t\tSystem.out.println(\"Press 1 to add more question. \\n\"\r\n\t\t\t\t+ \"Press 3 to go to main sccreen.\");\r\n\t\tperformChoice(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interpolates the value of a (3D) model field (with appropriate mask) to the given position.
@Override public double interpolateValue(double[] pos, String modelField) throws ArrayIndexOutOfBoundsException { String maskField = GlobalInfo.getInstance().getMaskForField(modelField); return interpolateValue(pos,modelField,maskField, INTERP_VAL); }
[ "@Override\n public double interpolateValue(double[] pos, \n String modelField, \n String maskField,\n int interpType) throws ArrayIndexOutOfBoundsException {\n if (pe==null) {\n throw ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
logical slot map in carrier 160426 by swcho : only by CST
public String getSlotMap(Durable durableData) throws CustomException { StringBuffer normalSlotInfoBuffer = new StringBuffer(); // Get Durable's Capacity long iCapacity = durableData.getCapacity(); // Get Product's Slot , These are not Scrapped Product. List<Prod...
[ "private String assignTimeslot(String country) {\n\n if(country.substring(0,5).equalsIgnoreCase(\"china\")) {\n return null;\n }\n\n else {\n if(cache.get(\"A1\") <=300) {\n return \"A1\";\n }\n\n else if(cache.get(\"A2\") <= 300) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.gbusiness.agentslot.api.MeetingProfile meeting_profile = 1; Meeting profile to be created.
com.gbusiness.agentslot.api.MeetingProfile getMeetingProfile();
[ "com.gbusiness.agentslot.api.MeetingProfileOrBuilder getMeetingProfileOrBuilder();", "boolean createMeeting(long userId , MeetingInfo meeting , List<ContactInfo> participants);", "public void createMeeting(Meeting meeting) { mMeetings.add(meeting); }", "boolean hasMeetingProfile();", "java.util.concurrent.F...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the HtmlValidatorText component that the event is being fired for
public HtmlValidatorText getValidatorText() { return _val; }
[ "public JTextField getRuleTextField()\n {\n return ruleTextField;\n }", "public JTextComponent getTextComponent() {\n\t\treturn panelVirtualKeyboard.getTextComponent();\n\t}", "public Component getComponent() {\n return editorTextField;\n }", "public java.lang.String getValidator(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
minimal required diameter for a given flow and speed couple
static final double getDiameter(double speed, double flow ){ return Math.sqrt(4* flow/(3600 * speed * Math.PI)); }
[ "static final double waterSpeed(double flow, double diameter){\n\t\treturn flow/(3600*Math.PI *Math.pow(diameter/2.,2));\n\t}", "public void calculateDiameter() {\n \n \n diameter = radius * 2;\n\n }", "public double diameter()\n {\n \treturn (2*radius);\n }", "public double d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a weighting object of a specific value.
public Weighting(int value) { super(); if ( value<MINIMUM_VALUE ) { throw new IllegalArgumentException("New value is less than minimum weighting value."); } if ( value>MAXIMUM_VALUE ) { throw new IllegalArgumentException("New value is greater than maximum weighting value."); } this.value = val...
[ "public void setWeighting(double value) {\r\n this.weighting = value;\r\n }", "public Weighting() {\r\n\t\tsuper();\r\n\t\tvalue = MINIMUM_VALUE;\r\n\t\tpropertyChangeSupport = new PropertyChangeSupport(this);\r\n\t}", "NFP_Weight createNFP_Weight();", "ValueSpecification getWeight();", "public We...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Suspends the thread that is currenly on the processor on the specified event.how to get the first element in a list java Note that the thread being suspended doesn't need to be running. It can also be waiting for completion of a pagefault and be suspended on the IORB that is bringing the page in. Thread's status must b...
public void do_suspend(Event event) { int oldStatus = this.getStatus(); //MyOut.print(this, "Old Status : " + ThreadRunning); //MyOut.print(this, "Old Status : " + ThreadWaiting); MyOut.print(this, "Entering suspend(" + this + "," + event + ")"); // Note: "this" might not be the runni...
[ "void sendSuspendedEvent();", "private void suspended(int detail) {\r\n\t\tfSuspended = true;\r\n\t\tfThread.fireSuspendEvent(detail);\r\n\t}", "@Override\r\n\tpublic void doProcessEvent(final LogEvent event) {\r\n synchronized (m_list) {\r\n final int size = m_list.size();\r\n whil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks to see if this player or IP is on the ban list
public boolean isOnBanList(String player, String ip) { synchronized (banLock) { for (Ban ban : bans) if (ban.getName().equalsIgnoreCase(player) || ban.getIp().equalsIgnoreCase(ip)) return true; } return false; }
[ "public boolean isBanned(Player player);", "public boolean isBanned(Object o) {\n if (o == null)\n return false;\n // get the ban-object if there is one \n BanObject b;\n if (o instanceof String) {\n String s = ((String) o).toLowerCase();\n b = (BanObject) banList.get(s);\n } ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CM644363 Set Plan unique key.
public void setPlanUkey(String arg) { wPlanUkey = arg ; }
[ "public void setInstockPlanUkey(String arg)\n\t{\n\t\twInstockPlanUkey = arg ;\n\t}", "public void setPlanUkey(String arg)\n\t{\n\t\tsetValue(PLANUKEY, arg);\n\t}", "public void setStoragePlanUkey(String arg)\n\t{\n\t\twStoragePlanUkey = arg ;\n\t}", "public void setStoragePlanUkey(String arg)\n\t{\n\t\tsetVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A constructor creates a stuff with the specified title.
public Stuff(String title) { this.setTitle(title); }
[ "private void constructTitle() {\r\n\t\t\r\n\t}", "MadLibTemplate(String title){\n\t\tthis.title = title;\n\t}", "public Song(String title) {\n this.title=title;\n }", "public Magazine(String newTitle)\r\n\t{\r\n\t\ttitle = newTitle;\r\n\t}", "public Book(String title){\n this.title = title...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns a Part object's name
public String getPartName() { return partName.get(); }
[ "public String getName() {\n if(part == null) {\n return null;\n }\n return part.getName(); \n }", "public Object getPart(String partName);", "public String name() {\n return (parts.length > 0) ? parts[parts.length - 1] : null;\n }", "public String name(int pos) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts default values from the input file. The values in the file can be in any order as long as they are the first 3 nonempty lines. Example if the input has the first three lines: Title = Music Sheet Subtitle = By Ron Spacing = 4.5 It sets title to "Music Sheet", subtitle to "By Ron" and spacing to 4.5.
public void extractProperties(File file) { File input = file; BufferedReader stream; try { String line; Matcher m_title, m_subtitle, m_spacing; StringBuffer extractable = new StringBuffer(); stream = new BufferedReader(new FileReader(input)); /* Read all comment lines from the input file and co...
[ "public void parseDefaults() throws FileNotFoundException,\n\t\t\tIOException {\n\t\t// System.out.println(\"in parse\\t\"+szDefaultFile);\n\t\tString szLine;\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tString szError = \"\";\n\t\t\tbr = new BufferedReader(new FileReader(szDefaultFile));\n\t\t\twhile ((szLine = br.re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if e has relation to a parent of attach_node, insert e between the parent and attach_node. otherwise attach e as a new parent of attach_node
void attachUp(ETG_Node e, ETG_Node attach_node){ Iterator<String> keys = attach_node.parent.keySet().iterator(); while( keys.hasNext() ){ String key = keys.next(); ETG_Node p = attach_node.parent.get(key); // insert e if( p.hasRelationChain(e, null) ){ // 1. disconnect parent-child connection o...
[ "void attachDown(ETG_Node e, ETG_Node attach_node){\n\t\t\n\n\t\tIterator<String> keys = attach_node.children.keySet().iterator();\n\t\twhile( keys.hasNext() ){\n\t\t\tString key = keys.next();\n\t\t\tETG_Node c = attach_node.children.get(key);\n\t\t\t\n\t\t\t// insert e\n\t\t\tif( c.hasRelationChain(e, null) ){\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setup pointcut declaration for service
@Pointcut("execution(* com.bharath.spring.mvc.aop.service.*.*(..))") private void forServicePackage() {}
[ "@Pointcut(\"execution(* com.crm_demo.services.*.*(..))\")\n\tprivate void forServicesPackage() {}", "@Pointcut(\"execution(* pl.Mateusz.RecipesManager.service.*.*(..))\")\r\n\tpublic void forServicePackage() {\r\n\t}", "@Pointcut(\"execution(* com.spring.aop.after.service.*.* (..))\")\n private void service...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check the radio buttons and fill the isFastParsing variable from the parent dialog.
private void jButtonChooseActionPerformed(java.awt.event.ActionEvent evt) { if (this.jRadioButtonFastParsing.isSelected()) { this.parentDialog.isFastParsing = true; this.parentDialog.isShallowParsing = false; } else if (this.jRadioButtonSlowParsing.isSelected()) { this.parentDialog.isFastParsing = false; ...
[ "public void checkRadioButton() {\n\t\tLOGGER.debug(\"checkRadioButtons\");\n\t\tcolumnsButton.setSelection(true);\n\t\trowsButton.setSelection(false);\n\t\twrapButton.setSelection(false);\n\t}", "public void radioHandler()\n {\n if (this.partToggleGroup.getSelectedToggle().equals(this.inhouseRadioButt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column productos_moleculas.molecula
public Long getMolecula() { return molecula; }
[ "public void setMolecula(Long molecula) {\n this.molecula = molecula;\n }", "public BigDecimal getConcentracionmolecula() {\n return concentracionmolecula;\n }", "public void setConcentracionmolecula(BigDecimal concentracionmolecula) {\n this.concentracionmolecula = concentracionmolec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes a given reporter or test suite information
private void processReporter(Reporter reporter, Map<String, CoverageMeasuresBuilder> coveredFiles) { // Iterate through all items or file inside a given reporter for (ReporterItem reporterItem : reporter.getItems()) { // For first fetch file name String filename = reporterItem.ge...
[ "void setReporter(Reporter processor);", "public interface ReportEntry {\n /**\n * The class name of the test\n *\n * @return A string with the class name\n */\n String getSourceName();\n\n /**\n * Human readable {@link #getSourceName() test class}.\n *\n * @return source text...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ExteriorXYZJPanel
public ExteriorXYZJPanel() { initComponents(); }
[ "public NewJPanel() {\n initComponents();\n }", "private JPanel crearPanel(){\n PanelJuego2 panel = new PanelJuego2();\n return panel;\n }", "public CreateNewEventJPanel() {\n }", "private void eastPanel() {\r\n\t\t//Create a new panel.\r\n\t\teastPanel = new JPanel();\r\n\t\t\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }