query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
ini hasil dari keyboard baru cuy
@Override public void onDonePressed() { startActivity(new Intent(this, MainActivity.class)); finish(); }
[ "public void setmon() {\n \n myPencilBW.setMnemonic(KeyEvent.VK_P);\n \n myEraserBW.setMnemonic(KeyEvent.VK_E);\n \n myCircleBW.setMnemonic(KeyEvent.VK_C);\n \n myEllipseBW.setMnemonic(KeyEvent.VK_E);\n \n mySquareBW.setMnemonic(KeyEvent.VK_S);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get it from the server
protected Void doInBackground(Void... params) { m_tfilot = new ArrayList<Tfila>(); Time now = new Time(Time.getCurrentTimezone()); now.setToNow(); Tfila sample = new Tfila(Tfila.Type.Saharit, now, now, "ראשון", 10, 0,true); Tfila sample1 = new Tfila(Tfila.Ty...
[ "public String getServer() {\r\n return this.server;\r\n }", "ServerData getServerData();", "public String getServer() {\r\n\t server = connection.getHeaderField(\"Server\");\r\n\t return server;\r\n\t }", "public String getServer()\r\n {\r\n return this.server;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The constructor for this view adds all the components to the frame and then shows the frame.
public SelectionView() { this.setTitle("Nooz"); // Assign the view an empty model by default. This guarantees that the // proper menu items are disabled to reflect the fact that the view // doesn't yet have data. this.setNewsDataBaseModel(new NewsDataBaseModel()); // Add the menu items to their cor...
[ "public View() {\n initComponents();\n this .setVisible(true);\n }", "public ViewResults() {\n \n initComponents();\n // this.setSize(1100, 1100);\n \n }", "public ViewMain() {\n initComponents();\n \n }", "public View() {\r\n\t\tcrearPanelTabla();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
f0 > PrimaryExpression() f1 > "+" f2 > PrimaryExpression()
public MType visit(PlusExpression n, MType argu) { MType op1 = n.f0.accept(this, argu); n.f1.accept(this, null); MType op2 = n.f2.accept(this, argu); if (op1.isSameTypeOf("int") == false || op2.isSameTypeOf("int") == false) { String msg = "PlusExpression error!"; ErrorPrinter.addErrorMsg(msg); } retur...
[ "public Expression addExpression() throws SyntaxException {\n\t\tToken firstToken=t;\r\n\t\tExpression e0=null;\r\n\t\tToken op=null;\r\n\t\tExpression e1=null;\r\n\t\t\r\n\t\tif (getpredictSets(\"MultExpression\").contains(t.kind)) {\r\n\t\t\te0 = multExpression();\r\n\t\t\twhile(t.isKind(OP_PLUS) || t.isKind(OP_M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new SemaphoreOrderBoard, initializing the shared list.
public SemaphoreOrderBoard() { orders = Collections.synchronizedList(new ArrayList<Order>()); fullSem = new Semaphore(5); emptySem = new Semaphore(0); }
[ "public Table ( RepoStub repoStub, BarStub barStub)\n {\n //Initialize shared regions\n this.repoStub = repoStub;\n this.barStub = barStub;\n\n //Instanciate and Initialize studentsArrivalFIFO\n studentsArrivalFIFO = new MemFIFO(NSTUDENTS);\n\n //Inicialize all the count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method passes credentials to server for authentication.
private void verifyAuthWithServer() { mChangePasswordModel.connect( binding.editNewPass.getText().toString(), binding.editCurrentPass.getText().toString(), mUserModel.getEmail(), mUserModel.getJwt()); }
[ "void setCredentials(String username, String password){\n usr = username;\n passwd = password;\n }", "void authenticate();", "private static void handleAuth(HttpClient client, HttpMethod method, String userId, String password) {\n if (!isEmpty(userId)) {\n UsernamePasswordCred...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the shapefile shape type value for a point
public int getShapeType(){ return myShapeType; }
[ "String getShapeTypeAsString();", "public abstract String getShapeType();", "public String getShapeType() {\n\t\treturn shape;\n\t}", "public int getShapeType() {\n\t\treturn shapeType;\n\t}", "String getGeometryType();", "public ShapeType getType() {\n return this.shapeType;\n }", "public final Sha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The scanner that is able to read the user input.
public static void main(String[] args) { Scanner in = new Scanner(System.in); //The data that has been collected in the format X Y Z. String[] input = in.nextLine().split(" "); //The data that was extracted from the input, it is turned to a int from the metho; toInt(String in). int numRow = toInt(input...
[ "protected String getScannerInput() {\n\t\treturn scan.next();\n\t}", "private InputFromConsole() {\r\n\t\tscanner = new Scanner(System.in);\r\n\t}", "public String getBasicInput() {\n return inputScanner.next();\n }", "public static String inputString(){\n\t\treturn scanner.next();\n\t\t\n\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kill the connection for this DAO
public void closeConnection() { try { this.connection.close(); } catch (Exception e) { System.err.println("ERROR: failed to get database connection."); e.printStackTrace(); } }
[ "public static void deconnection() {\n session.close();\r\n }", "public static void stopConnectionWithDb(){\n if (sessionFactory != null) {\n sessionFactory.close();\n session.close();\n }\n }", "public void disconnect() {\n try {\n this.connect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assigna el valor 0 a les cells de tipus BLANK
public void setBlankCellsToZero(){ for (int i = 0; i < hidato.getSizeX(); i++){ for (int j = 0; j < hidato.getSizeY(); j++){ Cell cell = hidato.getCell(i, j); if (cell.getType() == Type.BLANK) cell.setVal(0); } } }
[ "public void reset() {\n Cell[] as = cells;\n Cell a;\n base = 0L; // relies on fact that double 0 must have same rep as long\n if (as != null) {\n for (int i = 0; i < as.length; ++i) {\n if ((a = as[i]) != null)\n a.value = 0L;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
let's introduce a string to match regular expressions against
public static void main(String[] args) { String sequence = " 1 agtagttcgc ctgtgtgagc tgacaaactt agtagtgttt gtgaggatta acaacaatta\n" + "61 acacagtgcg agctgtttct tagcacgaag atctcgatgt ctaagaaacc aggagggccc\n" + "121 ggcaagagcc gggctgtcaa tatgctaaaa cgcggaatgc cccgcgtgtt gtccttgatt\n" + ...
[ "public abstract void forRegExpPattern(RegExpPattern that);", "String asJavaRegex();", "String exactMatch();", "boolean match(String expr);", "@Test\n public void predefined_anyCharacter() throws Exception {\n String value = \"sun son soon\";\n String regex = \"s.n\";\n\n Pattern pattern = Pattern...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string selectionArgs = 5;
public Builder clearSelectionArgs() { selectionArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; }
[ "public static void main(String[] args) {\n\t\tint[] array = {9, 8, 7, 6, 5, 0, 1, 2, 3, 4};\n\t\t\n\t\tSystem.out.println(quickSelect(array, 5));\n\t\t\n\n\t}", "UnionFind(String args[]){\n\tthis.args=args;\n\tr=new Random(8);\n}", "int addSelection(String label);", "static void select() {\n\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Grips/releases glyph, change between holonomic drivetrain
public void gripGlyphHolonomic() { glyphClawSwerveLeft.setPosition(0.5); glyphClawSwerveRight.setPosition(0.5); }
[ "static void gain_update(float past_qua_en[], float g_code) {\n\t\tint i;\n\n\t\t/* update table of past quantized energies */\n\t\tfor (i = 3; i > 0; i--)\n\t\t\tpast_qua_en[i] = past_qua_en[i - 1];\n\t\tpast_qua_en[0] = 20.0f * (float) Math.log10(g_code);\n\t}", "public static void drawInst(String in, Graphics ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The order of orientation axes changes depending on the rotation of the screen. Some devices call landscape "ROTAION_90" (e.g. phones), while others call it "ROTATION_0" (e.g. tablets). So we need to adjust the axes from canonical space into screen space depending on the rotation of the screen from whatever this device ...
public static void setOrientation(float x, float y, float z) { mOrientationInput[0] = x; mOrientationInput[1] = y; mOrientationInput[2] = z; //Tweaks for if you want to discount gravity with the accelerometer // final float alpha = 0.8f; // // // Isolate the force of gravity with...
[ "public static void setUpOrientaion() {\n\t\t// Useful for live wallpaper\n\t\tif (Gdx.graphics.getWidth() <= Gdx.graphics.getHeight()) {\n\t\t\t// ReGet values\n\t\t\tSCREEN_W = Gdx.graphics.getWidth();\n\t\t\tSCREEN_H = Gdx.graphics.getHeight();\n\t\t\t//\n\t\t\tWORLD_WIDTH = Gdx.graphics.getWidth();\n\t\t\tWORLD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods purely for testing purposes
public void setGames(ArrayList<Game> games) { this.games = games; }
[ "protected void method_5557() {}", "protected void expectations() { }", "@Test\r\n final void testReadFromString() {\r\n // Test code removed, has to be ported to using spring or mockito\r\n }", "private void testing() {\n\t}", "private void doTest() {\r\n\r\n\t}", "private static void EX5() {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gives a weight to the Item
public void setWeight(int weight) { this.weight = weight; }
[ "public int getItemWeight()\n {\n return calculateItemWeight();\n }", "public int getItemWeight() {\n return mWeight;\n }", "public int getWeight() { return weight; }", "int weight () {\r\n\t\treturn this.weight;\r\n\t}", "private int getGroupWeight(int item){\n return setWeigh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Indicates, if the debug mode is enabled
public boolean isDebug() { return debug; }
[ "public static boolean isDebugEnabled(){\n return Const.DEBUG;\n }", "public static boolean isDebugEnabled()\n {\n return debug;\n }", "public boolean isInDebugMode() {\n return debug;\n }", "public boolean isDebugEnabled()\n {\n return debugLevel == DEBUG_LEVEL_DEBUG;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds a FormatBundle for DatasetKeyOutputFormat by copying a temp config. All properties will be copied from the temporary configuration
private static FormatBundle<DatasetKeyOutputFormat> outputBundle(Configuration conf) { FormatBundle<DatasetKeyOutputFormat> bundle = FormatBundle .forOutput(DatasetKeyOutputFormat.class); for (Map.Entry<String, String> entry : conf) { bundle.set(entry.getKey(), entry.getValue()); } return ...
[ "public void configure(JobConf conf) {\n this.conf = conf;\n replication = conf.getInt(HAR_REPLICATION_LABEL, 3);\n // this is tightly tied to map reduce\n // since it does not expose an api \n // to get the partition\n partId = conf.getInt(MRJobConfig.TASK_PARTITION, -1);\n // cr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
AMQP supports more priority levels (256, 0255) than JMS does (10, 09). If a message is received with a priority of over 9, JMSPriority should be capped at 9.
@Test public void testGetJMSPriorityOnReceivedMessageWithNonJmsPriorityIsCappedAt9() throws Exception { short priority = 200; _testAmqpMessage.setPriority(priority); //create a received message _testMessage = TestMessageImpl.createReceivedMessage(_testAmqpMessage, _mockSessionIm...
[ "default JmsEndpointProducerBuilder priority(int priority) {\n doSetProperty(\"priority\", priority);\n return this;\n }", "public void setMessagePriority(int messagePriority) {\r\n\t\tthis.messagePriority = messagePriority;\r\n\t}", "public void setPriority(int priority) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the first chained no carry sum and the phrase digit permutation
private static String _addChainedNoCarryAndDigitPermutation(String chainedNoCarry, String digitPermutation) { return VICOperations.noCarryAddition(chainedNoCarry, digitPermutation); }
[ "public static void main(String[] args){\r\n Scanner sc = new Scanner(System.in);\r\n String binput = sc.nextLine();\r\n String binoutput = \"\";\r\n binoutput = binput+\"0000\"; //equivalent to multiplying by 16\r\n \r\n //create addition array\r\n String[][] additi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns some LZW thing.
private int getCode() { while (num_bits < code_size) { int c = (char) bytes[offset++]; if (offset > originalOffset + length) return end_code; code_buf <<= 8; code_buf |= (c & 0xff); num_bits += 8; } int code = (code...
[ "native JavaScriptObject createEncoder()/*-{\n\t\t\t\t\t\t\t\t\t\t\t//http://rosettacode.org/wiki/LZW_compression#JavaScript\n\t\t\t\t\t\t\t\t\t\t\tvar LZW = {\n\t\t\t\t\t\t\t\t\t\t\tbyteArrToUtf16Str : function(arr) {\n\t\t\t\t\t\t\t\t\t\t\t//1=odd,0=even\n\t\t\t\t\t\t\t\t\t\t\tvar result = new String(arr.length %...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// Methods // // HpcDataManagementConfigDAO Interface Implementation //
@Override public List<HpcDataManagementConfiguration> getDataManagementConfigurations() throws HpcException { try { // Get all rows from HPC_DATA_MANAGEMENT_CONFIGUARION. return jdbcTemplate.query(GET_DATA_MANAGEMENT_CONFIGURATIONS_SQL, dataManagementConfigurationRowMapper); } catch (DataAccessException e) ...
[ "public interface ConfiguracionDAO {\n\t\n\t/**\n\t * Inserta un nuevo registro de configuración en la base de datos\n\t * @param tbConfiguracion\n\t * @return\n\t */\n\tpublic boolean insert(ConfiguracionDTO tbConfiguracion);\n\t\n\t/**\n\t * Permite buscar un una configuración por un codigo especifico\n\t * @para...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the display name.
public String getDisplayName() { return displayName; }
[ "public String getDisplayName() {\n return UiUtils.prepareStringTextView(displayName);\n }", "public String getDisplayName()\r\n {\r\n\t\treturn SharedStringUtil.filterString(getName(), NAME_PREFIX + \":\", NAME_PREFIX);\r\n\t}", "java.lang.String getDisplayaccountname();", "public String getDisp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method runs BiForceOnGraph4 on all files in inputFolder and output the standard costs as well as the resulting editing costs into resultOutput.
public void runAlgorithm(String inputPrefix, String resultOutput,String paramFile, boolean append, ArrayList<Float> stdCosts, int number, boolean isXml){ /* Create the output file. */ FileWriter fw = null; BufferedWriter bw = null; try{ fw = new FileWriter(resultO...
[ "@Override\n\tpublic void Execute() \n\t{\n\t\t// Do transformation\n\t\tString[] inputFolders = FileUtilities.getSubFolders(prop.getProperties()[0]);\n\n\t\tfor (int k = 0; k < inputFolders.length; k++) \n\t\t{\n\t\t\tif(!FileUtilities.isFolderEmpty(prop.getProperties()[0] + inputFolders[k]))\n\t\t\t{\n\t\t\t\ttry...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_test_param_value
int updateByPrimaryKeySelective(TestParamValue record);
[ "@Override\r\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\r\n\t}", "@Test\n public void testGetTablesWithParameter()\n {\n final List<String> result = fileHiveMetastoreUnderTest.getTablesWithParameter(\"databaseName\", \"parameterKey\",\n \"parameterValue\");\n\n // Verify t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Currently not used in testing
@DisplayName("Service-Information Credit-Control-Request Init") public void serviceInformationCreditControlRequestInit() throws UnsupportedEncodingException { Session session = client.createSession(new Object() {}.getClass().getEnclosingMethod().getName()); Request request = client.createRequest( ...
[ "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Test\r\n final void testReadFromString() {\r\n // Test code removed, has to be ported to using spring or mockito\r\n }", "@Override\n public int utilite() {\n return 0;\n }", "protected voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rounds a given double number with n decimals.
public static double floor(double a, int n) { double p = Math.pow(10.0, n); return Math.floor((a*p)+0.5) / p; }
[ "private Double convertDouble(Double n) {\n return (int) (Math.round(n * 100)) / 100.0;\n }", "public String roundFxn(double d)\n {\n double dTemp;\n double rounder = 0.005;\n String dStr = \"\"; \n\n // add the rounder to the input double\n d += rounder;\n\n int places = 1;\n double di...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize new game with movies in movieList.txt:
public static void main (String[] args) { Game game = new Game("movieList.txt"); System.out.println("Welcome to Hang Man Game. You have 10 points to win. Let's get started!\n"); System.out.println("The movie title has with " + game.numOfCharacters() + " characters."); // set condition...
[ "private void readFile()\n {\n String filename = (\"myvideos.txt\");\n String videos;\n Movie loadFromFile;\n // try catch to handle FileNotFoundException and IOException\n try\n {\n FileReader inputFile = new FileReader(filename);\n Scanner parser ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region constructor tests
@Test public void test_constructor_pass() { assertNotNull(new ModelProxy()); }
[ "@Test\n public void constructorTest()\n {\n // We aren't actually testing anything here - just addressing a bug in the\n // code coverage computation\n new Bank();\n // Web-Cat wants an Assert here: use one that will always pass\n Assert.assertTrue(true);\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static boolean intersects(Geometry geom1, Geometry geom2) { if(geom1 instanceof GeoPoint){ if(geom2 instanceof GeoPoint){ return intersects((GeoPoint)geom1,(GeoPoint)geom2); } if(geom2 instanceof GeoPolyline){ return intersects((GeoPoint)geom1,(GeoPolyline)geom2); } if(geom2 instanceof Ge...
[ "@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" ] ] } }
users = AppUtility.getSputilsUser(mContext); getAddToAddress();
private void initData() { }
[ "List<Address> getAddAvailableAddress(String user);", "private void addUsers(){\n User customer= new User(\r\n \"+966581466612\",\r\n \"Atheer\",\r\n \"Alghannam\",\r\n 'c',\r\n \"ath@elm.sa\");\r\n\r\n customer.setPIN(\"1234...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public boolean canSaveChanges() { return false; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a default pipeline implementation.
public ChannelPipeline getPipeline() throws Exception { ChannelPipeline pipeline = pipeline(); // Uncomment the following line if you want HTTPS //SSLEngine engine = SecureChatSslContextFactory.getServerContext().createSSLEngine(); //engine.se...
[ "void addPipeline(Pipeline pipeline);", "public ImageProviderPipeline() {\n this(null, null);\n }", "public Pipeline() {\n this.segments = new ArrayList<PipelineSegment>();\n }", "public Pipeline getPipeline();", "public interface IServerPipelineFactory {\n public IServerPipeLine crea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the last job that was run using this instance.
public RunningJob getResult() { return jobResult; }
[ "public static int getLastJobId() {\n int id = 0;\n try {\n ResultSet rs = DatabaseConnectionPostgre.connection()\n .createStatement()\n .executeQuery(\"SELECT MAX(id) FROM job\");\n\n if (rs.next()) id = rs.getInt(1);\n } catch (SQLEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This Method executes before all other methods gets executed
@BeforeMethod public void qdpm() throws Exception { WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.get("http://qdpm.net/demo/v9/index.php"); driver.manage().window().maximize(); }
[ "@Override\n\tpublic void preExecution() throws Exception {\n\t\t\n\t}", "public void pre(){\n\t\tthis.check();\n\t}", "public final void onPreExecute() {\n AppMethodBeat.i(85438);\n a(1, 1, null);\n super.onPreExecute();\n AppMethodBeat.o(85438);\n }", "public void doPreActionS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds an element to the tree.
public boolean add(T element){ Node<T> currentNode = this.getRoot(); // if the root is still null, we have to set it first if (currentNode == null) { this.root = new Node<T>(element); return true; } else { while (true) { ...
[ "public void addElement(Element element);", "void addElement(T element);", "public void add(Object element) {\n\t\tthis.pointerNode = new Node(element,this.pointerNode);\n\t\t++size;\n\t}", "public void add(T element) throws ElementDoesExist {\n if (data.compareTo(element) == 0) {\n throw ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retourne le panneau de droite contenant le tableau de la classe
public PanneauDroite getPanneauDroite(){ return (this.menuDroite); }
[ "public PanelDibujo getPanel(int indice)\n\t{\n\t\treturn ((PanelDibujo)listaPanel.acceder(indice+1));\n\t}", "public PanelObjet getTablette(){\n\t\treturn this.tablette;\n\t}", "int anchoColumna(int porcentaje) {\n\t\treturn porcentaje * scrollPane.getWidth() / 100;\n\t}", "public JPanel retorna() {\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Controls that the BIObjectParameter url name is not in use by another BIObjectParameter
private void urlNameControl(Integer objId, BIObjectParameter biObjPar) { if (objId == null || objId.intValue() < 0 || biObjPar == null || biObjPar.getParameterUrlName() == null) return; try { IBIObjectParameterDAO objParDAO = DAOFactory.getBIObjectParameterDAO(); List paruses = objParDAO.loadBIObject...
[ "public void setObjUrl(ObjUrlType[] param){\n \n validateObjUrl(param);\n\n \n clearAllSettingTrackers();\n localObjUrlTracker = param != null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a string description of a specified proxy type.
public static String getProxyTypeAsString(int proxyType) { return ProxyCertificateUtil.getProxyTypeAsString(GSIConstants.CertificateType.get(proxyType)); }
[ "String getTypeDesc();", "public String getDescription() {\r\n\t\treturn type;\r\n\t}", "public String getTypeDescription( )\r\n {\r\n return getDescType( );\r\n }", "public String getDescription()\n {\n return m_instrumentableProxy.getDescription();\n }", "String getPropertyType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { saveInBDD("shiptest", "prtest", "19930503", 1); }
[ "@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" ] ] } }
Initializes the applet DatabaseApplet
@Override public void init() { /* Create and display the applet */ try { java.awt.EventQueue.invokeAndWait(new Runnable() { public void run() { initComponents(); getContentPane().setBackground(Color.WHITE); ...
[ "public void init()\n\t{\n\t\tdatabase.init();\n\t}", "public void initDatabase()\n\t{\n\t\tthis.database = new Database(this);\n\t}", "public void initDB() {\n\t\t\n\t}", "public MySQL ( PApplet _papplet, String _server, String _database, String _user, String _pass)\n\t{\n\t\tsuper( _papplet, _server, _data...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the layout associated with a specified visualization.
NodeLinkTreeLayout create(NodeLinkTreeVisualization vis);
[ "public void layout() {\n\n this.visualization = new Visualization(this.universe);\n\n\n Set<ILayoutComponent> activeLayoutComponents = new LinkedHashSet<>();\n\n for (KeyValuePair<ILayoutComponent, VisualProperty> pair : this.layoutComponents) {\n\n ILayoutComponent provider = pair....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: f
public abstract CharSequence m14161f();
[ "public abstract T mo8125a(F f);", "public void mo92799a(float f) {\n }", "public static void f() {\n\n\t}", "@Override\n public void f() {\n }", "void mo11404bf(float f);", "private void f() {\n }", "void mo22696a(float f);", "private static void plus(float f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the Vuforia localization engine.
private void initVuforia() { /* * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine. */ VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(); parameters.vuforiaLicenseKey = VUFORIA_KEY; parameters.cameraName = ...
[ "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.BACK;\n\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getIns...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Runnable object that collects the resources that are required for writing the Base contents to a file, and invokes storeChanges(DataWriter) on the specified Base instance. If the base instance has its 'modified' flag equal to true, the entire base is written to the base file
public void storeToFile(Base base) { Runnable runner; switch (base) { case DEBTOR: runner = (() -> { File file = FileLoader.getDebtorDataFile(); DataWriter writer = new DataWriter(file); debtorBase.storeChanges(write...
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\tDate before = new Date();\n\t\t\t\tdebugOut(\"Opening the database to write interfaces\");\n\t\t\t\tDBAdapter dbAdapter = new DBAdapter(_parent);\n\t\t\t\tdbAdapter.open();\n\t\t\t\tdebugOut(\"Now, storing the snapshots\");\n\t\t\t\tdbAdapter.storeSnapshot(_snapshot);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the context menu for graph components
public ContextMenu getContextMenuForGraph() { return propertiesMenu; }
[ "public ActionWithTextAndIcon[] getContextMenuItems();", "private ContextMenu getContextMenu() {\n\t\treturn contextMenu;\n\t}", "public interface IContextMenu {\r\n IContextMenuItem[] getItems(Component owner, @NotNull IContextMenuItem[] path);\r\n\r\n void invokeItem(Component owner, @NotNull IContextMe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tests[0] = new NA28797Test(store,productNo,contextString, contexPara,name,shortName,Memory, DisplayType, Weight, Processor, HardDrive, Ports, Battery, OperatingSystem);
@Test(alwaysRun = true) public void DemoScriptRun(ITestContext ctx) { try { this.prepareTest(); HttpCommon hCommon = new HttpCommon(); JSONCommon JCommon = new JSONCommon(); super.paraString = "context=" + ContextString + "; Product Number=" + productNo; String serviceURL = testData.envData.get...
[ "public VMTest() { }", "public MesTest()\n {\n }", "public Tests() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public TaxiTest()\n {\n }", "public TestInvocStore() {\n\n }", "public Test3() {}", "public BarreraTest()\r\n {\r\n }", "public Multiple_Solution_Test() {}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string loging = 3;
com.google.protobuf.ByteString getLogingBytes();
[ "public void log(String s);", "@Override\n\t\t\t\t\tpublic void log(String string) {\n\n\t\t\t\t\t}", "@Override\n\tpublic void log(String string) {\n\t\t\n\t}", "public void log(String entry);", "public void addLog(String log) {\r\n }", "public void logDebug(String str) {\n }", "public void setLo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of remove method, of class Array.
@Test public void testRemove_int() { array.add(1); array.add(2); array.add(3); assertTrue(array.contains(2)); array.remove(1); assertFalse(array.contains(2)); }
[ "@Test\n public void testRemove() {\n // remove last element\n final IntArray i = new IntArray();\n i.add(I1);\n assertTrue(i.remove(I1));\n assertEquals(i.toArray(), new int[] {});\n \n // remove and leave other elements remaining\n i.add(I5, I2, I3, I1);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
see if height is correct
@Test public void testUnit10() { try { aBox.work(2,4,60); double a = 60; double b = aBox.h; assertEquals(a, b, 0.001); } catch (Exception e) { System.out.println("test catch"); } }
[ "int getActualHeight();", "@Test\n\tpublic void testHeight() {\n\t\tsetup3();\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tassertEquals(((i + 1) * 2) + 3, singleDigitDisplays[i].getHeight());\n\t\t}\n\t}", "public int getRealHeight() {return this.height;}", "public boolean testHeight(EIfcrectangularpyramid type)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Immediately updates the elements after the language gets changed
public void updateTexts() { ServiceLocator sl = ServiceLocator.getServiceLocator(); Translator t = sl.getTranslator(); menuOptions.setText(t.getString("mw.menu.options")); menuOptionsLanguage.setText(t.getString("mw.menu.options.language")); System.out.println(t.getString("mw.lblEstimate")); lblEstimate.s...
[ "void refreshLanguage( Language language );", "@Override\n public void updateLanguage() {\n myInfo.updateLanguage();\n for (BetView tempBetView : myBets) tempBetView.updateLanguage();\n }", "public void refreshLanguageTexts() {\n\t\tb1.setText(LanguageManager.getProperty(\"SHOWREVIEW_BUTPNG\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To prevent a memory leak on rotation, make sure to call stopAutoCycle() on the slider before activity or fragment is destroyed
@Override protected void onStop() { mDemoSlider.stopAutoCycle(); super.onStop(); }
[ "@Override\n protected void onStop() {\n binding.imageSlider.stopAutoCycle();\n super.onStop();\n }", "@Override\n\tprotected void onStop() {\n\t\tmDemoSlider.stopAutoCycle();\n\t\tsuper.onStop();\n\t}", "protected void onStop() {\n mDemoSlider.stopAutoCycle();\n super.onStop()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_book.use_customize_info_title
public void setUseCustomizeInfoTitle(Byte useCustomizeInfoTitle) { this.useCustomizeInfoTitle = useCustomizeInfoTitle; }
[ "void setTitle() {\n if (tableOfContent.select(bookTitleSelector) != null && !tableOfContent.select(bookTitleSelector).isEmpty()) {\n bookTitle = tableOfContent.select(bookTitleSelector).first().text();\n if(init.gui != null && window.equals(\"auto\")) {\n init.gui.autoBo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows how to create an empty Blob, insert data in the Blob, retrieves data from the Blob.
void blobSampleWithEmptyBlob() throws Exception { show("======== Blob Sample with an empty blob ========"); // Creates an empty blob in a table then update it with actual data. try (PreparedStatement pstmt = conn.prepareStatement( "INSERT INTO " + TABLE_NAME + " (LOB_ID, BLOB_DATA) VALUES (4, ...
[ "public Blob createBlob() throws Exception{\r\n\t\treturn db.createBlob();\r\n\t}", "public CompactBlob() {\n super();\n }", "@Override\npublic Blob createBlob() throws SQLException {\n\treturn null;\n}", "com.google.protobuf.ByteString\n getBlobBytes();", "public Blob(String filename) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the index of the minimum element in the range [index, a.length1]
public static int min(String[] a, int index, Comparator<String> comp) { String min = a[index]; int ans = index; for(int i = index; i<a.length; i++){ if(comp.compare(a[i], min) < 0){ min = a[i]; ans = i; } } return ans; }
[ "public int findMinIndex()\r\n {\r\n \t int i = list [0]; int x = 0;\r\n \t for (int k = 0; k <list.length; k++){\r\n \t if (list[k] < i){\r\n \t\t i = list[k];\r\n \t\t if (i == list[k]) x = k;\r\n \t }\r\n }\r\n \t return x;\r\n }", "public static int ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the No description provided.
public java.util.Date getAutoDateTime() { return this.autoDateTime; }
[ "public String getDescription() {\n \t\treturn null;\r\n \t}", "@Override\r\n\tpublic String getDescription() {\r\n\t\treturn null;\r\n\t}", "public String getDescription() { return ((_description != null) && (_description.size() > 0)) ? _description.get(0) : null; }", "public String getDescription() {\n\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "SaveOptions" element
com.exacttarget.wsdl.partnerapi.Options.SaveOptions getSaveOptions();
[ "@Pure\n public Either<Boolean, SaveOptions> getSave() {\n return this.save;\n }", "public String getSaveObject() {\n return saveObject;\n }", "public JButton getBtnSave() {\n return btnSave;\n }", "protected File getSavingFile() {\n\t\tFile lastDir = getConfigDir(\"save\");\r\n\t\tJF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use AddServerResult.newBuilder() to construct.
private AddServerResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "public Result addResult(Object result);", "@GET\n @SelectJson(\"list\")\n @OnlyElement\n @Path(\"/grid/server/add\")\n Server addServer(@QueryParam(NAME_KEY) String name,\n @QueryParam(IMAGE_KEY) String image, @QueryParam(SERVER_RAM_KEY) String ram,\n @QueryParam(IP_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / /
public <E> DataResult<Pair<E, OptionalInt>> parseElement(DynamicOps<JsonElement> debug1, ResourceKey<? extends Registry<E>> debug2, ResourceKey<E> debug3, Decoder<E> debug4) { /* 196 */ ResourceLocation debug5 = debug3.location(); /* 197 */ ResourceLocation debug6 = new ResourceLocation(debug5.g...
[ "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\" )\\\\ (()/( ( )\\\\()) )\\\\ (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof TehnickiPregled)) { return false; } TehnickiPregled other = (TehnickiPregled) object; if ((this.tehnickiPregledId == null && other.tehnickiPregledId != null) || (this.tehnickiPregledId != null &...
[ "public int getId () { return id; }", "public int getId(){ return this.id;}", "public int id() {return this.id;}", "@Override\n public int getId() { return id; }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public void setId( int id ) { this.id = id; }", "public void setId( l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private boolean sLog; private int sLog_cnt;
@Override public void onClick(View v) { sLog_cnt++; //Log.e("sLog_cnt ", "sLog_cnt=" + sLog_cnt); if (sLog_cnt > 4) { sLog_cnt = 0; SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences( HelmetActivity.getAppContext()); int sl; sl = preferences.getInt("_stream_...
[ "public static boolean getLogTimers() {\n/* 386 */ return logTimers;\n/* */ }", "public static void setLogTimers(boolean paramBoolean) {\n/* 375 */ logTimers = paramBoolean;\n/* */ }", "public void sawMessages(){\n\n unseenMessages = 0;\n\n }", "public void log() {\n\t\t\r\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The opposite direction of another one.
@Override public boolean isOposedTo(UpDirection other) { return false; }
[ "void oppositeDirection();", "private static int oppositeDirection(int direction) {\r\n\t\tswitch (direction) {\r\n\t\tcase 0:\r\n\t\tcase 1:\r\n\t\tcase 2:\r\n\t\tcase 8:\r\n\t\tcase 9:\r\n\t\tcase 10:\r\n\t\tcase 16:\r\n\t\tcase 17:\r\n\t\tcase 18:\r\n\t\t\tdirection = 18 - direction;\r\n\t\t\tbreak;\r\n\t\tcas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is for internal use only.
public void setORM_IdCategoria(orm.Categoria value) { this.idCategoria = value; }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void mo4791d() {\n }", "@Override\n protected void init()\n {\n\n }", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The index of the transaction uint64 index = 1 [json_name = "index"];
long getIndex();
[ "org.hl7.fhir.Integer getIndex();", "public String getIndex() { return index.get(); }", "java.lang.Long getIndex();", "public int getIndex()\n {\n return index;\n }", "public int getIndex(){\r\n return index;\r\n }", "public int getIndex() {return _index;}", "public final int getIndex()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
[ "private void parseArgument() {\n }", "@Override\n public void parseArguments(String[] args)\n {\n \n }", "@Test\r\n\tpublic void capturingArguments() {\r\n\t}", "public T userArgument();", "java.lang.String getArgu1();", "public Object_ArgumentTest(String name) {\n\t\tsuper(name);\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
solucion temporal debido a que al hacer login desde la pagina de producto se caia por no tener el productid
@PostConstruct public void init() { String contextPath = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath(); try { if(productId!=null && productId>0) { System.out.println("ProductManagedBean - product: "+productId); System.out.println("questions: "+product.getQuestions().s...
[ "public void ShowPageProtected(HttpServletRequest request, HttpServletResponse response, String jspPage) throws ServletException, IOException\n{\n HttpSession session=request.getSession();\n ArrayList<Dades> products = new ArrayList<Dades>();\t\t\t// Aqui pondremos todos nuestros productos\n ArrayList<Stri...
{ "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 Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { dateChooserDialog1 = new datechooser.beans.DateChooserDialog(); jCalModel1 = new com.jcalendar.model.JCalModel(); jPanel1 = new javax....
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the message from resource that indicates a package cannot be launched
public static String getLaunchPackageFailedMessage(Context context, Intent intent, int reason) { // Quick return if the request cannot be processed if (context == null) { return null; } // Retrieves information on the component specified PackageManager packageManager = context.getPackageManager(); App...
[ "public IPTreatmentPackageNotFoundException(String message) {\n\t\t\n\t\tsuper(message);\n\t}", "public String getMinVersionFailMessage() {\n return minVersionFailMessage;\n }", "public void testMain_InvalidArgument() {\r\n DependencyReportGeneratorUtility.main(new String[]{\"XXX\"});\r\n this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test method for 'com.topcoder.project.phases.template.DefaultPhaseTemplate.applyTemplate(String, long[], Date)'. Empty templateName.
public void testApplyTemplate2_TemplateNameIsEmpty() throws Exception { try { defaultPhaseTemplate.applyTemplate(" ", (long[])null, new Date()); fail("Cannot go here."); } catch (IllegalArgumentException e) { // good } }
[ "public void testApplyTemplate() throws Exception {\n XmlTemplateData data = new XmlTemplateData();\n\n data.setTemplateData(fts.getTemplate(TEMPLATE_DATA_FILE));\n String result = xt.applyTemplate(data);\n\n // Read the reference\n FileReader reader = new FileReader(RESULT_FILE);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Author eyMas 8/6/2018 ISAAS BackEnd
public interface ITokenDao { void store(String token, User authentication) throws ISException; boolean contains(String token) throws ISException; User retrieve(String token) throws ISException; Boolean clearToken(String token) throws ISException; }
[ "public void mo28221a() {\n }", "public void mo5201a() {\n }", "private static void baiqi() {\n\t\t\n\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "public void mo9609a() {\n }", "private void getInformationCouruses() {\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
is the initial board solvable?
public boolean isSolvable() { return this.isSolvable; }
[ "public boolean isSolvable() {\n if (moves != -1)\n return solvable;\n Board twinBoard = initial.twin();\n searchNode initialNode = new searchNode(initial, 0, null);\n MinPQ<searchNode> pq = new MinPQ<>(5);\n pq.insert(initialNode);\n searchNode twinNode = new se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getAD_Client_ID Get database user from Servlet Context or Web Context
public static Connection getConnection (HttpServlet servlet) { // Get Info from Servlet Context String user = servlet.getInitParameter("dbUID"); String pwd = servlet.getInitParameter("dbPWD"); // Get Client Web Context if (user == null) user = servlet.getServletContext().getInitParameter("dbUID"); if (p...
[ "public String getSessionUserId();", "protected String getUserIdentifier() {\n return GlobalVariables.getUserSession().getPrincipalId();\n }", "String getCurrentUserID();", "String getCurrentUserEntityID();", "String getIdUser();", "public String getDIDX_USERID();", "public PGApplicationClien...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static EmbargoDeclaracaoAgravo createUpdatedEntity(EntityManager em) { EmbargoDeclaracaoAgravo embargoDeclaracaoAgravo = new EmbargoDeclaracaoAgravo().descricao(UPDATED_DESCRICAO); return embargoDeclaracaoAgravo; }
[ "@Test\n\tpublic void testCreationOfEntityInsideTransactionViaUpdate() {\n\n\t\tDemoEntity out = sfy.transact(5, new Work<DemoEntity>() {\n\t\t\t@Override\n\t\t\tpublic DemoEntity run() {\n\n\t\t\t\tDemoEntity demoEntity = sfy.get(DemoEntity.class).key(\"1\").now();\n\t\t\t\tif (demoEntity == null) {\n\t\t\t\t\tdem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the qualified name of the fault subcode that indicates that a header is invalid.
protected abstract QName getInvalidAddressingHeaderFaultSubcode();
[ "public QName getVerMismatchFaultCodeQName();", "public QName getMustunderstandFaultQName();", "public SIPHeader getHeader() \n\t{ return (SIPHeader) super.getErrorObject(); }", "public String getHeaderLineFailure(){\r\n\t\treturn headerLineFailure;\r\n\t}", "public String exceptionName();", "@NativeType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Crea un oggetto IdentExpr vuoto.
public IdentExpr() { }
[ "Expr(String placeholder, String id){\n identifier = id;\n is_id = true;\n prefix = \"\" + id; \n }", "public static ExprId newExprId() {\n if (ConnectContext.get() == null || ConnectContext.get().getStatementContext() == null) {\n return statementContext.getNextEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
0. Initialisation des composants
private void initAbout(){ String versionName = getString(R.string.about_version); try { PackageInfo pInfo = getPackageManager().getPackageInfo("com.sol.invictus",PackageManager.GET_META_DATA); versionName = pInfo.versionName; } catch (NameNotFoundException e) { } aboutDialog = new SolAbout(this,vers...
[ "public void init() {\n\t\t\n\n\t}", "public void init()\r\n {\n }", "public VentanaCompra() {\n initComponents();\n \n }", "public Composicao(){\n\t\t\n\t}", "private void initComponents() {\n\t\t\t\n\t\t}", "public criminals() {\n initComponents();\n }", "public void i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creation date: (3/20/2000 10:55:39 AM)
public ReaderInputStream(java.io.Reader reader) { super(); setReader(reader); }
[ "@Override\r\n\tpublic Date getDateCreation() {\n\t\treturn super.getDateCreation();\r\n\t}", "public String getCreationDate() {\r\n return new Date(creationDate).toString();\r\n }", "public Long getDateCreation() {\n\t\treturn created;\n\t}", "Date getCreationTS();", "public Date getCreationDate() ;"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
undoLastAction Set the editState to EDIT, output to the user helper text, and call upon diagram to undo the last action saved by the momento class
public void undoLastAction() { editState_ = EditState.EDIT; helperText_ = "Last action undone."; diagram_.undoLastAction(); repaint(getBounds()); }
[ "protected void editUndo() {\n editTextUndoRedo.undo();\n }", "protected void undoAction()\n {\n }", "private void miUndoActionPerformed(ActionEvent e) {\n }", "private void undo() {\n System.out.println(\">>> UNDO\");\n \n if (myState == null) {\n return;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The username to use when connecting through a proxy.
public String username() { return username; }
[ "@Override\n\tpublic String getUsername() {\n\t\treturn client.getUsername();\n\t}", "public String getUsername() {\n\t\treturn this.USERNAME;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn super.getUserName();\n\t}", "public String getUsername() {\n\t\t\n\t\treturn username;\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 7 / 429 covered goals: Goal 1. org.apache.commons.math3.complex.Complex.abs()D: Line 129 Goal 2. org.apache.commons.math3.complex.Complex.getReal()D: Line 385 Goal 3. org.apache.commons.math3.complex.Complex.abs()D: Line 130 Goal 4. org.apache.commons.math3.complex.Complex.abs()D: Line 132 Goal 5. org...
@Test public void test07() throws Throwable { Complex complex0 = Complex.valueOf((-2633.19192569)); Complex complex1 = (Complex)complex0.readResolve(); Complex complex2 = complex0.tanh(); Complex complex3 = complex0.cosh(); Complex complex4 = complex0.sinh(); Complex complex5 = c...
[ "@Test\n public void test38() throws Throwable {\n Complex complex0 = new Complex(43.98603596, 43.98603596);\n Complex complex1 = complex0.tanh();\n Complex complex2 = complex0.sinh();\n Complex complex3 = complex2.subtract(complex1);\n double double0 = complex2.getArgument();\n Com...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a new group item. It is added within the last created group; if there was no group created before, the item has no group membership. This method can be used if key and value are the same.
public int addGroupItem(String keyLabelName) { return addGroupItemInternal(latestOptGroupElement, keyLabelName, keyLabelName); }
[ "@Override\n\tpublic void add(GroupInfoDomain groupinfo) {\n\t\t getSqlMapClientTemplate().insert(\"Group.addGroup\",groupinfo);\n\t}", "public void addGroup(String group);", "public void addNewGroup(Group group) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
2/9/2019 DFS on trie with next level state
public List<String> wordSearchII_next_level(char[][] board, List<String> words) { if (words == null || words.size() == 0) { return new ArrayList<>(); } Trie trie = new Trie(); for (String word : words) { trie.add(word); } boolean[][] visited = ne...
[ "public void depthFirstSearch() {\n System.out.println(\">>> Depth First Search\\n\");\n\n // stateSet is a set that contains node that are already visited\n Set<String> stateSets = new HashSet<String>();\n int time = 0;\n Node node = new Node(root.getState());\n // QueueUt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves all children of a given type. Traverses the tree in preorder.
public <X> List<ProjectionTreeNode<X>> getChildsByType(Class<X> entityType) { return getChildsByType(new ArrayList<ProjectionTreeNode<X>>(), entityType); }
[ "public Set<PersonEntry> getChildren(RelationshipType type) {\n final Set<PersonEntry> result = new HashSet<>();\n for (final RelationshipEntry each : childRelationships) {\n if (type == null || each.getType()\n .equals(type)) {\n result.add(each.getChild());\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
public void setImageScanningEnabled(Boolean imageScanningEnabled) { this.imageScanningEnabled = imageScanningEnabled; }
[ "@API(status = DEPRECATED, since = \"1.1\")\n boolean isImageSet();", "boolean isScreenshotsSetInSettings();", "public void setSignatureCaptureImage(boolean sigCapImageAvailable);", "void setNoChangeAspect(boolean noChangeAspect);", "boolean isSetNoChangeAspect();", "boolean getNoChangeAspect();", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main method of the application responsible for processing lines from the file.
public Result process(List<String> valuesFromFile) throws IncorrectOperandException, IncorrectOperatorException, NoApplyOperatorException, NoLinesProvidedException, IncorrectLineFormatException { Validator.validateIfLinesAreNotEmpty(valuesFromFile); List<Instruction> instructions...
[ "public static void main(String[] args) {\r\n openFile();\r\n readRecords();\r\n closeFile();\r\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\tString file = \"inputFile.txt\";\r\n\t\tScanner reader = new Scanner(new File(file));\r\n\t\twhile(reader.hasNextLi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Net Interchange' attribute. If the meaning of the 'Net Interchange' attribute isn't clear, there really should be more of a description here...
float getNetInterchange();
[ "public double getNetPresentValue() {\n return netPresentValue;\n }", "public Number getNetPropertyPrice() {\n return (Number) getAttributeInternal(NETPROPERTYPRICE);\n }", "public String getNetwork() {\n\t\treturn model.getNetwork();\n\t}", "@Override\n public int getConnectedNetworkVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by hzxiongtiankai on 2017/3/7.
public interface UserInfoService { List<UserInfo> getAllUser(); UserInfo getUserByEmail(String email, Short state); UserInfo getUserById(Long userId); void addUser(UserInfo user); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an empty menu with the given title
public Menu(String title) { this.title = title; items = new ArrayList<MenuItem>(); }
[ "public DynamicMenu(String title){\n super(title);\n header = \"\";\n }", "private void createMenu()\r\n\t{\r\n\t\tJMenuBar menu = new JMenuBar();\r\n\t\tmainFrame.setJMenuBar(menu);\r\n\t\t\r\n\t\tJMenuItem about = new JMenuItem(\"About\");\r\n\t\tabout.addActionListener(new ActionListener()\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start a new game with a given number of players.
public void newGame(int id, final int nbrOfPlayers, int numberOfRounds) { if(waitThread.isAlive()) { waitThread.kill(); } this.numberOfRounds = numberOfRounds; this.sticksInRound = numberOfRounds + 1; this.nbrOfPlayers = nbrOfPlayers; createUpperLayout(); createScoreBoard(id); trumfPanel = new JPane...
[ "public void PlayGame(){\n\t\tPlayer[] players = new Player[10];\n\n\t\tfor (int i = 1 ; i<11 ; i++ ){\n\t\t\tnew Player(i);\n\t\t}\n\t}", "public static Result startGame() {\n \t \t\n \t// Get params\n \tJsonNode jnParams = \n \t\t\trequest().body().asJson();\n \t\n \t// Create player's name...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ConfigurableApplicationContext context = SpringApplication.run(CouponSystemSpringProjApplication.class, args);
public static void main(String[] args) { SpringApplication.run(CouponSystemSpringProjApplication.class, args); System.out.println("Welcome to the Coupon System!"); // IncomeService incomeService = context.getBean(IncomeService.class); // System.out.println("*********************totalAmount*********************...
[ "public static void main(String ... args){\r\n \tnew SpringApplicationBuilder(Application.class)\r\n\t\t.initializers(new TaxApplicationContextInitializer())\r\n\t\t.run(args);\r\n }", "public static void main(String[] args) {\n AnnotationConfigApplicationContext ctx = new AnnotationConfigApplication...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void processRaw(String key, final int status, final String json) { runOnUiThreadX(new Runnable() { @Override public void run() { // TODO Auto-generated method stub if (status == -1001) { pd.dismiss(); return; } // displayloadin...
[ "@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" ] ] } }
Test case number: 106 /Coverage entropy=0.7439920825769217
@Test(timeout = 4000) public void test106() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("n!&;H!xdW+LR<>]wn\"}"); Token token0 = xPathLexer0.nextToken(); assertEquals(15, token0.getTokenType()); assertEquals("n", token0.getTokenText()); }
[ "@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" ] ] } }
This method was generated by Abator for iBATIS. This method corresponds to the database table ARC_STORAGE_IN
public int deleteByPrimaryKey(String rkid) { ArcStorageIn key = new ArcStorageIn(); key.setRkid(rkid); int rows = getSqlMapClientTemplate().delete( "ARC_STORAGE_IN.abatorgenerated_deleteByPrimaryKey", key); return rows; }
[ "public int getStorageID();", "int getFileStorageTypeValue();", "long getStorage();", "public Storage getStorage (String id) throws OCCIException;", "public int createNewBamTableStorage();", "public Integer getStorageAmount() {\r\n return storageAmount;\r\n }", "private static native int space...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch all records mapped into generic maps
RecordFetchSpec<Map<String, Object>> fetch();
[ "public Map<String, Map<String, String>> fetchAll() {\n }", "@Override\n public Map<Object, GenericRecord> loadAll(Collection keys) {\n String sql = String.format(findByKeysQuery, placeHolders(keys.size()));\n // this replace the (%s) in the original query with (?, ?, ?, ? ... ?) for each key\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Populate this dept pojo with values from the current row in the cursor from the local SQLite database.
public void fromCursor(Cursor deptCursor) { id = Contact.getIntSafelyFromCursor(deptCursor, DepartmentsTable.COLUMN_ID); name = Contact.getStringSafelyFromCursor(deptCursor, DepartmentsTable.COLUMN_DEPARTMENT_NAME); numContacts = Contact.getIntSafelyFromCursor(deptCursor, DepartmentsTable.COLUMN...
[ "public void populateRecipeList(){\n\n try {\n //getting reference to the db\n SQLiteOpenHelper recipeDatabaseHelper = new RecipeDatabaseHelper(this);\n SQLiteDatabase db = recipeDatabaseHelper.getReadableDatabase();\n //creating cursor that will iterate through Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the maxLimit property.
public void setMaxLimit(int value) { this.maxLimit = value; }
[ "public void setMaxLimit(String maxLimit) {\n\t\tthis.maxLimit = maxLimit == null ? null : maxLimit.trim();\n\t}", "final public void setMax(int max) {\n\t\t//set max\n\t\tthis.max = max;\n\n\t\t//update the tooltip and the limitation\n\t\tupdateToLimitedNumberField();\n\t}", "public void setLimit(long limit) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string applicationType = 18;
java.lang.String getApplicationType();
[ "public String getApplicationType() {\r\n return applicationType;\r\n }", "public java.lang.String getApplicationType() {\n return applicationType;\n }", "public abstract String getApplicationProfileType();", "ApplianceType(String stringType) {\n this.stringType = stringType;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Arunraj on 3/1/2018.
@Dao public interface DeptDao { @Insert/*(onConflict = OnConflictStrategy.REPLACE)*/ long insert(Dept dept); @Update int update(Dept dept); @Query("select * from " + Const.TABLE_DEPT + " order by " + Const.KEY_DEPT_ID + " desc") LiveData<List<Dept>> getAllDept(); @Query("select * from " ...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the diskLunId property: The source lun Id for the data disk.
public Integer diskLunId() { return this.diskLunId; }
[ "public Integer lunId() {\n return this.lunId;\n }", "@Override\n public final int getDiskId() {\n return _diskId;\n }", "int getLun();", "public void setLun(int value) {\r\n this.lun = value;\r\n }", "public UnsignedShort getDiskNumberStart()\n\t{\n\t\treturn m_diskNumberSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback received when a permissions request has been completed.
@Override public void onRequestPermissionsResult(int permsRequestCode, String[] permissions, int[] grantResults){ switch(permsRequestCode) { case PermissionUtils.CODE_CAMERA: if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { //开始调用摄像头 ...
[ "public void onPermissionNeeded(String permission);", "public void checkPermissions(){\n ArrayList<String> toRequest=new ArrayList<>();\n for (String permission : permissions) {\n if (permissions!=null && ContextCompat.checkSelfPermission(getContext(),permission)==PackageManager.PERMISSIO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }