query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Get fluid stack current in slot.
public SolidStack getStack() { return this.container.getStackInContainer(); }
[ "public ItemStack getStackInSlot(int slot) {\n return this.inventory[slot];\n }", "public ItemStack getStackInSlot(int par1)\n {\n return this.furnaceItemStacks[par1];\n }", "public ItemStack getStackInSlot(int var1)\n {\n return this.parent.getStackInSlot(var1 + this.start);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter of the property bresult
public void setBresult(bresult bresult) { this.bresult = bresult; }
[ "public void setResult(Result result){\n\t\tthis.result = result;\n\t}", "protected void setResult(T result){\n this.result = result;\n }", "public void setResult(boolean result){\n\t\tthis.result = result;\n\t}", "@JsProperty(name = \"result\")\n void setResult(Object value);", "protected void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This class was generated by the JAXWS RI. JAXWS RI 2.2.4b01 Generated source version: 2.2
@WebService(name = "Computation", targetNamespace = "http://webservice.g99/") @SOAPBinding(style = SOAPBinding.Style.RPC) public interface Computation { /** * * @param arg1 * @param arg0 * @return * returns java.math.BigInteger */ @WebMethod @WebResult(partName = "return...
[ "@WebService(targetNamespace = \"http://laegler.com/openbanking/soap/service\", name = \"authserver_PortType\")\n@XmlSeeAlso({com.laegler.openbanking.soap.model.ObjectFactory.class})\npublic interface AuthserverPortType {\n}", "@WebService(serviceName = \"DocumentReceiver\", targetNamespace = \"https://SOAP.SOR2....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Do an forward and inverse accuracy test.
private void doForwardAndInverse( org.deegree.crs.coordinatesystems.CoordinateSystem sourceCRS, org.deegree.crs.coordinatesystems.CoordinateSystem targetCRS, Point3d source, Point3d target, Point3d forwardEpsilon, Point3d inverseEpsilon ) ...
[ "public void forwardTest(INDArray input, MultiLayerNetwork model){\n System.out.println(\"Starting test: (forward pass)\");\n long startTime = System.currentTimeMillis();\n for( int i=0; i< nIterations; i++ ){\n model.activate(input);\n }\n long endTime = System.current...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { MenuSystem ms = new MenuSystem(); RedCircle rc = new RedCircle(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: TOP_LEVEL
public void setTopLevel (java.lang.Integer topLevel) { this.topLevel = topLevel; }
[ "public Builder setTop(long value) {\n bitField0_ |= 0x00000004;\n top_ = value;\n onChanged();\n return this;\n }", "void assignLeaf(int value) {\n min = value;\n }", "public void set_level(int value)\r\n\t{\r\n\t\tlevel = value;\r\n\t}", "public void setT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onDialogButtonClick(DialogInterface dialog) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__WebsiteRule__Group__3__Impl" $ANTLR start "rule__WebsiteRule__Group__4" ../org.poc.idm.xtext.wdl.ui/srcgen/org/poc/idm/xtext/wdl/ui/contentassist/antlr/internal/InternalWdl.g:238:1: rule__WebsiteRule__Group__4 : rule__WebsiteRule__Group__4__Impl rule__WebsiteRule__Group__5 ;
public final void rule__WebsiteRule__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.poc.idm.xtext.wdl.ui/src-gen/org/poc/idm/xtext/wdl/ui/contentassist/antlr/internal/InternalWdl.g:242:1: ( rule__WebsiteRule__Group__4__Impl rule__Web...
[ "public final void rule__Rule__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1504:1: ( rule__Rule__Group__4__Impl ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
void mo21163a(zzjx zzjx, zzm zzm) throws RemoteException;
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the Topic field.
@gw.internal.gosu.parser.ExtendedProperty public typekey.NoteTopicType getTopic();
[ "public java.lang.CharSequence getTopic() {\n return topic;\n }", "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
how many files and directories
public int lengthLongestPath(String input) { int maxlen = 0; String[] substrs = input.split("\\n"); int i = 0; int depth = 0; String name = ""; //array record the latest length of depth i int[] pathlen = new int[input.length()+1]; for(i = 0; i < substrs.l...
[ "public int countFiles() {\n reset();\n int count = 0;\n while (nextFile() != null)\n count++;\n reset();\n return count;\n }", "public int fileCounter(File cwd){ \n int files = 0;\n for(File file: cwd.listFiles()){\n if(file.isFile()){ //c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performing deep clone unless this state has already a state with the same id in the array of states.
public FSMState deepClone(HashSet<FSMState> states) { // replace by HashSet contains check. FSMState newFSM = null; for (FSMState s : states) if (s.id == this.id) newFSM = s; if (newFSM != null) return newFSM; newFSM = new FSMState(this); states.add(newFSM); for(FSMTransition t : this.transi...
[ "@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIStateGroup clone = new UIStateGroup(getName(), states.size());\n\t\tfor (int i = 0, len = states.size(); i < len; i++) {\n\t\t\tclone.states.add((UIState) states.get(i).deepCopy());\n\t\t}\n\t\tclone.defaultState = defaultState;\n\t\treturn clone;\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 17 /Coverage entropy=1.7677614722893296
@Test(timeout = 4000) public void test017() throws Throwable { JSONObject jSONObject0 = new JSONObject(); jSONObject0.put("getsum", 3020.382193039); int int0 = jSONObject0.getInt("getsum"); assertEquals(3020, int0); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method gives text of SQL select query
@Override protected String getSelect() { return SQL_SELECT; }
[ "public String statementToString() { return \"SELECT\"; }", "protected abstract String getSelectQuery();", "public String getSqlText( ){\n \n return (\"'\" + this.getText( ).replace(\"'\", \"''\") + \"'\").toUpperCase( );\n }", "@Override\n public String toString(){\n try{\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recommender recommender = new StringMatchBasedRecommenderImpl(); recommender.getUserRecommendations("data/Dataset.csv", "data/users.csv", 3);
public static void main(String[] args) { ReviewDecisionTree reviewtree = new ReviewDecisionTree(); reviewtree.demo(); }
[ "public static void main( String[] args ) throws IOException, TasteException\n {\n File userPreferencesFile = new File(\"data/dataset.csv\");\n DataModel dataModel = new FileDataModel(userPreferencesFile);\n \n UserSimilarity userSimilarity = new EuclideanDistanceSimilarity(dataModel);\n UserNeigh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the leaf value of the current MultiMap node.
public V getLeafValue() { return pLeafValue; }
[ "public org.tensorflow.framework.Leaf getLeaf() {\n if (nodeCase_ == 1) {\n return (org.tensorflow.framework.Leaf) node_;\n }\n return org.tensorflow.framework.Leaf.getDefaultInstance();\n }", "public com.blacksquaremedia.reason.regression.HoeffdingProtos.LeafNode getLeaf() {\n if (leafBuil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Modify the return value of this function at your own risk!
public synchronized float[][] getPoints() { return points; }
[ "protected void method_5557() {}", "public void bulletproof();", "private String veryExpensiveOperation() {\n return null;\n }", "@Override\n\t\t\tprotected void returnValue() {\n\n\t\t\t}", "public int cavalry()\n {\n return cavalry;\n }", "@Override\n\t\tprotected ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Saves the collection of Entities on the data layer
void saveAll(Iterable<E> entities);
[ "public void save( Collection<T> entities );", "private <T extends DealModel>Collection<T> saveEntities(Collection<T> entities) {\n\t\tString METHOD_NAME = \"bulkValidSave\";\n\t\tlogger.logInfo( METHOD_NAME +\" started...\");\n\t\tfinal List<T> savedEntities = new ArrayList<T>(entities.size());\n\t\t \n\t\t Se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ArrayList userList = new ArrayList();
public String checkUserNameValidity(Connection connection,String useremail) throws Exception { String pwd=""; try { String sql=""; // String uname = request.getParameter("uname"); sql="SELECT * FROM amazon where user_emailid ="+"'" +useremail+"'"+";"; PreparedStatement ps = connection .prepareStatement(sql); // ps...
[ "public UserList() { userList = new ArrayList<String>(); }", "protected static ArrayList<User> getUserList(){\n return users;\n }", "public ArrayList<User> getUserList(){\n return userList;\n }", "public ArrayList<User> getUserList(){\n return userStorage;\n }", "public Users()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 node_id = 15;
public boolean hasNodeId() { return ((bitField0_ & 0x00001000) == 0x00001000); }
[ "public static int offsetBits_nodeId() {\n return 0;\n }", "Protobuf.NodeIdOrBuilder getNodeOrBuilder();", "public static int offset_nodeId() {\n return (0 / 8);\n }", "String getNodeUuid();", "String getNodeUID();", "private static long getLocalNodeId() {\n \treturn ChannelServiceImpl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .protos.CrossTower cross_tower = 2;
public Builder setCrossTower(com.alibaba.alink.operator.batch.dl.ctr.protos.Dcn.CrossTower value) { if (crossTowerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } crossTower_ = value; onChanged(); } else { crossTow...
[ "transfer_protobuf.Commands.Command.Response getResponse();", "void mo1789d(Tower tower);", "proto.Game getVersionParent();", "com.htzhu.protobuf.routeguice.PointOrBuilder getHiOrBuilder();", "cruz.agents.ProtoMessage.BandanaRequest.Type getType();", "public TeleOpLift() {\n requires(RobotMap.liftS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new point with coordinate: (this.x + dx, this.y + dy).
public RPoint2D translate(Rational dx, Rational dy) { return new RPoint2D(this.x.add(dx), this.y.add(dy)); }
[ "public static Point2D addPoints(Point2D p, double dx, double dy)\n {\n return new Point2D.Double(p.getX()+dx, p.getY()+dy);\n }", "public Position moveBy(int dx, int dy) {\n return new Position(this.x + dx, this.y + dy);\n }", "public Point2D addedTo(Point2D point) {\n\t\treturn new P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int updateMemberFindPw(Member m) { int result = mDAO.updateMemberFindPw(sqlSession, m); return result; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Access modifiers changed, original: protected
public int O00000Oo(Element element, Element element2) { Elements O0000oo0 = element2.O000OOoO().O0000oo0(); int i = 0; for (int intValue = element2.O00oOoOo().intValue(); intValue < O0000oo0.size(); intValue++) { if (((Element) O0000oo0.get(intValue)).O0000o0o()....
[ "protected void method_5557() {}", "@Override\n }", "@Override\r\n public void publicando() {\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_2117() {\n }", "@Override\r\n\tpu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gives the room when the key is
public Room getRoom() { return room; }
[ "@Override\n\tpublic String getRoom() {\n\t\treturn roomCode;\n\t}", "public int getRoom() {\n\t\treturn room;\n\t}", "@Override\r\n public int getRoomNumber() { return room.getRoomNumber(); }", "public int getRoomNumber() {return room.getRoomNumber();}", "public String getRoom() {\n\t\treturn Room;\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main method SMS client.
public static void main(String[] args) { // Config serial port parameters! SerialParameters params = new SerialParameters(); params.setPortName("COM6"); // default COM1 params.setBaudRate(115200); // default 115200 params.setFlowControlIn(SerialPort.FLOWCONTROL_NONE); // default none flowcontrol params.set...
[ "public void demoSMS() {\n\n\t\t// Send SMS message\n\t\tString smsKey = twilioManager.sendSMS(\"+353877826636\", \"test\");\n\t\tLOG.info(\"Confirmation SID : \" + smsKey);\n\t\t\n\t\t// Retrieve SMS status and details until it reaches a state of sent or failed\n\t\tSmsMessage smsMessage;\n\t\tdo {\n\t\t\tsmsMessa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get appointment by id
@GetMapping("{id}") public ResponseEntity<AppointmentDTO> get(@PathVariable("id") Long id) { return service.findByIdDTO(id) .map(ResponseEntity::ok) .orElse(ResponseEntity.notFound().build()); }
[ "@Override\n\tpublic Optional<Appointment> getAppointment(Integer id) {\n\t\tOptional<Appointment> appointment = appointmentRepo.findById(id);\n\t\tif (!appointment.isPresent()) {\n\t\t\tthrow new AppointmentNotFoundException(\"appointment does not exist\");\n\t\t}\n\t\treturn appointment;\n\t}", "@Override\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
do something with returned data
@Override public void onResponse(JSONObject response) { Log.d("INTERENT", response.toString()); Iterator iterator = response.keys(); while(iterator.hasNext()){ String key = (String)iterator.next(); try { Integer value = (Integer)...
[ "public List getReturnData();", "abstract protected T doGetResult();", "public void onReturn(int code, byte[] data) {\n\t\t\t\t\t\t\t\tcallback.onResult(request, code, data);\n\t\t\t\t\t\t\t}", "public String fetch(String data);", "public int getData(){\r\n // in the get Function we just returned dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
~ Constructor ........................................................... Creates a new AcidTest test object.
public AcidTest() { // The constructor is usually empty in unit tests, since it runs // once for the whole class, not once for each test method. // Per-test initialization should be placed in setUp() instead. }
[ "public ATTestCase()\n {\n // Default the service to the local service.\n setParticipantURI(getSourceParticipantURI()) ;\n setTestTimeout(120000) ;\n setAsyncTest(true) ;\n }", "public TaxiTest()\n {\n }", "public AdAddressesDAOTest() {\r\n\t}", "public BankAccountTest(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean doItemOnNpc(Player player, int itemId, Npc npc) { 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" ] ] } }
/ renamed from: aT
public final boolean mo6322aT(String str) { return this.f4293ml.get(str) != null; }
[ "void mo18792a(T t);", "void mo17520b(T t);", "void mo10031a(T t);", "String mo6121a(T t);", "public abstract Object mo34408b(T t);", "void mo14905a(C2328a<T> aVar);", "int mo5414a(T t);", "public abstract void mo34407a(T t, Object obj);", "public abstract void a(Object obj, T t);", "protected abs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Step 2 RESTful Api stored in SEC_ACTION for all authorized, instead of get api information from zero engine, here we provide another interface to seek action for `/api/xaction/seek` here. Here are some spec situation for this interface, this interface could be used to seek RESTful Apis 1) All the static Uris could be...
@POST @Path("action/seek") @Address(Addr.Authority.ACTION_SEEK) JsonArray searchAuthorized(@HeaderParam(KWeb.HEADER.X_SIGMA) String sigma, @BodyParam JsonObject params);
[ "public interface IMainAction extends IBaseAction{\n BaseJson getCompanyInfoByPage(int pageNumber, int pageSize) throws IOException,JSONException;\n BaseJson getRecommendListByUserId() throws IOException,JSONException;\n}", "yandex.cloud.api.access.Access.AccessBindingAction getAction();", "public interfa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the format() method.
@Test public void formatNull() { final String result = formatter.format(null); assertNull(result); }
[ "@Test\r\n\tpublic void testFormat(){\r\n\t\tactual_length = inputLength;\r\n\t\tlength_recived = FormatInteger.len(inputNumber);\r\n\t\t\r\n\t\tassertEquals(expectedResult, FormatInteger.format(inputNumber, inputWidth));\r\n\t\tassertEquals(actual_length, FormatInteger.len(inputNumber));\r\n\t\t\r\n\t\tSystem.out....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the PathInfo specific to the Portlet from the navigationalState. If the navigationalState contains fully qualified URL, we need to strip that out!
private String getPathInfo(String navigationalState) { String url = null; try { if (navigationalState != null) url = new String(Base64.decode(navigationalState)); } catch (Exception e) { logger.text(Logger.ERROR, "getPathInfo", e, navigationalState); ...
[ "@Override\n\tpublic String getPathInfo() {\n\t\treturn this.original.getPathInfo();\n\t}", "public String getPathInfo()\r\n {\r\n // In this server, the entire path is regexp-matched against the\r\n // servlet pattern, so there's no good way to distinguish which\r\n // part refers to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Longitudinal Tire Force
public double getLongForce(){ System.out.println("DONT USE THIS"); return 0.231312; }
[ "public void LegPain() {\n\t\t\r\n\t}", "public void trussShot() {\n\t\ttuskSolenoid1.set(DoubleSolenoid.Value.kForward);\n\t\ttuskSolenoid2.set(DoubleSolenoid.Value.kReverse);\n\t\t\n\t\tlongRange = false;\n\t\tshortRange = false;\n\t\ttruss = true;\n\t}", "public long getVaiTroXuLy();", "public void longRan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an image file name String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
private File createImageFile() throws IOException { String imageFileName = "Profile Image-" + userID + ".jpg"; File storageDir = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES); File image = new File(storageDir.getPath() + File.separator + imageFileName); /* File.crea...
[ "private static String createFileName() {\n String filename;\n Date date = new Date(System.currentTimeMillis());\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat dateFormat = new SimpleDateFormat(\"'IMG'_yyyyMMdd_HHmmss\");\n filename = dateFormat.format(date) + \".jpg\";\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
[ "@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" ] ] } }
Execute campaign post api with campaign_owner_user_id using company admin access_token while creating campaign
@Test(priority=55) public void create_campaign_with_various_campaign_owner_id_and_company_access_token() throws URISyntaxException, ClientProtocolException, IOException, ParseException{ test = extent.startTest("create_campaign_with_various_campaign_owner_id_and_company_access_token", "To validate whether user is abl...
[ "String createAdCampaign(String accountId, AdCampaign adCampaign);", "@PostMapping(\"/campaign\")\n\tpublic Campaign addCampaign(@RequestBody Campaign theCampaign) {\n\t\t\n\t\tLOGGER.info(\"In CampaignRestController - running add Campaign function with the vaule \" + theCampaign.toString());\n\t\t\n\t\t// also j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the common interface for the BookDepthConsumerProxyHome
public interface BookDepthV2ConsumerProxyHome extends BaseProxyHome { /** * Name that will be used for this home. */ public final static String HOME_NAME = "BookDepthV2ConsumerProxyHome"; /** * Creates an instance of the market data generator home. * * @return reference to ChannelListener ...
[ "public interface IBookService {\n /**\n * 根据cid分页查询出指定页面的所有数据\n * @param category\n * @param pb\n * @return\n */\n List<Book> getBooksByCid(Category category,PageBean<Book> pb);\n\n /**\n * 根据cid查询出指定条件的所有的记录条数\n * @param category\n * @return\n */\n int countBooksByC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validates all orders while the robot is operating
public void validateOrders() { while(running) { dbConnector.validateAllOrders(); try { Thread.sleep(sleepTime); } catch (InterruptedException e) { running = false; System.out.println("Robot shutting down."); } ...
[ "@Override\n public boolean validateOrders(List<MoveOrder> moveList) {\n for(MoveOrder move : moveList){\n if(!isValidMove(move) || !validateUnits(move)){\n return false;\n }\n }\n return true;\n }", "void validateOrder(OrderDto order);", "private void checkOrderList() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The average monthly income amount estimated based on the historical data for the income source(s).
@javax.annotation.Nullable @ApiModelProperty(value = "The average monthly income amount estimated based on the historical data for the income source(s).") public List<CreditAmountWithCurrency> getHistoricalAverageMonthlyIncome() { return historicalAverageMonthlyIncome; }
[ "public double getAverageInterestPerMonth() {\n\t\treturn getTotalInterest() / amortization;\n\t}", "public double calculateInvestmentValue() {\n\t\treturn getMonthlySavings()*((Math.pow((1 + getRateOfReturn()/12),(12*getNumYears())) - 1)/(getRateOfReturn()/12))*(1+getRateOfReturn()/12);\n\t}", "public void cal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds the given game object to the game after the game tick finishes
public final void addGameObject(GameObject gameObject){ Game.getInstance().add(gameObject); }
[ "public void addInstantiatedGameObject(GameObject gameObject)\n {\n this.instantiatedGameObjects.add(gameObject);\n }", "@Override\r\n\tpublic void tick(LinkedList<GameObject> object) {\n\t\t\r\n\t}", "public void addGameObject(GameObject obj){\n\t\tthis.objList.add(obj);\n\t}", "@Override\r\n\tp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
logger.info("Starting: Frag: " + this.toString());
public void invokeFirstScan() { new GeometricCircle().detect(this); // GeometricRectangle::detect(*this); // GeometricTriangle::detect(*this); if (shapes.size() > 0) { slice.getChosen_frags().add(this); } // logger.info("Returning."); }
[ "@Override\n public void log() {\n\n }", "private void log() {\n }", "void debug(){\n\t}", "public void log() {\n\t\t\r\n\t}", "public SavedBWAFragment() {\n\n }", "public void debug()\r\n {System.out.println(toString());}", "public abstract void debug();", "public ShowLogFile() {\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes user group entity from the data source
void deleteGroup(int id);
[ "@Override\n public void deleteGroup(Long groupId) {\n Key key = KeyFactory.createKey(GROUP_KIND, groupId); // Create the Key\n datastore.delete(key); // Delete the Entity\n }", "public void deleteGroups() {\n\n LoadRelationsQueryBuilder<Group_Place_User> loa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SIMPLE PRINTS Metodo que imprime uma mensagem de despedida e termina o programa
private void terminate(){ showTermination(); System.exit(0); }
[ "public static void printAndExit(String message) {\r\n System.out.println(message);\r\n System.exit(1);\r\n }", "public synchronized void printOnConsole(){\n end();\n resultCollector.printOnConsole(\"sysResult\", null);\n }", "private static void printFailure(){\n System.out.print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will create a new GNElement
public GNElement newElement(String name, String prefix, String uri) throws XMLException { return XMLServiceHandler.getInstance().newElement(name, prefix, uri); }
[ "BuildElement createBuildElement();", "MyElement createMyElement();", "public NLGElement createNLGElement(Object element) {\n\t\treturn createNLGElement(element, LexicalCategory.ANY);\n\t}", "public Element create(ElementType type, String name) throws Exception {\n\t\tswitch (type) {\n\t\tcase GRAPHIC:\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DssCltRemoveDumpNack.newBuilder() to construct.
private DssCltRemoveDumpNack(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "public Builder clearDumpContent() {\n\t\t\t\tbitField0_ = (bitField0_ & ~0x00000004);\n\t\t\t\tdumpContent_ = getDefaultInstance().getDumpContent();\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public Builder clearRxbcpkt() {\n bitField0_ = (bitField0_ & ~0x00000010);\n rxbcpkt_ = 0L;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ====================================================== Merge does this: 1. Merge 2 SORTED adjacent pieces of array a[ ] into a SORTED array tmp[ ]: left array (sorted) right array (sorted) a[iLeft ... iMiddle1] a[iMiddle... iRight] \ / \ / sort \ / tmp[ iLeft ... iRight ] | | Copy back ! V a[ iLeft... iRight ] ` 2. C...
public void merge(double[] a, int left, int middle, int right, double[] tmp) { int i, j, k; i = left; // Re-adjust the indices j = middle; k = left; while (i < middle || j < right) { // It's the same algorithm if (i < middle && j < right) { // Both ar...
[ "private void merge( String [ ] a, String [ ] tmpArray, int leftPos, int rightPos, int rightEnd ){\n int leftEnd = rightPos - 1; \n int tmpPos = leftPos;\n int numElements = rightEnd - leftPos +1; \n // Main loop \n while( leftPos <= leftEnd && rightPos <= rightEnd ){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Fills count array with frequency of characters
static void fillCharCounts(String str, int[] count) { for (int i = 0; i < str.length(); i++) { count[str.charAt(i)]++; } }
[ "private static int[] generateFrequency(String text) { \n int[] freq = new int[ALPHABET_SIZE]; \n // Loop through each of the characters inside the text \n for (char character : text.toCharArray()) { \n //Frequency of the character gets incremented \n freq[character]++...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BufferedReader br = new BufferedReader(new FileReader("./1.in")); BufferedWriter bw = new BufferedWriter(new FileWriter("./1.out"));
public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st = new StringTokenizer(br.readLine()); int R = Intege...
[ "public static void main(String[] args) {\n\t\tBufferedReader br = null;\n\t\tBufferedWriter bw = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(\"g:\\\\aaa.txt\");\n\t\t\tFileWriter fw = new FileWriter(\"g:\\\\bbb1.txt\");\n\t\t\t\n\t\t\tbr = new BufferedReader(fr);\n\t\t\tbw = new BufferedWrit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Parameter__Group__0__Impl" $ANTLR start "rule__Parameter__Group__1" InternalMetaTemplating.g:3669:1: rule__Parameter__Group__1 : rule__Parameter__Group__1__Impl ;
public final void rule__Parameter__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMetaTemplating.g:3673:1: ( rule__Parameter__Group__1__Impl ) // InternalMetaTemplating.g:3674:2: rule__Parameter__Group__1__Impl ...
[ "public final void rule__Parameter__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.upb.llvm_parser.ui/src-gen/de/upb/llvm_parser/ui/contentassist/antlr/internal/InternalLLVM.g:8070:1: ( rule__Parameter__Group__1__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for engineering points
public void setEngineerPoints(int engineerPoints) { this.engineerPoints = engineerPoints; }
[ "public abstract void setPoint(Point point);", "public void setPoints(TechPoint [] pts) {points = pts; }", "public void setPoint(Point p) {\n _point = p;\n }", "public void setPoint(T p){\n\t\t\t\t\t\tpoint = p;\n\t\t\t\t}", "public abstract void setPoint(String[] args);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When the taps on one of the items in the GridVIew, show a popup dialog that allows user to select one of the following choices: Edit Task / Complete Task
@Override public void onItemClick(AdapterView<?> adapterView, View view, final int position, long l) { When the taps on one of the items in the GridVIew, show a popup dialog // that allows user to select one of the following choices: // Edit Task / Complete Task ...
[ "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tSQLiteCursor cr = (SQLiteCursor) parent\r\n\t\t\t\t\t\t\t.getItemAtPosition(position);\r\n\t\t\t\t\tString name = cr.getString(cr\r\n\t\t\t\t\t\t\t.getColumnIndex(Database...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Messages per day DailyMessagesChart
private void buildCharts() { final DailyMessagesChart demo = new DailyMessagesChart("WhatApp Messages Validation", counterPerDay); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); //Messages per month - MonthlyMessagesSCSChart final Mo...
[ "@Override\n\tpublic long getCountWithDay(String day) {\n\t\tString sql = \"select count(*) from message where date(created_dt)= ?\";\n\t\treturn getForValue(sql, day);\n\t}", "@GET\n @Path(\"daily/{uid}\")\n @Produces(\"application/json\")\n public Response getDailySummary(@PathParam(\"uid\") String uid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return size of balloon
int getSize(){return size;}
[ "public int getSize(){\n return getHeight();\n }", "public int getPointSize() {\n return _pointSize.get();\n }", "public final native int getSize() /*-{\n if (this.size)\n return this.size;\n else\n return 40;\n }-*/;", "public double getSize() {\n }", "java.lang.String get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Player belonging to the given channel
public abstract Player getPlayer(Object channel);
[ "public static void setPlayerChannel(String channel) {\n player.setChannel(channel);\n }", "public static Player getPlayer(String player)\n\t{\n\t\treturn Bukkit.getPlayer(player);\n\t}", "public Player getPlayer(String username) {\n\t for (Player player : this.connectedPlayers) {\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete part. deletes the selected part.
public static boolean deletePart(Part selectedPart){ if (allParts.contains(selectedPart)){ allParts.remove(selectedPart); return true; } return false; }
[ "public void deletePart(Part selectedPart){\n this.allParts.remove(selectedPart);\n }", "public void deletePart(ActionEvent actionEvent) {\n Part deletePart = partsTable.getSelectionModel().getSelectedItem();\n if(deletePart == null){\n Alert error = new Alert(Alert.AlertType.ER...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a method to write location into file
public void addLocation(double latitude, double longitude, double altitude, long time, float speed){ DecimalFormat df1 = new DecimalFormat("#.######"); DecimalFormat df2 = new DecimalFormat("#.##"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'kk:mm:ss'Z'"); sdf.setTimeZone...
[ "private void writeLocationToFile() {\n\t\t\tgpsWriter.write(getStringValues());\n\t\t}", "protected void writeLocation(String location) throws IOException {\n writeObject(location);\n }", "public static void writeUsingFileWriter(String data, String locationToWrite) {\n String location= new Fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the provisioningState property: The provisioning state of the firewall policy rule collection group resource.
public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); }
[ "public DomainsProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningStates provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "public CloudServicesNetworkProvisioningState prov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the scheduled_arrivals value for this CountAirportOperationsStruct.
public int getScheduled_arrivals() { return scheduled_arrivals; }
[ "public int numSchedules() {\r\n\t\treturn list_of_schedule.size();\r\n\t}", "public int getArrivedParties() {\n return arrivedOf(reconcileState());\n }", "public int getDestinationsCount() {\n return destinations_.size();\n }", "private ArrayList<Integer> getDestinations() {\n return des...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints to a new books.txt file, using the saveBook method.
public static void saveExit() throws IOException { PrintWriter outputFile = new PrintWriter(bookPath); // Create printwriter object. for (Book currentBook : bookList) { outputFile.println(currentBook.saveBook()); //Creates an entirely new .txt file with data from the ArrayList bookList. } outpu...
[ "private static void addBook() throws IOException{\n\t\tuserInterface.changeCurrentPage(11);\n\t\t//Informs user that the program is creating a new book\n\t\tSystem.out.println(\"Creating new book...\");\n\t\t//Prints out Title\n\t\tSystem.out.print(\"Title: \");\n\t\t//Declare title as next line\n\t\tString title ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
0 1 2 3 4
public static void main(String[] args) { int[] arr1 = {2, 3, 4, 7, 11}; int result = findKthPositiveMagical(arr1, 5); System.out.println(result); int[] arr2 = {1, 2, 3, 4}; result = findKthPositiveMagical(arr2, 2); System.out.println(result); int[] arr3 = {2}; ...
[ "public int VersionFour(int n) {i = 1, 1+2, 1+2+3, ......\n //\n }", "void beginIndices(int count);", "public static void main(String[] args) {\n\nfor(int i=0;i<=16;i=i+4) {\n\tif(i==0)\n\tSystem.out.println(1);\n\telse\n\t\tSystem.out.println(i);\n\t\n\t}\n\n}", "@Override\n public Integer count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr MapAddr = 3;
public com.kedacom.ops.flink.etl.proto.Dssevstruct.DssNetAddr.Builder getMapAddrBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMapAddrFieldBuilder().getBuilder(); }
[ "C linkifyMapAddresses();", "void setAddress (int user_id, int map_id, int event_id, String address);", "long getOutputAddress();", "private void setAddr(long value) {\n bitField0_ |= 0x00000010;\n addr_ = value;\n }", "public ds.hdfs.SOMETHING.IPOrBuilder getAddressOrBuilder(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the date of birth.
public Date getDateOfBirth() { return dateOfBirth; }
[ "public Date getBirth() {\r\n return new Date(myBirth.getTime());\r\n }", "public java.util.Date getDateOfBirth() {\n\t\treturn dateOfBirth;\n\t}", "public final String getDateOfBirth() {\n\n this.dateOfBirth = createDate();\n if(StringUtils.isEmpty(this.dateOfBirth)){\n \tthis.da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / / / / /
public static float min(float a, float b, float c) { /* 1218 */ return Math.min(Math.min(a, b), c); /* */ }
[ "private void calculatePaths() {\n\n\n }", "protected int snapBits(){return 9;}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int getWidth(){\n return width - 10;\n }", "public int getSize() { return 3+length;}", "abstract protected String roam();", "public int getTi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<?> sortResults(List<?> criteria) { 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" ] ] } }
RESTful service to get all plans , it will show all planners in JSON form
@RequestMapping(value="/plannersrestful", method = RequestMethod.GET) public @ResponseBody List<Planner> plannerListRest() { return (List<Planner>) repository.findAll(); }
[ "private void getAllPlans(String token) throws URISyntaxException {\n ResponseEntity<PagedModel<PlanDTO>> response = genTarClient.getPlans(token, 0, 10000);\n System.out.println(\"plans response=\"+ response);\n PagedModel pageModel= response.getBody();\n System.out.println(\"number of p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int64 sum = 3;
public long getSum() { return sum_; }
[ "long GetInt64(int index);", "long sum(int maxVal);", "long getValue111();", "int getI64ValCount();", "long getValue127();", "long getValue231();", "long getValue243();", "long getValue247();", "public static void main(String[] args) {\n long n = 10 + 2L; // 2\n byte b = n + 5; ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table IRP_USER_LOVE
public void insertSelective(IrpUserLove record) throws SQLException { getSqlMapClientTemplate().insert("IRP_USER_LOVE.ibatorgenerated_insertSelective", record); }
[ "public void setUserlever(Integer userlever) {\n this.userlever = userlever;\n }", "@POST\n @Path(\"{username}/{domain}/lois\") \n public void addLOI(\n @PathParam(\"username\") String username, \n @PathParam(\"domain\") String domain,\n @JsonProperty(\"loi\") LineOfInquiry loi);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ METHOD TO ADJUST BILLS AGAINST REFERENCES BY PASSING THE BILL NOS AND ITS RESPECTIVE VALUES AS PARAMETERS
public void adjustBillReferences(String billnos) throws InterruptedException { WebElement billtable=driver.findElement(By.xpath("//div[@id='id_AdjustmentBills']/div[@id='id_AccountAmt']/table[@id='AccountAmount']")); List<WebElement> billamtbodyrows=billtable.findElements(By.xpath("//tbody[@id='AccountAmount_...
[ "private void tokenizeReferencesBasedOnPatternAut(){\r\n\t\tif (referenceMap.isEmpty()){\r\n\t\t\tint authorPos ;\r\n\t\t\tif (nameRecognizer.getFirstAuthorEntry().size()!=0){\r\n\t\t\t\tauthorPos= nameRecognizer.getFirstAuthorEntry().remove(0);\r\n\t\t\t}else\r\n\t\t\t\tauthorPos = 0;\r\n\t\t\tString firstAuthor;\...
{ "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(); jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jButton1 = ...
[ "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" ] ] } }
Test of getEstado method, of class ProveedorDTO.
@Test public void testGetEstado() { System.out.println("getEstado"); ProveedorDTO instance = null; int expResult = 0; String result = instance.getEstado(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. ...
[ "@Test\n public void testGetEstado() {\n System.out.println(\"getEstado\");\n VehiculoDTO instance = null;\n int expResult = 0;\n String result = instance.getEstado();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads and displays the provided HTML source text
public void loadHtml(final String html, final String baseUrl, final String historyUrl) { loadHtml(html, baseUrl, historyUrl, "utf-8"); }
[ "private void loadHtml() {\n String htmlContent = null;\n try {\n htmlContent = AssetUtil.getHtmlTemplateFileContent(getContext(), HTML_CONTENT_FILE_TITLE);\n } catch (Exception e) {\n Log.e(TAG, \"Failed to read asset file: \" + e.getLocalizedMessage());\n e.pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ First, translate the slice by the integral amount.
private void translateXInterp(Slice slice, final double offset ) { if( verbose > 1 ) { System.out.println("translateXInterp: Doing fixed shift of " + (int)Math.floor(offset) + " pixels."); } translateXFixed( slice, (int)Math.floor(offset) ); /* * Now, shift the pixels by what is left. */ d...
[ "public void linearize() {\r\n Object[] lin = new Object[size];\r\n\r\n for (int i = 0, j = start; i < size; i++) {\r\n lin[i] = cir[j % cir.length];\r\n j++;\r\n }\r\n\r\n cir = lin;\r\n }", "public int fromViewIndexToSamplesIndex(int i, int width) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Defender__Group__8__Impl" $ANTLR start "rule__SecurityPolicyList__Group__0" ../org.xtext.example.mydslsample.ui/srcgen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDslSample.g:2694:1: rule__SecurityPolicyList__Group__0 : rule__SecurityPolicyList__Group__0__Impl rule__SecurityPolic...
public final void rule__SecurityPolicyList__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.mydslsample.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDslSample.g:2698:1: ( rule__SecurityPol...
[ "public final void rule__ValueList__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.hipie.ui/src-gen/org/xtext/hipie/ui/contentassist/antlr/internal/InternalHIPIE.g:3563:1: ( rule__ValueList__Group__0__Impl rule__Valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use ListClusterOperationsRequest.newBuilder() to construct.
private ListClusterOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "@ApiOperation(value=\"Cluster Info ( Built date, gitCommit, gitVersion, goVersion, Platform, host_ip, kubernetes_io_hostname )\", httpMethod=\"GET\", notes=\"core\")\r\n\t@ApiImplicitParams({\r\n\t\t@ApiImplicitParam(\r\n\t\t\t\tname = \"cluster_id\",\r\n\t\t\t\tvalue = \"Cluster ID (ex) 1\",\r\n\t\t\t\trequired =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 dlid = 2;
public int getDlid() { return dlid_; }
[ "public byte getId() {\n/* 82 */ return 9;\n/* */ }", "int getLibId();", "long getHCId();", "@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\n @VTID(14)\n void id(\n int pVal);", "public abstract long mo56362d();", "public static long getSerialversionuid()\n/* */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public PendingRequestFragment() { }
[ "public ActivityFragment() {}", "public HrmFragment() {\n super();\n }", "public _4_1_Fragment () {\n\t\t\n\t}", "public ExhibitorFragment() {\n }", "public NewsFragment() {\n }", "public NewsListFragment() {\n }", "public MyTodoListFragment() {\n }", "public InFragment() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validateMove checks if the move is a diagonal movement
@Override public boolean validateMove(Location initialLocation, Location finalLocation) { boolean areValidSteps = false; if(ChessUtil.diagonalMovement(initialLocation, finalLocation)) { areValidSteps = true; } return areValidSteps; }
[ "private boolean isMoveValid(int sourceX, int sourceY, int destX, int destY, Piece sourcePiece, Piece destPiece) {\r\n boolean isValidMove;\r\n\r\n //If piece is pawn and move is diagonal, then it can move only if there is a piece of opposite color present in destination box\r\n if ((sourcePiec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void inItPage() { super.inItPage(); }
[ "@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" ] ] } }
select fragment gets item from bottom navigation bar and displays fragment
private void selectFragment(MenuItem item) { Fragment fragment = null; CallAPI callAPI = new CallAPI(); // callAPI.invokeService(MainActivity.this); String fragmentTag = ""; switch (item.getItemId()) { case R.id.menu_home: item.getIcon().setColorFilter(...
[ "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n Fragment selectedFragment = new CabpoolFragment();\n\n switch(menuItem.getItemId()) {\n case R.id.bottomNavigationBar:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This check has a problem: when you just start your first move, timeDiff between now and last packet is high Called from ProtocolLib Manager
public static boolean check(CheatPlayer p, Location to) { if(!Utils.checkModule(p, HackType.MOVING_TIMER)) return false; if (p.getPlayer().isFlying() || p.isGliding() || Utils.isUsingPotionEffect(p.getPlayer(), PotionEffectType.SPEED)) { resetTimer(p); return false; } // Well not good way to fix t...
[ "void latencyCheck(long diff);", "public void calculatePacketRoundtripTime();", "private boolean checkSessionStatePrepare(SessionInfo sessionInfo, long lastSentTime, long t2Time, long t4Time) {\n if (sessionInfo == null) {\n logger.error(\"Null sessionInfo\");\n return false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the sequence. the sequences are isosequences (I and L are converted to J)
public String get_sequence() { return m_aa_sequence; }
[ "public static String getSequence()\n {\n return \"73167176531330624919225119674426574742355349194934\" +\n \"96983520312774506326239578318016984801869478851843\" +\n \"85861560789112949495459501737958331952853208805511\" +\n \"125406987471585238630507156932909632952274430...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
read the specified ReplicaSet
public V1ReplicaSet readNamespacedReplicaSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse<V1ReplicaSet> resp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); return resp.getData(); }
[ "public String readSet() throws IOException {\n return bufferedReader.readLine();\n }", "public String [] getReplicaNum() {\n return this.ReplicaNum;\n }", "public String restartReplica();", "T read(String database, String prefix, String id);", "public void loadReplica(Replica replica){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// Constructor. // Create a passage database schema instance.
public FormulaSchema() { super(DB_NAME, DB_VERSION, AUTHORITY, TABLE_SCHEMAS); }
[ "private DBSchema()\n {\n }", "public DatabaseDefinition() {\r\n }", "public TbomSchema() {\n\t}", "public DefaultSchema() {\r\n\r\n }", "EvidenceDatabase() {}", "private CtlSchema() {\n }", "protected MongooseSchema(){}", "protected Table()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.attributes = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
go through all the attachment db till you find a match
private Cursor lookForAttachment(long attachId, String[] projection, String sortOrder) { Cursor c; c = performAttachQuery(attachId, PailContract.NoteAttachmentEntry.TABLE_NAME, projection, sortOrder); //Found - Note if (c.moveToFirst()) return c; c = performAttachQuery(attachId, PailContract.ImageAttachment...
[ "public ItRequest[] findWhereAttachmentEquals(int attachment) throws ItRequestDaoException;", "Collection< Attachment > findAttachments( QueryItem[] query );", "Collection<Attachment> findAll();", "AttachmentFile selectByPrimaryKey(String guid);", "public ArrayList<ArrayList> moveAttachments() {\n Ar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
devuelve una lista de todas las asignaciones de beneficiaros
public List<Disponibilidad> consultaBeneficiariosPendiente(String dni){ try{ List<Disponibilidad>lista= jdbcTemplate.query("SELECT * FROM Disponibilidad WHERE dni_vol=? AND estado='Pendiente'", new DisponibildadRowMapper(), dni); return lista; }catch (EmptyR...
[ "private void imprimeListaCandidatos() {\n\t\ttry {\n\t\t\tArrayList<String> listas = terminalAssociado.comunicacao.listListasCandidatos(numEleicao);\n\t\t\tfor(String textoTemp:listas) {\n\t\t\t\twriteMesa.println(textoTemp);\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Force to overload hashcode method to ensure equals consistency
public int hashCode();
[ "@Override\r\n public int hashCode() {}", "public int hashCode() {\n/* 102 */ int hash = 17;\n/* 103 */ hash = LangUtils.hashCode(hash, this.name);\n/* 104 */ hash = LangUtils.hashCode(hash, this.value);\n/* 105 */ return hash;\n/* */ }", "@Test\n @SuppressWarnings(\"serial\")\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return the left value of tile
public int getLeftValue(){ return leftValue; }
[ "public int getLeft()\n {\n \t// DO NOT MODIFY THIS METHOD!\n // =========================\n return tile.get(0) ;\n }", "int getLeft ();", "public double getLeft() {\n \treturn this.left;\n }", "public long getLeft() {\n return left_;\n }", "public int leftOffset...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates or finds a H264RateControlMode from its string representation.
@JsonCreator public static H264RateControlMode fromString(String name) { return fromString(name, H264RateControlMode.class); }
[ "private ParseMode(String str) {\n assert VALUES.contains(str);\n this.mode = str;\n }", "@JsonCreator\n public static Priority fromString(final String value) {\n final Priority priority;\n\n switch (value) {\n case \"A\":\n priority = A;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If set to true, the specified action is not enforced. optional bool preview = 218686408;
@java.lang.Override public boolean getPreview() { return preview_; }
[ "@Override\n public void actionFalse() {\n }", "public boolean isAction() {\n return false;\n }", "@Override\n public void actionTrue() {\n }", "public Update setPreview(java.lang.Boolean preview) {\n this.preview = preview;\n return this;\n }", "public boolean isReq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Manual Write Questions q1
private void fillQuestionsTable() { Question q1 = new Question("EASY: A is correct", "A", "B", "C",1, Question.DIFF_EASY); // question, 3 objects and the correct answer and a difficulty level AddQuestion(q1); // q2- Question q2 = new Question("EASY: B is correct", "A", "B", "C",2, Que...
[ "private void sendQuestion(String Q, String O1, String O2) {\n }", "private void addQuestions()\n\t{\n\t\tQuestion q1=new Question(\"A primitive data type can be:\",\"String\", \"array\", \"int\", \"int\");\n\t\tthis.addQuestion(q1);\n\t\tQuestion q2=new Question(\"The difference between type float and type do...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The main method with this declaration is the entry point of Java applications.
public static void main(String[] args) { // Create an instance of our class with the test data. System.out.println("Hello WardROBO"); }
[ "public static final void main(String[] args) {}", "public static void main(String []args) {\n }", "public static void main(String... args){\n //TODO main body\n }", "public static void main(String[] args) {\n }", "public static void main(String[] args) {\n \n }", "public static void main (St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region client render support
protected IModelData getUpdatedModelData(final IMultiblockTurbineVariant variant, final TurbinePartType partType) { return getVariantModelDataCache(variant).computeIfAbsent(partType.ordinal(), this.getUpdatedModelVariantIndex(), this.getOutwardFacings(), () -> new CuboidPartVaria...
[ "public void sendRenderingInfoToClient();", "@Override\r\n\tprotected final void render() {\n\t}", "@Override\n public void render() {}", "@Override\n public void render() {\n }", "@Override\n public void render () {\n }", "@Override\n\tpublic void render(RenderEngine renderer) {\n\t\t\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assert that the given file exists.
public static void assertExists(File file) { assertExists(null, file); }
[ "static public void assertFileExist(String message, String expected) {\n asserts++;\n File file =null;\n\n String formatted = \"\";\n if (message != null) formatted = message + \", \";\n try {\n file = new File(expected);\n if (! file.exists()) throw new IOException();\n expected = fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represents an extended event manager
public interface EventManager extends IEventManager { /** * Runs the discovery for all EventListeners which have been marked as @Discoverable * <p> * Will create and return a new instance of each one of them where this is possible to do so * * @return List of found event listeners */ ...
[ "public interface EventManager<E extends Event> {\n\n /**\n * Adds an event to the local event list.\n *\n * @param event The event to add.\n */\n void addEvent(@NonNull final E event);\n\n /**\n * Removes an event from the local event list.\n *\n * @param event The event to rem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleAbstractValue" $ANTLR start "entryRuleArrayValue" InternalComponentParameter.g:869:1: entryRuleArrayValue : ruleArrayValue EOF ;
public final void entryRuleArrayValue() throws RecognitionException { try { // InternalComponentParameter.g:870:1: ( ruleArrayValue EOF ) // InternalComponentParameter.g:871:1: ruleArrayValue EOF { before(grammarAccess.getArrayValueRule()); pushFollo...
[ "public final EObject entryRuleArrayValue() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleArrayValue = null;\n\n\n try {\n // InternalCommunicationObject.g:1468:51: (iv_ruleArrayValue= ruleArrayValue EOF )\n // InternalCommunicationObject.g:146...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a URI to execute a query for a specify endpoint path. The path that the resulting URI will target on the appropriate server.
public URI buildUrl(String path) { try { URIBuilder builder = new URIBuilder(); builder.setScheme(getScheme()); builder.setHost(getHostname()); builder.setPort(getPort()); builder.setPath(path); return builder.build(); } catch (UR...
[ "public static String buildUrl(String host, String endpoint) { return host + endpoint; }", "private static String buildEndPoint(String path) {\n return HTTP_PROTOCOL + \"//\" + HTTP_SERVER + path;\n }", "private Uri buildUri() {\n String queryParamValue = \"created:>\" + getCalculatedDate(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Product__Group_5__3__Impl" $ANTLR start "rule__Mean__Group__0" InternalJsonDsl.g:6674:1: rule__Mean__Group__0 : rule__Mean__Group__0__Impl rule__Mean__Group__1 ;
public final void rule__Mean__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJsonDsl.g:6678:1: ( rule__Mean__Group__0__Impl rule__Mean__Group__1 ) // InternalJsonDsl.g:6679:2: rule__Mean__Group__0__Impl rule__Mean__Group__1...
[ "public final void rule__Model__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellojvmtypes.ui/src-gen/org/xtext/example/hellojvmtypes/ui/contentassist/antlr/internal/InternalHelloJvmTypes.g:206:1: ( rule__M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by srtianxia on 2016/10/27.
@PerActivity @Component(dependencies = { AppComponent.class }, modules = { ActivityModule.class, ArchitectureModule.class }) public interface ArchitectureActivityComponent extends ActivityComponent { void inject(ArchitectureDemoActivity activity); }
[ "@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\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }