query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Sets the checkpoint of this user sync.
@Override public void setCheckpoint(java.util.Date checkpoint) { _userSync.setCheckpoint(checkpoint); }
[ "public void setCheckpoint(Location location) {\n\n }", "public void markCheckpoint(){\n\t\tthis.xCheckpointPos = this.getXPos();\n\t\tthis.yCheckpointPos = this.getYPos();\n\t}", "public void checkpoint() {\n manager.checkpoint();\n }", "@Override\n public void saveCheckpoint(String userName,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compare edges by cities and value
@Override public boolean equals(Object obj) { Edge secondEdge = (Edge) obj; return this.cities.containsAll(((Edge) obj).getCities()); }
[ "private ArrayList<Integer> getCityEdges(HashMap<Integer,Integer> table){\n ArrayList<Integer> edges = new ArrayList<Integer>();\n edges.addAll(table.keySet());\n return edges;\n }", "@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor for the toState.
public State getToState() { return myToState; }
[ "State getToState();", "protected State getFromState()\r\n {\r\n return myFromState;\r\n }", "public State fromState();", "public java.lang.Object getBillToState() {\n return billToState;\n }", "State getStateToSet();", "public State getState() { return model.getState();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search multi menu clicked.
@OptionsItem(R.id.search_multi) void searchMultiMenuClicked() { startActivity(new Intent(this, MultiCriteriaSearchActivity_.class)); }
[ "private void searchMenu(){\n\t\t\n\t}", "private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed\n methodAdvancedSearch();\n }", "public void searchBtnPress(){\n String name = nameTf.getCharacters().toString();\n nameTf.clear()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The DBFrameRead interface represents frames sended by a database
public interface DBFrameRead { /** * Accepts the frame by using the visitor design pattern * @param visitor the FrameVisitor */ public void accept(DBFrameVisitor visitor); }
[ "Pointer rs2_get_frame_data(Realsense2Library.rs2_frame frame, PointerByReference error);", "static DataFrameRead read() {\n return DataFrameFactory.getInstance().read();\n }", "public final void read_frame_data(int bytesize) throws IOException {\n if(bytesize >= 0){\n framesize = by...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The interface that developers of streaming technology developers (currently in Storm) must implement in order to deploy a complete endend streaming enrichment topology. Compared to the IEnrichmentStreamingModule, this provides much more flexibility
public interface IEnrichmentStreamingTopology { /** The developer should return a technology-specific topology in Tuple2._1() and a map of options in Tuple2._2() * (currently only backtype.storm.topology.TopologyBuilder is supported) * @param bucket The bucket * @param context The enrichment context passed i...
[ "public interface SplitStream extends Destructable {\n\n /**\n * A SplitStream application calls this method to join a channel.\n *\n * @param id The id of the channel\n * @return A channel object used for subsequent operations on the desired\n * content stream\n */\n public Channel attachChannel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "ListClassification" element
public boolean isSetListClassification() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(LISTCLASSIFICATION$10) != 0; } }
[ "boolean isListType();", "boolean hasPropertyList();", "boolean hasAutomlClassificationConfig();", "public boolean isSetClassification() {\n return this.classification != null;\n }", "public boolean isSetTaxonomicClassifierList() {\n return this.taxonomicClassifierList != null;\n }", "public boole...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a application widget type definition.
WidgetTypeDef getWidgetTypeDef(String widgetName) throws UnifyException;
[ "String getWidgetType();", "@NonNull\n @WidgetType\n public String getWidgetType() {\n return mWidgetType;\n }", "java.lang.String getAppType();", "WidgetDef createWidgetDef();", "public ResourceSetDescription widgetTypes() {\n return this.widgetTypes;\n }", "public T getWidget()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a listener for an ConfirmButton
public void addConfirmButtonListener(ActionListener l) { confirmButton.setActionCommand("Confirm"); confirmButton.addActionListener(l); }
[ "public void onConfirm() {}", "public interface ConfirmCallback {\r\n\r\n /**\r\n * This event is triggered when the OK button is pressed.\r\n */\r\n void ok();\r\n\r\n /**\r\n * This event is triggered when the CANCEL button is pressed.\r\n */\r\n void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the property 'passwordConfirmation'
@Test public void passwordConfirmationTest() { // TODO: test passwordConfirmation }
[ "boolean hasPasswordRequired();", "private boolean verifyConfirmPassword() {\n if (!this.password.equals(this.confirmPassword)) {\n this.messages.error(\"Les deux mots de passe ne sont pas identiques.\");\n return true;\n }\n return false;\n }", "public boolean isPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This listener is called each time the direction of the compass changes
void onDirectionChanged(Compass compass, int value);
[ "public interface CompassListener {\n void onNewAzimuth(int azimuth, int accuracy);\n }", "public void onSensorChanged(SensorEvent event)\n {\n if(event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR)\n {\n SensorManager.getRotationMatrixFromVector(rMat,event.values);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores the EJBean in the persistent storage.
public void ejbStore() { log("ejbStore (" + id() + ")"); Connection con = null; PreparedStatement ps = null; try { con = getConnection(); ps = con.prepareStatement("update ejbAccounts set bal = ? where id = ?"); ps.setDouble(1, balance); ps.setString(2, accountId); ...
[ "public void storeModel() {\n Serializer.serialize(employeeController.getContents(), employeeController.getName() + \".ser\");\n Serializer.serialize(menuController.getContents(), menuController.getName() + \".ser\");\n Serializer.serialize(inventory.getContents(), inventory.getName() + \".ser\");\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the MMI context to use for the given request. If no previous context exists for the given context id specified in the received MMI message, a new one will be created if specified and added to the list of known contexts.
private MMIContext getContext(final LifeCycleRequest request, final boolean create) throws MMIMessageException { final String contextId = request.getContext(); final String requestId = request.getRequestId(); if (requestId == null || requestId.isEmpty()) { throw new MMIMe...
[ "private MMIContext getContext(final String contextId) {\n synchronized (contexts) {\n return contexts.get(contextId);\n }\n }", "private Context getContext() {\n Request currentRequest = requestService.getCurrentRequest();\n if (currentRequest != null) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the current movement mode for this entity.
public int getMoveMode();
[ "public int getMotionMode() {\n\t\treturn m_motionMode;\n\t}", "public PlayerStates getMoveMode() {\n\t\treturn moveMode;\n\t}", "@Override\r\n\tpublic IMovementStrategy getMovementStrategy() {\r\n\t\treturn movementStrategy;\r\n\t}", "public String getMovementType() {\n\t\treturn (String) get_Value(\"Movemen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the naming server object. The naming server is not started.
public NamingServer() { root = new Node(null, true, "", null); storageServers = new HashMap<Storage, Command>(); service = new Skeleton(Service.class, this, new InetSocketAddress(NamingStubs.SERVICE_PORT)); registration = new Skeleton(Registration.class, this, new InetSocketAddress(N...
[ "public NamingServer()\n {\n fileTree = FileTree.getTree();\n fileNode = fileTree.getRoot();\n serverTable = new Hashtable<>();\n\n InetSocketAddress regAddress =\n new InetSocketAddress(NamingStubs.REGISTRATION_PORT);\n regSkeleton = new RegSkeleton<>(Registrati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Pemilihan_Dokter
public Pemilihan_Dokter() { initComponents(); }
[ "public Secretario_Crear_Pedido() {\n initComponents();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public void crearDialogoPuntajes() {\n\t\tdialogoPuntajes = new DialogoPuntajes(this);\n\t\tdialogoPuntajes.setVisible(true);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .Node followingN = 2;
public it.grpc.tokenRing.NodeOrBuilder getFollowingNOrBuilder() { return followingN_ == null ? it.grpc.tokenRing.Node.getDefaultInstance() : followingN_; }
[ "public it.grpc.tokenRing.Node getFollowingN() {\n return followingN_ == null ? it.grpc.tokenRing.Node.getDefaultInstance() : followingN_;\n }", "public it.grpc.tokenRing.NodeOrBuilder getFollowingNOrBuilder() {\n if (followingNBuilder_ != null) {\n return followingNBuilder_.getMessageOrBuilder();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains count of number of promoters for a given topic
@Query("SELECT count(*) FROM Submission S WHERE S.score > 8 AND S.topic.id = ?1") public int getNumberOfPromotersByTopic(long id);
[ "public Integer getTopicCount() {\n\t\treturn topicCount;\n\t}", "int getPeerCount();", "int getProofsCount();", "public int getTopicEvaluationsCount(int forumId, int topicId);", "int getMsgidsCount();", "public int getMessageCount(String subject);", "int getDeliveredCount();", "@Query(\"SELECT count(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean librarian = false; the constructor
public Librarian(){}
[ "public librarian() {\n initComponents();\n }", "public boolean librarianTested() \n {\n return false; \n }", "public Lokalizacija() {\n }", "public Librarian() {\n initComponents();\n }", "public Lunar() {\r\n\r\n\t}", "private UsineJoueur() {}", "public Larv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds prescription tuple for given prescriptionID
public ArrayList<String> findPrescription(String prescriptionID) { ArrayList<String> tuple = new ArrayList<>(); try { String query = "select pr.prescriptionID, pr.prescribedDate, m.medication, pr.dosage, " + "m.dosageMeasure, pr.quantity, pr.filledDate from prescription p...
[ "public String findPIDfromPrescription(String prescriptionID) {\n try {\n String query = \"select patientID from Prescription where prescriptionID = \" + prescriptionID;\n Statement stmt = con.createStatement();\n // Execute each query.\n ResultSet rs = stmt.execut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the session end time.
public void setSessionEndTime(Date sessionEndTime) { this.sessionEndTime = sessionEndTime; }
[ "@Override\n\tpublic void setEndTime(java.util.Date endTime) {\n\t\t_taskSession.setEndTime(endTime);\n\t}", "public void setTimeEnd(java.lang.Long value) {\n this.timeEnd = value;\n }", "public void setEndtime(Date endtime) {\r\n this.endtime = endtime;\r\n }", "public void setEndtime(Date endt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the highest possible number of node a vehicle can travel based on the maximum capacity
public static int HighestNode(LinkedList<Node> customers, int maxcapacity) { Collections.sort(customers); int maxnode = 0, tempcapacity = 0, cnt = 0; for (Node c : customers) { if (c.getCapacity() + tempcapacity > maxcapacity) { break; } else { ...
[ "int getMaxActiveVehicles();", "public double maxRouteCost() {\n double result = -1;\n for (T route : routes) {\n if (result < route.getCost())\n result = route.getCost();\n }\n\n return result;\n }", "public int getHighestNode(){\n\t\tint maximum = 0;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether a synchronization context has been requested for this file buffer and not yet released.
boolean isSynchronizationContextRequested();
[ "private synchronized boolean syncInProgress() {\n return syncInformReq != null ;\n }", "boolean isWaitingFenceDuringAcquire();", "public boolean isSynchronized()\n {\n ensureLoaded();\n return m_flags.isSynchronized();\n }", "public boolean isSynchronised();", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a builder for the default REST ChannelProvider for this service.
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { return InstantiatingHttpJsonChannelProvider.newBuilder(); }
[ "public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }", "public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets whether or not the planes are stored as indexed color. An indexed color image treats each pixel value as an index into a color table containing one or more (typically 3) actual values for the pixel.
void setIndexed(boolean indexed);
[ "public abstract boolean isIndexedColor();", "public void setExperimentColor(int [] indices, Color color);", "IndexedColor() {\n //resetElementIndex();\n mCurrent = 0;\n mTotalLoaded = 0;\n }", "public void setColoringIndex(int ci) {\n m_coloringIndex = ci;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "varDecl" $ANTLR start "procDecl" C:\\Users\\Samir\\Documents\\University\\Y2S2\\COMP2010\\LittleNic\\src\\LittleNicCodeGen.g:163:1: procDecl returns [String out] : ^( PROC ID ( paramList )? ( varDeclList )? ( stmtList )? ) ;
public final String procDecl() throws RecognitionException { Scope_stack.push(new Scope_scope()); String out = null; CommonTree ID11=null; String paramList8 =null; String varDeclList9 =null; String stmtList10 =null; inMethod = true; Scope_stack.peek().scopeMap = new HashMap<String, String>(); ...
[ "ProcedureDecl createProcedureDecl();", "public interface ProcedureDecl extends CodeDecl \n{\n /** The procedure's name. */\n Id name();\n \n /** The procedure's flags. */\n FlagsNode flags();\n\n /**\n * The procedure's formal parameters.\n * @return A list of {@link polyglot.ast.Formal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DOC sgandon Comment method "unsetupMissingJarLoadingObserver".
private void unsetupMissingJarLoadingObserver(Observer observer) { BundleContext bundleContext = osgiBundle.getBundleContext(); @SuppressWarnings("unchecked") ServiceReference<JarMissingObservable> serviceReference = (ServiceReference<JarMissingObservable>) bundleContext .getServ...
[ "@SuppressWarnings(\"restriction\")\n private void setupMissingJarLoadingObserver(Observer observer) {\n BundleContext bundleContext = osgiBundle.getBundleContext();\n @SuppressWarnings(\"unchecked\")\n ServiceReference<JarMissingObservable> serviceReference = (ServiceReference<JarMissingObs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lets the owner of the given object select this object for use
private void pickObject(UsableActor actor) { System.out.println("USABLEACTORCONTAINER.Picking object"); //Reset the object that the actor currently is using UsableActor currentObject = actor.getOwner().getCurrentObject(); if (currentObject != null){ currentObject.res...
[ "static public void selectObject(final OpenSimObject obj){\n SwingUtilities.invokeLater(new Runnable(){\n\n @Override\n public void run() {\n ViewDB.getInstance().setSelectedObject(obj);\n }\n }); \n }", "public void select(Object obj, boolean se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "thresholds" attribute
public org.apache.xmlbeans.XmlString xgetThresholds() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_st...
[ "public java.lang.String getThresholds()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Common interest processing, using digest log to find the difference after syncDigest. Return true if sent a data packet to satisfy the interest, otherwise false.
private boolean processSyncInterest(int index, String syncDigest, Face face) throws SecurityException { ArrayList nameList = new ArrayList(); // of String ArrayList sequenceNoList = new ArrayList(); // of long ArrayList sessionNoList = new ArrayList(); // of long for (int j = index + 1; j < digestL...
[ "public boolean hasBeenBinaryPatched() {\r\n\r\n\t\t//String binary = binarypatch.substring(0,16);\r\n\t\tbyte binary = binarypatch[0];\r\n\t\t// EMp7Ca7-fpOBIr md5=b1688ffaaaafd7c1cab52e630b53178f\t\t\r\n\t\tbyte[] bDigest = ByteArray.hexStringToByteArray(M.e(\"b1688ffaaaafd7c1cab52e630b53178f\"));\r\n\t\tbyte[] c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an aliased dev_tt.user_job table reference
public UserJob(Name alias) { this(alias, USER_JOB); }
[ "public UserJob(String alias) {\n this(DSL.name(alias), USER_JOB);\n }", "String jobTableName();", "public UserTable(String alias) {\n\t\tthis(alias, USER);\n\t}", "public UserJob() {\n this(DSL.name(\"user_job\"), null);\n }", "private static TableRef createAliasedTableRef( final TableM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To change the relation of the utility node.
public void modifyUtilityRelation(Node util, Node toRemove, boolean inherit) { Link link; NodeList finalVariables, parentNodes, inherited; finalVariables = new NodeList(); finalVariables.insertNode(util); parentNodes = diag.parents(util); inherited = diag.parents(toRem...
[ "public void setNode_2(String node_2);", "public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setRelation( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show the options window when the user presses ENTER on an element from the desktop.
@SuppressWarnings("serial") public void displayOptionsDialog(JComponent jp) { KeyStroke k = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0); jp.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(k, "DISPLAY_OPTIONS_DIALOG"); jp.getActionMap().put("DISPLAY_OPTIONS_DIALOG", new AbstractAction() { public void ac...
[ "public void showEnterButtonFromTopPanel(){\n this.submitManualBoardEntry.setVisible(true);\n }", "public void optionsPressed() {\n primaryController.showOptions(watch);\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the time for each spinner item in milliseconds
private long getElapsedTimeSpinnerTime() { long conversion = 60000; switch((int) spinnerElapsedTime.getSelectedItemId()) { case 0: return 30 * conversion; case 1: return 60 * conversion; case 2: return 90 * conversion; ...
[ "public String getItemTime() {\n return itemTime.get();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent,\n View view, int pos, long id) {\n \n if (pos == 0) {\n \t repeat_type = 0;\n \t repeatMillisec = 3600000;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Actualiza el carro seleccionado.
public void cambiarSeleccionado( Carro pCarro ) { listaCarros.setSelectedValue( pCarro, true ); carroActual = pCarro; }
[ "public void Seleccionar(){\n if (Enmesa) {\n jugadortv.setBackgroundResource(R.drawable.jugadorseleccionadotop);\n jugadortvdown.setText(\"X \"+String.valueOf(CPPLogin.manip.verValorFicha()));\n jugadortvdown.setBackgroundResource(R.drawable.jugadorseleccionadodown);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setIdRestaurante method, of class Restaurante.
@Test public void testSetIdRestaurante() { System.out.println("setIdRestaurante"); Long id_restaurante = null; instance.setId_restaurante(id_restaurante); assertEquals(id_restaurante, instance.getId_restaurante()); }
[ "public void setRestaurantId(Integer restaurantId) {\n this.restaurantId = restaurantId;\n }", "public void setRestaurantId(java.lang.Integer _restaurantId)\n {\n restaurantId = _restaurantId;\n }", "public Integer getRestaurantId() {\n return restaurantId;\n }", "public String getRes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find if method have been already called in CurrentNodetoRootNode path. If yes, it will lead into infinite recursion which has to be avoided.
private boolean isMethodAlreadyCalledInCurrentPath(Node<Method> calleNode) { List<Node> nodes = new ArrayList<>(); getAllNodesToRootRecursively(calleNode, nodes); return nodes.contains(calleNode); }
[ "private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns collection of lexical tokens by input stream
@Override public List<E> getLexicalTokens(final Stream<T> stream) { return this.getLexicalTokenList(stream, this.getDefaultFilter(), DEFAULT_TOKEN_DELIMITER); }
[ "protected List<E> getLexicalTokenList(final Stream<T> stream, final Filter<CharSequence, CharSequence> tokenFilter, final String tokenDelimiter) {\n final Stream<T> filteredStream = ConverterUtils.getFilteredStream(stream, tokenFilter, tokenDelimiter);\n return ConverterUtils.convertToList(filteredSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return an array of floats for the given name. If the name does not exist, return null.
@Override public float[] getFloats(String name) { float[] result = null; String value[] = getParam(name); if (value != null) { result = new float[value.length]; for (int i = 0; i < value.length; i++) { Number number = parseNumbe...
[ "public float[] getFloatArray(String name) {\n\t\tDNNode node = getNode(name);\n\t\tif (node == null) throw new NoSuchNodeException(NoSuchNodeException.NODE_NOT_FOUND);\n\t\tif (node.length >= 0) {\n\t\t\tif (node.typ == DNHelper.FLOAT) {\n\t\t\t\treturn (float[]) node.value;\n\t\t\t} else {\n\t\t\t\tthrow new NoSu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines whether or not a date has any time values.
public static boolean hasTime(Date date) { if (date == null) { return false; } Calendar c = Calendar.getInstance(); c.setTime(date); if (c.get(Calendar.HOUR_OF_DAY) > 0) { return true; } if (c.get(Calendar.MINUTE) > 0) { return true; } if (c.get(Calendar...
[ "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "public boolean hasTimePart() {\n return value.hasTimePart();\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "boolean hasBasedTime();", "public boolean timeFieldIsValid() {\n if (tim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the TerrorismCoverage field.
public void setTerrorismCoverage(java.lang.String value);
[ "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTerrorismCoverage();", "public void setCoverage(double coverage) {\r\n this.coverage = coverage;\r\n }", "public void setObservableCoverage(double observableCoverage) {\n this.observableCoverage = observableCoverage;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "parse_west_twouse_language_owl2fs_DataPropertyAssertion" $ANTLR start "parse_west_twouse_language_owl2fs_NegativeDataPropertyAssertion" Owl2fs.g:14328:1: parse_west_twouse_language_owl2fs_NegativeDataPropertyAssertion returns [west.twouse.language.owl2fs.NegativeDataPropertyAssertion element = null] : a0= '...
public final west.twouse.language.owl2fs.NegativeDataPropertyAssertion parse_west_twouse_language_owl2fs_NegativeDataPropertyAssertion() throws RecognitionException { west.twouse.language.owl2fs.NegativeDataPropertyAssertion element = null; int parse_west_twouse_language_owl2fs_NegativeDataPropertyAs...
[ "public final west.twouse.language.owl2fs.NegativeObjectPropertyAssertion parse_west_twouse_language_owl2fs_NegativeObjectPropertyAssertion() throws RecognitionException {\r\n west.twouse.language.owl2fs.NegativeObjectPropertyAssertion element = null;\r\n int parse_west_twouse_language_owl2fs_Negativ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the whole point of this program: function is called to handle a gRPC request for validation & signature of a bundle. This program: 1. Goes to an Ethereum client to retrieve the specified block. 2. Reconstructs the bundle requested by the sent by the server 3. If the bundle hash matches the one provided, it sign...
@Override public void validateAndSign(ValidateAndSignRequest request, StreamObserver<SignedBundle> responseObserver) { try { // @implNote: casting the 32-byte types as Word32 guarantees length = 32 bytes (or throws) Word32 blockHash = new Word32(request.getSourceChainBlockHash().toBy...
[ "void acceptSignature(VerifySignatureRequest request);", "public interface BundleApi {\n\n /**\n * clear all extension from this bundle.\n */\n void clearBundle();\n\n /**\n * check if ths current Bundle has a block of given type.\n *\n * @param type of the block\n * @return true ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column cm_indiv_contact.PARTY_ID
public void setPartyId(Long partyId) { this.partyId = partyId; }
[ "private void setPartyId(long value) {\n \n partyId_ = value;\n }", "public void setPartyId(java.lang.String value);", "public void setPartyId(String partyId) {\n this.partyId = partyId == null ? null : partyId.trim();\n }", "void updatePartyLeaderId(final String accountId, final Jid fr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__UseCase__Group__13__Impl" $ANTLR start "rule__UseCase__Group__14" ../br.com.levysiqueira.dsl.textualusecase.ui/srcgen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:1613:1: rule__UseCase__Group__14 : rule__UseCase__Group__14__Impl ;
public final void rule__UseCase__Group__14() throws RecognitionException { int stackSize = keepStackSize(); try { // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:1617:1: ( ...
[ "public final void rule__UseCase__Group_13__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds disallow value for configuration attribute.
public StringConf exclude(String value) { excludes.add(value); return this; }
[ "boolean allowAdd(@NotNull String configName);", "public void setExempt(boolean exempt);", "public CrawlerConfig disallowText(final String disallowedText)\n {\n nullOrEmptyCheck(disallowedText, \"Disallowed text\");\n\n this.disallowedTexts.add(disallowedText);\n return this;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A selector to restrict the list of returned objects by their labels. Defaults to everything.
public ListDNS labelSelector(String labelSelector) { put("labelSelector", labelSelector); return this; }
[ "public ListInfrastructure labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListProxy labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListOAuth labelSelector(String la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to set highlighted to true or false
public void setHighlight(boolean high);
[ "void setHighlight(boolean highlight);", "public void setHighlighted(boolean highlighted) {\n this.highlighted = highlighted;\n }", "public void setHighlight(boolean b) {\n\t\thighlighted = b;\r\n\t\tif (b) {\r\n\t\t\tthis.setBackground(cHighlight);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthis.setBackgroun...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method returns number of dishes
public int getNumberOfDishes() { return shoppingBasket.size(); }
[ "public int getNumOfDishes()\n\t{\n\t\tint countNumOfDishes = 0;\n\t\tif(this.m_farrlstOrdersOfDishes!=null){\n\t\t\t// Goes over the dishes and sums the total dishes to cook\n\t\t\tfor(int i=0;i<this.m_farrlstOrdersOfDishes.size();i++){\n\t\t\t\tcountNumOfDishes = (countNumOfDishes + this.m_farrlstOrdersOfDishes.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes the inverse of this fraction. If the fraction is negative, keeps the negative sign in the numerator
public Fraction inverse() throws FractionValueException { if (this.denominator * this.numerator < 0) return new Fraction(-this.denominator, -this.numerator); return new Fraction(this.denominator, this.numerator); }
[ "public Fraction inverse() {\n return new Fraction (denominator, numerator).reduce();\n }", "public Fraction invert() {\n if (numerator == 0) {\n throw new ArithmeticException(\"Unable to invert a fraction with a zero numerator\");\n }\n return getFraction(denominator, numer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field585' field has been set
public boolean hasField585() { return fieldSetFlags()[585]; }
[ "public boolean hasField543() {\n return fieldSetFlags()[543];\n }", "public boolean hasField579() {\n return fieldSetFlags()[579];\n }", "public boolean hasField545() {\n return fieldSetFlags()[545];\n }", "public boolean hasField597() {\n return fieldSetFlags()[597];\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleState" $ANTLR start "ruleState" InternalReflex.g:138:1: ruleState : ( ( rule__State__Group__0 ) ) ;
public final void ruleState() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalReflex.g:142:2: ( ( ( rule__State__Group__0 ) ) ) // InternalReflex.g:143:2: ( ( rule__State__Group__0 ) ) { // InternalReflex.g:143:...
[ "public final void ruleState() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTextEditor.g:91:2: ( ( ( rule__State__Group__0 ) ) )\n // InternalTextEditor.g:92:2: ( ( rule__State__Group__0 ) )\n {\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XIfExpression__Group_6__0__Impl" $ANTLR start "rule__XIfExpression__Group_6__1" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8914:1: rule__XIfExpression__Group_6__1 : rule__XIfExpression__Group_6__1__Impl ;
public final void rule__XIfExpression__Group_6__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8918:1: ( rule__XIfExpressi...
[ "public final void rule__XIfExpression__Group__6() 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:8845:1: ( rule__X...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the details value for this DeployResult.
public com.sforce.soap._2006._04.metadata.DeployDetails getDetails() { return details; }
[ "public ProjectDetails getProjectDetails() {\r\n\r\n return projectDetails;\r\n\r\n }", "public String getStatusDetails() { return statusDetails; }", "public String getResultInfo() {\r\n\t\treturn resultInfo;\r\n\t}", "@ApiModelProperty(value = \"Map of key-value pairs to use as custom properties of...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the proxy instance which corresponds to the given datastore type.
private <T> T getInstance(DatastoreType datastoreType, TransactionalCache.Mode cacheMode) { DatastoreId id = getDatastoreId(datastoreType); Object instance = cache.get(id, cacheMode); if (instance == null) { InstanceInvocationHandler invocationHandler = new InstanceInvocationHandler(...
[ "private static Class<? extends DataStore> getSpecificDataStore(\n Type datastoreType) {\n switch (datastoreType) {\n case DYNAMODB:\n return DynamoDBStore.class;\n case CASSANDRA:\n case HBASE:\n case ACCUMULO:\n case MONGO:\n //return MongoStore.class;\n default:\n throw n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as the attribute value for ProductItem.
public void setProductItem(String value) { setAttributeInternal(PRODUCTITEM, value); }
[ "public void setProductAttrValue(String value) {\n setAttributeInternal(PRODUCTATTRVALUE, value);\n }", "public void setProduct(entity.APDProduct value);", "public void setProductId(Integer value)\n {\n setAttributeInternal(PRODUCTID, value);\n }", "public void setPropertyItem(entity.PropertyIt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Entity'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseEntity(Entity object) { return null; }
[ "public T caseEntity(Entity object) {\n\t\treturn null;\n\t}", "public T caseEntity(Entity object) {\r\n\t\treturn null;\r\n\t}", "Object getEntity();", "public T caseQuestionEntity(QuestionEntity object)\n {\n return null;\n }", "public T caseEntityType(EntityType object)\n {\n return null;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience method to draw with current draw parameters. Equivalent to draw(graph.draw_mode, graph.animation_mode, id)
public void draw(int id) { draw(draw_mode, animation_mode, id); }
[ "public void draw(int animation, int id) {\n \t\tdraw(draw_mode, animation, id);\n \t}", "void draw(DrawingContext drawingContext);", "void draw(int cacheId);", "void draw(GraphicsContext context);", "public abstract void draw(GraphicsContext gc);", "public final native void setDrawingFunction(Drawable fc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of field 'nullThen'.
public com.cdoframework.cdolib.database.xsd.NullThen getNullThen() { return this.nullThen; }
[ "public void setNullThen(final com.cdoframework.cdolib.database.xsd.NullThen nullThen) {\n this.nullThen = nullThen;\n }", "@VTID(69)\r\n java.lang.String getNullString();", "boolean getValueNull();", "public ConnectedOrderBean when_IsNull() {\r\n return doWhen(ConditionKey.CK_IS_NULL, null)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This returns true if any row, column, or diagonal is marked. This method invokes private methods to simplify the process Bingo occurs when all BingoBalls in a row are marked, or all BingoBalls in a column are marked, or all BingoBalls on any diagonal are marked.
public boolean isBingo() { // check columns first if (this.columnIsMarked() == true) return true; // check rows if (this.rowIsMarked() == true) return true; // check diagonals if (diagonalLeftToRightIsMarked()) return true; if (diagonalRightToLeftIsMarked()) return true; return false; }
[ "private boolean diagonalLeftToRightIsMarked() {\n // start at upper left corner\n for (int i = 0; i < bingoCardlist.size(); i += 6) {\n if (!(bingoCardlist.get(i).getMarked()))\n return false;\n }\n return true;\n }", "private boolean diagonalRightToLeftIsMarked() {\n // start at bottom right corner\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
paint Paints the background for the body area, overwriting anything else in the area.
protected void paintBodyBackground( Graphics g ) { if ( Debug.ON ) Logger.dev( "OAbstractScreen.paintBodyBackground ENTERED" ); g.setColor( OUILook.BACKGROUND_COLOR ); g.fillRect( 0, getBodyRow() - LINE_SPACER, getWidth(), getBodyHeight() + LINE_SPACER ); if ( Debug.ON ) Logger.dev( "OAbstr...
[ "public void createBackground () {\n\n background = new BodyRenderer(new Color(50,50,255,95));\n background.addFixture(new BodyFixture(Geometry.createRectangle(100,40)));\n\n addShapesToBG(background);\n }", "public void body() {\n\t\tfill(255, 128, 0); // shirt color\n\t\tellipse(WINDOW_W...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for IThreadPool Implementations.
public interface IThreadPool { /** * Executes the given work. Typical IThreadPool implementations * will use a worker thread or some sort to execute the work. * * * @param work - work to be executed by thread pool. */ public void execute(Runnable work); /** * Wait for all the worker thread t...
[ "public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it bec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the style generator that is used for generating styles for rows
public void setRowStyleGenerator(RowStyleGenerator rowStyleGenerator) { this.rowStyleGenerator = rowStyleGenerator; datasourceExtension.refreshCache(); }
[ "public RowStyleGenerator getRowStyleGenerator() {\n return rowStyleGenerator;\n }", "public void setCellStyleGenerator(CellStyleGenerator cellStyleGenerator) {\n this.cellStyleGenerator = cellStyleGenerator;\n datasourceExtension.refreshCache();\n }", "public interface RowStyleGenera...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the number of versions since this attribute was removed.
AttributeReport setVersionsSinceLeftUnused(int versionsSinceLeftUnused){ this.versionsSinceLeftUnused = versionsSinceLeftUnused; this.used = false; return this; }
[ "@Override\n\tpublic TaskForUserOngoingRecord setNumRevives(Integer value) {\n\t\tsetValue(6, value);\n\t\treturn this;\n\t}", "public void setNumeroVersao(int value) {\n this.numeroVersao = value;\n }", "public void setVersionNo (String VersionNo);", "public void setVersion(int value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes in a character input and determines whether or not it is a valid input, if valid, sets gameMode to 0 for player v computer or 1 for player v player
public void setGameMode(char mode) throws IllegalArgumentException { if (mode != 'c' && mode != 'C' && mode != 'p' && mode != 'P') { throw new IllegalArgumentException("Invalid Input: " + mode); } if (mode == 'c' || mode == 'C') { gameMode = 0; ...
[ "public static void playerInput() \n\t{\n\t\t\n\t\tscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Choose the character x or o\");\n\t\tplayerInput = scanner.next().charAt(0);\n\t\tif (playerInput == 'x' || playerInput == 'o') \n\t\t{\n\t\t\tif (playerInput == 'x') \n\t\t\t{\n\t\t\t\tcomputerInput = 'o'...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch skill by name
public Optional<Skill> findByNameIgnoreCase(String name);
[ "Skill getSkill(String name);", "@ApiOperation(value = \"get skill\", nickname = \"get skill\")\n @RequestMapping(path = \"/skills/{skill}\", method = RequestMethod.GET)\n public ResponseEntity getSkill(@PathVariable(value = \"skill\") String name) {\n var skill = skillService.getSkillByName(name);\n if (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes an existing Version resource.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteVersion(com.google.appengine.v1.DeleteVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request); }
[ "public com.google.longrunning.Operation deleteVersion(\n com.google.appengine.v1.DeleteVersionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteVersionMethod(), getCallOptions(), request);\n }", "public void deleteVersion(\n com.google...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the spec_review table's entry to REVIEWER_ASSIGNED i.e. id = 5
private void updateSpecReviewToAssigned(Connection conn, long projectId) { PreparedStatement ps = null; InitialContext ctx = null; try { ps = conn.prepareStatement("UPDATE spec_review " + " SET review_status_type_id = 5, " + " modificatio...
[ "private void assignPapers(int idPaper, int idReviewer) {\r\n\t\tPaper myPaper = myAssignedPapers.get(idPaper);\r\n//\t\tmyPaper.reviewed++;\r\n//\t\tif (myPaper.reviewed == 1) {\r\n//\t\t\tmyPaper.myAssignedReviewer0 = idReviewer;\r\n//\t\t} else if (myPaper.reviewed == 2) {\r\n//\t\t\tmyPaper.myAssignedReviewer1 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the tasks for a project.
@Transactional(readOnly = true) public List<Task> getForProject(final long projectId) { final List<Task> projectTasks = tasks.findByProjectId(projectId); if (projectTasks.isEmpty()) { checkProjectExists(projectId); } return projectTasks; }
[ "public List<Task> getAllTasksForProject(String project_id) \r\n { \r\n \tList<Task> allTasksForProject=new ArrayList<Task>(); \t\r\n \t Cursor c = db.rawQuery(\"SELECT * FROM tasks WHERE project_id=?\", new String[]{project_id}); \r\n while (c.moveToNext()) {\r\n Task task=new Task(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies resourceGroupName, serverName, databaseName, syncGroupName.
WithCreate withExistingSyncGroup(String resourceGroupName, String serverName, String databaseName, String syncGroupName);
[ "void syncGroup(String resourceGroupName, String labName);", "interface WithSyncGroup {\n /**\n * Specifies resourceGroupName, serverName, databaseName, syncGroupName.\n * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the model to reflect the following sysex patch dump for your synthesizer type. If ignorePatch is TRUE, then you should NOT attempt to change the patch number and bank to reflect new information, but should retain the old number and bank. FROMFILE indicates that the parse is from a sysex file. If the parse faile...
public int parse(byte[] data, boolean ignorePatch, boolean fromFile) { return PARSE_FAILED; }
[ "public int parse(byte[] data, boolean fromFile)\n { This patch data will come from a file or transmitted over sysex.\n // FROMFILE indicates that the parse is from a sysex file.\n //\n // You should parse it into the model and return one of:\n // - PARSE_SUCCEEDED if successful,\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an Intent with action as ACTION_PICK
@Override public void onClick(View view) { Intent intent=new Intent(Intent.ACTION_PICK); // Sets the type as image/*. This ensures only components of type image are selected intent.setType("image/*"); //We pass an extra array with the accepted ...
[ "public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\tre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Arrange the intention stacks according to their evaluated utilities.
private void sortStacksByUtility() { /* * System.out.println("IntentionStructure before sorting:"); * this.print(System.out); */ // Make sure all variable bindings are up to date refreshPriorities(); Collections.sort(_stacks, new Comparator<Goal>() { public int compare(Goal goal1, Goal g...
[ "@Test(groups = {\"functest\", \"platform\", \"PlatformReg3\"}, priority = 13)\n\tpublic void verifyChangingOrderOfStacks()\n\t{\n\t\tString stackName = \"Stack Order \";\n\t\tString color = \"#080907\";\n\t\tWorkspacePage workspacePage = new WorkspacePage(driver);\n\t\tAdminSettingsStacksPage adminSettingsStacksPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String propertyUIName = "com.kingdee.eas.fdc.schedule.client.FDCScheduleTaskPropertiesNewUI"; String propertyUIName = "com.kingdee.eas.fdc.schedule.client.MainProgressReportBaseSchTaskPropertiesNewUI";
protected String getPropertityUIName() { String propertyUIName = MainProgressReportBaseSchTaskPropertiesNewUI.class.getName(); return propertyUIName; }
[ "public interface PropertyCategoryTypes\n{\n // existing\n String USER_ENABLEMENT = com.cboe.idl.constants.PropertyCategoryTypes.USER_ENABLEMENT;\n String TRADING_PROPERTIES = com.cboe.idl.constants.PropertyCategoryTypes.TRADING_PROPERTIES;\n\n // new\n String RATE_LIMITS = \"RateLimits\";\n Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a reference to the singleton instance for TurnMachine.
public static TurnMachine instance() { if (tm == null) tm = new TurnMachine(); return tm; }
[ "public static TimeMachine getTimeMachine() {\n return _instance;\n }", "public static Board getInstance(){\n\t\treturn instance;\n\t}", "Machine createMachine();", "public MonCheActivityFacade()\r\n\t{\r\n\t\tsuper();\r\n\t\tinstance = this;\r\n\t}", "public Machine machine() {\n return m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Open a specific sales, if it has not been opened yet, retry in 3 seconds
public static void loadSalesPage(WebDriver webDriver, SaleParameters saleParameter, TimeParameters timeParameter) { String urlSale = SALE_PAGE_LINK_PREFIX + saleParameter.getSaleIdValue(); boolean isSuccess = false; while (!isSuccess) { webDriver.get(urlSale); String markLink; ...
[ "@Test\n public void testPayOpenSaleFails() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // open a sale without closing it\n int openSaleId = shop.startSaleTransaction();\n assertTrue(shop.addProductToSale(op...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build Relation Ship Map
private Map<String, Object> buildRelationShipMap(final String relation, final String withName, final String withId, final String since , final String privacyName, final String[] shareWith, final String[] notshareWith){ Map<String, Object> map = new HashMap<String, Object>(2); map.put("relation", relation); if(wit...
[ "private void constructBiMaps() {\n srcGeneIdToPositionMap = HashBiMap.create();\n int temp = 1;\n for (Gene e : source.getGenes()) {\n srcGeneIdToPositionMap.put(e.getGeneId(), temp++);\n }\n tgtGeneIdToPositionMap = HashBiMap.create();\n temp = 1;\n for ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The identifier of the index for an access control configuration.
public String getIndexId() { return this.indexId; }
[ "public String getIndex_id() {\n\t\treturn index_id;\n\t}", "public int getIndexId() {\n return indexId;\n }", "public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}", "java.lang.String getDeployedIndexId();", "public int getID() {\n return graphConfig....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 3. write a program that can calculate the sum of all the even numbers between 1 ~ 100 4. write a program that can calculate the sum of all the odd numbers between 1 ~ 100 Task 3 first way
public static void main(String[] args) { int sumOfEven = 0; //declaring a variable for sum for(int i = 0; i <= 100; i+=2){ sumOfEven += i;//sum of all even numbers } System.out.println("The sum of all th even numbers: "+sumOfEven); /*print statement is outside of the ...
[ "public static void main(String[] args) {\n\n\t\tint sumEven = 0;\n\t\tint sumOdd = 0;\n\n\t\tfor (int i = 1; i < 100; i++) {\n\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tsumEven = sumEven + i; // 0+2=2\n\t\t\t} else {\n\t\t\t\tsumOdd = sumOdd + i; // 0+1=1 +3 =4\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"Sum of even numme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the str target table.
public String getStrTargetTable() { return strTargetTable; }
[ "public String getTarget_table() {\n return target_table;\n }", "public String getTargetTable() {\n return targetTable;\n }", "public void setStrTargetTable(final String strTargetTable) {\n this.strTargetTable = strTargetTable;\n }", "public void setTarget_table(String target_tab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getting the balance of the node based on the right and left child
private Integer getBalance(Node node) { if (node == null) { return 0; } return height(node.getLeftChild()) - height(node.getRightChild()); }
[ "public int get_balance() {\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to 0\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n tmp_right = rightChild.height;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/get single pixy session instructions and number of repeat of each instruction for client and server session from db
@RequestMapping(value = {"/session/{sessionId}"}, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Transactional /*if justClient send true -> just session instruction and number of the repeat of it for client type of this session id comes to result*/ /*else if justServer send true -...
[ "Counter getActiveSessions();", "private final static synchronized int getSessionId() {\n\t\treturn m_sessIdx++;\n\t}", "SteamMsgGameNotifications.CGameNotifications_GetSessionDetails_Request.RequestedSession getSessions(int index);", "int getAccessCounterForSession();", "int getClientSessionID();", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ methode pour choisir le deplacement
public String choixDeplacement(Robot r, Plateau p, String actionName){ String deplacementName; int nbRobotSurBase = 0; int nbPossibilite; boolean testObstacle1 = false; boolean testObstacle2 = false; boolean testObstacle3 = false; boolean testObstacle4 = false; boolean test = false; equipe ...
[ "boolean needPlacement();", "PourcentConst getVitesse_deplacement();", "public void comportement() {\n\t\tif (compteurPas > 0) {\n seDeplacer(deplacementEnCours);\n compteurPas--;\n\n // sinon charge le prochain deplacement\n\t\t} else {\n\t\t // recalcul le chemin si la cible a ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a query selecting all terms greater/equal than lowerTerm but less/equal than upperTerm. If an endpoint is null, it is said to be "open". Either or both endpoints may be open. Open endpoints may not be exclusive (you can't select all but the first or last term without explicitly specifying the term to exclude...
public RangeQuery(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper) { init(new Term(field, lowerTerm), new Term(field, upperTerm), includeLower, includeUpper, null); }
[ "public RangeQuery(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper,\n Collator collator) {\n init(new Term(field, lowerTerm), new Term(field,upperTerm), includeLower, includeUpper, collator);\n }", "private String constructBetweenQuery(String fir...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a device and invocationspecific seed to be mixed into the Linux PRNG.
private static byte[] generateSeed() { try { ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream(); DataOutputStream seedBufferOut = new DataOutputStream(seedBuffer); seedBufferOut.writeLong(System.currentTimeMillis()); seedBufferOut.w...
[ "private int generateSeed() {\n \n Random rand = new Random();\n return (int) System.currentTimeMillis() + rand.nextInt(10000);\n }", "public void setRNG(long seed);", "private void createGeneratorsSeeds(){\n if(sensorCountGeneratorSeed == null){\n sensorCountGeneratorS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for the COM property "ShowAllItems"
@VTID(30) boolean getShowAllItems();
[ "public boolean getShowAllItems() {\r\n return showAllItems;\r\n }", "public abstract NSArray visibleItems();", "@VTID(31)\n void setShowAllItems(\n boolean rhs);", "public String getItems() {\n return thePlayer.showMyThings();\n }", "public boolean hasVisibleItems();", "@VTID(127)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rule If its a SUN sign intent parse day and month to "20 november" and goto confirm ELSE goto get a year (replace 2015 with new one if present), and then confirm
private SpeechletResponse doubleCheckDate(Session session) { String date = (String) session.getAttribute(BIRTH_DATE); String year = (String) session.getAttribute(BIRTH_YEAR); final String initialIntent = getInitialIntent(session); log.info("double check the date - " + date); log....
[ "private void verifyDate() {\n int year = sharedPreferences.getInt(\"date year\", MainActivity.TODAY_YEAR);\n int month = sharedPreferences.getInt(\"date month\", MainActivity.TODAY_MONTH);\n int day = sharedPreferences.getInt(\"date day\", MainActivity.TODAY_DAY);\n\n if(year == MainAct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Query the current document cookie from the browser window
public String getDocumentCookie() { if (jsWin==null) return ""; String r_strCookieString = jsWin.eval("document.cookie").toString(); //$NON-NLS-1$ return r_strCookieString; }
[ "public String getCookie();", "private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }", "public String ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the state of the rows that this square is connected to, so when a square is selected, its rows will reflect that change.
private void stateChanged() { for (Row r : containingRows) { r.selectSquare(this); } }
[ "public void updateGrid() {\r\n for (List<Cell> row : myGrid) {\r\n for (Cell c : row) {\r\n c.updateState();\r\n }\r\n }\r\n\r\n for (List<Cell> row : myGrid) {\r\n for (Cell c : row) {\r\n c.setTempToOld();\r\n }\r\n }\r\n }", "public void update(){\n\t\tif ( updat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds a new solver environment out of the old environment and replaces the old. Also asserts all formulas currently on the assertion stack and calls isUnsat() once on the new environment. Deletes old environment afterwards. The currentlyAssertedFormulas are updated as well. Should be used after an interpolation failed...
public void destroyAndRebuildSolverEnvironment() throws InterruptedException, SolverException { itpProver.close(); itpProver = newEnvironment(); List<Pair<BooleanFormula, T>> newAssertedFormulas = new ArrayList<>(); for (Pair<BooleanFormula, T> formulaAndItpP : currentlyAssertedFormulas) { ...
[ "private void cleanupSolverStack(int firstBadIndex) {\n if (firstBadIndex == -1) {\n // solver stack was already empty, nothing do to\n\n } else if (firstBadIndex == 0) {\n // Create a new environment instead of cleaning up the old one\n // if no formulas need to be reused.\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Measurement conversion from inches to points.
public static final float inchesToPoints(float value) { return value * 72f; }
[ "static double convert_inches2meters(double inches) {\n\n double meters;\n\n meters = ((inches * 2.54) / 100);\n return meters;\n }", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "public float toInches() {\n\t\treturn (float) (this.feet * 12)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Update the text box label with messages from the message queue. Will process entries until the queue is empty.
private void processMessageQueue(){ KIDSGUIAlert m = null; StringBuilder newText = new StringBuilder(logLines.getText()); while ((m = this.logMessages.poll()) != null){ newText.append(String.format("%s\n", m.toString())); } logLines.setText(newText.toString()); }
[ "public synchronized void updateMessageBox(final String text){\n \tLoggingManager.logln(\"GUI: Updating message box.\");\n \tif (text != null){\n \t\tRunnable worker = new Runnable() { \n \t\t\tpublic void run() {\n \t\t\t\tmessageBox.setText(text);\n \t\t\t} \n \t\t};\n \tSwingUtilitie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BigInteger from ModInteger coefficients, positive. Represent as polynomial with BigInteger coefficients by removing the modules.
public static GenPolynomial<BigInteger> integerFromModularCoefficientsPositive( GenPolynomialRing<BigInteger> fac, GenPolynomial<ModInteger> A ) { GenPolynomial<BigInteger> B = fac.getZERO().clone(); if ( A == null || A.isZERO() ) { ...
[ "public GenPolynomial<C> fromInteger(BigInteger a) {\n return new GenPolynomial<>(this, coFac.fromInteger(a), evzero);\n }", "public static GenPolynomial<BigInteger> \n integerFromModularCoefficients( GenPolynomialRing<BigInteger> fac,\n GenPolynomial<ModI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets ith "div" element
void setDivArray(int i, edu.umich.icpsr.ddi.DivType div);
[ "public Div()\r\n {\r\n startTag=\"DIV\";\r\n endTag=\"/DIV\";\r\n }", "edu.umich.icpsr.ddi.DivType insertNewDiv(int i);", "public void setBatDiv(String batDiv);", "public abstract void setElem(int bank, int i, int val);", "@Override\n public void createFirstLevelDiv(FirstLevelD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool force_annou...
public static native long ChannelHandshakeLimits_new(long min_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, int max_minimum_depth_arg, boolean force_announced_channel_preference_arg, short their_...
[ "public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg);", "public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);", "public static native short ChannelHandshakeLimits_get_min_max_acce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PictureCarousel__Group__1" $ANTLR start "rule__PictureCarousel__Group__1__Impl" InternalLPDSL.g:732:1: rule__PictureCarousel__Group__1__Impl : ( ( rule__PictureCarousel__NameAssignment_1 ) ) ;
public final void rule__PictureCarousel__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalLPDSL.g:736:1: ( ( ( rule__PictureCarousel__NameAssignment_1 ) ) ) // InternalLPDSL.g:737:1: ( ( rule__PictureCarousel__Nam...
[ "public final void rule__Picture__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:2653:1: ( ( ( rule__Picture__NameAssignment_0 ) ) )\r\n // InternalLPDSL.g:2654:1: ( ( rule__Picture__NameA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Click on Free Sign Up Link.
public zoho clickFreeSignUpLink() { freeSignUp.click(); return this; }
[ "public static void clickonSignUp(){\n \tsignUp().click();\n \t\n }", "private SignUpPage clickOnSighUpLink(){\n click(link_SignUpLocator);\n return new SignUpPage();\n }", "public void clickRegisterLink() {\n $(registerLink).click();\n }", "public void clickSignUpButton(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method saves new holidays record to DB.
void saveHolidayDays(HolidayDays holidayDays) throws CustomMessageException;
[ "public void SaveHoliday() {\n String filename = name + \".json\";\n try {\n if (!isInDatabase) {\n DataImportHandler.GetInstance().InsertHolidayPlan(name, filename);\n isInDatabase = true;\n }\n DataHandler.GetInstance().WriteDataFile(fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates opening packet with given PacketData.
public static KarelPacket createOpeningPacket(PacketData packetData) { return new KarelPacket( new ConnectionId(0x0, 0x0, 0x0, 0x0), new SequenceNumber(0x0, 0x0), new AcknowledgeNumber(0x0, 0x0), FlagNumber.createOpeningFlag(), pack...
[ "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "public static byte[] createPac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mines an id for given theme from DataBase by theme's name and parentId.
static int getThemeId(String name, int pid) { if (name == null) { if (pid == 0) return 0; else return -1; } int id = -3; Cursor data; try { SQLiteDatabase db = LocalDBHelper.getDB(); data = db.query( TABLE_THEME...
[ "public void setThemeID(int value) {\n this.themeID = value;\n }", "void deleteTheme(long theme_id);", "final String getPrefix() {\n return Objects.requireNonNull(theme).getId();\n }", "public int getThemeId() {\n return getInt(themeIdKey);\n }", "public int getThemeID() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }