query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
To test sortTeams sorting with competition points Use playMatch in order to create scores
@Test public void testSortTeamWithCompetitionPoints() throws LeagueException { soccerLeague.startNewSeason(); // A: 9pts; B: 6pts; C:0pts; D:3pts soccerLeague.playMatch("A Team", 3, "B Team", 0); soccerLeague.playMatch("A Team", 2, "C Team", 0); soccerLeague.playMatch("D Team", 1, "A Team", 4); soccerLeagu...
[ "@Test\n public void testSortTeamHigh() throws Exception {\n ArrayList<TeamVO> arrayList = new TeamDataHandel().sortTeamNormal(5, \"point\", true);\n// assertEquals(0.7561, arrayList.get(0).winRate, 0.0001);\n// assertEquals(0.7195, arrayList.get(1).winRate, 0.0001);\n// assertEquals(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "createhistogram" attribute
public void unsetCreatehistogram() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(CREATEHISTOGRAM$6); } }
[ "public void destroyHistogramProcessor(){\n mHistProc.disconnectListener(); //no more evaluation calls as soon as camera closes\n totalMeteringPixels = 0;\n mHistProc = null;\n }", "public void setHistogram ()\n {\n binNum = (int)Math.ceil((max - min) / binSize) + 1;\n his...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO make it behave better... like show error dialogs etc
public boolean checkPlayServices() { int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity); if (resultCode != ConnectionResult.SUCCESS) { if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) { GooglePlayServicesUtil.getErrorDialog(resultCode, activity, PLAY_SERVICES_RESOLU...
[ "@Override\n public void showErrorMsg() {\n }", "public void showErrorDialog() {\n\t}", "@VisibleForTesting\n void showErrorDialog() {\n }", "void showErrorMsg(String error);", "public void run() {\n dlg.setOKButtonEnabled(true);\r\n dlg.setP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /*! * Create database if it is not created yet */ DBAdapter adapter = new DBAdapter(getApplicationContext()); /*! * Fill the listview */ peopleL...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a star movie in the table and also the movie that the star plays in
public static StarMovieResponseModel addStarInMovieFrom(StarMovieRequestModel requestModel){ String starID = requestModel.getStarid(); String movieID = requestModel.getMovieid(); try{ String movieQuery = "SELECT id FROM movies WHERE id = ?;"; PreparedStatement psMovie = ...
[ "public void addMovie() {\n try {\n if (movieToAdd != null) {\n movieToAdd.setTitle(titleTextField.getText());\n movieToAdd.setCategoryId(getCategoryIdFromName(selectedCategory));\n\n var rating = Double.parseDouble(ratingTextField.getText().isEmpty() ?...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new MemberMatch instance.
public MemberMatch( T actualMember, Matcher<T> matcher) { this.actualMember = actualMember; this.matcher = matcher; }
[ "public static UserM2Match newEmptyMatch() {\r\n return new Mutable(null, null, null);\r\n }", "public MemberInfo(String name, String owner, String desc, boolean matchAll) {\n/* 161 */ this(name, owner, desc, matchAll, null);\n/* */ }", "public static CollisionDetectionMatch newEmptyMatch() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the launch configuration.
public final ILaunchConfiguration getLaunchConfiguration() { return config; }
[ "public RunConfig getRunConfig()\n {\n List<RunConfig> cfs = getRunConfigs();\n return cfs.size() > 0 ? cfs.get(0) : null;\n }", "public RunConfig getRunConfig() { List <RunConfig> cfs = getRunConfigs(); return cfs.size()>0? cfs.get(0) : null; }", "public static Config getApplicationConfig(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string dataNasc = 5;
public Builder setDataNasc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; dataNasc_ = value; onChanged(); return this; }
[ "public void setData_inicial(String data_inicial) {\n this.data_inicial = data_inicial;\n }", "public void setNume(String nume) {\n this.nume = nume;\r\n }", "public static String getAno(String data) {\r\n String resp = \"\";\r\n\r\n if (data.length() == 10) {\r\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns format to use for displaying value as a String.
public String getFormat() { if (format == null) getDefaultFormat(); return format; }
[ "public java.lang.String getFormat();", "public abstract String getFormatString();", "public String getFormat() {\n\tString value = null;\n\tif (_dataBean != null) {\n\t\tvalue = _dataBean.getFormat();\n\t}\n\treturn (value == null) ? \"\" : value;\n}", "public java.lang.String getFormat() {\n\t\t\treturn loc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates string for call
private static String createCallArgsString(AbstractVariableData[] variableDatas) { final StringBuilder builder = new StringBuilder(); for (AbstractVariableData data : variableDatas) { if (data.isPassAsParameter()) { if (builder.length() != 0) { builder.append(", "); } bui...
[ "static String createCall(String funcName, String[] args){\n String result = funcName + \"(\";\n for (int i = 0; i < args.length; i++) {\n String arg = args[i];\n result += arg;\n if(i != args.length - 1){\n result += ',';\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
solo cuando creating es false
public String saveAndGoToPreviousQuestion() { try { Question q=saveQuestion(); Question previousQ=srvSurveysAdmin.getPreviousQuestion(q); question=previousQ; validations = question.getValidations(); newValidations=new ArrayList<Validation>(); initCreationViewAdapters(); creating = false; initV...
[ "@Override\n\tpublic boolean create(Aliment obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean create(Motorbike obj) {\n\t\treturn false;\n\t}", "public void setCreateIfNonExistent(boolean value) {\n createIfNonExistent = value;\n }", "public boolean addOnCreation();", "public boolean ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(java.lang.String name) { return byName.get(name); }
[ "public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }", "public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse a string into a ClassDecl AST node, applying substitutions.
public ClassDecl parseDecl(String fmt, Object o1, Object o2) { return (ClassDecl) parse(fmt, list(o1, o2), DECL); }
[ "@Override\r\n public void visit(ClassDeclNode node){\r\n }", "private ParseResult<Decl> parseClassBodyDecl(final int startPos) throws ParseException {\n try {\n final ParseResult<Decl> classMemberDecl = parseClassMemberDecl(startPos);\n return new ParseResult<Decl>(classMemberD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'groupID' field. Unique event group ID
public java.lang.CharSequence getGroupID() { return groupID; }
[ "public String getIdGroup() {\r\n\t\treturn this.idGroup;\r\n\t}", "public long getGroupID() {\r\n\t\treturn groupID;\r\n\t}", "public String getGourpId(){\r\n\t\treturn this._groupID;\r\n\t}", "public String getGroup_uuid() {\n return group_uuid;\n }", "public com.google.protobuf.ByteString\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create all the topics from the primary categories as default
private void createTopics(final SQLiteDatabase db) { int index = 0; final Cursor c = db.query("category", new String[]{"_id", "name", "reference", "isprimary", "parent"}, "isprimary=?", new String[]{"1"}, null, null, "_id", null); try { c.moveToNext(); while (!c.isAfterLa...
[ "public List<Topic> getAllTopics()\r\n\t{\r\n\t\t//return topics;\r\n\t\tList<Topic> topics=new ArrayList<>();\r\n\t\ttopicRepository.findAll()\r\n\t\t.forEach(topics::add);\r\n\t\treturn topics;\r\n\t}", "private ArrayList<String> prepareTopicsHowPage() {\n ArrayList<String> topics = new ArrayList<>();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a reply from the next request that was submitted. Requires this is "open".
public String getReply() throws IOException { String reply = in.readLine(); if (reply == null) { throw new IOException("connection terminated unexpectedly"); } try { return reply; } catch (NumberFormatException nfe) { throw new IOExcep...
[ "private String requestReply() throws IOException {\n String msg = dataInputStream.readUTF();\n System.out.println(\"Router says: \"+msg);\n\n // Server tells router to get reply form client\n dataOutputStream.writeUTF(\"request_reply\");\n msg = dataInputStream.readUTF();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setData() { }
[ "@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 returns a list of all showtimes based on hallCode.
public List <String> getHallShowtimeList(String hallCode, String day) { if (hallShowtimeList == null){ hallShowtimeList = new ArrayList <String>(); } for (int i = 0; i < showtimeList.size(); i++){ if (showtimeList.get(i).getHallCode().equals(hallCode)){ if (showtimeList.get(i).getDay().equals(day)){ ...
[ "public ShowtimeList getShowtimes() {\n\t\treturn showtimes;\n\t}", "public ArrayList<String> getSthHillsTimes(){\r\n ArrayList<String> times = new ArrayList();\r\n for(int i=1; i<numRedTrains; i++){\r\n times.add(redData[i][10].toString());\r\n }\r\n return times;\r\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all persisted alerts that the current user has permissions to see.
public List<RepositoryAlert> getAlerts();
[ "public Iterable<Alert> getAllAlerts ()\n\t{\n\t\treturn alertRepo.findAll();\n\t}", "@Transactional\n\tpublic Iterable<Alert> getAlertsByUser(User user) {\n\t\treturn alertDao.findByUser(user);\n\t}", "public java.util.List<POGOProtos.Rpc.WeatherAlertProto> getAlertsList() {\n if (alertsBuilder_ == null) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a queue from the default messaging server.
public RemoveQueue(String queueName) { this(queueName, MessagingUtils.DEFAULT_SERVER_NAME); }
[ "public void removeQueue(String queueName) throws JobQueueException;", "private void deleteQueue() {\n try (Channel channel = createChannel()) {\n log.info(\"Deleting queue \" + channelConf.getQueueConfiguration().getQueueName());\n channel.queueDelete(channelConf.getQueueConfiguratio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the SparseEqnDouble(singleton) object from the SpringAppContext.
public static ISparseEqnDouble getSparseEqnDouble(String beanId) { setup(); return (ISparseEqnDouble) SpringAppCtx.getBean(beanId); }
[ "double getSparseOrDefault(\n long key,\n double defaultValue);", "java.util.Map<java.lang.Long, java.lang.Double>\n getSparseMap();", "public java.util.Map<java.lang.Long, java.lang.Double> getSparseMap() {\n return internalGetSparse().getMap();\n }", "public java.util.Map<java.lang....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
static C3845f m13001a(JSONObject jSONObject) throws JSONException { return new C3845f(jSONObject.getJSONObject("configs_key"), new Date(jSONObject.getLong("fetch_time_key")), jSONObject.getJSONArray("abt_experiments_key")); }
[ "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" ] ] } }
Recall the device location
private void loadMyLocation(Context context) { LocationServices.getFusedLocationProviderClient(context).getLastLocation().addOnCompleteListener(locationTask -> { if (locationTask.isSuccessful()) { if (myLocation.getValue() != locationTask.getResult()) myLocation.setVa...
[ "private void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Administrator on 2016/10/19.
public interface OnItemClickListener { void setOnItemClickListener(int position); }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end completor display the chart
public void displaychart() throws Exception { int chartlength=charts.length; FileWriter f1=new FileWriter("chart.txt",false); String str2="Earley chart for = "+"("+sentence+")"+"\n"; char buffer1[]=new char[str2.length()]; str2.getChars(0,str2.length(),buffer1,0); f1....
[ "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"display linechart\");\n\t}", "private void parChart(){\n DataSeries dataSeries = new DataSeries();\n dataSeries.add(new DataSeriesItem(\"Accepted\", personService.findAllAccepted(appUser.getBank(), Person.Status.ACCEPTED).size()));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Intent intent = new Intent(this, ProductDetailActivity.class); startActivity(intent);
public void cancel(View view) { finish(); }
[ "@Override\n public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(),ProductActivity.class);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, NewP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end getters and setters round value up if >0.50 and down if value<0.50
public int roundValue(double value){ String[] round = String.valueOf(value).split("\\."); int i = Integer.parseInt(round[0]); int ii = Integer.parseInt(round[1].substring(0,1)); if(ii>=5){i+=1;} else{ } return (i); }
[ "void moveUp(double value);", "public void setValue(double newValue) {\n value = newValue;\n if (value < min) {\n value = min;\n }\n if (value > max) {\n value = max;\n }\n setAngle((value - min) * sweepMax / (max - min));\n }", "void betDoubleD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
///////////////////////////////////////////////////////////////////////////////////// //Check getOutEdges(), also tests inner class AllEdges /////////////////////////////////////////////////////////////////////////////////////
@Test public void nullGetOutEdges() { Graph<String, String> g = new Graph<String, String>(); assertNull(g.getOutEdges("a")); assertNull(g.getOutEdges(null)); }
[ "public List<E> getOutEdges() {\n return outEdges;\n }", "@Nullable\n EdgeIterator getOutEdges(long node);", "void testAddOutEdge(Tester t) {\r\n BridgIt temp = new BridgIt();\r\n t.checkExpect(temp.board.allCells.get(6).outEdges.size(), 0);\r\n t.checkExpect(temp.board.allCells.get(4).outEd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this methods write some data on screen
static void printSomething() { for (int i = 1; i <= 7; i++) { System.out.println("clear the console!!!"); } }
[ "protected void writeData(){\r\n\t\tSystem.out.println(\"Writing the data\");\r\n\t}", "public void outputDataToScreen() {\n\t\tSystem.out.println(\"T: \" + temp + \" E: \" + energyBar/ noOfPoints);\n\t}", "public void write(){\n System.out.print(ansi().fg(color).a(Ansi.Attribute.INTENSITY_BOLD));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compare the URI to my URI patterns that I established earlier If I got a URI that ends in a numeric value, I know I only want a single row Take the URI , and match against all the uri patterns that i specified, if it matches with one, return the number if it doesn't match with any, return 1
@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { if (uriMatcher.match(uri) == NOTES_ID) { // Reset the selection value selection = DBOpenHelper.NOTE_ID + "=" + uri.getLastPathSegment(); // Now the ...
[ "@Override\r\n public int match(Uri uri) {\n int code = super.match(uri);\r\n switch(code){\r\n case STUFF:\r\n Log.dataOperation(\"uri match to stuff\");\r\n break;\r\n case STUFF_ID:\r\n Log.dataOperation(\"uri match ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
8 UUID TESTS FASTCGI
@Test public void fastcgi_uuid_image_with_nga_external_header_redirect () throws Exception { log.info(name.getMethodName()); mvc.perform(get("/fastcgi/iipsrv.fcgi?FIF=/public/images/f2d/c2f/f2dc2f9f-1f5a-4fdf-b11e-77581c28fc30&WID=1200&QLT=98&CVT=jpeg") .header(IIIFImageAPIHandler.nga_external, true)) ...
[ "@Test\n public void testUUIDs(\n ) throws Exception {\n UUIDGenerator[] generator = new UUIDGenerator[GENERATOR_COUNT];\n for(int g = 0; g < GENERATOR_COUNT; g++) {\n generator[g] = UUIDs.getGenerator();\n }\n for(int i = 0; i < 8; i++){\n UUID uuid = generat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private static final AtomicInteger counter = new AtomicInteger(); / static List users = new ArrayList( Arrays.asList(
@SuppressWarnings("unchecked") @Override public List<User> getAll(int offset, int count) { List<User> users= userdao.getAll(offset, count); return users; }
[ "protected static ArrayList<User> getUserList(){\n return users;\n }", "public userList() {\n\t\tusers = new ArrayList<User>();\n\t}", "private void updateUserIds() {\n int num = 0;\n synchronized (mUsersLock) {\n final int userSize = mUsers.size();\n for (int i = 0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
leaves the current class scope
private void leaveClassScope() { this.symbolTable = this.symbolTable.getParent(); }
[ "public void popScope() {\n this.workingMem.popScope();\n }", "private void exitScope() {\n \tsymbolTable = symbolTable.getParent();\n }", "@Override\n public void exitBlock(JParser.BlockContext ctx) {\n popScope();\n //System.out.println(\"exit a local?? cur \" + currentScope...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INTERNAL Apply this node to the passed query
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute("size", getLeft().generateExpression(context).count(), (Class)getType()); reportQ...
[ "public abstract void apply(Query query);", "public void process(T query);", "public void apply(Node<T> node);", "public void fillQuery(Query query);", "public abstract void performPostProcess(V_GraphQuery graphQuery);", "public void process(Query query) {\n if (isForReporting(query)) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the position of the given card
public int[] getAvailableCardAndPosition(int card){ int[] result = new int[2]; result[0] = -1; if(stockpile.getCard()==card){ result[0] = 0; return result; } if(putawayContainsCard(card)!=-1) { for (int i = 0; i < putAwayPiles.length; i++) { ...
[ "public int position (Card card) {\n for (int i = 0; i < hand.size(); i++) {\n Card c = (Card)hand.get(i);\n if (c.matches(card)) {\n return i; \n } \n }\n return -1;\n }", "public static int findCard(Hand hand, Card card){\n int position=-1;\n for(int count=0; count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the width of the given stage, if possible.
private boolean setAndCheckWidth(Stage pStage, double pWidth) { if (pWidth >= Math.max(pane.getDefaultMinStageWidth(), pStage.getMinWidth())) { pStage.setWidth(pWidth); return true; } return false; }
[ "public void set_width(int w){width = w;}", "public static void setWidth(int w)\n {\n width = w;\n }", "public void setWidth(int w)\r\n {\r\n width = w;\r\n }", "public void setWidth(int a_w) {m_width = a_w;}", "public void setWidth(int value) {\n this.width = value;\n }", "p...
{ "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 prefix ...
[ "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" ] ] } }
Extract samples in MCU order, process & call output
void extract_MCUs (CompressInfo cinfo, short [][][] image_data, int num_mcu_rows) { int[][] MCU_data = MCU_data_; // reduce memory allocation frequency int mcurow; int mcuindex; short blkn, ci, xpos, ypos; JpegComponentInfo comp; short[] quanttbl; short[][] image_data_ci; // avoid ci ...
[ "public void process() throws Exception {\n\n if (isInputAtNode(0)) {\n\n buffer.remove(0);\n SampleSet input = (SampleSet) getInputAtNode(0);\n buffer.add(input);\n\n\n System.out.println(\"input.size()= \" + input.size());\n System.out.println(\"buffer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
databinding method to get an XML representation of this object
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException{ java.util.ArrayList elementList = new java.util.ArrayList(); java.util.ArrayList attribList = new java.util.ArrayList(...
[ "public String toXml() {\n return NDBXWriter.asString(this);\n }", "public String toXML() {\n\t\t//TODO\n\t\treturn null;\n\t}", "@Override\r\n public String toString() {\r\n return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.SIMPLE_STYLE);\r\n }", "public String toXML () {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void visit(CastExpression cast) { }
[ "@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 an OzoneClient which will use RPC protocol to perform client operations.
public static OzoneClient getRpcClient() throws IOException { return new OzoneRpcClient(getConfiguration()); }
[ "public Client createClient() {\n return new Client();\n }", "public MinioClient createClient() {\n\t\tif (minioClient == null) {\n\t\t\ttry {\n\t\t\t\tminioClient = new MinioClient(serverURL, accessKey, secretKey);\n\t\t\t} catch (InvalidEndpointException e) {\n\t\t\t\t// Print the stack if invalid endpoint ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recursive Heapifydown procedure. Here the node at index i and its two direct children violates the heap property
private void heapify_down(int i) { // get left and right child of node at index i int left = LEFT(i); int right = RIGHT(i); int largest = i; // compare A.get(i) with its left and right child // and find smallest value if (left < size() && A.get(left).getInfluence() > A.get(i).getInfluence()) { large...
[ "private void heapify() {\n\t\t\n\t\tint parent = (lastIndex - 1) / 2;\n\t\t\n\t\twhile (parent >= 0) {\n\t\t\tsiftDown(parent);\n\t\t\t--parent;\n\t\t}\n\t\t\n\t}", "void downHeap(i, size) {\n while (2 * i <= size) { //left child exists\n child = 2 * i\n if (child < size) { //right c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads/Switches categories or opens sub category, if item is clicked or opened
public boolean setCategory(int c) { return clazzManager.get(AbstractBazaarMainInv.class).openCategory(this, c); }
[ "@Override\n public void onItemClick(RecyclerView parent, View clickedView, int position) {\n if(position < CATEGORY_DATA.size()){\n Intent i = new Intent(getActivity(), ActivityArticlesByCategory.class);\n i.putExtra(Ut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para generar la clave secreta
private static Key generateKey(int tipo) throws Exception { Key key; if(tipo==0) //Sie l tipo es 0 se usara la clave keyShareServidor key = new SecretKeySpec(keyShareServidor, algorithm); else //Sie l tipo es 1 se usara la clave keyShareAS key = new SecretKeySpec(keyShareAS, algorithm); ...
[ "public SecretKey genKey();", "@PostConstruct\n private void generateKey() {\n String keyString = \"simplekey\";\n secretKey = new SecretKeySpec(keyString.getBytes(), 0, keyString.getBytes().length, \"DES\");\n }", "public String getClave(){\n return clave;\n }", "public String getLlavePubli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set up Vault economy
private boolean setupEconomy() { RegisteredServiceProvider<Economy> economyProvider = getServer() .getServicesManager().getRegistration( net.milkbowl.vault.economy.Economy.class); if (economyProvider != null) { economy = economyProvider.getProvider(); } return (economy != null); }
[ "private void setupEconomy() {\n if (getServer().getPluginManager().getPlugin(\"Vault\") == null) {\n return;\n }\n RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);\n if (rsp == null) {\n return;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
parsing XML document using DOM method
ArrayList<Country> parseXXMLDom(){ DocumentBuilderFactory documentBuilderFactory=DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder; Document document; ArrayList<Country> countriesTemp=new ArrayList<>(); Country country=null; try { documentB...
[ "private static void parseDocument(){\n\t\tElement docEle = dom.getDocumentElement();\n//dom.getElementById(elementId)\n\t\t//docEle=dom.\n\t\t//get a nodelist of \n\t\t//System.out.println(docEle);\n\t\tNodeList nl = docEle.getElementsByTagName(\"Employee\");\n\t\t//System.out.println(nl.getLength());\n\t\tif(nl !...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is to check the existence of budgetcategorycode in table.
private boolean checkExistence(MaintenanceDocument maintenanceDocument) { boolean valid= true; if (LOG.isDebugEnabled()) { LOG.debug("new maintainable is: " + maintenanceDocument.getNewMaintainableObject().getClass()); } // shared by budgetcategorymapping & costelement ...
[ "public boolean checkCategory(String category) {\n try {\n // Use a prepared statement to see if the argument category exists in the database and if so, return true\n String query = \"SELECT * FROM \" + category;\n PreparedStatement stmt = conn.prepareStatement(query);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
cmd id:0x0103 string user_name = 1;
public Builder clearUserName() { userName_ = getDefaultInstance().getUserName(); onChanged(); return this; }
[ "public String getUser_name() { return user_name; }", "public String usernm() { return usernm; }", "String getUser_nm();", "@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(11)\n String user();", "public int UserName(String lpbstrRet) throws COMException\r\n\t{\n throw n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A preprocessor language condition for conditionally compiled block of code.
public interface PreprocessorLanguageCondition {}
[ "public boolean isPreCondition();", "private Conditional ifStatement () {\n match(If);\n match(RightParen);\n\n Expression e = expression();\n\n match(LeftParen);\n\n Statement s = statement();\n\n return new Conditional(e,s); // student exercise\n }", "private Valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Partie findById(Integer id) { return em.find(Partie.class, id); }
[ "@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" ] ] } }
Find the attribute or text value that this PathElement points to.
public String findValue(Element context) { if (type == ELEMENT) { return null; } if (type == TEXT) { return context.getText(); } if (type == ATTRIBUTE) { return context.getAttributeValue(name); } return null; }
[ "public String getAttributePathString();", "@Pure\n\tpublic static String getAttributeValue(Node document, String... path) {\n\t\tassert document != null : AssertMessages.notNullParameter(0);\n\t\treturn getAttributeValue(document, true, 0, path);\n\t}", "public String GetAttributeValue(WebDriver driver, String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int64 AsOfTimeMs = 2;
public boolean hasAsOfTimeMs() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "long getValidToMs();", "int getStartTimeMs();", "long getSecondAsTime();", "long getNanosecond();", "private int getTime( ) {\r\n return (int) ( System.nanoTime( ) / 1000000 );\r\n }", "public float timint() { return timint; }", "long getAtime();", "int getEndTimeMs();", "long time(TimeUnit t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor for the property "SuspectGroupTimestamp" Setter for property SuspectGroupTimestamp. The time by which a MC packet must be received or else a MC rejoin will be performed.
public void setSuspectGroupTimestamp(long fBinding) { __m_SuspectGroupTimestamp = fBinding; }
[ "@java.lang.Override\n public long getTimestampSec() {\n return instance.getTimestampSec();\n }", "public Timestamp getCimsPstdat() {\n return (Timestamp) getAttributeInternal(CIMSPSTDAT);\n }", "public void setTimestampLocation(int timestampElementLocation) {\n timestampLocat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the specification version.
public String getSpecificationVersion () { return impl.getSpecificationVersion () == null ? null : impl.getSpecificationVersion ().toString (); }
[ "public int getMajorSpecificationVersion() {\n return Configuration.getMajorSpecificationVersion();\n }", "io.bloombox.schema.struct.VersionSpec getVersion();", "@Schema(description = \"The Spec Version for this event.\")\n public String getSpecVersion() {\n return specVersion;\n }", "public St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.BlockSeqs blockSeqs = 2;
@java.lang.Override public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getBlockSeqs() { if (valueCase_ == 2) { return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) value_; } return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.getDefa...
[ "private int[] getBlockSet() {\n\treturn blockSet;\n}", "private void setBlockNum(long value) {\n \n blockNum_ = value;\n }", "public void setBlockC(int block[]) {\r\n this.blockC = blockC;\r\n }", "public int getBlocks() {\r\n\t\treturn blocks;\r\n\t}", "private void setCurBlockNum(l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the major version number of the protocol.
@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 13:01:51.453 -0500", hash_original_method = "6CE35F73F8CF79D6A880BDE227F0BCAD", hash_generated_method = "08886D75F019C3803FA9A61CFB99DF38") public final int getMajor() { ...
[ "public int getFileVersionMajor() {\n return VERSION;\n }", "public int getMajorSpecificationVersion() {\n return Configuration.getMajorSpecificationVersion();\n }", "public static String getMajorVersion() {\r\n\t\treturn getMajorVersion(getSoftwareVersion());\r\n\t}", "public int getMajor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the y component of the pivot point of the transform
public float pvy() { return npvy(address()); }
[ "public double getPivot() {\n return mPivot;\n }", "private Point getPivot() {\n Point pivot = new Point();\n GravityUtils.getDefaultPivot(imageView.getController().getSettings(), pivot);\n return pivot;\n }", "public int getY(){\r\n return (int)this.p.getY();\r\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean fling(float arg0, float arg1, int arg2) { 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" ] ] } }
When this option is set to 'true', for each batch, it will emit the metrics for the duration between the oldest record received by the topic and the time it arrives in Glue to CloudWatch. The metric's name is "glue.driver.streaming.maxConsumerLagInMs". The default value is 'false'. This option is supported in Glue vers...
public KafkaStreamingSourceOptions withEmitConsumerLagMetrics(String emitConsumerLagMetrics) { setEmitConsumerLagMetrics(emitConsumerLagMetrics); return this; }
[ "public void dogWatch() {\n if (this.currentBatch != null && this.currentBatch.getArchive() != null &&\n (Calendar.getInstance().getTimeInMillis() - this.currentBatch.getArchive().getStartTime().getTimeInMillis())\n > currentBatch.getBatch().getTimeout() * 60000) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form NewOutputPane
public NewOutputPane() { initComponents(); }
[ "@Override\n protected CloneableEditorSupport.Pane createPane() {\n PlatypusModuleSourceDescription sourceDesc = new PlatypusModuleSourceDescription(dataObject);\n PlatypusModuleDatamodelDescription modelDesc = new PlatypusModuleDatamodelDescription(dataObject);\n PlatypusFormLayoutDescripti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 8: / 9:
protected void a(aej paramaej, float paramFloat, Block parambec) /* 10: */ { /* 11:21 */ int i = paramaej.l(); /* 12:23 */ if ((i > -1) && /* 13:24 */ (i - paramFloat + 1.0F < 10.0F)) /* 14: */ { /* 15:25 */ float f1 = 1.0F - (i - paramFloat + 1.0F) / 10.0F; /* 16:26 */ f1 = ...
[ "public void test09() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void f9() {\n\t\t\t\t\r\n\t\t\t}", "public static void Q22()\r\n\t{\r\n\t}", "public void mo829G() {\n }", "public void test1to1b() {\n th( \"III-120\");\t// 1\n th( \"III-122\");\t// 1\n th( \"III-123\");\t// 1\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return the single instance created for this class which internally calls the private static class to get the INSTANCE, no synchronization is required and it eill be called only once when the first call is made
public static SingletonClass getInstance() { return SingletonClassInstance.INSTANCE; }
[ "public static Singleton getInstance() { // !! static, does not need an instance\n\t\treturn INSTANCE;\n\t}", "public static synchronized Instance getInstance() {\n return instance;\n }", "public static Instance getInstance() {\n if(null == instance) {\n instance = new Instance();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if letter selection is out of bound or already used
private void generateWord(String word, int row, int col) { if(row < 0 || row >= board.length || col < 0 || col >= board.length || board[row][col].getBgColor() == Color.GREEN) return ; // Check if computer has generated a valid word if(word.length() >= 4 && !myWords.contains(word) && !compute...
[ "private void checksLetterAndSets() {\r\n\r\n\t\t\t\t//Gets positions for the letter in the word\r\n\t\t\t\t// WARNING !!! -> this method return a null if don´t find the letter\r\n\t\t\t\tint[] pos = Utils.getPositionsInStr( \r\n\t\t\t\t\tletter.charAt( 0 ),\r\n\t\t\t\t\thidden_word \r\n\t\t\t\t);\r\n\r\n\t\t\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__EString__Alternatives" $ANTLR start "rule__EDouble__Alternatives_4_0" InternalVideoMontageSVJD.g:885:1: rule__EDouble__Alternatives_4_0 : ( ( 'E' ) | ( 'e' ) );
public final void rule__EDouble__Alternatives_4_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalVideoMontageSVJD.g:889:1: ( ( 'E' ) | ( 'e' ) ) int alt7=2; int LA7_0 = input.LA(1); if ( (LA7_0==13) ) { ...
[ "public final void rule__EDouble__Alternatives_4_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalActivityArchitecture.g:628:1: ( ( 'E' ) | ( 'e' ) )\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Endingdate' attribute. If the meaning of the 'Endingdate' attribute isn't clear, there really should be more of a description here...
Date getEndingdate();
[ "@XmlElement(nillable = true, required = true)\r\n\tpublic Date getEndRecDate()\r\n\t{\r\n\t\treturn DateTimeUtil.parseEmptyDate(endRecDate);\r\n\t}", "public DateTime getEndAt() {\n return (DateTime) get(\"end_at\");\n }", "public Date getAwardEndingDate();", "public String getEndDate() {\n\t\treturn End...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve Analysis object we are working with. Create a new object if it's a new form
protected Object formBackingObject(HttpServletRequest request) throws ServletException { String analysis_id = ServletRequestUtils.getStringParameter(request, "id", null); String username = request.getRemoteUser(); Long study_id = ControllerUtil.getStudyId(request); // Study study = mStudyService.findByID(stud...
[ "private TransformationActivity findAnalysis(String analysisId) {\n TransformationActivity analysis = daoFactory.getTransformationActivityDao().findById(analysisId);\n if (analysis == null) {\n throw new WorkflowException(\"analysis \" + analysisId + \" not found\");\n }\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of Description
public final void setDescription(java.lang.String description) { setDescription(getContext(), description); }
[ "public void setDescription(String value);", "public abstract void setDesc(java.lang.String newDesc);", "public void setDescription(String description)\r\n/* 117: */ {\r\n/* 118:102 */ this.description = description;\r\n/* 119: */ }", "public void setDescription (String description){\n th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entry with a null expression
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullEntry() { TokenizedTrafficEntryFactory.newTrafficEntry(null); }
[ "@Override\n public Expression visitNullLiteral(NullLiteralContext ctx) {\n return new NullLiteral();\n }", "public Entry() {\n\t\tthis(\"entry\", null);\n\t}", "public abstract NullExpression newNullExpression(Expression expression);", "@DSComment(\"data structure class\")\n @DSSafe(DSCat.DAT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the user clicks a marker.
@Override public boolean onMarkerClick(final Marker marker) { // Retrieve the data from the marker. Integer clickCount = (Integer) marker.getTag(); // Check if a click count was set, then display the click count. if (clickCount != null) { clickCount = clickCount + 1; ...
[ "@Override\n public boolean onMarkerClick(Marker marker) {\n\n // Retrieve the data from the marker.\n final Event event = (Event) marker.getTag();\n\n // Check if a click count was set, then display the click count.\n if (event != null) {\n String personID = event.getPerso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ByteBufferX putInt(int value) { 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" ] ] } }
Sets the value of the 'organisationName' field.
public com.fretron.Model.TripMisReport.Builder setOrganisationName(java.lang.String value) { validate(fields()[23], value); this.organisationName = value; fieldSetFlags()[23] = true; return this; }
[ "public void setOrganisation(String organisation) {\n this.organisation = organisation == null ? null : organisation.trim();\n }", "public void setOrgname(String orgname) {\n this.orgname = orgname;\n }", "public void setNameOrg1(java.lang.String newNameOrg1) {\n\t\tnameOrg1 = newNameOrg1;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints out the table where variable values are stored
@Override public void execute(Map<String, Integer> symTab) { System.out.println(symTab); }
[ "private static void printtable() {\n\t\tIterator it = finaltable.symboltable.entrySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tMap.Entry pair = (Map.Entry)it.next();\n\t\t\tString a=(String) pair.getKey();\n\t\t\tTable t=(Table) pair.getValue();\n\t\t\tSystem.out.println(\"\\n\\n\\n\\n\"+a+\"---------------\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a version suitable for reading.
public native Object getReadableVersion( CommitRecord cr );
[ "public String getVersion() throws IOException\n {\n Matcher matcher = VERSION_PATTERN.matcher(getInfo());\n return matcher.group(1);\n }", "String getLoadedVersion();", "private static int getLatestVersion() {\n InputStream is = null;\n BufferedReader br;\n String version = null;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Le pide a la HojaDePersonaje el nivel del PJ. Sirve para pasarselo junto con el DMG al realizar un ataque.
int dameLvl();
[ "public Personaje(String nombre){\r\n this.nombre = nombre;\r\n nivel = 1;\r\n }", "private static TipoNivel calculaNovoNivel(Integer xp) {\r\n\tif (xp >= XP_SENIOR_TO_MASTER) {\r\n\t return TipoNivel.MASTER;\r\n\t} else if (xp >= XP_PLENO_TO_SENIOR) {\r\n\t return TipoNivel.SENIOR;\r\n\t} ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface CHANGE roomUrl TO YOUR DAILY DOMAIN EX:
private void joinRoom() { mWebView.evaluateJavascript( "userName='" + mUserName + "_" + Participant.LISTENER_TAG + "';" + "roomUrl='https://devrel.daily.co/" + mRoomName + "';" + "(async() => {" + "roomName = '" + mRoomName ...
[ "public interface UC {\n String BASE_URL = \"https://news-at.zhihu.com/\";\n String VERSION_URL = \"https://news-at.zhihu.com/api/4/version/android/2.3.0\";\n String LATEST_URL = \"https://news-at.zhihu.com/api/4/news/latest\";\n String BEFORE_URL = \"https://news-at.zhihu.com/api/4/news/before/20131119...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rotate 90 degree, 0no rotate, 1rotate
@ReactMethod public void rotate(int rotate, final Promise promise) { if(adapter.printData(PrinterCommand.POS_Set_Rotate(rotate))){ promise.resolve(null); }else{ promise.reject("COMMAND_NOT_SEND"); } }
[ "public void rotate(Rotation rotation_);", "public void rotate270(){\n rotate180();\n rotate90();\n }", "void rotate(RotationBaseMatrix rotationMatrix);", "public void leftRotation();", "@Override\n public void reRotate() {\n }", "@Override\n\tpublic void rotate() {\n\t\tif(pos == R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public byte mo3631d() { return this.f4100d; }
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Image definitions for the start and end scope icons
protected Element getStartEndImageDef(SVGDocument doc, String imgPath, int imgXLeft, int imgYTop, int imgWidth, int imgHeight, String id) { Element group = null; group = doc.createElementNS(SVGNamespace.SVG_NAMESPACE, "g"); //Get the id of the activity ...
[ "@Source(\"control_end.png\")\n\tImageResource controlEnd();", "@Source(\"control_end_blue.png\")\n\tImageResource controlEndBlue();", "public interface ISharedImages {\n\n\t//ELCL\n\t/**\n\t * Default script image\n\t */\n\tpublic static final String IMG_SCRIPT = \"IMG_SCRIPT\";\n\t\n\t/**\n\t * Image for a lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sys_log
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode()); result = prime * result + ((getMenuCode() == null) ? 0 : getMenuCode().hashCode()); result = prime * result + ((getUserId() ==...
[ "@Override\r\n\tpublic List<LogBean> queryLog() {\n\t\treturn (List<LogBean>) DBUtil.select(\"select * from tb_log order by tb_log.logDate desc\", LogBean.class);\r\n\t}", "@Insert({\n \"insert into `trade_order_log` (log_id, order_no, \",\n \"guide_id, guide_name, \",\n \"log_type, op_type, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds a protocolspecific Id.Distance given the source data.
public Id.Distance buildIdDistance(byte[] material);
[ "StringDistance build();", "DistanceLiteral createDistanceLiteral();", "public DistanceAlgorithm getDistanceAlgorithm();", "private ArrayList<Long> legDistances () {\n ArrayList<Long> dist = new ArrayList<>();\n if (places == null) {\n return dist;\n } // if places is empty return dist...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a conversation from the local DB based on the conversation id.
public static ConversationListItemData getExistingConversation(final DatabaseWrapper dbWrapper, final String conversationId) { ConversationListItemData conversation = null; // Look for an existing conversation in the db with this conversation id Cursor cursor = null; try { ...
[ "@Override\n public ChatConversationBase getConversation(String conversationId) {\n try {\n checkState();\n // Find conversation with given conversationId and adapt it for the SDK\n return DBConversation.adapt(realm.where(DBConversation.class).equalTo(DBConversation.CONVER...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new user change muted event.
public UserChangeMutedEventImpl(long userId, Server server, boolean newMuted, boolean oldMuted) { super(userId, server); this.newMuted = newMuted; this.oldMuted = oldMuted; }
[ "void setMuted(User user, boolean muted);", "public UserChangeMutedEventImpl(Member newMember, Member oldMember) {\n super(newMember.getUser(), newMember.getServer());\n this.newMember = newMember;\n this.oldMember = oldMember;\n }", "public void onRemoteUserVideoMuted(int uid, boolean m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { try{ DecimalFormat formatter = new DecimalFormat("00"); String ExDelTime = formatter.format(hourOfDay)+":"+formatter.format(minute); ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column DATAV_COMPONENT.OWNER_ID
public void setOwnerId(String ownerId) { this.ownerId = ownerId == null ? null : ownerId.trim(); }
[ "public void setIdOwner(int idOwner) {\n\t\tthis.idOwner = idOwner;\n\t}", "public void setOwnerEntityId(long value) {\n this.ownerEntityId = value;\n }", "public void setOwner(entity.APDAttribute value);", "public void setOwnerValue(String theOwnerValue)\n {\n ownerValue = theOwnerValue;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
xoa 1 phan tu
public void remove(int index) { for (int i = index; i < elements.length - 1; i++) { elements[i] = elements[i + 1]; } elements[elements.length - 1] = null; }
[ "public static void main(String[] args) {\n\t\tSystem.out.println(\"=======================BÀI 21=======================\\n\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t int sothapphan;\r\n\t\t \tSystem.out.print(\"so thap phan = \");\r\n\t\t\tsothapphan=sc.nextInt();\r\n\t\t\t\r\n\t\t System.out.print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get suggestions based on partial game mode name.
@Override public Set<String> getSuggestions(String partial) { Set<String> result = new HashSet<>(); partial = partial.toLowerCase(); for (GameMode gameMode : GameMode.values()) { if (gameMode.name().toLowerCase().startsWith(partial)) { result.add(gameMode.name().t...
[ "List<String> getSuggestions(String query);", "public List <String> getSuggestions()\n {\n // Get speller, create suggestion set and fill with suggestions\n// SpellingSession speller = getSpeller();\n// SuggestionSet set = new SuggestionSet(8);\n// speller.suggest(getString(), Spell...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Store instance variables based on arguments passed
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }
[ "private void initVars () {\n\t\tpawn = new Pawn(this);\n\t\tknight = new Knight(this);\n\t\tbishop = new Bishop(this);\n\t\trook = new Rook(this);\n\t\tqueen = new Queen(this);\n\t\tking = new King(this);\n\t\t\n\t\tmoveHistory = new OldPosition();\n\t}", "public static void main(String[] args) {\n\t\n\tString n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleRegularEventSpec" $ANTLR start "ruleRegularEventSpec" ../org.yakindu.sct.model.stext/srcgen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2086:1: ruleRegularEventSpec returns [EObject current=null] : ( (lv_event_0_0= ruleFeatureCall ) ) ;
public final EObject ruleRegularEventSpec() throws RecognitionException { EObject current = null; EObject lv_event_0_0 = null; enterRule(); try { // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2089...
[ "public final void entryRuleRegularEventSpec() throws RecognitionException {\n try {\n // ../org.yakindu.sct.statechart.expressions.ui/src-gen/org/yakindu/sct/statechart/ui/contentassist/antlr/internal/InternalExpressions.g:917:1: ( ruleRegularEventSpec EOF )\n // ../org.yakindu.sct.sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draw the plot (do not override lightly)
default void drawPlot(@NonNull Plot plot) { plot.updateBounds(this); // Background plot.canvas.drawColor(plot.options.background_color); // Draw grid lines plot.axes.drawGridlines(); // Draw the layers synchronized (plot.layers) { for (ChartLayer la...
[ "public void draw_analog_graph()\n{\n //plot1.activatePanning();\n plot1.beginDraw(); \n plot1.setDim(plot1_width_in_percent, plot1_height_in_percent);\n plot1.setPos(plot1_x, plot1_y);\n plot1.drawBackground();\n plot1.drawBox();\n plot1.drawXAxis(); \n plot1.setPoints(ecg_analog_voltage_data_layer, \"la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public SysRole queryById(String roleId) { return roleMapper.selectByPrimaryKey(roleId); }
[ "@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" ] ] } }
int32 AutoDownloadCellularMusic = 23;
public int getAutoDownloadCellularMusic() { return autoDownloadCellularMusic_; }
[ "int getAutoDownloadCellularMusic();", "public static void m916byte() {\n try {\n File file = new File(f.aa + \"/config.dat\");\n if (file.exists()) {\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n if (randomAccessFile.readBoo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
loadNewConfiguration() Loads a new configuration text file and loads it into an array that builds an object that holds the components. For example, this is how we know what area has a light, switch, etc.
public void loadNewConfiguration(String configFileName, GraphicsContext gcDraw) { trackLines.clear(); try { // Check for if the file loaded is a text file if(configFileName.endsWith(".txt")) { InputStream inputFile = getClass().getResourceA...
[ "public void loadConfig() {\r\n BufferedReader br = null;\r\n try {\r\n File file = new File(\"_CONFIG_.txt\");\r\n br = new BufferedReader(new FileReader(file));\r\n this.boardData = new int[12];\r\n for (int i = 0; i < 12; i++) {\r\n this.boardData[i] = Integer.valueOf( br.readLin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ function for nth Fibonacci number
int fib(int n) { if (lookup[n] == NIL) { if (n <= 1) lookup[n] = n; else lookup[n] = fib(n-1) + fib(n-2); } return lookup[n]; }
[ "private int fibonacci(int n) {\n\t\tint a = 0;\n\t\tint b = 1;\n\t\tint result = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tresult = a + b;\n\t\t\ta = b;\n\t\t\tb = result;\n\t\t}\n\t\treturn result;\n\t}", "private double recFibonacci(int n) {\n if (n <= 1)\n return n;\n else\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the data pagination (will be applied pagination if searching data)
public PagingDto<T> getData() { if (this.pagination != null && this.data != null) { this.data.setPagination(this.pagination.getPagination()); } return this.data; }
[ "public List<T> getByPage(Integer currentPage, Integer pageSize);", "public List<productDTO> paging(int current, int cntPerPage) throws Exception;", "Pagination<User> getAllInRange(int currentPage, int itemsPerPage);", "public Page getMetaDatas(int page, int recordPerPage);", "public int getPageSize() { ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch the connection parameters from the build properties file
protected ConnectionParameters getParameters() { final String type = System.getProperty( "database.type" ); assertNotNull( "Checking database.type", type ); final String driver = System.getProperty( "jdbc.driver" ); assertNotNull( "Checking JDBC driver", driver ); final String url = System.getPr...
[ "private void getProperties() throws IOException{\r\n\t\tLoadConfig prop = LoadConfig.getInstance() ;\r\n\t\tDriverClass= prop.getConfigurationValue(DriverClass, \"Noclass\");\r\n\t\tDBURL = prop.getConfigurationValue(DBURL, \"NoURL\");\r\n\t\tDBUserName=prop.getConfigurationValue(DBUserName, \"NoName\");\r\n\t\tD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .WeSketchEventType_PB event_type = 1;
boolean hasEventType();
[ "int IEE_MentalCommandEventGetType(Pointer hEvent);", "private void setEventTypeBytes(ByteString byteString) {\n if (byteString != null) {\n this.bitField0_ |= 2;\n this.eventType_ = byteString.toStringUtf8();\n return;\n }\n throw new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.rogers.ute.autoreg.generated
public ObjectFactory() { }
[ "public static GeneratedFactory init() {\r\n\t\ttry {\r\n\t\t\tGeneratedFactory theGeneratedFactory = (GeneratedFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://net.sf.parteg.base.runtime.generated\"); \r\n\t\t\tif (theGeneratedFactory != null) {\r\n\t\t\t\treturn theGeneratedFactory;\r\n\t\t\t}\r\n\t\t}\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test retrieval of expected users with method getUserByEmail.
@Test public void testUsers() { assertEquals(users.length, pacemaker.getUsers().size()); for (User user : users) { User eachUser = pacemaker.getUserByEmail(user.email); assertEquals(user, eachUser); assertNotSame(user, eachUser); } }
[ "@Test\n public void testGetUserByEmail() {\n\n // create a test user\n IdpUser testUser = new IdpUser();\n testUser.setName(RandomStringUtils.randomAlphanumeric(32));\n testUser.setEmail(RandomStringUtils.randomAlphanumeric(32));\n testUser.setPassword(RandomStringUtils.random...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void widgetDefaultSelected(SelectionEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create one application ID with app's id and url
public abstract String makeApplicationId(String id, String msUrl);
[ "public abstract String makeApplicationId(int organization, int applicationid);", "PasswordApplicationEntity createApplication(String name, String url);", "public Builder setAppid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }