query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
adds the selected autorack's positions to the current AnimalTrack and adjust the controls to reflect this change
@FXML private void handleAddAutoTrack() { if (tracksBox.getItems().size() != 0) { AnimalTrack autoTrack = tracksBox.getValue(); for (TimePoint position: autoTrack.getPositions()) { if (position.getFrameNum() <= project.getVideo().getEndFrameNum()) { currentTrack.add(position); } } usedTracks...
[ "@FXML\n\tprivate void addTrack(MouseEvent event) {\n\t\tif (pickUnassignedAnimalTrackBtn.getValue() != null) {\n\t\t\tString chosenValueByUser = new String(pickUnassignedAnimalTrackBtn.getValue());\n\t\t\tString nameOfCurrentTrack = (\"\");\n\t\t\tAnimalTrack chosenTrack = null;\n\t\t\tdouble scalingRatio = getRat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_btnThongTin_XoaMouseClicked TODO add your handling code here:
private void btnThongTin_XoaMouseClicked(java.awt.event.MouseEvent evt) { int reply = JOptionPane.showConfirmDialog(null, "Bạn muốn xóa không?", "xóa", JOptionPane.YES_NO_OPTION); if (reply == JOptionPane.YES_OPTION) { actionxoathongtin(); } }
[ "public void mouseClicked(MouseEvent e) {\n\n }", "public void mouseClicked(MouseEvent event)\n {\n }", "void mouseClicked(Button b);", "public void mouseClicked(int button);", "public void mouseClicked(MouseEvent event) {\r\n }", "public void mouseClicked(MouseEvent...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Getter & Setter
public Long getId() { return this.id; }
[ "@Override\n }", "@Override\n\tpublic void setValue() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}", "public String getValue() {\n return _value;\n}", "@Override\n \tpublic String get() {\n \t\treturn null;\n \t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles pushing the ModulePack via ADB to the Adb Device (using Jadb)
private List<Exception> adbPush(File file, VirtualAdbDeviceModel[] vAdbDevs) { List<Exception> exceptions = new ArrayList<>(); for (VirtualAdbDeviceModel vAdbDev : vAdbDevs) { if (vAdbDev.isConnected()) { JadbDevice jadbDevice = vAdbDev.getDevice(); String pat...
[ "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = (byte) this.missionSwitch.value();\n }", "void storeYangModule(String yang, BundleInfo bundleInfo) throws MDSALStoreException;", "public void doPack() {\n this._sendData = new byte[6];\n this._sendData[0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fonction de notifications aux observeurs...
public void notifObservers() { this.setChanged(); this.notifyObservers(); }
[ "@Override\n public void notifierObserveurs() {\n observeur.notify();\n }", "public void notifyObservs();", "public abstract void notifyListeningObservers();", "public void addNotify() {}", "private void notifierObserver(){\n\t\tsetChanged(); //annonce a Observable qu'il y un changement\n\t\tnotifyObse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Legt den Wert der idEigenschaft fest.
public void setId(int value) { this.id = value; }
[ "public int getid()\n{\nreturn eid;\n}", "@Override\n public Long getId() {\n \treturn super.getId();\n }", "public Long getEeId() {\n\t\treturn eeId;\n\t}", "@Override\n public long getId() {\n return id_;\n }", "public int id() {return this.id;}", "Declaracao getId();", "@Ove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find a path through the graph from the given starting node ID and ending at the given end node ID. This can be any valid path there are no constraints on which path is found.
public static List<Long> getDetailedPath(long startNodeID, long endNodeID) { ArrayList<Long> notFound = new ArrayList<Long>(); if (!nodes.containsKey(startNodeID) || !nodes.containsKey(endNodeID)) { return notFound; } DijkstraSP dij = new DijkstraSP(graph, nodeIDs.indexOf(startNodeID)); Iterable<DirectedE...
[ "public static Path findPath(Coord start, Coord end) {\n\t\tboolean pathFound = false;\n\t\tint attempts = 0;\n\t\tPath p = null;\n\t\tNode c = null;\n\t\tif (!open.isEmpty())\n\t\t\topen.clear();\n\t\tif (!closed.isEmpty())\n\t\t\tclosed.clear();\n\n\t\topen.add(new Node(start, end, null, 0));\n\n\t\twhile (!pathF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make a file in the given directory.
public static File[] getFilesInDirectory() { return new File(NOTES_PATH).listFiles(); }
[ "private void mkDirectory() {\n\t\tFile f = new File(directory);\n\t\tif (!f.exists()) {\n\t\t\tf.mkdir();\n\t\t}\n\t\tcreateFile();\n\t}", "public void makeFile() {\n File textFile = new File(filepath);\n Path path = Paths.get(\"data\");\n try {\n if (!Files.isDirectory(path)) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
implement your add method here
public boolean add(int value) { Node n = new Node(value); lock.lock(); Node prev = head; Node curr = head.next; while(curr != null) { if(curr.value == value) { lock.unlock(); return false; } if(curr.value > va...
[ "public void add(){\n \n }", "@Override\r\n\tvoid add() {\n\t\t\r\n\t}", "@Override\n\tvoid add() {\n\n\t}", "public void add(){\n }", "public void add(){\n }", "public void addNew() {\n\t\t\n\t}", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"添加功能\");\n\t}", "@Override\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public IDataSetting getSetting() throws YssException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / / / / / / / / / / / / / /
public static synchronized void setDefault(Authenticator paramAuthenticator) { /* 123 */ SecurityManager securityManager = System.getSecurityManager(); /* 124 */ if (securityManager != null) { /* 125 */ NetPermission netPermission = new NetPermission("setDefaultAuthenticator"); /* */ /* 127 */ ...
[ "private static void EX5() {\n\t\t\r\n\t}", "protected int snapBits(){return 9;}", "public int getSize() { return 3+length;}", "int getSize() {\r\n return 8;\r\n }", "protected void method_5557() {}", "private void calculatePaths() {\n\n\n }", "void mo8166KB();", "@Override\nint nooftyre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table registerinfo
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
[ "public interface UserInfoMapperBase {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table user\n *\n * @param example UserInfoExample\n *\n * @return the value of int\n *\n * @mbggenerated\n */\n int countByExample(Us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for registeredTo called 1 times. Type: DEFAULT. Build precedence: 3.
private com.google.gwt.user.client.ui.TextBox get_registeredTo() { return build_registeredTo(); }
[ "TypeUse getTo();", "public void registered() {}", "@Override\n public Object get() {\n return name == null\n ? locator.getService(type)\n : locator.getService(type, name);\n }", "public int getReceiver() {\n return to;\n }", "@Override\r\n\tpublic boolea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the FormEditor.
protected void initComponents() { outputScrollPane = new javax.swing.JScrollPane(); outputArea = new javax.swing.JTextArea(); getContentPane().setLayout(new java.awt.GridBagLayout()); java.awt.GridBagConstraints gridBagConstraints1; setTitle("Welcome to the Poker Table"); outputScrollPane.setPreferredSize(...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public FormVerTurma() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Busca de persona interna
public void habilitarAutoAsesorInterno() { limpiarAsesorInterno(); banderasAsesorInternoFalsas(); renderActualizarPersonaInternaButton = Boolean.FALSE; renderNuevaPersonaInternaButton = Boolean.FALSE; presionoActualizarInterno = Boolean.FALSE; presionoNuevoInterno = Boole...
[ "void mostrar() {\n \n System.out.print(\"Persona Encargada: \"+persona);\n }", "public Persona (String n){\n this.nombre = n;\n }", "Persona obtenerPersona(String dni);", "public void setNom_Persona(String Nom_Persona) \r\n {\r\n this.Nom_Persona = Nom_Persona;\r\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
====================================================================================================================// BLACK BOX TESTING BELOW // ====================================================================================================================// GetPieceMetadata
@Transactional @Rollback @Test @DisplayName("Get Piece Metadata: input [designator for a file in DB] expect [positive integer]") public void test_BlackBox_GetPieceMetadata_IfPresentInDatabase_ThenAccurateInfo() throws Exception { setupFileInDatabase(); //make a request DisplayG...
[ "public int getMetadata()\r\n/* 72: */ {\r\n/* 73: 70 */ return this.meta % 16;\r\n/* 74: */ }", "String getMetaData();", "void calculateMetadata();", "protected abstract HashMap<String, String> getMetadata();", "@Test\n public void testMetadata() {\n\n assertEquals(\"no\", actor....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of rows matching the dynamic query.
public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); }
[ "public int getCountBySQLQuery(String query);", "protected int countRowsOfQuery( String aQuery ) {\n\n String lQuery = aQuery.replaceAll( \".*from\", \"Select Count(*) from\" ); // all text before from\n PreparedStatement lStatement;\n ResultSet lResultSet = null;\n int lRtn = 0;\n try {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleBlockSpec" $ANTLR start "entryRuleSyntax" ../dk.sdu.mmmi.sgl.ui/srcgen/dk/sdu/mmmi/sgl/ui/contentassist/antlr/internal/InternalSpreadsheetGrammarLanguage.g:340:1: entryRuleSyntax : ruleSyntax EOF ;
public final void entryRuleSyntax() throws RecognitionException { try { // ../dk.sdu.mmmi.sgl.ui/src-gen/dk/sdu/mmmi/sgl/ui/contentassist/antlr/internal/InternalSpreadsheetGrammarLanguage.g:341:1: ( ruleSyntax EOF ) // ../dk.sdu.mmmi.sgl.ui/src-gen/dk/sdu/mmmi/sgl/ui/contentassist/antlr/...
[ "public final void entryRuleRule() throws RecognitionException {\n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:89:1: ( ruleRule EOF )\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string cdn_address = 3;
com.google.protobuf.ByteString getCdnAddressBytes();
[ "Sdn createSdn();", "private String buildProvisioningAddress() {\n String mnc = String.format(Locale.US, \"%03d\", mRcsSettings.getMobileNetworkCode());\n String mcc = String.format(Locale.US, \"%03d\", mRcsSettings.getMobileCountryCode());\n return \"config.rcs.mnc\" + mnc + \".mcc\" + mcc +...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if at least one field is edited.
public boolean isAnyFieldEdited() { return CollectionUtil.isAnyNonNull(category, desc, date, amt, tags); }
[ "public boolean isAnyFieldEdited() {\n boolean isAtLeastOneFieldEdited = CollectionUtil.isAnyNonNull(name, email, telegram, tags);\n return isAtLeastOneFieldEdited || isTelegramDeleted;\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name, ph...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The location of the trust store file. The option is a: java.lang.String type. Group: security
default KafkaComponentBuilder sslTruststoreLocation( java.lang.String sslTruststoreLocation) { doSetProperty("sslTruststoreLocation", sslTruststoreLocation); return this; }
[ "@Override\n public void setTrustStoreFilename(String trustStoreFilename) {\n this.trustStoreFilename = trustStoreFilename;\n }", "private static KeyStore loadTruststore(){\n\n KeyStore truststore = null;\n try\n {\n CertificateFactory cFactory = CertificateFactory.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table reputation_dic
int insert(ReputationDic record);
[ "public HashMap<Integer,String> ListaCarregarProfessores(){\n HashMap<Integer,String> professores= new HashMap<>();\n\n try{\n MySQLConnector con= new MySQLConnector();\n con.createConnection();\n String getProfessores=\"SELECT id,nome,apelido FROM utili...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column CULSITE.M_CARD_APP_INFO.MCAI_TM_TIME
public String getMcaiTmTime() { return mcaiTmTime; }
[ "public String getTimeType() {\r\n return \"TIME\";\r\n }", "public String get_time() {\n return _time;\n }", "public String getCurrentSqlTime() {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:MM\", Locale.US);\n Date date = new Date();\n String currentTime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls application invite widget
public void performAppInvite(Activity activity, HashMap<String, String> args) { performAppSuggestInvite(activity, OkAppInviteActivity.class, args, Shared.OK_INVITING_REQUEST_CODE); }
[ "public void inviteFriends(){\n String appLinkUrl, previewImageUrl;\n\n appLinkUrl = \"https://fb.me/1480461032002294\";\n previewImageUrl = \"https://i.imgur.com/iVSV7z0.png\";\n\n if (AppInviteDialog.canShow()) {\n AppInviteContent content = new AppInviteContent.Builder()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Identifies the user specified command and stores it to the appropriate dictionary of commands. Two commands are considered equal if they have equal trigger symbols and in that case newly inserted command overwrites the old one.
@Override public LSystemBuilder registerCommand(char symbol, String action) { Command command = identifyCommand(action); commands.put(symbol, command); return this; }
[ "public void addCommand(String command)\n {\n \tcommandStack.push(command);\n }", "void setCommands(HashMap<String, CommandBase> commands);", "private void registerCommand( RemoteCommand command) {\n\n\t// Put this command in the map of the registered commands.\n\t_registeredCommands.put( command.getNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts an OR containing an AND to an AND
void distributeOr() { if (exprType != Expression.OR) { return; } if (eArg.exprType == Expression.AND) { exprType = Expression.AND; Expression temp = new Expression(Expression.OR, eArg.eArg2, eArg2); eArg.exprType = Expression.OR; eA...
[ "private boolean isAndOr(String str){\n if (str.toLowerCase().equals(\"and\") || str.toLowerCase().equals(\"or\")){\n return true;\n }\n return false;\n }", "public final RuleGrammarParser.expr_and_return expr_and() throws RecognitionException {\n RuleGrammarParser.expr_a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add a parameter to the list
public void add(AbstractParam param) { _paramList.add(param); }
[ "public void addParameter (ParameterInfo parameter) {\n parameters.add (parameter);\n }", "Components addParameter(String key, Parameter parameter);", "public void addParam(Pro param)\r\n\t{\r\n\t\tthis.params.add(param);\r\n\t}", "void addParam(Object arg);", "public ParameterList addParameter(Paramete...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a linked grid of the specified size, linking each node to each other.
public LinkedGrid(int rows, int cols) { super(rows, cols); linkNodes(); }
[ "public static ArrayList<Node> generateNodesGrid(int gridsize){\n ArrayList<Node> nodes = new ArrayList<Node>();\n for(int r=0;r<gridsize;r++){\n for(int c=0;c<gridsize;c++){\n Node nd = new Node();\n nd.setNode_id(r*gridsize + c);\n nd.setValue(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads data into the game, reset first is optional
public static void loadGameData(String GameData, boolean resetGameFirst) { // remove first space if theres one if (GameData.startsWith(" ")){ GameData = GameData.substring(1); } // Feedback.setText("new user-"+GameData); // MyApplication.Feedback.setTitle("loading game 2.5"); if ((GameData.compareTo("n...
[ "private static void resetData(){\n Player.setHealth(5);\n Player.setCurrentRoom(Rooms.CapsuleRoom);\n Player.setInventory(new ArrayList<String>());\n Player.setPreviousRoom(null);\n Player.setCurrentWeapon(\"Bad Breath\");\n Player.setTempRoom(null);\n Oxygen.setOxy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column neuedu_product.is_hot
public Boolean getIsHot() { return isHot; }
[ "public List<Product> findHotProduct() {\n\t\treturn pm.findHotProduct();\r\n\t}", "public int getIshot() {\r\n return ishot;\r\n }", "public Integer getHotLevel() {\n return hotLevel;\n }", "public Byte getIsoldproduct() {\n return (Byte) get(18);\n }", "public void setnIfhot(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the capMan__Adjusted_Value_Per_Common__c value for this CapMan__Liquidation_Analytics__c.
public java.lang.Double getCapMan__Adjusted_Value_Per_Common__c() { return capMan__Adjusted_Value_Per_Common__c; }
[ "public double getc() {\n \n return c;\n }", "public double getC() {\r\n\t\treturn getFunction().getC(getTimeContext());\r\n\t}", "public Integer getcVal() {\n return cVal;\n }", "public Concentration getTotalConc() {\n return Concentration.total(viewMap().values());\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value of the scope property.
public void setScope(Object scope) { this.scope = scope; this.handleConfig("scope", scope); }
[ "private void setScope(final InternationalString value) {\n if (scope == null) {\n scope = value;\n } else {\n ImplementationHelper.propertyAlreadySet(AbstractReferenceSystem.class, \"setScope\", \"scope\");\n }\n }", "public void setScope(Scope scope) {\n this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column hunter_company.is_newer
public void setIsNewer(String isNewer) { this.isNewer = isNewer; }
[ "public Criteria andUpdateTimeGreaterThanColumn(YoungOrder.Column column) {\n addCriterion(new StringBuilder(\"update_time > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void setUpdateDatetime_GreaterThan(java.sql.Timestamp updateDatet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
REDISTRIBUTION CREATION Adds the product request.
@SuppressWarnings("unchecked") public String addProductRequest(ProductRequestBeanDto productRequestBeanDto, Model model,RedirectAttributes red, HttpSession session) { if(productRequestBeanDto != null) { //insert product in session Map<String,ProductRequestBeanDto> productRequestBeanDtoMap; if(se...
[ "@PUT\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n @Path(\"/Products/\")\n public ResponseRepresentation createProduct(@HeaderParam(\"Name\") String name, @HeaderParam(\"Description\") String description,\n \t\t@HeaderParam(\"Seller\") String sellerID){\n \tSystem.out.printl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The owner of this spot is either black or white
public Spot(int x, int y){ this.x = x; this.y = y; this.occupied = false; double pixel_of_x_0 = pixel_per_spot/2.0; double pixel_of_y_0 = pixel_per_spot/2.0; this.pixel_x = pixel_of_x_0 + (x * pixel_per_spot); this.pixel_y = pixel_of_...
[ "@Override\n public boolean isColour(){\n return colour;\n }", "private Color checkCurrSquareColor(Square currSquare){\n if(currSquare.xCoord % 2 == 0 && currSquare.yCoord % 2 == 0){\n return Color.PINK;\n }else{\n return Color.white;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to show this panel.
public static void main(final String[] args) { Book book = new Book("Livro A"); ListController controller = new ListController(); controller.add(book); ItemsOptionsController optController = new ItemsOptionsController(controller); BooksTableEditor editor = new BooksTableEditor(...
[ "public void showPanel() {\n\t\tbasePanel.setVisible(true);\n\t}", "public showPanel() {\n\t\t\tthis.setBackground(Color.white);\n\t\t\tthis.setPreferredSize(new Dimension(100,100));\n\t\t\tthis.setBorder(BorderFactory.createLineBorder(Color.black));\n\t\t}", "public void show() {\n\t\tCompositeUtils.hideOrShow...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creating file uri to store image folder
public static Uri getUriFileFromCamera() { return Uri.fromFile(getFileFromCameraTake()); }
[ "private Uri createImageFile() throws IOException {\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\tfilenameOnly = JPEG_FILE_PREFIX + utils.getIMEI() +\"_\"+ timeStamp + JPEG_FILE_SUFFIX;\n\t\tfullPathFilename = ImageUtils.IMAGE_FILEPATH+filenameOnly;\n\t\tLog.d(\"Full Fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use case 4.10 test store that not exist on users map
@Test public void testWatchStoreHistoryStoreNotExist() { setUpBoughtProductAdminState(); assertNull(logicManager.watchStorePurchasesHistory(data.getId(Data.ADMIN), data.getSubscribe(Data.VALID).getName()).getValue()); tearDownOpenStore(); }
[ "@Test\n public void userDoesNotExists() throws Exception {\n assertFalse(UserManager.userExists(\"alexa\"));\n\n }", "@Test\n public void addUserToStorageFalse() {\n UserStorage userStorage = new UserStorage();\n User one = new User(1, 100);\n User two = new User(1, 100);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Serializes this HealthInstitution to a ByteBuffer.
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException { return ENCODER.encode(this); }
[ "@Override\n public byte[] serialize() {\n ByteBuffer byteBuffer = ByteBuffer.allocate(2);\n byteBuffer.putShort(value);\n return byteBuffer.array();\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return getEncoder().encode(this);\n }", "public byt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When update button pressed, the difference request save and send to the server. Depending on the server response, shows alert with message if the new difference was valid or not.
@FXML void updateClick(ActionEvent event) { if(!isValidDifference()) return; else { Employee emp = (Employee) guiControl.getUser(); ParameterUpdate parupdate=new ParameterUpdate(EntityConstants.ParkParameter.DIFFERENCE,Integer.parseInt(newvalue.getText()),emp.getParkName()); guiControl.sendToS...
[ "private void postConfirmUpdate(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String updateName = request.getParameter(\"name\");\n String updatePhone = request.getParameter(\"phone\");\n if (updateName == null || updateName.length() == 0 || ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute the specified command line process.
public static ProcessResult run(ProcessBuilder processBuilder) { return run(processBuilder, Charset.defaultCharset(), (InputStream)null); }
[ "void execute(IveProcess process);", "public void execute(String commandline){\n this.triggerEvent(CLIAction.Execute, commandline);\n }", "int execute(OverthereProcessOutputHandler handler, CmdLine commandLine);", "void invoke(String commandLine);", "public void exec() throws ExecuteException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
manejar el evento change (Change Selection) del Spinner de las categorias
private void asignarEventos() { spCategorias.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { /** * Metodo que captura el evento de seleccion de un spinner * @param parent Objeto padre donde se encuentra el item que seleccionamos * @param v...
[ "public void onChange$cmbCategorias() {\n\t\t// se crea el catalogo y se llama\n\t\tComboitem li = cmbCategorias.getSelectedItem();\n\t\tCategoriaCompetencia c1 = (CategoriaCompetencia) li.getValue();\n\t\tequipos = servicioEquipo.listarEquipoPorCategoria(c1.getCategoria()\n\t\t\t\t.getCodigoCategoria());\n\t\tbind...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method which the call the server method using JSONRPC
@Override public Object sendRequest(String request) throws JsonRpcException{ String response; Socket socket; try{ socket = new Socket(url,port); logger.debug("Connecting to Server..."); PrintWriter out = new PrintWriter(socket.getOutputStream(),true); logger.debug("Writing Contents to Stream"); ...
[ "private String executeRpcMethod(JSONObject jsonObj) {\n String Response = \"\";\n try {\n\n ////Only for development, just to avoid mess with https\n\n\n CloseableHttpClient httpClient = HttpClientBuilder.create().build();\n HttpPost request = new HttpPost(Constan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .sync_pb.MetaInfo meta_info = 6;
public Builder addMetaInfo( int index, org.chromium.components.sync.protocol.MetaInfo value) { copyOnWrite(); instance.addMetaInfo(index, value); return this; }
[ "com.google.protobuf.ByteString\n getMetaBytes();", "MetaInformationOrBuilder getMetaInformationOrBuilder();", "net.studioblueplanet.tomtomwatch.RouteProto.MetadataOrBuilder getMetadataOrBuilder();", "public com.google.protobuf.ByteString\n getMetaBytes() {\n java.lang.Object ref = meta_;\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CLIENT.CUSTOMERCLASSID
public void setCustomerclassid(String customerclassid) { this.customerclassid = customerclassid == null ? null : customerclassid.trim(); }
[ "public void setClassID(String classID) {this.classID = classID;}", "public void setClassId(Integer classId);", "@Override\n public void setCustomerID(long ID) {\n\n }", "public void setId_customer(int id_customer)\r\n {\r\n this.id_customer = id_customer;\r\n }", "@Override\n public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table TS_ONLINE_USER_18911
public String getOrderByClause() { return orderByClause; }
[ "@Insert({\n \"insert into sys_user (create_date, update_date, \",\n \"account, password, \",\n \"name, email, phone, \",\n \"inst_id, inst_name, \",\n \"mobile, user_type, \",\n \"login_ip, login_date, \",\n \"login_flag, create_by, \",\n \"update_by, remarks...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the storage pool of a specific volume
@GET @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Path("/{id}/storage-pool") @CheckPermission(roles = { Role.SYSTEM_MONITOR, Role.SYSTEM_ADMIN }) public RelatedStoragePool getStoragePool(@PathParam("id") URI id) { ArgValidator.checkFieldUriType(id, Volume.class, "id"); ...
[ "public StoragePool findRemoteStoragePool(final Predicate<StoragePool> filter) {\n return Iterables.getFirst(filter(listRemoteStoragePools(), filter), null);\n }", "public List getSizeForPool(String poolName);", "@Nullable\n ISubpocket getBoundStorage();", "public abstract IDataPool getDataPool(Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insertar tabla a SQL Server
protected boolean insertarTablaSqlServer(String _nomTabla){ try{ String[] nomCols; String[][] valReg; int[] tipoCols; //Sacamos el nombre de las columnas de la DB nomCols = FuncionesDB.sacarNomCols(this.dbSQLite , _nomTabla); //Comprobado que funciona ...
[ "String insert(String table, List<String> columns);", "void insertStatement() {\n _input.next(\"insert\");\n _input.next(\"into\");\n Table table = tableName();\n _input.next(\"values\");\n int cols = table.columns();\n\n String[] values = new String[cols];\n\n int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for checking the type of this object
public int getType() { return type; }
[ "public boolean getType() {\n\t\treturn this.type;\r\n\t}", "public boolean isType() {\n return m_isType;\n }", "@NotNull\n public Type getType() {\n return myType;\n }", "public Object getType() {\n return type;\n }", "private Type getType(){\n\n return this.type;\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field setString is set (has been assigned a value) and false otherwise
public boolean isSetSetString() { return this.setString != null; }
[ "public boolean isSetString_field() {\n return this.string_field != null;\n }", "public boolean isSetTerse_string_field() {\n return this.terse_string_field != null;\n }", "public boolean isSetStr_values() {\n return this.str_values != null;\n }", "public boolean hasStringValue() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
HTTP GET request for geo codes
public String sendGeo(String message) throws Exception { //runs the geo request try{ URL obj = new URL(base +"Locations?q="+message+"&key="+key); String response = Request(obj); return response; } catch (Exception ex){ ...
[ "private static void getPCode() {\n printSeparator();\n System.out.println(\"API: GET \" + baseAddress + \"/api/v1/Location/PCode\");\n System.out.println();\n\n try\n {\n AfcRestClient client = new AfcRestClient(baseAddress, userName, password, clientId, clientProfileI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete information for all connections..
@Deprecated public static void deleteAllConnections() { ConnectionManager.deleteAllConnections(); }
[ "void removeConnections() {\n getUserObject().removeConnections();\n }", "public void removeConnection();", "void closeConnections();", "public void resetConnections();", "@Override\n\tpublic void clear() {\n\t\tfor (Connection con : this) {\n\t\t\tcon.getBeginPort().getConnections().remove(con);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional fixed32 rtime32_subscribed = 2 [default = 0]; optional fixed32 rtime32_subscribed = 2 [default = 0];
boolean hasRtime32Subscribed();
[ "public boolean hasRtime32Subscribed() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getRtimeSubscribed() {\n return rtimeSubscribed_;\n }", "long getSubscribeTime();", "boolean hasRtime32LastUpdated();", "private void updateMediaItemLiveConfiguration(lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public classRoom[] dispalyAllRooms() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Evaluation'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseEvaluation(Evaluation object) { return null; }
[ "protected abstract T evaluate();", "public T caseEvaluate(Evaluate object) {\n\t\treturn null;\n\t}", "public T caseEvaluationAttribute(EvaluationAttribute object) {\n\t\treturn null;\n\t}", "public <ExpressionType> T caseExpressionEvaluation(final ExpressionEvaluation<ExpressionType> object)\r\n\t{\r\n\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void widgetDefaultSelected(SelectionEvent arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public void mo1366d(IGamesCallbacks iGamesCallbacks, String str, String str2) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.games.internal.IGamesServ...
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test passing booleans as arguments to a native method
public void testPassingBooleans() { final boolean[] literals = {true, false, false, true}; final boolean[] a = new boolean[16]; // test selection from a list of object literals where the literals are all the same for(boolean literal : literals) { for(int i = 0; i < 16; i++) ...
[ "@Test\n public void testCheckSetParametersPrimitive() {\n Assert.assertEquals(this.aroundInvokeAnnotationBean.testBoolean(false), true);\n }", "@Test(timeout = TEST_TIMEOUT)\n public void testBoolean() throws Exception {\n testObject(new Boolean(true));\n testObject(new Boolean(false));\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If cleared is set, the set must be cleared before added is processed. bool cleared = 1;
public boolean getCleared() { return cleared_; }
[ "@Override\n\tpublic void clear() {\n\t\tmySet.clear();\n\t}", "public void clear() {\n this.set = new ArrayList<>();\n }", "public void clear() {\n\t\tthis.getSet().clear();\n\t}", "public void removeAll() {\n\t\tset.clear();\n\t}", "public synchronized boolean isEmpty () {\n return set.is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public long getExperimentSeriesDuration() { return 0; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the base name of the assets representing this item.
public String getImageName(){ return this.imageName; }
[ "java.lang.String getFromAssetName();", "@Schema(description = \"Name of the asset\")\n public String getName() {\n return name;\n }", "@AutoEscape\n\tpublic String getAssetTagName();", "protected String getResourceBaseName()\r\n\t{\r\n\t\treturn this.getClass().getCanonicalName();\r\n\t}", "public org...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scan forward from the given start position. Stop at the first char in the err string (in which case 1 is returned), or the first char in the stop string (in which case the index of the preceding char is returned), or the end of the input string (in which case the length of the input string is returned). May return the ...
private int scan(int start, int end, String err, String stop) { int p = start; while (p < end) { char c = charAt(p); if (err.indexOf(c) >= 0) return -1; if (stop.indexOf(c) >= 0) break; p++; ...
[ "public int findString (String str, int start)\n {\n int psn = line.indexOf(str, start);\n while (psn >= 0) {\n // find the string of length 1 before and after the instance found\n String before = \"\";\n String after = \"\";\n if (psn > 0)\n before = line.substrin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks presence of items in keys
public boolean containsKey(K key) { }
[ "@SuppressWarnings(\"rawtypes\")\n boolean containsKeys(Collection keys);", "boolean checkForMandatoryParams(String... keys) {\n Set<String> mandatoryKeySet = new HashSet<>(Arrays.asList(keys));\n for (String key : mandatoryKeySet) { // for each mandatory key\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
[ "<T> T getMetaData(Class<T> type);", "public CodedMetadataType getCodedMetadataType();", "public interface TypeInfo {\n\n static final String SYMBOL_NAME = \"typeinfo\";\n\n /**\n * Gets name for the TypeInfo DataType Model\n * \n * @throws InvalidDataTypeException\n */\n String getName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
High endpoint of 95% confidence interval
public double confidenceHi() { return mean() + ((1.96 * stddev()) / Math.sqrt(expNum)); }
[ "public double confidenceHi() {\n\t\treturn (mean + ((1.96*Math.sqrt(std))/Math.sqrt(T)));\n\t}", "public double confidenceHigh() {\n double mean = mean();\n double stddev = stddev();\n return mean + (1.96 * stddev) / Math.sqrt(T);\n }", "public double confidenceHi(){\n\t\treturn mean() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
loops through tree to see if tree contains node or returns postion it should be
public AVLTreeNode get(AVLTreeNode node, int key) { if (node.isLeaf()) { //if root is a leaf then it should be here return node; } else { if (key == node.getKey()) { //found node return node; } else if (key < node.getKey()) { //checcks to s...
[ "public abstract boolean hasNode(Node n);", "private boolean isNodeInTree(String id) {\n return getNodeById(id) != null;\n }", "@Override\n\tpublic boolean itemExists() {\n\t\t// TODO \n\t\treturn tree.count > 0 && (this.currentNode > 0 && this.currentNode <= tree.count);\n\t}", "private boolean contains(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
added these and the get/add method. MOVIE
public Movie(String theTitle, String theType, String rate, String showing, String showLength, String sypnosis, String director, String casts,double score, int ticketsale,double score_counter) { this.title = theTitle; this.type = theType; this.rating = rate; this.show = showing; this.runtime = showLen...
[ "private JPanel getMovieFilesPanel() {\n\t\tmovieFilesPanel = new MovieFilesPanel();\n\n\t\tif (selectedMovieInfo.getMovie() != null) {\n\t\t\tmovieFilesPanel.setVideoLocation(selectedMovieInfo.getMovie()\n\t\t\t\t\t.getLocation());\n\t\t}\n\t\tmovieFilesPanel.setCoverLocation(selectedMovieInfo.getCover());\n\t\tmo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of direct children IDs for a given VolumeSystem
List<Long> getVolumeSystemChildrenIds(VolumeSystem vs) throws TskCoreException { Collection<ObjectInfo> childInfos = getChildrenInfo(vs); List<Long> children = new ArrayList<Long>(); for (ObjectInfo info : childInfos) { if (info.type == ObjectType.VOL || info.type == ObjectType.ABSTRACTFILE) { children....
[ "List<Long> getVolumeSystemChildrenIds(VolumeSystem vs) throws TskCoreException {\n\t\tCollection<ObjectInfo> childInfos = getChildrenInfo(vs);\n\t\tList<Long> children = new ArrayList<Long>();\n\t\tfor (ObjectInfo info : childInfos) {\n\t\t\tif (info.type == ObjectType.VOL || info.type == ObjectType.ABSTRACTFILE |...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reverse GeoCode current location
private void getRandomAddress(GeoPoint currentLocation) { randomizePoints(currentLocation.getLatitudeE6() / 1E6, currentLocation.getLongitudeE6() / 1E6, true); }
[ "private String geocodeReverse(Location loc) throws IOException{\r\n\t\tdouble lat = loc.getLatitude();\r\n\t\tdouble lon = loc.getLongitude();\r\n\t\tList<Address> address = new Geocoder(this, Locale.getDefault())\r\n\t\t\t.getFromLocation(lat, lon, 1);\r\n\t\treturn address.get(0).getAddressLine(0);\r\n\t}", "P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optional. Gets or sets Provisioning state of the PublicIP resource Updating/Deleting/Failed
public void setProvisioningState(final String provisioningStateValue) { this.provisioningState = provisioningStateValue; }
[ "public PrivateCloudProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public CloudServicesNetworkProvisioningState provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "interface WithProvisionin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the secondaryActivitycode2 value for this BusinessDossierV2.
public java.lang.String getSecondaryActivitycode2() { return secondaryActivitycode2; }
[ "public String getId2() {\r\n return (String) getAttributeInternal(ID2);\r\n }", "public void setSecondaryCode(String secondaryCode) {\n this.secondaryCode = secondaryCode;\n }", "private static String checkSecondGraphActivity(String activity2) {\n\t\ttry {\n\t\t\tExecutionResult getAllRelat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a sorted, space separated, list of gene names
String geneNames() { StringBuilder sb = new StringBuilder(); ArrayList<String> names = new ArrayList<String>(); // Add all gene names, just to sort them for (Gene g : genes) names.add(g.getGeneName()); Collections.sort(names); // Append all gene names int count = 1; for (String gn : names)...
[ "public String[] getGeneNames() {\n return (String[]) geneNames.toArray(new String[0]);\n }", "public String getGenres() {\n return getSortedList(genreList);\n }", "String getNamelist();", "java.util.List<java.lang.String>\n getEdgeNameOrderedList();", "public static List<String> re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method sets record for current user instance
public void setRecord(Record record) { this.record = record; }
[ "public void setCurrentuser(User currentuser);", "void setAssignedUser(User value);", "public void setUser(UserType param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the actual value does NOT have the same rules as the expected value.
public TimeZoneAssertion doesNotHaveSameRules(final TimeZone expected) { checkActualIsNotNull(); checkArgumentIsNotNull(expected, "expected"); if (getActual().hasSameRules(expected)) { throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.DOES_NOT_HAVE_SAME_RULES).addActua...
[ "@Test\n\tpublic void AssertNotSame() {\n\t\tint[][] result1 = RandomMarketComponent.generateRandomMarketStockRandomValue();\n\t\tint[][] result2 = RandomMarketComponent.generateRandomMarketStockRandomValue();\n\t\tassertNotSame(result1, result2);\n\n\t\tSystem.out.println(\"Ramdom value that get as the output at f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clicks the progress button. Waits until it is present.
public void clickButton() { Graphene.waitGui().until().element(button).is().present(); button.click(); }
[ "public void clickOnShowProgressBarForAWhile() {\n\t\tdriver.findElement(By.id(\"io.selendroid.testapp:id/waitingButtonTest\")).click();\n\t}", "public void clickContinue () {\r\n\t\t\r\n\t\t//before the element is available to click\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default Constructor method which makes an increment of 'numThreeD' means that a new three dimensional shape is created
public ThreeDShape(){ numThreeD++; }
[ "public Cube3(int dimensions)\n {\n super(dimensions, dimensions, dimensions);\n }", "public Matrix3() {\n\t\tsuper( 3 , 3 );\n\t}", "public Triangle(){\n Point3D _p1 = new Point3D();\n Point3D _p2 = new Point3D();\n Point3D _p3 = new Point3D();\n }", "public Triangle()\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 1 /Coverage entropy=0.5859526183035508
@Test(timeout = 4000) public void test01() throws Throwable { ClassWriter classWriter0 = new ClassWriter(52); classWriter0.index = (-2080); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-2940), "?&>?R$", "%{xoX{z3UX$Tf0DzD", "The wildcard list must not be null", "The wildcard list must...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX ERROR: Method load error jadx.core.utils.exceptions.DecodeException: Load method exception: bogus opcode: 00e9 in method: com.android.internal.telephony.OemDeviceLock.getCurrentLockOperator(java.lang.String):java.lang.String, dex: at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:118) at jadx.core.dex.nodes...
private static java.lang.String getCurrentLockOperator(java.lang.String r1) { /* // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.internal.telephony.OemDeviceLock.getCurrentLockOperator(java.lang.String):java.lang.String, dex: */ throw ...
[ "public void mo650a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); finish(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean isChildSelectable(int groupPosition, int childPosition) { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ex_company.audit_msg
public void setAuditMsg(String auditMsg) { this.auditMsg = auditMsg; }
[ "public void setAuditDate(Date auditDate)\r\n\t{\r\n\t\tthis.auditDate = auditDate;\r\n\t}", "@Override\r\n\tpublic void setValueMessage(I18NExpression expression) {\n\r\n\t}", "public void setAuditdate(Date auditdate) {\r\n\t\tthis.auditdate = auditdate;\r\n\t}", "public void setAuditLog(OMRSAuditLog audit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the game and initializes all the rooms and their contents;
public Game() { createRooms(); parser = new Parser(); }
[ "public Game() {\n createRooms();\n }", "public Game() {\n createRooms();\n parser = new Parser();\n\n }", "public Game() \n {\n createRooms();\n\n parser = new Parser();\n }", "private void createRooms()\n {\n Room outside, virtualReality, jungle, dark...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a OkHttp client
private static OkHttpClient getOkHttpClient() { // use custom OkHttp client to return new OkHttpClient.Builder().build(); }
[ "public static OkHttpClient getokHttpclient() {\n mCliment = new OkHttpClient.Builder()\n// .addInterceptor(Inter)\n .build();\n return mCliment;\n }", "private static OkHttpClient getClient() {\n return new OkHttpClient.Builder()\n .connectTime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_sign
Integer updateByPrimaryKeyAndVersionSelective(SignDTO record);
[ "@Override\n\tpublic int insertthesign(thesign thesign) {\n\t\tthesignMapper mapper=sqlSession.getMapper(thesignMapper.class);\n\treturn mapper.insertthesign(thesign);\n\t}", "@Override\n\tpublic List<thesign> selectbyid2(thesign thesign) {\n\t\tthesignMapper mapper=sqlSession.getMapper(thesignMapper.class);\n\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the java expression that contains the compiled CSS.
protected abstract String getCssExpression( TreeLogger logger, ResourceContext context, ExecutableElement method) throws UnableToCompleteException;
[ "public String css()\n {\n return css;\n }", "protected StringBuilder defineCSS() {\r\n\r\n\t\treturn Css.getCss(displayAsTable(filter));\r\n\t}", "public String getCss()\n {\n return this.css;\n }", "public String getCssRepCode() {\n return cssRepCode;\n }", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.example.protobuf.protocol.AchievementResult result = 7;
public com.example.protobuf.protocol.AchievementProto.AchievementResult.Builder addResultBuilder() { return getResultFieldBuilder().addBuilder( com.example.protobuf.protocol.AchievementProto.AchievementResult.getDefaultInstance()); }
[ "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "transfer_protobuf.Commands.Command.Response getResponse();", "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "proto.GameStatusEnum getStatus();", "com.google.protobuf.ByteString getResponse(int inde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX ERROR: Method load error jadx.core.utils.exceptions.DecodeException: Load method exception: bogus opcode: 00e8 in method: com.android.ims.internal.ImsVideoCallProvider.():void, dex: at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:118) at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:248) at jadx.core....
public ImsVideoCallProvider() { /* // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.ims.internal.ImsVideoCallProvider.<init>():void, dex: */ throw new UnsupportedOperationException("Method not decompiled: com.android.ims.internal.ImsVid...
[ "protected void m19707a(android.content.Context r13, com.google.android.exoplayer2.drm.C2190a<com.google.android.exoplayer2.drm.C3960c> r14, com.google.android.exoplayer2.audio.AudioProcessor[] r15, android.os.Handler r16, com.google.android.exoplayer2.audio.C2146c r17, int r18, java.util.ArrayList<com.google.andro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table FINANCIAL_PRODUCT
int insertSelective(FinancialProduct record);
[ "@Query(\"SELECT * FROM \" + GlobalClass.TABLE_NAME + \" where \" + GlobalClass.ManufacturerName + \" = '\" + GlobalClass.COMPANY_NAME + \"'\")\n List<ProductTableData> getAllProductOfSecure();", "@Select({\n \"select\",\n \"id, name, category, price, detail, create_date, update_date, create_by,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
devuelve el saldo de la tarjeta
public Double getSaldo() { return saldo; }
[ "public int saldo() {\n\t\tint saldo = this.liczDochodSprzedaz() - this.liczKosztaPracownikow();\n\t\treturn saldo;\n\t}", "public float consultarSaldo() {\n\t\treturn saldo;\n\t}", "public void Depositar(double pValor){\n System.out.println(\" \");\n System.out.println(\"-- Realizando Deposito --...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
requires readBinary mode ("rb") reads a string from the binary file
public String ReadBinString() { String ret = ""; try { ret = readerBin.readUTF(); } catch (IOException e) { e.printStackTrace(); } return ret; }
[ "public String readBinaryFile(String fileName) throws IOException {\n\t\tDataInputStream iSream = new DataInputStream(new FileInputStream(fileName));\n\t\tStringBuffer codedString= new StringBuffer();\n\t\tint padNumber =iSream.readInt(); // the number of extra zeros is the first integer stored in the file. It's no...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<OrderDetail> selectByOrder(Integer id) { return orderDetailMapper.selectByOrder(id); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DynamoHelper, used to get schemas.
public DynamoHelper getDynamoHelper() { return dynamoHelper; }
[ "public abstract Map<String, GenericType> getSchemas();", "HibSchema getSchemaContainer();", "GetSchemaResult getSchema(GetSchemaRequest getSchemaRequest);", "@Override\n protected Collection<String> listSchemas(Connection connection){\n try (ResultSet resultSet = connection.getMetaData().getSchemas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the LicensePlate field.
public void setLicensePlate(java.lang.String value);
[ "public void setLicensePlate(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(LICENSEPLATE_PROP.get(), value);\n }", "public LicensePlate getLicensePlate() {\n return licensePlate;\n }", "public void setLicense(double licenseIn)\n {\n license = licenseIn;\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 55 /Coverage entropy=3.0445224377234217
@Test(timeout = 4000) public void test055() throws Throwable { ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(); resultMatrixSignificance0.countWidthTipText(); assertEquals(1, resultMatrixSignificance0.getVisibleRowCount()); assertFalse(resultMatrixSignific...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Y of the bounding box of the original SVG image.
public static double getOrigY() { return 0.0; }
[ "public int getImageY() {\n return imageY;\n }", "public Rectangle getBoundingRectangle()\n {\n return new Rectangle(x, y, image.getWidth(), image.getHeight());\n }", "public float getY()\n {\n return this.getShape().getY();\n }", "public double getY() {\n\t\treturn figura....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Server side implementation of bidirectional streaming RPCs where both sides send a sequence of messages using a readwrite stream. The two streams operate independently, so clients and servers can read and write in whatever order they like: for example, the server could wait to receive all the client messages before w...
@Override public StreamObserver<Employee> getAllEmployeesByIDList(StreamObserver<Employee> responseObserver) { return new StreamObserver<Employee>() { List<Employee> responseList = new ArrayList<Employee>(); @Override public void onNext(Employee value) { responseList.add(EmployeeResourceProvider...
[ "public interface ClientStreamingMethod<ReqT, RespT>\n extends RsocketRpcFunctions.RequestStream<ReqT, RespT> {}", "public static void main(String[] a) {\n final Linda linda = new linda.server.LindaClient(\"//localhost:4000/LindaServer0\");\n final Linda linda2 = new linda.server.LindaClient(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check the selected line by ComTest options
private void parseOptionLine(String line) { String s = line.trim(); if ( s.matches("^\\* ?[^ ].*") ) s = s.substring(1).trim(); // allow: * #import anywhere else if ( s.matches("^// ?[^ ].*") ) s = s.substring(2).trim(); // or: // #import s = removeAllAfter(s, "//"); if ( han...
[ "@Test(priority = 15, description = \"To Verify selected Options are displayed\")\n\tpublic void ToCheckOptionsAreAutoSelected()\n\t{\n\t\tAssert.assertTrue(\"SSD type all Options are Selected\", ssdSSDtype.EditSSDOptions());\n\t}", "public void testGetLine() {\n assertTrue(\"Wrong text found.\", outputTab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deze functie berekend de best mogelijke zet door middel van een minimax algoritme dat gebruik maakt van alphabeta pruning. Er wordt vooral gekeken naar score en corner grab, maar er wordt ook in sommige gevallen gekeken naar, stability, mobiliy, board state, boardweight, en time passed
public int minimaxTest(Board b, Player player, int depth, int maxDepth, int chosenScore, int chosenMove, int alpha, int beta, long time){ ArrayList<ArrayList<Integer>> list = reversi.getValidMoves(b, player.color); long endTime = time; if (depth == 0) { // Time check long start = System.currentTim...
[ "private MoveScore minimax(int[][] board, int depth, int max_depth, double black_best, double white_best, Move chosen_move, double chosen_score){\n MoveScore result = new MoveScore(chosen_move, chosen_score);\n OthelloGame game = new OthelloGame();\n List<Move> moves_list = game.getValidMoves(b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change whether the operation is inverted or not
public void setInversed(boolean inverted) { if (!invertible || this.inverted == inverted) { return; } this.inverted = inverted; if (inverted) { this.setText(inverseOperationName); } else { this.setText(operationName); } }
[ "public abstract boolean inverted();", "public void invert(boolean inverted);", "void setInverted(boolean invert);", "public void setInverted(boolean val) {\n inverted = val;\n }", "@Override\r\n\tpublic void setInverted(boolean isInverted) {\n\t\t\r\n\t}", "public void inverseOperation();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string release_version = 2;
public boolean hasReleaseVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "public interface IDeckerino {\n public static final String VERSION = \"1.0\";\n}", "public void setVersion(String value) {\n this.version = value;\n }", "String configuredVersion();", "public void setVersion(String inVersion) {\r\n version = inVersion;\r\n }", "public int getPackageVersionInt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }