query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Fetch all students in database.
@GetMapping("/staff") public List<Staff> getStuedents() { return staffService.getStaffs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\n\tpublic List<...
[ "0.79222715", "0.78639793", "0.78055656", "0.7753441", "0.774663", "0.77338517", "0.7679723", "0.76151806", "0.75836676", "0.75603414", "0.7532592", "0.752727", "0.7418509", "0.74180615", "0.73666036", "0.73459363", "0.733288", "0.7289839", "0.7258565", "0.72391325", "0.72212...
0.0
-1
/Parses an ipv4 address in the RDATA field
private String parseRDataAType(ByteBuffer response) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < 3; i++) { sb.append(Byte.toUnsignedInt(response.get())); sb.append('.'); } sb.append(Byte.toUnsignedInt(response.get())); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\...
[ "0.6703858", "0.6641384", "0.6191745", "0.6077866", "0.6056144", "0.59876484", "0.59563303", "0.59360105", "0.5933454", "0.58701533", "0.5819632", "0.5808845", "0.58029836", "0.57140714", "0.5692328", "0.56806856", "0.5677381", "0.56571764", "0.5651683", "0.5636845", "0.55819...
0.0
-1
This is a facade for parseLabels().
private String parseQName(ByteBuffer response) { StringBuilder sb = new StringBuilder(); parseLabels(response, sb); sb.deleteCharAt(sb.length() - 1);//remove trailing '.' return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String[] getLabels();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabels...
[ "0.6738906", "0.6608004", "0.6608004", "0.6608004", "0.6608004", "0.6543126", "0.65162504", "0.65162504", "0.65162504", "0.6369045", "0.6288853", "0.625948", "0.60831", "0.6062027", "0.6011483", "0.6010718", "0.5998329", "0.5998329", "0.5985736", "0.59667253", "0.5957631", ...
0.0
-1
Parses labels of a domain name, handling pointers along the way. PostCondition: The response ByteBuffer's position will be on the terminating octet
private void parseLabels(ByteBuffer response, StringBuilder dest) { int labelLen = Byte.toUnsignedInt(response.get()); if (isPointer(labelLen)) { int completePointer = ((labelLen & 0x3f) << 8) | Byte.toUnsignedInt(response.get()); int savedPosition = response.position(); response.position(completePointer); parseLabels(response, dest); response.position(savedPosition); } else if (!isTerminatingOctet(labelLen)) { for (int i = 0; i < labelLen; i++) { dest.append((char)response.get()); } dest.append('.'); parseLabels(response, dest); } //else, it's the terminating octet, simply return. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b10000000) >> 7);\n int opcode = ((response[2] & 0b01111000) >> 3);\n int aa = ((response[2] & 0b00000100) >> 2);\n int tc = ((response[2] & 0b00000010) >> 1);\n int rd = (response[2] & ...
[ "0.6400538", "0.53858525", "0.5038353", "0.50328094", "0.49717155", "0.48836517", "0.48778358", "0.48643413", "0.48516542", "0.48396438", "0.48393947", "0.48036748", "0.48029345", "0.47618395", "0.4759036", "0.47587997", "0.4756177", "0.47189155", "0.4718329", "0.4713012", "0...
0.77945685
0
Page object's basic constructor.
public BasePage(WebDriver driver) { this.driver = driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Page(String name)\r\n {\r\n super(name,0,0,0,0);\r\n }", "public PageUtil() {\n\n\t}", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public BasePageObject() {\n this.driver = BrowserManager.getInstance().getDriver();\n...
[ "0.7891488", "0.78895324", "0.77237886", "0.7605521", "0.7570372", "0.7530729", "0.7505596", "0.7479265", "0.7430141", "0.73075557", "0.7263368", "0.7188996", "0.7184129", "0.7180177", "0.71741533", "0.71602684", "0.715695", "0.71441627", "0.70764637", "0.7050257", "0.7046465...
0.6432242
84
Locate a web element using CSS selector.
public WebElement $(String cssSelector) { return driver.findElement(By.cssSelector(cssSelector)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private WebElement getCssSelectorElement(String cssSelectorInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.cssSelector(cssSelectorInfo)));\n\t\treturn element;\n\t}", "protected WebElement findW...
[ "0.6473035", "0.62322325", "0.6231441", "0.6138094", "0.6093535", "0.6021293", "0.5964342", "0.5883695", "0.588236", "0.5809574", "0.5807634", "0.578767", "0.57427347", "0.5703719", "0.5636064", "0.55780625", "0.55651027", "0.5500876", "0.54702675", "0.54546857", "0.5403682",...
0.68379337
0
Locate a list of web elements using CSS selector.
public List<WebElement> $$(String cssSelector) { return driver.findElements(By.cssSelector(cssSelector)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<WebElement> getElementBycssSelector(WebElement listElements, String cssSelector)\n\t\t\tthrows Exception {\n\t\tList<WebElement> element;\n\t\tList<WebElement> cssSelectorLocator;\n\t\ttry {\n\t\t\telement = listElements.findElements((By.cssSelector(cssSelector)));\n//\t\t\tcssSelectorLocator = ...
[ "0.68706", "0.65372837", "0.64333296", "0.63952565", "0.63057834", "0.6191467", "0.60747355", "0.6067057", "0.6038581", "0.6033143", "0.603174", "0.587209", "0.58213615", "0.580565", "0.579055", "0.5778151", "0.5707961", "0.569653", "0.5576135", "0.55595875", "0.547237", "0...
0.6971345
0
Payment payment =new Payment(); //User user =userRepository.findById(id).get(); System.out.println(payment); paymentRepository.save(payment);
@Override public String addPayment(PaymentRequest paymentRequest) { return "Courier Booked successfully"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Payment save(Payment payment) {\n\t\treturn paymentRepository.save(payment);\n\t}", "public Optional<Payment> savePayment(Payment payment);", "Payment find(int paymentID);", "public interface PurchPaymentDao extends JpaRepository<PurchPayment, Serializable> {\n}", "public User saveUser(User user){\n...
[ "0.73510224", "0.73111016", "0.69270617", "0.6730364", "0.6721706", "0.66462165", "0.6614484", "0.6611686", "0.66036266", "0.6578846", "0.6547699", "0.6484367", "0.64743537", "0.6471792", "0.6458552", "0.64543855", "0.6448782", "0.64352316", "0.6423575", "0.64223915", "0.6417...
0.0
-1
Created by Vladimir on 05.04.2017.
public interface MainView extends BaseView { void showProgress(); void hideProgress(); void setUserInfo(User user); void error(String error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.57923055", "0.5627784", "0.55796576", "0.553876", "0.54449606", "0.54449606", "0.5415829", "0.5400086", "0.5391614", "0.5388773", "0.5372055", "0.53696555", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.5361523", "0.5340872", "0.533...
0.0
-1
This method retrieves all the available cars for the given Dates and groups them by type (optional) and name (optional)
public Set<Cars> getCars(String fromDate, String toDate, String type, String name) { CarsDao carsDao = CarsDaoImpl.getInstance(); Set<Cars> cars = carsDao.getCarsByDate(fromDate, toDate, type, name); return cars; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<CabDto> viewCabsOfType(String carType) throws CabNotFoundException {\r\n\t\tList<Cab> cabList = cabRepository.findByCarType(carType);\r\n\t\tList<CabDto> cabdtoList = new ArrayList<>();\r\n\r\n\t\tif (!cabList.isEmpty()) {\r\n\t\t\tfor (Cab c : cabList) {\r\n\t\t\t\tcabdtoList.add(Conver...
[ "0.60764605", "0.58725363", "0.5752941", "0.5737054", "0.56120557", "0.5543971", "0.55229", "0.54551065", "0.54077774", "0.5385285", "0.5360839", "0.5342096", "0.5331239", "0.52888703", "0.52792525", "0.5255336", "0.52515894", "0.5241901", "0.52404714", "0.5240017", "0.523976...
0.7065338
0
This method returns a particular Car by passing the primary key (ID)
public Cars getCarsById(String id) { CarsDao carsDao = CarsDaoImpl.getInstance(); Cars cars = carsDao.getCarById(Integer.parseInt(id)); return cars; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Car getCarById(Integer id){\n\n return this.carCrudInterface.getById(id);\n\n }", "@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}", "public Car findCarById(int id) {\r\n return repository.findById(id).orElse(null);\r\n }", "@Override\n\tpublic car ...
[ "0.83404523", "0.79548496", "0.79349196", "0.7912924", "0.77693564", "0.774372", "0.7683439", "0.74481803", "0.7284615", "0.7202572", "0.7180293", "0.71168953", "0.70979846", "0.70829695", "0.69255567", "0.6894157", "0.6692879", "0.6643615", "0.66395766", "0.6602827", "0.6592...
0.6819371
16
/ Common JUnit 4 Annotations
@BeforeClass // runs before all test cases; runs only once public static void setUpSuite() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\n\tpublic void test4() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotated_cf3_cf206_failAssert34() {\n // AssertGenerator gen...
[ "0.6927612", "0.6811438", "0.67725164", "0.67175865", "0.6635959", "0.6631875", "0.6614118", "0.65888363", "0.6584155", "0.6543087", "0.6518255", "0.6515967", "0.64982086", "0.64948124", "0.649133", "0.64692837", "0.64655006", "0.6452562", "0.644062", "0.6418077", "0.6413942"...
0.0
-1
AAA Arrange, Act, Assert Arrange
@Test public void isUserValid_returnsTrue_givenValidUser() { boolean expectedResult = true; User validStudent = new User("valid", "valid", "valid@email.com", "valid", "valid", "student"); // Act boolean actualResult1 = sut.isUserValid(validStudent); // Assert Assert.assertEquals("Expected user to be considered valid!", expectedResult, actualResult1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assertAll() {\n\t\t\n\t}", "Assert createAssert();", "protected Assert() {\n\t}", "public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }", "@Test\r\n void dependentAssertions() {\n \t\r\n assertAll(\"...
[ "0.639914", "0.62009335", "0.6100092", "0.6060053", "0.6058979", "0.6007493", "0.59193933", "0.5915016", "0.5909506", "0.5909506", "0.5899255", "0.58924776", "0.58727187", "0.58700913", "0.5868814", "0.5787921", "0.57668394", "0.5763044", "0.5743052", "0.5738917", "0.57112753...
0.0
-1
Configures this DOM parser.
public LagartoDOMBuilder configure(final Consumer<LagartoDomBuilderConfig> configConsumer) { configConsumer.accept(this.config); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationE...
[ "0.62275195", "0.6218076", "0.5964392", "0.5816723", "0.57549524", "0.5670811", "0.5613063", "0.5570516", "0.55526966", "0.55416065", "0.5529894", "0.55164224", "0.5500844", "0.5453937", "0.54180175", "0.5329511", "0.53278756", "0.53098905", "0.529406", "0.5291749", "0.528618...
0.0
-1
quick settings Enables debug mode. Performances are lost.
public LagartoDOMBuilder enableDebug() { config.collectErrors = true; config.parserConfig.setCalculatePosition(true); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void enableDebugging(){\n DEBUG = true;\n }", "public void enableDebug() {\n this.debug = true;\n }", "public void toggleDebugMode() {\r\n DEBUG = !DEBUG;\r\n }", "void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }", "public static...
[ "0.76729864", "0.7579032", "0.70208436", "0.6929597", "0.68900806", "0.6887006", "0.68781394", "0.68577725", "0.68145263", "0.68007624", "0.6699028", "0.6680063", "0.66471475", "0.6628075", "0.6592409", "0.65839803", "0.65665805", "0.6554973", "0.65369856", "0.6522949", "0.65...
0.57105386
81
Enables HTML5 parsing mode.
public LagartoDOMBuilder enableHtmlMode() { config.ignoreWhitespacesBetweenTags = false; // collect all whitespaces config.parserConfig.setCaseSensitive(false); // HTML is case insensitive config.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA config.enabledVoidTags = true; // list of void tags config.selfCloseVoidTags = false; // don't self close void tags config.impliedEndTags = true; // some tags end is implied config.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments config.parserConfig.setParseXmlTags(false); // enable XML mode in parsing return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final boolean html5() /*-{\n\t\treturn this.html5;\n\t}-*/;", "public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensiti...
[ "0.6169635", "0.5503197", "0.52649146", "0.52148706", "0.5196532", "0.51773477", "0.51682997", "0.49446332", "0.49309075", "0.48669565", "0.4779322", "0.4777378", "0.45863518", "0.45436895", "0.44786382", "0.4443442", "0.44225135", "0.44197887", "0.4361869", "0.42851788", "0....
0.66648155
0
Enables XML parsing mode.
public LagartoDOMBuilder enableXmlMode() { config.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content config.parserConfig.setCaseSensitive(true); // XML is case sensitive config.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way config.enabledVoidTags = false; // there are no void tags config.selfCloseVoidTags = false; // don't self close empty tags (can be changed!) config.impliedEndTags = false; // no implied tag ends config.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments config.parserConfig.setParseXmlTags(true); // enable XML mode in parsing return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static synchronized void setStrictParsing(final boolean enable)\n {\n EASMessage.s_strictParsing = new Boolean(enable);\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.set...
[ "0.6398348", "0.59428155", "0.57238525", "0.55966336", "0.5591583", "0.5541223", "0.55323565", "0.5531158", "0.5510104", "0.540707", "0.5399174", "0.53942525", "0.53942525", "0.53942525", "0.53612167", "0.5357113", "0.5356297", "0.5353416", "0.5339415", "0.5339415", "0.533912...
0.7831819
0
parse Creates DOM tree from provided content.
@Override public Document parse(final char[] content) { final LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content); return parseWithLagarto(lagartoParser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = t...
[ "0.61233556", "0.61018234", "0.58763194", "0.5818317", "0.5805935", "0.5747943", "0.56693727", "0.5624161", "0.5623884", "0.5622807", "0.55712837", "0.55041975", "0.54910094", "0.54256684", "0.5414051", "0.5370331", "0.53457737", "0.5330809", "0.5321131", "0.53195643", "0.526...
0.5720053
6
Creates DOM tree from the provided content.
@Override public Document parse(final CharSequence content) { final LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content); return parseWithLagarto(lagartoParser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\...
[ "0.66788495", "0.59345454", "0.57037205", "0.5697868", "0.54771996", "0.53863126", "0.5345244", "0.5338292", "0.5334592", "0.5274807", "0.5251597", "0.51918817", "0.51702803", "0.51655847", "0.51593316", "0.5158082", "0.514529", "0.51271856", "0.51259935", "0.5086527", "0.508...
0.4866003
38
Parses the content using provided lagarto parser.
protected Document parseWithLagarto(final LagartoParser lagartoParser) { final LagartoDOMBuilderTagVisitor domBuilderTagVisitor = new LagartoDOMBuilderTagVisitor(this); lagartoParser.parse(domBuilderTagVisitor); return domBuilderTagVisitor.getDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "@Override\n\tpublic Document parse(final char[] content) {\n\t\tfinal LagartoParser lagartoParser = new L...
[ "0.7482393", "0.6984218", "0.5776953", "0.57038766", "0.55549055", "0.54240406", "0.5363604", "0.5169888", "0.5130189", "0.508351", "0.5078317", "0.5008557", "0.5006723", "0.5003513", "0.50026286", "0.49685892", "0.49626923", "0.49236348", "0.4921918", "0.48756972", "0.487528...
0.64643496
2
Returns the BibliographicCorrelation based on MARC encoding and category code.
@SuppressWarnings("unchecked") public BibliographicCorrelation getBibliographicCorrelation( final Session session, final String tag, final char firstIndicator, final char secondIndicator, final int categoryCode) throws HibernateException { final List<BibliographicCorrelation> correlations = categoryCode != 0 ? session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTag = ? and " + "(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and " + "bc.key.marcFirstIndicator <> '@' and " + "(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and " + "bc.key.marcSecondIndicator <> '@' and " + "bc.key.marcTagCategoryCode = ?", new Object[]{tag, firstIndicator, secondIndicator, categoryCode}, new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER, Hibernate.INTEGER}) : session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTag = ? and " + "(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and " + "bc.key.marcFirstIndicator <> '@' and " + "(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and " + "bc.key.marcSecondIndicator <> '@' order by bc.key.marcTagCategoryCode asc", new Object[]{tag, firstIndicator, secondIndicator}, new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER}); return correlations.stream().filter(Objects::nonNull).findFirst().orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public CorrelationKey getMarcEncoding(\n final int category, final int firstCorrelation,\n final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException {\n final List<Correlation> result = session.find(\n \"from Bibliogr...
[ "0.61286825", "0.5855812", "0.50293964", "0.4900287", "0.4876581", "0.48593178", "0.48530573", "0.48315704", "0.4780829", "0.47469136", "0.47344002", "0.47214553", "0.47097436", "0.46884912", "0.468017", "0.46588793", "0.46383736", "0.45859042", "0.45852807", "0.45765382", "0...
0.693182
0
Gets third correlation values by marc category, first and second correlations.
@SuppressWarnings("unchecked") public List<Avp<String>> getThirdCorrelationList(final Session session, final int category, final int value1, final int value2, final Class classTable, final Locale locale) throws DataAccessException { try { final List<CodeTable> codeTables = session.find(" select distinct ct from " + classTable.getName() + " as ct, BibliographicCorrelation as bc " + " where bc.key.marcTagCategoryCode = ? and " + " bc.key.marcFirstIndicator <> '@' and " + " bc.key.marcSecondIndicator <> '@' and " + " bc.databaseFirstValue = ? and " + " bc.databaseSecondValue = ? and " + " bc.databaseThirdValue = ct.code and " + " ct.obsoleteIndicator = '0' and " + " ct.language = ? " + " order by ct.sequence ", new Object[]{category, value1, value2, locale.getISO3Language()}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING}); return codeTables .stream() .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText())) .collect(toList()); } catch (final HibernateException exception) { logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception); return Collections.emptyList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public CorrelationKey getMarcEncoding(\n final int category, final int firstCorrelation,\n final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException {\n final List<Correlation> result = session.find(\n \"from Bibliogr...
[ "0.6118357", "0.537895", "0.51119435", "0.51001734", "0.50384104", "0.5014491", "0.48749694", "0.48563376", "0.47693577", "0.47547296", "0.47547042", "0.4735375", "0.47020066", "0.4606643", "0.45597112", "0.45315", "0.45287377", "0.4511089", "0.4488518", "0.44714937", "0.4435...
0.5425803
1
Returns the MARC encoding based on the input database encodings.
@SuppressWarnings("unchecked") public CorrelationKey getMarcEncoding( final int category, final int firstCorrelation, final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException { final List<Correlation> result = session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTagCategoryCode = ? and " + "bc.databaseFirstValue = ? and " + "bc.databaseSecondValue = ? and " + "bc.databaseThirdValue = ?", new Object[]{category, firstCorrelation, secondCorrelation, thirdCorrelation}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER}); return result.stream().filter(Objects::nonNull).findFirst().map(Correlation::getKey).orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Charset getEncoding();", "String getEncoding();", "public String getDeclaredEncoding();", "String getSupportedEncoding(String acceptableEncodings);", "String getContentEncoding();", "EncodingEnum getEncoding();", "String getUseNativeEncoding();", "private static CharsetEncoder getCoder(String charset...
[ "0.6503051", "0.6489374", "0.6254757", "0.624929", "0.6151208", "0.5953423", "0.59525585", "0.5845128", "0.5723572", "0.5689394", "0.5659821", "0.5657177", "0.5638508", "0.5638508", "0.5612448", "0.5600474", "0.5600474", "0.55970573", "0.5549505", "0.5543185", "0.55375856", ...
0.49901605
62
Get second correlation values by marc category and first correlation.
@SuppressWarnings("unchecked") public List<Avp<String>> getSecondCorrelationList(final Session session, final int category, final int value1, final Class classTable, final Locale locale) throws DataAccessException { try { final List<CodeTable> codeTables = session.find("Select distinct ct from " + classTable.getName() + " as ct, BibliographicCorrelation as bc " + " where bc.key.marcTagCategoryCode = ? and " + " bc.key.marcFirstIndicator <> '@' and " + " bc.key.marcSecondIndicator <> '@' and " + " bc.databaseFirstValue = ? and " + " bc.databaseSecondValue = ct.code and " + " ct.obsoleteIndicator = '0' and " + " ct.language = ? " + " order by ct.sequence ", new Object[]{category, value1, locale.getISO3Language()}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING}); return codeTables .stream() .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText())) .collect(toList()); } catch (final HibernateException exception) { logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception); return Collections.emptyList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public BibliographicCorrelation getBibliographicCorrelation(\n final Session session,\n final String tag,\n final char firstIndicator,\n final char secondIndicator,\n final int categoryCode) throws HibernateException {\n\n final List<BibliographicCorrelation> c...
[ "0.61159176", "0.5588252", "0.5068477", "0.50682086", "0.504476", "0.50260764", "0.4925173", "0.48574618", "0.48563442", "0.47585577", "0.46447638", "0.46393287", "0.4611669", "0.4609982", "0.46046352", "0.45908642", "0.4567574", "0.4523898", "0.451993", "0.45152733", "0.4456...
0.5464244
2
Are we done? If so, print the solution Else For every possible girl, Possible girl = the next not used person AND who's number is greater than the person above it if in column 0 else greater than the person to the left Place girl If placement was successful, girlToSolve += 1 If girlToSolve == 15, then currentDay++, girlToSolve = 0 call solve(0) then solve(girlToSovle) remove(); when done with girls girlToSolve = 1 if girlToSolve < 0 girlToSolve = 14; currentDay = 1; and return;
public static int solve (int girlToSolve) { if (done) { printSolution(); throw exception; } else { for (each possible girl) { if (insert) { next call } remove } return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}", "public boolean solve() {\r\n\r\n\tint nextBox = findLeast();\r\n\t//coors for the least box\r\n\tint c = nextBox % 10;\r\n\tint r = nextbox/10;\r\n\t\r\n\r\n\t//look for least\r\n\t//for the numbers in the least box\r\n\t//assignT == t...
[ "0.6146656", "0.5950706", "0.5949612", "0.5870862", "0.58260304", "0.57714784", "0.5702307", "0.56873536", "0.568706", "0.5673616", "0.5671337", "0.5657474", "0.5656567", "0.5614978", "0.5598602", "0.5563093", "0.55589193", "0.5546248", "0.5530251", "0.55295306", "0.5512384",...
0.7192233
0
draw the game components here
public static void main(String[] args) { gamePanel = new GameDisplay(); //the class that displays a new game // panel is inside the frame, on the panel is the gamePanel JPanel content = new JPanel(); // instantiating my screen object content.setLayout(new BorderLayout()); // set the border object and feed it to the screen content.add(gamePanel, BorderLayout.CENTER); // put the game panel centered - what and how JFrame window = new JFrame(); // instantiating the frame window.setUndecorated(true); // Hides the title bar. window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); //Quit the program when we close this window window.setContentPane(content); // put the panel inside the frame, and the panel already has the game on it window.setSize(screenSize, screenSize); window.setLocation(100, 100); //Where on the screen will this window appear? window.setVisible(true); // see the frame - with no frame you can't see anything else // my class is now PongController to create PongController listener = new PongController(); //start listening for input from the user - this program responds to up arrows, down arrows and the letter q only window.addKeyListener(listener); // frame is listening for the keyboard //Below, we'll create and start a timer that notifies an ActionListener every time it ticks //First, need to create the listener: ActionListener gameUpdater = new ActionListener() { // very general listener, if something happens @Override public void actionPerformed(ActionEvent e) { //gameUpdater is an inner class //It's containing class is Main //moveBall() and moveComputerPaddle belong to the outer class - now their own classes //So we have to say Ball.moveBall() and ComputerPaddle.moveComputerPaddle() to refer to these methods Ball.moveBall(); ComputerPaddle.moveComputerPaddle(); System.out.println("Time going"); if (gameOver) { timer.stop(); } gamePanel.repaint(); } }; timer = new Timer(gameSpeed, gameUpdater); // set the timer with a speed and an action listener to constantly listen to //Every time the timer ticks, the actionPerformed method of the ActionListener is called timer.start(); // start the timer }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap(...
[ "0.8077796", "0.77445465", "0.77018523", "0.76752645", "0.7625284", "0.7607405", "0.76039016", "0.7590373", "0.7551107", "0.75392056", "0.748235", "0.7465685", "0.7457964", "0.7382418", "0.7369065", "0.73535025", "0.7344005", "0.732218", "0.73167795", "0.7293951", "0.72883373...
0.0
-1
very general listener, if something happens
@Override public void actionPerformed(ActionEvent e) { //gameUpdater is an inner class //It's containing class is Main //moveBall() and moveComputerPaddle belong to the outer class - now their own classes //So we have to say Ball.moveBall() and ComputerPaddle.moveComputerPaddle() to refer to these methods Ball.moveBall(); ComputerPaddle.moveComputerPaddle(); System.out.println("Time going"); if (gameOver) { timer.stop(); } gamePanel.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setListener() {\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public interface Listener {}", "@Override\r\n\tp...
[ "0.6976103", "0.69402194", "0.69402194", "0.6871971", "0.6871971", "0.68563926", "0.68029165", "0.6776014", "0.6770984", "0.67565364", "0.6713156", "0.6565816", "0.65543544", "0.6517873", "0.65050435", "0.65050435", "0.6483429", "0.6434475", "0.6412649", "0.636907", "0.636393...
0.0
-1
/ renamed from: a
public final void mo64209a(JSONObject jSONObject, C27876a aVar) { if (jSONObject != null) { C42961az.m136380a(new C43457b(jSONObject.optInt("status", 0))); aVar.mo71363a((Object) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
public OrganismPanel organism; Launch the application.
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { GUI window = new GUI(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void launchApp();", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMed...
[ "0.6233129", "0.59601146", "0.58834505", "0.5869079", "0.5799702", "0.57635856", "0.55956846", "0.5584474", "0.5584474", "0.5584474", "0.550754", "0.54977554", "0.54893273", "0.5482584", "0.54679143", "0.54555434", "0.54345006", "0.5410928", "0.5405041", "0.5398863", "0.53934...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 900, 710); frame.setMinimumSize(new Dimension(900, 710)); frame.setBounds(100, 100, 760, 480); frame.setMinimumSize(new Dimension(760, 480)); context = new Context(this); System.out.println(GUI.class.getResource("GUI.class")); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); GridBagLayout gridBagLayout = new GridBagLayout(); gridBagLayout.columnWidths = new int[]{0, 0}; gridBagLayout.rowHeights = new int[]{0, 0}; gridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE}; gridBagLayout.rowWeights = new double[]{0.0, Double.MIN_VALUE}; //gridBagLayout.rowWeights = new double[]{0.0, 0.00001}; frame.getContentPane().setLayout(gridBagLayout); FileTypePanel fileTypePanel = new FileTypePanel(context); GridBagConstraints gbcFileType = new GridBagConstraints(); gbcFileType.fill = GridBagConstraints.HORIZONTAL; gbcFileType.gridx = 0; gbcFileType.gridy = 0; gbcFileType.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(fileTypePanel,gbcFileType); NamingPanel namingPanel = new NamingPanel(context); GridBagConstraints gbcNamingPanel = new GridBagConstraints(); gbcNamingPanel.fill = GridBagConstraints.HORIZONTAL; gbcNamingPanel.gridx = 0; gbcNamingPanel.gridy = 1; gbcNamingPanel.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(namingPanel,gbcNamingPanel); ReferencePanel referencePanel = new ReferencePanel(context); GridBagConstraints gbcReferencePanel = new GridBagConstraints(); gbcReferencePanel.fill = GridBagConstraints.HORIZONTAL; gbcReferencePanel.gridx = 0; gbcReferencePanel.gridy = 2; gbcReferencePanel.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(referencePanel,gbcReferencePanel); FileListPanelLeft fileListPanelLeft = new FileListPanelLeft(context); GridBagConstraints gbcFileListPanelLeft = new GridBagConstraints(); gbcFileListPanelLeft.gridx = 0; gbcFileListPanelLeft.gridy = 3; frame.getContentPane().add(fileListPanelLeft,gbcFileListPanelLeft); FileListPanelRight fileListPanelRight = new FileListPanelRight(context); GridBagConstraints gbcFileListPanelRight = new GridBagConstraints(); gbcFileListPanelRight.gridx = 1; gbcFileListPanelRight.gridy = 3; gbcFileListPanelRight.weightx = 0.5; frame.getContentPane().add(fileListPanelRight,gbcFileListPanelRight); BottomPanel bottomPanel = new BottomPanel(context); GridBagConstraints gbcbottomPanel = new GridBagConstraints(); gbcbottomPanel.fill = GridBagConstraints.HORIZONTAL; gbcbottomPanel.gridx = 0; gbcbottomPanel.gridy = 4; gbcbottomPanel.gridwidth = 2; frame.getContentPane().add(bottomPanel,gbcbottomPanel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
\class IJSCmdBase \brief IJSCmdBase \details \section IJSCmdBase.java_intro_sec Introduction \section IJSCmdBase.java_samples Some Samples \code .... code goes here ... \endcode APL/Software GmbH Berlin generated by ClaviusXPress ( \author KB
public interface IJSCmdBase { public abstract void run(); /** \brief unMarshall * * \details * * \return Object * * @param pobjFile * @return */ public abstract Object unMarshal(File pobjFile); // private Object // unMarshall /** \brief marshal * * \details * * \return Object * * @param objO * @param objF */ public abstract Object marshal(Object objO, File objF); // private // SchedulerObjectFactoryOptions // marshal public abstract String toXMLString(Object objO); // private // SchedulerObjectFactoryOptions // marshal public abstract String toXMLString(); // private // SchedulerObjectFactoryOptions // marshal }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TAG_JAVA_CODEBASE\n{\n\n /**\n * Class downloading is supported for stubs, ties, values, and \n * value helpers. The specification allows transmission of codebase \n * information on the wire for stubs and ties, and enables usage of \n * pre-existing ClassLoaders when rele...
[ "0.5529065", "0.5319501", "0.5310526", "0.5295071", "0.5275282", "0.5268906", "0.52305883", "0.5190877", "0.5162803", "0.51322025", "0.51277506", "0.5104356", "0.5090429", "0.5089973", "0.50840497", "0.50773156", "0.5059988", "0.50524044", "0.5038249", "0.5031681", "0.5022414...
0.68073225
0
\brief unMarshall \details \return Object
public abstract Object unMarshal(File pobjFile);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void decodeObject();", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "void decodeObjectArray();", "public abstract Object deserialize(Object object);", "public abstract org.omg.CORBA.Object read_Object();", "public void deserialize() {\n\t\t\n\t}", "public void deserialize(JoyBu...
[ "0.6534103", "0.5946154", "0.57879", "0.57101125", "0.5591474", "0.5535147", "0.5413858", "0.539999", "0.5364797", "0.5353247", "0.53414476", "0.53413075", "0.53288126", "0.53102314", "0.52824503", "0.5257184", "0.5233642", "0.52257925", "0.5222415", "0.5222415", "0.5222415",...
0.633101
1
private Object unMarshall \brief marshal \details \return Object
public abstract Object marshal(Object objO, File objF);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object unMarshal(File pobjFile);", "void marshal(Object obj);", "void decodeObject();", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "public byte[] marshall();", "void decodeObjectArray();", "public abstract org.omg.CORBA.Object read_Object();", "public abstra...
[ "0.6787282", "0.6435739", "0.6416048", "0.5951605", "0.5871082", "0.5657419", "0.5464222", "0.5340966", "0.5291361", "0.52819204", "0.52415836", "0.5234785", "0.52310747", "0.5224733", "0.5200762", "0.5147355", "0.511361", "0.50926816", "0.5067281", "0.5061664", "0.5046901", ...
0.54880005
6
Created by Asmaa on 3/31/2018.
public interface IEditTripActivityPresenter { public void setData(Intent intent); public void editTrip(); public void startSerivice(); public void stopService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotec...
[ "0.6018876", "0.5888796", "0.5838877", "0.56277233", "0.5626071", "0.5594502", "0.55941707", "0.5587288", "0.5587288", "0.55505645", "0.5546402", "0.554113", "0.5518865", "0.55096984", "0.5494763", "0.5470735", "0.5470735", "0.5470735", "0.5470735", "0.5470735", "0.5470735", ...
0.0
-1
Input system to determine which problem to run
public void init() { int inN; do{ inN=getN(); switch(inN) { case 1: problem1();break; case 2: problem2();break; case 3: problem3();break; default: } }while(inN != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkUserInput() {\n }", "public void consoleGetOptions(){\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input;\n\t\tint diff=0,first=0;\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Who starts first (0-Player, 1-Computer): \");\n\t\t\t\tinput=in.re...
[ "0.6421295", "0.63240296", "0.63158417", "0.62943596", "0.620282", "0.6186227", "0.6139959", "0.61318344", "0.61300087", "0.60606056", "0.60458934", "0.6038496", "0.6010331", "0.60052526", "0.5999764", "0.59919834", "0.59901637", "0.5987306", "0.5970411", "0.5957999", "0.5953...
0.0
-1
Testing all three constructors using three different DateNew objects
public void problem1() // problem 1 method { DateNew d1 = new DateNew(10,12,2002); DateNew d2 = new DateNew("March",23,2010); DateNew d3 = new DateNew(12,2009); System.out.printf("Date object d1's output is %s",d1.toString()); System.out.printf("Date object d2's output is %s\n",d2.toString2()); System.out.printf("Date object d3's output is %s\n",d3.toString3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testConstructor() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n \n AbstractTemporalLiteral tl1 = ...
[ "0.64639324", "0.6185704", "0.61340576", "0.61142373", "0.5981983", "0.5891842", "0.5870883", "0.5870883", "0.5870124", "0.5860932", "0.5779321", "0.5760349", "0.5760349", "0.57572377", "0.5745032", "0.57146144", "0.5703739", "0.5700624", "0.5690625", "0.56652653", "0.5658285...
0.561515
21
float unitAngle = (float) 360 / defaultCount;
public void animationTrans() { float unitAngle; if (type == CIRCLE) { unitAngle = (float) 360 / defaultCount; } else { unitAngle = 45f; } final float oldAngle = mAngle; float nAngle = mAngle % actualAngle; float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle); final float willAngle; if (type == CIRCLE) { willAngle = (float) ((0.5 - gapAngle) * unitAngle); } else { if (gapAngle < 0.5) { willAngle = (float) ((0 - gapAngle) * unitAngle); } else { willAngle = (float) ((1 - gapAngle) * unitAngle); } } Animation a = new Animation() { @Override protected void applyTransformation(float interpolatedTime, Transformation t) { mAngle = oldAngle + willAngle * interpolatedTime; requestLayout(); } @Override public boolean willChangeBounds() { return true; } }; a.setDuration(200); startAnimation(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getAngle();", "double getAngle();", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double getAngle();", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double findAngle() {\n return 0d;\n }", "public void setAn...
[ "0.68813044", "0.68813044", "0.6834974", "0.67553496", "0.66698384", "0.66294956", "0.65839744", "0.65351105", "0.6532053", "0.6521067", "0.65026784", "0.650212", "0.6486307", "0.64762324", "0.64713377", "0.6450497", "0.63961464", "0.6372737", "0.6332704", "0.6323202", "0.631...
0.0
-1
set of minimal required properties from both record types, aprun and apsys Don't include the batch ids as testing apruns not run from batch won't complete
@Override public boolean isComplete(ExpressionTargetContainer record) { PropertyTag<?>[] attrs = {APRUN_TAG, APSYS_TAG, ALPS_ID, SUBMISSION_TIMESTAMP, APRUN_START_TIMESTAMP, APSYS_END_TIMESTAMP, CWD, APRUN_CMD_STRING}; return super.isComplete(record, attrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n ...
[ "0.5081096", "0.49705485", "0.49580473", "0.49351585", "0.48939195", "0.4888099", "0.4879966", "0.47493982", "0.47451535", "0.4717244", "0.46993873", "0.46898067", "0.46775874", "0.4670387", "0.46322784", "0.46197942", "0.45889348", "0.45653754", "0.45595062", "0.45556328", "...
0.0
-1
METODO ESTATICO PARA CRIAR DEPENDENTES
public static void criarDependentes(Funcionario fun, Scanner ler, Scanner in) { ArrayList<Dependentes> ListaDeptes = new ArrayList<>(); int opcao = 0; do { Dependentes den = new Dependentes(); System.out.println("Digite o nome do dependente:"); den.setNome(ler.nextLine()); System.out.println("Digite a idade:"); den.setIdade(in.nextInt()); System.out.println("Digite o CPF do dependente"); den.setCPF(in.nextLine()); ListaDeptes.add(den); System.out.println("Deseja adicionar outro dependente?\n 1 para Sim. \n 2 para Não."); opcao = in.nextInt(); } while (opcao == 1); fun.setListaDeptes(ListaDeptes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setDependencies() {\n\t\t\n\t}", "private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\...
[ "0.640413", "0.6018781", "0.5997769", "0.5883742", "0.5870112", "0.58374256", "0.5786845", "0.5638901", "0.5632816", "0.5630477", "0.5584311", "0.55225533", "0.55030495", "0.5450542", "0.54186326", "0.54090595", "0.5397164", "0.53884304", "0.53809524", "0.5335349", "0.5333289...
0.51728857
33
Metodo que inserta un dentro de la pagina web.
@SuppressWarnings("unchecked") public void insertarLineaSeparacion() { Tag hr = new Tag("hr"); hr.addAttribute(new Attribute("style", "width: 100%; height: 2px;")); // <hr style="width: 100%; height: 2px;"> body.add(hr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getStrin...
[ "0.6302186", "0.61993897", "0.616403", "0.6074142", "0.60716885", "0.5984807", "0.5933809", "0.5931044", "0.5915004", "0.5891694", "0.58613384", "0.58565104", "0.58005935", "0.579243", "0.5767469", "0.575181", "0.57313377", "0.5730227", "0.5721555", "0.5694504", "0.5675098", ...
0.0
-1
add item to secondaryCidrs
public void addSecondaryCidr(SecondaryCidr secondaryCidr) { if (this.secondaryCidrs == null) { this.secondaryCidrs = new ArrayList<>(); } this.secondaryCidrs.add(secondaryCidr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CatalogItem addCatalogItem(CatalogItem catalogItem);", "void addCpItem(ICpItem item);", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "@Override\r\n\tpublic void add(SecondCategory scategory) {\n\t\tscategory.setCreattime(new Date());\r\n\t\tscategoryDao.add(scategory);\r\n\t}", "@Overri...
[ "0.65128946", "0.6396268", "0.57577544", "0.57361317", "0.5594333", "0.5500523", "0.5477122", "0.54520935", "0.54479885", "0.54470086", "0.54196763", "0.5397022", "0.53792953", "0.5376813", "0.53754616", "0.5374173", "0.5369551", "0.53391504", "0.53256965", "0.53123176", "0.5...
0.53850746
12
Stolen from stack overflow
public static String[] createArgsRespectingQuotes(String args) { List<String> tokens = new ArrayList<String>(); StringBuilder sb = new StringBuilder(); boolean insideQuote = false; for (char c : args.toCharArray()) { if (c == '"') insideQuote = !insideQuote; if (c == ' ' && !insideQuote) {//when space is not inside quote split.. tokens.add(sb.toString()); //token is ready, lets add it to list sb.delete(0, sb.length()); //and reset StringBuilder`s content } else sb.append(c);//else add character to token } //lets not forget about last token that doesn't have space after it tokens.add(sb.toString()); String[] array=tokens.toArray(new String[0]); for (int i = 0; i < array.length; ++i) { array[i] = removeChar(array[i],'"'); } array = removeEmpty(array); return array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void kk12() {\n\n\t}", "public abstract int mo9754s();", "private void m50366E() {\n }", "void mo57277b();", "public abstract void mo70713b();", "protected java.util.List x (java.lang.String r1...
[ "0.5497172", "0.53695667", "0.5354823", "0.5334771", "0.5316379", "0.52940845", "0.5293698", "0.52926725", "0.5256881", "0.5237602", "0.5216972", "0.52018225", "0.5197213", "0.5186349", "0.5157498", "0.51515615", "0.5132615", "0.5123842", "0.5102339", "0.50992143", "0.508522"...
0.0
-1
Do nothing! We never initiate.
public void initiate(TelnetClient client) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize() {\n \t// literally do nothing\n }", "public void init() {\r\n // nothing to do\r\n }", "private void initialize() {\n\t\t\n\t}", "private void initialize() {\n\t}", "private void initialize() {\n }", "private void init() {\n\n\t}", "private void init() {\n }"...
[ "0.7690708", "0.74079", "0.7372492", "0.7332235", "0.7254124", "0.7214558", "0.71617055", "0.71141917", "0.71141917", "0.71141917", "0.71141917", "0.7111483", "0.7111483", "0.7111124", "0.7081988", "0.7062624", "0.70620096", "0.7047214", "0.7042304", "0.70371616", "0.70371616...
0.0
-1
Consume an IAC SB SEND IAC SE
public int consumeIncoming(short[] incoming, TelnetClient client) { if (incoming[0] == client.IAC && incoming[1] == client.SB && incoming[2] == getCode() && incoming[3] == SEND && incoming[4] == client.IAC && incoming[5] == client.SE) { // Write our termtype message to our output buffer. try { out.write(new short[] {IAC, SB, getCode(), IS}); String[] names = client.getTerminalModel().getModelName(); if (requests >= names.length) { out.write(names[names.length - 1].getBytes("ASCII")); } else { out.write(names[requests].getBytes("ASCII")); } out.write(new short[] {IAC, SE}); return 6; } catch (Exception ex) {} } else if (incoming[0] == client.IAC && incoming[1] == client.SB && incoming[2] == getCode() && incoming[3] == IS) { // Search for the IAC SE... boolean subEnds = false; int end = 0; for (end = 4; end < incoming.length - 1 && !subEnds; end++) { subEnds = (incoming[end] == client.IAC && incoming[end + 1] == client.SE); } /* if subEnds == true then, * end is the zero-based offset into the array where the second * IAC is located. We need to report that we've read up through * the SE when we're done reading the remote term type. */ // Everything between (IAC SB <code> IS) and (IAC SE) is the terminal type name. if (subEnds) { StringBuffer termName = new StringBuffer(); for (int i = 4; i < end; i++) { termName.append((char)incoming[i]); } return end + 2; } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void received() throws ImsException;", "void recive() throws IOException, TimeoutException, InterruptedException, Exception\n {\n ConnectionFactory connfac = new ConnectionFactory();\n connfac.setHost(hostName);\n connfac.setUsername(\"student\");\n connfac.setPassw...
[ "0.5813285", "0.5725858", "0.5630575", "0.5621462", "0.5620272", "0.56107014", "0.55864316", "0.5571552", "0.5570515", "0.5526295", "0.5490818", "0.54302627", "0.54200846", "0.537324", "0.534283", "0.53203315", "0.5291152", "0.5277312", "0.52539945", "0.5246214", "0.52408326"...
0.5037242
38
Bean Docket All paths All apis
@Bean public Docket api(){ //Enables following endpoints once configured //http://localhost:8080/swagger-ui.html //http://localhost:8080/v2/api-docs return new Docket(DocumentationType.SWAGGER_2) //.apiInfo(ApiInfo.DEFAULT) .apiInfo(DEFAULT_API_INFO) .produces(DEFAULT_PRODUCES_AND_CONSUMES) .consumes(DEFAULT_PRODUCES_AND_CONSUMES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IApiService {\n\n @GET(\"/its/master_halte/{id}\")\n public Data<Station> getSynchListStation(@Path(\"id\") String id);\n\n @GET(\"/its/eta/{koridor}/{id}\")\n public Data<Incoming> getSynchListIncoming(@Path(\"koridor\") String koridor,@Path(\"id\") String id);\n}", "public static v...
[ "0.64115447", "0.62457484", "0.61958116", "0.6174669", "0.6158384", "0.6154405", "0.61429626", "0.60694355", "0.6061859", "0.6058486", "0.6056473", "0.60272413", "0.59918696", "0.5955276", "0.59384835", "0.5933633", "0.592477", "0.5924719", "0.5922303", "0.59154874", "0.59039...
0.57036227
39
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Thread timerThread = new Thread() { public void run() { try { sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } finally { if (user != null) { redireccionar(); }else{ Intent intent = new Intent(SplashScreen.this, Login.class); startActivity(intent); } } } }; timerThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Queue q1 = new ArrayDeque();
public static void main(String[] args) { Queue<QueueData> q1 = new LinkedList<>(); List<String> testArList = new ArrayList<>(); testArList.add(0, "1"); for (int i = 0; i < 10; i++){ // ArrayList의 add와 같은 기능을 가졌다. // 하지만, 자료구조의 특성상, 특정 인덱스에 add하는 메소드는 없다. q1.add(new QueueData(i, (int) (Math.random() * 1000))); } System.out.println(q1); // peek() : 0번째 인덱스 즉 head에 해당하는 데이터를 살펴본다. 해당 데이터가 없을 경우 // null이 출력된다. 검색된 데이터는 삭제되지 않고 그대로 남는다. System.out.println(q1.peek()); System.out.println("peek"); System.out.println(q1); // element() : peek과 동일한 기능을 가졌지만, 차이점은 해당 데이터가 없을때, // 예외처리를 해준다. System.out.println(q1.element()); System.out.println("element"); System.out.println(q1); // Enqueue : 추가 q1.offer(new QueueData(q1.size(), (int) (Math.random() * 1000))); // 실패시 예외발생 System.out.println("offer"); System.out.println(q1); q1.add(new QueueData(q1.size(), (int) (Math.random() * 1000))); // 실패시 false 리턴 System.out.println("add"); System.out.println(q1); // Dequeue : 삭제 q1.remove(); // 삭제 실패시, 예외 발생 System.out.println("remove"); System.out.println(q1); System.out.println("poll"); q1.poll(); // 실패시 false 리턴 System.out.println(q1); // 조건부 삭제 System.out.println("remove if idx % 10 == 0"); q1.removeIf(queueData -> queueData.idx % 10 == 0); System.out.println(q1); // priority Queue(우선순위 큐) // 가장 가중치가 낮은 순서로 poll, peek()을 할 수 있는 자료구조다. // Min Heap로 데이터를 sort 시켜놓고 출력하는 자료구조. // 데이터의 크기를 뒤죽박죽 아무렇게 넣어도 의도에 따라 오름차순 혹은 내림차순으로 // poll(), peek() 할 수 있다. Queue<QueueData> pQueue = new PriorityQueue<>(); pQueue.add(new QueueData(0, (int) (Math.random() * 1000))); pQueue.add(new QueueData(9, (int) (Math.random() * 1000))); pQueue.add(new QueueData(2, (int) (Math.random() * 1000))); pQueue.add(new QueueData(5, (int) (Math.random() * 1000))); pQueue.add(new QueueData(4, (int) (Math.random() * 1000))); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.remove()); // 더이상 삭제할 수 없을 때, 예외처리(프로그램 종료) System.out.println(pQueue.poll()); // 더이상 삭제할 수 없을 때, null 출력 System.out.println(pQueue.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyStack2() {\n q1 = new ArrayDeque<>();\n q2 = new ArrayDeque<>();\n }", "public BlaqDeque(){super();}", "public ArrayDeque() {\n myQ = (T[]) new Object[IDeque.MAX_LENGTH];\n myLength = 0;\n }", "public Deque() {}", "public Deque() {\n size = 0;\n\n }", ...
[ "0.7731993", "0.77095324", "0.76705235", "0.74099934", "0.73998845", "0.7323118", "0.7323118", "0.7281098", "0.7213218", "0.72022533", "0.71981144", "0.715615", "0.713837", "0.713451", "0.7118844", "0.7114697", "0.7107708", "0.71005887", "0.708401", "0.7082075", "0.7080529", ...
0.6980089
28
Toast.makeText(context, "Alarm Triggered", Toast.LENGTH_SHORT).show();
@Override public void onReceive(Context context, Intent intent) { Log.d("ALARMA", "alarma"); AlarmUtils.scheduleAlarmHeartRate(); BleDevice device = new BleDevice(new DeviceManager().getDevice().getMacAddress()); device.connect(); /* while(!device.readSteps(new StepsListener() { @Override public void onStepsRead(int value) { Log.d("ALARMA", value+""); } })){ } */ while(!device.readHeartRate(new HeartRateListener() { @Override public void onHeartRateRead(int value) { Log.d("ALARMA", value+""); Measurement measurement = new Measurement(new SessionManager().getId(), value, currentTimeMillis()/1000); new ApiHelper().uploadHeartRateMeasure(measurement, new SessionManager().getJWT()); } })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void AlarmByNotification(String message) {\n\t\tToast.makeText(this, message, Toast.LENGTH_LONG).show();\r\n\t}", "void alarm(String text);", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LE...
[ "0.7383871", "0.7223413", "0.72178483", "0.7123275", "0.70711863", "0.70711863", "0.7022971", "0.6990934", "0.69046044", "0.68920505", "0.685936", "0.6858748", "0.68491685", "0.67995894", "0.6790868", "0.676973", "0.6742451", "0.67405725", "0.67338735", "0.67319953", "0.67309...
0.0
-1
Derive a secret key from the encryption password
public static Map<String, String> aes256CtrArgon2HMacEncrypt( String plainText, String password) throws Exception { SecureRandom rand = new SecureRandom(); byte[] argon2salt = new byte[16]; rand.nextBytes(argon2salt); // Generate 128-bit salt byte[] argon2hash = Argon2Factory.createAdvanced( Argon2Factory.Argon2Types.ARGON2id).rawHash(16, 1 << 15, 2, password, argon2salt); Key secretKey = new SecretKeySpec(argon2hash, "AES"); // AES encryption: {plaintext + IV + secretKey} -> ciphertext byte[] aesIV = new byte[16]; rand.nextBytes(aesIV); // Generate 128-bit IV (salt) IvParameterSpec ivSpec = new IvParameterSpec(aesIV); Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding"); cipher.init(Cipher.ENCRYPT_MODE, secretKey, ivSpec); byte[] plainTextBytes = plainText.getBytes("utf8"); byte[] cipherBytes = cipher.doFinal(plainTextBytes); // Calculate the MAC of the plaintext with the derived argon2hash Mac mac = Mac.getInstance("HmacSHA256"); Key macKey = new SecretKeySpec(argon2hash, "HmacSHA256"); mac.init(macKey); byte[] hmac = mac.doFinal(plainText.getBytes("utf8")); var encryptedMsg = Map.of( "kdf", "argon2", "kdfSalt", Hex.toHexString(argon2salt), "cipher", "aes-256-ctr", "cipherIV", Hex.toHexString(aesIV), "cipherText", Hex.toHexString(cipherBytes), "mac", Hex.toHexString(hmac) ); return encryptedMsg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSecretByKey(String key);", "java.lang.String getServerSecret();", "private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = p...
[ "0.7311319", "0.7160956", "0.71366006", "0.7088336", "0.6910872", "0.67576295", "0.6738879", "0.6715641", "0.66037184", "0.6575737", "0.6573041", "0.65591407", "0.6535905", "0.65155685", "0.6509055", "0.64869404", "0.64508486", "0.6450635", "0.6418441", "0.6417898", "0.639950...
0.0
-1
Derive the secret key from the encryption password with argon2salt
static String aes256CtrArgon2HMacDecrypt( Map<String, String> encryptedMsg, String password) throws Exception { byte[] argon2salt = Hex.decode(encryptedMsg.get("kdfSalt")); byte[] argon2hash = Argon2Factory.createAdvanced( Argon2Factory.Argon2Types.ARGON2id).rawHash(16, 1 << 15, 2, password, argon2salt); // AES decryption: {cipherText + IV + secretKey} -> plainText byte[] aesIV = Hex.decode(encryptedMsg.get("cipherIV")); IvParameterSpec ivSpec = new IvParameterSpec(aesIV); Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding"); Key secretKey = new SecretKeySpec(argon2hash, "AES"); cipher.init(Cipher.DECRYPT_MODE, secretKey, ivSpec); byte[] cipherTextBytes = Hex.decode(encryptedMsg.get("cipherText")); byte[] plainTextBytes = cipher.doFinal(cipherTextBytes); String plainText = new String(plainTextBytes, "utf8"); // Calculate and check the MAC code: HMAC(plaintext, argon2hash) Mac mac = Mac.getInstance("HmacSHA256"); Key macKey = new SecretKeySpec(argon2hash, "HmacSHA256"); mac.init(macKey); byte[] hmac = mac.doFinal(plainText.getBytes("utf8")); String decodedMac = Hex.toHexString(hmac); String cipherTextMac = encryptedMsg.get("mac"); if (! decodedMac.equals(cipherTextMac)) { throw new InvalidKeyException("MAC does not match: maybe wrong password"); } return plainText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] scryptDeriveKey(byte[] password, byte[] salt) {\n byte[] key = new byte[32];\n Stodium.checkStatus(Sodium.crypto_pwhash_scryptsalsa208sha256_ll(password, password.length, salt, salt.length, 512, 256, 1, key, key.length));\n return key;\n }", "java.lang.String getServerSecre...
[ "0.6896962", "0.6779966", "0.66654", "0.6652962", "0.65570664", "0.6549366", "0.6520689", "0.6507579", "0.649648", "0.6387015", "0.6365622", "0.636127", "0.6324723", "0.62845045", "0.6263431", "0.62470925", "0.623415", "0.62241185", "0.62009126", "0.6199807", "0.6176954", "...
0.0
-1
id=>NUMBER(10) codigo=>VARCHAR2(20) productoId=>NUMBER(10) fechaCreacion=>DATE fechaElaboracion=>DATE fechaVencimiento=>DATE estado=>VARCHAR2(1)
private IDataSet getDataSet() throws IOException, DataSetException { File file = new File("src/test/resources/lote.xml"); IDataSet dataSet = new FlatXmlDataSet(file); return dataSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProd...
[ "0.6550859", "0.5953939", "0.5825299", "0.57794714", "0.57696307", "0.575021", "0.5739182", "0.5713364", "0.5695636", "0.56484497", "0.5610186", "0.5608006", "0.5602231", "0.5597912", "0.5589962", "0.5575891", "0.5564927", "0.5539546", "0.55165684", "0.5515107", "0.5489338", ...
0.0
-1
Gets the value of the id property.
public long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public final String getIdAttribute() {\n return getAttributeValue(\"id\");...
[ "0.84249485", "0.8159817", "0.80093676", "0.7987476", "0.79728025", "0.79675865", "0.79444265", "0.7938365", "0.79383576", "0.79383576", "0.7921156", "0.790411", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.78951883", "0.788810...
0.0
-1
Sets the value of the id property.
public void setId(long value) { this.id = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setId(final int i...
[ "0.85151964", "0.849269", "0.84402037", "0.8436857", "0.8434232", "0.84240294", "0.8416989", "0.8416989", "0.83925897", "0.8388507", "0.83824813", "0.83819836", "0.8380308", "0.8371262", "0.8339339", "0.82933193", "0.8276746", "0.8276746", "0.8271697", "0.8270029", "0.8267477...
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID return ID; case 2: // NAME return NAME; case 3: // ARTISTS return ARTISTS; case 4: // RELEASE_DATE return RELEASE_DATE; case 5: // GENRES return GENRES; case 6: // TRACK_NAMES return TRACK_NAMES; case 7: // TEXT return TEXT; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n ...
[ "0.79869914", "0.7915354", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.77862614", "0.7779145", "0.77291805", "0.7727816", "0.7721567", "0.77125883", "0.77125883", "0.7709597", "0.7708822", "0.7701162", "0.7699386", "0.76957756", "0.7...
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields find...
[ "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.762162...
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache...
[ "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "...
0.7582317
90
Performs a deep copy on other.
public Album(Album other) { if (other.isSetId()) { this.id = other.id; } if (other.isSetName()) { Set<String> __this__name = new HashSet<String>(); for (String other_element : other.name) { __this__name.add(other_element); } this.name = __this__name; } if (other.isSetArtists()) { Set<String> __this__artists = new HashSet<String>(); for (String other_element : other.artists) { __this__artists.add(other_element); } this.artists = __this__artists; } if (other.isSetRelease_date()) { Set<String> __this__release_date = new HashSet<String>(); for (String other_element : other.release_date) { __this__release_date.add(other_element); } this.release_date = __this__release_date; } if (other.isSetGenres()) { Set<String> __this__genres = new HashSet<String>(); for (String other_element : other.genres) { __this__genres.add(other_element); } this.genres = __this__genres; } if (other.isSetTrack_names()) { Set<String> __this__track_names = new HashSet<String>(); for (String other_element : other.track_names) { __this__track_names.add(other_element); } this.track_names = __this__track_names; } if (other.isSetText()) { this.text = other.text; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti...
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", ...
0.0
-1
L'identifiant unique de cet album
public String getId() { return this.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String galleryItemIdentity();", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n ...
[ "0.636904", "0.6119101", "0.6112361", "0.61000276", "0.59971714", "0.59297115", "0.5843476", "0.58405614", "0.5747894", "0.56754845", "0.5667814", "0.56338423", "0.5625195", "0.5624694", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56...
0.0
-1
L'identifiant unique de cet album
public Album setId(String id) { this.id = id; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String galleryItemIdentity();", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n ...
[ "0.6371401", "0.6119936", "0.6110537", "0.610489", "0.5994923", "0.59335226", "0.5843702", "0.58369976", "0.57440645", "0.5672854", "0.56663185", "0.5630191", "0.5626437", "0.56205505", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.561...
0.0
-1
Returns true if field id is set (has been assigned a value) and false otherwise
public boolean isSetId() { return this.id != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field ...
[ "0.7869565", "0.78419304", "0.7609027", "0.75680906", "0.75680906", "0.75680906", "0.75680906", "0.7425691", "0.7407673", "0.7407673", "0.73894197", "0.73213446", "0.73213446", "0.7283694", "0.72741175", "0.72741175", "0.72741175", "0.72741175", "0.72741175", "0.726573", "0.7...
0.69092333
61
Le nom de cet album
public Set<String> getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public String toString() {\n\t\treturn this.albumName;\n\t}", "public String getAlbumName()\n {\n return albumName;\n }", "pu...
[ "0.7663087", "0.7449724", "0.7312252", "0.7297574", "0.70736384", "0.70671886", "0.69288754", "0.6907759", "0.6891807", "0.67566144", "0.6742425", "0.6723794", "0.66883844", "0.65887207", "0.6423489", "0.63884443", "0.63657665", "0.63599735", "0.6305967", "0.6293054", "0.6284...
0.0
-1
Le nom de cet album
public Album setName(Set<String> name) { this.name = name; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public String toString() {\n\t\treturn this.albumName;\n\t}", "public String getAlbumName()\n {\n return albumName;\n }", "pu...
[ "0.7663087", "0.7449724", "0.7312252", "0.7297574", "0.70736384", "0.70671886", "0.69288754", "0.6907759", "0.6891807", "0.67566144", "0.6742425", "0.6723794", "0.66883844", "0.65887207", "0.6423489", "0.63884443", "0.63657665", "0.63599735", "0.6305967", "0.6293054", "0.6284...
0.0
-1
Returns true if field name is set (has been assigned a value) and false otherwise
public boolean isSetName() { return this.name != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean hasName() {\n return fieldSetFlags()[1];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw n...
[ "0.771784", "0.771784", "0.7456578", "0.7455998", "0.7455998", "0.74126655", "0.74126655", "0.7361632", "0.73207796", "0.7294589", "0.7255455", "0.7221491", "0.7221491", "0.7193376", "0.71887517", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", ...
0.70603234
72
Les identifiants uniques des artistes qui ont produit cet album
public Set<String> getArtists() { return this.artists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getArtistId() {\r\n return artistId;\r\n }", "List<Album> getAlbumFromArtiste(Integer artisteId, Integer userId);", "public List<Album> getAlbums(Artist artist);", "public Long getArtistID()\r\n {\r\n return artistID;\r\n }", "public int getArtistID() {\n return ar...
[ "0.62132436", "0.61428326", "0.61325574", "0.6088659", "0.6044957", "0.5909117", "0.58634055", "0.5859839", "0.5814208", "0.574906", "0.5726084", "0.5719803", "0.567887", "0.5678446", "0.56273407", "0.55688024", "0.55434555", "0.55392545", "0.5515966", "0.550912", "0.550912",...
0.56117
15
Les identifiants uniques des artistes qui ont produit cet album
public Album setArtists(Set<String> artists) { this.artists = artists; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getArtistId() {\r\n return artistId;\r\n }", "List<Album> getAlbumFromArtiste(Integer artisteId, Integer userId);", "public List<Album> getAlbums(Artist artist);", "public Long getArtistID()\r\n {\r\n return artistID;\r\n }", "public int getArtistID() {\n return ar...
[ "0.6214235", "0.6141712", "0.6130274", "0.60893744", "0.6045654", "0.59082097", "0.5862821", "0.5858601", "0.581391", "0.5748911", "0.57183266", "0.5678181", "0.56767094", "0.5628016", "0.561093", "0.5570493", "0.5541874", "0.5538359", "0.55146444", "0.55084294", "0.55084294"...
0.5726645
10
Returns true if field artists is set (has been assigned a value) and false otherwise
public boolean isSetArtists() { return this.artists != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isArtist(){return isArtist;}", "public boolean hasArtist(int aid) {\n\t\treturn artists.containsKey(aid);\n\t}", "public Album setArtists(Set<String> artists) {\r\n this.artists = artists;\r\n return this;\r\n }", "public boolean isSetMetadata()\n {\n synchronized (monitor())\...
[ "0.6554021", "0.6155801", "0.6075513", "0.59044784", "0.58748", "0.58739096", "0.5845719", "0.5845719", "0.5800128", "0.5799999", "0.5782988", "0.5751487", "0.57321775", "0.57261837", "0.5721482", "0.57207274", "0.56954575", "0.5691381", "0.56740797", "0.5665774", "0.56451935...
0.810704
0
La date a laquelle cet album a ete lance La date est du format yyyyMMdd'T'HH:mm:ssZZZ Voir la documentation pour plus d'information sur les formats de date
public Set<String> getRelease_date() { return this.release_date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n ...
[ "0.5763889", "0.5401393", "0.53893584", "0.537415", "0.5373031", "0.53721267", "0.5319192", "0.5295602", "0.5287546", "0.52776617", "0.52602845", "0.52426773", "0.52426773", "0.5217382", "0.52144265", "0.51991934", "0.5189338", "0.5183261", "0.51734823", "0.513493", "0.509692...
0.0
-1
La date a laquelle cet album a ete lance La date est du format yyyyMMdd'T'HH:mm:ssZZZ Voir la documentation pour plus d'information sur les formats de date
public Album setRelease_date(Set<String> release_date) { this.release_date = release_date; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n ...
[ "0.5762911", "0.5400802", "0.53869414", "0.53734016", "0.5373001", "0.5371764", "0.531727", "0.52961767", "0.52873975", "0.5277373", "0.5260267", "0.5241821", "0.5241821", "0.521713", "0.52130055", "0.5198215", "0.5188364", "0.51830167", "0.51738787", "0.5135053", "0.5097081"...
0.0
-1
Returns true if field release_date is set (has been assigned a value) and false otherwise
public boolean isSetRelease_date() { return this.release_date != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetRelease_date() {\n return this.release_date != null;\n }", "@JsonIgnore\r\n public boolean hasSetReleaseDate() {\r\n return hasSetReleaseDate;\r\n }", "boolean hasAcquireDate();", "public boolean isSetPublish_date() {\n return this.publish_date != null;\n }", ...
[ "0.89791584", "0.77577674", "0.7076767", "0.706642", "0.69555426", "0.6885262", "0.6885262", "0.68211776", "0.6820459", "0.6751786", "0.6747703", "0.67085874", "0.6695253", "0.66568774", "0.6611655", "0.66030854", "0.65663123", "0.65663123", "0.656286", "0.65003914", "0.64791...
0.89724135
1
Les genre musicaux de cet album
public Set<String> getGenres() { return this.genres; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }", "public void setGenre(String genre) {\n this.genre = genre;\...
[ "0.6763317", "0.6719913", "0.66923887", "0.66463906", "0.6600217", "0.6600217", "0.65788746", "0.6569102", "0.653495", "0.6476763", "0.6472853", "0.6472853", "0.64399546", "0.6360949", "0.6316502", "0.6316001", "0.62796646", "0.62796646", "0.6272375", "0.6262704", "0.62141013...
0.582569
42
Les genre musicaux de cet album
public Album setGenres(Set<String> genres) { this.genres = genres; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }", "public void setGenre(String genre) {\n this.genre = genre;\...
[ "0.6762547", "0.6719366", "0.6691899", "0.6645457", "0.659959", "0.659959", "0.6578527", "0.65687245", "0.6534779", "0.64771974", "0.64723057", "0.64723057", "0.643984", "0.63606167", "0.63149536", "0.6278782", "0.6278782", "0.62719554", "0.62622505", "0.62131697", "0.6211654...
0.63150895
14
Returns true if field genres is set (has been assigned a value) and false otherwise
public boolean isSetGenres() { return this.genres != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetGenres() {\n return this.genres != null;\n }", "public boolean hasPictureGenre() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasPictureGenre() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetGenbank()...
[ "0.84847933", "0.6971722", "0.69334483", "0.6813787", "0.6802116", "0.6518768", "0.64196956", "0.6309347", "0.6280978", "0.62455344", "0.6231693", "0.61907995", "0.6180766", "0.6132812", "0.6124832", "0.6124832", "0.61221063", "0.6114903", "0.6031604", "0.60156286", "0.600692...
0.8438703
1
Les titres des chansons sur cet album
public Set<String> getTrack_names() { return this.track_names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "java.lang.String getTitle();", "java.lang.String getTitl...
[ "0.71814567", "0.7094571", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.67710656", "0.6714656", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", ...
0.0
-1
Les titres des chansons sur cet album
public Album setTrack_names(Set<String> track_names) { this.track_names = track_names; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "java.lang.String getTitle();", "java.lang.String getTitl...
[ "0.71814567", "0.7094571", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.67710656", "0.6714656", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", ...
0.0
-1
Returns true if field track_names is set (has been assigned a value) and false otherwise
public boolean isSetTrack_names() { return this.track_names != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetNames() {\n return this.names != null;\n }", "public boolean isSetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAMEDANNOTTRACK$38) != 0;\r\n }\r\...
[ "0.686053", "0.6833472", "0.63845134", "0.61962336", "0.61512125", "0.6110976", "0.60979843", "0.6068947", "0.6068947", "0.6051339", "0.6045103", "0.60269517", "0.6020223", "0.5995987", "0.59709406", "0.5925214", "0.5909275", "0.59063834", "0.58688444", "0.58530533", "0.58352...
0.8508908
0
La description de cet album. La description est extraite de Wikipedia et contient de la syntaxe Mediawiki
public String getText() { return this.text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo...
[ "0.6609474", "0.64808494", "0.64388424", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.63747...
0.0
-1
La description de cet album. La description est extraite de Wikipedia et contient de la syntaxe Mediawiki
public Album setText(String text) { this.text = text; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo...
[ "0.66080225", "0.6479853", "0.64373976", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.63...
0.0
-1
Returns true if field text is set (has been assigned a value) and false otherwise
public boolean isSetText() { return this.text != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetFi...
[ "0.7541731", "0.7526784", "0.75057566", "0.75057566", "0.74317765", "0.709548", "0.70288384", "0.7011679", "0.69644994", "0.6907379", "0.68655246", "0.68457085", "0.6830692", "0.68117344", "0.6811571", "0.67032564", "0.667429", "0.6641774", "0.6622963", "0.6620911", "0.659228...
0.7116472
5
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ID: return isSetId(); case NAME: return isSetName(); case ARTISTS: return isSetArtists(); case RELEASE_DATE: return isSetRelease_date(); case GENRES: return isSetGenres(); case TRACK_NAMES: return isSetTrack_names(); case TEXT: return isSetText(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ...
[ "0.7907901", "0.7907901", "0.7833246", "0.78040636", "0.7793545", "0.77811927", "0.77811927", "0.77811927", "0.77811927", "0.76476574", "0.75487775", "0.75456387", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0...
0.73584396
81
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol...
[ "0.75401354", "0.74719286", "0.7333375", "0.7304861", "0.72982836", "0.729518", "0.72577775", "0.7225706", "0.71371984", "0.7129901", "0.7116786", "0.7092598", "0.70728713", "0.70518136", "0.70367175", "0.70314413", "0.69580764", "0.690188", "0.68602306", "0.6692948", "0.6679...
0.0
-1
Takes the note and duration and adds them to the variable
public Note(char n, int dur) { note = n; duration = dur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n ...
[ "0.68381524", "0.6723301", "0.6677108", "0.6597617", "0.6374146", "0.6294225", "0.6201427", "0.6151268", "0.6086837", "0.6049343", "0.60483634", "0.60184276", "0.6018174", "0.6005242", "0.59572136", "0.5931135", "0.5923843", "0.59191865", "0.58596087", "0.58596087", "0.585724...
0.5983396
14
Returns the note value, duration and note name
@Override public String toString() { return note + " " + duration + (duration == 1 ? " Quaver" : " Crotchet"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String get_note()\n {\n return note;\n }", "public Double getNote()\r\n {\r\n return note;\r\n }", "java.lang.String getNotes();", "java.lang.String getNotes();", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNote() {\r\n return note; \r\n ...
[ "0.66896605", "0.66523755", "0.6601166", "0.6601166", "0.6594496", "0.6581612", "0.6572958", "0.6572958", "0.65712327", "0.6561788", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0....
0.68542784
0
une methode de l'objet
private String formulerMonNom() { return "Je m'appelle " + this.nom; // appel de la propriété nom }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "Objet getObjetAlloue();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void operacao();", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void funct...
[ "0.6988119", "0.6606684", "0.6601308", "0.6454696", "0.63857603", "0.63762283", "0.63711435", "0.63711435", "0.6343363", "0.63414186", "0.6300578", "0.6288817", "0.6278458", "0.62576747", "0.62571156", "0.62220937", "0.6211353", "0.62065905", "0.61614233", "0.61551535", "0.61...
0.0
-1
une methode de l'objet
public void parler() { System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet System.out.println("Je suis un animal et j'ai " + this.nombreDePatte + " pattes"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "Objet getObjetAlloue();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void operacao();", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void funct...
[ "0.69877046", "0.6607568", "0.6601215", "0.64545727", "0.6385349", "0.6376459", "0.63715535", "0.63715535", "0.6343694", "0.63413596", "0.6301061", "0.6289347", "0.6278468", "0.62581563", "0.62568974", "0.62229747", "0.6210616", "0.62065023", "0.61619407", "0.6157058", "0.614...
0.0
-1
une methode de la classe
public static void afficherNombreDAnimaux() { System.out.println("**************************"); System.out.println("Il y a " + totalNumber + " animaux"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }"...
[ "0.7321068", "0.7126594", "0.6936388", "0.6900602", "0.6900602", "0.68693596", "0.68636197", "0.6852336", "0.68184376", "0.6817924", "0.68024385", "0.6723292", "0.671767", "0.66798043", "0.6667153", "0.6657298", "0.6643424", "0.6642182", "0.6625154", "0.66244537", "0.661797",...
0.0
-1
TODO Autogenerated method stub
@Override public LovServiceResponse getLovDetails() { LovServiceResponse l_res = new LovServiceResponse(); List<LovDetail> l_lovList=null; List<LovVO> l_lovVoList=new ArrayList<LovVO>(); LovVO l_lovVo = null; try { l_lovList = lovDao.getLovDetails(); for(LovDetail l_etity : l_lovList ){ l_lovVo = new LovVO(l_etity); BeanUtils.copyProperties(l_etity, l_lovVo); l_lovVoList.add(l_lovVo); } l_res.setLovList(l_lovVoList); l_res.setStatus(true); }catch(DataAccessException e){ throw new ServiceException("DataAccessException while fetch lov data",e); } catch (Exception e) { throw new ServiceException("Unhandled Exception while fetch lov data",e); } return l_res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
intent from this Activity to first activity begin animation from right to left code in res anim
@Override public void run() { Intent intent = new Intent(getApplicationContext(), FirstActivity.class); startActivity(intent); overridePendingTransition(R.anim.enter_from_right, R.anim.exit_out_left); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnext.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Truck.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.right_in,R.anim.left_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n\tpublic void s...
[ "0.7260109", "0.69661474", "0.67522925", "0.66841614", "0.66249216", "0.66071445", "0.6576762", "0.65568066", "0.6496857", "0.6463503", "0.6435677", "0.64316076", "0.6389182", "0.6379256", "0.6364137", "0.63388455", "0.6303034", "0.6297279", "0.62741727", "0.6271592", "0.6270...
0.7369129
0
TODO Autogenerated method stub
@Override protected void onDestroy() { handler.removeCallbacks(run); super.onDestroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Function : SortAnimationPanel Use : constructor to call JPanel class Parameter : Nothing Returns : Nothing
SortAnimationPanel() { super(); // calling super class constructor super.setPreferredSize(new Dimension(400,400)); super.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }", "public AnimationPanel() {\n initComponen...
[ "0.62388057", "0.62353283", "0.6174811", "0.6092553", "0.6081535", "0.6021102", "0.60034066", "0.59871304", "0.59734917", "0.5968354", "0.5892975", "0.58504987", "0.58463174", "0.5834624", "0.5833571", "0.5829145", "0.58202845", "0.577977", "0.57788944", "0.57788944", "0.5778...
0.73651457
0
Function : populateArray Use : creates random values and assign to array Parameter : Nothing Returns : Nothing
public void populateArray() { Random rand = new Random(); // calling random class to generate random numbers randInt = new int[this.getWidth()]; // initializing array to its panel width rand.setSeed(System.currentTimeMillis()); for(int i = 0; i < this.getWidth();i++) // assigning the random values to array { randInt[i] = rand.nextInt(this.getHeight() -1) + 1; } this.repaint(); // calling paint method }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = d...
[ "0.72123504", "0.71692795", "0.7063595", "0.6946259", "0.69341314", "0.69087887", "0.6768701", "0.67468333", "0.6742314", "0.6733746", "0.6726967", "0.6691213", "0.6686535", "0.6656436", "0.6555777", "0.65544796", "0.64792264", "0.64678186", "0.64646316", "0.64567333", "0.643...
0.68737245
6
Function : paintComponent Use : paint the component using graphics Parameter : Graphics object Returns : Nothing
@Override protected void paintComponent(Graphics g) { super.paintComponent(g); //calling paintComponent method g.clearRect(this.getX(),this.getY(),this.getWidth(),this.getHeight()); g.fillRect(this.getX(),this.getY(),this.getWidth(),this.getHeight()); g.setColor(Color.BLACK); this.repaint(); if(randInt==null) return; //check if array is null for(int i = 0;i <this.getWidth();i++) // drawing the lines using graphics { g.setColor(Color.RED); g.drawLine(i,randInt[i],i,this.getHeight() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintComponent(Graphics g);", "public void paintComponent(Graphics g)\r\n\t{\n\t}", "void paintComponent(Graphics g);", "@Override //paint component is overridden to allow super.paintCompnent to be called\r\n public void paintComponent(Graphics g) {\n \tsuper.paintComponent(g); //The super....
[ "0.8168317", "0.8025027", "0.802444", "0.79677856", "0.79393387", "0.78234065", "0.76889354", "0.76879615", "0.7620151", "0.76031077", "0.7587732", "0.75847363", "0.75536245", "0.75536245", "0.7540554", "0.7524253", "0.75003105", "0.75003105", "0.74645776", "0.74543524", "0.7...
0.0
-1
Function : intializeThread Use : intialize the thread Parameter : String object Returns : Nothing
public void intializeThread(String algorithm) { thread = new Thread(this); // creating a new thread thread.start(); // starting a thread this.comboAlgorithm = algorithm; this.setThreadState(); // calling the thread state method }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "private static native Object setupMainThread0(Object thread);", "public void createThread() {\n }", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "private ThreadUtil() {\n \n }", "private void s...
[ "0.6406906", "0.62511355", "0.6236923", "0.6064522", "0.6025955", "0.5990925", "0.5962963", "0.5941425", "0.5931264", "0.5906596", "0.58750576", "0.58657867", "0.584907", "0.5841538", "0.583932", "0.58318514", "0.5827838", "0.5738343", "0.57376504", "0.56940573", "0.5678548",...
0.67562366
0
Function : setThreadState() Use : setting the thread state after the sort completes Parameter : Nothing Returns : Nothing
public void setThreadState() { synchronized(pauseLock) { try { while(suspended) { pauseLock.wait(); //waiting the thread if the thread in suspended state } if(paused) pauseLock.wait(); //will make thread to block until notify is called } catch(InterruptedException e) { System.out.println("Exception occured" + e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort()throws InterruptedException{\n\t\tfor (int i = 0; i < a.length - 1; i++) {\n\t\t\tint minPos = minPosition(i);\n\t\t\tsortStateLock.lock();\n\t\t\ttry{\n\t\t\t\tswap(minPos, i);\n\t\t\t\t// For animation\n\t\t\t\talreadySorted = i;\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tsortStateLock.unlock();\n\t\t \...
[ "0.64654565", "0.6241374", "0.6016782", "0.5979919", "0.59258515", "0.59142643", "0.5907611", "0.58625835", "0.5838344", "0.5807298", "0.57850134", "0.5716586", "0.54928845", "0.5490198", "0.5427026", "0.5411281", "0.5410571", "0.54052806", "0.53678083", "0.53115356", "0.5290...
0.55038095
12
Function : run Use : thread to execute Parameter : Nothing Returns : Nothing
public void run() { // checking for appropriate sorting algorithm if(comboAlgorithm.equals("Shell Sort")) { this.shellSort(randInt); } if(comboAlgorithm.equals("Selection Sort")) { this.selectionSort(randInt); } if(comboAlgorithm.equals("Insertion Sort")) { this.insertionSort(randInt); } if(comboAlgorithm.equals("Bubble Sort")) { this.bubbleSort(randInt); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n //logic to execute in a thread \n }", "public static void run(){}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "void r...
[ "0.7623069", "0.71636546", "0.7087338", "0.6999483", "0.6999483", "0.6999483", "0.6999483", "0.6999483", "0.6898509", "0.6898509", "0.6898509", "0.6898509", "0.6896329", "0.6842912", "0.6828863", "0.6817432", "0.6782176", "0.6774684", "0.6748725", "0.6741916", "0.6739058", ...
0.0
-1
Function : selectionSort Use : sorting the algorithm using appropraite selections Parameter : array of random values Returns : sorted array
public int[] selectionSort(int[] arr) { try { for (int i = 0; i < arr.length - 1; i++) //looping over the array to sort the elements { int index = i; for (int j = i + 1; j < arr.length; j++) if(!orderPanel) // checking for Descending order { if (arr[j] < arr[index]) index = j; } else { if (arr[j] > arr[index]) //checking for Aescending order index = j; } int smallerNumber = arr[index]; arr[index] = arr[i]; arr[i] = smallerNumber; //swapping the values thread.sleep(100); repaint(); this.setThreadState(); } } catch(Exception e) { System.out.println("Exception occured " + e); } return arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n...
[ "0.77528894", "0.76205856", "0.75722533", "0.75445825", "0.74927914", "0.74708277", "0.74319303", "0.7426419", "0.7344428", "0.7335507", "0.72796565", "0.72740823", "0.72596663", "0.72581106", "0.72393626", "0.7212158", "0.72115034", "0.71894634", "0.71688604", "0.7164569", "...
0.71256894
24
Function : insertionSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void insertionSort(int[] arr) { int i, j, newValue; try { //looping over the array to sort the elements for (i = 1; i < arr.length; i++) { thread.sleep(100); newValue = arr[i]; j = i; if(!orderPanel) //condition for Descending order { while (j > 0 && arr[j - 1] > newValue) { arr[j] = arr[j - 1]; // swapping the elements repaint(); // painting the GUI this.setThreadState(); j--; } } else // condition for Ascending order { while (j > 0 && arr[j - 1] < newValue) { arr[j] = arr[j - 1]; repaint(); // painting the GUI this.setThreadState(); j--; } } arr[j] = newValue; } } catch(Exception e) { System.out.println("Exception occured" + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\...
[ "0.7879154", "0.77348393", "0.7723858", "0.7722332", "0.76204985", "0.75437915", "0.7525441", "0.749391", "0.7476918", "0.7470727", "0.7454716", "0.73804975", "0.7363349", "0.73600554", "0.7327602", "0.73185825", "0.72993386", "0.7297956", "0.7285108", "0.7254811", "0.7247926...
0.67388535
67
Function : bubbleSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void bubbleSort(int [] intArray) { int n = intArray.length; int temp = 0; try { for(int i=0; i < n; i++) { thread.sleep(100); //sleep the thread to particular to view the results in panel this.setThreadState(); for(int j=1; j < (n-i); j++) { if(!orderPanel) //check for Descending order { if(intArray[j-1] > intArray[j]) { //swap the elements! temp = intArray[j-1]; intArray[j-1] = intArray[j]; intArray[j] = temp; repaint(); } } else if(intArray[j-1] < intArray[j]) //check for Ascending order { temp = intArray[j-1]; intArray[j-1] = intArray[j]; intArray[j] = temp; repaint(); } } } } catch(Exception e) { System.out.println("Exception occured" + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n ...
[ "0.7369574", "0.7248795", "0.70550174", "0.7032679", "0.70109886", "0.70084554", "0.698109", "0.6930369", "0.6889616", "0.68807507", "0.6832329", "0.6803587", "0.67732716", "0.6767851", "0.67439324", "0.6742622", "0.6740008", "0.6739681", "0.6732426", "0.6729889", "0.67049384...
0.0
-1
Function : bubbleSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void shellSort(int[] a) { int increment = a.length / 2; while (increment > 0) { for (int i = increment; i < a.length; i++) //looping over the array { int j = i; int temp = a[i]; // swapping the values to a temporary array try { if(!orderPanel) // checking for Descending order { while (j >= increment && a[j - increment] > temp) { a[j] = a[j - increment]; //swapping the values thread.sleep(100); repaint(); this.setThreadState(); j = j - increment; } } else { while (j >= increment && a[j - increment] < temp) //checking for Ascending order { a[j] = a[j - increment]; thread.sleep(200); repaint(); this.setThreadState(); j = j - increment; } } } catch(Exception e) { System.out.println("Exception occured" + e); } a[j] = temp; } if (increment == 2) { increment = 1; } else { increment *= (5.0 / 11); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n ...
[ "0.73693264", "0.7250332", "0.7055143", "0.7033051", "0.70113415", "0.7008331", "0.69815826", "0.6930434", "0.68896866", "0.68813", "0.68313223", "0.68035865", "0.6773315", "0.67668176", "0.67439187", "0.6741592", "0.67402005", "0.6739622", "0.67313385", "0.67297554", "0.6705...
0.0
-1
Function : checkPaused() Use : pausing the thread Parameter : nothing Returns : nothing
public void checkPaused() { paused = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkPaused() {\n\t\twhile (paused) {\n\t\t\ttry {\n\t\t\t\tthis.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public boolean isPaused();", "public void checkPause();", "synchronized void paus...
[ "0.81235105", "0.75843203", "0.75701714", "0.7380518", "0.7303571", "0.7301676", "0.7232004", "0.72225845", "0.7222423", "0.7206456", "0.71781325", "0.71748394", "0.7070143", "0.7070143", "0.70282793", "0.70204777", "0.6940402", "0.6886253", "0.6871021", "0.6846894", "0.68352...
0.81835973
0