query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Entry point of the program. | public static void main(String[] args) {
new Level0().run(args);
} | [
"public static void main (String[]args){//Start of method main.\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n try {\r\n //open character stream files for end user\r\n CityOfAaron.inFile = new BufferedReader(\r\n new InputStreamReader(System.in));\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
////////////////////////////////// PUBLIC PROPERTIES AND METHODS: // ////////////////////////////////// | public void setCaretWidth(int w) {
myCaret.setMyWidth(w);
} | [
"@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 \tpublic void init() {\n \n \t}",
"@Override\n protected void init()\n {\n\n }",
"@Override\r\n public void publicando() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes a student's score given the specific internship's weights and of course the student's data. | private static Double computeInternshipStudentScore(double studentGPA, int studentExp, int studentProjects, int
weightGPA, int weightExp, int weightProjects){
return studentGPA*weightGPA + studentExp*weightExp + studentProjects*weightProjects;
} | [
"public void calcScore(Student player) {\n score = (int)(3*player.getIntel() + 10*player.getFriends() +\n 5* player.getAverage() + 10 * (player.getMental() +player.getPhysical()));\n }",
"public double ScalesFitness(ArrayList<Double> weights)\n\t{\n\t\tif (scasol.length() > weights.size()) return(-1)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test method start, no PlatformService injected | @Test(expected = InventoryServiceException.class)
public void testStartNoPlatformService() throws Exception {
InjectionUtil.inject(inventoryServiceImpl, "platformService", null);
inventoryServiceImpl.start();
} | [
"@Override\r\n public void onStart(ITestContext context)\r\n {\n \r\n }",
"public void start() {\n\t\tfinal Configuration configuration = new TestConfiguration(this);\n\t\tfinal Execution<Configuration> analysis = new Execution<Configuration>(configuration);\n\t\tanalysis.executeBlocking();\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use recursion and dfs to traverse every node and put value into corresponding list. | private void dfs(TreeNode root, List<List<Integer>> ans, int index) {
if (root == null) {
return;
}
// If there is no this level's elements list.
if (ans.size() < index + 1) {
ans.add(new ArrayList<>());
}
ans.get(index).add(root.val);
... | [
"private void dfs(TreeNode root, String path, List<String> list) {\n if (root == null) {\n return;\n }\n\n if (root.left == null && root.right == null) {\n list.add(path + root.val + \",\");\n return;\n }\n\n dfs(root.left, path + root.val + \",\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a Recipe to the Room db | public void createRecipe(Recipe recipe) {
long rowId = recipeDao.createRecipe(recipe);
// Get the step of the Recipe
List<RecipeStep> steps = recipe.getSteps();
// If the Recipe does have steps...
if (steps != null) {
// Loop through the steps of said Recipe
... | [
"public void insert(Recipe recipe) { mRepository.insert(recipe); }",
"@Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(Recipe recipe);",
"public void createRecord(RecipeIngredient recipeIngredient);",
"public void createRecipe() {\n\t\tuser.createRecipe();\n\n\t}",
"public int addRecipe(Rec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a nonquery node into a SELECT node. Set operators (UNION, INTERSECT, EXCEPT) and VALUES remain as is. | public SqlNode asQueryOrValues() {
switch (node.getKind()) {
case UNION:
case INTERSECT:
case EXCEPT:
case VALUES:
return maybeStrip(node);
default:
return maybeStrip(asSelect());
}
} | [
"CommandType parseSelect() throws InvalidQueryException {\n Select select = new Select();\n //parse WildAttribList\n if(tokenizer.peek().getContent().equals(\"*\")){\n tokenizer.nextToken();\n getKeyword(\"FROM\");\n select.setSelectAllCols();\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
does predicate1 succeed before Predicate2 in a forward scan? | public static boolean happensBefore(List<List<String>> lines,
int startIndex,
Predicate before,
Predicate after) {
boolean beforeHappened = false;
for (int i = startIndex; i < lines.size(); i++) {
List<String> tokens = lines.get(i);
if (!beforeHappened) {
before... | [
"@Test\n\tpublic void Predicate_combine_two_predicates() {\n\t\tPredicate<String> stringIsLongerThanTen = s -> s.length() > 10;\n\t\tassertTrue(stringIsLongerThanTen.test(\"This string is longer than 10\"));\n\t\tassertFalse(stringIsLongerThanTen.test(\"short\"));\n\n\t\tPredicate<String> stringStartWithA = s -> s.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Administrator on 2018/1/31. | public interface VocabLogService {
} | [
"@Override\n }",
"@Override\n\tprotected void postCreation() {\n\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n return 0;\n }",
"public void mo5201a() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handler of incoming messages from clients. | @Override
public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_SET_TRACKING:
setTracking(msg.arg1 == 1);
break;
case MSG_REGISTER_CLIENT:
mClients.add(msg.replyTo);
break;... | [
"void handleMessage(ClientThread client, Object msg);",
"private void handleIncomingMessages() {\n Thread listenThread = new Thread(new Runnable() {\n public void run() {\n while (isServerConnected) {\n String line = null;\n try {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new place with the specified data | public Integer createPlace(Place place) throws DaoException; | [
"private Place create() {\n\n\n log.info(\"Creating place {}\", CODE);\n\n Place p = new Place();\n p.setName(CODE);\n p.setCode(CODE);\n\n\n PlaceBranch main = new PlaceBranch();\n main.setPlace(p);\n main.setName(\"Shopping Multiplaza Casa Central\");\n main... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column DEVELOP.T_CUST_CONTRACTDEPT.FDEPTID | public BigDecimal getFdeptid() {
return fdeptid;
} | [
"private String getDeptId() {\r\n return this.deptId;\r\n }",
"@Override\r\n\tpublic String getDeptId() {\n\t\treturn null;\r\n\t}",
"public long getEmpDeptId() {\n return this.empDeptId;\n }",
"public String getSubDeptId()\r\n\t{\r\n\t\treturn getSubDeptId( getSession().getSessionContext() );\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /cardProductTypes/:id > delete the "id" cardProductType. | @RequestMapping(value = "/cardProductTypes/{id}",
method = RequestMethod.DELETE,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<Void> deleteCardProductType(@PathVariable Long id) {
log.debug("REST request to delete CardProductType : {}", id);
ca... | [
"public void delete(String id) {\n\t\tSession session=sessionFactory.getCurrentSession();\r\n\t\tsession.delete(session.get(ProductType.class, id));\r\n\t}",
"@Override\n\tpublic void deleteType(String typeId) {\n\t\ttypeDao.delete(typeDao.get(Type.class, Long.parseLong(typeId)));\n\t}",
"@RequestMapping(value ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs a deep copy on other. | public setAttribute_args(setAttribute_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
if (other.isSetOptions()) {
this.options = new SetAttributeTOptions(other.options);
}
} | [
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private void copyFrom(final _BeanImpl other, final boolean immutably) {\r\n if (other == null) {\r\n throw new IllegalArgumentException(\"other cannot be null\");\r\n }\r\n if (other.getClass() != getClass()) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Internal method used to release write lock on the documents. | public synchronized void unlockDocuments() {
for (Map.Entry<IDocument, IDocumentListener> entry : documentListeners.entrySet()) {
entry.getKey().addDocumentListener(entry.getValue());
}
} | [
"public synchronized void forceLockRelease() {\n\t\tlog.forcingReleaseIndexWriterLock();\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tif ( writer != null ) {\n\t\t\t\t\twriter.close();\n\t\t\t\t\tlog.trace( \"IndexWriter closed\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\twriter = null; //make sure to send a faulty write... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor used by logging (e.g. logback config). | public KibanaLogEventEncoder() {
super();
this.loggingEventConverter = new LoggingEventConverter();
} | [
"private Logging() { }",
"private Logging()\n {\n log = new String();\n console = new String();\n }",
"public JooneLogger() {\n }",
"public Log() {\n logText = new StringBuilder();\n errorFiles = new StringBuilder();\n startOfBackupDate = LocalDate.n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getting datepickerdialog and initializing with our above defined variables TODO Autogenerated method stub | @Override
public void onDateSet(DatePicker arg0, int curr_year, int month, int day) {
cal.set(Calendar.YEAR, curr_year);
cal.set(Calendar.MONTH, month);
cal.set(Calendar.DAY_OF_MONTH, day);
btn_date.setTe... | [
"private void initStartDialogCumple() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n /*DatePickerDialog dialog = new DatePickerDialog(Registrar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove any subtags that would be added by addLikelySubtags(). For example, this would convert "enLatnUS" to "en". | public static LanguageTag removeLikelySubtags(LanguageTag tag) {
FastTag max = new FastTag(tag);
if (max.language == LANGUAGE || max.script == SCRIPT || max.region == REGION) {
addLikelySubtags(max);
}
FastTag tmp = new FastTag(UND);
// Using "en-Latn-US" as an example...
// 1. Match "en... | [
"private void removeMeaninglessTags(Element elem){\n\t\tNodes nodes =XQueryUtil.xquery(elem, \".//e|.//o|.//optionalOpenBracket|.//optionalCloseBracket\");\n\t\tfor (int i = 0; i < nodes.size(); i++) {\n\t\t\tnodes.get(i).detach();\n\t\t}\n\t}",
"private String removeTags(String value) {\n\t\t\tif(value!=null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the probability to apply mutation on any individual. 0.3 is consider as a good choice. | double getMutationProb(); | [
"@Override\n\tpublic double giveProbability() {\n\t\treturn 1;\n\t}",
"public double getProbability();",
"public abstract double getProbability();",
"public final int getProbability() {\n return probability;\n }",
"public int getProbability() {\n\t\t\treturn probability;\n\t\t}",
"public double... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the requested governance role. | @PostMapping(path = "/governance-roles/{governanceRoleGUID}/delete")
public VoidResponse deleteGovernanceRole(@PathVariable String serverName,
@PathVariable String userId,
@PathVariable String ... | [
"void removeRole(User user, String role);",
"public void removeRoleEvent(OrganiserEvent e);",
"void deleteRoleById(long roleId);",
"public void removeRole(Role role) {\n List<Role> roles = this.getRole();\n roles.remove(role);\n }",
"public void deleteRole(IrRole entity);",
"void removeRo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the (fully resolved) identifier value, but do not resolve to the actual referenced entity instance NOTE: the owner of the association is not really the owner of the id! | public Object hydrate(
ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) throws HibernateException, SQLException {
Serializable id = (Serializable) getIdentifierOrUniqueKeyType( session.getFactory() )
.nullSafeGet( rs, names, session, null );
scheduleBatchLoadIfNeeded( i... | [
"public Serializable getKeyOfOwner(Object owner, SessionImplementor session) {\n \t\t\n \t\tEntityEntry entityEntry = session.getPersistenceContext().getEntry( owner );\n \t\tif ( entityEntry == null ) return null; // This just handles a particular case of component\n \t\t\t\t\t\t\t\t\t // projection, perhaps get ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate | public void a(String str) {
this.g = str;
} | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"public void mo28221a() {\n }",
"protected void mo4791d() {\n }",
"protected void method_2117() {\n }",
"@Override\r\n public void publicando() {\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Employee)) {
return false;
}
Employee other = (Employee) object;
if ((this.employeeId == null && other.employeeId != null) || (this.employeeId != null && !this.employeeId.equals(other.employeeId))) {... | [
"public int getId () { return id; }",
"public int getId(){ return this.id;}",
"public int id() {return this.id;}",
"@Override\n public int getId() { return id; }",
"public void setId(long id){ \r\n this.id = id; \r\n }",
"public void setId( int id ) { this.id = id; }",
"public void setId( l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds an edge with default weight that connects the two specified nodes to this graph and returns the edge. | @Override
public Edge<T> addEdge(AbstractNode<T> head, AbstractNode<T> tail) {
return this.addEdge(head, tail, DEFAULT_EDGE_WEIGHT);
} | [
"public WeightedEdge addEdge(Vertex v1, Vertex v2, double weight) throws Exception {\n\t\tWeightedEdge edge = new WeightedEdge(v1, v2, weight);\n\t\taddEdge( edge );\n\t\treturn edge;\n\t}",
"public Query addWeightedEdge( Sentence otherNode, double weight )\n {\n if( weight < Constants.EDGEWEIGHTMIN )\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OnTransactionSessionChangeListener Created by dovsnier on 20190715. | public interface OnTransactionSessionChangeListener extends IBaseOnChangeListener {
/**
* the monitor transaction session change notification
*
* @param alias {@link IType}
* @param key the key
* @param value the value
*/
void onTransactionSessionChange(@NonNull String alias, @N... | [
"void onTransactionStarted();",
"void onSessionConfigChange(Config config);",
"@Override\n\tpublic void visit(Transaction transaction) {\n\t\t\n\t}",
"public interface TransactionListener {\n\t\n\t/**\n\t * Invoked when a pair reports a new transaction.\n\t * \n\t * @param tx Transaction\n\t * @param conn {@l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent e) {
} | [
"@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"
]
]
}
} |
Write code here that turns the phrase above into concrete actions | @Quando("^seleciono o voo de ida \"([^\"]*)\"$")
public void selecionoOVooDeIda(String arg1) throws Throwable {
throw new PendingException();
} | [
"@Override\n public void doAction(MentionOf s) {\n\t\n }",
"public void action(String name) {}",
"@Override\n\t\tpublic void action() {\n\n\t\t}",
"private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WHEN THE RESPONSE IS RECEIVED FROM SERVER | @Override
public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
try {
//CONVERT THE JSON RESPONSE TO STRING
String s = response.body().string();
JSONObject jsonObject = new JSONObject(s);
... | [
"@Override\n public void onResponse(String response) {\n //Log.i( \"Test\" , \"ControllerRemoteDB: entered onResponse() \"+response );\n //This code is executed if the server responds, whether or not the response contains data.\n //The String 'response' contai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the nodeId property. | public void setNodeId(int value) {
this.nodeId = value;
} | [
"public void setNodeId(String id) {\n nodeId = id;\n }",
"public void setNode(long nodeId) {\n\t\tAbstractObject object = session.findObjectById(nodeId);\n\t\tif (object instanceof AbstractNode) {\n\t\t\tnode = (AbstractNode) object;\n\t\t\taddress = node.getPrimaryIP().getAddress();\n\t\t\tsetText((address !... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println("reverse pushing from : " + this.getID() + " to the source " ); | public void reversePush() {
if (this.getFlow() >= this.getExcess()) {
this.setFlow(this.getFlow()-this.getExcess());
this.setExcess(0);
}
else {
//this.setReverseFlow(this.getReverseResidualCapacity());
this.setExcess(Math.max(0,this.getExcess()-this.getFlow()));
this.setFlow(0);
}
} | [
"public void push(){\n\t\t\t\n\t\t}",
"public void push(Baju x){\n\r\n if(top==null) top=x; //Kondisi dimana jika top bernilai null \r\n\r\n else{\r\n\r\n x.next=top; //Kondisi di nmana jika data x ditambahkan maka bernilai sama dengan top\r\n\r\n top=x;\r\n\r\n }\r\n\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if user is root, false otherwise. | protected boolean isRoot(Connection db, int user_id) throws SQLException
{
boolean ret = false;
int tries = 0;
int maxTries = 3;
PreparedStatement gRoot = null;
ResultSet rs;
String query = "SELECT is_root FROM sduser WHERE id = ?";
while(tries < maxTries)
{
try {
gRoot = db.prepareStatement(... | [
"public boolean isRooted() {\n\n // get from build info\n String buildTags = android.os.Build.TAGS;\n if (buildTags != null && buildTags.contains(\"test-keys\")) {\n return true;\n }\n\n // check if /system/app/Superuser.apk is present\n try {\n File ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Observer for the phylopanel selection. | public interface PhyloChosenObserver {
/**
* Update method passing through all the selected genes.
*
* @param chosen
* all the genes selected.
*/
void update(Collection<String> chosen);
} | [
"void addSelectionObserver(Observer observer);",
"@Subscribe\n private void handleGroupPanelSelectionChangedEvent(GroupPanelSelectionChangedEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n loadGroupPersons(event.getNewSelection());\n }",
"private void onSelectedC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is similar method to insertNode but instead of keyword it takes node to be inserted. This is also recursive method. | public void insertNode(Node node, Node nodeToInsert){
if(nodeToInsert.keyword.compareToIgnoreCase(node.keyword) < 0){
if(node.l == null){
node.l = nodeToInsert;
}else{
node = node.l;
insertNode(node, nodeToInsert);
}
}else if(nodeToInsert.keyword.compareToIgnoreC... | [
"public void addChild(String keyword, Node node) {\n children.put(keyword.toLowerCase(), node);\n }",
"public void insert(String word) {\n Node head = root;\n for(char ch : word.toCharArray()) {\n if(head.children.containsKey(ch)) {\n head = head.children.get(ch);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
insert an element to the queue the first stack is used to enqueue | public static void enQueue(int element) {
firstStack.push(element);
} | [
"public void enqueue(Object elem){\n insertAtBack(elem);\n }",
"public void enqueue(int element);",
"public void enqueue (Object element) \r\n\t{\r\n\t\tQueueElement newElement = new QueueElement (element,null);\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\ttail = newElement;\r\n\t\t\thead = newElement;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / Abstract methods/overrides from JsonParser / Implementing these methods efficiently for nonblocking cases would be complicated; so for now let's just use the default nonoptimized implementation public boolean nextFieldName(SerializableString str) throws IOException public String nextTextValue() throws IOException p... | @Override
public int releaseBuffered(OutputStream out) throws IOException {
int avail = _inputEnd - _inputPtr;
if (avail > 0) {
out.write(_inputBuffer, _inputPtr, avail);
}
return avail;
} | [
"public abstract FieldValue nextValue();",
"protected Object nextValue() throws SvetovidFormatException,\n SvetovidIOException {\n switch (tokenType) {\n case LITERAL:\n return nextLiteral();\n case NUMBER:\n return nextNumber();\n case STRING:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
UTILIZO SECRETKEYSPEC PARA INVERTIR LA CONVERSION ENCODED Y LE PASO EL TIPO DE ALGORITMO | public static SecretKey invertirClaveSimetric(byte[] claveDescifradaConClavePrivada ){
SecretKey claveSimefinal=new SecretKeySpec(claveDescifradaConClavePrivada,"DES");
return claveSimefinal;
} | [
"public static String protectedSecretMM(){return \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\";}",
"public static String applicationKeySiteOD(){return \"xxxxxxxxxxxxxxxxxxxxx\";}",
"java.lang.String getAppSecret();",
"private SecretKey generateKey(String notes_password) throws Exception{\n final MessageDigest dige... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: bV | public final List mo52777bV() {
return null;
} | [
"private void sxDsBv() {\n\t\t\n\t}",
"public void bLV() {\n }",
"void mo5832a(V v);",
"private void bOT() {\n\n }",
"private B000066() {\r\n\r\n\t}",
"protected void method_5557() {}",
"public abstract az mo1423b();",
"public void mo3914b() {\n }",
"void mo4616b();",
"protected abstract ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void destroy()
{
} | [
"@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"
]
]
}
} |
Sets the various components of this SteamID from a Steam3 "[X:1:2:3]" rendered form and universe. | public boolean setFromSteam3String(String steamId) {
if (Strings.isNullOrEmpty(steamId)) {
return false;
}
Matcher matcher = STEAM3_REGEX.matcher(steamId);
if (!matcher.matches()) {
matcher = STEAM3_FALLBACK_REGEX.matcher(steamId);
if (!matcher.matc... | [
"@Override\n\tpublic LVec3 setComponents(double p_72439_1_, double p_72439_3_, double p_72439_5_) {\n\t\tthis.xCoord = p_72439_1_;\n\t\tthis.yCoord = p_72439_3_;\n\t\tthis.zCoord = p_72439_5_;\n\t\treturn this;\n\t}",
"public ISSg3(String theData) {\r\n\t\tmyData = theData;\r\n\t\tparseData(myData);\r\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table original | protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
} | [
"@Override\n\tpublic void CreateFromSQL() {\n\n\t}",
"@Override\r\n\tprotected String tableName() {\n\t\treturn TABLE_NAME;\r\n\t}",
"public abstract String getBaseTable();",
"@Override\n public String asTableDbName() {\n return \"path_mapping\";\n }",
"@Select({\r\n \"select\",\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private static final int CALL_ADDRESS = 1; private static final int SET_AUTH_INFO = 2; private static final int UPDATE_SETTINGS_DIALOG = 3; private static final int HANG_UP = 4; | public SipRegisteration(Context ctx, Activity activity) {
this.mContext = ctx;
this.mActivity = activity;
session = new SessionManager(mContext);
} | [
"public interface AppConstant {\n int REQUEST_LOCATION_CODE = 0x0001;\n}",
"public void onClickedSettings(View view) {\n //First define a listener...\n DialogInterface.OnClickListener listenet = new DialogInterface.OnClickListener() {\n \n //Fail if no Internet connection av... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onConfigurationChanged(Configuration newConfig) {
GenieDebug.error("onConfigurationChanged", "onConfigurationChanged !!!!!!!!!");
GenieDebug.error("onConfigurationChanged", "newConfig.orientation = "+newConfig.orientation);
if(mBitmap != null && null != detail && ll != null && parm != nu... | [
"@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"
]
]
}
} |
MQproduceService mQproduceService = (MQproduceService) SpringContextUtils.getBean(MQproduceService.class); MQproducer bean = mQproduceService.getIsUse(); | public static void sendmsg(MQproducer bean, String body) throws Exception {
HttpClient httpClient = new HttpClient();
httpClient.setMaxConnectionsPerDestination(1);
httpClient.start();
// Properties properties = new Properties();
// properties.load(HttpProducer.class.getClassLoader().getResourceAsStream("user... | [
"@Bean\n public MessageProducer inbound() {\n //Generate unique clientId.\n String clientId = System.getenv(\"CLIENT_ID\") + System.currentTimeMillis();\n MqttPahoMessageDrivenChannelAdapter adapter =\n new MqttPahoMessageDrivenChannelAdapter(clientId, context.getBean(MqttPaho... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check login to REGEX | public boolean isLoginValid(final String login) {
return (login != null) && login.matches(LOGIN_REGEX);
} | [
"public static boolean validaLogin(String login){\r\n final int MIN_LENGTH_PASS = 8;// Tamanho minimo do login.\r\n final int MAX_LENGTH_PASS = 13;// Tamanho maximo do login.\r\n\r\n // Se login for nulo, retorna false.\r\n if( login == null ){\r\n return false;\r\n }\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CMsgClientUCMAddScreenshot.Tag tag = 10; | public com.steam.proto.SteammessagesClientserver2.CMsgClientUCMAddScreenshot.Tag.Builder addTagBuilder() {
return getTagFieldBuilder().addBuilder(
com.steam.proto.SteammessagesClientserver2.CMsgClientUCMAddScreenshot.Tag.getDefaultInstance());
} | [
"SteammessagesClientserver2.CMsgClientUCMAddScreenshot.Tag getTag(int index);",
"long getScreenshotid();",
"public void mo6131a() {\n C2331d.m10129c((Activity) OneContentPreviewActivity.this, C2328a.ON_DMS_RECEIVING, (int) R.id.text, (int) R.string.cmn_msg_now_regist_image);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String[] getFieldName() {
return new String[]{"编码","名称"};
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / / / / / / | public static Fraction getFraction(double value) {
/* */ double delta1;
/* 249 */ int sign = (value < 0.0D) ? -1 : 1;
/* 250 */ value = Math.abs(value);
/* 251 */ if (value > 2.147483647E9D || Double.isNaN(value)) {
/* 252 */ throw new ArithmeticException("The value must not be greater than In... | [
"private void calculatePaths() {\n\n\n }",
"protected int snapBits(){return 9;}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n public int getWidth(){\n return width - 10;\n }",
"public int getSize() { return 3+length;}",
"public int getTileWidth() {\n/* 91 */ return 32;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the horizontal position of the object according to the input. | protected void setPosX(int posX) {
this.posX = posX;
} | [
"void setHorizontalAlignment(int align);",
"public void moveHorizontalManual(int x) {\n xCoord = xCoord + x;\n }",
"private void updateWindowHorizontally(eLocation location)\n { \n switch (location)\n {\n case eLOC_MIDDLE:\n relWindow.x = -radius;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__SnomedIdentifier__Group__1" $ANTLR start "rule__SnomedIdentifier__Group__1__Impl" InternalQLParser.g:9036:1: rule__SnomedIdentifier__Group__1__Impl : ( ( rule__SnomedIdentifier__Alternatives_1 ) ) ; | public final void rule__SnomedIdentifier__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalQLParser.g:9040:1: ( ( ( rule__SnomedIdentifier__Alternatives_1 ) ) )
// InternalQLParser.g:9041:1: ( ( rule__SnomedIdentifier__... | [
"public final void rule__LABEL_ID__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.upb.llvm_parser.ui/src-gen/de/upb/llvm_parser/ui/contentassist/antlr/internal/InternalLLVM.g:4307:1: ( ( ( rule__LABEL_ID__Al... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reducing cyclomatic complexity would dramatically reduce readability Fallthroughs are the fastest way here / CHECKSTYLE:OFF | @Override
protected Header decode(ChannelHandlerContext context, Channel channel,
ChannelBuffer buffer, Part part) throws Exception {
switch (part) {
case TYPE: {
type = readType(buffer);
checkpoint(Part.COLON);
// intended fall-t... | [
"protected void method_5557() {}",
"protected abstract void preconditions() throws RefactoringException;",
"private final void m33372a(java.util.Collection<? extends kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor> r6, boolean r7, java.lang.StringBuilder r8) {\n /*\n r5 = thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Java element (an org.eclipse.jdt.core.ICompilationUnit or an org.eclipse.jdt.core.IClassFile) this compilation unit was created from, or null if it was not created from a Java element. | public IJavaElement getJavaElement() {
return this.typeRoot;
} | [
"@Override\r\n\tprotected void loadExistingUmlElement() {\n\t\tString name = javaElement.getElementName();\r\n\t\tElement parentElement = getContainerService().getUMLElement();\r\n\t\t/*\r\n\t\tITypeService<?, ?> returnTypeSrv = resolveReturnTypeService();\r\n\t\tType umlReturnType = null;\r\n\t\tif(returnTypeSrv !... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method Name: reverseArrayElements() Purpose: a public class method that will reverse the order of elements in an array Accepts: an array of type int Returns: an array of type int with the elements in reversed order Coder: Mike Dearmo Date: | public static int[] reverseArrayElements(int[] array)
{
//step 1: make an array to hold the reversed values
int[]reversedArray = new int[array.length];
//step 2: for loop with a little piece of ELEGANT code
for(int i = 0; i < array.length; i++)
{
reversedArray[i] = array[(array.length - 1) - i];
}
ret... | [
"public static void reverseArray(int[] arr){\n\t\t\n\t\tArrayList<Integer> integerAL = new ArrayList<Integer>();\n\t\t\n\t\tfor (int i = arr.length-1; i>=0; i--) {\n\t\t\tintegerAL.add(arr[i]);\n\t\t}\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=integerAL.get(i);\n\t\t}\n\t\t\n}",
"private void rever... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list of amenities this park has. | public List<Amenity> getAmenities() {
return amenities;
} | [
"public ArrayList<String> getAbilities() {\n return new ArrayList<>(this.abilities);\n }",
"public List<Ability> getAllAbilities() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n List<Ability> abilityList = new ArrayList<>();\n\n String sql = SQLiteQueryBuilder\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getLocalFileDescriptor() is called by the SendManager and returns the file descriptor that matches the specified file ID. | public FileDescriptor getLocalFileDescriptor(byte[] fileID)
{
FileDescriptor descriptor;
synchronized (announcedLocalFilesList)
{
descriptor = announcedLocalFilesList.get(Arrays.toString(fileID));
}
if (descriptor == null)
{
synchronized(offeredLocalFilesList)
{
descriptor = offeredLocal... | [
"public int getFiledescriptor() {\n return filedescriptor_;\n }",
"public final FileDescriptor getFD() throws IOException {\n if (fd != null) {\n return fd;\n }\n throw new IOException();\n }",
"public String getFdId() {\n return fdId;\n }",
"@Nullable\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Alternate constructor reading input from STDIN TODO add file support | public GenotypeGraph(){
this.readInput();
prepareEdges();
} | [
"public Input(InputStream stream) {\n this.in = new BufferedReader(new InputStreamReader(stream));\n }",
"public FileIO(String fileIn)\r\n\t{\r\n\t\tfile = fileIn;\r\n\t}",
"public CommandLineReader() {\n\t\tparser = new BasicParser();\n\t\toptions = new Options();\n\t}",
"public ConsoleReader(InputStream... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the size of the stack | private void setStack_size(int stack_size) {
this.Stack_size = stack_size;
} | [
"private void increaseSize() {\n\t\tSystem.out.println(\"Increasing size of the stack\");\r\n\t\tint temp[] = new int[size];\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\ttemp[top] = stack_array[top];\r\n\t\t\tpop();\r\n\t\t}\r\n\t\t\r\n\t\tint old_size = size;\r\n\t\tcreate(size * 2);\r\n\t\t\r\n\t\tfor (int i ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method getClassDates() This method gets the days on which the student attends a class. | public String getClassDates() {
return classDates;
} | [
"public Date getDates() {\n\t\treturn dates;\n\t}",
"public Date getDendtimes() {\n return dendtimes;\n }",
"public DateType getDates() {\n return dates;\n }",
"public ArrayList<Booking> todaysClasses(String staffID)\n\t{\n\t\ttry {\n\t\t\tArrayList<Booking> todaysBookings = new ArrayList<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
for wiring the app want to load the machine file upon loading | public VendingMachineController(VendingMachineServiceLayer service, VendingMachineView view){
this.service=service;
this.view=view;
} | [
"public void init() {\n\t\tString filePath = System.getProperty(\"itmp_config_loc\");\n\t\tlog.debug(\"\\n -- filePath in System properties given in JBoss -- \"\n\t\t\t\t+ filePath);\n\t\tif (filePath != null) {\n\t\t\tlog.info(\"\\n :: Loading file data from system path ::\");\n\t\t\tthis.loadAndReturn(filePath);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the connection timeout. | public final void setConnectTimeoutMillis(final int connectTimeoutMillis) {
this.connectTimeoutMillis = connectTimeoutMillis;
} | [
"void setConnectionTimeout(int connectionTimeout) {\n validate(connectionTimeout);\n this.connectionTimeout = connectionTimeout;\n }",
"public void setConnectionTimeOut(long connectionTimeOut) {\n\t\tthis.connectionTimeOut = connectionTimeOut;\n\t}",
"public void setConnectionTimeout(int connec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the action mode is created; startActionMode() was called | @Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
// Inflate a menu resource providing context menu items
MenuInflater inflater = mode.getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
} | [
"@Override\r\n\tpublic void onActionModeStarted(ActionMode mode) {\n\t\tactivity.onActionModeStarted(mode);\r\n\t}",
"@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic ActionMode startActionMode(Callback callback) {\n\t\treturn super.startActionMode(callback);\n\t}",
"@Override\r\n\t\t public boolean onPrepar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finding the intersection point between two lines. | public Point intersectionWith(Line other) {
double x1 = this.p1.getX();
double x2 = this.p2.getX();
double x3 = other.start().getX();
double x4 = other.end().getX();
double y1 = this.p1.getY();
double y2 = this.p2.getY();
double y3 = other.start().getY();
... | [
"public Point intersectionWith(Line other) {\n\n /* now we find the coefficients of the equation Ax + By + C = 0 that\n * represent the equation , so we can find the intersection point */\n\n // first line:\n\n double a1 = this.end.getY() - this.start.getY();\n double b1 = this.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
on cherche la valeur du nouvel item | @Override
public void changed(ObservableValue<? extends Number> observableValue, Number number, Number number2) {
if (observableValue.getValue().intValue() == 0) { // si c'est un humain
//on active les paramètres humain
best1.setVisible(true);
... | [
"public void addItem() {\n\t\tthis.quantidadeItens++;\n\t}",
"public String getTipoItem() { return (this.tipoItem == null) ? \"\" : this.tipoItem; }",
"private void comboBoxValue() {\n try {\n ResultSet rs = Database.getData(\"SELECT itc_code FROM itemCode\");\n while (rs.next()) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the Private Endpoint resource for this Connection. | public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
} | [
"public void set_endpoint(DTNEndpointID endpoint) {\r\n\t\tendpoint_ = endpoint;\r\n\t}",
"public void setEndpoint(String endpoint)\r\n/* 46: */ {\r\n/* 47:35 */ this._endpoint = endpoint;\r\n/* 48:36 */ if (this.recepcionComprobantesOffline != null) {\r\n/* 49:37 */ ((Stub)this.recepcionComprob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | private String m13333b(boolean z) {
C3362a f = C3364b.m14262a().m14280f();
C3372e q = C3376f.m14355a().m14381q();
StringBuffer stringBuffer = new StringBuffer(1024);
if (f != null && f.m14248b()) {
stringBuffer.append(f.m14255i());
}
if (q != null && q.m14330a... | [
"public abstract T zzs(B b2);",
"public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }",
"public void doSth(B b){\n\n }",
"public abstract void mo14156a(B b, int i, int i2);",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempt to logout. Also removes principal from request (and session if available). | public Boolean logout(final HttpServletRequest request,
final HttpServletResponse response,
boolean errors) throws Exception
{
// check logout permission
Boolean loggedout = null;
try{
checkLogoutPermission();
logge... | [
"@DELETE\n\tpublic void logout(@Context HttpServletRequest request) {\n\t\tm_log.debug(\"Delete\");\n\n\t\t// remove authentication object from session\n\t\trequest.getSession().setAttribute(AuthenticationFilter.AUTH_OBJECT_NAME, null);\n\t}",
"public void logout(HttpServletRequest request) {\n Authenticat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
W3C map to KGRAM map | Mappings translate(Mappings ms) {
Mappings res = new Mappings();
for (Mapping map : ms) {
Mapping m = translate(map);
res.add(m);
}
return res;
} | [
"public abstract Map<String, Object> mo36197g();",
"Map<String, String> mo34587a();",
"public final void mo74062M(Map<String, String> map) {\n String uri;\n int ZU;\n int i = 0;\n if (!C46512f.dlH()) {\n map.put(\"jsapi_reqkey\", C46512f.dlI());\n }\n if (thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methods from the Mistures interface (child) | @Override
public boolean pureSubstance() {
// TODO Auto-generated method stub
return false;
} | [
"@Override\n public void cammina() {\n \n }",
"@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void morte()\n\t{\n\t}",
"@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n\tpublic void morir() {\n\n\t}",
"@Override\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
GetPosition gps = new GetPosition(10,10);
gps.fillArr();
gps.findLargest();
gps.printResults();
} | [
"@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"
]
]
}
} |
generate public and private keys | public static void main(String [] args) throws Exception {
KeyPair keyPair = buildKeyPair();
PublicKey publicKey = keyPair.getPublic();
PrivateKey privateKey = keyPair.getPrivate();
RSA.savePrivateKey(privateKey);
RSA.savePublicKey(publicKey);
// encrypt the message
... | [
"public void generateKeys(){\n\t\tSecureRandom random = new SecureRandom();\n\t\t\n\t\tp = new BigInteger(2048, 100, random);\n\t\tq = new BigInteger(2048, 100, random);\n\t\t\n\t\t//n = p*q\n\t\tn = p.multiply(q);\n\t\t//phi(n) = (p-1)(q-1)\n\t\tphiN = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the 'arguments' from 'CallExpAS' | public java.util.List getArguments(); | [
"public List<Exp> getArguments() {\n return arguments;\n }",
"List<? extends ExpressionTree> getArguments();",
"public List getArguments () {\n return arguments;\n }",
"public String[] getArguments() {\n\t\treturn arguments;\n\t}",
"public List<Object> getArguments() {\n\t\treturn Arrays.asLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Excel Adapter is constructed with a JTable on which it enables CopyPaste and acts as a Clipboard listener. | public TablePaster()
{
system = Toolkit.getDefaultToolkit().getSystemClipboard();
} | [
"public void copyClipboard() {\n/* 1822 */ checkFormat();\n/* */ \n/* 1824 */ ArrayList<GridChange> list = new ArrayList<>();\n/* 1825 */ ObservableList<TablePosition> posList = getSelectionModel().getSelectedCells();\n/* */ \n/* 1827 */ for (TablePosition<?, ?> p : posList) {\n/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Solution 1: Recursive: O(n!m!) O(n) / | public boolean isMatch(String s, String p) {
System.out.printf("s %s, p %s\n", s, p);
if (p.length() > 0 && p.charAt(0) == '*') {
int i = 1;
while(i < p.length() && p.charAt(i) == '*') i++;
if (i == p.length()) return true;
int j = 0;
while(j <... | [
"int rec(int n0, int n1, int m0, int m1) {\n if (visited[n0][n1][m0][m1]) return 0;\n visited[n0][n1][m0][m1] = true;\n if (n0 == n1 && m0 == m1) return 1;\n\n int ans = 1;\n // split by horizontal line\n for (int n = n0; n < n1; n++) {\n int h0 = n - n0 + 1;\n int h1 = n1 - n;\n in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets text field value and will clear the field prior to writing based on the clear boolean | public void setText(byFields by, String element, String data,
Boolean clear, int timeOut) {
try {
waitForElement(timeOut, by, element);
if (clear) {
clearText(by, element, timeOut);
}
if (selenium)
getDriver(seleniumD.True).findElement(getBy(by, element))
.sendKeys(data);
els... | [
"public void clear(){\n textField.clear();\n }",
"private void clearTxt() {\n\t\ttxt_name.setText(\"\");\r\n\t\ttxt_age.setText(\"\");\r\n\t\ttxt_sex.setText(\"\");\r\n\t\ttxt_address.setText(\"\");\r\n\t\ttxt_phone.setText(\"\");\r\n\t\ttxt_email.setText(\"\");\r\n\t}",
"public void clearTextField() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the given ciphersuite is enabled and available. (Enabled ciphersuites are always available unless the status has changed due to change in JCE providers since it was enabled). Does not check if the required server certificates are available. | boolean isEnabled(CipherSuite s) {
return enabledCipherSuites.contains(s) && s.isAvailable();
} | [
"boolean hasTlsMode();",
"public String[] getEnabledCipherSuites()\n {\n return m_asCipherSuitesEnabled;\n }",
"@Test\n public void test_SSLEngine_getSupportedCipherSuites_connect() throws Exception {\n TestKeyStore testKeyStore = new TestKeyStore.Builder()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
date format for chat message Purpose : Create instance of class | public goChatClientThread(Socket s){
ClientSocket = s;
} | [
"private void createMessage(Date d){\n message = TYPE2 + d;\n }",
"public String dateChat(){\r\n\t\tString date=\"\";\r\n\t\tint heure,minute,seconde;\r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n heure = cal.get(Calendar.HOUR_OF_DAY);\r\n minute= cal.get(Calendar.MINUTE);\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: builtComposite or composite? | public boolean uses(String contributionURI, String compositeURI) {
return compositeUses(builtComposite, contributionURI, compositeURI);
} | [
"Composite() {\r\n\r\n\t}",
"boolean hasComposite();",
"@Override\r\n\tpublic void setComposite(Composite arg0) {\n\t\t\r\n\t}",
"public boolean isComposite() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic void setComposite(Composite comp) {\n\r\n\t}",
"@Override\r\n\tpublic Composite getComposite() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The buildGeneralComponents method helps to create the components of the TextWindow frame. | private void buildGeneralComponents() {
instruction = new JLabel("<html><p style='margin: 10px 0px 20px text-align: center;'>"
+ "Enter the text to be encrypted / decrypted below</p></html>");
textArea = new JTextArea(10, 35);
encryptButton = new JButton("Encryp... | [
"public void buildComponents() {\r\n buildLabels();\r\n buildCheckBoxes();\r\n buildTables();\r\n buildScrollPanes();\r\n }",
"private void createComponents() {\n\t\tfinal GridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.gridwidth = 1;\n\t\tgbc.insets = new Insets(10, 0, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Static method to facilitate loading List of Movies with JSON data | public static List<Movie> getMoviesList(JSONArray moviesJSONArray) throws JSONException {
List<Movie> movies = new ArrayList<>();
for(int i = 0; i < moviesJSONArray.length(); i++){
movies.add(new Movie(moviesJSONArray.getJSONObject(i)));
}
return movies;
} | [
"private List<Movie> getMoviesDataFromJson(String jsonStr) throws JSONException {\n // \"results\": [\n // {\n // \"vote_count\": 7266,\n // \"id\": 299536,\n // \"video\": false,\n // \"vote_average\": 8.3,\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the main program as a command line. | private int runMain(String... args) {
String[] baseArgs = { "java", "-Xmx256m", "-cp", jarWithDependencies(),
"-D" + Util.TESTING_PROPERTY + "=" + Util.TESTING_PROPERTY,
// "-Djava.util.logging.config.file=src\\test\\resources\\test\\logging.propertiesWindows",
... | [
"public static void main(String[] commandLine){\n\t}",
"public static void main(String[] args) {\n new Cli().run(args);\n }",
"public static void main(String[] arg) {\n new CommandLineShell().runShell();\n }",
"public static void main(String[] argv) {\n System.setOut(new PrintStream... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes uses/provides entries to the given stream. They are grouped if the user has chosen such option. Starting and ending braces are not written. Each entry is followed by a newline character. | private void writeUsesProvides(PrintWriter out) {
if (getGroupFlag()) {
writeUsesProvidesGrouped(out);
} else {
writeUsesProvidesSimple(out);
}
} | [
"public void beginGroup(String groupName, PrintWriter out);",
"private static <T> void print(PrintWriter out, Iterator<T> iterator,\n String prefix, String format, int elementsPerGroup, int groupsPerLine) {\n final StringBuilder sb = new StringBuilder(\"\\n\");\n for (int i = 0; i < prefix.length(); i+... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main method. Makes and displays a WordFinder window. | public static void main(String[] args) {
// In general, Swing objects should only be accessed from
// the event-handling thread -- not from the main thread
// or other threads you create yourself. SwingUtilities.invokeLater()
// is a standard idiom for switching to the event-handling thread.
SwingUtilities.in... | [
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Halla los hilos del foro mas votados por los usuarios en el ultimo mes | List<ForumThread> getMostValuedThreadsOfTheMonth(); | [
"public void limpiarUsuarios() {\n Nodo aux = TABLERO.usuarios.primero;\n while (aux != null) {\n TABLERO.usuarios.getPrimero();\n aux = aux.siguiente;\n }\n }",
"public void pintarUsuarios() {\n\t\tif (users != null && !users.isEmpty()) {\n\n\t\t\t// Recorre el arre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method determining whether or not this Mobile can collide (whether its owned hitboxes are enabled and registered). | public abstract boolean canCollide(); | [
"public abstract boolean collide(Entity collision);",
"public boolean getCollisionState(){\n\t\treturn this.canCollide;\n\t}",
"public boolean collides(int x, int y) {\r\n return internal.collides(x, y);\r\n }",
"public boolean check(Collidable c) {\n\t\tdouble otherLBound = c.getBoundsX()[0];\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint64 size = 3; | public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
} | [
"long longSize();",
"public @UInt32 int getRunInSize();",
"public int getSize() { return 3+length;}",
"public int sizeInBytes()\n\t{\n\t\treturn Integer.SIZE * 3;\n\t}",
"long getInitialSize();",
"public int bitSizeOf(long bitPosition);",
"public int getFixedBinIdSize();",
"int getSize() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final boolean m36631a(@NotNull Experiment experiment) {
C2668g.b(experiment, "experiment");
Boolean bool = (Boolean) this.f30361a.get(experiment);
if (bool != null) {
return bool.booleanValue();
}
StringBuilder stringBuilder = new StringBuilder();
strin... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Permite buscar a un Usuario a a partir de su nombre. | public boolean buscarUsuario(String nombre){
for(int i=0;i< this.listaUsuario.size();i++){
if( this.listaUsuario.get(i).getNombre().equals(nombre)){
return true;
}
}
return false;
} | [
"public Usuario getbyName(String nombre){\n\t\treturn getbyName(root,nombre);\n\n\t}",
"public void findUser(String nombre, String clan){\n\t\tSystem.out.println(Servidor.listaUsuarios.get(0));\n\t\tfor(int i=0;i<Servidor.listaUsuarios.size();i++){\n\t\t\tString usuario=Servidor.listaUsuarios.get(i).toString();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test for the method removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) | public final void testRemoveNotificationListenerObjectNameObjectName()
throws Exception {
test(this.getClass().getMethod("addNLCondition", null), null, "rnl",
mbs.getClass().getMethod("removeNotificationListener",
new Class[] { ObjectName.class, ObjectName.class }),
... | [
"public void removeNotificationListener(ObjectName paramObjectName1, ObjectName paramObjectName2) throws InstanceNotFoundException, ListenerNotFoundException {\n/* 211 */ this.server.removeNotificationListener(paramObjectName1, paramObjectName2);\n/* */ }",
"public void removeNotificationListener(Object... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sorts an array of ints using quicksort | public void quickSort(int[] to_sort) {
quickSorter(to_sort, 0, to_sort.length-1);
} | [
"public static void quicksort(int[] data) { quicksort(data, 0, data.length - 1);}",
"private static void quickSort(int[] array, int i, int j) {\n\t\t\r\n\t}",
"static void QUICKSORT (int [] A) {\n\t\tint q = PARTITION(A, 0, A.length-1);\n\t\tQUICKSORT(A, 0, q-1);\n\t\tQUICKSORT(A, q+1, A.length-1);\n\t}",
"pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new icon menu content ajax link. | public IconMenuContentLink(final String _wicketId,
final IModel<AbstractUIField> _model,
final String _content,
final String _icon)
throws EFapsException
{
super(_wicketId, _model, _content);
... | [
"private void createMenu() {\n\t\tthis.setComponentMenu(new CFComponentMenu(this));\n\t\tthis.getComponentMenu().addMenuItem(\"photos.png\",\n\t\t\t\tnew CFComponentMenuItemListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void processEvent() {\n\t\t\t\t\t\tdownloadPhotos();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tthis.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Additional details about what the company does | public String getFunction() {return function;} | [
"public String getCompanyDescription(){\n\t\treturn companyDescription;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + this.title + \" for \" + this.getCompany();\n\t}",
"@Override\n public void getCompanyInfo() {\n getCompanyInfoFromRemote();\n }",
"public String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Verify Action Button Is Not displayed(Previous) functionality | public void verifyActionButtonIsNotDisplayed() {
boolean flag = true;
if (actionButtonsLists.size() == 0) {
flag = false;
}
Assert.assertFalse(flag, "The action Button Is Not Present");
reportInfo();
} | [
"boolean isPreviousButtonDisabled() {\r\n\t\treturn mPrevPageItem.getClassName().contains(\"disabled\");\r\n\t}",
"public void Previous_Table()\n\t{\n\t\tboolean status = Previous_Button_Appraisals.isEnabled();\n\t\tif(status==true)\n\t\t{\n\t\t\tPrevious_Button_Appraisals.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the position of this location | public LatLonPoint getPosition() {
return pos;
} | [
"public GLatLng getPosition()\r\n\t{\r\n\t\treturn position;\r\n\t}",
"public Point getLocation()\n\t{\n\t\treturn getPoint(0);\n\t}",
"public Point getLoc() {\n\t\treturn location;\n\t}",
"public Coordinate getPosition(){\n\t\treturn position;\n\t}",
"public Point getPosition() {\n return new Po... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Carga una propiedad de la base de datos que coincida con el nombre que recibe por parametro | IFProperty loadPropertyByName(String propertyName); | [
"PARAMETROS (String parametro) { \r\n\t this.parametro = parametro;\r\n\t }",
"public void setNombre_Parametro(java.lang.String nombre_Parametro) {\n this.nombre_Parametro = nombre_Parametro;\n }",
"public PalabrasClave consultarPalabraClave(@Param(\"descripcion\") String descripcion);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new parameter. | public Parameter(final int parameterId_, final byte[] confParams_) {
parameterId = parameterId_;
confParams = confParams_;
} | [
"public Parameter() { }",
"IParameter buildParameter(String name, String value, byte type);",
"public Parameter createParameter(String name) {\n\t\treturn delegate.createWrappedIndividual(name, Vocabulary.CLASS_PARAMETER, DefaultParameter.class);\n }",
"public Parameter(String inputValue) {\n super(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tries to get a task from the task list, and waits until there is a task available | public E getTask() throws InterruptedException {
lock.lock();
try {
while (tasks.isEmpty()) {
notEmpty.await();
}
return tasks.remove();
} finally {
lock.unlock();
}
} | [
"private void fetch() {\n try {\n securityContext.asProcessingUser(() -> {\n try {\n while (!stopping.get()) {\n needsTasks.set(false);\n final int executingTaskCount =\n taskContextFacto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up for Test | public void testBid(){
MainActivity activity = (MainActivity)solo.getCurrentActivity();
solo.assertCurrentActivity("Wrong Activity", MainActivity.class);
solo.clickOnText("Sign Up");
solo.assertCurrentActivity("Wrong Activity", SignUpActivity.class);
solo.enterText((EditText) sol... | [
"public static void setUp() {\n\n }",
"default void setUp(){}",
"private MTAFTestSetup() {\n mtafCore = new MTAFCore();\n mtafCore.initilize();\n execEngine = mtafCore.getExecutionEngine();\n\n\n }",
"public void setUp(){\n }",
"@Before\n\tpublic void setup()\n\t{\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new feature using the geometry provided as parameter and the source features' values indeed in the dissolve properties list | private SimpleFeature createDissoveFeature(
final Geometry geometry,
final SimpleFeature sourceFeature,
final SimpleFeatureType targetType,
final CoordinateReferenceSystem sourceCrs,
final CoordinateReferenceSystem targetCrs,
final List<String> dissolveProperties
) throws SpatialOperationException{... | [
"EliminatedFeature createEliminatedFeature();",
"@Override\n protected SimpleFeatureType buildTargetFeatureType() {\n // create schema\n SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();\n for (AttributeDescriptor descriptor : inputFeatureCollection.getSchema().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Standard Android call. Used for type safety... | int getId(); | [
"@Override\r\n\tpublic void onCall() {\n\t\t\r\n\t}",
"public android.support.p022v4.util.C0902i<java.lang.String, com.p280ss.android.ugc.aweme.hybrid.monitor.C30375b> call() throws java.lang.Exception {\n /*\n r10 = this;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor, bei dem die Koordinaten angegeben und die Pebblezahl auf 2 gesetzt wird | public myNode (int x, int y) {
this.x = x;
this.y = y;
this.pebbles = 2;
} | [
"public Triangle2D(){\r\n\t\tsetP1(new MyPoint());\r\n\t\tsetP2(new MyPoint(1, 1));\r\n\t\tsetP3(new MyPoint(2, 5));\r\n\t}",
"public ObiektNaPlanszy()\n {\n wiersz = 0;\n kol = 0;\n }",
"public Kruznica (int x, int y, int r) {\r\n\t\tsuper(x, y, r, r);\r\n\t}",
"public Koordinata(Point p)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que permite obtener el login de usuario | public String getLogin() {
return login;
} | [
"public String login (){\r\n \r\n Osoba o = loginBean.login(userName, password);\r\n \r\n \r\n if(o != null){\r\n \r\n this.loggedInUser = o;\r\n \r\n if(o.getPrivilegija().equals(\"admin\")){\r\n return \"admin\";\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |