query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
TODO Autogenerated method stub
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); }
[ "@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" ] ] } }
main Methode zum Start der Java Applikation
public static void main(String[] args) { new BMICalculatorGUI("BMI Rechner"); }
[ "void startApp();", "public static void main (String[]args){//Start of method main.\r\n launch(args);\r\n }", "private void start()\n\t{\n\t\t\n\t}", "public static void main(String[] args) {\n start(args);\r\n\r\n }", "public static void main(String[] args) throws IOException {\n MySwi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public void waitUntilComplete() { synchronized (this.mClientResource) { try { this.mClientResource.wait(); } catch (InterruptedException e) { } } }
[ "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" ] ] } }
Traverse the tree in preorder fashion an append the StringBuilder with the alphabetic character as well as its corresponding morse code
private void traverse(Node<ModCharacter> node, StringBuilder letter, StringBuilder code) { if (node == null) { //DO NOTHING. } else { letter.append(node.toString() + "\t" + code.toString() + "\n"); traverse(node.left, letter, code.append(no...
[ "private static void insertMorse(TreeNode decodingTree, String letter,\n String code, TreeDisplay display)\n {\n int length = code.length(); \n for(int i=0 ; i < length; i++)\n {\n if(code.substring(i,i+1).equals(\".\"))\n {\n if(decodingTree.getLeft()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Birthday__DocumentationAssignment_4_1" $ANTLR start "rule__Birthday__TypeAssignment_5_0_1" InternalStubbrLang.g:46861:1: rule__Birthday__TypeAssignment_5_0_1 : ( ( ruleQualifiedName ) ) ;
public final void rule__Birthday__TypeAssignment_5_0_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:46865:1: ( ( ( ruleQualifiedName ) ) ) // InternalStubbrLang.g:46866:2: ( ( ruleQualifiedName ) ) ...
[ "public final void rule__Feature__TypeAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:11699:1: ( ( ( rule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructs a StandardKernel with the specified dimensions, coefficients and coefficient formatting. param w : width of kernel param h : height of kernel param data : array of coefficients, in rowmajor order param n : number of fraction digits used when writing coefficients
public StandardKernel(int w, int h, float[] data, int n) { super(w, h, data); setFractionDigits(n); }
[ "public KernelPane(int w, int h) {\n width = w;\n height = h;\n coeff = new JTextField[w*h];\n\n GridBagLayout layout = new GridBagLayout();\n setLayout(layout);\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridwidth = constraints.gridheight = 1;\n constraints.w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methode zum Speichern der Gebannten Karte
public void WriteKartenBannenToDatabase(Object KarteBannen, String Kartenname) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }
[ "protected abstract void zeichne ();", "public void abmelden() {\r\n zeichenfenster.grafikEntfernen(this);\r\n }", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\tpublic void GanharVida() {\n\t\t\n\t}", "@Override\n\tpublic void morte()\n\t{\n\t}", "@Override\r\n\tpublic void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected String getSubTitle() { return "车间"; }
[ "@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" ] ] } }
Disable logging globally, changes previous status as well
public void disable() { enabled = false; prev_enabled = false; }
[ "public static void disableLogging()\n {\n allowLogging = false;\n }", "public static void disableLogging() {\n DEBUG = false;\n }", "public void disableLogging() {\n validateSessionStarted(\"disableLogging()\");\n driver.executeScript(\"sauce: disable log\");\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void onClick(View arg0) { AlertDialog.Builder build = new AlertDialog.Builder(AlergDialogProject.this); build .setMessage("apakah benar anda akan keluar") .setCancelable(false) .setPositiveButton("yes",new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) {...
[ "@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" ] ] } }
Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale.
@JsonIgnore public String getVehicleSpecialUsage() { return (String) getValue("vehicleSpecialUsage"); }
[ "public boolean isSupportVehicle() {\n return false;\n }", "private boolean hasSpecialConditionViewers()\n {\n return numberOfViewersSpecial > 0;\n }", "public String getSpecialPricingConditionsServiceIntendedUses() {\n return specialPricingConditionsServiceIntendedUses;\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .CMsgVector2D velocity = 2;
public Builder clearVelocity() { if (velocityBuilder_ == null) { velocity_ = skadistats.clarity.wire.common.proto.NetworkBaseTypes.CMsgVector2D.getDefaultInstance(); onChanged(); } else { velocityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); ...
[ "gameservice.GameService.Vector2OrBuilder getVelocityOrBuilder();", "Vector2 getVelocity () {\n // TODO: Fill in here, if necessary\n return null;\n }", "public void setVelocity(Vector velocity);", "int getVelocity() {\n return velocity;\n }", "public Vector3D getVelocity();", "public int getVe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for executing a STANDARD query on a new thread
private void ExecuteStandardQueryOnThread(String query){ Thread t = new Thread(new Runnable() { @Override public void run() { try{ main.GetQueryTool().ExecuteTableFillQuery(query); } catch(Exception x){ UpdateStatusLabel...
[ "Future<ResultSet> execute(String query);", "@Override\n protected Cursor doInBackground(Void... params) {\n return(doQuery());\n }", "void executeOnSameThread(String searchCriteria){\n Log.d(TAG, \"executeOnSameThread: starts...\");\n runningOnSameThread = true;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
isService Set Quantity in Storage UOM
public void setQty (BigDecimal qty) { m_qty = qty; }
[ "boolean hasIpgoQty();", "boolean hasJaegoQty();", "boolean hasItemRewardQuantity();", "public boolean isQuantityGettable() {\n try {\n QuantityFrame qr = new QuantityFrame();\n String test = qr.getQuantity();\n return true;\n } catch (NullPointerException npe) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the nearest caller outside the parsing API. Some additional classes can be also excluded. Note: this method is copied from Indexing API (parsing.impl.indexing.IndexingUtils). Perhaps a common implementation should be created
public static StackTraceElement findCaller(StackTraceElement[] elements, Object... classesToFilterOut) { loop: for (StackTraceElement e : elements) { if (e.getClassName().equals(Utilities.class.getName()) || e.getClassName().startsWith("java.lang.")) { //NOI18N continue; ...
[ "private void findCallSource()\n\t{\n\t\tLinkedList<SootMethod> callees = new LinkedList<SootMethod>();\n\t\tcallees.addAll(lowestMethodCallees);\n\t\tcallers.addAll(lowestMethodCallees);\n\t\t\t\t\n\t\twhile(!callees.isEmpty())\n\t\t{\n\t\t\tSootMethod method = callees.removeFirst();\n\t\t\tIterator<Edge> itEdge =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
board drawArea = new board();
@Override public void run() { System.out.print(""); while(true){ try{ // if (drawArea.g2 != null) { int oldx = dis.readInt(); int oldy=dis.readInt(); ...
[ "public Board() {}", "public void createBoard(){\n Board board = new Board(8,8,4);\n// Board board = (Board) DebugProxy.newInstance(new Board(8,8,4));\n gameState.setBoard(board);\n }", "public Ball(Board board){\n this.board = board;\n x = 0;\n y = 0;\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end method getInstructorName display a welcome message with course info
public void displayMessage() { // display the course name and instructor's name System.out.printf( "Welcome to the grade book for%n%s%n", getCourseName() ); System.out.printf( "This course is presented by %s%n", getInstructorName() ); }
[ "public void setInstructorName (String name)\n {\n courseInstructor = name; // store the instructor's name\n }", "public static String getCourseName() {\n\t\treturn Lab1.COURSE_NAME;\n\t}", "public String getCourseName () {\n return this.courseName ;\n }", "public String getName() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BFS: Time: O(m n) Space:O(m n)
public void wallsandGates2 (int[][] rooms) { Queue<int[]> queue = new LinkedList<>(); for (int i = 0; i < rooms.length; i++) { for (int j = 0; j < rooms[0].length; j++) { if (rooms[i][j] == 0) { queue.add(new int[] {i, j}); } } ...
[ "private List<Node<E>> doBfs(Node<E> root) {\n var resultList = new LinkedList<Node<E>>();\n\n Queue<Node<E>> nodeQueue = new LinkedList<>();\n mVisitedNodes.add(root);\n root.num = mSteps++;\n nodeQueue.add(root);\n\n while (!nodeQueue.isEmpty()) {\n\n var currentNode = nodeQueue.poll();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the inicial head tab.
public void setInicialHeadTab(String pInicialHeadTab) { inicialHeadTab = pInicialHeadTab; }
[ "@Override\n protected void setHead(Element head) {\n \n }", "public void setHead(Head head) {\n this.head = head;\n }", "public void setHead(Node head) {\r\n this.head = head;\r\n }", "public void setHead(NodeLabel head) {\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 0;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int a = posX;
public void move() { posX = posX + vel*dirX; if(posX <= 5) { dirX = dirX*-1; } if(posX >= 8) { dirX = dirX*-11; } }
[ "public int getxPos(){return xPos;}", "public int getPosicionX1(){\n return x1;\n }", "public int getX(){\n return (int)px;\n }", "int getXPos(){\n return xPos;\n }", "public T getPositionX(){return positionX;}", "public int getX() { return x ;}", "public int getX(){return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string receiverName = 12;
public com.google.protobuf.ByteString getReceiverNameBytes() { java.lang.Object ref = receiverName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); receiverNa...
[ "public java.lang.String getReceiverID(){\n return localReceiverID;\n }", "public String getReceiver() {return receiver;}", "public void setReceiver(String receiver) {this.receiver = receiver;}", "public java.lang.String getSenderName(){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); typeName = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jScrollPa...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
END these are not really converters.. //
<T> Observable<String> toString(Observable<T> src) { return StringObservable.toString(src); }
[ "protected ValueConverter<V> valueConverter()\r\n/* 846: */ {\r\n/* 847: 900 */ return this.valueConverter;\r\n/* 848: */ }", "protected abstract T doConvert(S source);", "public Conversions(){\n\t\t\n\t}", "private MsDataVariableNodeToDataVariableNodeConverter() {\n }", "public interf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restituisce il valore di requestQueryString
public String getRequestQueryString() { return this.requestQueryString; }
[ "public String getQueryString()\r\n {\r\n return reqQuery;\r\n }", "com.google.protobuf.ByteString getQueryString();", "private String getQuery() {\r\n return request.getQuery();\r\n }", "public void setQueryString(String query);", "public String getQueryString() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ManyToMany bidireccional mapeada utilizandao java.util.Set > Cascade.ALL Se eliminar el autor y se deberia propagar el remove a los libros. Ver que pasa con el libro que esta referenciado por 2 autores
@Test public void manyToManyUnidirectionalCascadeRemoveDosReferencias() { Autor2 autor = new Autor2("Curso JEE JAVA"); autor.agregarLibro(new Libro("Mastering Hibernate")); autor.agregarLibro(new Libro("Mastering OpenJPA")); //Este libro se va a agregar a los 2 autores Libro libro = new Libro("Masterin...
[ "public void MapeaManyToMany(Entidad entidad, Field values, String pkType) {\n\n ManytoManyClass relacionNueva = new ManytoManyClass();\n if (values.isAnnotationPresent(JoinTable.class)) {\n\n JoinTable jt = values.getAnnotation(JoinTable.class);\n\n String nombreTabla = jt.name(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates g square for a conditional crosstabulation table for independence question 0 _||_ 1 | 2, 3, ...max by summing up g square and degrees of freedom for each conditional table in turn, where rows or columns that consist entirely of zeros have been removed.
public synchronized GSquareTest.Result calcGSquare(int[] testIndices) { // Reset the cell table for the columns referred to in // 'testIndices.' Do cell coefs for those columns. getCellTable().addToTable(getDataSet(), testIndices); // Indicator arrays to tell the cell table which margi...
[ "public double[][] gaussBase(double[][] cCopy){\n\t\t//===================================\n\t\t/*\n\t\tif((j-1)==1){\n\t\t\tSystem.out.println(\"/////\");\n\t\t\tprintMatrix(c);\n\t\t\tSystem.out.println(\"/////\");\t\n\t\t}\n\t\t*/\n\t\t//===================================\n\t\t\n\t\tcheckValid();\n\t\tdouble[][...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The persona that defines the specific permissions of the user or group in your IAM Identity Center identity source. The available personas or access roles are Owner and Viewer. For more information on these personas, see Providing access to your search page.
public String getPersona() { return this.persona; }
[ "public interface IPermissionOwner {\n\t\n /**\n * Get the unique numerical identifier for this permission owner. While\n * unique, this identifier should not be expected to be constant over time\n * and may change between uPortal versions due to import/export operations.\n * \n * @return\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simulation 1 length digit 9 (1 to 9) 2 lengths digit 290 = 90 (10 .. 99) 3 lengths digit 39010 = 900 (100 .. 1000) 4 lengths digit 490010
public int findNthDigit(int n) { // length of the digit int len = 1; // long: to avoid overflow long cnt = 9; int number = 1; while(n > len*cnt){ n -= len*cnt; cnt *= 10; number *= 10; len++; } ...
[ "public static String generateAllDigits() {\n String result = \"\";\n for (int i = 0; i <= 9; i++) {\n result += i;\n }\n return result;\n }", "public static final String createCode(int numLength) {\n\n\t\tfinal int MAX_LENGTH = 9;\n\n\t\tif (numLength > MAX_LENGTH || num...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Logger by wrapping a commons Log class.
CommonsLogger(org.apache.commons.logging.Log log) { this.log = log; }
[ "private Logger() {\n createLoggingDir();\n createLoggingFile();\n }", "public static LogWrapper getInstance() {\n return getInstance(null);\n }", "public Logger(Log log) {\n this.log = log;\n this.tag = null;\n this.level_offset = 0;\n }", "public abstract ILogger newInstan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int32 questIds = 8; active quests a user has, this is to allow monsters to drop something other than a piece of themselves (quest_monster_item)
java.util.List<java.lang.Integer> getQuestIdsList();
[ "private void createQuestItems()\n {\n questItemRoom.addItem(new BeamerItem(5, \"wand\", \n \"a mysterious crystal wand\", true, thePlayer));\n }", "public void initQuests(RoomList roomHandler, Player player) {\n this.allGameQuests = new HashMap<>();\n QuestFactory qFactory =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If true, allows the provider to enumerate users.
@ApiModelProperty(value = "If true, allows the provider to enumerate users.") public Boolean isEnumerateUsers() { return enumerateUsers; }
[ "Boolean areUsersReadOnly();", "boolean hasUserList();", "protected boolean isExistingUserAllowed() {\r\n return false;\r\n }", "public boolean hasUserCreds() {\n return result.hasUserCreds();\n }", "private Boolean evaluateIsUser(EvaluatorConfigData evalConfig)\n {\n List<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_bank_transfer, container, false); ButterKnife.bind(this, view); return view; }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MODIFIES: this EFFECTS: Creates JPanel located in SOUTH position
private void configureSouthPane() { southPane = new JPanel(); southPane.setLayout(new GridLayout(2,1)); mainMenuButton = new JButton("Return to main menu"); mainMenuButton.setFont(new Font("Dialog", Font.BOLD, 20)); southPane.add(mainMenuButton); southPane.add(createSout...
[ "protected abstract void layoutPanel();", "public void makeWindobar()\r\n\t{\n\t\twindow.add(bot_panel,BorderLayout.SOUTH);\r\n\t\twindow.setResizable(false);\r\n\t\twindow.setVisible(true);\r\n\t}", "private void makePanel() {\r\n\t\t_pan = new JPanel();\r\n\t\t_pan.setLayout(new FlowLayout());\r\n\t\t_pan.set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate the location the agent is moving to, based on its current location and its strategy.
@Override public Location moveTo() { return IMovementStrategy.moveTo(owner, realLocation); }
[ "public AgentLocation getGoalLocation( AgentLocation location, Area sensorView )\n {\n Rectangle2D bounds = sensorView.getBounds();\n double curX = location.getX();\n double curY = location.getY();\n\n double newX = -1;\n double newY = -1;\n double ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Init method used to retrieve Servlet Context
public void init(final FilterConfig filterConfig) throws ServletException { servletContext = filterConfig.getServletContext(); }
[ "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n passd = context.getInitParameter(\"pass\");\r\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
[ "public interface MainActivityFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface ActivitytoFragment {\n void communicate(boolean comm);\n\n}", "public interface TalkToIndividualFragment {\n /**\n * report how many has added in remote data...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__QueryDisjunction__Group_1__2__Impl" $ANTLR start "rule__QueryConjunction__Group__0" InternalQLParser.g:3273:1: rule__QueryConjunction__Group__0 : rule__QueryConjunction__Group__0__Impl rule__QueryConjunction__Group__1 ;
public final void rule__QueryConjunction__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalQLParser.g:3277:1: ( rule__QueryConjunction__Group__0__Impl rule__QueryConjunction__Group__1 ) // InternalQLParser.g:3278:2: rule__Que...
[ "public final void rule__Conjunction__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../net.certware.argument.sfp.ui/src-gen/net/certware/argument/sfp/ui/contentassist/antlr/internal/InternalSemiFormalProof.g:1172:1: ( rule__Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doPost(req, resp); }
[ "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(request, response); //susing doPost方法执行 对应jsp页面中的form表单中的method\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns total number of pages
@Override public int getCount() { return NUM_ITEMS; }
[ "public int getTotalPage() {\n return totalPage_;\n }", "public Long getTotalPages() {\n\t\tif (totalCount < 0)\n\t\t\treturn -1L;\n\n\t\tLong count = totalCount / pageSize;\n\t\tif (totalCount % pageSize > 0) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public Long getTotalPages() {\n if (tot...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ListaComprobanteView
public ListaComprobanteView() { initComponents(); listaComprobanteController = new ListaComprobanteController(this); }
[ "public void listarCrecente() {\n\t\tboolean listaItem = false;\n\t\tString mensagem = \"A ordem crescente da lista ficou:\\n\";\n\t\tif(numero != null) {\n\t\t\t//coloca a lista em ordem crescente\n\t\t\tCollections.sort(numero);\n\t\t\tfor (Integer ordenada : numero) {\n\t\t\t\tmensagem += ordenada + \" \";\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description of the placement group. string description = 5;
public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; }
[ "public void setGroupDescription(final String description) {\r\n this.description = description;\r\n }", "public String getPlacement() {\r\n\t\treturn placement;\r\n\t}", "public java.lang.CharSequence getPlacement() {\n return placement;\n }", "@Override\n\tpublic String toString() {\n\t\tStrin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
Object getValue(String name);
[ "public static Obj find(String name) {\n\t\tfor(Scope s = curScope; s != null; s = s.outer)\n\t\t\tfor(Obj o = s.locals; o != null; o = o.next)\n\t\t\t\tif(o.name.equals(name))\n\t\t\t\t\treturn o;\n\t\t\n\t\terror(name + \" undefined.\");\n\t\treturn noObj;\n\t}", "public Object getObject(String name) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if a property is set as a short, to get is as a byte throws a javax.jms.MessageFormatException.
@Test public void testShort2Byte() { try { Message message = senderSession.createMessage(); message.setShortProperty("prop", (short) 127); message.getByteProperty("prop"); Assert.fail("sec. 3.5.4 The unmarked cases [of Table 0-4] should raise a JMS MessageFormatException.\n"...
[ "public short getShortProperty(String key) {\r\n String value = getProperty(key);\r\n\r\n if (value == null) {\r\n throw new NumberFormatException(\"property undefined: \" + key);\r\n }\r\n\r\n try {\r\n return Short.parseShort(value);\r\n } catch (NumberForm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
One of: app, uc, ep0, ep1, ..., ec, eld, epfd, beb, pl string abstractionId = 3;
com.google.protobuf.ByteString getAbstractionIdBytes();
[ "java.lang.String getFromAbstractionId();", "String getAbilId();", "public abstract int getAlgorithmId();", "private static String makeId() {\n\t\tString name = \"\";\n\t\tfor (int i = 0; i < rnd.nextInt(4) + 3; i++) {\n\t\t\tname += (char) (rnd.nextInt(26) + 97);\n\t\t}\n\t\tfor (int i = 0; i < rnd.nextInt(1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleProgram" $ANTLR start "ruleProgram" InternalRoc.g:77:1: ruleProgram returns [EObject current=null] : ( (lv_movements_0_0= ruleMovement ) ) ;
public final EObject ruleProgram() throws RecognitionException { EObject current = null; EObject lv_movements_0_0 = null; enterRule(); HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); try { ...
[ "public final CalcParser.program_return program() throws RecognitionException {\n\t\tCalcParser.program_return retval = new CalcParser.program_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken EOF2=null;\n\t\tParserRuleReturnScope commands1 =null;\n\n\t\tObject EOF2_tree=null;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ User defined proxy flavour
@Override public <T> T measure(AbstractTest test, T object, T proxy) throws Throwable { if(proxy instanceof Proxy) { Proxy<T> p = (Proxy<T>) proxy; p.setTest(test); p.setTarget(object); p.setBenchmark(this); } return proxy; }
[ "void setProxy(Proxy proxy);", "public T getProxy();", "public Proxy()\n\t{\n\t\tsuper(\"Proxy\") ;\n\t}", "abstract protected T createProxy0(T target);", "public interface IProxy {\n String getHost();\n\n Integer getPort();\n\n String getType();\n\n Integer getSpeed();\n\n void setHost(Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Iterate over the connection details from the controller, requesting chunk data from each chunk server.
private byte[][] processIncomingChunks(String[][] chunkServers, ConnectionUtilities connections) { byte[][] fileBytes = new byte[ chunkServers.length ][ Constants.CHUNK_SIZE ]; String filename = readFileResponse.getFilename(); filename = filename.substring( filename.lastIndexOf( File.separator...
[ "public void run_one_chunk() {\n\n CountDownLatch latch = new CountDownLatch(1);\n\n pool.execute(() -> {\n int delay = 1;\n\n ProtocolInfo status = Peer.getInstance().getProtocolInfo();\n\n for(int i = 0; i < MAX_RETRANSMISSIONS; i++) {\n sendPUTCHUNK(f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table attempt
public AttemptExample() { oredCriteria = new ArrayList<Criteria>(); }
[ "@Override\n\tpublic void CreateFromSQL() {\n\n\t}", "public String getJdbcTable();", "@Insert({\n \"insert into sys_user (create_date, update_date, \",\n \"account, password, \",\n \"name, email, phone, \",\n \"inst_id, inst_name, \",\n \"mobile, user_type, \",\n \"log...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: refactor this method
public static List<StackTraceElement> getTraceTillPackage(String packageName) { StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); // skip all elements until proxied call int startIndex = 0; for (int i = 1; i < stackTraceElements.length; i++) { S...
[ "@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}", "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "@Override\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get agency name to filter by.
public String getAgencyName();
[ "public String getAgency() {\n return _agency;\n }", "public java.lang.String getAgencyId() {\n java.lang.Object ref = agencyId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the motif of the current PandaObjective (by "degodelization"), i.e. the expected motif for completing the PandaObjective in question.
public Map<Color, Integer> getMotifForCompleting() { Map<Color, Integer> motifForCompleting = new EnumMap<>(Color.class); int id = motif.id; int green = 0; while (id % 2 == 0) { id /= 2; green++; } motifForCompleting.put(Color.GREEN, green); int yellow = 0; while (id % 3 == 0) { id /= 3; y...
[ "public double getObjective() throws IloException {\r\n\t\treturn this.cplex.getObjValue();\r\n\t}", "public Objective getObjective() {\n\t\treturn objective;\n\t}", "public ObjGoal getOppGoal() {\n \t\tfor(int i = 0; i < ObjMem.getSize(); i++) {\n \t\t\tif((getObj(i).getObjName().compareTo(\"goal\") == 0) && (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds Panel to hand in the correct order
public void addPanel(Panel panel, boolean isFlip) { Panel newPanel; if(isFlip) { newPanel = new Panel(panel.getIsWhite(), panel.getValue(), isFlip); } else newPanel = panel; panels.add(newPanel); sort(panels); }
[ "public void createPlayerPanel(){\n String actualPanel = gameController.getTurnOwner().getPanel().getClass().getSimpleName();\n if( gameController.getTurnOwner().getPanel().getId() == gameController.getTurnOwner().getHomePanel().getId())\n actualPanel = \"My \"+gameController.getTurnOwner(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Detailed data for charts
public HashMap<String, HashMap<String,HashMap<String,List<Float>>>> populateDetailedDataForTCP(String deviceName, String testName, String marketId);
[ "public ChartData getChartData();", "private void parChart(){\n DataSeries dataSeries = new DataSeries();\n dataSeries.add(new DataSeriesItem(\"Accepted\", personService.findAllAccepted(appUser.getBank(), Person.Status.ACCEPTED).size()));\n dataSeries.add(new DataSeriesItem(\"Pending\", perso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Purpose Necessary for equals() method in NumberPeaksObserver class Parameter o Object to be compared with 'this' src (
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } // Cast 'o' to NumberPeaksData object NumberPeaksData other = (NumberPeaksData) o; if (peaks.size() != other.peaks.size()) { return false; } for (i...
[ "@Override\n public boolean equivalent(ISpectrum o) {\n if (this == o)\n return true;\n ISpectrum realO = o;\n final ISpectrumPeak[] peaks1 = getPeaks();\n final ISpectrumPeak[] peaks2 = realO.getPeaks();\n if (peaks1.length != peaks2.length)\n return fals...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the region of text from offset to offset + length, and replaces it with text. It is up to the implementation as to how this is implemented, some implementations may treat this as two distinct operations: a remove followed by an insert, others may treat the replace as one atomic operation.
public abstract void replace(int offset, int length, String text, AttributeSet attrs) throws BadLocationException;
[ "public void textRemoved (Document document, int offset, int length)\n {\n // confine the cursor to the new text\n if (_cursp > _text.getLength()) {\n setCursorPos(_text.getLength());\n }\n \n // if we're already part of the hierarchy, recreate our glyps\n if ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all driver info form database ...
private void getDriverInfo() { driverInfoLayout.setVisibility(View.VISIBLE); DatabaseReference mCustomerDatabase = FirebaseDatabase.getInstance().getReference().child("Users").child("Drivers").child(driverFoundID); mCustomerDatabase.addListenerForSingleValueEvent(new ValueEventListener() { ...
[ "public List<DriverInfo> getAllDrivers(){\n\t\t\t\n\t\treturn this.manageDriversDL.findAllDrivers();\n\t\t\t\n\t}", "public List<Driver> findAllDrivers() throws SQLException{\n\t\treturn driverDB.findAll();\n\t}", "public static ArrayList<String> retrieveDrivers() {\n \tArrayList<String> databaseContent = ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns a message in JSON format containing a ciphered message and the userId of the sender
private static String generateFinalMessage(String msg, int senderId) { return "{\"type\":\"final_msg\",\"id\":" + senderId + ",\"msg\":\"" + msg + "\"}"; //cifrar aqui }
[ "private String getUserMessage() {\n\t\treturn this.messageToUser.toString();\n\t}", "public Message getMessage(){\r\n \r\n Message msg = createMessage();\r\n msg.addDefaultHeaders();\r\n msg.encrypt();\r\n \r\n return msg;\r\n }", "public String toJson() {\n JsonO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float xppm = 9;
public boolean hasXppm() { return ((bitField0_ & 0x00000100) == 0x00000100); }
[ "void mo11404bf(float f);", "float iomeg(float pres);", "float getGpsx();", "float getGENIL11();", "void mo9187a(float f);", "void mo28431a(float f);", "void mo25828a(float f);", "void mo32770a(int i, float f);", "double getXp();", "public void setPressure(double pres);", "float getParameter();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a graphic to the overlay.
public void add(Graphic graphic) { synchronized (mLock) { mGraphics.add(graphic); } postInvalidate(); }
[ "public void add(Graphic graphic);", "public void add(Graphic graphic) {\n synchronized (lock) {\n graphics.add(graphic);\n }\n }", "public void add(Graphic graphic) {\n\t\tmChildGraphics.add(graphic);\n\t}", "private void createGraphics() {\r\n\r\n // applies graphics to the vi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if seat is available for that particular course
@Override public boolean seatAvailable(String courseCode) throws SQLException { Connection conn = DBUtil.getConnection(); try { stmt = conn.prepareStatement(SQLQueriesConstants.GET_SEATS); stmt.setString(1, courseCode); ResultSet rs = stmt.executeQuery();...
[ "public boolean areSeatsAvailable() {\n if(checkNumberOfAvailableSeats() >= 1){\n return true;} else {\n return false;\n }\n }", "private boolean checkCourse() {\n\t\treturn false;\n\t}", "private void checkVacancyAvailable() {\n\t\tSystem.out.println(\"Enter the C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .SalesReturnOrderItem itemList = 4;
public java.util.List<com.yhglobal.gongxiao.sales.microservice.SalesOrderReturnServiceStructure.SalesReturnOrderItem.Builder> getItemListBuilderList() { return getItemListFieldBuilder().getBuilderList(); }
[ "void generateItemBill(Item... items);", "@Test\n\tpublic void findAllOrderedItemss() {\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllOrderedItemss \n\t\tInteger startResult = 0;\n\t\tInteger maxRows = 0;\n\t\tList<OrderedItems> response = null;\n\t\tresponse = service.findAllOrderedItemss(star...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get a special income Author: Marco
public IncomeResponse getIncome(int sessionId, int itemId);
[ "public AccountName getAuthor() {\n return author;\n }", "gov.nih.nlm.ncbi.www.CitBookDocument.CitBook.Authors getAuthors();", "public int getAuthor(){\r\n\t\treturn author;\r\n\t}", "public String getAuthor()\r\n\t{\r\n\t\treturn author;\r\n\t}", "public String getArticalAuthor(){\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method sets the description
@RdfProperty("http://www.coadunation.net/schema/rdf/1.0/cataloginfo#CatalogOfferingDescription") public void setDescription(String description) { this.description = description; }
[ "public void setDescription (String description){\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description; \r\n }", "public void setDescription(String description){ this.description = description; }", "public void setDe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
[ "public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }", "public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FAST ACCESS METHODS Return the internal capacity of this histogram. You probably don't want this value and instead want getSampleCount()
protected int size() { return (this.histogram.length); }
[ "public int getCapacity() {\n\t\treturn cap;\n\t}", "@Override\n public long getCapacity() {\n return capacity;\n }", "public int getCapacity() { return this.capacity; }", "public int getCapacity() {\n return capacity;\n }", "public java.lang.Integer getCapacity() {\n return capacity...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX INFO: finally extract failed
public boolean eofDetected(InputStream inputStream) throws IOException { try { if (this.managedConn != null) { if (this.attemptReuse) { inputStream.close(); this.managedConn.markReusable(); } else { this.mana...
[ "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ImprovedFile improvedFile0 = new ImprovedFile(\"Could not create temporary directory for archive: 1.Could not create temporary directory for archive: .jar.jar\");\n ArchiveScanner archiveScanner0 = new ArchiveScanner(improvedFile0);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the full name of the currently being translated transform.
String getFullName(PTransform<?, ?> transform);
[ "public String getName() {\n return this.getDefaultTranslationKey();\n }", "public java.lang.String localizedCurrentStepName() {\n return ((com.guidewire.pl.domain.workflow.WorkflowPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.workflow.WorkflowPublicMethods\")).local...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function isEmpty checks when the stack if empty
public boolean isEmpty(){ //returns true when top is null, false otherwise. return top == null; }
[ "public boolean isStackEmpty() {\n return stack.isEmpty();\n\t}", "public boolean isEmpty(){\n\t\treturn stack.isEmpty();\n\t}", "public boolean isEmpty() {\r\n return (theStack.size()==0);\r\n }", "@Override\r\n public boolean isEmpty() {\r\n if (this.topOfStack == null) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a JiraClientWorker instance
public JiraClientWorker(String login, String password, String jiraUrl) { this.jiraUrl = jiraUrl; this.restClient = getAuthorizedClient(jiraUrl, login, password); }
[ "Worker createWorker();", "public static WorkerBuilderId create()\n {\n return new WorkerBuilderImpl();\n }", "private void createWorkers() {\n PeriodicWorkRequest MinerIDs =\n new PeriodicWorkRequest.Builder(MinerIdentifiersWorker.class, 15, TimeUnit.MINUTES)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Runs the given flow with the given payload and returns the payload of the resulting message
@SuppressWarnings("unchecked") protected <T, U> T runFlow(String flowName, U payload) throws Exception { Flow flow = lookupFlowConstruct(flowName); MuleEvent event = getTestEvent(payload); MuleEvent responseEvent = flow.process(event); return (T) responseEvent.getMessage...
[ "public abstract Object getPayload();", "public Object getPayload()\n {\n return payload;\n }", "public void setPayload(Serializable payload) {\n this.payload = payload;\n }", "com.mh.flux.api.topupRequest.payloadBody getPayload();", "public T getPayload() {\n\t\treturn payload;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Present on resources created after 1 February 2019 except for events not tracked.
public StateBuilder withCreatedBy( Function<com.commercetools.api.models.common.CreatedByBuilder, com.commercetools.api.models.common.CreatedBy> builder) { this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); return this; }
[ "private TaskKey createReqDoneYesterday() {\n\n return Domain.createRequirement( new DomainConfiguration<Requirement>() {\n\n @Override\n public void configure( Requirement aBuilder ) {\n aBuilder.setActualEndDate( iYesterday );\n }\n } );\n }", "public void testGetD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invokes the first mfunction specified by MCC, with any arguments given on the command line, and prints the result.
public static void main (String[] args) { try { MWMCR mcr = SignalsMCRFactory.newInstance(); mcr.runMain( sPulsocuadSignature, args); mcr.dispose(); } catch (Throwable t) { t.printStackTrace(); } }
[ "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(m1());\r\n\t}", "public static void main(String[] args) {\n\t\tm5();\r\n\t}", "public static void main(String args[]) {\n try {\n m();\n } catch (Exception e) {\n }\n System.out.println(s);\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches the danh sach ho so in the entity cache if it is enabled.
public void cacheResult(DanhSachHoSo danhSachHoSo) { EntityCacheUtil.putResult(DanhSachHoSoModelImpl.ENTITY_CACHE_ENABLED, DanhSachHoSoImpl.class, danhSachHoSo.getPrimaryKey(), danhSachHoSo); danhSachHoSo.resetOriginalValues(); }
[ "@Override\n public void cacheResult(MuZhengxianPodao muZhengxianPodao) {\n EntityCacheUtil.putResult(MuZhengxianPodaoModelImpl.ENTITY_CACHE_ENABLED,\n MuZhengxianPodaoImpl.class, muZhengxianPodao.getPrimaryKey(),\n muZhengxianPodao);\n\n muZhengxianPodao.resetOriginalValues()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { LinearLayout ribbonLayout = (LinearLayout)findViewById(R.id.ribbon_entry); ribbonLayout.removeAllViews(); LayoutInflater inflater = getLayoutInflater(); ribbonLayout.addView(inflater.inflate(R.layout.ribbon_insert, 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" ] ] } }
Get the count of attempts (trips through the processing loop) at getting the document referenced by this URI. Compared against a configured maximum to determine when to stop retrying. TODO: Consider renaming as something more generic, as all processingloops do not necessarily include an attempted networkfetch (for exam...
public int getFetchAttempts() { return fetchAttempts; }
[ "@SuppressWarnings(\"UnusedDeclaration\")\n public int getRetryCount();", "public int maxRetries() {\n return this.maxRetries;\n }", "public int getMaxRetries() {\n return (_maxRetries);\n }", "public int getMaxRetries() {\n return this.settings.getMaxRetries();\n }", "public int retry(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The details of the place in Jive being registered.
public ExStorageContainerEntity getContainer() { return container; }
[ "@AutoEscape\n\tpublic String getPlaceInfo();", "Place getCurrentPlace();", "@Override\n public String toString() {\n return \"Place \" +\n \"name is: \" + name + '\\'' +\n \", address: \" + address + '\\'' +\n \", picture: \" + pic ;\n }", "public int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the minimum of the input values
public static float fmin(float a, float b, float c) { return Math.min(a, Math.min(b, c)); }
[ "public Value_Type min();", "public double min();", "double min();", "double getMinVal();", "public double getMin() {\n\t\tdouble min = Double.MAX_VALUE;\n\t\tfor(ArrayList<Double> line : data) {\n\t\t\tfor(Double values : line) {\n\t\t\t\tif(values < min) {\n\t\t\t\t\tmin = values;\n\t\t\t\t}\n\t\t\t}\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
127.0.0.1 localhost Temp variable to enable debugging The constructor creates a connection to the DB. There Should be onyl one DB object becouse otherwise the application has several connections simultaneusly.
public DBCore() { try { Class.forName("org.postgresql.Driver"); connection = DriverManager.getConnection("jdbc:postgresql://" + dbIp + ":" + dbPort + "/" + dbName, us, pw); } catch (Exception e) { System.out.println("Connection to DB faild!"); e.printStack...
[ "public DatabaseConnection()\n {\n if (!loadDefault())\n {\n Description=\"Default\"; // Some useful (?) default defaults\n Driver=\"org.postgresql.Driver\";\n Login=\"postgres\";\n Password=\"\";\n URL=\"jdbc:postgresql://localhost.lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Definicion del metodo abstracto inicio
public void inicio() throws Exception { this.setTrazaFichero(); }
[ "@Override\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\r\n public void publicando() {\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "protected abstract void initCustom();", "@Overr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an Element from the SEQUENCE OF/SET OF.
public synchronized ErrorCode get(int atIndex) { return (ErrorCode)super.getElement(atIndex); }
[ "URNmodelElement getFromElem();", "public static Object element() {\n assert (nsize > 0);\n return elements[start];\n }", "E getElement( ) throws IllegalStateException;", "URNmodelElement getToElem();", "abstract E element();", "public Object element() {\n assert size > 0 : \"Non-p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getOrderLabelStyleDef() { return "red"; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the address of the remote party (making sure that it corresponds to the latest address we've received) and caches it.
public Address getPeerAddress() { Dialog dialog = getDialog(); if (dialog != null) { Address remoteParty = dialog.getRemoteParty(); if (remoteParty != null) { //update the address we've cached. peerAddress = rem...
[ "public String getRemotePartyAddress() {\r\n\t\treturn remotePartyAddress;\r\n\t}", "ReceivingAddress getCurrentReceivingAddress();", "private Address getMyAddress() {\n \t\treturn connection.getMyAddress();\n \t}", "public LinphoneAddress getPeerAddress()\r\n/* 48: */ {\r\n/* 49: 52 */ return new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { switch (v.getId()) { case R.id.sign_iv_back: finish(); break; case R.id.signup_next: String n=editName.getText().toString(); String p=editPsw.getText().toString(); int sex=0; if(rbMale.isChecked()){ sex=1; } if(rbFemale.isChecked()){ sex...
[ "@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" ] ] } }
Appel a la methode findById du DAO
void updateUser(User user);
[ "@Override\n\tpublic void findById(Long id) {\n\t\t\n\t}", "@Override\r\n\tpublic T find(int id) {\n\t\tSystem.out.println(\"in the find(id)\");\r\n\t\treturn baseDao.load(id);\r\n\t}", "CrudEntity<T> findById(Object id);", "T getById(long id) throws DaoException;", "@Override\n\tpublic T findById(Serializa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public usage / Initialization of the bean. Add any parameter that is required within your scenario.
private String ermittleEinsatzort() { return m_kundenManager.findKunde(m_ansprechpartnerObj.getKunde()) + "\n" + m_kundenManager.findAnschrift(m_ansprechpartnerObj.getAnschrift()).toString(); }
[ "public BeanParamResource() {\n\t}", "@PostConstruct\n\tpublic void initBean() {\n\t}", "@Override\r\n\tpublic void initParameter() {\n\t\tsuper.initParameter();\r\n\t}", "@Override\n protected void beforeInitWeNeedSomeParams(Object... params) {\n }", "@PostConstruct\n protected void initialize() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the LocationAnswers field.
public void setLocationAnswers(entity.BOPLocationAnswer[] value);
[ "void setAnswers(int answers) {\n this.answers = answers;\n }", "public void setLocation( String[] pLocation )\n {\n mLocation = pLocation;\n }", "public void answer(Properties answers) {\n/* 65 */ setAnswer(answers);\n/* 66 */ QuestionParser.parseVillageUpkeepQuestion(this);\n/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string other_team_str = 6;
public com.google.protobuf.ByteString getOtherTeamStrBytes() { java.lang.Object ref = otherTeamStr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); otherTeamS...
[ "public void setTeam(String team) {\n\tthis.team = team;\n }", "public String whatTeam(String attackOrDefend){\n\n\t\t\tif(attackOrDefend.equals(\"attack\"))\n\t\t\t\treturn ( changeTester == 0 )? \"Team A\" : \"Team B\" ;\n\t\t\telse\n\t\t\t\treturn ( changeTester == 0 )? \"Team B\" : \"Team A\" ;\n\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
[ "public void validate() throws org.apache.thrift.TException {\n if (cpurate == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'cpurate' was not present! Struct: \" + toString());\n }\n if (memrate == null) {\n throw new org.apache.thrift.protocol.TProtocolExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new entity manager producer.
public EntityManagerProducer() { super(); this.factory = Persistence.createEntityManagerFactory(Constants.PERSISTENCE_UNIT_NAME); }
[ "public EntityManager crearManager() {\r\n EntityManager manager = emf.createEntityManager();\r\n manager.getTransaction().begin();\r\n return manager;\r\n }", "private static EntityManager initEntityManger(String puName,Map properties) {\r\n\t\tEntityManager em;\r\n\t\tif (properties == n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Primitives Applies this type checker proof rule to the specified node via the given context.
public void apply ( TypeCheckerProofContext context, TypeCheckerProofNode node ) throws ProofRuleException;
[ "protected abstract ConversionResult convertPrimitive(\n BuiltInAtomicType requiredType, boolean validate, XPathContext context);", "public void applyObject ( MinimalTypingProofContext context ,\n MinimalTypingProofNode pNode )\n {\n MinimalTypingExpressionProofNode node = ( MinimalTypingExpre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
eliminates a candidate from votes
public boolean eliminate(int candidateId) { boolean eliminated = false; int position = 0; for (int[] arr: this.votes) { if (arr[0] == candidateId) { // finds candidate position = this.votes.firstIndex(arr); eliminated = true; } } if (eliminated) { // if candidate was found for (int i =...
[ "@Override\n public void delete(Candidate candidate) {\n Database.getCandidateSet().remove(candidate);\n }", "public void removeVote(ResponseListener response);", "@Override\r\n\tprotected Candidate clearWinner(int winVotes) {\r\n\t\tfor (Candidate c : cds.values()){\r\n\t\t\tif (c.getVoteCount() >...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies the low end of the bucket's range. Stands for "greater than or equal to".
public void setGe(String ge) { this.ge = ge; }
[ "public void setLowerBound(E lowerBound) {\n\t\tthis.lowerBound = lowerBound;\n\t}", "public long getInRangeLow() {\n return inRangeLow_;\n }", "PriceRange(int lowerBound, int upperBound) {\n this.lowerBound = lowerBound;\n this.upperBound = upperBound;\n }", "@Override\n public void setUpperRange...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void onFailure(Throwable arg0) { MessageBox.alert("保存失败"); }
[ "@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" ] ] } }
Decode image in background.
@Override protected Bitmap doInBackground(Integer... params) { long albumId = cur.getLong(cur.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID)); sArtworkUri = Uri.parse("content://media/external/audio/albumart"); albumArtUri = ContentUris.withAppendedId(sArtworkUri, albumId); ...
[ "protected abstract Bitmap decodeImage();", "private byte[] decodeImage () {\n\n String encodedImage = \"\";\n\n try {\n\n encodedImage = getJsonImage().getString(\"json\");\n\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n byte[] i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Crt dt' attribute. If the meaning of the 'Crt dt' attribute isn't clear, there really should be more of a description here...
Date getCrt_dt();
[ "public String getCtYd() {\r\n return ctYd;\r\n }", "public long getDt() {\n\treturn (long)(Long.parseLong(_table.getProperty(\"dt\")));\n }", "public DateTime getCtime() {\r\n return ctime;\r\n }", "public String getCtYdZyjc() {\r\n return ctYdZyjc;\r\n }", "public Date get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table user_menu
public int updateByExampleSelective(user_menuBean record, user_menuBeanExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("user_menu.ibatorgenerated_updateByExampleSelective", parms); return rows; }
[ "private void generateMenuForUser()\r\n\t{\r\n\t\t List<PageLinkMasterDTO> pageLinkDTOList = null;\r\n\t\t pageLinkDTOList = pageDAO.getPageLinkListForUserType(loggedInUserDTO.getUserType());\r\n \t\t \r\n\t\t menuModel = new DefaultMenuModel();\r\n\t\t \r\n\t\t for(PageLinkMasterDTO pm : pageLinkDTOList)\r\n\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
anaesthesia workbench jan5 2017 END Excluded Diagnosis insurance START
public ArrayList<RegistrationBean> getAllExcludedDiagnosis4Ins(RegistrationBean registrationBean) throws DaoException { ArrayList<RegistrationBean> list = null; try { eclinicDaoManager.startTransaction(); list = (ArrayList<RegistrationBean>) insuranceDao.getAllExcludedDiagnosis4Ins(registrationBean); eclin...
[ "public void excludeFirstFixation()\r\n\t{\n\t\tstartFixNum=1;\t\r\n\t}", "public void checkDiagnosis() {\r\n\t\tfinal long timeToDiagnosis = (diagnoseEvent == null) ? deathEvent.getTs() : diagnoseEvent.getTs(); \r\n\t\tif (timeToDiagnosis > simul.getSimulationEngine().getTs()) {\r\n\t\t\tlong timeToARMDDiagnosis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recupera el seedId asociado a un keggId.
public String getSeedId(String keggId) { String seedId = null; Connection conn = null; PreparedStatement pstmt = null; ResultSet result = null; try { conn = cp.getConnection(); pstmt = conn.prepareStatement( "SELECT SEEDID FROM SEED_KEGG_ID " + "WHERE KEGGID ...
[ "public String createKitchenId(){\n\t\t//Generate a random number and see if it's not in the db already.\n\t\twhile(true){\n\t\t\tint num = (int)(Math.random()*1000000);\n\t\t\tBasicDBObject searchQuery = new BasicDBObject();\n\t\t\tString id = \"/k/\" + num;\n\t\t\tsearchQuery.put(\"id\", id);\n\t\t\tDBCursor curs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }