query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Is called when a drone is scanned. | public abstract void onScannedDrone(); | [
"public void onScanStarted();",
"public abstract void startSingleScan();",
"@Override\n public void onScanFinished() {\n Log.d(TAG, \"Scan Finished\");\n if(dicePlus == null){\n BluetoothManipulator.startScan();\n }\n }",
"void startingScan();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turn a JSON object into an offer. | private static Offer fromJsonObject(JsonObject json, Group group) {
return new Offer(json.getInteger("OfferID"),
group,
Tier.fromJsonObject(json),
Time.parseOffsetDateTime(json.getString("OfferTimestamp")),
Time.parseOffsetDateTime(json.getString("... | [
"public void setOffer(Offer offer) {\n this.offer = offer;\n }",
"public OfferV2(Offer otherOffer) {\n super(otherOffer);\n\n this.setOfferVersion(Constants.Properties.OFFER_VERSION_V2);\n this.setOfferType(\"\");\n\n JSONObject content = this.getContent();\n if (conte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a setter for the mutant records for this generation | public void setMutantRecords(ArrayList<MutantRecord> mutantRecords) {
this.mutantRecords = mutantRecords;
} | [
"public void setMutator(Mutator mutator) {\n this.mutator = mutator;\n }",
"public void setRecords(SimpleStringProperty Records) \n {\n this.Records = Records;\n }",
"public void SetRecord(int index, Record rec){\n\t}",
"public void setRecords(List<T> records) {\r\n this.records ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send results to each robot after round. | private void notifyResults(){
EnemyInfo[] info1 = new EnemyInfo [Rules.BASKET_CNT()];
EnemyInfo[] info2 = new EnemyInfo [Rules.BASKET_CNT()];
for(int i = 0; i < Rules.BASKET_CNT(); i++){
info1[i] = makeEnemyInfo(team1[i]);
info2[i] = makeEnemyInfo(team2[i]);
}
//send result to robots. If ... | [
"public void sendResults() {\n error_students = new ArrayList<>();\n for (HashMap.Entry<String, OMCEClient> s : students.entrySet()) {\n try {\n removeStudentFromWS(s.getKey());\n Exam exam = studentExams.get(s.getKey());\n exam.setFinished(true)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the given tool listener from the list of tool listeners | public void removeToolListener(ToolListener listener) {
toolListeners.remove(listener);
} | [
"@Override\n\tpublic void removeToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"public void removeToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}",
"public void removeMapToolSelectListener(MapToolSelectionListener listener) {\n eventListeners.remove(MapToolSelec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the main panel and its components. | private void buildMainPanel() {
firstButton = new JButton("First");
secondButton = new JButton("Second");
thirdButton = new JButton("Third");
fourthButton = new JButton("Fourth");
fifthButton = new JButton("Fifth");
sixthButton = new JButton("Sixth");
mainPanel = new JPanel();
mainPanel.setLayout(new... | [
"private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder bui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the parser encounters a new layer. A layer deals with polyphony within a track. While any track may have layers, layers are intended for use with the percussion track, where each layer may represent notes for a specific percussive instrument. Layers can essentially be thought of as a "track within a track."... | public void onLayerChanged(byte layer); | [
"@Override\n public void layerAdded(LayerEvent event) {\n if (_watchMap) {\n Layer layer = event.getChangedLayer();\n if (layer instanceof FeatureLayer) {\n addLayer((FeatureLayer)layer);\n }\n }\n }",
"void addLayer(String layerName);",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the index of the first non white space character in a given text. Returns the index as specified above. Returns the length of the text if the text only contains white spaces. | public static int getFirstNonWhiteSpaceCharacterIndex(String text)
{
if(text == null)
throw new IllegalArgumentException("The given text is null.");
if(text.length() == 0)
return 0;
StringTokenizer st = new StringTokenizer(text);
if(st.countTokens() > 0)
return text.indexOf(st.nextToken());
... | [
"private static int firstWhitespaceIndexOf(String text) {\n return minIndex(\n text.indexOf(' '),\n text.indexOf('\\n'),\n text.indexOf('\\r'),\n text.indexOf('\\t')\n );\n }",
"public static int getIndexOfFirstNonEmptyChar(String str) {\n for (i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a server to the quorum. | public synchronized void addQuorumServer(NetAddress serverNetAddress) throws IOException {
InetSocketAddress serverAddress = InetSocketAddress
.createUnresolved(serverNetAddress.getHost(), serverNetAddress.getRpcPort());
RaftPeerId peerId = RaftJournalUtils.getPeerId(serverAddress);
Collection<RaftP... | [
"public void addServer(ServerData server) { \r\n ServerData[] servers = getAllServers();\r\n ServerData[] newServers = new ServerData[servers.length + 1];\r\n System.arraycopy(servers, 0, newServers, 0, servers.length);\r\n newServers[servers.length] = server;\r\n newServer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes out given balances to an output, using exchange rates from bankService | public void writeBalance(Writer outputWriter, List<BalanceDTO> balances) throws OutputFailedException {
try {
if (verbose) {
outputWriter.write("--- Current Balances ---");
outputWriter.write(System.getProperty("line.separator"));
}
for (BalanceDTO balanceDTO : balances) {
if (balanceDTO == null... | [
"public static void balance(Bank bank,int totalAccountsReadIn, PrintWriter outFile, Scanner kybd) {\n int requestedAccount;\n int index;\n\n System.out.print(\"Enter the account number: \"); //prompt for account number\n requestedAccount = kybd.nextInt(); ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function for initializing OpenGL debugging | private void initDebug(GL4 gl) {
// Register a new debug listener
window.getContext().addGLDebugListener(new GLDebugListener() {
// Output any messages to standard out
@Override
public void messageSent(GLDebugMessage event) {
System.out.println(event)... | [
"private void initOpenGL(){\n\t\tcaps = GL.createCapabilities();\n\t\tglViewport(0,0,WIDTH,HEIGHT);\n\t\tif(caps.OpenGL44)System.out.println(\"All OK\");\n\t\tglEnable(GL_DEPTH_TEST);\n\t\t//glPolygonMode(GL_BACK, GL_LINE);\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t}",
"public void initialize()\r\n\t{\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current suffix for this team | String getSuffix(); | [
"public String getSuffix() {\n return (suffix);\n }",
"public String getSuffix(Player player) {\n \t\treturn getValue(player, \"suffix\");\n \t}",
"private String getSuffix() {\n String ret = \"\";\n if (file.getName().lastIndexOf(\".\") != -1) {\n ret = file.getName().substring(file.getName(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the input from client matches the pattern "factor N low high" | private boolean validateRequest(String request) {
Pattern protocol = Pattern.compile("factor\\s\\d+\\s\\d+\\s\\d+");
Matcher protocolMatcher = protocol.matcher(request);
if (protocolMatcher.find()) {
String[] args = request.split("\\s");
BigInteger N = new BigInteger(args[1]);
if ... | [
"public void getHint(){\n if(input > secret)\n System.out.println(\"Number is too big...\");\n else\n System.out.println(\"Number is too small...\");\n }",
"private boolean isValidFactor(double factor) {\n return ((factor >= 0) && (factor <= 1));\n }",
"private b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the usable area of the screen where applications can place its windows. The method subtracts from the screen the area of taskbars, system menus and the like. | public static Rectangle getUsableScreenBounds(GraphicsConfiguration gconf) {
if (gconf == null)
gconf = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();
Rectangle bounds = new Rectangle(gconf.getBounds());
String str;
... | [
"public static Rectangle getUsableScreenBounds() {\n return getUsableScreenBounds(getCurrentGraphicsConfiguration());\n }",
"public static Rectangle getScreenBounds ()\n\t{\n\t\tGraphicsEnvironment theGraphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment ();\n\t\tGraphicsDevice theScreen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CREATE BUILDING Create a new building if the name is correct and none exists with this name in the parent campus. | public static Entity createBuilding(String campusID, String buildingName) {
Entity building = null;
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Transaction txn = datastore.beginTransaction();
try {
Entity campus = Campus.getCampus(campusID);
Key campusKey = campus.getKey()... | [
"boolean isSetBuildingName();",
"void setBuildingName(java.lang.String buildingName);",
"public Campus create(long campusId);",
"public boolean hasBuilding()\r\n\t{\r\n\t\treturn getBuilding()!=null;\r\n\t}",
"public void addBuilding() {\r\n\tBuilding building = queryBuilding(AppData.getInstance().getBuildi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column product_seller_goods_attr.product_sys_code | public void setProductSysCode(String productSysCode) {
this.productSysCode = productSysCode == null ? null : productSysCode.trim();
} | [
"public void setProductCode(java.lang.String productCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRODUCTCODE$0, 0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the object's solid flag. | public void setSolid(boolean solid) {
this.solid = solid;
} | [
"public void setSolid(boolean input) {\n\t\tsolid = input;\n\t}",
"public boolean isSolid() {\n\t\treturn solid;\n\t}",
"public boolean solid() {\n\t\treturn true;\n\t}",
"public boolean isSolid() {\r\n\t\treturn isSolid;\r\n\t}",
"public void setSolidFill(org.openxmlformats.schemas.drawingml.x2006.main.CTS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recalcualate the weights based on the current connection count for this set of rounds. | public void reCalcuateWeight() {
if (totalConnections > 0) {
double weightRatio = (double) fixedWeight / totalWeight;
double connectionRatio = (double) currentConnectionCount / totalConnections;
double diff = weightRatio - connectionRatio;
doub... | [
"private void reCalcuateWeights(MessageContext messageContext) {\n Map connectionsMap = null;\n // fetch the connections map\n if (messageContext instanceof Axis2MessageContext) {\n Axis2MessageContext axis2MessageContext = (Axis2MessageContext) messageContext;\n org.apach... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build an action group as reusable UIActionLink components. | @SuppressWarnings("unchecked")
private void buildActionGroup(
FacesContext context, ActionsConfigElement config, ActionGroup actionGroup, String contextId)
throws IOException
{
javax.faces.application.Application facesApp = context.getApplication();
ResourceBundle messages = Application... | [
"public PSCustomActionGroup(PSLocation location, PSActionLinkList actions)\n {\n setLocation(location);\n setActionLinkList(actions);\n }",
"private void createActionsPanel() {\n DefaultActionGroup group = new DefaultActionGroup();\n group.add(new CloseAction());\n ActionManager... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
given SearchRequest with start date and end date, return RoomType and its left rooms in this hotel. This function is used when LRUCache did not cache current SearchRequest | private Map<RoomType, List<Room>> getAvailableRooms(SearchRequest r) {
Map<RoomType, List<Room>> map = new HashMap<>();
map.put(RoomType.SINGLE, new ArrayList<>());
map.put(RoomType.DOUBLE, new ArrayList<>());
// go through all the rooms of this hotel and check its availability
... | [
"public Reservation makeReservation(ReservationRequest request) {\n Reservation reservation = new Reservation(request.getStartDate(), request.getEndDate());\n\n SearchRequest search = new SearchRequest(request.getStartDate(), request.getEndDate());\n\n Map<RoomType, List<Room>> availableRooms ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It returns the random object. | public Random getRandom() {
return (rand);
} | [
"protected Random get_rand_value()\n {\n return rand;\n }",
"public static final Randomizer getRandomizer() {return instance;}",
"public int getRand() {\n return rand;\n }",
"protected Random getRandomGenerator() {\n if (random == null) {\n random = new Random();\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method send request message by the client to the server to order a book the database returns an appropriate response message | public OrderBookResponse makeOrder(User user, Book book) {/////////////
OrderBookRequest message = new OrderBookRequest(user, book);
return (OrderBookResponse) client.sendMessage(message);
} | [
"void placeOrder(ServerRequest request, ServerResponse response, Order order);",
"public void OrderButtonClick(View v) {\n // Get latest availability\n availabilityUpdate();\n // If we're ordering and the current shoe is unavailable, don't send order request\n if (!MainDisplay.ADMIN_MO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Receive subscription creation events | @Override
public void receive(SubscriptionCreation event) {
logger.info("###Received subscription creation event with id:" + event.getSubscriptionId());
} | [
"protected abstract void setupSubscriptions();",
"public void createSubscription(SubscriptionData subscription, List<EntitlementEvent> initialEvents, InternalCallContext context);",
"public void createSubscription(Subscription sub);",
"Subscriber create(Subscriber subscriber);",
"public void acceptSubscript... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the actionNumth action that can be applied to the Pest (not including random) if actionNum does not correspond to a valid action, this method returns the empty string "" | public String getAction(int actionNum) {
// replace with your own code
return "";
} | [
"public Integer getNumAction() {\n\t\treturn numAction;\n\t}",
"private int getRandomAction()\n {\n int actionHash, randomMove, randomFire;//, randomAim;\n\n randomMove = getRandomInt(0, ACTION_MOVE_NUM - 1);\n randomFire = getRandomInt(0, ACTION_FIRE_NUM - 1);\n //randomAim = getRa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set flow description via command. | public void setDescription( String val ) {
doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), "description", val ) );
} | [
"public void setDescription(String desc){\n\n description = desc;\n\n }",
"public DataFlow setDescription(String description) {\n this.description = description;\n return this;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_taskSession.setDescription... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The name of the execution stage. string execution_stage_name = 1; | java.lang.String getExecutionStageName(); | [
"String getStageName();",
"com.google.protobuf.ByteString\n getExecutionStageNameBytes();",
"public String getStageName() {\n return this.stageName;\n }",
"public String getStageName() {\n return stageName;\n }",
"public String getStageName() {\n\t\treturn stageName;\n\t}",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the method count. Get the parameters of the methods. This method acept dataInputStream objec and the tag input as the command line input (m or c) | public void getMethodCount(DataInputStream dis, String tag)
{
try{
int methodCount = dis.readUnsignedShort();
int methodByteCount=0;
//System.out.println("Method Count : "+ methodCount);
clsData.setMethodCount(methodCount);// the number of method in the class is sent to the Class data object
if(met... | [
"public int getArgCount(String method);",
"private void readMethods() throws IOException, ClassFormatException {\n final int methods_count = dataInputStream.readUnsignedShort();\n methods = new Method[methods_count];\n for (int i = 0; i < methods_count; i++) {\n methods[i] = new Me... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reinitialize content before parsing next frame. | private void prepareForNewFrame(){
currentFrameBody = new StringBuilder();
headers = new HashMap<String, String>();
} | [
"public void reset ()\n {\n // position our buffer at the beginning of the frame data\n _buffer.position(getHeaderSize());\n }",
"protected void reinitialize() {\n \t\t\tfStart= fEnd= -1;\n \t\t\tfText= fPreservedText= null;\n \t\t\tfUndoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICAT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Represents a state machine that can consists of several states and one or more actions. Based on the actions and provided transition map it can move from one state to another. | public interface StateMachine<ACTION, STATE> {
/**
* Make the transition from current state to the next state
* as defined in the transition map.
* @param action Taken action
* @return Next state
* @throws InvalidTransitionException Throws when a transition is not found for a given action
... | [
"protected Transition addTransitionSteps(Transition transition,\n InternalSystemEntryDelta entryDelta,\n Object fromState,\n Object toState)\n {\n // nothing to do if both states are e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
+ Button Last Employer Offer Letter | public static WebElement btn_plus_last_off_letter_bpo(WebDriver driver)
{
element = driver.findElement(By.xpath(".//*[@id='lastemployerofferletter']/i"));
return element;
} | [
"private JButton largeTrainingButton() {\n JButton button = createMenuButton();\n button.setText(String.format(\"2) Rent a large training room (%dg)\", PRICE_OF_LARGE_TRAINING));\n button.addActionListener(new LargeTrainHandler());\n return button;\n }",
"private int getButtonText(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setze ein neues ErgebnisObjekt. | public void setErgebnis (GueteErgebnis ergebnis); | [
"public abstract void setObject(EObject obj);",
"public void setObject(Object set){\n NodeObject = set;\n }",
"void setObject(Object val);",
"public void setObject(Object obj) {\n getObjectValueHolder().setObject(obj);\n getList().set(position, obj);\n }",
"public void testSetObj() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
prev() moves the cursor to the previous node, and sets ready flag | public T prev() {
cursor = ((Entry<T>) cursor).prev;
ready = true;
return cursor.element;
} | [
"public Node setPrevNode(Node node);",
"void movePrev(){\r\n\t\t// If cursor is defined and not at head\r\n\t\tif( (index() > 0) && (index() < length()) ){\r\n\t\t\tcursor = cursor.prev;\r\n\t\t\tindex--;\r\n\t\t}else{\r\n\t\t\tcursor = null;\r\n\t\t\tindex = -1;\r\n\t\t}\r\n\t}",
"public void setPrev(Node p) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DAO para manejar los atributos de la base de datos de Localgis | public interface LocalgisAttributeDAO {
/**
* Inserta un atributo de localgis
*
* @param record
* El atributo a insertar
* @return El identificador (PK) del atributo insertado
*/
public Integer insert(LocalgisAttribute record);
/**
* Devuelve los ... | [
"public interface GeopistaLayerDAO extends Dao {\r\n\r\n /**\r\n * Devuelve las capas de un mapa determinado para una entidad determinada\r\n * \r\n * @param idMap\r\n * El identificador del mapa\r\n * @param idEntidad\r\n * El identificador de la entidad\r\n * @... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if this exit is obvious in the given room for the given actor. This method should be called for every look operation as the obviousness status can change. | public boolean isObvious(Living who, String roomId); | [
"public boolean isArchenemy() {\n return getZone(ZoneType.SchemeDeck).size() > 0;\n }",
"@Override\n public boolean checkInteract(Actor other) {\n return !wall;\n }",
"private void winCondition()\n {\n int[] curPos = mazeController.getCurrentPosition();\n if (win == false... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test toString() method for when stack is not empty. | @Test
public void testNonemptyStack() {
ProgramStack ps = new ProgramStack();
ps.push(1);
ps.push(2);
ps.push(3);
Assert.assertEquals("[1, 2, 3]", ps.toString());
} | [
"@Test\n public void toStringTest() {\n assertEquals(\"1 2 3 4\", stack.toString());\n }",
"@Test\n public void testEmptyStack() {\n ProgramStack ps = new ProgramStack();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }",
"@Test\r\n public void popEmptyStack() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the hash type to which this subscription is subscribed. | public String getHashType() {
return _hash_type;
} | [
"public __Type getSubscriptionType() {\n return (__Type) get(\"subscriptionType\");\n }",
"public byte getSubscriptionType();",
"public int getAudit_subscription_type_id() {\n return audit_subscription_type_id;\n }",
"String getSubscriptionTypeId();",
"protected int getChannelTypeForSubs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. bool enable_secure_boot = 1; | boolean getEnableSecureBoot(); | [
"boolean hasBootloaderMode();",
"public void setSecurityEnabled(Boolean value) { \r\n this.securityEnabled = value; \r\n valueChanged(\"securityEnabled\", value);\r\n\r\n }",
"public boolean getBootloaderMode() {\n\t\t\treturn bootloaderMode_;\n\t\t}",
"public boolean getBootloaderMode() {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Operation__Group__0" $ANTLR start "rule__Operation__Group__0__Impl" ../org.waml.w3c.webidl.ui/srcgen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5862:1: rule__Operation__Group__0__Impl : ( ( rule__Operation__Group_0__0 )? ) ; | public final void rule__Operation__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5866:1: ( ( ( rule__Operation__Group_0__0 )?... | [
"public final void rule__Operation__Group_0__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6272:1: ( ( ( rule__Opera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used by knob values changed listener | private void knobValuesChanged(boolean knobStartChanged, boolean knobEndChanged, int knobStart, int knobEnd) {
if(knobValuesChangedListener != null)
knobValuesChangedListener.onValuesChanged(knobStartChanged, knobEndChanged, knobStart, knobEnd);
} | [
"public interface KnobValuesChangedListener {\r\n\t\tvoid onValuesChanged(boolean knobStartChanged, boolean knobEndChanged, int knobStart, int knobEnd);\r\n\t\tvoid onMoveValuePoint(int pX, int pY, int knobStartPX, int knobEndPX, boolean isMoving);\r\n void onSliderClicked();\r\n\t}",
"void valueChanged(Ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field586' field. | public void setField586(java.lang.CharSequence value) {
this.field586 = value;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField586(java.lang.CharSequence value) {\n validate(fields()[586], value);\n this.field586 = value;\n fieldSetFlags()[586] = true;\n return this; \n }",
"public void setField585(java.lang.CharSequence value) {\n this.field585 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "TotAnulado" element | public boolean isSetTotAnulado()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TOTANULADO$2) != 0;
}
} | [
"public boolean isSetAnulado()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ANULADO$4) != 0;\r\n }\r\n }",
"public boolean isSetT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure correctly adds an entry. | public void testAddEntry() {
Entry entry = new Entry();
this.validateList(entry);
} | [
"public abstract void addEntry(Object entry);",
"public boolean add(T entry) {\n return false;\n }",
"public void testFailIfAddOnlyEntryAgain() {\n\t\tEntry entry = new Entry(); // added first time\n\t\ttry {\n\t\t\tthis.linkedList.addEntry(entry);\n\t\t\tfail(\"Should not be able to re-add an entry\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data JPA repository for the Currency entity. | public interface CurrencyRepository extends JpaRepository<Currency, Long> {
} | [
"public interface CurrencyRepository extends CrudRepository<CurrencyEntity, Long> {\r\n\tCurrencyEntity findByName(String name);\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PlayerCurrencyRepository extends JpaRepository<PlayerCurrency, Long> {\n\n}",
"@Transactional(readOnly = true)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for CityCode, using the alias name CityCode. | public String getCityCode() {
return (String)getAttributeInternal(CITYCODE);
} | [
"public String getCityCode()\r\n\t{\r\n\t\treturn this.cityCode;\r\n\t}",
"public Integer getCitycode() {\n return citycode;\n }",
"public String getCitycode() {\n return citycode;\n }",
"public String getCityCode() {\n return cityCode;\n }",
"public java.lang.String getCityCod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column empi_person.workdate | public void setWorkdate(String workdate) {
this.workdate = workdate;
} | [
"public void setWorkDate(Date workDate) {\n\t\tthis.workDate = workDate;\n\t}",
"public void setWorkstartdate(Date workstartdate) {\n this.workstartdate = workstartdate;\n }",
"public void setWorkenddate(Date workenddate) {\n this.workenddate = workenddate;\n }",
"public void setHC_WorkEnd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the Focus Mode directory in the database for the selected date. | public static void setUpFocusMode(String date, String currUser) {
DatabaseReference ref = reference.child(currUser);
ref.child(date).addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {
Obj... | [
"public void setFocus() {\n\tif (selectedDay != null) {\n\t this.selectedDay.requestFocusInWindow();\n\t}\n }",
"public static void initialiseFocusMode(String currUser) {\n DatabaseReference ref = reference.child(currUser);\n ref.child(lastFocusProc).setValue(\"\");\n }",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the tree view and load previously expanded paths if applicable | private void updateTreeView(List<String> dynamicTreeViewExpandedPaths) {
System.out.println("updating treeview...");
if (m_model.getM_rightFolderSelected() == null) {
this.getChildren().add(new Label(LABEL_DEFAULT));
} else {
createTrees(m_model.getM_libraries(), dynamic... | [
"protected void updateExpandedDescendants (TreePath path ){\r\n\t\t//completeEditing();\r\n\t\tif(treeState != null) {\r\n\t\t\ttreeState.setExpandedState(path, true);\r\n\r\n\t\t\tArray descendants =tree.getExpandedDescendants(path );\r\n\r\n\t\t\tif(descendants != null) {\r\n\t\t\t\tfor(int i =0;i <descendants.l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Person person = elasticsearchOperations.queryForObject(GetQuery.getById(id.toString()), Person.class); | @GetMapping("/person/{id}")
public Person findById(@PathVariable("id") Long id) {
Person person = elasticsearchOperations.get(id.toString(), Person.class);
return person;
} | [
"public interface EmployeeSearchRepository extends ElasticsearchRepository<Employee, Long> {\n}",
"public interface CustomerIncomeSearchRepository extends ElasticsearchRepository<CustomerIncome, Long> {\n}",
"public interface CompanySearchRepository extends ElasticsearchRepository<Company, Long> {\n}",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new custom type. | public CustomType() {
super();
} | [
"CustomT createCustomT();",
"public SpecialType() {\r\n\t}",
"Type createType();",
"BasicType createBasicType();",
"private Type() {}",
"public MercenaryType() {\r\n \r\n }",
"DataType createDataType();",
"private RType()\n {\n // initialise instance variables\n }",
"TypeDef c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configuration of findings limit given for specified infoTypes. repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; | public com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit.Builder
addMaxFindingsPerInfoTypeBuilder() {
return getMaxFindingsPerInfoTypeFieldBuilder()
.addBuilder(
com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit
.getDe... | [
"java.util.List<com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit>\n getMaxFindingsPerInfoTypeList();",
"java.util.List<\n ? extends com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimitOrBuilder>\n getMaxFindingsPerInfoTypeOrBuilderList();",
"public java... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
status of cmid change to routine | public void updateRoutine(String cmid) {
try {
connect();
statement.execute("USE GIS_DB;");
statement
.executeUpdate("UPDATE updatedLocation SET eventID=NULL WHERE cmid='"
+ cmid + "';");
} catch (SQLException se) {
// Handle errors for JDBC
se.printStackTrace();
} catch (Exception e) ... | [
"public void UpCheck_status1(MajorChange mc) ;",
"String chkModifiedComm(String premSeqNo, String issCd) throws SQLException;",
"public String checkRoutineOrEmerg(String cmid) {\n\t\tString eventID = \"\";\n\t\ttry {\n\t\t\tconnect();\n\t\t\tstatement.execute(\"USE GIS_DB;\");\n\t\t\tResultSet rs = statement\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a Material by its name | Material findMaterial(String name) throws ReadException; | [
"public LearningMaterial getLearningMaterialByName(String name) {\n return repo.findByName(name);\n }",
"public static ShopMaterial getShopMaterial(final String name) throws InvalidMaterialException {\r\n\t\treturn getShopMaterial(name,true);\r\n\t}",
"public Material getMaterial(String alias) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Vector method overrides: Vector method overrides ensure that : the only elements added are VOI, and that a notify takes place to all interested listeners. that outputs are all returning VOI as needed. note: none of the methods using java.util.Collection are implemented here. Override the Vector method to ensure that ob... | @Override
public void addElement(VOI o) {
add(o); // add the voi to the vector
} | [
"@Override\r\n\tpublic boolean add(VOI o) {\r\n VOI voi = null;\r\n\r\n // check that object is a VOI\r\n if (!(o instanceof VOI)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n voi = o;\r\n\r\n // check the voi name, fix if necessary\r\n if (co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new TestHelper passing in a function to call repeatedly to step the time forward. May also poke the subsystems to do processing. | public TestHelper(DoubleSupplier stepFunc, Runnable statusPrinter) {
this.stepFunc = stepFunc;
} | [
"public static void selfTest() {\n\talarmTest1();\n\t// Invoke your other test methods here ...\n }",
"@Test\n public void testAddIncrementInControlTime() {\n\n }",
"@Test\n public void testSetRelativeTimes() {\n System.out.println(\"setRelativeTimes\");\n int logicValue = 0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluates the given configuration, storing the score on the object. | private double evaluate(GeneticConfiguration config,
MatchListener listener) {
Configuration cconfig = config.getConfiguration();
Processor proc = new Processor(cconfig, database);
TestFileListener eval = makeEval(cconfig, testdb, proc);
eval.setPessimistic(!active); // active ... | [
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"public abstract double evaluate(EvaluationScores scores) throws Exception;",
"public void setEvaluationStrategy(EvaluationStrategy eval);",
"public abstract double evaluate(EvaluationScores scores, int k) throws Exception;",
"@Overr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether square [a, a+1] x [b, b+1] is covered with sea | private boolean is2x2Sea(int a, int b) {
for (int dr = 0; dr <= 1; dr++) {
for (int dc = 0; dc <= 1; dc++) {
if (board[a + dr][b + dc].type != 2) {
return false;
}
}
}
return true;
} | [
"private boolean isSealocked(Point[][] map, int x,int y,int num){\r\n int count = 0;\r\n for(int i = -1; i < 2;i++){\r\n for(int j = -1;j<2;j++){\r\n int nx = x+j,ny = y+i;\r\n if((i==0 && j==0) ||nx<0||ny<0||nx>=map[0].length||ny>=map.length);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send an error to any watchers/listeners. | protected void sendError(final Throwable t) {
main.post(new Runnable() {
@Override
public void run() {
for (ErrWatcher ew : errWatchers) {
try {
Log.e(PULSE, "Sending error to UI", t);
ew.onError(t);
... | [
"private void notifyPlayerEventError(String error) {\n if (logger.isActivated()) {\n logger.info(\"Player error: \" + error);\n }\n\n Iterator<IAudioEventListener> ite = listeners.iterator();\n while (ite.hasNext()) {\n try {\n ((IAudioEventListener)i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the branch of the member based on Member.id field. | public String getBranch(int member)
{
return(member == 1 ? player_1.getBranch() : player_2.getBranch());
} | [
"int getBranchId();",
"java.lang.String getBranchId();",
"public Branch getBranchById(int id){\n if( id==0 ) {\n return defaultBranch;\n } else {\n BranchDao bDAO = new BranchDao();\n Branch branch = null;\n try {\n branch = bDAO.findById(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Isosceles Triangle Given a number n, print a centered triangle. Example for n=3: | private static void drawAnIsoscelesTriangle(int n) {
// 1 3 5 7
drawTriangle(true,n,0,n);
} | [
"private static void drawAnIsoscelesTriangle(int n) {\n int i,j,k;\n for(i=0; i<n; i++){\n for(j=0; j<n-1-i; j++) {\n System.out.print(\" \");\n }\n for(k=0; k<n-j+i; k++){\n System.out.print(\"*\");\n }\n System.out.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sends a message to the projector when choose to turn ON. | public void projectorOn() {
if (!isProjectorOn) {
String a = sendMessage(projectorOn);
if (a.equals(OK)) {
isProjectorOn = true;
ui.updateArea("Projector is ON");
}
} else {
ui.updateArea("Projector already ON");
... | [
"public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The constructor of the attendee controller. | public AttendeeController(){
input = new InputManager();
output = new OutputManager();
seeALLExistingEvents = new SeeALLExistingEvents();
seeALLMyEvents = new SeeALLMyEvents();
seeAllFriend = new SeeAllFriend();
seeAllMessage = new SeeAllMessage();
addFriend = new... | [
"public ClientAccountViewController() {\n }",
"public Appointment() {\r\n\t\t\t\r\n\t\t}",
"public Applicant(){ }",
"public MeetingRoomController(){}",
"public Appointment() {\n\t\tsuper();\n\t}",
"public InventarioController() {\r\n }",
"public AttendeeCollection() {\n super();\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: sealnumber4 | public java.lang.String getSealnumber4 () {
return sealnumber4;
} | [
"public java.lang.String getSealnumber1 () {\n\t\treturn sealnumber1;\n\t}",
"public java.lang.String getSealnumber5 () {\n\t\treturn sealnumber5;\n\t}",
"public java.lang.String getSealnumber3 () {\n\t\treturn sealnumber3;\n\t}",
"public java.lang.String getSealnumber2 () {\n\t\treturn sealnumber2;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the branch list for bank. | public List<Branch> getBranchListForBank(String name); | [
"java.util.List<Bank.InitBranch.Branch> \r\n getAllBranchesList();",
"public List<Branch> getBranches(){\n return branchRepository.findAll();\n }",
"public List<Bank> findAllBanks() {\n return em.createNamedQuery(\"Bank.findAll\").getResultList();\n\n }",
"public List<Branch> findAl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrap a Stream into a Sequential synchronous FutureStream that runs on the current thread | static <T> EagerFutureStream<T> eagerFutureStream(Stream<T> stream) {
if (stream instanceof FutureStream)
return (EagerFutureStream<T>) stream;
EagerReact er = new EagerReact(
ThreadPools.getCurrentThreadExecutor(), RetryBuilder.getDefaultInstance()
.withScheduler(ThreadPools.getSequentialRetry()),false);
... | [
"EagerFutureStream<U> withAsync(boolean async);",
"default LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}",
"public final static <T> Stream<T> completableFutureToStream(final CompletableFuture<T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read the list data contents from a web service. | private void readElements(String url) {
ArrayList<NameValuePair> params = null;
// add any data item parameters
if (paramSet != null) {
params = paramSet.getNameValuePairs();
}
// use a support method from the base class to get the Element root node
... | [
"@Handler(id=\"getWebServicesData\",\n output={\n @HandlerOutput(name=\"WebServicesData\", type=List.class)})\n public static void getWebServicesData(HandlerContext handlerCtx) {\n Map<Object, String> wsKeyMap = getWSKeys();\n List dataList = new ArrayList();\n for (Iterato... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
def __tileSeriesX(lon, lat): width, offset = __widthAndOffsetSeries(lat) return int((lon + (144 offset)) / width) | private static int tileSeriesX(double lon, double lat) {
double[] widthAndOffset = widthAndOffsetSeries(lat) ;
return (int)Math.round(Math.floor((lon+(144-widthAndOffset[1]))/widthAndOffset[0])) ;
} | [
"private static int tile250X(double lon, double lat) {\n\t\tdouble[] wo = widthAndOffset250(lat) ;\n\t\treturn (int)Math.round(Math.floor((lon+(144-wo[1]))/wo[0])) ;\n\t}",
"private static int[] tileSeries(double lon, double lat) {\n\t\treturn new int[] {tileSeriesX(lon, lat), tileSeriesY(lat)} ;\n\t}",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of TenantEmailRegistration class. | public TenantEmailRegistration() {
} | [
"public static Tenant createEntity() {\n return new Tenant();\n }",
"public EmailSender() {\r\n }",
"public Email(){}",
"public void create(CreateTenant ct) {\n // TODO\n }",
"public Registration() {\n\t}",
"public SubscriptionRegistration create(long SUSCRIBER_ID);",
"public Anot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The operation that you want to perform. Set the value to ReprotectDiskReplicaGroup. | public ReprotectDiskReplicaGroupResponse reprotectDiskReplicaGroup(ReprotectDiskReplicaGroupRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.reprotectDiskReplicaGroupWithOptions(request, runtime);
} | [
"public ReprotectDiskReplicaGroupResponse reprotectDiskReplicaGroupWithOptions(ReprotectDiskReplicaGroupRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Attribute__Group_6__1__Impl" $ANTLR start "rule__Attribute__Group_6__2" InternalMyDsl.g:13856:1: rule__Attribute__Group_6__2 : rule__Attribute__Group_6__2__Impl ; | public final void rule__Attribute__Group_6__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:13860:1: ( rule__Attribute__Group_6__2__Impl )
// InternalMyDsl.g:13861:2: rule__Attribute__Group_6__2__Impl
{
... | [
"public final void rule__Attribute__Group_6_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7628:1: ( rule__Attribute__Gr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get editable targets for current group/stem and logged in subject | public List<GrouperProvisioningTarget> getEditableTargets() {
GrouperObject grouperObject = null;
GuiGroup guiGroup = GrouperRequestContainer.retrieveFromRequestOrCreate().getGroupContainer().getGuiGroup();
GuiStem guiStem = GrouperRequestContainer.retrieveFromRequestOrCreate().getStemContain... | [
"public Set<GrouperProvisioningTarget> getViewableTargets() {\r\n \r\n GrouperObject grouperObject = null;\r\n \r\n GuiGroup guiGroup = GrouperRequestContainer.retrieveFromRequestOrCreate().getGroupContainer().getGuiGroup();\r\n GuiStem guiStem = GrouperRequestContainer.retrieveFromRequestOrCreate().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
File | Exit action performed | public void jMenuFileExit_actionPerformed(ActionEvent e)
{
if (!okToAbandon())
return;
if (isStandAlone)
System.exit(0);
else
dispose();
} | [
"public void fileExit_actionPerformed(ActionEvent e)\n\t{\n\t\tSystem.exit(0);\n\t}",
"@Override\n public void fileExit() {\n System.exit(0);\n }",
"public void jMenuFileExit_actionPerformed(ActionEvent e) {\n System.exit(0);\n }",
"private void exitAction() {\n\t}",
"private void exit()\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CONSTRUCTORS Default Constructor: Creates a new Precaution with the name "New Precautionary Measure" and a modifier of 0. | public Precaution()
{
this("New Precautionary Measure", 0.0f);
} | [
"public Precaution(String name, float modifier)\n {\n name_ = name;\n modifier_ = modifier;\n }",
"public Precaution(Precaution precaution)\n {\n this(precaution.name_, precaution.modifier_);\n }",
"public Risk(){\n description=\"\";\n probability=0;\n conseque... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encrypts a string, using the internal random generator. | public String encryptString(String plainText) {
return encStr(plainText, new Random().nextLong());
} | [
"public String encrypt(String stringToEncrypt);",
"public String encryptString(String plaintext, Random rndgen) {\n return encStr(plaintext, rndgen.nextLong());\n }",
"String encrypt(String text);",
"String encryptString(String toEncrypt) throws NoUserSelectedException;",
"public String encrypt(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get The Appts of a specific day | private static Appt[] getUserDayAppt(Timestamp thisDay, User user,ApptStorageControllerImpl controller){
Timestamp start = new Timestamp(0);
start.setYear(thisDay.getYear());
start.setMonth(thisDay.getMonth());
start.setDate(thisDay.getDate());
start.setHours(0);
start.setMinutes(0);
start.setS... | [
"public Appt[] GetThisDayAppt( Timestamp thisDay) {\n\t\tTimestamp start = new Timestamp(0);\t\t\t\t// By Kelvin\n\t\tstart.setYear(thisDay.getYear());\n\t\tstart.setMonth(thisDay.getMonth());\n\t\tstart.setDate(thisDay.getDate());\n\t\tstart.setHours(0);\n\t\tstart.setMinutes(0);\n\t\tstart.setSeconds(0);\n\t\t\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of sugarPer100g | public double getSugarPer100g()
{
return sugarPer100g;
} | [
"public void setSugarPer100g(double sugarPer100g)\n {\n this.sugarPer100g = sugarPer100g;\n }",
"float getPricePerAlcohol();",
"public double getGrossTonnage();",
"String getGasPriceInWei();",
"String getProfitRatio();",
"public int getSugar() {\n return sugar;\n }",
"double getPr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string access_token = 1; | java.lang.String getAccessToken(); | [
"public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}",
"public String getAccess_token() {\n return access_token;\n }",
"public void setAccess_token(String access_token) {\n this.access_token = access_token;\n }",
"public void setAccessToken(String accessToken);",
"String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marks the card with the given marker. | public void mark(Marker m) {
mark = m;
} | [
"public abstract void mark(Marker marker) throws RopePointInvalidUsageException;",
"void setMarker(final int marker) {\n markers |= marker;\n }",
"void setMarker(Marker m) {\n this.marker = m;\n }",
"public void setMark(int newMark)\n {\n mark = newMark;\n }",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prikazuje dialog koji upozorava korisnika da postoje nesacuvane izmene koje ce biti izgubljene ako izadjemo iz editora discardButtonClickListener je klik lisener koji odlucuje sta ce biti dalje ako korisnik zaista potvrdi da zeli da izadje iz editora | private void showUnsavedChangesDialog(DialogInterface.OnClickListener discardButtonClickListener) {
//postavljamo AlertdDialog.builder i prikazujem poruku,i klik lisener za pozitivan ili negativan odgovor
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.... | [
"public void DialogoGuardarUsuario(final GUARDAR guardar, final String... Usuario) {\n\n final Dialog dialogIntro = new Dialog(this);\n dialogIntro.setCancelable(false);\n dialogIntro.setCanceledOnTouchOutside(false);\n dialogIntro.setContentView(R.layout.dialog_guardar_editar_usuario);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getPelicula method, of class CDirectores. | @Test
public void testGetPelicula() {
System.out.println("getPelicula");
CDirectores instance = new CDirectores();
String expResult = "";
String result = instance.getPelicula();
assertEquals(expResult, result);
// TODO review the generated test code and remove the def... | [
"public List<Pelicula> getPeliculas(){\n\t\t// TODO Auto-generated method stub\n\t\treturn peliculaDAO.list();\n\t}",
"@Test\n public void testSetPelicula() {\n System.out.println(\"setPelicula\");\n String Pelicula = \"\";\n CDirectores instance = new CDirectores();\n instance.setP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Public method pickupTime() simulates a car pickup by a client | public void pickupTime(Car car, Customer customer, String date) {
System.out.println("Automobilul " + car.getMake() + " " + car.getModel()+ " va fi ridicat de clientul " +
customer.getFirstName() + " " + customer.getLastName() + " la data si ora " + date);
} | [
"java.lang.String getArrivalTime();",
"public int getArrivalTime() {\n return arrivalTime;\n }",
"public int getArrivalTime()\n {\n return arrivalTime;\n }",
"long getReceiveTime();",
"double getClientTime();",
"java.lang.String getSendTime();",
"public double calculateGantryMoveTime(Slot p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The maximum angle that this vehicle will bank (Units: degree) | public float getMaxBankAngle() { return MaxBankAngle; } | [
"@DISPID(1611005964) //= 0x6006000c. The runtime will prefer the VTID if present\n @VTID(39)\n double angleMaxTolerance();",
"String getDegreesMax();",
"public double GetMaxRotationRate()\n\t{\n\t\treturn maxRotationRate;// [rad/sec at the wheel]\n\t}",
"private double getMaxDegrees ()\r\n{\r\n // return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new BucketRateLimiter, with numTokens = 0. | public BucketRateLimiter(TimerService service, int maxOutstandingRequests, int maxStoredTokens,
int tokenPeriodMs) {
this(service, maxOutstandingRequests, maxStoredTokens, 0, tokenPeriodMs);
} | [
"private void initializeTokenBucket() {\n final double burstSec = burstFrames / framesPerSec;\n final Bandwidth limit = Bandwidth.simple(burstFrames, Duration.ofMillis((long) (1000*burstSec)));\n tokenBucket = Bucket4j.builder().addLimit(limit).build();\n // Start with an empty bucket to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of behaviors of this type | public Set<TileBehavior> getBehaviors() {
return behaviors;
} | [
"public Set<IBehavior<? extends IAgent>> getBehaviors();",
"public Set/*<String*/ getReferencedBehaviors()\r\n {\r\n HashSet behaviors = new HashSet();\r\n \r\n Iterator polyIt = getPolys().iterator();\r\n while (polyIt.hasNext())\r\n {\r\n SB_Polymorphism poly = (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send http request to remote address asynchronously, and not wait far response | CompletableFuture<Void> sendRequestOneWay(HttpRequest request); | [
"CompletableFuture<HttpResponse> sendRequest(HttpRequest request);",
"public void fetchAsyncURL(String aUrl) {\r\n try {\r\n HttpClient client = HttpClient.newHttpClient();\r\n HttpRequest request = HttpRequest.newBuilder()\r\n .uri(URI.create(aUrl))\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method handles adding classes, including the entering of text to the app's text fields as well as the selection of radio buttons. | public void clsAdd(View v)
{
//This code block checks which radio button is selected in the radio
//group
RadioGroup = (RadioGroup) findViewById(R.id.radioGroup1);
int selectedId = RadioGroup.getCheckedRadioButtonId();
boolean passFail = false;
if (selectedId == 0)
{
passFail = true;
}
//Get r... | [
"private void defineStyleClass() {\n btnCancel.getStyleClass().add(\"buttonsBottom\");\n btnCreateProfile.getStyleClass().add(\"buttonsBottom\");\n /*Common Style Class for the Labels and TextFields in the CENTER*/\n lblUsername.getStyleClass().add(\"labelsCenter\");\n lblPassword... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluate the insertion of the newItem inside of the parent. | public static SpInsertData evalInsertInside(SpItem newItem, SpItem parent) {
SpItem[] spItemA = {newItem};
return evalInsertInside(spItemA, parent);
} | [
"static SpInsertInfo doEvalInsertInside(SpItem newItem, SpItem parent) {\n if (parent == null) {\n return null;\n }\n\n // Is there a definition for this combination?\n String key = newItem.typeStr() + \",\" + parent.typeStr();\n InsertPolicy ip = _insertInside.get(key)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add one Lane to the list of upLanes of this Lane. | public void addUpLane(Lane lane) {
if (null == upLanes)
upLanes = new ArrayList<Lane>();
upLanes.add(lane);
} | [
"public void addDownLane(Lane lane) {\r\n\t\tif (null == downLanes)\r\n\t\t\tdownLanes = new ArrayList<Lane>();\r\n\t\tdownLanes.add(lane);\r\n\t}",
"org.landxml.schema.landXML11.LanesDocument.Lanes addNewLanes();",
"private void addLaneToStack(Lane lane)\n {\n trackPane.getChildren().add(lane.getAsphalt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the request entity. | public ResteasyContextBuilder setRequestEntity(Object entity) {
this.requestEntity = entity;
return this;
} | [
"public void setEntity(Entity entity) {\r\n this.entity = entity;\r\n }",
"public void setRequestTypeEntity(RequestTypeEntity requestTypeEntity) {\n this.requestTypeEntity = requestTypeEntity;\n }",
"public void setRequest(Request request) {\r\n _request = request;\r\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Complete the twoStrings function below. | static String twoStrings(String s1, String s2) {
Set<Character> charSet = new HashSet<>();
boolean status = false;
for(int i = 0; i < s1.length(); i++)
charSet.add(s1.charAt(i));
for(int i = 0; i < s2.length(); i++) {
if(charSet.contains(s2.charA... | [
"static String twoStrings(String s1, String s2) {\r\n \t\r\n \t//Making sure s1 always has the minimum length\r\n \tMap<Character,Integer> hashMap = new HashMap<>();\r\n \tString result = \"NO\";\r\n \tfor(int i=0;i<s1.length();i++)\r\n \t\thashMap.put(s1.charAt(i), i);\r\n \tfor(int j=0;j<s2.l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if interval (start2,end2) is contained inside (start1,end1) i.e start1 < C < end1 start2 < C < end2 | public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {
return (start1 < end2 && start2 < end1);
} | [
"public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}",
"private boolean intersects(int from1, int to1, int from2, int to2) {\n\t\treturn from1 <= from2 && to1 >= from2 // (.[..)..] or (.[...]..)\n\t\t\t\t|| from1 >= fro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a char to its corresponding TagContentAction for the tag content parser state machine | private static TagContentActions parseCharIntoTagContentAction(char c) {
// By default we mark it as a valid value character
TagContentActions res = TagContentActions.Char;
if (c == '<') {
res = TagContentActions.TagInit;
} else if (c == '!') {
res = TagContentAc... | [
"private static TagHeaderActions parseCharIntoTagHeaderAction(char c) {\n // By default we mark it as a valid value character\n TagHeaderActions res = TagHeaderActions.NameChar;\n\n // Checking if it's some form of whitespace\n if (Character.isSpace(c)) {\n res = TagHeaderActi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/findHighestEarningEmployee: Finds the highest wage employee by looping once through the staffList and comparing the wage of each Labourer. | public Staff findHighestEarningLabour() {
Staff highest = new Labourer(null,0,null,0,0);
for (int i = 0; i < staffList.length; i++) {
if (staffList[i] instanceof Labourer) {
if (((Labourer)staffList[i]).getWage() >= ((Labourer)highest).getWage()){
highest = staffList[i];
}
... | [
"public static int getHighestWorker(int numberOfWorkers)\r\n { int highestPaid = 0;\r\n for (int x = 0; x < numberOfWorkers; x++) // loop through all workers\r\n { if (Worker[x].getSalary() > Worker[highestPaid].getSalary())\r\n highestPaid = x;\r\n } // if any worker's salary is great... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to inject the generated invariants into the bounded analysis CPAs to improve their performance. Currently, this is only supported for the InvariantsCPA. If the InvariantsCPA is not activated for both the bounded analysis as well as the invariant generation, this function does nothing. | private void injectInvariants(UnmodifiableReachedSet pReachedSet, CFANode pLocation) {
InvariantsCPA invariantsCPA = CPAs.retrieveCPA(cpa, InvariantsCPA.class);
if (invariantsCPA == null) {
return;
}
InvariantsState invariant = null;
for (AbstractState locState : AbstractStates.fil... | [
"public final boolean check() throws CPAException, InterruptedException {\n // Early return if there is a trivial result for the inductive approach\n if (isTrivial()) {\n return getTrivialResult();\n }\n\n // Early return if the invariant generation proved the program correct\n if (b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of validateContents method, of class DataItem. | @Test
public void testValidateContents() {
System.out.println("validateContents");
DataItem instance = new DataItemImpl();
boolean expResult = false;
boolean result = instance.validateContents();
assertEquals(expResult, result);
// TODO review the generated test code ... | [
"@Test(priority = 5)\n\tpublic void validateContents() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the content of the product\");\n\t\tHeroImageProductPageFlow.clickHeroImage(locator);\n\t\theroImg.validateDescriptionConte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds a Uri for querying the weather for a location. This looks like: content://com.jlt.sunshine.app/weather/[locationSetting] begin method buildWeatherForLocationUri | public static Uri buildWeatherForLocationUri( String locationSetting ) {
return CONTENT_URI.buildUpon()
.appendPath( locationSetting )
.build();
} | [
"public static Uri buildWeatherUri( long id ) {\n return ContentUris.withAppendedId( CONTENT_URI, id );\n }",
"public static Uri buildWeatherForLocationWithStartDateUri(\n String locationSetting, long startDate ) {\n\n // 0. normalize the start date\n // 1. b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the entity currently perched on the left shoulder or null if no entity. The returned entity will not be spawned within the world, so most operations are invalid unless the entity is first spawned in. | public Entity getShoulderEntityLeft ( ) {
return extract ( handle -> handle.getShoulderEntityLeft ( ) );
} | [
"public GameObject getLeft() {\n\t\tif (this.getColumn() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn this.level.objectAtIndexes(this.row, this.column - 1);\n\t}",
"public Tile getLeftTile() {\n return tileSet.getLeftTile(this);\n }",
"public WrapperEntity getLeashedEntity(){\r\n\t\tfor(EntityLiving... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies the deliverer that the config has been changed. | public void configChanged(Config newConfig) {
config = newConfig;
} | [
"protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.con... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifiers declared in rule constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19 | private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19() {
return identifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19;
} | [
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20() {\r\n return identifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene la contraseña del fichero PKCS12 que contiene el certificado SSL cliente para las conexiones HTTPS. | public String getSslPkcs12FilePassword() {
return this.sslPkcs12FilePassword;
} | [
"String getCertificatePassword();",
"public static void initSSL()\n {\n System.setProperty(\"javax.net.ssl.trustStore\",\"res/ssl/mtgox.jks\");\n System.setProperty(\"javax.net.ssl.trustStorePassword\",\"h4rdc0r_\"); //I encripted the jks file using this pwd\n //System.setProperty(\"javax.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword Gets encoding Inits other X500Principal with the encoding gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs | public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_CANONICAL()
throws Exception {
String dn = "OID.2.16.4.3=B + CN=A";
X500Principal principal = new X500Principal(dn);
byte[] enc = principal.getEncoded();
X500Principal principal2 = new X500Principal(enc);
... | [
"public void testNameGetEncoding_01() throws Exception {\n byte[] mess = { 0x30, 0x18, 0x31, 0x0A, 0x30, 0x08, 0x06, 0x03, 0x55,\n 0x04, 0x03, 0x13, 0x01, 0x42, 0x31, 0x0A, 0x30, 0x08, 0x06,\n 0x03, 0x55, 0x04, 0x03, 0x13, 0x01, 0x41 };\n String dn = \"CN=A,CN=B\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |