query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
TODO Autogenerated method stub
@Override public boolean onTouchEvent(MotionEvent event) { int evento_azione = event.getAction(); int touch_x = (int) event.getX(); int touch_y = (int) event.getY(); switch(evento_azione){ case MotionEvent.ACTION_DOWN: disegno.moveTo(touch_x, touch_y); /** Il punto di partenza del disegno. */ sel...
[ "@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" ] ] } }
private final Random random = new Random();
public BinaryService(ServiceData data, EntityManager manager) { super(data, manager); // print = true; }
[ "private void setRandom(Random rand){\n random = rand;\n }", "@Override\r\n\tpublic void random() {\n\t\t\r\n\t}", "static public void initialize(){\n rand = new Random();\n }", "public Random getRandom(){\n return this.random;\n }", "double myRandom() {\n\treturn myRandGen.nextDoubl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by luxiaoxun on 2016/3/16.
public interface IAsyncObjectProxy { public RPCFuture call(String funcName, Object... args); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current lexical state.
public final int yystate() { return zzLexicalState; }
[ "public static LexingState currentLexingState() {\n FCImpl result = _context();\n assertNotNull(result, \"No current context\");\n return result.state;\n }", "public int getState()\n\t{\n\t\treturn currentstate;\n\t}", "public final int yystate() {\r\n\t\treturn zzLexicalState;\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string name = 10; name of this data
public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "public void set_name(String name){\n this.name = name;\n }", "public void setName(String n) {this.name = n; }", "public String getDataName() { return this.DataName; }", "public void set_name(String n) {\n name = n;\n }", "public void set_name(String name)\r\n\t{\r\n\t\tthis.name = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends an order to the designated player.
public native int aiCommsSendOrder(int targetPlayerID, int promptType, int data1);
[ "public synchronized void order(){\n // TODO Implement required functionality\n //Todo : some logic called from sushibar, or waitress\n //Eats some sushi at bar, takes rest with them\n\n Random rNum = new Random();\n Random rNum2 = new Random();\n int numberPiecesTot = rNu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methode permettant d'effectuer la lecture de ce que Transport nous envoie via le tube Parametre : Aucun Valeur de retour : Aucun
private void lireDeTransport() { String command = ""; try { char c; do{ c = (char)reseauIn.read(); // Lecture du tube if(c == '|') // Permet de verifier s'il s'agit du dernier caractere de la commande { if(!command.equals("stop")) { executerCommandeTransport(command);...
[ "public static void afficherTout(Partie p){\n\t\tJoueur jAllie = p.getJoueurQuiJoue();\r\n\t\tJoueur jEnnemi;\r\n\t\tif(jAllie.equals(p.getJoueur1()))\r\n\t\t\tjEnnemi = p.getJoueur2();\r\n\t\telse\r\n\t\t\tjEnnemi = p.getJoueur1();\r\n\t\t\r\n\t\tSystem.out.printf(\"Vous ètes %s, il vous reste %d points de vie \\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nothing to do here
@Override public void read(DataInput in) throws IOException { }
[ "@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\n\t\tprotected void swop() {\n\n\t\t}", "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "protected void m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 25: / 26:
public static String toJSONString(Object obj) /* 27: */throws JSONException /* 28: */{ /* 29: 42 */return toJSONString(obj, false); /* 30: */}
[ "public void mo26342c() {\n }", "int getKey5();", "public static void main(String[] args) {\n\tfor(int i=1;i<=26;i++){\n\tchar\tletter= (char) (64+i);\n\t\tSystem.out.print(letter+\"\"+i);\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n\t\n}", "public void mo6726a() {\n }", "public String getAns26_2() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: All: all dry run stages will be processed
public ReplaceOAuthAccessToken dryRun(String dryRun) { put("dryRun", dryRun); return this; }
[ "public PatchContainerRuntimeConfigStatus dryRun(String dryRun) {\n put(\"dryRun\", dryRun);\n return this;\n }", "public PatchContainerRuntimeConfig dryRun(String dryRun) {\n put(\"dryRun\", dryRun);\n return this;\n }", "public ReplaceValidatingWebhookConfiguration dryRun(String dryR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the extention by considering the muxer.
String getPrimaryExtention() { return lastPrimaryExtention; }
[ "public String getExt() {\n return parameters.getFirst(\"ext\");\n }", "@Nonnull\n\tString getExtension();", "protected String getExtension()\n\t{\n\t\treturn extension;\n\t}", "public String getExtension() {\r\n\t\tString fragment = this.partNameURI.getPath();\r\n\t\tif (fragment.length() > 0) {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update or persist a domain object outside String, Date, and the usual primitive types. We set the write style to shallow=true, causing an end of recursive traversal of the object graph.
private void setPropertyValue(Resource subject, Property property, Object o) { Statement s = subject.getProperty(property); Resource existing = null; if (s != null) { existing = s.getResource(); if (existing.isAnon()) existing.removeProperties(); } subject.removeAll(property).addProperty(property, _...
[ "@Override public Tbl save() throws Exception{\n\t\tif(json instanceof Map)\n\t\t\tsaveProps(TL.tl(),(Map)json);\n\t\telse {\n\t\t\tJsonProp j=new JsonProp();\n\t\t\tif(json instanceof List)\n\t\t\tj.savePropList(TL.tl(),\"\",(List)json,j.prps());\n\t\telse\n\t\t\tj.saveProp(TL.tl(),\"\",JsonProp.Typ.typ(json),json...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void resume() { }
[ "@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" ] ] } }
//GENEND:|44getter|2| //GENBEGIN:|56getter|0|56preInit Returns an initialized instance of form3 component.
public Form getForm3() { if (form3 == null) { //GEN-END:|56-getter|0|56-preInit // write pre-init user code here form3 = new Form("Inbox", new Item[]{getTextField4()});//GEN-BEGIN:|56-getter|1|56-postInit form3.addCommand(getOkCommand3()); form3.setCommandListener(this);//GEN-END:|56-ge...
[ "public Form3() {\n initComponents();\n }", "@Override\r\n\tpublic void addInit(ProjectClassForm form) {\n\t\t\r\n\t}", "public ppe3() {\n initComponents();\n\n updateInterface();\n }", "@Mod.EventHandler\n\tpublic void preinit(FMLPreInitializationEvent evt) {}", "public L3() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Testing the removeMoney method
@Test public void removeMoney() { List<ParkingSlot> listPark = ParkingSlotsFactory.createElectricalBicycleSlots(10); PlusStation station = new PlusStation(PointFactory.addPoint(0, 0), true, listPark, 100, 0); List<Station> stations = new ArrayList<Station>(); stations.add(station); ...
[ "float remove(float amount);", "public int delMoney(String id, double m) {\n\t\treturn 0;\r\n\t}", "@Test\n\tpublic void testSubtractFromBalance() {\n\t\t\n\t\tplayer.subtractFunds(5000);\n\t\tassertEquals(player.checkBalance(), 5000);\n\t}", "@Test\n public void requestMoneyNegative() {\n shop.getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter word to sort: "); String userInput = input.nextLine(); String[] sentence = userInput.split(" "); SortedSet<String> sortedSentence = new TreeSet<>(); for(String token: sentence) sorted...
[ "@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" ] ] } }
Populate view for the wishlist card layout.
private void populateListItem(ISpecialItem currentItem, ViewHolder viewHolder) { int logoResource = mContext.getResources().getIdentifier(currentItem.getLogoImage(), "drawable", mContext.getPackageName()); viewHolder.itemImage.setImageResource(logoResource); viewHolder.itemTitle.setText(curren...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wishlist, container, false);\n wishlitRecyclerView = view.findViewById(R.id.wishlist_recyclerView);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ CONFORM CHECKS FOR USER INPUT
private int checkCarrierFrequency(int carrierFrequency) { entryLogger("maxFreq: " + audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[13]), true); if (carrierFrequency > audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[13])) return audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[13]); ...
[ "public boolean checkInput();", "public void checkInputs()\n {\n\n }", "private void validateInput() {\n }", "boolean hasInputUser();", "public abstract boolean hasValidInput();", "public abstract boolean checkInput(Object value);", "protected abstract boolean validateInput();", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log.i(LOG_TAG, "onZoomAnimationCompleted: " + scale);
@Override protected void onZoomAnimationCompleted(float scale) { super.onZoomAnimationCompleted(scale); if (mOverlayView != null) { mOverlayView.setMode(MyHighlightView.MOVE); postInvalidate(); } }
[ "void onZoom() {\n mZoomPending = true;\n }", "void onZoomStateChanged(int state);", "@Override\n public void onMapEvent(Event e, MapPosition mapPosition) {\n if(e == Map.SCALE_EVENT || e == Map.ANIM_END) {\n double scale = mapPosition.getZoom();\n Log.d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pid (Passport ID) a ninedigit number, including leading zeroes.
static boolean validatePid(String value) { if (value.length() != 9) return false; try { int asInt = Integer.parseInt(value); } catch (NumberFormatException nfe) {return false;} return true; }
[ "public static String PID()\r\n\t\t{\r\n\t\t\tSimpleDateFormat dateformat = new SimpleDateFormat(\"yyyyMMddhhmmss\");\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tString S3 = dateformat.format(cal.getTime());\r\n\t\t\tString S2 = RandomStringUtils.randomAlphanumeric(9).toUpperCase();\r\n\t\t\tString S1 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns textual designation of the NTLM authentication scheme.
public String getSchemeName() { return "ntlm"; }
[ "public String getNtlmPassword() {\n return ntlmPassword;\n }", "@Override\n public String getAuthType() {\n return AUTH_TYPE;\n }", "public String getProtocol() {\n\n String name;\n\n name = \"\";\n\n switch (serverProtocol) {\n\n case SC_PROTOCOL_HSQL :\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Visit this ICode (visitor pattern)
public void visit(final CBLE icode) { boolean leftOp = false; boolean rightOp = false; // HardwareRegister hr1 = null; // HardwareRegister hr2 = null; VirtualRegister vr1 = null; VirtualRegister vr2 = null; /* if(icode.getLeftOperand() instanceof RegisterOperand) { if(((Regist...
[ "@Override\r\n\t\tpublic void visitCode() {\n\t\t\tsuper.visitCode();\r\n\t\t}", "public void accept(MethodVisitor mv) {\n/* 80 */ mv.visitInsn(this.opcode);\n/* 81 */ acceptAnnotations(mv);\n/* */ }", "public interface Visitor extends InstrVisitor, SubroutineVisitor, OperandVisitor, EncodingVisito...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ createGame: Preconditions: Unique gameID Postconditions: Create and add new game to availableGames
public boolean createGame(String gameId, Socket hostPlayer){ // Game already exists System.out.println("GameManager Initial gameId: " + gameId); if(availableGames.containsKey(gameId.toLowerCase())) return false; // Game can be created Game createdGame = new Game(hostPlayer); ...
[ "@PostMapping(\"/games\")\n public ResponseEntity<Game> createGame(@Valid @RequestBody Game game) throws URISyntaxException {\n log.debug(\"REST request to save Game : {}\", game);\n if (game.getId() != null) {\n throw new BadRequestAlertException(\"A new game cannot already have an ID\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse a PPS (PerProviderSubscription) configurations from a PPS tree.
private static PasspointConfiguration parsePpsInstance(PPSNode root) throws ParsingException { if (root.isLeaf()) { throw new ParsingException("Leaf node not expected for PPS instance"); } PasspointConfiguration config = new PasspointConfiguration(); for (PPSNode...
[ "public PolicyParser(String xml) throws IOException, SAXException, ParserConfigurationException {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(new InputSource(new StringRea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
cmd id:0x0102 .IM.BaseDefine.ResultType result_code = 1;
int getResultCodeValue();
[ "@Override\r\n\tpublic void errorCode_0000() {\n\t\t\r\n\t}", "void mo4900b(C0695dm dmVar, int i) throws RemoteException;", "int getGENSTATUS1();", "@Override\n\tpublic String operateTypeId() throws Exception {\n\t\treturn \"01010\";\n\t}", "public abstract String mo11800b();", "int mo10233O() throws Remo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs a search for all possible results.
private SearchResult<License> getAllResults(MedicalPracticeLicenseSearchCriteria criteria, boolean byName) throws URISyntaxException, ClientProtocolException, IOException, ParseException, ServiceException { DefaultHttpClient client = new DefaultHttpClient(); URIBuilder builder = new URIBuilder...
[ "abstract public boolean search();", "public void searchAll(View view){\r\n\t\r\n\t\t//sets flag so Records goes to search result instead of last result\r\n\t\tTechnotes.recordsOrResultsFlag = true;\t\t\r\n\t\t\t\r\n\t\t\t//checks if jobId is empty, else do nothing xcept toast for more info below...\r\n\t\t\tif (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table user
public boolean isDistinct() { return distinct; }
[ "@SqlQuery(\"SELECT * FROM utilisateur order by mail asc\")\n\t@RegisterMapperFactory(BeanMapperFactory.class)\n\tList<User> all();", "@Select({\n \"select\",\n \"id, email, reg_time, gender, birthday, pwd, salt, status, gmt_modified, gmt_created\",\n \"from bm_user\",\n \"where id = #...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates and overwrite the existing file with a new task list.
public static void updateFile(TaskList taskList) throws IOException { FileWriter taskWriter = new FileWriter(FILE_PATH + "/taskLists.txt", false); for (Task task : taskList.getEntireList()) { String taskAbbreviation = getTaskAbbreviation(task); String taskStatus = getTaskStatus(t...
[ "public void update(TaskList modifiedList) throws IOException {\n if (!modifiedList.isEmpty()) {\n int listSize = modifiedList.size();\n for (int i = 0; i < listSize; i++) {\n Task currentTask = modifiedList.get(i);\n assert currentTask != null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value for the second fragment size. Be careful: will only be written if paired unshuffled.
public void setFsValue2(String fsValue2) { this.fsValue2 = fsValue2; }
[ "public void setSecondHalf(Pizza pizza) {\n splitHalves = true;\n secondHalf = pizza;\n secondHalf.setSize(size);\n }", "private void setSize(long value) {\n \n size_ = value;\n }", "private void setSize(int value) {\n bitField0_ |= 0x00000004;\n size_ = value;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the person in the family tree
public void addPerson(String name1, RelationshipConstants.RELATIONSHIPS relationship1, String name2, RelationshipConstants.RELATIONSHIPS relationship2) throws InvalidArgumentException { RelationshipConstants.FAMILYRELATIONTYPE familyRelation1 = familyRelation(relationship1); RelationshipCons...
[ "com.walgreens.rxit.ch.cda.EnFamily addNewFamily();", "public void addFamily(String lastName) {\r\n\t\tCharacter t=Character.toUpperCase(lastName.charAt(0));\r\n\t\tBSFamilyTree temp=new BSFamilyTree();\r\n\t\ttemp=directory.get(t);\r\n\t\ttemp.addFamilyTreeNode(lastName);\r\n\t\tdirectory.replace(t,temp);\r\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes jrdoIsothermalElution
private JRadioButton getJrdoIsothermalElution() { if (jrdoIsothermalElution == null) { jrdoIsothermalElution = new JRadioButton(); jrdoIsothermalElution.setBounds(new Rectangle(8, 8, 233, 17)); jrdoIsothermalElution.setText("Isothermal elution mode"); jrdoIsothermalElution.setSelected(true); } return ...
[ "public static void init(){\r\n\t\t\r\n\t\tintakeMotorLeft = new WPI_TalonSRX(4);\r\n\t\tintakeMotorRight = new WPI_TalonSRX(7);\r\n\t\ttalon = new WPI_TalonSRX(0);\r\n\t\ttalonSpin = new WPI_TalonSRX(1);\r\n\t\ttalon2 = new WPI_TalonSRX(8);\r\n\t\tpot = new AnalogPotentiometer(0, 6, 0);\r\n\t\trangeFinder = new An...
{ "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() { jPJugador = new javax.swing.JPanel(); jBPiedraJugador = new javax.swing.JButton(); jBPapelJugador = new javax.swing.JButton(); ...
[ "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" ] ] } }
Determines the maximum estimated utility that can be obtained from all of the possible moves avaliable in a game state
@Override public double maxValue(BackgammonState state, String player, double alpha, double beta, int depth) { expandedNodes++; maxDepth = Math.max(maxDepth, depth); if (depth >= currDepthLimit || state.getUtility() == 1 || state.getUtility() == 0) { return eval(state, player); /...
[ "public List<Double> getMaxUtility(GameState state, int player, int depth, int depthLimit, long timeup) {\n //Initialise variables\n double myAverageValue=0;\n double bestValue = -Double.MAX_VALUE;\n int nextPlayer = getNextPlayer(state, player);\n List<Double> bestValues = new Ar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method sets the value of x coordinate
public void setValueX(int x){ this.x=x;//clarify that I am talking about a field, when there's also method's parameter with the same name as a field }
[ "public void setX(double x){\n\t\tpos.x = x;\n\t}", "public void setX(int value) { \r\n\t\tposition.x = value; \r\n\t}", "public void setX(int x)\r\n\t{\r\n\t\txPos = x;\r\n\t}", "public void setX(int x){\n\t\tthis.pos.x=x;\n\t}", "public void setX (int px) {\n\t\tx = px;\n\t}", "public void setX(float xp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pass data from GamePlayActivity to GameResultActivity
static void setScore(final Score score) { GoJewelsApplication.score = score; }
[ "public void go_to_game(View view){\n //response to button press pass the number of players to game screen. Pass it the Number of players through the put Extra thing.\n // need to get bundles understood so I can pass more than just one tiny bit of information.\n\n EditText editText1 = (EditText...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'brokerId' field.
public void setBrokerId(String value) { this.brokerId = value; }
[ "public Builder setBrokerId(String value) {\n validate(fields()[0], value);\n this.brokerId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public it.acsoftware.brokerportlet.model.Broker fetchByPrimaryKey(\n long brokerId)\n throws com.liferay.portal.kernel.except...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a readonly map of all of the tables for the specified type from the network. Each table is keyed by its namespace.
Map<String, CyTable> getTables(CyNetwork network, Class<? extends CyTableEntry> type);
[ "Map<String, CyTable> getTables(CyNetwork network, Class<? extends CyIdentifiable> type);", "private Iterator getTableMappings() {\r\n return tables.values().iterator();\r\n }", "public List<String> getTables(ContentsDataType type);", "public Map<RelationID, RelationID> getTables() throws JSQLParser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new fragment and specify the planet to show based on position
public void selectDrawerItem(MenuItem menuItem) { Fragment fragmentA = null; Fragment fragmentB = null; // Insert the fragment by replacing any existing fragment FragmentManager fragmentManager = getSupportFragmentManager(); String fragmentClass; switch (menuItem....
[ "@NonNull\n @Override\n public Fragment createFragment(int position) {\n if(WallActivity.isQuickCalculation) position += 1;\n\n if(position == 0) return new WallInfoFragment();\n else if(position == 1) return new SoleBoardAreaFragment();\n else if(position == 2) return new WallAnch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Do nothing, for configuration
public void setQueueSize(int size) { }
[ "@Override\n\tprotected void config() {\n\t\t\n\t}", "private Config() {\r\n\t}", "protected abstract void config();", "private SimulationConfig() {\n\t}", "@Override\n\tpublic void resetConfiguration() {\n\t\t\n\t}", "@Override\n\tpublic final void defaultConfiguration() throws UnknownHostException, IOEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a custom POJO constructed from the payload of the search response.
public static <T> Object getAsPojo(SearchResponse searchResponse, Class<T> pojoClass) { if (searchResponse.isValid()) { return fromJson(searchResponse.getPayload(), pojoClass); } else { return null; } }
[ "public ApiProductSearchResponse() {\n }", "private SearchEntriesResponse() {\n initFields();\n }", "@Headers(\"Content-Type:application/json\")\n Call<SearchPropertyResponse> getSearchPropertyResults(\n @Body SearchPropertyResponse searchPropertyResponse\n );", "public com.github....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Connection connection = null;
@BeforeClass public static void init() { InitialContext ic = null; try { // Step 1. Create an initial context to perform the JNDI lookup. // This JNDI is performing auto-discovery of the servers, by using // the default UDP properties. // You will find more informatio...
[ "@Override\n public Connection getConnection() {\n return null;\n }", "public void setConnection( Connection connection ) { this.conn = connection; }", "public void getConnection() {\n\r\n\t}", "private Connection getConnection() {\n\t\t\treturn null;\r\n\t\t}", "public Connection getConn() { ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves to the startup phase
@Override public void startup() { d_gameEngine.setPhase(new Startup(d_gameEngine)); }
[ "private void startup()\n\t{\n\t}", "public void startup() {\n }", "public void startup() {\n\tstart();\t\n }", "public void start() {\n\t executePhase1();\n\t}", "@Override\n public void onStartup() {\n LOGGER.info(\"Pro2Future OpcUa Machine Simulator: startup in progress.\");\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the DevelopmentCard specified stack; if the given position is invalid or empty returns null.
public LinkedList<DevelopmentCard> getDevCardDeck(int position) { if(position >=1 && position <=3) { if (this.devCards.get(position - 1).isEmpty()) return null; else return this.devCards.get(position - 1); } else return null; }
[ "public Poker getCard(int position) {\n if (position >= 0 && position < hand.size())\n return (Poker)hand.elementAt(position);\n else\n return null;\n }", "public Card topCard(PlayedStack stack) {\n\t\tif (!mDeck.empty()) {\n\t\t\treturn mDeck.pop();\n\t\t} else {\n\t\t\tref...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new WeakProbeLimeTupleSpace instance. Note, all the usual LimeTupleSpace operations can be called on an object of this type.
public WeakProbeLimeTupleSpace (String name) throws TupleSpaceEngineException { super (name); }
[ "public Tuple(TupleDesc t) {\r\n\t\tthis.t = t;\r\n\t}", "public Tuple createAnEmptyTuple() throws BihashException\r\n { \r\n return Tuple.create(this.getAttributesForConversor());\r\n }", "public Tuple(TupleDesc td) {\n\t\tthis.td = td;\n\t\tthis.fields = new Field[td.numFields()];\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request,response); }
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the total number of infusions you can dring from this tea
public int getTotalNoOfInfusions() { return totalNoOfInfusions; }
[ "public int getNumInfected() {\n int count = 0;\n LinkedList agents = getSimulation().getAgents();\n PersonAgent check;\n Iterator itr = agents.iterator();\n \n while (itr.hasNext()) {\n check = (PersonAgent) itr.next();\n if (check.infected) {count++;}\n }\n return count;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when game is over
public void gameover(Boolean finished) { reset(); if (finished) { frame.gameover(CONGRATULATIONS, YOUR_SCORE + score); } else { frame.gameover(GAME_OVER, YOU_FAILED); } }
[ "public void gameOver() {\r\n\t\tupdateStage(eventManager.handlePlayerDeath());\r\n\t}", "public void gameOver() {\n\t\tthis.gameGoesOn = false;\n\t}", "public void gameOver() {\n rect.setFill(Color.GRAY);\n timeline.stop();\n doneCheck();\n }", "public void gameOver(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ System.out.println("ServerDistributor / distribute() / StringBuilder : "+sb. length()); String msg = sb.toString();
public void distribute(String msg) { System.out.println("ServerDistributor / distribute() / msg : "+msg.length()); try { obj = (JSONObject) jsonParser.parse(msg); String requestType = (String) obj.get("requestType"); area.append("ServerDistributor.distribute()/ requestType : " + requestType+"\n"); ...
[ "public static void main(String[] args){\n\t\t StringBuilder sb = new StringBuilder();\n\t\t // adds 9 character string at beginning\n\t\t sb.append(\"Greetings\");\n\t\t \n\t\tSystem.out.println(sb);\n\t\tSystem.out.println(sb.length());\n\t\tSystem.out.println(sb.capacity());\n\t\t\n\t\tString hi =\"hello\\n\";\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test getOrderNumbers when orders is empty and when there is one order
@Test public void testGetOrderNumbers() { Collection<Integer> emptyCollection = Collections.emptyList(); assertEquals(clientImp.getOrderNumbers(), emptyCollection); setUpOrdersAppleOrangePork(); Collection<Integer> orderId = Collections.singletonList(123); assertEquals(orderI...
[ "public int getNumOrders(){\n return orders.size();\n }", "@Test\n public void ordersOrderIdGetTest() throws ApiException {\n Integer orderId = null;\n api.ordersOrderIdGet(orderId);\n\n // TODO: test validations\n }", "@Test\n public void testGetAllOrders() {\n as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bind the GithubUser to the view.
void bind(final GithubUser user) { mGithubUser = user; mIvAvatar.setImageURI(Uri.parse(mGithubUser.avatar_url())); if (GithubUser.GITHUB_USER_TYPE_ORGANIZATION.equals(mGithubUser.type())) { mTvUsername.setText( String.format(mResources.getStri...
[ "@Override\n public void success(GitHubUser gitHubUser, Response response) {\n ((SmartImageView)findViewById(R.id.profileImage)).setImageUrl(gitHubUser.getAvatar_url());\n ((TextView)findViewById(R.id.navigation_name)).setText(gitHubUser.getName());\n }", "UserV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows you to replace all calls to a given method in a given method with calls to a method of your choosing.
public static ReplaceMethodCallBuilder replaceMethodCall() { return new ReplaceMethodCallBuilder(); }
[ "public void replace(MemberDefinition method) {\n // Check for late additions.\n if (frozen) {\n throw new CompilerError(\"replace()\");\n }\n\n // todo: Check for method??\n\n Identifier name = method.getName();\n\n // Get a List cont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source) { return null; }
[ "@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 always CALL, trains the ANN, and checks whether the last prediction was right
public Move act() { Dealer dealer = Director.getInstance().getDealer(); Player player = getPlayerWithName("Darwin"); // do nothing in Darwin's first move if (player != null && player.getMoves().size() > 0) { // note that we do not know the real conditions the player wi...
[ "@Override\n protected void train(boolean x, boolean y){\n return;\n }", "@Override\n\tprotected Void call() throws Exception {\n\t\tint size=9;\n\t DecimalFormat df1 = new DecimalFormat(\"0.000\");\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"START TRAINING ...\");\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method uses predefined default values for the following parameters: java.lang.Object parameter solveOrder is set to com4j.Variant.getMissing()java.lang.Object parameter type is set to com4j.Variant.getMissing() Therefore, using this method is equivalent to _Add(name, formula, com4j.Variant.getMissing(), com4j.Vari...
@VTID(14) @UseDefaultValues(paramIndexMapping = {0, 1, 4}, optParamIndex = {2, 3}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {"80020004", "80020004"}) @ReturnValue(index=...
[ "@DISPID(181)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6}, optParamIndex = {7, 8, 9, 10}, javaType = {java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT}, var...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string topic = 5;
public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; }
[ "public void setTopic(String value) {\n set(27, value);\n }", "public void setTopic(String topic) {\n this.topic = topic;\n }", "public java.lang.CharSequence getTopic() {\n return topic;\n }", "public String getTopicid() {\n\t\treturn topicid;\n\t}", "public abstract Builder setTopic(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the keyencryptingkey material description as a nonnull json string;
private String kekMaterialDescAsJson() { Map<String,String> kekMaterialDesc = getKEKMaterialsDescription(); if (kekMaterialDesc == null) kekMaterialDesc = Collections.emptyMap(); return Jackson.toJsonString(kekMaterialDesc); }
[ "CryptoKey getKeyContents();", "public String getEncKeySpec(){ return enckeyspec; }", "public String getKsDescription() {\n return ksDescription;\n }", "public String toString()\r\n {\r\n String string2Return = \"KeySignature: \"\r\n \t+toLitteralNotation()+\" (\";\r\n for (int i= 0; i<7; ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Morty is the brother of Summer and grandson of Rick
public void characters() { System.out.println("I am a character from Rick and Morty"); }
[ "@Test\n\tpublic void getSisterInLaw() throws PersonNotFoundException {\n\t\tPerson person = familyTree.getPersonByName(\"Aparna\");\n\t\tSet<Person> testdata = person.getSisterInLaw();\n\t\tassertEquals(1, testdata.size());\n\t\tString personNames = testdata.stream().map(x -> x.getName()).collect(Collectors.joinin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
assignemnt number is from 0 to 5
@Test public void sumCourseElements_someMidtermsSomeAsFinal_returningOneHundered(){ Course tempCourse = new Course("Object Oriented",true,2,3,true,27,110111); tempCourse.setWeightsOfaCourse(); int expectedWeight =100; int actualWeight = tempCourse.getSumOfCourseElements(); assertEquals(expectedWeight,actual...
[ "private void set5() {\n setup = new int[]{9,6,2,4,2,2,2,3,6,2,\n 3,2,8,7,13,5,10,7,5,8,\n 13,6,1,7,5,2,6,5,13,4,\n 4,2,3,13,4,3,3,13,11,13};\n }", "public void setNumber(int n) {\n \tint shift = 0;\n \twhile (n > 0) {\n \t\t int d = n / 10;\n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a Cell, returns the value in Generic type, V. Created by niket on 2/10/14.
public interface CellValueExtractor<V> extends Function<Cell, V> { }
[ "Value<?> getCellValue(int column, int row);", "private Object getCellValue(Cell cell) {\n switch (cell.getCellType()) {\n case Cell.CELL_TYPE_STRING:\n return cell.getStringCellValue();\n\n case Cell.CELL_TYPE_BOOLEAN:\n return cell.getBooleanCellValue()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the current song number that is being played from one of the lists.
public int getCurrentSongNumber() { return currentSongNumber; }
[ "public String playNextSong(){\n\t\tif(this.currentSong+1==this.songList.size()){\n\t\t\tthis.currentSong=0;\n\t\t}\n\t\telse{\n\t\t\tthis.currentSong+=1;\n\t\t}\n\t\tif(this.songsPlayed.get(this.songList.get(this.currentSong))==null){\n\t\t\tthis.songsPlayed.put(this.songList.get(this.currentSong), 1);\n\t\t}\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return next number in series
void reset();
[ "public double getNext(double t);", "Long getNext();", "@Override\n public Integer next() {\n // time complexity: O(1)\n if (!hasNext()) // check if the current element has a next element in this sequence\n return null;\n int current = next; // set the current element to next\n generatedCount+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to handle Qnames
private void writeQName(javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI = qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String ...
[ "public int getIndex(String qName);", "public void setQyName(String qyName) {\n this.qyName = qyName;\n }", "private String qName(Namespace namespace, String localName)\n {\n \tString prefix = namespaces.getPrefix(namespace.URI);\n if (prefix == null || prefix.equals(\"\"))\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the ship the player has entered the arena in.
public Ship getShip() { return this.ship; }
[ "public int hasShip(){\n if(!wasShot){\n return 0; //We don't know\n } else{\n if(ship!=null){\n return 1;\n } else{\n return -1; }\n }\n }", "public Ship getBattleShip() {\r\n\t\treturn bat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A custom type is used in the base class, but defined in the derived class. This would have caused an exception, because the base class is processed BEFORE the derived class, and the custom type is not yet defined. However, it works now because we are setting the typeName for SimpleValue in the second pass.
@Test public void testSetSimpleValueTypeNameInSecondPass() throws Exception { Peugot derived = new Peugot(); derived.setName("sharath"); Session s; Transaction tx; s = openSession(); tx = s.beginTransaction(); s.persist(derived); tx.commit(); s.close(); s = openSession(); tx =...
[ "public String getCustomType()\n {\n return customType; \n }", "protected BType(String typeName, Class<? extends BValue> valueClass) {\n this.typeName = typeName;\n this.valueClass = valueClass;\n TYPE_MAP.put(typeName, this);\n }", "private void verifySimpleDMNType(FactMode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clones this HairConfigElement object, making a deep copy. Takes an instance of the concrete class to be cloned, returns the cloned objects.
@Override public ConfigElement clone(ConfigElement element) { if (element == null) { element = new HairConfigElement(); } return super.clone(element); }
[ "@Override\n public DiGraphList clone() {\n\tDiGraphList digrafo = new DiGraphList(this.numNodes);\n\tdigrafo.numArcs = this.numArcs;\n\tfor (int i=0; i<this.numNodes; i++) {\n\t digrafo.inArcs[i] = this.inArcs[i].clone();\n\t digrafo.outArcs[i] = this.outArcs[i].clone();\n\t}\n\treturn digrafo;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns length of this ImmutableArcInst in grid units.
public double getGridLength() { return tailLocation.gridDistance(headLocation); }
[ "public int length() {\n return this.columns * this.inches;\n }", "public float getLength() {\n \tfloat longueur = 0;\n for(Arc a: this.arcs) {\n \tlongueur += a.getLength();\n }\n return longueur;\n }", "public int length() {\n int length = 0;\n if (center !=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean existe(MovimientoAlmacenBean t) throws DAOException { return false; }
[ "@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" ] ] } }
Contains the business logic for getting the user associated with a given user alias.
public interface UserService { /* * Returns the user associated with a given user alias. * * @param userRequest contains the data required to fulfill the request. * @return the number of followees and followers. */ UserResponse getUser(UserRequest userRequest) throws Exception; }
[ "public User getUser() {\r\n Alias alias = getAlias();\r\n if (alias != null)\r\n return alias.getUser(userName);\r\n return null;\r\n }", "@Override\n\tpublic User getUser(Long id) throws Exception {\n\t\tUserEntity userEntity = myDao.findById(id).get();\n\t\treturn getUserObj(userEntity);\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column substance_content.content
public void setContent(String content) { this.content = content == null ? null : content.trim(); }
[ "public void set(String content) {\n this.content = content;\n }", "public void setContent(String value)\n {\n try\n {\n if(value != null)\n {\n set(contentDef, value);\n }\n else\n {\n unset(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It works with an emision range
private void configureEmiter(View emiter, int gravity) { int[] location = new int[2]; emiter.getLocationInWindow(location); int parentX = mField.getParticleController().getPositionInParentX(); int parentY = mField.getParticleController().getPositionInParentY(); // Check horizon...
[ "boolean isRangeBased() {\n/* 606 */ return false;\n/* */ }", "boolean isRangeBased() {\n/* 115 */ return false;\n/* */ }", "int range();", "public int getRange() {\n\t return range;\n\t}", "com.google.api.Distribution.Range getRange();", "public String detectRange() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use for translate axis, tags, grid and infinity movement Returns the logical xcoordinate of a physical xcoordinate (based in orthographic projection)
public float XLATGI(float xp, int width, float XMIN, float XMAX) { return XMIN + ((xp / (float)width) * (XMAX - XMIN)); }
[ "long getXPosition();", "public float getXPosition();", "public double getPositionCenterX();", "@Override\n\tpublic int getX() \n\t{\n\t\treturn (int) mytranslate.getTranslateX();//hey, lookie here, AT does it for me. Thanks, AT!\n\t}", "public int getXPosition();", "public int get_x_coord(){\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int N; Scanner scan = new Scanner(System.in); System.out.println("请输入总数:"); N = scan.nextInt(); String[] jss = new String[N]; System.out.println("1、整数计算式,2、真分数计算式"); int p = scan.nextInt(); if(p == 1) { jss = createZhengShuJiSuanShi(N); }else { ...
[ "@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" ] ] } }
optional bytes content = 7;
public com.google.protobuf.ByteString getContent() { return content_; }
[ "public substitute_bytes() \r\n {\r\n }", "public int contentLength(){\n\t\treturn 1;\n\t}", "byte[] getRawContent();", "private void setContentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf...
{ "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.
@Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
[ "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" ] ] } }
TODO Autogenerated method stub
public boolean buildStopWordList(String stopWordFile) { stopWordList = new ArrayList<String>(); BufferedReader reader=null ; String line =null; try{ reader =new BufferedReader(new FileReader(stopWordFile)); while((line=reader.readLine())!=null) { stopWordList.add(line); } } catch(FileNotFo...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to dig down complex types to primitive types. This method is called recursively until a primitive types is found.
public List<WSDLElement> getRecursiveTypes(List<WSDLElement> elements) { for (WSDLElement element : elements) { if (!isPrimitive(getLocalName(element.getType()))) { if (typesStack.get(element.getType()) == null) { typesStack.put(element.getType(), element.getTyp...
[ "public static List<XSDSimpleTypeDefinition> getAdvancedPrimitives() {\n\t\t\n\t\t// (VZ) FIXME: use a singleton instance of a set of static methods\n\t\tif( ! advancedPrimitiveWasSet.get()) {\n\t\t\n\t\t\t// Get the schema for schemas instance to use when resolving primitives\n\t\t\tXSDSchema schemaForSchemas = XS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: c
private void m3869c(C1072a c1072a) { if (!c1072a.m3855b()) { return; } if (this.f2579f == null || !this.f2579f.m3854a(c1072a)) { this.f2579f = c1072a; if (c1072a.m3855b()) { int size = this.f2581h.size(); C1072a c1072a2 = size =...
[ "@Override\n\tpublic void c() {\n\t\t\n\t}", "@Override\r\n\tvoid c() {\n\t\t\r\n\t}", "protected void c() {\n\n\t}", "void mo3976c(C5247d c5247d);", "void mo62419c();", "void m28293a(C5003c c5003c, C5006e c5006e);", "void mo24495a(C12578a c12578a);", "void mo22731b(C33642d c33642d);", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Classe per la gestione della Textbased Graphic User dell'applicazione
public TUI(Storable storage) throws StorageException { super(storage); try{ storage.connect(); } catch (StorageException e) { // Se la connessione non è andata a buon fine System.out.println("Problema di connessione con la repository, si prega di riprovare più tardi"); throw new StorageException(); ...
[ "public GraphicUI() {}", "public TextUI() {\r\n \t\tMan manPlayer = new Man(0, 0); // Man for player\r\n\t\tMan manAi = new Man(8,8);\r\n \t\t\r\n \t\thandler = new GameHandler();\r\n \t\tplayer = new PlayerTUI(manPlayer);\r\n\t\tais = new ManAI[1];\r\n \t\tais[0] = new ManAI(manAi, handler);\r\n \t\thandler.add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Download image from web server and save it to the storage.
public void saveImage(Image i) { if (i.getImagePath() != null) { URL url; try { // Download file from web server and save it on internal // storage. url = new URL(serverPath + PICTURES_FOLDER + i.getServerImagePath()); HttpsURLConnection connection = (HttpsURLConnection) url .openCon...
[ "private void downloadImage(String strImageURL) {\n String strImageName =\n strImageURL.substring(strImageURL.lastIndexOf(\"/\") + 1);\n\n System.out.println(\"Saving: \" + strImageName + \", from: \" + strImageURL);\n\n try {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the data directory
public static File getDataDir() { if (dataDir == null) { dataDir = new File(TopIn.getInstance().getDataFolder(), "data"); if (!dataDir.exists()) { dataDir.mkdirs(); } } return dataDir; }
[ "public static String getDataDirectory() {\n return ROOT_DIR + File.separator + DATA_DIR;\n }", "private static String dataDirectory() {\n OperatingSystemType operatingSystemType = Environment.getOperatingSystem();\n String operatingSystemDirectory = operatingSystemType.toString().toLowerC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for concurrent Buffer.
ConcurrentCircularBuffer(int size){ mutex=new ReentrantLock(); spaceLeft=new Semaphore(size); objectsLeft=new Semaphore(0); data=new Object[size]; currentHead=0; currentTail=0; }
[ "private Buffer() {\n super(MAX);\n }", "private ByteBufferPool() { }", "public VecBufferSequence(VecBuffer buffer)\n {\n this(buffer, DEFAULT_INITIAL_CAPACITY);\n }", "public interface Buffer {\n \n // Factory method\n public static Buffer makeBuffer() {\n// return new U...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets all values to false
public void clear() { store.clear(); }
[ "public void setFalse(){\r\n this.left = false;\r\n this.bleft=false;\r\n this.bright=false;\r\n this.right = false;\r\n this.top = false;\r\n this.right = false;\r\n this.bcenter=false;\r\n }", "private void setAllDisabled(){\n tName.setEnabled(false);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extract a "gz" file into a local folder.
public static void extractGz(String inputPath, String outputPath) throws IOException { if (inputPath == null || outputPath == null) return; final int bufferSize = 4096; if (!outputPath.endsWith("" + File.separatorChar)) outputPath = outputPath + File.separatorChar; try (GzipCompressor...
[ "@SuppressWarnings(\"unused\")\n\tprivate static void ungzip(String path){\n\t\tString suffix = path.substring(path.indexOf(\".\"), path.lastIndexOf(\".\"));\n\t\tString target = path.substring(0, path.indexOf(\".\")) +suffix;\n\t\tFile srcFile, targetFile = null;\n\t\tFileInputStream fis = null;\n\t\tFileOutputStr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("value =" + article_info_models[0]);
@Override protected Void doInBackground(Provider_Names_Model... providerNamesModels) { dao.inseret(providerNamesModels[0]); return null; }
[ "public void printData()\n{\n\n\tSystem.out.println(\"EngineModel year: \"+engine.getModelYear());\n}", "public void update(){\n \tSystem.out.println(model.toString());\n }", "public String getArticleInfo() {\r\n\t\treturn articleInfo;\r\n\t}", "public String getArticle() {\r\n\t\treturn this.article;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fires after the component is moved.
void onMove(BoxComponent component, int x, int y);
[ "@Override\n\tpublic void componentMoved(ComponentEvent arg0) {\n\t}", "@Override\n\tpublic void componentMoved(ComponentEvent e)\n\t{\n\t\t\n\t}", "public void componentMoved(ComponentEvent e) {\n\t\t\t\tObjectManager.get_instance().modified();\r\n\t\t\t}", "public void componentMoved(ComponentEvent e) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Long [] num1 = {21L, 34L, 2L, 0L, 40L, 0L, 10L}; double [][] num = {{1, 21L}, {2, 34L}, {3, 2L}, {4, 0L}, {5, 40L}, {6, 0L},{7, 10L}}; LinearRegression a = new LinearRegression(); a.CustomRegression(num1); SimpleRegression simpleRegression = new SimpleRegression(true)...
[ "@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" ] ] } }
The value of _pdbx_validate_peptide_omega.id must uniquely identify each item in the PDBX_VALIDATE_PEPTIDE_OMEGA list. This is an integer serial number.
public IntColumn getId() { return (IntColumn) (isText ? textFields.computeIfAbsent("id", IntColumn::new) : getBinaryColumn("id")); }
[ "private boolean pid_elements() throws InvalidLocatorException\n {\n int save = i;\n if (i < buf.length && buf[i] == '+' && (++i != 0) && isHex())\n {\n Vector pids = new Vector();\n // parse\n do\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal method which marks this address as being dead. If we were alive or suspected before, it sends an update out to the observers.
protected void setDeadForever(Map<String, Object> options) { switch (liveness) { case LIVENESS_DEAD_FOREVER: return; case LIVENESS_DEAD: this.liveness = LIVENESS_DEAD_FOREVER; if (logger.level <= Logger.FINE) logger.log("Found address " + address + " to be dead foreve...
[ "public void setDead(){\n\t\tthis.isDead = true;\n\t}", "public void flagDead()\r\n\t{\r\n\t\tthis.dead = true;\r\n\t}", "public void setDead()\r\n {\r\n \t/*\r\n isActive = false;\r\n if(location != null) {\r\n field.clear(location);\r\n location = null;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Se crea la variable para resultados
public ResultSet CrudDatosBuscar(Connection conexion,Datos datos) { ResultSet rs = null; Boolean sentenciaPrevia = false; String busqueda = ""; Datos datosaux=datos; // Si no se ingresa un dato se muestra todo String base = "SELECT ID_Registro,Hora, Fecha,Estatus,Ruta,Con...
[ "public java.lang.String[] getResultado(){\r\n return localResultado;\r\n }", "public Resultatblokk() {\n\t\tresultater = new int[13];\n\t}", "RespuestaUnica createRespuestaUnica();", "private void requestResult()\n {\n if (result == null) res...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column classroom.code
public Integer getCode() { return code; }
[ "private String getCodeFromDB() {\n //TODO\n String code = \"\";\n\n return code;\n }", "public Integer getCode() {\n return this.code;\n }", "public String getCode() {\n\n return code;\n }", "public String getCode(){\n return this.code;\n }", "public String getCode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a property value as a multivalue. It will return null if the property is not set.
public NVImmutable getPropertyNV(String path) throws ThingsException;
[ "public Object getPropertyValue() {\n return propertyValue;\n }", "@JsonIgnore\n\tpublic T getValue() {\n\t\treturn optionValue.value;\n\t}", "<T> T getPropertyValue(String property);", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by user on 21.06.2016.
public interface CommentDao extends AbstractDao<Comment> { @Override List<Comment> findAll() throws DaoException; @Override Comment findEntityById(int id) throws DaoException; @Override boolean delete(int id) throws DaoException; @Override boolean delete(Comment entity) thr...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor which sets the list of elements to the default length of 10. Also intializes the size of the list (the number of items it contains) to 0.
@SuppressWarnings("unchecked") //Removes the warning about an unchecked cast public ArrayList() { list = (E[]) new Object[INIT_SIZE]; //because we can not construct an array of type E we need to cast array of obj as E. size = 0; // the number of elements in the array and also the correct index for adding to end...
[ "public ArrayList() {\n this(10);\n elementCount = 0;\n size = 10;\n }", "public CustomArrayList() {\n\t\tsize = 0;\n\t\tcapacity = 10;\n\t\tdata = new Object[capacity];\n\t}", "ArrayList () {\r\n\t\tthis ( defaultSize );\r\n\t}", "public List()\n {\n items = new Object [INIT_LEN];...
{ "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 College)) { return false; } College other = (College) object; if ((this.collegeid == null && other.collegeid != null) || (this.collegeid != null && !this.collegeid.equals(other.collegeid))) { ...
[ "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" ] ] } }
optional string session_id = 2;
java.lang.String getSessionId();
[ "public void setSessionID (int id) { session_id = id; }", "public void setSessionID(Integer sessionID) {\n this.sessionID = sessionID;\n }", "public void setSessionId( String sessionId );", "com.google.protobuf.ByteString getSessionid();", "SessionId sessionId();", "public String getSessionid() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;
public Builder setEditorShapeType(com.laex.cg2d.model.ScreenModel.CGEditorShapeType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; editorShapeType_ = value; onChanged(); return this; }
[ "public abstract String getShapeType();", "public void setShapeType(ShapeType type){\n shapeType = type;\n }", "@VTID(54)\n com.exceljava.com4j.office.MsoShapeType getType();", "TypeEllipseGeometrique createTypeEllipseGeometrique();", "public String getShapeType() {\n\t\treturn shape;\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of depositSlipGet method, of class BusinessLogicBean.
@Test public void testDepositSlipGet() { System.out.println("depositSlipGet"); DepositSlip depositSlip = new DepositSlip(); depositSlip.setDepositId(0L); depositSlip.setUserRut("19"); depositSlip.setFromName("asdf"); depositSlip.setFromPhone("asdf"); depositSl...
[ "@Test\n public void getPapsByCorp() {\n }", "@Test\n\t public void testDiscount() {\n\t BillingResource homeController = new BillingResource();\n\t Bill result = homeController.getBill(\"ddd\");\n\t \n\t System.out.println(\"result\" + result.getDiscountAmount());\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A noargs constructor that sets defaults for a newly created AppUser object.
public AppUser() { super(); firstName = ""; lastName = ""; email = ""; username = ""; password = ""; role = "LOCKED"; }
[ "public User() {\r\n\t\tthis(null, null, null, null);\r\n\t}", "public User() {\n\t\tthis(\"null\",\"null\",\"null\",\"null\",\"null\",\"null\",'C');\n\t}", "public DevUser() {\n\t}", "public UserProfile() {\n setDefaults();\n }", "public UserExt () {\r\n\t\tsuper();\r\n\t}", "public User() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the information about this object
public String toString(){ return super.toString() + " " + String.format("%s",salary); }
[ "@Override\r\n\tpublic Object getInfo() {\n\t\treturn info;\r\n\t}", "public Object getInfo() {\n\t\treturn info;\n\t}", "public String getInfo() {\n\t\treturn wmodel.getInfo();\n\t}", "public String getInfo() {\n\t \treturn info;\n\t }", "BaseInformationImpl getInfo() {\n return info;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Command: /bluemap render [world]
public boolean executeRenderWorldCommand(CommandSource source, UUID worldUuid) { return executeRenderWorldCommand(source, worldUuid, null, -1); }
[ "public void render(Screen screen, Map map, int x, int y){}", "public static void main(String[] args) {\n drawMap(new Rect());\n }", "@Override\r\n\tpublic void render(Graphics g) {\r\n\t\tworld.render(g);\r\n\t}", "private void renderWorld() {\n\t\tfor (int y = 0; y < World.sy; y++) {\n\t\t\tfor (i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }