query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Flips the sign of all components of this vector. | public Vector3d flip() {
x = -x; y = -y; z = -z;
return this;
} | [
"public Vec3 negate()\n {\n x = -x;\n y = -y;\n z = -z;\n return this;\n }",
"public void mirrorInverse() {\n\t\t// TODO implement me\n\t}",
"public MathVector neg(){ //returns the negative of the original vector(leaves the original unchanged)\r\n double[] negVector;\r\n negVector... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance representing the error in the specified string. | public ItemCatalogException(String msg) {
super(msg);
} | [
"private Text createErrorText (String s) {\n errorText = new Text();\n errorText.setText(s);\n return errorText;\n }",
"@Override\n public void createQError(String string) {\n\n }",
"public ScenarioParsingException(final String s)\n {\n super(s);\n }",
"public DeepaM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the rectangle at the top of the object node. | public Rectangle2D getTopRectangle()
{
return new Rectangle2D.Double(getBounds().getX(),
getBounds().getY(), getBounds().getWidth(), topHeight);
} | [
"public Rectangle2D getTopRectangle()\n {\n Rectangle2D b = name.getBounds();\n double defaultHeight = DEFAULT_HEIGHT;\n boolean hasChildren = (getChildren().size() > 0);\n if (hasChildren)\n {\n defaultHeight = defaultHeight - YGAP;\n }\n Point2D curre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ final ProgressDialog progressDialog = new ProgressDialog(MainActivity.this); progressDialog.setCancelable(false); // set cancelable to false progressDialog.setMessage("Please Wait"); // set body progressDialog.show(); // show progress dialog / hideLayout.setVisibility(View.GONE); progressLayout.setVisibility(View.VIS... | void getCategoryData(String date,final MenuFeed.LoadCategoryData loadCategoryData) {
ApiInterface apiService =
Api.getClient(ApiInterface.BASE_URL).create(ApiInterface.class);
final Call<Category> categoryCall = apiService.getCategoryData(date);
categoryCall.clone().enqueue(new... | [
"@Override\n protected void onPreExecute() {\n try {\n progressDialog = new ProgressDialog(context);\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.setMessage(\"Please wait...\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The HDFS directory from which files should be read, or a single file to read. | public final MoveHDFS setInputDirectoryOrFile(final String inputDirectoryOrFile) {
properties.put(INPUT_DIRECTORY_OR_FILE_PROPERTY, inputDirectoryOrFile);
return this;
} | [
"public static String getHDFSLocation (){\r\n return hdfsLocation+\"/\";\r\n }",
"FsPath getPath();",
"public static IHDFSFileSystem getFileSystem(JavaSparkContext ctx) {\n return new HDFSMountedAccessor(ctx.hadoopConfiguration());\n }",
"public abstract Directory getCurrentDirectory(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds an argument. If input is null, NullPointerException should be returned. It does nothing when entityInstanceName is not null but empty!! | public void addArgument(OrdinaryVariable ov, String entityInstanceName) throws SSBNNodeGeneralException {
//TODO put verification if the current argument list is the resident
if (entityInstanceName.length() <= 0) {
throw new SSBNNodeGeneralException();
}
OVInstance ovInstance = OVInstance.g... | [
"public void addArgument(FormulaElement arg){\n\t\tif(arguments.size()==2){\n\t\t\tSystem.out.println(\"The divide function can't have more than 2 arguments\");\n\t\t}\n\t\telse\n\t\t\targuments.add(arg);\n\t}",
"public @NotNull QueryBuilder addArgument(@Nullable Object argument) {\n arguments.add(argument... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a Message instance for sending arbitrary MIMEencoding content. | public Message createMessage(byte[] content, String contentType,
String contentEncoding, String subject)
{
return new MockMessage(new String(content), contentType
, contentEncoding, subject);
} | [
"static public IMessage createMessage(byte[] content) {\r\n\t\treturn new Message(content);\r\n\t}",
"private Message createMessageWithEmail(MimeMessage emailContent)\n throws MessagingException, IOException {\n \n \tByteArrayOutputStream buffer = new ByteArrayOutputStream();\n emailCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / | public ArrayList<Integer> getSkill() {
/* 64 */ return this.skill;
/* */ } | [
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\" )\\\\ (()/( ( )\\\\()) )\\\\ (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleInterfacesType_TInterface" $ANTLR start "entryRuleTRequirementDefinition" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:1495:1: entryRuleTRequirementDefinition : ruleTRequirementDefinition EOF ; | public final void entryRuleTRequirementDefinition() throws RecognitionException {
try {
// ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:1496:1: ( ruleTRequirementDefinition EOF )
// ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/to... | [
"public final void entryRuleInterfacesType() throws RecognitionException {\n try {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:2151:1: ( ruleInterfacesType EOF )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / 118 | public String getLocalidadEnrolamiento() {
return this.localidadEnrolamiento;
} | [
"@Test\n public void test43() throws Throwable {\n double double0 = FastMath.log10((-3192.42971));\n long long0 = FastMath.min(1L, 1L);\n double double1 = FastMath.acos(1152.6631);\n int int0 = FastMath.round((float) 1L);\n double double2 = FastMath.toDegrees(1);\n long long1 = Fast... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof SQLData)) {
return false;
}
SQLData other = (SQLData) object;
return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));
} | [
"public int getId () { return id; }",
"public int getId(){ return this.id;}",
"public int id() {return this.id;}",
"@Override\n public int getId() { return id; }",
"public void setId(long id){ \r\n this.id = id; \r\n }",
"public void setId( int id ) { this.id = id; }",
"public void setId( l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string boxFQ = 1; | public boolean hasBoxFQ() {
return result.hasBoxFQ();
} | [
"public void setBox(String box) {\n\t\tthis.box = box;\n\t}",
"public String getType() \n {\n return \"Box\";\n }",
"public String getJuiceBox(){ return this._jtfBoxTools.getText();}",
"public abstract int getBoxType();",
"public Box(){\n\t\tarea=51;\n\t\ttheBoxIsOpen=false;\n\t\ttheWritingOnTh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write code here that turns the phrase above into concrete actions | @Then("^user click magnifier button.$")
public void user_click_magnifier_button() {
MyntraKeyword.performClick("xpath", "//span[@class='myntraweb-sprite desktop-iconSearch sprites-search']");
} | [
"@Override\n public void doAction(MentionOf s) {\n\t\n }",
"public void action(String name) {}",
"@Override\n\t\tpublic void action() {\n\n\t\t}",
"private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove doi tuong neu element head | public boolean remove(E element) {
if (head.data.equals(element)) {
remove(0);
} else {
// khai bao 1 node temp tro den head
Node temp = head;
while (temp.next != null) {
// neu nhu ton tai 1 phan tu data co data truyen vao thi node do se b... | [
"@Override\r\n public void removeFirst() {\r\n data.remove(0);//Se remueve el primer elemento\r\n }",
"@Override\r\n\tvoid removefirst() {\n\t\t\r\n\t}",
"public void removeHead() {\n\t\tif(this.isEmpty())\n\t\t\tthrow new NoSuchElementException(\"The array is empty\");\n\t\t\n\t\tfor(int i=1;i<thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the BINReference with the latch held. | private void addBinRefToQueueAlreadyLatched(BINReference binRef) {
final Long node = binRef.getNodeId();
if (binRefQueue.containsKey(node)) {
return;
}
binRefQueue.put(node, binRef);
} | [
"public int addLOBMapping(Object LOBReference) {\n\t\tint loc = getIncLOBKey();\n\t\tgetlobHMObj().put(loc, LOBReference);\n\t\treturn loc;\n\t}",
"void addStrongRef(Object obj) {\n strongRefs.add(obj);\n }",
"public synchronized void pin() {\n if (strongRef == null) {\n stro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of output gates registered with this environment. | public int getNumberOfOutputGates() {
return this.outputGates.size();
} | [
"public int getOutputCount() { return outputCount; }",
"public int getNumOutputs() {\n return numOutputs;\n }",
"int getNumOutputs();",
"public int getNOutputs() {\r\n return (nOutputs);\r\n }",
"default int getNumberOfOutputs() {\n\t\treturn 1;\n\t}",
"public int OutputNum() {\n\t\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if this node has a child with invalid paint. | public boolean getChildPaintInvalid() {
return childPaintInvalid;
} | [
"final boolean hasChild() {\n\t\treturn !children.isEmpty();\n\t}",
"public boolean acceptsAdditionalChild() {\n return (getChildren().size() < 1);\n }",
"public boolean hasChild() {\n return (leftChild != null || rightChild != null);\n }",
"public boolean hasChildren(){\n\t\tif(children.size() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to return the size of the pizza | public String getSize()
{
return size.getSizeName();
} | [
"public int getMealSize() {\r\n return meal.size();\r\n }",
"int cartSize();",
"public int size() {\n // TODO: implement this method\n return this.fakesize;\n }",
"@Override\r\n public int pizzaPrice() {\r\n if(super.size.equals(\"Small\")){\r\n return toppin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method requires a previous initialization of the required views. To do so, the AdaptUI(final String namespace, final Collection views) method is given. In the calling activity the views should be added like this: views.add(button); | public Map<String, Integer> adaptLoadedViews(){
Map<String, Integer> map = new HashMap<String, Integer>();
for (View v : views){
System.out.println(v.getClass().getSimpleName());
map.put("viewBackgroundColor", adaptViewBackgroundColor(this.namespace, v.getClass().getSimpleName()));
map.put("viewTextColor",... | [
"private void setupViews() {\r\n setContentView(R.layout.launcher);\r\n //mAllAppsGrid = (IAllAppsView)findViewById(R.id.all_apps_view);\r\n WorkSpace mainLayout = (WorkSpace)findViewById(R.id.mainlayout);\r\n mainLayout.setLauncher(this);\r\n mModel.setCallbacks(mainLayout);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.middleware.proto.RemoveItemFromCart removeItemFromCart = 5; | middleware.proto.RequestOuterClass.RemoveItemFromCart getRemoveItemFromCart(); | [
"private void removeProductFromCart();",
"void deleteCartItem(int itemId);",
"public void e_ShoppingCart() {\n\n }",
"private void myCart(){\n }",
"void removeItem(CartCommand cart, AlbumCommand album);",
"public interface ICartService {\n ServerResponse add(Integer userId, Integer productId, Int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to check if a particular column contains a Queen. | private static boolean doesThisColumnHaveQueen (Board board, int column) {
for (int y = 0; y < board.getSize(); y++) {
if (board.containsQueen(column, y)) {
return true; // Found Queen, go to next column.
}
}
return false;
} | [
"boolean canPlaceQueenIn(IntPoint location) {\n\n return isRowEmpty(location.getX())\n && isColumnEmpty(location.getY())\n && isDiagnoalEmpty(location);\n }",
"public boolean placeQueen(int row, int col)\n\t{\n\t\t//code to place a queen on the board and add its possible m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | boolean exists(String paramString) {
/* */ File file = new File(paramString);
/* */ if (file.exists()) {
/* */ return true;
/* */ }
/* */ return false;
/* */ } | [
"private static void EX5() {\n\t\t\r\n\t}",
"protected void method_5557() {}",
"protected int snapBits(){return 9;}",
"public int getSize() { return 3+length;}",
"void mo8166KB();",
"@Override\n public long fbeSize() { return 4; }",
"@Override\nint nooftyres() {\nreturn 0;\n}",
"int getSize() {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ String Num; Num=txtnumero.getText(); lbl3.setText(CN.intToHex(new Integer(Num))); lbl1.setText(CN.intToBin(new Integer(Num))); lbl2.setText(Num); This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Edi... | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jScrollPane2 = new javax.swing.JScrollPane();
... | [
"public void b25(MouseEvent event){\r\n\t\tif(Character.getNumericValue(bString.charAt(5))==0){\r\n\t\t\tint temp=0;\r\n\t\t\tb25.setText(\"1\");\r\n\t\t\tanswer+=33554432;\r\n\t\t\tbString = Integer.toBinaryString(answer);\r\n\t\t\ttemp = 31-bString.length();\r\n\t\t\tfor(int i=0;i<temp;i++){\r\n\t\t\t\tbString=\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of vertices in this edgeweighted digraph. | public int V() {
return V;
} | [
"public int vertexCount(){\r\n\t\treturn vertices.length;\r\n\t}",
"public int numberOfVertices()\n {\n return vertices.size();\n }",
"public int numVertices() {\n return vertices.size();\n }",
"public int getVerticesCount() {\n\t\treturn vertices.length;\n\t}",
"public int getVertexCount()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+% Generalpurpose routines +%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+% Does the given string contain letters? | static boolean containsLetters(String str) {
char[] c = str.toCharArray();
for (char d : c) {
if (Character.isLetter(d)) return true;
}
return false;
} | [
"boolean isBeautifulString(String inputString) {\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int[] letterSum = new int[26];\n int stringLength = inputString.length();\n for(int letterIndex = 0; letterIndex < stringLength; letterIndex++){\n for(int alphabetIndex = 0; alphab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bytes rowKey = 1; | com.google.protobuf.ByteString getRowKey(); | [
"io.dstore.engine.procedures.ImModifyBinaryCharacValuesAd.Response.Row getRow(int index);",
"public ByteArrayNodeValue(byte [] rowKey){\n\t\tpkRefs = new TreeSet<byte[]>(ByteUtil.BYTES_COMPARATOR);\n //rwLock = new ReentrantReadWriteLock(true);\n this.rowKey = Bytes.copy(rowKey);\n this.updat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The health of a node in the ONTAP cluster. Possible values: true false | public String getIsNodeHealthy() { return this.isNodeHealthy; } | [
"yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster.Health getHealth();",
"public boolean isAlive(){\r\n return this.health>0;\r\n }",
"@java.lang.Override\n public yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster.Health getHealth() {\n @SuppressWarnings(\"deprecation\")\n yandex.cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int maxCard() {
return super.maxCard();
} | [
"@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"
]
]
}
} |
Gets the player's column position. | @Override
public int getPlayerPosColumn() {
return this.player.getPlayerCol();
} | [
"public int getPlayerCol() {\n return myPlayerManager.getCol();\n }",
"public int getCol()\r\n {\r\n // return the col that the knight is currently located at\r\n return currentCol;\r\n }",
"public int getColumnCoordinate()\n {\n return this.colCoord;\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
carga el Diccionario de equivalencias nota duracion | private void cargaNote(){
Note2Dur.put("sf", 2); Note2Dur.put("c", 16);
Note2Dur.put("sf*", 3); Note2Dur.put("c*", 24);
Note2Dur.put("f", 4); Note2Dur.put("n", 32);
Note2Dur.put("f*", 6); Note2Dur.put("n*", 48);
Note2Dur.put("sc", 8); Note2Dur.put("b", 64);
Note2Dur.pu... | [
"java.lang.String getDuracion();",
"float getDuracion();",
"public static void main(String[] args) {\r\n FuncNominas ob = new FuncNominas();\r\n// \r\n// DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n// Date date = new Date();\r\n \r\n// \r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / | public Shader.TileMode getTileModeX() {
/* 238 */ throw new RuntimeException("Stub!");
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Si occupa di fare le modifiche ed inviare la notifica al Notifier | @Override
public void run() {
try{
while(true){
Thread.sleep(2000);
System.out.println("0 delete 1 put 2 get");
int command = Integer.parseInt(System.console().readLine());
System.out.print("Key: ");
String key = System.console().readLine();
Data data = new Data();
data.key = key;
... | [
"@Override\n\tpublic void modificado(Cantante cantante) {\n\t\t\n\t}",
"@Override\n public void modificar() {\n this.ModificarInventario();\n }",
"public static void sendEditNotification() {\n\t\tsendEditNotic resp = new sendEditNotic();\n\t\tresp.execute();\n\t}",
"protected void addNotify() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialise le writer pour l'ecriture dans le fichier de la dataset. | public void initWriter() {
try {
fileWriter = new BufferedWriter(new FileWriter("./"+this.filename, true));
} catch (IOException e) {
e.printStackTrace();
}
} | [
"public DataWriter()\n {\n }",
"private void prepareForWriting() {\n if(outputFile == null || writer == null) {\n \n try {\n \n outputFile = new File(fileName);\n\n if(!outputFile.exists()) {\n outputFile.createNewFile(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Manually assign a list of partitions to this consumer. | public synchronized void assign(ConsumerAssignmentRequest assignmentRequest) {
if (assignmentRequest != null) {
Vector<TopicPartition> topicPartitions = new Vector<TopicPartition>();
for (com.networknt.kafka.entity.TopicPartition t
: assignmentRequest.getPartitions()) {
topicPartition... | [
"@Override\n public void onPartitionsAssigned(Collection<TopicPartition> partitions) {\n }",
"public void onPartitionsAssigned(Collection<TopicPartition> partitions) {\n for (TopicPartition partition : partitions)\n consumer.seek(partition, getOffsetFromDB(p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public static C5466d m19707a(C5607q c5607q) {
String b;
boolean z = false;
int i = -1;
int i2 = -1;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
int i3 = -1;
int i4 = -1;
boolean z5 = false;
boolean z6 = false;
... | [
"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"
]
]
}
} |
/ save DOM and visual information before executing the method. | @After("logNavigationCommands(JoinPoint)")
public void afterNav(JoinPoint joinPoint) {
if(Settings.aspectActive) {
statementName = UtilsAspect.getStatementNameFromJoinPoint(joinPoint);
if(alertPresent(d)) {
System.out.println("Ignoring statement because of alert : " + statementName);
retur... | [
"public void visualize() {\n\t}",
"private void doSave() {\r\n if (graphView.writeData(file)) {\r\n }\r\n }",
"public void save() {\n FileSelector fileSelector = new FileSelector();\n File file = fileSelector.chooseSavingFile(\"Save to..\", window, latestSavingDirectory, \"XML Fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TessellationManager.setBaseCoords(0.5f, 0.5f, 0.5f); TessellationManager.startDrawingQuads(); TessellationManager.renderCube(0, 0, 0, 16, 16, 16, block.getIcon(0, 0)); TessellationManager.draw(); TessellationManager.resetBaseCoords(); | @Override
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer)
{
renderStandardInvBlock( renderer, block, block.getIcon(0, 0));
} | [
"public void renderInvBlock(bbb renderblocks, int md)\r\n/* 102: */ {\r\n/* 103: 82 */ this.block.f();\r\n/* 104: */ \r\n/* 105: 84 */ this.context.setDefaults();\r\n/* 106: 85 */ this.context.setPos(-0.5D, -0.5D, -0.5D);\r\n/* 107: 86 */ this.context.useNormal = true;\r\n/* 108: */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Require for structure, not really used in my code. | public Object getItem(int position) {
return null;
} | [
"protected SameIndivType() {/* intentionally empty block */}",
"@Before\n public void setUp() {\n structure = new StructureImpl(FIELDS);\n }",
"protected void sanityCheck() {\n\t\t// do nothing\n\t}",
"@Nonnull\n\tIStructure structure();",
"private Token require (TokenType type, ParseElement el... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public methods Ensures the bounds are valid values for the object passed in. Returns false if the object is not indexable or if the numeric range is out of bounds. | public boolean ensureValid(Object value) {
int count = -1;
// Check for collections and lists.
try {
Collection<?> collection = (Collection<?>) value;
count = collection.size();
} catch (Exception e) {
try
{
count = Array.getLength(value);
}
catch (IllegalArgumentException ... | [
"@Override\n public boolean outOfBounds() {\n return false;\n }",
"@Test\r\n void boundValueInBounds() {\r\n assertEquals(20, AnalysisUtils.bound(20, 10, 30));\r\n }",
"private void checkLimitsObject() {\t\t\n\t\tthis.checkDeepMax();\n\t\tthis.checkDeepMin();\n\t\tthis.checkLimitDown()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return true is the table has no columns. | public boolean isEmpty()
{
return this.headerCellList.size() == 0;
} | [
"public synchronized boolean fempty( ) \n\t{\n\t\treturn table.isEmpty( ); \n\t}",
"public boolean hasData() {\n UserTable table = fragment.getUserTable();\n return !(table == null || header.length == 0);\n }",
"public boolean estVide() {\n\t\treturn this.table.isEmpty();\n\t}",
"public boolean hasTab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void doSampleDX(DT_Sample_4G sample) {
} | [
"@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"
]
]
}
} |
Tcl_RenameObjCmd > RenameCmd.cmdProc This procedure is invoked to process the "rename" Tcl command. See the user documentation for details on what it does. Results: A standard Tcl object result. Side effects: See the user documentation. | public void cmdProc(Interp interp, TclObject[] objv) throws TclException {
String oldName, newName;
if (objv.length != 3) {
throw new TclNumArgsException(interp, 1, objv, "oldName newName");
}
oldName = objv[1].toString();
newName = objv[2].toString();
interp.renameCommand(oldName, newName);
return;... | [
"public abstract void rename(String newName);",
"public synchronized void renameDatabaseObject(Session session, DbObject obj, String newName) {\n int type = obj.getType();\n HashMap<String, DbObject> map = getMap(type);\n if (SysProperties.CHECK) {\n if (!map.containsKey(obj.getNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies any listeners specifcally the DBSourceControl that a field value has been dirtied, but may but is not yet in a permanent state yet. For example if the end user is typing data into a text field but is not yet finished typing | public void formFieldDirtied(FormFieldUpdateEvent evt); | [
"@Override\n public void focusLost(FocusEvent e) {\n if (entryChanged) {\n entryChanged = false;\n updateFromSourceField();\n }\n }",
"protected void valueChanged() {\n setPresentsDefaultValue(false);\n boolean oldState = isValid;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get available configuration properties. | @Override
protected final List<ConnConfProperty> getConnProperties(final ConnInstanceTO instance) {
return ConnectorWizardBuilder.getBundle(instance, bundles).getProperties().stream().
map(key -> {
ConnConfProperty property = new ConnConfProperty();
pr... | [
"public static Properties getConfig() {\n if (properties == null) {\n initialise();\n }\n return properties;\n }",
"Map<String, PropertyInfo> getProperties();",
"public void getProperties() {\n if (!\"\".equals(configPropertiesPath)) {\n configProperties = loadPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO move to ISolverNode | @Override
public void initialize()
{
final boolean saveAllSamples = getOptionOrDefault(GibbsOptions.saveAllSamples);
super.initialize();
// We actually only need to change this if the model has changed in the vicinity of this variable,
// but that may not be worth the trouble to figure out.
_neighbors... | [
"public interface Resolve<T> {\n\n T solve(Node urlNode);\n}",
"@Override\n public Object accept(AstNodeVisitor visitor) throws QueryCompilationException;",
"public interface Resolver extends Configurable {\n\n\t\t/**\n\t\t * A resolve method called whenever a new FormulaIU is created to determine\n\t\t *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
that is return when success.. | public void onSuccess(String paramString) {
try {
JSONObject localJSONObject1 = new JSONObject(paramString);
if (localJSONObject1.has("reviews")) {
Globals.lstReviews.clear();
JSONArray reviewArray = localJSONObject1... | [
"@Override\r\n\tpublic void success() {\n\t\tsuper.success();\r\n\t}",
"public String success();",
"public abstract boolean isSuccess();",
"@Override\n\t\t\tpublic void onSuccess() {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void success(Void result) {\n\t\t\t}",
"@Override\r\n\tpublic void startSuccess() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Metadata Cascade Policy on a folder. | public static BoxMetadataCascadePolicy.Info create(final BoxAPIConnection api, String folderID, String scope,
String templateKey) {
URL url = GET_ALL_METADATA_CASCADE_POLICIES_URL_TEMPLATE.build(api.getBaseURL());
BoxJSONRequest request = new BoxJSO... | [
"@Override\n public void onFolderAccessGranted(DocumentFile folder) {\n folder.createDirectory(\"Aashit\"+System.currentTimeMillis());\n\n }",
"Future<String> createAclPolicy(AclPolicy policy);",
"@Override\r\n\tpublic IResourceHandler createNewFolder() throws IOException {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
MaxProductOfCuttingRope solution = new MaxProductOfCuttingRope();
// test case 1:
int n = 1;
int result = solution.maxProduct(n);
System.out.println(result);
// test case 2:
n = 2;
result = solution.maxProduct(n);
System.out.println(result);
// test case 2:
... | [
"@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 finds the coordinate of the tile behind the car by a certain distance | public static Coordinate getForwardCoor(Coordinate current, int direction, int distance) {
int x = current.x;
int y = current.y;
switch(direction) {
case 0:
x += distance;
break;
case 1:
y += distance;
break;
case 2:
x -= distance;
break;
case 3:
y -= distance;
break... | [
"Coords getBelow(int distance) { return new Coords(Down + distance, Across); }",
"int getMapPosY();",
"private void findSpotInFront() {\r\n\r\n\t\tif (direction == Direction.UP) {\r\n\t\t\trow = currentView.getTrainerPosition().y - 1;\r\n\t\t\tcol = currentView.getTrainerPosition().x;\r\n\t\t} else if (directio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert and return boolean | public boolean add(T data) throws SQLiteException,
SQLiteNotNullFieldException; | [
"public abstract boolean dbInsert();",
"public boolean insert(Object arg) {\n return false;\n }",
"public abstract boolean doInsert(DataStore db);",
"public boolean Insert(T x)\n {\n return DoUpdate(Operation.INSERT, x);\n }",
"public boolean insert(AnswerBean ab) {\n\t\treturn false;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column user_login_log.operation_time | public void setOperation_time(Date operation_time) {
this.operation_time = operation_time;
} | [
"public void setOperateTime(String operateTime) {\n this.operateTime = operateTime;\n }",
"public void setLoginElapsedTime(long value) {\n this.loginElapsedTime = value;\n }",
"public void setLoginTime(Date loginTime) {\n this.loginTime = String.valueOf(loginTime.getTime() / 1000L);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the clm type cid. | public void setClmTypeCid(BigDecimal clmTypeCid) {
this.clmTypeCid = clmTypeCid;
} | [
"public void setcid(Integer cid) {\n this.cid = cid;\n }",
"public void setCustomerType(CustomerType ct) {\r\n customerType = ct;\r\n update();\r\n }",
"public Builder setCid(int value) {\n bitField0_ |= 0x00000002;\n cid_ = value;\n onChanged();\n return t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Raw height and width of image | private static int calculateInSampleSize(
BitmapFactory.Options options, int reqWidth, int reqHeight) {
final int height = options.outHeight;
final int width = options.outWidth;
int inSampleSize = 1;
if (height > reqHeight || width > reqWidth) {
final int halfHe... | [
"int getWidth() { return this.img.getWidth(); }",
"Integer getImageHeight();",
"int getHeight() { return this.img.getHeight(); }",
"public String getImageWidth();",
"public double getImageSize() {\n return myRectangleDimensions.getHeight();\n }",
"public int getImageWidth() {\n return i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a List containing this player's LandTileImprovements | public List<LandTileImprovement> getChipReserve()
{
return chipReserve;
} | [
"public LandTileImprovement getLandTileImprovement()\n {\n return landTileImprovement;\n }",
"public List<Achievements> getAchievements() {\n ResponseEntity<List<Achievements>> response = null;\n List<Achievements> achievements = null;\n try {\n response = restTemplate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Feature Path Resource'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseFeaturePathResource(FeaturePathResource object) {
return null;
} | [
"public T caseLPResource(LPResource object) {\r\n\t\treturn null;\r\n\t}",
"public @Nullable Resource getResource() {\n return getResource((Predicate<Resource>)null, (Resource)null);\n }",
"@Override\n\tpublic IResource getLaunchableResource(ISelection selection)\n\t{\n\t\treturn null;\n\t}",
"public Obje... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Properties properties =new Properties();
Properties properties3 =new Properties();
properties.put(1, "A");
properties.put(3, "C");
properties.put(2, "B");
Properties treeMap2 =new Properties(properties);
System.out.println("properties: " + properties);
System.out... | [
"@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"
]
]
}
} |
Deletes the given asset and all child assets recursively. IOExceptions during deletion are ignored. | public static final void deleteRecursively(StorageAsset baseDir) {
RepositoryStorage storage = baseDir.getStorage( );
walk( baseDir, a -> {
try {
storage.removeAsset(a);
} catch (IOException e) {
LOG.error( "Could not delete asset {}: {}", a.getPa... | [
"public void deleteEdgesOfAsset(AbstractAsset asset, EdgeContainer ec){\n edges.addAll(ec.getEdgesTo(asset));\n edges.addAll(ec.getEdgesFrom(asset));\n for (Iterator ite = asset.getChildren().iterator(); ite.hasNext();) {\n deleteEdgesOfAsset((AbstractAsset) ite.next(), ec);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return type fixed from 'java.lang.Object' to match base method / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] | @Override // kotlin.jvm.functions.Function1
public Unit invoke(Integer num) {
int intValue = num.intValue();
if (intValue >= 0 && intValue < this.b.size()) {
this.a.a.accept(this.b.get(intValue));
}
return Unit.INSTANCE;
} | [
"@Override\r\n protected List<Object> evaluateArgumentExpressions(JvmExecutable executable,\r\n List<XExpression> expressions, IEvaluationContext context, CancelIndicator indicator) {\n \r\n XMethodDef methodDef = assocations.getMethodDef(executable);\r\n List<Object> result;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the error message if the field's length is too long | public static String getMessageErrorMaxLength(String className, String field, int maxLength) {
return className + ": The '" + field + "' field is too long! max. char. " + maxLength + ".";
} | [
"private boolean checkInputFieldLength(final String inputField) {\n return inputField != null && (inputField.length() > IdmLightApplication.MAX_FIELD_LEN);\n }",
"public int getMaxLength() { return 250; }",
"public String getFailedHint() {\n\t\t\treturn \"最大长度不能大于\" + para;\n\t\t}",
"protected Messa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println( "SvgElement.Offset x: " + x + ", y: " + y ); | public static void Offset( Double x, Double y ) {
xOffset = x;
yOffset = y;
} | [
"public int getXPos() { return x; }",
"Point getOffset();",
"public int getXPosition();",
"public int getXOffset() {\n return this.xOffset;\n }",
"long getXPosition();",
"public int getXcoordinate(){return xcoordinate;}",
"public float getX_pos(){return x_pos;}",
"public Point getVisualPosition()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetches a value at an interval index, returning a default value if the value is null. | public V getOrDefault(long index, V ifNull)
{
V out;
if ((out = get(index)) == null)
return ifNull;
return out;
} | [
"public Value get(int idx) {\n return values.get(idx);\n }",
"public MValue get(long index) {\n if (index < 0 || index >= values.size()) { return MValue.EMPTY; }\n\n MValue value = values.get((int) index);\n if (value.isEmpty() && (baseArray != null)) {\n value = new MVal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set avg values (day, week, month, dayofweek) | private void setSleepTimeStat(SleepDBHelper dbHelper, int date_id) {
// 오늘 수면시간, 시작시간, 종료시간
try {
start_time = (dbHelper.getStartEndTime(date_id)[0] / 60) + "시 " + (dbHelper.getStartEndTime(date_id)[0] % 60) + "분";
end_time = (dbHelper.getStartEndTime(date_id)[1] / 60) + "시 " + ... | [
"public static void average (double[] array, int countDays)\n\t{\t\n\t\tdouble sum = 0;\n\t\tfor (int i =0; i<countDays; i++)\n\t\t{\n\t\t\tsum += array[i];\n\t\t}\n\t\tdouble average = sum / countDays;\n\t\t\n\t\tSystem.out.println(\"The average sale of the week is: \" + average );\n\t\t\n\t}",
"private void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Random random=new Random ();
int []numlist= new int[50];
for (int i=0; i<numlist.length; i++) {
int numGenerated=random.nextInt(62-25+1)+25;
numlist[i]=numGenerated ;
System.out.println(numlist[i]);
}
} | [
"@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"
]
]
}
} |
Getter for property parentQuestion. | public String getParentQuestion() {
return parentQuestion;
} | [
"public Question getParentQuestion() {\n\n return parentQuestion;\n }",
"public long getParent()\n {\n return parentId;\n }",
"public String getParentid() {\r\n return parentid;\r\n }",
"public String getParentId() {\n return parentId;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .NodeMaster.HelpBeaconModel.DictionaryEntry DistributionDictionay = 14; repeated HelpBeaconModel.DictionaryEntry DistributionDictionay = 14; | public int getDistributionDictionayCount() {
return distributionDictionay_.size();
} | [
"DictionaryBuilder()\n {\n }",
"public Dictionary() {\n\t\t\tupdatedDictCopy = new AVLTree<String>();\n\t\t}",
"public WordDictionary() {\n map = new HashMap<>();\n }",
"public Dictionary() {\n\t\t map = new HashMap<String, String>();\n\n\t}",
"public Dictionary() {\r\n dict = new HashSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add markers for dive sites in cursor to map | @Override
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
DiveSite diveSite = ((DiveSiteCursor) cursor).getDiveSite();
LatLng latLng = new LatLng(diveSite.getLatitude(),
diveSite.getLongitude());
// If this marker exists, no n... | [
"public void addMarkers() {\n cityList = new ArrayList<>();\n\n clusterManager.clearItems();\n for (final Site site: sites) {\n GetLatLng getLatLng = new GetLatLng(new GetLatLng.AsyncResponse() {\n @Override\n public void processFinish(LatLng output, Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleExprs" $ANTLR start "ruleExprs" ../org.xtext.tl.mydsl.ui/srcgen/org/xtext/tl/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:268:1: ruleExprs : ( ( rule__Exprs__Group__0 ) ) ; | public final void ruleExprs() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.tl.mydsl.ui/src-gen/org/xtext/tl/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:272:2: ( ( ( rule__Exprs__Group__0 ) ) )
// ../org.xtext.tl.my... | [
"public final void rule__AtomicExpr__Group_12__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalResoluteParser.g:9614:1: ( ( ruleExpr ) )\n // InternalResoluteParser.g:9615:1: ( ruleExpr )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the sort type of the table. | public String getSortType() {
return sortType;
} | [
"public int getSortType()\n\t{\n\t\treturn sortType;\n\t\t\n\t}",
"public WebPublishRacerSortField getSortCol()\r\n {\r\n return (sortCol);\r\n }",
"public String getCurrentSortColumn();",
"public TableColumn getSortColumn () {\n\tcheckWidget ();\n\treturn sortColumn;\n}",
"public String getType()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets The serializer to serialize an object into a string. | SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
} | [
"public ObjectSerializer getObjectSerializer() {\n return objectSerializer;\n }",
"java.lang.String getSerializerFactory();",
"public java.lang.String getSerde() {\n java.lang.Object ref = serde_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Number of Generations Time elapsed Minimum threshold achieved. just now | public boolean StoppingCriteriaReached(){
if(Generation==MaxGenerations)return true;
if(timeElapes>=maxTime)return true;
// if(MinimumFitness<=minimumThreshold) return true;
return false;
} | [
"static long minTime(long[] machines, long goal) {\n \n Arrays.sort(machines);\n\n long max_days = machines[0] * goal;\n long min_days = 1L;\n long mid, production;\n\n if(machines.length == 1)\n return max_days;\n\n while(min_days != max_days){\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the price for the asset, in unit .forge_abi.BigUint price = 3; | public forge_abi.Type.BigUintOrBuilder getPriceOrBuilder() {
if (priceBuilder_ != null) {
return priceBuilder_.getMessageOrBuilder();
} else {
return price_ == null ?
forge_abi.Type.BigUint.getDefaultInstance() : price_;
}
} | [
"public final int getPrice() {\n/* 16239 */ return this.price;\n/* */ }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 2000000;\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getPriceBytes() {\n java.lang.Object ref = price_;\n if (ref instanceof java.l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the actual property value. | public Object getValue(); | [
"public String getPropertyValue() {\n return _propertyValue;\n }",
"public Object getPropertyValue() {\n return propertyValue;\n }",
"public String getPropertyValue() {\n return this.propertyValue;\n }",
"public byte[] getPropertyvalue() {\n return propertyvalue;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test cb build and send swift string XML transaction. | @Test
public void testCbBuildAndSendSwiftStringXMLTransaction() {
// Build a transaction and send it.
try {
final SecureMessage message = SecureMessage.fromDecodedPayload(this.senderPrivateAccount,
this.recipientPublicAccount, new ConversionService().getXml(this.sampleSwiftMsg, true).getBytes());
Swi... | [
"@Test\n public void testAddTransaction()throws Exception{\n AschResult result = AschSDK.Transaction.addTransaction(TestData.secret,\n 1,\"APS3jUBQZCaeB5qQ5TzEiCdXzerWtkZGr7\",TestData.senderPublicKey,\n TestData.secondSecret,null);\n Assert.assertTrue(result.isSucces... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .TrieNodePB children = 2; | public edu.usc.cs.nsl.indexing.TrieDS.TrieProto.TrieNodePB.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, edu.usc.cs.nsl.indexing.TrieDS.TrieProto.TrieNodePB.getDefaultInstance());
} | [
"public Iterable<TrieNodeInt<V>> children(){\n\n }",
"TrieNode() {\n followers = new TrieNode[26];\n }",
"public TrieNode() {\n this.children = new TrieNode[26];\n this.word = new String();\n this.isEnd = false;\n this.combo = false;\n th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method of the "slacGroupNumber" class attribute. | public void setSlacGroupNumber(String slacGroupNumber) {
this.slacGroupNumber = slacGroupNumber;
} | [
"public void setGroupNr(int value) {\n this.groupNr = value;\n }",
"public void setGroupNumber(int arg)\n\t{\n\t\tsetValue(GROUPNUMBER, new Integer(arg));\n\t}",
"public Builder setGroupSerial(long value) {\n bitField0_ |= 0x00000001;\n groupSerial_ = value;\n onChanged();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Primero borrar todas las partidas de ese usuario (si no da un error de referencia) | @Override
public boolean delete(int id) {
jdbcTemplate.update(GAME_DELETE_SQL, new Object[] {id, id});
// Ahora borrar al usuario, y devolver true si el número de filas afectadas es mayor que cero
return jdbcTemplate.update(USER_DELETE_SQL, new Object[] {id}) > 0;
} | [
"public void borrarUsuario(String usuario){\n for (int i = 0; i < usuarios.size(); i++) {\n if(usuarios.get(i).getNombre().equals(usuario)){\n usuarios.remove(i);\n break;\n }\n }\n JOptionPane.showMessageDialog(null, \"SE ELIMINO CORRECTAMENT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the global transaction internal cache. | private void registerGlobalTxTable() {
InternalCacheRegistry registry = globalComponentRegistry.getComponent(InternalCacheRegistry.class);
ConfigurationBuilder builder = new ConfigurationBuilder();
//we can't lose transactions. distributed cache can lose data is num_owner nodes crash at the same time
... | [
"public TransactionManager() {\n this.transPages = new HashMap<TransactionId, Set<PageId>>();\n this.pageLocks = new HashMap<PageId, Lock>();\n this.graph = new HashMap<TransactionId, Set<TransactionId>>();\n }",
"public StrongCache() {\r\n\t\tm_map = new HashMap<Object, Object>();\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "expression" /home/dominik/dev/java/OberonParser/src/dhbw/compilerbau/oberonparser/parser/Oberon.g:81:1: expression : simpleExpression ( relation ^ simpleExpression )? ; | public final OberonParser.expression_return expression() throws RecognitionException {
OberonParser.expression_return retval = new OberonParser.expression_return();
retval.start = input.LT(1);
Object root_0 = null;
ParserRuleReturnScope simpleExpression146 =null;
ParserRuleReturnScope relation147 =null;
P... | [
"private ASTNODE relationExpression() {\n ASTNODE relationExpressionAstNode = new ASTNODE();\n relationExpressionAstNode.setAstNodeType(ASTNODE_TYPE.RelationExpression);\n relationExpressionAstNode.setValue(\"RelationExpression\");\n\n // additive_expression\n {\n ASTNO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Internal implementation, normal users should not use it. | public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "DedicatedClusterId", this.DedicatedClusterId);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(... | [
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"protected void method_5557() {}",
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void mo4791d() {\n }",
"protected SameIndivType... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
for recording source positions | CAstSourcePositionRecorder pos(); | [
"private void recordPositions() {\n\n if (body == null) return;\n\n if (isRecording && !isReviewing) {\n positions.add(new Transform(body.getPosition(), body.getAngle()));\n velocities.add(new Vector2(body.getLinearVelocity()));\n }\n\n\n }",
"public abstract int[][] ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Managers Returns the biome managers. Register your own biome manager here. | public static BiomeModeManager getBiomeModeManager()
{
return Engine.getBiomeModeManager();
} | [
"public static BiomeModeManager getBiomeModeManager()\n {\n return engine.getBiomeModeManager();\n }",
"public List<Manager> getAllManagers() {\n return managerService.findAllNotDisabled(false);\n }",
"public static void processAllManagers() {\n INSTANCE.MAP.forEach((type, manager) -> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 1 /Coverage entropy=0.8822117420464162 | @Test(timeout = 4000)
public void test001() throws Throwable {
XPathLexer xPathLexer0 = new XPathLexer("bs.g}ibDE1");
xPathLexer0.comma();
xPathLexer0.setXPath("bs.g}ibDE1");
XPathLexer xPathLexer1 = new XPathLexer("59V8");
Token token0 = xPathLexer1.dots();
Token token1 = xPath... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a user's permissions. | public static ArrayList<Integer> getUserPermissionsFromDB(String userName) {
// int ArrayList to store the user's permissions in
ArrayList<Integer> userPermissions = new ArrayList<>();
try {
// create new connection and statement object
Connection connection = DBConnecti... | [
"Result getPermission(User user);",
"public String GetUserPermissions(String user);",
"public Permission getUserPermissions(int userID);",
"@Override\n public List<List<String>> getImplicitPermissionsForUser(String user) {\n try {\n READ_WRITE_LOCK.readLock().lock();\n return s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether a headset is connected to the device | public static boolean isHeadsetConnected() {
try {
HEADSET_INTENT = getHeadsetIntent();
} catch (Exception e) {
SdkLog.e(TAG, "Error getting headset status.", e);
}
return HEADSET_INTENT != null ? HEADSET_INTENT.getIntExtra("state", 0) != 0
: false;
} | [
"@DISPID(16) //= 0x10. The runtime will prefer the VTID if present\r\n @VTID(25)\r\n boolean isConnected();",
"static boolean isWiredHeadsetReallyOn() {\n try {\n char[] buffer = new char[8];\n java.io.FileReader file = new java.io.FileReader(HEADSET_STATE_PATH);\n int le... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test doesn't test exactly whether the default database is correct, but at least we know that it works at all | @Test
public void verifyTaxonomy_runDefaultBlast_resultDocumentContainsTaxonomy() throws DocumentOperationException {
Geneious.MajorVersion version9 = Geneious.MajorVersion.forVersion("9.0");
// if this version is smaller than version 9 it will return null because it doesn't recognize version 9.
... | [
"public void testFunctionalityPresent() {\n try {\n dbm.getConnection(\"nonExistingDb\");\n } catch (SQLException e) {\n // Expect a database not found exception.\n assertSQLState(\"XJ004\", e);\n }\n }",
"@Test\n public void testSetUpOK() {\n ass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the identifier of the model in which this si:item was defined. | String getEnclosingModelID(); | [
"public int modelId() {\n\t\treturn CacheItemConfig.load(ctx.bot().getCacheWorker(), id()).modelId;\n\t}",
"public String getIdentifier() {\n return getTypeName().getIdentifier();\n }",
"public Think.XmlWebServices.ZZItemIdentifier getItem_identifier() {\n return item_identifier;\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: Missing block: B:6:0x001a, code skipped: if (kotlin.jvm.internal.Intrinsics.areEqual(r2.c, r3.c) != false) goto L_0x001f; / Code decompiled incorrectly, please refer to instructions dump. | public boolean equals(Object obj) {
if (this != obj) {
if (obj instanceof aj) {
aj ajVar = (aj) obj;
if (Intrinsics.areEqual(this.b, ajVar.b)) {
}
}
return false;
}
return true;
} | [
"private void m40401c(com.facebook.common.references.C13326a<com.facebook.imagepipeline.p720g.C13645c> r2, int r3) {\n /*\n r1 = this;\n monitor-enter(r1)\n boolean r0 = r1.f36368i // Catch:{ all -> 0x0022 }\n if (r0 == 0) goto L_0x0007\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .net.arksea.dsf.RequestCount items = 1; | public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
} | [
"public List<RequestCounter> getRequestList(Entry entry, int size);",
"app.onepass.apis.FacilityRequestWithFacilityInfo getRequests(int index);",
"public abstract int getRequestCount();",
"public synchronized void incrementRequestCnt() {\n ++requestCnt;\n }",
"private List_Of_Request(){}",
"Request<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This api is used if we want to scale the view but also want to remain the same font size. Please don't trigger this frequently because it will reinflate the views and this is costy | public void setMastheadScale(float ratio, int nDisplayMode) {
if (ratio == 0 || ratio == mMastheadScaleRatio)
return;
setDisplayMode(nDisplayMode);
mMastheadScaleRatio = ratio;
setScaleX(ratio);
setScaleY(ratio);
float reverseRatio = 1 / ratio;
mDateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX... | [
"public void updateScale() {\n if (originalTextSize == 0) {\n captureOriginalFontSize(); // have to get this before any updating takes place.\n }\n ViewGroup textViewHolder = getTextViewHolder();\n float textSize = originalTextSize * scale;\n for (int i = 0; i < textVie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String toString() {
return String.valueOf(b);
} | [
"@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 a complete list of transfers for a given recipient. This provides a view into all transfer requests awaiting confirmation by a single user. | List<UserNodeTransfer> pendingNodeOwnershipTransfersForEmail(String email); | [
"List<Transfers> getTransfers();",
"public List<Transfer> findAllTransfers() {\n List<Transfer> transfers;\n transfers = transferDao.findAll();\n return transfers;\n }",
"public List<Transfer> findAllTransfers() {\n\t\tfinal String uri = Mappings.BACKEND_ADRESS + \"/transfer/all\";\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get authorized user's data. | @PostMapping("/auth/user")
public ResponseEntity<PersistentEntityResource> user(PersistentEntityResourceAssembler entityResourceAssembler) {
final AuthenticatedUser authenticatedUser = authenticationService.getAuthenticatedUser();
final User authUserData = userRepository.findByUsername(authenticated... | [
"protected DerpibooruUser getUser() {\n return mUserData;\n }",
"UserInformation getPersonalUserInformation(JWTData userData);",
"public Map<String, Object> getSignedOnUserData()\n throws XmlRpcException {\n OpProjectSession session = (OpProjectSession) XSession.getSession();\n OpBrok... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the location string identifying the location the operation was executed (e.g. GPS locator, source file line, etc.). | public void setLocation(String location) {
if (location != null && location.length() == 0)
location = null;
this.location = location;
} | [
"public void setLocation(String value)\n {\n _location = value;\n }",
"public void setLocation(String loc)\n {\n location = loc;\n }",
"public void setLocation(String locationIn)\n {\n location = locationIn;\n \n }",
"public void setLocation(final String value)\n\t{\n\t\t_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TEST PERIODIC RUNS WHILE THE ROBOT IS IN TEST MODE. | public void testPeriodic() {
} | [
"@java.lang.Override\n public boolean hasAndroidTestLoop() {\n return testCase_ == 9;\n }",
"@Override\n public void testPeriodic() {\n CommandScheduler.getInstance().run();\n\n if (RobotState.isTest()) {\n if (mRobotContainer.x3DJoystick.getRawButton(2) == true\n || mRobotContainer.thru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .datayes.mdl.mdl_szl2_pbmsg.double_3 Turnover = 3; | public datayes.mdl.mdl_szl2_pbmsg.MDLSZL2Msg.double_3OrBuilder getTurnoverOrBuilder() {
if (turnoverBuilder_ != null) {
return turnoverBuilder_.getMessageOrBuilder();
} else {
return turnover_;
}
} | [
"datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.float_3 getOpenPrice();",
"datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.double_3 getOpenIndex();",
"void WinOver()\n\t{\n\t\tM.sound3Pause();\n\t\tM.stop();\n\t\tmGR.mAdd++;\n\t\tmGR.resumeCounter = 0;\n\t\tif(M.PlayerLife<=0)\n\t\t{\n\t\t\tM.GameScreen = M.GAMEOVER;\n\t\t\tM.Pla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean isListenerForSource(Object source) {
return (source instanceof Application);
} | [
"@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"
]
]
}
} |
Use SubnetResponse.newBuilder() to construct. | private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public Protobuf.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n Protob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
admin, add one timeblock | @Test
public void testEnrouteTimesheetIsEditableByAdmin() throws Exception {
} | [
"public void addBlock(Block block){\n towerBlocks.add(block);\n Battlefield.getBattlefieldInstance().notifyUpdate();\n }",
"private void addBlock() {\n float rand = (float) Math.random();\n float lastBlockX = floor.get(floor.size() - 1).getX();\n float lastBlockY = floor.get(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string SubeventKeywords = 11; | public Builder setSubeventKeywordsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
subeventKeywords_ = value;
onChanged();
return this;
} | [
"@Test\n public void execute_multipleKeywordsMultiplePrefixes_multipleEventsFound() {\n String expectedMessage = String.format(MESSAGE_EVENTS_LISTED_OVERVIEW, 2);\n EventContainsKeywordsPredicate predicate = preparePredicate(\" t/Friends n/Art n/Cooking d/09:30\");\n\n FindCommand command = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get total number of items in the DB | public int getNumRows() {
SQLiteDatabase db = this.getReadableDatabase();
int numRows = (int) DatabaseUtils.queryNumEntries(db, TODO_TABLE_NAME);
return numRows;
} | [
"public long getTotalItemCount() { \n return sdb.domainMetadata(new DomainMetadataRequest(sdb_domain)).getItemCount().longValue();\n }",
"public int countItems() {\n int count = 0;\n String sql = \"SELECT SUM(quantity) FROM temporary\";\n SQLiteDatabase database = this.getWri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |