query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
assert Debug.debug ("WRITE: VALUE_NUMBER: (BigDecimal)" + value); | @Override
public JsonGenerator write (BigDecimal value)
{
if (m_state != GeneratorState.IN_ARRAY)
throw new JsonGenerationException (ErrorMessage.notInArrayContext);
if (m_useDouble)
return writeValue (value.doubleValue ());
return writeValue (value.toString ());
} | [
"public abstract void writeNumber(BigDecimal paramBigDecimal)\n/* */ throws IOException;",
"A serializeNumber(BigDecimal value, DecimalSerializableType type);",
"private Num(BigDecimal value){\n\t\tthis.value = value;\n\t}",
"public java.math.BigDecimal toBigDecimal() { throw new RuntimeException(\"S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int getCount() {
return data_room1.size();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for bad function. | public BadFunc(String name, Formula... args) {
super(args);
funcName = name;
} | [
"public BadParamException() {\n super();\n }",
"@Test\n public void normalConstructor() {\n Assert.assertThrows(DateTimeParseException.class, () -> new Deadline(31, 2, 2012));\n\n // valid date -> expected to Not throw any Exceptions\n try {\n new Deadline(Integer.pars... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int deleteById(int pid) {
Connection conn = this.connectionManager.openConnection();
TransactionManager.conn=conn;
TransactionManager.beginTransaction();
String strSQL="delete from praise where pid=?";
Object[] params = new Object[]{pid};
int affectedRows = this.dbUtils.execOthers(conn, st... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XFunctionTypeRef__Group__1" $ANTLR start "rule__XFunctionTypeRef__Group__1__Impl" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:14994:1: rule__XFunctionTypeRef__Group__1__Impl : ( '=>' ) ; | public final void rule__XFunctionTypeRef__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:14998:1: ( ( '... | [
"public final void rule__XFunctionTypeRef__Group_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:25292:1: ( rule__XFunctionTypeRef__Group_0_1__1__Imp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
{
double x;
x = 100.1;
System.out.println(x);
x += 10.2; //Line A
System.out.println(x);
x +=20.3; //Line B
System.out.println(x);
}
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the FunctionName for a CAST operation and mark it as used. The function has 2 parameters (THIS, classIndex) and returns THIS or throw an exception. | @Nonnull
SyntheticFunctionName getCast() {
SyntheticFunctionName name = cast;
if( name == null ) {
cast = name = types.createCast();
functions.markAsNeeded( name, !name.istStatic() );
getInstanceOf();
}
return name;
} | [
"public Function getFunctionCast(Term term1, Term term2);",
"private ICLine genCastOperation(CASTNode castNode) {\n Node child = castNode.getChild(0);\n char objectType = this.determineObjectTypeForNode(castNode); // Type to cast to for tempName\n // Determine the cast type for the ICCast obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
:TRANSFORMATION OPERATION :QualifyRuleSet( VIEW mSARuleS BASED ON LOD mSARuleS, : VIEW mSAProf BASED ON LOD mSAProf, : VIEW mPerson BASED ON LOD mPerson ) : : VIEW mSARule BASED ON LOD mSARule | public int
omSARuleS_QualifyRuleSet( View mSARuleS,
View mSAProf,
View mPerson )
{
zVIEW mSARule = new zVIEW( );
//:VIEW mChildSARuleS BASED ON LOD mSARuleS
zVIEW mChildSARuleS = new zVIEW( );
//:VIEW mSAProfTEST BASED ON LOD m... | [
"void setRuleSet(RuleSet ruleSet);",
"io.automatiko.engine.workflow.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode getRuleSet();",
"@Test\r\n\tpublic void testsetRule() throws BadRuleDefinitionException{\r\n\t\tString rule = \"has exactly 2 ( TPMT_star_2 or TPMT_star_3A or TPMT_st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// end (Approach 1) // start(Approach 2) 20200407, refer to Your runtime beats 90.97 % of java submissions | public List<List<String>> partition(String s) {
List<List<String>> res = new ArrayList<>();
if (s.length() == 0) {
return res;
}
/// =================head(check palindrome)========
boolean[][] dp = new boolean[s.length()][s.length()];
for (int len = 1; len <= s.length(); len++) {
fo... | [
"protected void method_5557() {}",
"private static void EX5() {\n\t\t\r\n\t}",
"protected void mo4791d() {\n }",
"public abstract void mo17847T2();",
"public static void Q22()\r\n\t{\r\n\t}",
"public void mo26342c() {\n }",
"public void method_4250() {}",
"public int method_5482() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get list polices by individual Sub Event | @Override
public List<Police> getAllPolicesOfSubEvent(Long subEventId) {
List<Police> polices = subEventRepository.getAllPolicesOfSubEvent(subEventId);
return polices;
} | [
"@GET\n\t@Path(\"/selectevenlistener\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response eventsListenerSelectItem() {\n\t\tArrayList<SlugItem> listArrayReturn = new ArrayList<SlugItem>();\n\t\t\n\t\t//Event list --------------------------------------------------------------------------------\n\t\tSlugIte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
limpar campos da tabela da aba 2 | private void limparCamposAbaDois() {
this.tfQuantidade.setText("");
this.tfValorProduto.setText("");
this.tfValorTotal.setText("");
this.tfObservacao.setText("");
} | [
"private void makeModelTableItems(){\n DefaultTableModel mod;\n String[] columnas = {\"ID\",\"Nombre\",\"Precio\"};\n String[] filas = new String[3];\n mod = new DefaultTableModel(null,columnas){\n public boolean isCellEditable(int row, int column) {\n return fa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add new topics to timestepTopics according to changes in word vectors exceeding threshold | private ArrayList<List<Float>> computeTopics(ArrayList<List<Float>> allNewTopics,
final ArrayList<Integer> pointsOfChange,
final float[][] timestepTopics,
final int topicId)
{
// list of existing topic and possible spinoffs
ArrayList<List<Float> > newTopics = new ArrayList<List<Float> >();
// newTopics... | [
"public List<TopicDocListWithThetaThreshold> topicCorrespondDocListWithThetaThreshold(ThetaThreshold tt, int topicNum);",
"private List<String> selectImportantTerms(double[][] s, double threshold){\n int i=0;\n while (s[i][i] > threshold && i < s.length){\n i++;\n }\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Receives callback from color chooser dialog | @Override
public void onColorSelection(@NonNull ColorChooserDialog dialog, @ColorInt int color) {
if (dialog.isAccentMode()) {
accentPreselect = color;
ThemeSingleton.get().positiveColor = DialogUtils.getActionTextStateList(this, color);
ThemeSingleton.get().neutralColor = DialogUtils.getActionTextStateList... | [
"private void callColourChooser(Component c){\n JColorChooser chooser = new JColorChooser();\n\n ActionListener okayListener = e -> c.setBackground(chooser.getColor());\n ActionListener cancelListener = e -> dialog.dispose();\n dialog = JColorChooser.createDialog(this, \"Pick a Colour\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 158 /Coverage entropy=2.154660013802557 | @Test(timeout = 4000)
public void test158() throws Throwable {
StringReader stringReader0 = new StringReader("extendD");
JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 87, 1817);
JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);
... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that prints the highest Earner once it's been returned by the getHighestEarner() method. Keeping print separate from the get so the method may be reused later. | public void printHighestEarner() {
Employee highestEarner = getHighestEarner();
StdOut.println("-------------");
StdOut.println("HIGHEST EARNER");
StdOut.println("-------------");
StdOut.println();
StdOut.println("Highest Earner is: " + highestEarner.getFirstName());
StdOut.print(" with E" + highestEarne... | [
"public void bestGrade() {\r\n float max = students.get(0).getGrade();\r\n for (int i = 1; i < students.size(); i++) {\r\n if (max < students.get(i).getGrade()) {\r\n max = students.get(i).getGrade();\r\n }\r\n\r\n }\r\n System.out.println(\"\\nbest g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onAccuracyChanged(Sensor sensor, int accuracy) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of NumberOfHours | public void setNumberOfHours(int NumberOfHours) {
this.NumberOfHours = NumberOfHours;
} | [
"public void setHours(Double nHours) {\n this.hours = nHours;\n }",
"public void setHours(int hr){\n\t\thours = hr;\n\t}",
"public void setNbHours(int nbHours)\r\n {\r\n this.nbHours = nbHours;\r\n }",
"public void setHours(int hours) {\n this.hours = hours;\n this.updateE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove all the cookies. | public void clear() {// TODO: should this call super.clear()?
log.debug("Clear all cookies from store");
setProperty(new CollectionProperty(COOKIES, new ArrayList()));
} | [
"public static void deleteAllCookies() {\n getDriver().manage().deleteAllCookies();\n }",
"public void removeAllCookies() {\r\n cookieStore.removeAll();\r\n }",
"public static void clearCookies() {\n driver.manage().deleteAllCookies();\n }",
"public static void deleteAllCookies(HttpSer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the Project Button | public ProjectButton(Project theProject) {
super(theProject.toString());
myProject = theProject;
} | [
"public ProjectElement() {project = this; }",
"public KButton() {\n // TODO codavaj!!\n }",
"public Project(){\n this(\"First Project\", \"Project description here\");\n System.out.println(this);\n }",
"public AddProjectMenu() {\n initComponents();\n }",
"public Button () {\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use firstName and lastName as identifier to locate a person and delete it. | public Boolean deletePerson(Person person) {
if (person.getFirstName() != null && person.getLastName() != null) {
for (Person aPerson : this.getAllPersons()) {
if (person.getFirstName().equals(aPerson.getFirstName())
&& person.getLastName().equals(aPerson.getL... | [
"public void deletePerson(String firstName, String lastName) {\n\t\tPerson deletePerson = findPerson(firstName, lastName);\n\t\tpersonList.remove(deletePerson);\n\t}",
"public static void delete(int id, String firstName, String secondName) throws SQLException {\r\n\r\n\t\tConnection database = DriverManager.getCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the computer's score | public int getComputerScore()
{
return computerScore;
} | [
"public int getComputerScore() {\n return computer.getScore();\n }",
"public int getComputerScore()\n {\n return computerScore;\n }",
"public int getScore() {\n score = Pa9A.convertStringToInt();\n return score;\n }",
"public int score()\r\n\t{\r\n\t\treturn score;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column OP.T_CM_MAC.PENALTY | public Integer getPenalty() {
return penalty;
} | [
"public BigDecimal getPENALTY() {\r\n return PENALTY;\r\n }",
"public void setPENALTY(BigDecimal PENALTY) {\r\n this.PENALTY = PENALTY;\r\n }",
"public Number getBalncinseamqty() {\n return (Number) getAttributeInternal(BALNCINSEAMQTY);\n }",
"public BigDecimal getTbCommissionAmo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method is used for sending communication request to the server | public static void createCommunicationReqeust(Context context,
String url,
String userId,
Button finalResultButton,
Stri... | [
"public void sendRequest(){\n }",
"abstract void sendRequest();",
"public void send() {\n\t\t\r\n\t}",
"private void sendRequest() {\n ClientAsyncTask clientASTx = new ClientAsyncTask();\n clientASTx.execute(new String[]{SERVER_IP, SERVER_PORT, qrComplement + qrResult}); // Send string \"qrCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property affIdStatus. | public java.lang.String getAffIdStatus() {
return affIdStatus;
} | [
"public String getAffIdTypeProperty() {\n return affIdTypeProperty;\n }",
"public int getStatusID() {\n return statusID;\n }",
"public Integer getAffiliateStatus() {\n return affiliateStatus;\n }",
"public Integer statusId() {\n return this.statusId;\n }",
"public Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an indication subscription in the CIMOM for the given filter. | protected CIMObjectPath createSubscription(CimFilterInfo filterInfo) throws WBEMException,
ConnectionManagerException {
CIMObjectPath filterPath;
if (filterInfo instanceof CimManagedFilterInfo) {
filterPath = createFilter((CimManagedFilterInfo) filterInfo);
} else {
... | [
"int encode_createSubscription(OutTransport out, String stream,\n String filter, String startTime, String stopTime) {\n final String prefix = Element.defaultPrefixes\n .nsToPrefix(Capabilities.NS_NOTIFICATION);\n final String ncn = mk_prefix_colon(prefix... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language. | short getShort(String columnLabel) throws SQLException; | [
"public final short getShort() throws SQLException {\n\t\treturn this.result.getShort(++this.index);\n\t}",
"@Override\n public short getShort(int columnIndex) throws SQLException {\n return (short) get(columnIndex);\n }",
"public short getShort() throws SQLException;",
"public short readShort() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Member member = memberRepository.findByEmail(signUpForm.getEmail()); | public void sendMail(Member member) {
generationToken(member);
// memberRepository.save(member);
SimpleMailMessage mailMessage = new SimpleMailMessage();
mailMessage.setTo(member.getEmail());
mailMessage.setSubject("메일 인증 발송");
mailMessage.setText("/check-email-token?token="+member.getEmailCheckToken()+"&ema... | [
"MemberDTO findByEmail(String email);",
"public User getUserByEmail(String email) ;",
"User findByEmailUser(String email);",
"@Test\r\n public void createAndRetrieveUser() {\n \tnew Member(\"Ena\", 20, \"marianne.arigno@gmail.com\",\"makeup\").save();\r\n \t\r\n \t//retrieve the user using email\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructing the class, receiving and setting ipaddress, port for the connection. | public ClientController(String ip, int port, String name){
pcs = new PropertyChangeSupport(this);
this.ip = ip;
this.port = port;
view = new MainView(this, name);
} | [
"private Socket() {\n\t\t\tcontrol = new TcpControlBlock();\n\t\t\trecv_IP_packet = control.createIPPacket();\n\t\t\tcontrol.tcb_local_ip_addr = ip.getLocalAddress().getAddress();\n\t\t}",
"public TCPListener(){}",
"void addrInit() {\n\t\tremoteAddress = new NetAddress(remoteAddrString, sendPort);\r\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
e^2 = 23,07077154753849 e20 Bohr (cm) = 5,2917721092e9 k (in SGS) = 1,3806488 e16 U = e^2 / (r Bohr k) => converted potential coeff. = e^2 / 7,30607881244045 (e+5) = 3,15775016117465 e+5 = e+6/ 3,1668116505709 = 315775,01611746440408 | protected final double getPotential(double r, boolean attraction) {
if (attraction) // ion-electron
{
if (r < LACING_POINT) {
// 100 K, lvl 10-30 pseudo potential
return -24.836465138387798 + 1.6042494381847763 * pow(r, 0.3);
} else {
... | [
"public void calcPoundsCO2FromGas()\n {\n myPoundsCO2FromGas = myGallonsUsed*2000*(8.78E-3);\n }",
"public void calcTonsCO2()\n {\n myTonsCO2 = (8.78 * Math.pow(10, -3)) * myGallonsUsed; //This is a formula used to calculate the ammount of CO2 generated by a certain ammount of petrol\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the transparency used when painting this node. Note that this transparency is also applied to all of the node's descendants. | public float getTransparency() {
return transparency;
} | [
"public float getTransparency() {\n\t\treturn this.transparency;\n\t}",
"public Number getOpacity() {\n return opacity;\n }",
"public float getOpacity() {\r\n return getAttributeAsFloat(\"opacity\");\r\n }",
"public Double getOpacity() {\n Double opacity = Double.parseDouble(this.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 212 /Coverage entropy=1.7917594692280554 | @Test(timeout = 4000)
public void test212() throws Throwable {
Radio radio0 = new Radio((Component) null, "Unsupported type given for dateFormat. Supported types are: Date, Calendar, Long/long .", "kbd");
DateInput dateInput0 = new DateInput(radio0, "p", "p", "p");
// Undeclared exception!
t... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell KIEM that this component does produce data. | public boolean isProducer() {
return true;
} | [
"public void data() {\n\t}",
"private void data() {\n\n\t}",
"protected void writeData(){\r\n\t\tSystem.out.println(\"Writing the data\");\r\n\t}",
"@Override\r\n\tpublic void getData() {\n\r\n\t}",
"@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}",
"public void computeInformation() {\n setV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of terms | public int size() {
return terms.size();
} | [
"public int getNumTerms()\r\n\t\t\t{\r\n\t\t\t\treturn termList.size();\r\n\t\t\t}",
"public int getNumberOfTerms() {\r\n return numberOfTerms;\r\n }",
"public int obtainNumTerms(){\n \n \n int i;\n MixtExpDensity mte;\n //System.out.println(\"Estoy en obtainNumterms... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cambia la imagen segun el tipo | public void setImageButtons(int type, int typeMarksOnMap) {
if (type == ShowRoute.TYPE_BUTTONS_OUT_MARKS) {
imgTopIcons.setVisibility(View.VISIBLE);
if (typeMarksOnMap == MapLocationsManager.TYPE_MARKS_RESOURCES) {
btPrevious.setImageResource(R.drawable.previous1_distance);
btNext.setImag... | [
"Imagen createImagen();",
"public abstract void pintarimagen();",
"private void obtenerImagen() {\r\n\t\ttry {\r\n\t\t\timagen = ImageIO.read(new File(\"./datos/img/\", \"World.png\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void citestePoza() {\n try ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ignore the result of this | @Override
@ParallelSafe
public void freeSDRAM(HasChipLocation chip, MemoryLocation baseAddress)
throws IOException, ProcessException, InterruptedException {
get(new SDRAMDeAlloc(chip, baseAddress));
} | [
"public void justIgnoreMe() {\n }",
"public boolean ignores() {\n\t\treturn _ignore;\n\t}",
"@Override\r\n\tpublic void suppress() {\n\t\t\r\n\t}",
"@Override\r\n public void suppress() {\r\n // TODO Auto-generated method stub\r\n\r\n }",
"@Override\r\n\tpublic void negate() {\n\t\t\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fires a tabs closing event using the given event. This method will get all closable tabbed pane event listeners and call tabsClosing on each of them. For each boolean in the return array, it will be true only when all the listeners return true. Besides, if no listener is present, it will return a true array. | protected boolean[] fireTabsClosingEvent(ClosableTabbedPaneEvent[] events) {
return super.fireTabsClosingEvent(events);
} | [
"public interface CloseableTabbedPaneListener extends EventListener {\r\n /**\r\n * Informs all <code>CloseableTabbedPaneListener</code>s when a tab should be\r\n * closed\r\n * @param tabIndexToClose the index of the tab which should be closed\r\n * @return true if the tab can be closed, false otherwise\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all existing user accounts | public Collection<UserAccount> getAll(); | [
"public static ArrayList<Account> getAllUsers() {\n\t\treturn DBController.getAllUsers();\n\t}",
"public List<Useraccount> findAllUsers(){\n return this.useraccountFacade.GetAllUsers();\n }",
"public List<Account> getAllAccounts(){\n return db.getAccountTB();\n }",
"public List<User> retri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new wrap mapper. | private WrapMapper() {
} | [
"protected MapperWrapper wrapMapper(MapperWrapper next) {\n\t\t\t\tMapperWrapper mapper = new CGLibMapper(next);\n\t\t\t\tmapper = new JavassistMapper(mapper);\n\t\t\t\tmapper = new HibernateCollectionMapper(mapper);\n\t\t\t\tmapper = new NullValueMapper(mapper);\n\t\t\t\treturn mapper;\n\t\t\t}",
"public Builder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/VertexCreationDialog v = new VertexCreationDialog(); Point pos = MouseInfo.getPointerInfo().getLocation(); v.setLocation((int)pos.getX(), (int)pos.getY()); //TODO some kind of offset might be needed v.setVisible(true); | @Override
public Vertex create() {
return new Vertex(type);
} | [
"public GraphPropertiesEditor(final VisualizationViewer<String,String> vv) {\r\n \r\n final Container content = getContentPane();\r\n \r\n helpDialog = new JDialog();\r\n JLabel JLbl = new JLabel(instructionsMouseMode);\r\n JScrollPane scrollPane = new JScrollPane(JL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auto getters and setters only following | public static Map<String, String> getPackagePrefixMap() {
return packagePrefixMap;
} | [
"void setHasGetter(boolean hasGetter);",
"public GetOrSet() {\n this.present = true;\n this.access = AccessModifier.PUBLIC;\n this.spec = \"\";\n }",
"boolean generateFluentSetters();",
"public Method getSetter() {\n\n return setter;\n }",
"public void generateAccessors() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the minimum number of Letters in new password. | void setLetters(int length); | [
"@Override\n public void setPasswordMinimumNonLetter(ComponentName componentName, int n, boolean bl) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .protoClient.AnyRequest.GetHotelList hotelRequest = 1; | public Builder mergeHotelRequest(protoClient.DemoProtocol.AnyRequest.GetHotelList value) {
if (hotelRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
hotelRequest_ != protoClient.DemoProtocol.AnyRequest.GetHotelList.getDefaultInstance()) {
hotelReque... | [
"amdocs.iam.pd.pdwebservices.GetOfferListResponseDocument.GetOfferListResponse getGetOfferListResponse();",
"public interface UsdaRequest {\n @Headers(HEADER_CONTENT)\n @GET(\"ndb/V2/reports\")\n Maybe<UsdaFoodsResponse> getFood(@Query(\"api_key\") String apiKey,\n @Qu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
overriden for performance only | @Override
public DoubleMatrix2D assign(DoubleMatrix2D y, DoubleDoubleFunction function) {
if (!(y instanceof DenseDoubleMatrix2D)) {
return super.assign(y, function);
}
DenseDoubleMatrix2D other = (DenseDoubleMatrix2D) y;
checkShape(y);
double[] elems = this.elements;
double[] otherElem... | [
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"protected void mo4791d() {\n }",
"@Override\r\n\tpublic void accelerate() {\n\r\n\t}",
"prot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current inputmode. | public String getInputmode() {
return inputmode;
} | [
"public int getCurrentMode()\n\t{\n\t\treturn this.currentMode;\n\t}",
"public InputMode getDefaultInputMode() {\r\n assert defaultInputMode != null;\r\n return defaultInputMode;\r\n }",
"public int getCurrentMode(){\n\t\t\treturn currentMode; \n\t\t}",
"public static int getMode()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method corresponds to the database table spreader.tb_properties | public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
} | [
"String getTblProperties() {\n return \"TBLPROPERTIES ('transactional'='true')\";\n }",
"public List<KeyValuePojo> getAllProperties(){\n\t\t\n\t\tStringBuilder query = new StringBuilder(100);\n\t\t\n\t\tquery.append(\"SELECT prop_key, prop_value FROM T_PROP \");\n\t\t\n\t\treturn this.getJdbcTemplate().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a message on the underlying CAMQPSourceInterface. | public void sendMessage(DoveMQMessage message); | [
"@Override\n public void messageSent(long deliveryId, CAMQPMessage message) {\n }",
"public void send(Message message);",
"public void send(AbstractMessage msg) throws IOException {\n requireNonNull(msg);\n\n lock.lock();\n\n try {\n\n checkIfChannelIsOpen();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public void add(HospitalCashier record); | public void deleteById(Long id); | [
"void insert(EnterpriseCredit record);",
"int insert(DealerCreditDic record);",
"int insert(PrhPayment record);",
"int insert(FiPrjPaySummary record);",
"int insert(ReportWithdrawDailyDO record);",
"int insert(Dicresourcemine record);",
"int insert(FeeType record);",
"void insert(CompanyReports record... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Given a nonnegative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. Example 1: Input: 2736 Output: 7236 Explanation: Swap the number 2 and the number 7. Example 2: Input: 9973 Output: 9973 Explanation: No swap. Note: find index such tha... | public static void main(String[] args){
int num=10909091; //1993//8386
char[] digits = Integer.toString(num).toCharArray();
int maxIndex[] = new int[digits.length];
maxIndex[maxIndex.length-1] = maxIndex.length-1;
for(int i=maxIndex.length-2;i>=0;i--){
if(digits[i]>digits[maxIndex[i+1]]){
max... | [
"public static int maximumSwap(int num) {\n char[] digits = String.valueOf(num).toCharArray();\n\n int len = digits.length;\n int maxIdx = len - 1;\n int idx1 = -1;\n int idx2 = -1;\n for (int i = len - 1; i >= 0; i--) {\n if (digits[i] > digits[maxIdx]) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CTSCONTROL_BY_COMP.CREATED_BY | public void setCREATED_BY(String CREATED_BY) {
this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();
} | [
"public void setCreated_by(Integer created_by) {\n this.created_by = created_by;\n }",
"public void setModifiedBy()\n\t\t{\n \t\t\tString currentUser = m_sessionManager.getCurrentSessionUserId();\n\t\t\tString now = m_timeService.newTime().toString();\n\t\t\tm_properties.addProperty(ResourceProperties.P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Synchronized the threads by sensors | @Override
public void onSensorChanged(SensorEvent event){
synchronized (this){
switch(event.sensor.getType()){
case Sensor.TYPE_ORIENTATION:
/*for(int i=0; i<3; i++){
//mOrientationValues[i] = event.values[i];
Log.d("---ORIENTATION SENSOR","Value:"... | [
"@Override\n public void run() {\n lock.lock();\n try {\n //Logger.v(TAG, \"Succeed in getting lock for initialize sensors\");\n sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);\n accel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated method signature for Asynchronous Invocations | public void startidCheck(
com.mingdasoft.IdCheck idCheck22,
final com.mingdasoft.ServiceMainCallbackHandler callback)
throws java.rmi.RemoteException; | [
"@Override\n public void asyncRpc(Method arg0) throws IOException {\n \n }",
"@Async\n\t@Override\n\tpublic Future<String> asyncMethodWithVoidReturnType() throws InterruptedException {\n\t\tThread.sleep(2000L);\n//\t\tSystem.out.println(\"Execute method asynchronously. \" + Thread.currentThread().getName());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to stop the service | public void stopService(View view) {
//stopService(new Intent(getBaseContext(), DatagramSocketService.class));
} | [
"public void stop() {\n\t\tthis.serviceLocator.getService(ServiceManagerImpl.class).stop();\n\t}",
"public void stopService() {\n stopService(new Intent(getBaseContext(), MyService.class));\n }",
"public void stop()\n {\n if (!isStarted())\n {\n synchronized (this)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the average sentiment of tweets. | public CompletableFuture<TweetSearchResult> getSentimentForTweets(final List<Tweet> tweets,final String keyword,final Map<String,Integer> wordMap) {
return supplyAsync (()->{
List<String> listOfTweetSentiments = tweets.parallelStream().map(tweet -> {
//replace # by space
String tweetText = tweet... | [
"private int getSentimentOfTweet(String text) {\n\t\t// Remove all punctuation and new line chars in the tweet.\n\t\tString tweet = text.replaceAll(\"\\\\p{Punct}|\\\\n\", \" \").toLowerCase();\n\t\t// Splitting the tweet on empty space.\n\t\tIterable<String> words = Splitter.on(' ').trimResults().omitEmptyStrings(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Copy the contents (event ID and count) of one node to another. | void replaceNode(TreeNode replaceeNode, TreeNode replacerNode) {
replaceeNode.key = replacerNode.key;
replaceeNode.count = replacerNode.count;
} | [
"public void testCopyToNewNode()\n {\n // Check that the node has no copies\n List<NodeRef> copies = this.copyService.getCopies(this.sourceNodeRef);\n assertNotNull(copies);\n assertTrue(copies.isEmpty());\n \n // Copy to new node without copying children\n NodeRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the reference to the controlling Solitaire instance | public void setSolitaire(Solitaire solitaire) {
this.solitaire = solitaire;
} | [
"public synchronized void setParentInstance(TermWareInstance parentInstance)\r\n {\r\n parentInstance_=parentInstance; \r\n }",
"public void setParentCtrl(SimulationCtrl refSim){\n this.refSim = refSim;\n }",
"public void setTower()\r\n {\r\n if (!resourceManager().construct(towerPlacing))\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Can be called to start components. Subclasses should override to provide functionality Do not block in this call, but spawn off any main loops! | @Override
public synchronized void sfStart() throws SmartFrogException, RemoteException {
super.sfStart();
startWorkerThread();
} | [
"@Override\n protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }",
"public final void start() {\n\t\tif( Component.actorpanel != null && Component.actorpanel.isVict... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of Square | public Square(Double _coefficient) {
this._coefficient = new Double(_coefficient);
} | [
"public Square(){\r\n \t\r\n }",
"public Square() {\n //Needed for resuming a square from saved match\n }",
"public MagicSquare()\n {\n\n setSize();\n fillSquare();\n\n }",
"public Square(){\r\n\t\tsuper(\"Square\");\r\n\t}",
"public Square(){\n \tsuper();\n \tthis.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Referenced classes of package cn.sunline.adp.cedar.base.discovery: NamedServicePayload | public interface NamedServiceInstanceSerializer
{
public abstract byte[] serialize(NamedServicePayload namedservicepayload);
public abstract NamedServicePayload deserialize(byte abyte0[]);
} | [
"public interface Fx168NewsTagRefService extends Service<TFx168NewsTagRef> {\n\n}",
"@IncompatibleChange(release = \"5.4\", details = \"Added method for TAP5-2029\")\n Class getServiceImplementation();",
"private Service lookupService() throws ClassNotFoundException{\n\n Object result = new Serializab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all versions of an external organization&39;s schema | public ApiResponse<DataSchema> getExternalcontactsOrganizationsSchemaVersions(ApiRequest<Void> request) throws IOException {
try {
return pcapiClient.invoke(request, new TypeReference<DataSchema>() {});
}
catch (ApiException exception) {
@SuppressWarnings("unchecked")
ApiResponse<DataSchem... | [
"Result<? extends HibMicroschemaVersion> findAllMicroschemaVersions();",
"Result<? extends HibBranchSchemaVersion> findAllSchemaVersionEdges();",
"public List<VersionResponse> findAll();",
"boolean retrieveAllVersions();",
"public VersionIterator getAllVersions() throws RepositoryException;",
"List<Schema... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creation date: (4/9/2000 3:51:18 PM) | public gov.nasa.arc.l2tools.livingstone.code.Relation findRelation(String name) throws gov.nasa.arc.l2tools.Exception {
// safe not sorry
compile();
// look in my relations field
java.util.Enumeration relations=getRelations().elements();
while (relations.hasMoreElements()) {
gov.nasa.arc.l2too... | [
"@Override\r\n\tpublic Date getDateCreation() {\n\t\treturn super.getDateCreation();\r\n\t}",
"public String getCreationDate() {\r\n return new Date(creationDate).toString();\r\n }",
"Date getCreationTS();",
"public Long getDateCreation() {\n\t\treturn created;\n\t}",
"public Date getCreationDate() ;"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Phone Device Keyboard Show and Hide Function | private void showSoftkeyboard(){
InputMethodManager imm = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE );
imm.showSoftInput(username, 0 );
} | [
"public void hideKeyboard() {\n\t}",
"private void hideSoftwareKeyboard() {\n this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n }",
"private void toggleKeyboardView() {\r\n mViewFlipper.showNext();\r\n invalidateOptionsMenu();\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
less [than] [or equal [TO]] | private static boolean less__0(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "less__0")) return false;
boolean r;
Marker m = enter_section_(b);
r = consumeToken(b, LESS);
r = r && less__0_1(b, l + 1);
r = r && less__0_2(b, l + 1);
exit_section_(b, m, null, r);
return r;
} | [
"private LessThanOrEqualsExpression() {\n super(SimplePredicate.Op.LESS_THAN_OR_EQ);\n }",
"@Override\r\n\tprotected Condition parseop(Term t1, String op, Term t2, LexicalParser parser) {\r\n\t\tif (op.equals(\"<=\")) return new LessEq(t1, t2);\r\n\t\telse return null;\r\n\t}",
"public final void mLess_Or_E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
user clicked OK, so save the mSelectedItems results somewhere or return them to the component that opened the dialog | @Override
public void onClick(DialogInterface dialog, int id) {
selectedPosition = ((AlertDialog) dialog).getListView().getCheckedItemPosition();
if (selectedPosition == 0) {
Toast.makeText(AreaAccountActivity2.this, "sele... | [
"private void onOK() {\n itemDialogCallback.ok(itemid_textField.getText(), category_textField.getText(), name_textField.getText(), Integer.parseInt(unitprice_spinner.getValue().toString()), Integer.parseInt(count_spinner.getValue().toString()));\n dispose();\n }",
"@Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Iterate through the grid of buttons and clear their highlight styles | public void clearAllHighlights() {
this.board.clearHighlights();
for (Button[] buttonRow : this.buttonGrid) {
for (Button button : buttonRow) {
button.getStyleClass().remove("red-highlight");
button.getStyleClass().remove("green-highlight");
bu... | [
"public void resetButtons() {\n\t\trectButton.setBackground(Color.white);\n\t\tcircleButton.setBackground(Color.white);\n\t\tlineButton.setBackground(Color.white);\n\t\tfreeButton.setBackground(Color.white);\n\t}",
"public void resetButtons()\n { \n for(int a =0; a<3; a++)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: implement transactionCheck Status / | public YoPayments.YoPaymentsResponse runAcTransactionCheckStatus(String transactionReference) {
return null;
} | [
"protected abstract Object getTransactionStatus_impl() throws Exception;",
"private void checkContext() {\n \tChannelServiceImpl.checkTransaction(txn);\n }",
"TransactionRequirement transactionRequirement();",
"protected abstract boolean isExistingTransaction(Object transaction) throws TransactionExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void run() {
showMessage(CommonString.MESSAGE_EXCEPTION);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column user_info.password | public void setPassword(String password) {
this.password = password;
} | [
"public void setPassword(String value)\r\n {\r\n //Override this method in User object\r\n getSemanticObject().setProperty(swb_usrPassword, value,false);\r\n }",
"void changeUserPassword(User user, String password);",
"public void setPassword(String newPassword) \r\n { \r\n passwor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the getBoxOfficeContribution method. | @Test(expected = ResourceNotFoundException.class)
public void cantGetBoxOfficeContributionIfContributionDoesNotExist() throws ResourceException {
final Long id = new Random().nextLong();
Mockito.when(this.contributionRepository.findByIdAndField(id, MovieField.BOX_OFFICE)).thenReturn(Optional.empty()... | [
"@Test\r\n public void test_getContributionType() {\r\n String value = \"new_value\";\r\n instance.setContributionType(value);\r\n\r\n assertEquals(\"'getContributionType' should be correct.\",\r\n value, instance.getContributionType());\r\n }",
"@Test\n public void testRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate a random password | private String randPass(int length) {
String passSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()";
char[] password = new char[length];
for(int i=0; i<length; i++) {
int rand = (int) (Math.random() * passSet.length());
password[i] = passSet.charAt(rand);
}
... | [
"public static String generedRandomPwd() {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n\t\tint size = chars.length();\r\n\t\tString pass = \"\";\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\tdouble random = Math.random();\r\n\t\t\tint num = (int) Math.floor(random * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates parameters for starting Cargo in a separate JVM. | public JavaParameters createCommandLine(CommonModel commonModel) throws ExecutionException {
try {
final JavaParameters parameters = new JavaParameters();
final CargoConfigurationModel cargoConfigurationModel = (CargoConfigurationModel) commonModel.getServerModel();
final Con... | [
"private SettingServeurJVM(){}",
"private JVMBuilder(String javaCommand, SizedIterable<String> jvmArgs, SizedIterable<File> classPath,\n File dir, Map<String, String> properties, Map<String, String> environment, boolean dummy) {\n _javaCommand = javaCommand;\n _jvmArgs = jvmArgs;\n _c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Implementations of the toString() method (Override) | @Override
public String toString() {
return "Employee{" +
"firstName='" + firstname.get() + '\'' +
", lastName='" + lastname.get() + '\'' +
", phoneNumber='" + phone.get() + '\'' +
", address='" + address.get() + '\'' +
", ID='"... | [
"@Override\r\n String toString();",
"@Override\r\n\tabstract public String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn toString(null, null);\n\t}",
"@Override\n public String toString()\n {\n return toString(true);\n }",
"@Override\r\n\tpublic String toString() {\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a queue containing the elements of the specified array with a growth policy that depends on the specified double parameters. This constructor is equivalent to the call of ArrayQueue(array.length, array, fmin, f). | public ArrayQueue(Object[] array, double fmin, double f) {
this(array.length, array, fmin, f);
} | [
"public MyArrayQueue()\n {// use default capacity of 5\n this(5);\n }",
"public ArrayQueue() \n\t{\n\t\tthis(DEFAULT_CAPACITY);\n\t}",
"public ArrayQueue(){\n new ArrayQueue(CAP);\n size = CAP;\n }",
"public ResizingArrayQueue() {\n n = 0;\n q = (Item[]) new Object[2];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a "graph cleared" event to all element sinks. | public void sendGraphCleared(String sourceId, long timeId) {
if (!eventProcessing) {
eventProcessing = true;
manageEvents();
for (int i = 0; i < eltsSinks.size(); i++)
eltsSinks.get(i).graphCleared(sourceId, timeId);
manageEvents();
eventProcessing = false;
} else {
eventQueue.add(new Before... | [
"public void clearElementSinks() {\n\n\t}",
"public void clearSinks() {\n\n\t}",
"public void clearAll() {\n send(\"events.clear\");\n }",
"@Override\n public void clearGraphs() {\n this.endMonitoring();\n this.setLiveData(false);\n super.clearGraphs();\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the path that the browser is on. /sub/index page.html | public String getOriginalPath()
{
if( fieldRequest == null)
{
return null;
}
String requestedPath = getRequest().getRequestURI();
try
{
requestedPath = URLDecoder.decode(requestedPath, "UTF-8");
//getRequest().getQueryString()
}
catch (UnsupportedEncodingException ex)
{
log.error( ex );
... | [
"@RequestMapping(\"/\")\n\tpublic String main_page() {\n\t\treturn \"index\";\n\t}",
"@RequestMapping(value = {\"/\",\"/index\"}, method = RequestMethod.GET)\n\tpublic String home() {\t\t\n\t\treturn \"index\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String showPage() {\n\t\t\n\t\treturn \"main-menu\";\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method converts a Document object into a XML String | public static String documentToString(Document document) throws IOException {
String xmlString = null;
if (document != null) {
OutputFormat format = new OutputFormat(document);
StringWriter strOut = new StringWriter();
XMLSerializer XMLSerial = new XMLSerializer(strOut, format);
XMLSerial.serialize(docu... | [
"private String documentToXMLString(Document document) {\n\n try {\n\n\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer;\n transformer = factory.newTransformer();\n\n Properties outFormat = new Properties();\n ou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds the node to the correct end of the worklist for this type of search EFFECT: modifies this.worklist | void addToWorklist(MazeNode n) {
this.worklist.addToHead(n);
} | [
"public void addToEnd(t item){\n\t\tcurrent = start; \n\t\tif(start == null){//adding value if list is empty\n\t\t\tthis.addToStart(item);\n\t\t\treturn;\n\t\t}\n\t\twhile(true){//iterate over list to get end node\n\t\t\tif(current.link == null){\n\t\t\t\tcurrent.link = new node(item,null);//on reached end add valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by webonise on 1/2/18. | public interface SplashNavigator {
void openLoginActivity();
void showProgress(boolean isProgressing);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n \tpublic void init() {\n \n \t}",
"protected void mo4791d() {\n }",
"@Override\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to be called at a fixed rate, writes everything to a file and switches to a new file if needed | private synchronized void writeToFile() {
try{
logger.log("[ChatLogger]: flushing data: " + data.size());
FileWriter fw = new FileWriter(getFilepath(), true);
BufferedWriter bw = new BufferedWriter(fw);
for (String line : data) {
bw.newLine();
... | [
"private void writeRandom() {\n\t\tRandomAccessFile inRandomAccessFile = null;\n\t\tRandomAccessFile outRandomAccessFile = null;\n\t\tFileChannel inChannel = null;\n\t\tFileChannel outChannel = null;\n\t\tFile file1 = new File(\"DiskFile.txt\");\n\t\tFile file2 = new File(\"RandomAccess.txt\");\n\t\tlong s, d;\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contains the main method. Performs all startup of the applications | public static void main(String[] args) {
try {
IntegrationCreator creator = new IntegrationCreator();
Printer printer = new Printer();
Controller controller = new Controller(creator, printer);
new View(controller).sampleExecution();
}
catch (IOExce... | [
"public static void main (String[]args){//Start of method main.\r\n launch(args);\r\n }",
"private void startup()\n\t{\n\t}",
"public static void main(String[] args) throws ApplicationAlreadyExistsException\r\n {\r\n \tInitializeApplication instance = new InitializeApplication();\r\n \tinstance.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the values from the customer table to populate into an ArrayList to load into the customer spinner | private ArrayList<String> getCustomers()
{
// Open database
openDB();
ArrayList<String> list = new ArrayList<String>();
list.add("No Client Selected");
_customerID.add("0");
Cursor cursor = _myDb.getAllRows(ClientAdapter.DATABASE_TABLE,
ClientAdapter.A... | [
"private void getCustomersFromDb()throws SQLException {\n setCustomersList(dbController.getCustomers());\n }",
"public static ObservableList<Customer> getItemsToAdd() {\n try {\n allCustomers.clear();\n Statement statement = (Statement) DataBase.getConn().createStatement();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the values in the other ResizableArray to the end of this ResizableArray | public void add(GenericResizableArray other) {
add(other.toArray());
} | [
"public void addAll(ArrayIntList other) {\r\n\t\tensureCapacity(size + other.size());\r\n\t\tfor(int i = 0; i < other.size(); i++) {\r\n\t\t\tadd(i, other.elementData[i]);\r\n\t\t}\r\n\t}",
"private void extend() {\r\n E[] updated = (E[]) new Object[data.length * 2];\r\n System.arraycopy(data, 0, up... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Base Client ClientSecret | public BaseClient setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
} | [
"public void setClientSecret(String clientSecret) \n {\n this.clientSecret = clientSecret;\n }",
"@Override\n\tpublic String getClientSecret() {\n\t\treturn clientSecret;\n\t}",
"public String getClientSecret() { return clientSecret; }",
"public String getClientSecret() \n {\n return cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send close flag to app_closed() function | @Override
public void setClosed() {
executeScript("app_closed()");
} | [
"public void closeApp() {\n\t}",
"private int onClose() {\n return EXIT_ON_CLOSE;\n }",
"protected void onClose() {\n }",
"@Override\n public void addWindowClosingHandler(AppW app) {\n }",
"public void closeApp() {\n Platform.exit();\n }",
"@Override\n\t\tpublic void didCloseM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String toString() {
return "Status:" + (this.status ? "ON" : "OFF");
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CMsgDOTATournament.Team teams = 1; | DotaGcmessagesClientFantasy.CMsgDOTATournament.TeamOrBuilder getTeamsOrBuilder(
int index); | [
"public int Game_getTeams();",
"void updateTeams();",
"public int getNumberOfPlayersOnTeam(){\n return 1;\n }",
"void setTeamNum(int teamNum);",
"public UpdateTeamsMsg(Map<Integer, Collection<IRoomMember>> teams) {\n\t\tthis.teams = teams;\n\t}",
"Triangle.Protocol.GameProtocol.ProtocolTeam getT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logic : if j < i , then copy i value to j+1 and increment j | public static int removeDuplicates(int [] nums){
int j =0;
for (int i =1; i < nums.length; i++){
if(nums[j] < nums[i]){
nums[j+1] = nums[i];
j++;
}
}
return j+1;
} | [
"private int toIndex(int i, int j) {\n\n int newIndex = this.n*i + j;\n return newIndex;\n\n }",
"private void exchange(int i, int j) {\n\t\tint temp = array[countStep(i)];\n\t\tarray[countStep(i)] = array[countStep(j)];\n\t\tarray[countStep(j)] = temp;\n\t}",
"public void sortIncrease () {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 ret = 1; | public Builder setRet(int value) {
bitField0_ |= 0x00000001;
ret_ = value;
onChanged();
return this;
} | [
"public int getRet() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int javaMethodBaseWithIntRet() {\n\t\treturn 0;\n\t}",
"static Integer m3() {\n return 99; // autoboxing 99 into an Integer.\n }",
"public strictfp int method_233() {\n return -1;\n }",
"public int intValueExact() { throw new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds mileage to vehicle by VIN, returns 1 if failure | public int addMileageByVIN(String VIN, int miles)
{
List<Vehicle> temp = getVehicleByVIN(VIN);
if(temp.isEmpty())
{
return -1;
}
else
{
//Add mileage to first vehicle found with that VIN since there should only be one
temp.get(0).ad... | [
"public void addMiles (int miles) {\n\t\ttotalMiles += miles;\n\t}",
"public abstract void addVentInfiltration(int vents);",
"public void addMoney(int income) {\r\n this.money += income;\r\n }",
"public void addMiles(int miles) {\r\n for (MaintInterval interval:intervals){\r\n inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BS Vinculado Oficina Colaborador (Gestor)// | @DataProvider(parallel = false)
public String[][] altasRelacionadasMed05() {
String testCase = Constants.MEDIADORES_CASE;
String[][] casesMatrix = suiteM.initializeTestObjects(testCase, "datosAlta_I_BSV_C_GEST.csv", "datosTestMediadores.csv");
return casesMatrix;
} | [
"public void cargarCrearComisionEstudios() {\n this.ruta = \"/Jefe/comision/CreateComisionEstudios.xhtml\";\n }",
"public void enviaDrive() {\n ConexaoDrive.getInstance();//Cria conexao\n ConexaoDrive.criaArquivo(\"candidatos.json\", \"candidatos.json\");//enviar os dados\n JOptionP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
if (dialog != null) {
dialog.dismiss();
dialog = null;
}
if (serverResponseCode == 200) {
String uuploadfile_name = null;
String uuuploadfile_name;
/*
* dialog =
* ProgressDialog.show(TeacherA... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
removes a row form dataTable from invoice.xhtml | public void removeRow(OrderItem service) {
if (selectedServices.contains(service)) {
selectedServices.remove(service);
}
calculateFinalAmount();
calculateTotal();
} | [
"private void DELETE_ITEM_ActionPerformed(java.awt.event.ActionEvent evt) {\n DefaultTableModel t1=(DefaultTableModel) BILL_TABLE_.getModel();\n int r=BILL_TABLE_.getSelectedRow();\n t1.removeRow(r);\n sub_total();\n }",
"public void removeRow() {\n this.setRowCount(00);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the MainView on our page. | @PostConstruct
public void init() {
// title and welcometext
this.add(welcomeLayout);
List<String> seminaries = mainViewPresenter.getNextSeminaries();
for (String seminar : seminaries) {
seminariesLayout.add(new Label(seminar));
}
siteFeatures.add(linksLa... | [
"public MainView() {\n \tMainPresenter mainPresenter = new MainPresenter(this); //TODO: Darf/soll ich das?\n \tHorizontalLayout navigation = new HorizontalLayout(); \n \tnavigation.add(new Button(\"Entry\",\n event -> clickButton(\"Entry\"))); \n \tnavigation.add(new Button(\"Diary\", \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void showSelf() {
addBar();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public void applyRequestedModifications() {
TextureView view = (TextureView) this.requestedModificationView.get();
if (view != null) {
if (this.requestedRotation != null) {
rotate(view, this.requestedRotation.intValue());
this.requestedRotation = null;
... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string password = 2; | public Builder clearPassword() {
bitField0_ = (bitField0_ & ~0x00000002);
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
} | [
"void validatePassword(String password);",
"public void setPassword(String string)\r\n/* 91: */ {\r\n/* 92: 90 */ this.password = string;\r\n/* 93: */ }",
"ValidationResult validate(String password);",
"public void setPassword(String password) { }",
"public void setPassword(String str) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
list of requests been picked | public ALS_Scheduler()
{
super();
sdreqs = new Reqlist();
} | [
"List<Request> getRequests();",
"public List<HttpRequest> requests() {\n return requests;\n }",
"public List<Request> list() {\n List<Request> result = new ArrayList<>();\n for (Request request : this.requests.values()) {\n result.add(new Request(request));\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Number of driving directions clicks on any location surface after a chargeable ad event (click or impression). This measure is coming from Asset based location. optional double all_conversions_from_location_asset_directions = 268; | boolean hasAllConversionsFromLocationAssetDirections(); | [
"int getDistance(){\n\n int total = 0;\n for (int i = 0; i < 7; i++) {\n\n total += getRoute( route.valueOf(order[i]).ordinal(), route.valueOf(order[i+1]).ordinal());\n\n\n }\n\n // System.out.println(total);\n return total;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
================================================================================ MultiCategoryScreen Methods ================================================================================ To allow different background images to be set | protected abstract void setBackgroundImageIfMainVBoxIsEmpty(VBox mainVBox); | [
"private void createBackground() {\r\n\t\tStaticVisuals bgTile1 = new StaticVisuals();\r\n\t\tStaticVisuals bgTile2 = new StaticVisuals();\r\n\t\tStaticVisuals bgTile3 = new StaticVisuals();\r\n\t\tStaticVisuals bgTile4 = new StaticVisuals();\r\n\t\t\r\n\t\tbgTile1.setImage(imgBG);\r\n\t\tbgTile2.setImage(imgBG);\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string nicename = 4; | public Builder setNicename(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
nicename_ = value;
onChanged();
return this;
} | [
"String getNetbiosName();",
"NC makeNsName (String ns, NC except, L loc, A anno);",
"java.lang.String getIName();",
"String getNetBiosLocalName();",
"public static String formatNic(String nic) {\n\t\treturn \"\";\n\t}",
"public String getNSN();",
"void displayNickNameUnavailable();",
"public String ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function allows setting a value for _permission | public ConnectorbasedAgreementBuilder _permission_(List<Permission> _permission_) {
this.connectorbasedAgreementImpl.setPermission(_permission_);
return this;
} | [
"public abstract String setPermission();",
"public void setCurrentAccessPermission(AccessPermission currentAccessPermission) {\n/* 670 */ this.currentAccessPermission = currentAccessPermission;\n/* */ }",
"public Builder setPermission(\n java.lang.String value) {\n copyOnWrite();\n in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |