query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Test of getPossibleMoves method, of class King. | @Test
public void testGetPossibleMovesWhiteOneSquareCheckedAndCapture() {
System.out.println("King: getPossibleMoves, white, one square checked and capture");
char[][] newboard = {
{' ', 'n', 'b', 'q', 'k', 'b', 'n', ' '},
{'p', 'p', ' ', 'p', 'p', 'p', 'p', 'p'},
{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},... | [
"@Override\r\n\tpublic void getLegalMoves() {\r\n\t\tint kingX = this.getX();\r\n\t\tint kingY = this.getY();\r\n\t\tchar kingColor = this.getColor();\r\n\t\tTile[][] chessBoard = SimpleChess.getChessBoard();\r\n\t\tfor (int y = (kingY-1) ; y <= (kingY + 1) ; y++) {\r\n\t\t\tfor (int x = (kingX - 1) ; x <= (kingX +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public User login(String username, String password) throws SQLException, ClassNotFoundException {
try{
String pass=checkPassword(username,password);
int userId=jdbctemplate.queryForObject(LOGIN_MEMBER,new Object[]{username,pass},Integer.class);
String active=jdbctemplate.queryForObject(RETREIVE_... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Output Set' containment reference. If the meaning of the 'Output Set' containment reference isn't clear, there really should be more of a description here... | OutputSet getOutputSet(); | [
"public Output<T> outputValues() {\n return outputValues;\n }",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.SetOutputDocument.SetOutput addNewSetOutput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a nested list of UOMs. For example: [2 Bottle Each make 1 Mini Case, [6 Mini Case make 1 Inner Case, [4 Inner Case make 1 Case, [1 Case make 1 TOPLEVELUOM, ]]]] | public String toString(){
String top = "TOP-LEVEL-UOM";
return "[" + this.getFactor() + " " + this.getName() + " make 1 " +
(this.getParent() == null?top:(this.getParent().getName())) + ", " +
(this.getParent() == null?"":(this.getParent().toString())) + "]";
} | [
"@Override\r\n\tpublic List<Uom> getAllUom() {\n\t\tList<Uom> list = ht.loadAll(Uom.class);\r\n\t\treturn list;\r\n\t}",
"public List<EntityUOM> getAllUOMs()\n {\n Session session = HibernateUtil.getInstance().getSession(this.appId);\n try \n {\n Query<EntityUOM> query = session... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get method for field mipmapMode[vkenum] Prototype: VkSamplerMipmapMode mipmapMode | public VkSamplerMipmapMode mipmapMode(){
int nativeVal = getMipmapMode0(super.ptr);
this.mipmapMode = VkSamplerMipmapMode.fromValue(nativeVal);
return this.mipmapMode;
} | [
"@NotNull\n @Generated\n @Selector(\"textureCubeMap\")\n public native GLKEffectPropertyTexture textureCubeMap();",
"public GLTexture generateMipmap() {\n syncUpload();\n new GenerateMipmapTask().glRun(this.getThread());\n return this;\n }",
"private TextureUnit getBumpMapTextur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the entitlementAttributes value for this UpdateSimpleEntitlementDataType. | public com.flexnet.operations.webservices.AttributeDescriptorDataType getEntitlementAttributes() {
return entitlementAttributes;
} | [
"public java.util.List<String> getAutoVerifiedAttributes() {\n return autoVerifiedAttributes;\n }",
"public Array getAttributes() {\n return (Array) getAttributeInternal(ATTRIBUTES);\n }",
"public Integer getEntitlementTotal() {\n Integer result = 0;\n for (StrataPropertyBean b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Keep the session up | public static void heartbeat() {
/*
* touch the user data path to prevent to make it evicted
*/
File file =getUserTempPath(false);
if( file != null && file.exists() ) {
long now = System.currentTimeMillis();
file.setLastModified(now);
file.getParentFile().setLastModified(now); // <-- also ... | [
"void maintainSession();",
"protected static void endSession() {\n getInstance().mIsStarted = false;\n getInstance().mHasIdentity = false;\n }",
"private void continueSession()\n {\n gameOver = false;\n run();\n }",
"public void setKeepOnSession(boolean keep) {\r\n\t\t_kee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the least key strictly greater than the given key, or null if there is no such key. | public synchronized TreeEntry<K, V> higherEntry(final K key) {
// Retorna la clave mas cercana mayor a la clave indicada
return getRoundEntry(key, true, false);
} | [
"public Entry<K,V> higherEntry(K key);",
"public String biggerThan(K key){\n\t\tif(this.root == null){\n\t\t\treturn \"\";\n\t\t}\n\t\treturn this.biggerThan(key, this.root);\n\t}",
"public String floor(final String key) {\n int i = rank(key);\n if (keys[i].equals(key)) {\n return keys[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the list of photos belonging to the user | public ArrayList<Photo> getPhotos(){
ArrayList<Photo> photos = new ArrayList<Photo>();
for(Album a: albumList)
{
photos.addAll(a.getPhotos());
}
return photos;
} | [
"public ArrayList<photo> getUserPhotos();",
"List<UserImage> getPhotographImages(User owner);",
"@GET(\"account/{account_id}/photos\")\n Call<List<Photo>> getPageOfPhotosForAccount(@Path(\"account_id\") int userId);",
"List<UserImage> getOwnerImages(long ownerId, Long imageId);",
"public LiveData<List<Up... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the cell to which a point belongs. If the returned cell is a leaf node the points belongs to the interior of the node, if the cell is an internal node the points belongs to the node cut subhyperplane. | public BSPTree<S> getCell(final Point<S> point, final double tolerance) {
if (cut == null) {
return this;
}
// position of the point with respect to the cut hyperplane
final double offset = cut.getHyperplane().getOffset(point);
if (FastMath.abs(offset) < tolerance)... | [
"Coord getCoord(K cell);",
"K getCellAt(Coord coordinate);",
"public Cell getCell(Point p) {\n return internalJungle[p.x][p.y];\n }",
"Cell getCellAt(int x, int y);",
"public Polygon getCell() {\n return cell;\n }",
"Component getNeighborCell(Direction p_dir);",
"public OctreeCell lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. The entities to be written. Up to 100,000 feature values can be written across all `payloads`. repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; | @java.lang.Override
public int getPayloadsCount() {
return payloads_.size();
} | [
"public abstract List<EventType> save(Iterable<EventType> entities);",
"public <T> void batchSave(List<T> entitys) {\n\t\t\r\n\t}",
"private void writeMapOfEntities() {\r\n\r\n\t\tString outputFileName = \"storageEntity.ser\";\r\n\t\ttry {\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(inputFolder + o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first cscl appointment master in the ordered set where appointee = &63;. | public CsclAppointmentMaster findByappointee_First(
int appointee,
com.liferay.portal.kernel.util.OrderByComparator
<CsclAppointmentMaster> orderByComparator)
throws NoSuchCsclAppointmentMasterException; | [
"Long getEarliestEntry();",
"public abstract Application getFirstApplication(FlatSubsumption sub, Assignment assign);",
"public Applicant peekFront() {\n\t\treturn ApplicationList[front];\n\t}",
"public Customer peekFirstInLine(){\r\n\t\t\r\n\t\treturn serverQueu.first();\r\n\t\t\r\n\t}",
"public Cursor fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return a file containing all unique topics detected and the frequency for each sentiment in said topics | public void topicStats() throws IOException {
HashMap<String, HashMap<String, Integer>> topicStats = new HashMap<String, HashMap<String, Integer>>();
// iterate through every document/tweet in mongo and for each topic found, update its respective sentiment's count number
FindIterable<Document> iterable = mo... | [
"public static void tokenize_and_count_frequent_in_docs(){\n\t\tTextFileFilter fileFilter = new TextFileFilter(TokenizerOptions.TEXT_FILE_EXTENSION);\n\t\tFile inputDirFile = new File(NEWS_DATA_FOLDER);\n\t\t\n\t\t// get the current dir \n\t\tString currentDir = new File(\".\").getAbsolutePath();\n\t\tString output... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Project opening status. .yandex.cloud.datasphere.v2.OpenProjectMetadata.OpenProjectStatus status = 2; | public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
} | [
"@Override\n\tpublic int getStatus() {\n\t\treturn _projectActivity.getStatus();\n\t}",
"@Test\n public void testGetOpenProjectAndName() {\n System.out.println(\"getOpenProjectAndName\");\n Simulator instance = new Simulator();\n assertTrue(\"Result should be false\", instance.getOpenProje... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setting the hints based on information | public void run() {
System.out.println(billInfo.getFirstName());
firstName.setHint(billInfo.getFirstName());
lastName.setHint(billInfo.getLastName());
email.setHint(billInfo.getEmail());
address.setHint(billInfo.getAdress());
creditCardNumber.setHint(numberHider(billInfo
.get... | [
"public void setHints(int a_hints) {\n }",
"void applyHint(int hintNumber);",
"public void setHint(String hint)\n\t{\n\t\tthis.hint=hint;\n\t}",
"public void updateHints() {\n\t\tList<Hint> hints = this.board.getHints();\n\t\tList<Point> absoluteHintLocations = new LinkedList<Point>();\n\n\t\tfor (Hint h : h... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: androidx.lifecycle.n / compiled from: Observer | public interface C0978n<T> {
/* renamed from: a */
void mo5003a(T t);
} | [
"public interface Observer {\n\n\t/**\n\t * Register with the observable\n\t */\n\tpublic void register();\n\n\t/**\n\t * Method called by the observable objects that their data has changes\n\t */\n\tpublic void notifyChange();\n}",
"public interface Observer {\n\n public void update();\n}",
"public interfac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
11. Reduced Book Write a program that prints information (title, edition type, age restriction and price) for a book by given title. When retrieving the book information select only those fields and do NOT include any other information in the returned result. | @Override
public List<String> getAllBooksByTitle(String title) {
return this.bookRepository.findAllByTitleEquals(title)
.stream()
.map(b -> String.format("%s - %s - %s - %.2f", b.getTitle(), b.getEditionType(), b.getAgeRestriction(), b.getPrice()))
.collect(Co... | [
"public void printBooksByCriteria() {\n Map<String, Object> params = new HashMap();\n String title;\n Date releaseDate = null;\n Long numero = null;\n Long pageCount = null;\n Boolean b, c, d;\n System.out.println(CLI_PROMPT_TITLE_FIELD);\n title = readString(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delegator method to obtain the list of unresolved method calls. | protected Hashtable<FamixMethod, List<UnresolvedMethodInvocation>> getUnresolvedCalls() {
return getCrawler().getUnresolvedCalls();
} | [
"public Collection<MethodReference> getAnalyzableMethods() {\n\t\treturn provider.getMethodPovider().getAllMethodReferences();\n\t}",
"public HashMap<String, Long> getMethodCalls() {\n return this.methodCalls;\n }",
"public void removeAllCallMethod()\n {\n _callMethodList.removeAllElements()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
KEYIN and VALUEIN are datatypes that must agree with KEYOUT and VALUEOUT of the MAP class KEYOUT and VALUEOUT are datatypes that may be of any type (dictated by the program's logic) add exception if needed | public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, IntWritable> output, Reporter report) throws IOException{
int count = 0; //Counts the number of points in the cluster
ArrayList<String> list = new ArrayList<String>();
int numIter = 0;
try{
numIter = getIterCount()... | [
"public interface ValueMap extends Map<String, Object>, ValueSource {\n\n public String getString(String key);\n\n public boolean getBoolean(String key);\n\n public byte getByte(String key);\n\n public char getChar(String key);\n\n public int getInt(String key);\n\n public long getLong(String key)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(private!) Constructor, creates a new object model and send it to the start station | private TheObject(String label, ArrayList<String> stationsToGo,ArrayList<String> fillStationsToGo, int processtime, int speed, int capacity, int xPos, int yPos, String image) {
super(label, xPos, yPos);
//create the view
this.theView = TheObjectView.create(label, image, xPos, yPos);
Th... | [
"public ServerModel(){\n\n\t}",
"private void initNewModel()\n \t{\n \t\tDVModel model = new DVModel(\"Untitled Model\");\n \t\tmodel.addGroup(new DVGroup(\"Data Channels\"));\n \t\tsetModel(model);\n \t}",
"public ObxAvroModel() {}",
"public void newModel(){\n\t//\tSystem.out.println(\"Creating new model wit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void add(String object) {
super.add(": > "+object);
} | [
"@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 MUC jid of the participant in the form of | public Jid getJid() {
return jid;
} | [
"public java.lang.String getJid() {\n java.lang.Object ref = jid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the genre list | public int getSize()
{
return m_genreList.size();
} | [
"@Override\r\n\tpublic int getNumberOfMovies() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint size = 0;\r\n\r\n\t\t// first checks genres sizes to see how many genres are there, uses this to find number of movies\r\n\t\t// with all of those genres\r\n\t\tif (genres != null && genres.size() != 0) {\r\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cached copy of words | public ReportListAdapter(Context ctxt, OnItemClickListener listener1) {
this.ctxt = ctxt;
this.listener = listener1;
mInflater = LayoutInflater.from(ctxt);
} | [
"public void cacheIncrementalNoiseWords(){\n\t\ttry {\n\t\t\t// Code from db\n\t\t\tList<NoiseWordEntity> noiseWordEntityList = noiseWordRepo.getIncrementalNoiseWords();\n\t\t\tif (noiseWordEntityList != null && noiseWordEntityList.size() > 0)\n\t\t\t\tfor (NoiseWordEntity noiseWordEntity : noiseWordEntityList) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
start_time is a start date time of the inflation period .google.protobuf.Timestamp start_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:&92;"start_time&92;"", (.gogoproto.stdtime) = true]; | private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ = new com.google.protobuf.SingleFieldBuil... | [
"Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getStartAtOrBuilder();",
"public void setStart_time(String start_time) {\n this.start_time = start_time;\n }",
"public void setStart(Time start) {\n this.start = start;\n }",
"@JsonSetter(\"_start\")\n public Annotations.Build... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Permission granted start beacon finding | @Override
public void run() {
final BroadcastReceiver beaconBr = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Constants.BEACON_SCAN_ACTIVITY_TAG)) {
... | [
"private void startLocationPermissionRequest() {\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_PERMISSIONS_REQUEST_CODE);\n }",
"private void requestPermission()\n {\n ActivityCompat.requestPermissions(this, new String[]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static boolean paymentSubmit(String bookid, String uname) throws BookException {
boolean insertStatus = false;
try {
checkConnection();
Statement stmt = connection.createStatement();
String query = "INSERT into books_borrow(book_id,uname) values('" + bookid + "','"
+ uname +"'"+ ");";
int ... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get information from form | public void onChangeClick(final View view){
EditText email_o = (EditText) findViewById(R.id.editTextEmail);
EditText password_n = (EditText) findViewById(R.id.editTextPassword);
EditText password_n_r = (EditText) findViewById(R.id.editTextRepeatPassword);
String email_v= email_o.getText... | [
"private void getFromForm(){\n aluno.setNome(entNome.getText());\n aluno.setAnoIngresso(entAnoIngresso.getText());\n \n aluno.setEndereco(endereco.getEndereco());\n }",
"protected void readForm() {\n this.davkaText = this.davkaTextField.getString();\n }",
"protected Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ line2D class is a abstract class, so you need to use Line2D.Double, Line2D.Float if you want to make it instance. | public GELine() {
// line = new Line2D.Double();
super(new Line2D.Double());
} | [
"public Line2D(Line2D<T> line)\n { setLine(line); }",
"public Line2D(Line2D line){\n this(line.x,line.y,line.w);\n }",
"public Line (float x1, float y1, float x2, float y2)\n {\n set(x1, y1, x2, y2);\n }",
"public Line (double x1,double y1, double x2, double y2){\n this.sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if it is even or odd | public boolean checkDegree() {
int odd = 0;
for (int i = 0; i < getSize(); i++) {
Vertex v = (Vertex) vertexList.get(i);
if ((v.getDegree() % 2) != 0) {
odd++;
}
}
return (odd == 2 || odd == 0);
} | [
"public boolean isEven() {\n return value%2==0;\n }",
"public PerformOperation isOdd() {\r\n\t\treturn integer -> integer % 2;\r\n\t}",
"public static boolean isEven( int num )\r\n {\n return ((num % 2) == 0 );\r\n \r\n }",
"public boolean isOdd(){\n return value % 2 != 0;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test toKey when passed a Bdm with a null key. | @Test
public void toKeyNullKey() {
BdmDocument bdmDocument = new BdmDocument();
Assert.assertEquals("0", bdmDocument.toKey(new Bdm()));
} | [
"private void checkNullKey(String key)\r\n/* 145: */ {\r\n/* 146: 271 */ if (key == null) {\r\n/* 147: 272 */ throw new IllegalArgumentException(\"null key\");\r\n/* 148: */ }\r\n/* 149: */ }",
"@Test\n public void testHasKey_null() {\n System.out.println(\"testHasKey_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Type your code here | public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int as = in.nextInt();
int arr[] = new int[as];
for (int i = 0; i< as; i++)
{
arr[i] = in.nextInt();
}
threepairs(as, arr);
} | [
"public static void main(String[] args){\r\n \r\n/* We use package,class and turn on methods,If we would like to execute codes in Java we should get used to create class,\r\npackage,methods.We are typing codes in methods,and methods should be in class and classes should be in package \r\nrespectively */\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the contentStoragePolicy property: Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. . | public StreamingJobPropertiesInner withContentStoragePolicy(ContentStoragePolicy contentStoragePolicy) {
this.contentStoragePolicy = contentStoragePolicy;
return this;
} | [
"HeaderResponse setBucketStoragePolicy(String bucketName, BucketStoragePolicyConfiguration bucketStorage)\n throws ObsException;",
"public void setStorage_path(String storage_path) {\n this.storage_path = storage_path;\n }",
"void changeStorage(String storagePath);",
"public void SetStora... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and returns a new EngineConfigurationFactory. If a factory cannot be created, return 'null'. The factory may return nonNULL only if: it knows what to do with the param (param instanceof ServletContext) it can find it's configuration information | public static EngineConfigurationFactory newFactory(Object param) {
/**
* Default, let this one go through if we find a ServletContext.
*
* The REAL reason we are not trying to make any decision here is because it's
* impossible (without refactoring FileProvider) to determine if a *.wsdd file
* ... | [
"public static ParamFactory init() {\r\n\t\ttry {\r\n\t\t\tParamFactory theParamFactory = (ParamFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://param/1.0\"); \r\n\t\t\tif (theParamFactory != null) {\r\n\t\t\t\treturn theParamFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Generatres a random number, checks to see if an answer is already stored in that position of the array | private int generateAns(){
int i;
i = rand.generateInt(0, 4);
if (usedAns[i] == false){
usedAns[i] = true;
return i;
}
return generateAns();
} | [
"private void randomizePieces() {\n Random randomizer = new Random();\n int num;\n int q;\n \n\n for(q = 0; q < 8; q++) {\n do{\n //num generated is >= 0 or <= 7, since nextInt() is exclusive of upper bound\n num = randomizer.nextInt(8);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes an instance of IntegrationRuntimeCredentialsClientImpl. | IntegrationRuntimeCredentialsClientImpl(SynapseManagementClientImpl client) {
this.service =
RestProxy
.create(
IntegrationRuntimeCredentialsService.class,
client.getHttpPipeline(),
client.getSerializerAdapter());
th... | [
"private void initClient() throws AuthenticationException {\n if (gsaClient == null) {\n gsaClient = new GsaClient(optionMap.get(\"protocol\"), \n optionMap.get(\"hostname\"), \n Integer.parseInt(optionMap.get(\"port\")), \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main constructor that will create CountingServer. | public CountingServer() {
ServerSocket service = null;
try {
service = new ServerSocket(8000);
Socket socket;
DataOutputStream output;
while(true) {
socket = service.accept();
writeToFile(... | [
"public static void main(String[] args) {\n //call the constructor (to create the server)\n new CountServer();\n }",
"public MainServer() {}",
"public Server() {\n m_port = Datchat.DEFAULT_PORT;\n m_clientThreads = new ArrayList<>();\n m_listeners = new ArrayList<>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from the list selection handler when a particular view is selected. | private void loadViewFields(FsView selectedView) {
// clear View Details (i.e. view fields) ARL
vFieldsModel.removeAll();
ArrayList vFields = (ArrayList)allViewFieldMap
.get(selectedView.getName());
if (null != vFields && !vF... | [
"@Override\r\n\t\t\tpublic void onSelected(int paramInt) {\n\t\t\t\tprepareOtherViews(paramInt);\r\n\t\t\t}",
"@Override\n public void onListItemSelected(final View view) {\n RouteViewModel routeViewModel = (RouteViewModel) view.getTag();\n this.listener.onRouteListItemSelected(routeViewModel);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRES: Book, books, are nonnull MODIFIES: books EFFECTS: allows user to manage its book list until quit is entered Catch DuplicateBook, UnavailableBok, and BookNotFoundException in this method | private void manageAccount() throws IOException {
String accountOption = "";
while (!accountOption.equals("quit")) {
printAccountOptions();
accountOption= input.next();
try {
userChoices(accountOption);
} /*catch (DuplicateBookException e) ... | [
"private static void borrowBooks(String bTitle) {\n listBooks();\n\n // input the book you wanna borrow\n for (Books book : libBooks) {\n if (bTitle.equals(book.getTitle())) {\n //change the status of the book\n book.setBorrowed(\"borrowed\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. / renamed from: a | private void m11221a(com.facebook.p138c.C2918d<T> r3, boolean r4) {
/*
r2 = this;
r0 = 0;
monitor-enter(r2);
r1 = r2.f12874c; Catch:{ all -> 0x001b }
if (r3 != r1) goto L_0x000a;
L_0x0006:
r1 = r2.f12875d; Catch:{ all -> 0x001b }
if (r3 != r1) goto L... | [
"static void method_571() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_921() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void mo4791d() {\n }",
"static void method_5455() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_6601() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public IHotel setTelephone(String telephone) {
return this;
} | [
"@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"
]
]
}
} |
Transforms one ore more data tables into another data table | public TempTable transform(TempTable ... tables); | [
"public void migrate(Dataset<GenericRecord> src, FlattenedSchema dst) {\n dst.open();\n try {\n for (GenericRecord record : src.newReader()) {\n writeRecord(record, dst);\n }\n } finally {\n dst.close();\n }\n }",
"Table joinTables(Table tableObject1, String attribute1, Table ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a component context from the component definition. | public abstract ComponentContext createContext() throws MalformedNetworkException; | [
"ComponentModel createComponentModel( ComponentContext context )\n throws ModelException;",
"public ComponentContext() {\n super();\n }",
"public final Context createContext( final Object componentEntry )\n throws Exception\n {\n return createContextImpl( new HashMap() );\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the "id" need. | void deleteNeed(Long id); | [
"@Override\r\n\tpublic void del(String id) {\n\t\t\r\n\t}",
"public static void delete(long id) {\n\t\t\n\t}",
"public void delete(Integer id) {\n\t}",
"@Override\n\t\tpublic void delete(Long id) {\n\t\t\t\n\t\t}",
"public void delete(String id) {\n\t\t\r\n\t}",
"@Override\n\tpublic void del(Object id) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of unmarshal method Packs a Pdu into the ByteBuffer. | public void marshal(java.nio.ByteBuffer buff)
{
buff.put( (byte)recordType);
buff.put( (byte)changeIndicator);
buff.put( (byte)associationStatus);
buff.put( (byte)associationType);
entityID.marshal(buff);
buff.putShort( (short)owsSttionLocation);
buff.putShort( (short)ph... | [
"public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = (byte) this.dataType;\n }",
"public synchronized int pack(ByteBuffer dataOut) throws Exception {\n if (dataOut.remaining() < getNumBytes())\n throw new Exception(\"Not enough bytes in ByteBuffer to pac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For all packages, find all sources belonging to the package, group the sources based on their transformers and apply the transformers on each source code group. | private boolean perform(File outputDir, Map<String,Transformer> suffixRules)
{
boolean rc = true;
// Group sources based on transforms. A source file can only belong to a single transform.
Map<Transformer,Map<String,Set<URI>>> groupedSources = new HashMap<Transformer,Map<String,Set<URI>>>();... | [
"public List< String > transform(\r\n\t\t\tfinal AbstractTestSuite suite,\r\n\t\t\tfinal String baseOutputDirectory,\r\n\t\t\tfinal String mainClass,\r\n\t\t\tfinal String packageName,\r\n\t\t\tfinal int timeoutToBeVisibleInMS\r\n\t\t\t) throws TransformException {\n\t\t// Generates folders according to the package... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor untuk simpan data untuk ditampilkan | public Pengguna(String User, String Name, String Username, String Email) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
} | [
"public Data() { \n taodulieu();\n }",
"public Data(){\n _id = 0;\n _name = \"\";\n }",
"Data() {\n dia = 1;\n mes = 1;\n ano = 1970;\n }",
"public Data() {\r\n\t\r\n}",
"MyData()\n\t {\n\t }",
"public WeatherData() {\n\t}",
"@Override\n\tpublic void init... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles availabilityservice element additions. | public void handleCreate(AvailabilityServiceEvent event)
throws AdminEventListenerException {
//no-op
System.out.println("handleCreate: event = " + event);
} | [
"@Override\n\tpublic void serviceAvailable(String serviceName, long time, boolean available) {\n\n\t}",
"protected void notifyOfServiceAvailabilityChange() {\n if (listenerMap != null) {\n Iterator<Object> it = listenerMap.values().iterator();\n HashSet notified = new HashSet();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancels a request with a cause. Not currently exposed through API. | abstract void cancel(IOException cause); | [
"void cancel(String requestId);",
"public void cancel() {\n RequestsExecutor.getInstance().cancel(this);\n }",
"public void requestCanceled() {\n this.requestCanceled = true;\n this.context.requestCancelled();\n }",
"void cancelRequest() {\n com.microsoft.identity.common.inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance. | PagedIterable<AzureBareMetalInstance> listByResourceGroup(String resourceGroupName, Context context); | [
"@GetMapping\n @PreAuthorize(READ_INSTANCES)\n public List<InstanceRepresentation> getInstances() {\n return instanceService.findAll();\n }",
"public List<Instance> getInstances();",
"@RequestMapping(method = RequestMethod.GET)\n @HystrixCommand(fallbackMethod = \"getAllProductsFallback\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create or update entities with parameters necessary for import process without commit. Caller will have to do take care of commit. | EntityMutationResponse createOrUpdateForImportNoCommit(EntityStream entityStream) throws AtlasBaseException; | [
"private void createNewEntities(TransactionContext context) {\n try (ClosableLock ignored = entityStore.lockEntityCreation()) {\n generateNewEntityIds(context);\n applyNewEntityComponents(context);\n }\n }",
"public void createStartupEntitiesIfNeed() throws Exception {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the enabled or the active property is changed. Notify the CPU that this interrupt require attention. | protected final void checkReady() throws SIMException
{
for (int i = mgrs.getSize() ; --i >= 0 ;)
mgrs.get(i).notifyInterrupt(this);
} | [
"protected void enabledUpdated() {\n boolean enabled = isEnabled();\n if (hasChanged(oldEnabled, enabled)) {\n oldEnabled = enabled;\n firePropertyChange(ENABLED_PROPERTY, !enabled, enabled);\n }\n }",
"public synchronized void setEnabled(boolean x) {\n s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if an edge exists in the graph | public boolean containsEdge(ModelGraphVertex source, HashSet destinations) {
Iterator it = forwardEdges.iterator();
while (it.hasNext()) {
ForwardEdge e = (ForwardEdge) it.next();
if (e.equals(source, destinations)) {
return true;
}
}
return false;
} | [
"public boolean edgeExists(GSSNode other) {\n for (GSSEdge edge : adjacencies) {\n if (edge.getTo() == other) {\n return true;\n }\n }\n return false;\n }",
"public boolean edgeExists(int n1, int n2)\n {\n return _edges.containsKey(n1) && _edges.get(n1).containsKey(n2);\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | [
"@Override\n public void event() { }",
"@Override\n public void event() {\n }",
"@Override\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t public void handle(ActionEvent ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read data from mysql | private void getData() {
progressDialog.setIndeterminate(true);
progressDialog.setMessage("Authenticating...");
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
StringRequest stringRequest = new StringRequest(ACCOUNT_DETAILS_URL, new Response.Listener<Strin... | [
"protected void read_mysql_() {\n }",
"public static void Read() {\n\t\ttry {\n\t\t//get a connection to database\n\t\tConnection myConn= DriverManager.getConnection(\"jdbc:mysql://localhost:3306/Parking_DataBase\",\"root\",\"MySQLpass1\");\n\t\n\t\t//create statement\n\t\tStatement myStmt = myConn.createStateme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the endpoint address for the specified port name. | public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
setEndpointAddress(portName.getLocalPart(), address);
} | [
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"SOAPImplPetPort\".equals(portName)) {\n setSOAPImplPetPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .WriteLacRequest writeLacRequest = 103; | org.apache.bookkeeper.proto.BookkeeperProtocol.WriteLacRequest getWriteLacRequest(); | [
"public org.apache.bookkeeper.proto.BookkeeperProtocol.WriteLacRequestOrBuilder getWriteLacRequestOrBuilder() {\n if (writeLacRequestBuilder_ != null) {\n return writeLacRequestBuilder_.getMessageOrBuilder();\n } else {\n return writeLacRequest_;\n }\n }",
"com.google.p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map a string from interpress 16bit to a postscript 8bit string with standard psfont charmapping and octal encoding, based on the xchar encoding schema and the xcharmapping hardcoded here | private static String mapXString(byte[] xs) {
StringBuilder sb = new StringBuilder();
scanXString(xs, (charset,charcode) -> sb.append(mapXChar(charset, charcode)) );
return sb.toString();
} | [
"private void convertPortion(char data[], StringBuffer sb)\n {\n for (int i = 0; i < data.length; i++) \n {\n Character c = new Character(data[i]);\n Integer table;\n StringBuffer marc = new StringBuffer();\n int charValue = (int)c.charValue();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create two tables with multiple rows in them into the provided dataset. Uses a mixture of streaming and DDL insertion to demonstrate the difference in copy job behavior. | public static void populateBigQueryDataset(
GcpBigQueryDatasetResource dataset,
TestUserSpecification ownerUser,
String projectId)
throws IOException, InterruptedException {
// Add tables to the source dataset
final BigQuery bigQueryClient = ClientTestUtils.getGcpBigQueryClient(ownerUser... | [
"@Test\n public void PNLJLectureExampleFull() throws QueryPlanException, DatabaseException, IOException {\n File tempDir = tempFolder.newFolder(\"joinTest\");\n Database d = new Database(tempDir.getAbsolutePath(), 3);\n Database.Transaction transaction = d.beginTransaction();\n\n //Create our first tab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indexing the pages by using the Extractor class to receive the words and URL's from a given start URL. The method loops until the nbPagesToIndex is reached. | public void indexPages() throws ParserException, IOException,
ParseException {
db = new Database2();
int i = 0; // number of pages indexed
while (i < nbPagesToIndex && !urlList.isEmpty()) {
// String urlStr = urlList.removeFirst();
Iterator<String> itr = urlList.iterator();
String urlStr = itr.next(... | [
"public void launch()\n\t{\n\t\tString url = start_page_url;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tint page_counter = 1, attempts = 0;\n\t\t\twhile(!url.isEmpty())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Get page \" + page_counter + \" : \" + url);\n\t\t\t\t\tDocument doc = get_document(url);\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: f | private final int m117615f() {
int i = this.f151235D;
if (i != -1) {
return i;
}
int i2 = this.f151268w;
if (i2 == 0 || i2 == 2) {
return this.f151237F;
}
return 0;
} | [
"public abstract T mo8125a(F f);",
"public void mo92799a(float f) {\n }",
"public static void f() {\n\n\t}",
"@Override\n public void f() {\n }",
"void mo11404bf(float f);",
"private void f() {\n }",
"void mo22696a(float f);",
"private static void plus(float f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepends the given event handler to the list of 'grab' event handlers. This is a special list of event handlers that are executed immediately after all event monitors and before any other event handlers in the containing root window. This is used when an event handler needs complete control over the event handling for ... | public void prependGrabEventHandler(MiiEventHandler eh)
{
// ----------------------------------------------------------
// Store in the event handler which part's coordinate space it
// want events transformed to.
// ----------------------------------------------------------
// Eventhandlers may run in di... | [
"private void setMouseEventHandlers() {\n this.setOnMouseClicked(event -> {\n if (event.getButton() == MouseButton.PRIMARY) {\n // Left mouse clicked on tile\n fireEvent(new TileClickedEvent(this.xPos, this.yPos));\n\n // This additional event is handle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.AC_ACCESS_CARDS.NOTE | public void setNote(String note) {
this.note = note;
} | [
"void setComplexNotes(boolean init);",
"public void setNotice(Clob notice) \n {\n _notice = notice;\n }",
"public void setIsNotes(boolean value) {\r\n this.isNotes = value;\r\n }",
"@Override\n public void setNoteContent(NoteContent noteContent) {\n NoteContentCard noteContentC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the GA using given parameters | public GA(int chromosomeDim,
int populationDim,
double crossoverProb,
int randomSelectionChance,
int maxGenerations,
int numPrelimRuns,
int maxPrelimGenerations,
double mutationProb,
int crossoverType,
... | [
"private void initializeGa() {\n\t\tmGa = GoogleAnalytics.getInstance(this);\n\t\tmTracker = mGa.getTracker(GA_PROPERTY_ID);\n\n\t\t// Set dispatch period.\n\t\t// GAServiceManager.getInstance().setLocalDispatchPeriod(GA_DISPATCH_PERIOD);\n\n\t\t// Set dryRun flag.\n\t\tmGa.setDryRun(GA_IS_DRY_RUN);\n\n\t\t// Set L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string securityToken = 1; | java.lang.String getSecurityToken(); | [
"public String AuthToken(String token);",
"public String GetTokenUser(String token);",
"public interface SecurityParameter\n{\n \n}",
"public interface SecurityService {\n\n String getDirectorToken(String token);\n String getStudentToken(String token);\n}",
"public abstract String getTokenString();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.heme.logic.module.SetUserIconReq SetUserIconReqInfo = 20; | public Builder clearSetUserIconReqInfo() {
if (setUserIconReqInfoBuilder_ == null) {
setUserIconReqInfo_ = com.heme.logic.module.Data.SetUserIconReq.getDefaultInstance();
onChanged();
} else {
setUserIconReqInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ... | [
"public void setIconUrl(IconUrlType param){\n localIconUrlTracker = param != null;\n \n this.localIconUrl=param;\n \n\n }",
"void setIcon(byte[] ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns emails search based on the set filter | public List<Email> getFilteredEmails() {
return emailBean.getFilteredEmails(filter);
} | [
"public String searchEmail(String email);",
"public static HashSet<String> findEmails(String input) {\n\t\tHashSet<String> emailsDiscovered = new HashSet<>();\n\n\t\t// take out everything except the emails within the string, return as\n\t\t// array\n\t\t// split input into array using delimiter of unlimited whit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the LocationEngine and the parameters for querying the device's location | @SuppressLint("MissingPermission")
private void initLocationEngine() {
LocationEngine locationEngine = LocationEngineProvider.getBestLocationEngine(mContext);
LocationEngineRequest request = new LocationEngineRequest.Builder(DEFAULT_INTERVAL_IN_MILLISECONDS)
.setPriority(LocationEng... | [
"private void setUpLocationRequest() {\n mLocationRequest = LocationRequest.create();\n mLocationRequest.setInterval(INTERVAL);\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n servicesAvailable = se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | T mo9576a(IBinder iBinder); | [
"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"
]
]
}
} |
Returns indicator if the topping is vegan | public boolean getIsVegan() {
return this.isVegan;
} | [
"public boolean isVegetarian() {\n\t\tfor (int i = 0; i < ingredients.length; i++) {\n\t\t\tif (ingredients[i].isVegetarian() == false) {\n\t\t\t\tveg_check++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (veg_check > 0) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean getEsVegetariano... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
in wizenet app we create order, the order are have send to the web service, the two functions below loop over the order file (json building) and send each of them to webservice if web service say that he got successfully , remove the file, it's not necessary anymore. | public void SendOrderToWizenet(Context ctx) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");
String sdt = df.format(new Date(System.currentTimeMillis()));
Log.e("MYTAG","chk: "+sdt);
String isNetwork = "";
if (isNetworkAvailable(ctx)){
//String path = Envi... | [
"private void saveOrder(){\n\t\tString file = \"\";\r\n\t\tfor(int i=0;i<order.size();i++){\r\n\t\t\tString oid = order.get(i).getOid();\r\n\t\t\tString pid = order.get(i).getPid();\r\n\t\t\tString account = order.get(i).getAccount();\r\n\t\t\tString line = oid+Constant.DELIMITER+pid+Constant.DELIMITER+account+Cons... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end UserListener Emails to security email Sends an email to the specified email. To send an email from an email address, the needed elements are STMP host, port, email address and password The email will only be sent to the address when it attaches a file. In the example in the code, The folder of all plate clips are s... | public void EmailSecurity() {
Properties props = new Properties();
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "587");
Session session = Se... | [
"public static void sendemail(String email,String password){\n\t\tString fromemail=\"thirunavukkarasuv@kyrostechnologies.com\";\r\n\t\tString frompassword=\"arasu37831\";\r\n\t\tSystem.out.println(\"SSL Email Start\");\r\n\t\tProperties props=new Properties();\r\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo per ottenerere la dimensione di un file | public int getSize() {
return this.size;
} | [
"public int dimension() {\r\n return dimen;\r\n }",
"public int getDimensions() {\r\n return size;\r\n }",
"@Override\r\n\tpublic int dimension() {\n\t\treturn demension;\r\n\t}",
"public int numberDimensions();",
"private void setDim(){\n\t\tcols = mucchio.conta(createDir(\"n\"));\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether the BinarySearchTree is empty. | public boolean isEmpty(); | [
"public boolean empty () {\r\n return (this.root == null);\r\n }",
"public boolean isEmpty() {\n return bTree.isEmpty();\n }",
"public boolean isEmpty()\r\n {\r\n // check if the root is null, if so then the tree is empty\r\n return BST_Root == null;\r\n }",
"public bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__99" $ANTLR start "T__100" | public final void mT__100() throws RecognitionException {
try {
int _type = T__100;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalHouseBuilder.g:100:8: ( 'ExternalSpace' )
// InternalHouseBuilder.g:100:10: 'ExternalSpace'
{
match("Extern... | [
"public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generates cipher table from the random key | public String[][] cipherTable(String key){
String[][] playFairTable = new String [5][5];
String keyString = parent;
for(int i = 0; i < 5; i++)
for(int j = 0; j < 5; j++)
playFairTable[i][j] = "";
for(int k = 0; k < keyString.length(); k++){
boolean repeat = false;
... | [
"private static void generateKeyMatrix() {\n int i,j,k=0,diff;\r\n for(i=0;i<3;i++)\r\n {\r\n for(j=0;j<3;j++)\r\n {\r\n matrix[i][j]=(key.charAt(k))%97;//generating the matrix;\r\n k++;\r\n }\r\n } \r\n \r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set color back to normal | @Override
public void run() {
tvLast.setTextColor(Color.WHITE);
} | [
"public void resetColor() {\n colorIndex = 0;\n setBackground(COLORS[0]);\n }",
"public static void resetColor() {\n\t\tmNextColor = 1;\n\t}",
"private void changeColor() {\n if (color == COLOR.WHITE)\n color = COLOR.BLACK;\n else\n color ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Motor instance | public static native Motor create() /*-{
return {
};
}-*/; | [
"private void buildMotor() {\n switch (type) {\n case TALON:\n motor = new TalonCore(id);\n break;\n case SPARK_BRUSHED:\n motor = new SparkCore(\n id,\n CANSparkMaxLowLevel.MotorType.kBrushed\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper functions for ParameterDialog class | public int getDRAMType() {
return dramType;
} | [
"public MethodParameterUI() {\n initComponents();\n }",
"private void showParameterList(final Command command, final METHOD methodId) {\r\n final Context context = this;\r\n final ParamListAdapter adapter = new ParamListAdapter(context, command);\r\n new AlertDialog.Builder(this).se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines a regular expression validator on the current rule builder, but only for string properties. Validation will fail if the value returned by the lambda does not match the regular expression. | public IRuleBuilderOptions matches(String... expressions) {
setValidator(new MatchRegexValidator().init(expressions));
return this;
} | [
"@Schema(description = \"A regular expression constraint for given value\")\n \n public String getRegex() {\n return regex;\n }",
"static Validator<String> createRegexValidator(String message, String regex, Severity severity) {\n/* 138 */ return (c, value) -> {\n/* */ boolean condition = (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by cathalus on 17.09.14. | public interface Collidable {
public void onCollision(Entity collider);
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"protected void method_5557() {}",
"protected void mo4791d() {\n }",
"@Override\n public int util... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 11 / 13 covered goals: Goal 1. org.apache.commons.lang.text.ExtendedMessageFormat.(Ljava/lang/String;Ljava/util/Locale;Ljava/util/Map;)V: Line 128 Goal 2. org.apache.commons.lang.text.ExtendedMessageFormat.(Ljava/lang/String;Ljava/util/Locale;Ljava/util/Map;)V: rootBranch Goal 3. org.apache.commons.la... | @Test
public void test11() throws Throwable {
ExtendedMessageFormat extendedMessageFormat0 = new ExtendedMessageFormat("tTx`)~3@+s");
DecimalFormat decimalFormat0 = (DecimalFormat)NumberFormat.getCurrencyInstance();
// Undeclared exception!
try {
extendedMessageFormat0.setFormat((-4... | [
"@Test\n public void test21() throws Throwable {\n String string0 = null;\n Locale locale0 = Locale.KOREAN;\n HashMap<String, MinguoDate> hashMap0 = new HashMap<String, MinguoDate>();\n Locale locale1 = Locale.PRC;\n String string1 = locale1.getDisplayLanguage();\n String string2 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void addCandy(int num) {
this.noOfCandies+=num;
} | [
"@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"
]
]
}
} |
Appends and returns a new empty "trustList" element | public org.apache.geronimo.corba.xbeans.csiv2.css.CSSSSLType.TrustList addNewTrustList()
{
synchronized (monitor())
{
check_orphaned();
org.apache.geronimo.corba.xbeans.csiv2.css.CSSSSLType.TrustList target = null;
target = (org.apache.geronimo.corba.xbeans.csiv2.... | [
"com.sun.java.xml.ns.j2Ee.ExcludeListType addNewExcludeList();",
"public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSECIOPType.TrustList getTrustList()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSECIOPType.TrustL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When we aren't on the main menu we have to give the app functionality to go to the correct tab of the main menu. This is done by finishing the current activity with a result indicating which page we're trying to go to. nav drawer shouldn't play close animation if we're closing the current activity hence the return | private boolean handleDrawerOnPressWithPage(int pageIndex) {
if (!(this instanceof MainMenuActivity)) {
Intent resultData = new Intent();
resultData.putExtra(requestDataKey, pageIndex);
setResult(Activity.RESULT_OK, resultData);
Log.d("BaseActivity","nav rooms cli... | [
"private void switchMenu() {\r\n Intent intent = new Intent(this, MainActivity.class);\r\n startActivity(intent);\r\n finish();\r\n }",
"@Override\n public void goToMain() {\n final Intent intent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(intent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Solution1 solution1 = new Solution1(); | public static void main(String[] args){
Solution2 solution2 = new Solution2();
} | [
"public static void solution() {\n\n\t}",
"public Multiple_Solution_Test() {}",
"private Solution() {\n // unused constructor.\n }",
"private Solution() {\n //unused.\n }",
"private Solution() {\n //This is constructor\n }",
"public void puzzle1(int answer)\n {\n \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void deleteEntity(EntityReference ref, Map<String, Object> params) {
} | [
"@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"
]
]
}
} |
Remove loop start token | @Override
public ASTToken parse() {
Lexer.pop();
Token next = Lexer.peek();
if(next instanceof LiteralNumber){
numberCounter = (LiteralNumber) new LiteralNumber().parse();
next = Lexer.peek();
while(!blockEndFound){
statements.add(Program.parseNextStatement());
next = Lexer.peek();... | [
"public void stopLoop() {\n \n }",
"public void rip()\n\t\t{\n\t\tRipped = Code;\n\t\t// Delete tags\n\n\t\tfor(Ripped.start();!Ripped.done();Ripped.next())\n\t\t\t{ \n\t\t\twhile(Ripped.foundHere(\"<\") > -1)\n\t\t\t\tRipped.delControl();\n\t\t\t}\n\t\t}",
"public void resetToken(){\n\t\ttoken = 0;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method takes a six bit input and returns an eight bit output. | private BigInteger efunc (BigInteger inputValue) {
BigInteger result = BigInteger.ZERO;
for(Integer key: expansionMap.keySet()) {
BigInteger bd = inputValue.and(BigInteger.valueOf(key));
if (bd.compareTo(BigInteger.ZERO) > 0) {
for(Integer value: expansionMap.get(key)) {
result = result.add... | [
"public void getR6() {\n String r6 = registers[6].getText();\n if (r6.matches(\"[0-9A-Fa-f]{2}\")) {\n \t mainRegisters.setRegister((byte)Integer.parseInt(r6, 16), 6);\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect Input Data.\");\n }\n }",
"public st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column sale_infodetail.school | public void setSchool(String school) {
this.school = school;
} | [
"public void setStudentSchool(String studentSchool) {\n this.studentSchool = studentSchool;\n }",
"public void setSchool(java.lang.String school)\n {\n this._school = school;\n }",
"@Generated(hash = 1788415103)\n public void setSchool(School school) {\n synchronized (this) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the rendered content according to the current information | private void updateContent() {
// We first clear the content
this.getChildren().clear();
// Then for each of the players
playersWeapons.keySet().forEach(player -> {
// We create its header
Label playerLabel = new Label(player);
playerLabel.getStyleClas... | [
"private void updateContent() {\n updateContent(null);\n }",
"protected void UpdateContent()\n\t{\n\t\tif (focused_index != null)\n\t\t{\n\t\t\tUpdateFocusedSlider();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tUpdateAllSliders();\n\t\t}\t\n\t}",
"private void updateContent() {\n if (request != null) {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if new piece has four or more surrounding neighbors of the same color. Precondition: 0 <= column < theGrid.getNumCols() | public boolean countNeighbors(int column, Color pieceColor)
{
Location loc = dropLocationForColumn(column);
if (loc == null)
{
return false;
}
// ArrayList<Piece> neighbors = ...;
int colorCount = 0;
// loop to determine if neighbors have the same... | [
"public static boolean hasThePlayerWon(int currentRow, int currentColumn,Color playerColour,Color[][] gridColour)\n {\n int count=1;\n //check the counter below the currently placed counter\n int nextCounterSouth=currentRow+1;\n while(nextCounterSouth< gridColour.length)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onFailure(int statusCode, Header[] headers,
String responseString, Throwable throwable) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .CDOTAUserMsg_UnitEvent.Interval predelay = 6; | public Builder mergePredelay(skadistats.clarity.wire.common.proto.DotaUserMessages.CDOTAUserMsg_UnitEvent.Interval value) {
if (predelayBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
predelay_ != skadistats.clarity.wire.common.proto.DotaUserMessages.CDOTAUserM... | [
"public void r()\r\n/* 352: */ {\r\n/* 353:366 */ this.pickUpdelay = 32767;\r\n/* 354: */ }",
"public int getDelay() {\n/* 416 */ return this.delay;\n/* */ }",
"Object getDelay();",
"private Delay() {\n\t\n\t}",
"@Override\n public void OnDelayTime(DelayTime arg0) {\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
indicates the current operator constructor to initialize global or instance variables | public Calculator()
{
super("Calculator");
setSize(500,250);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// call addActionListener(this) for each menuItem
calcMenuItem.addActionListener(this);
exitMenuItem.addActionListener(this);
calcButton.addActionListener(this);
exitButton.addActionListener(... | [
"private OperatorUtil() {\n }",
"protected WCBase(String operator) {\n this.operator = operator;\n }",
"private BuiltInOperators() {\n\n\t\tsuper();\n\n\t\tthis.operatorsByName = new HashMap<String, BuiltInOperator>();\n\t\tthis.operatorsByURI = new HashMap<URI, BuiltInOperator>();\n\n\t\tfor (Buil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
l1: 8 9 7 l2: 9 2 3 res:1 8 2 0> reverse: l1: 7 9 8 l2: 3 2 9 res: 0 2 8 1 reverse : 1 8 2 0> | static List AddTwoArrayList(List<Integer> l1, List<Integer> l2) {
List<Integer> tmpRes = new ArrayList<>();
Collections.reverse(l1);
Collections.reverse(l2);
int listMinCount = Math.min(l1.size(), l2.size());
int listMaxCount = Math.max(l1.size(), l2.size());
for (int... | [
"private ListNode reverse(ListNode pre, ListNode next) {\n ListNode start = pre.next;\n ListNode then = start.next;\n\n while (then != next) {\n start.next = then.next;\n then.next = pre.next;\n pre.next = then;\n then = start.next;\n }\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when insmodeWifi success or others,all view shoule enable | private void enabledView() {
mChannel.setEnabled(true);
mTestRXNum.setEnabled(true);
mRXOkResult.setEnabled(true);
mPERResult.setEnabled(true);
mGo.setEnabled(true);
mStop.setEnabled(true);
} | [
"private void setVoWifiEnabledForCarrier() {\n if (DBG) {\n Log.d(TAG, \"setVoWifiEnabledForCarrier: \" + !mState.value);\n }\n mVoWifiEnabled = !mState.value;\n if (mVoWifiEnabled) {\n if (mVowifiEnableDialog != null) {\n mHost.collapsePanels();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
long lastTime = 0; //TODO decide | public static void writeNewPattern(List<EyeStatus> eyes, String cmd)
{
if (eyes.size()==0) { return; }
try {
PrintWriter pw = new PrintWriter(new FileOutputStream(new File(PatternDatabase.class.
getResource(filename).getPath()), true));
String script = wri... | [
"public long getLast() {\n\t\treturn lastTime;\n\t}",
"public Long getLasttime() {\r\n return lasttime;\r\n }",
"protected long getTimeOfLastRefusal() {\n return timeOfLastRefusal;\n }",
"public long fetchLastUpdateTime(){\r\n \tlong lastTime = 0;\r\n \tCursor cur = myDb.rawQuery(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this is called before components are stopped | @Override
public void beforeStop(ComponentManager mgr, boolean isStandby) {
stopComputations();
Framework.getRuntime().getComponentManager().removeListener(this);
} | [
"@Override\n\t\tpublic void onStopped() {\n\t\t\t\n\t\t}",
"protected void stopped () {\n\t}",
"@Override\n public void stopped()\n {\n }",
"protected void postStart() {}",
"@Override\r\n\tprotected void onStop() {\n\t\t\r\n\t}",
"private void initComponents() {\n\t\t\t\n\t\t}",
"private void m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name of the plugin file, which has been copied. | @Nonnull
public String getFileName() {
return fileName;
} | [
"public String getName() {\n\t\treturn file.getPath();\n\t}",
"public static String getNamePlugin(){\n\n return DonjonsMain.instance.getName();\n\n }",
"public String getPluginName() {\n return \"\";\n }",
"public String getFileName() { return VersionControlPath.getLastComponent(th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |