query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Initialize the contents of the frame.
private void initialize() { try { BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow; UIManager.put("RootPane.setupButtonVisible", false); org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF(); } catch (Exception e) { // TODO Auto-generated c...
[ "public void initializeFrame();", "private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public frame() {\n initComponents();\n read_init_config();\n }", "private void initialize() {\n\t\tinitData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last analyzed token.
public SmartScriptToken getToken() { return this.token; }
[ "public String gettoken() {\n if(!more())\n return null;\n cursor++;\n return (String)tokens.elementAt(cursor-1);\n }", "public int getToken(){\n if(tokens.size()==0){\n System.out.print(\"Error: there are no tokens\");\n System.exit(0);\n }\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(new InorderTraversal().inorderTraversal(new GetInput().getInput())); }
[ "@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" ] ] } }
URIs of Python files to pass to the PySpark framework. repeated string python_file_uris = 7;
public Builder setPythonFileUris( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePythonFileUrisIsMutable(); pythonFileUris_.set(index, value); onChanged(); return this; }
[ "Set<String> getResourceURIs();", "static public java.lang.String resolveURIs (java.lang.String paths) { throw new RuntimeException(); }", "URI proposedModelDefinitionUri(List<File> files);", "private List<InputStreamReader> loadGraphFiles() {\n PathMatchingResourcePatternResolver resourceResolver = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes everything from the stack.
public void clear() { for (int i=0; i < top; i++) { pop(); } }
[ "public void clearStack()\r\n {\r\n super.clear();\r\n }", "void clear() {\n stack.clear();\n g_stack.clear();\n }", "private void cleanStack() {\n // See whether the current frame was incompatible with its start\n // state.\n if (frame.isSnapshotIncompatible()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method check the snake position and process to trigger next action The game ends if the snake hits it's own tail or the wall high score and score will be updated into a file and displayed on the death screen
public void checkPosition() { for (int j = 1; j < snakeLocation.size() - 1; j++) { if (snakeLocation.get(0).getRow() == (snakeLocation.get(j).getRow()) && snakeLocation.get(0).getCol() == (snakeLocation.get(j).getCol())) { isAlive = false; saveScore(getScore()); board.displayMessage("Game over, y...
[ "public void run() {\n if(!pause)// checks if the game is not paused\r\n {\r\n redSnake.move(); \r\n blueSnake.move();\r\n orngSnake.move(); // made the new snake move\r\n }\r\n // Here, we check to see if the snakes have collided with each other.\r\n // This is d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validate phone numbers of format "1234567890"
public static boolean isValidPhoneNumber(String phoneNo) { if (phoneNo.matches("\\d{10}")) { return true; } //validating phone number with -, . or spaces else if (phoneNo.matches("\\d{3}[-\\.\\s]\\d{3}[-\\.\\s]\\d{4}")) { return true; } //validating phone num...
[ "private boolean validatePhoneNumber(String phoneNumber){\n if(!phoneNumber.matches(\"\\\\d{10}\")){\n return false;\n }\n\n return true;\n }", "@Override\n\tpublic boolean isValid() {\n\t\tif (phonenumber.matches(\"[0-9]+\") && phonenumber.length() == 10 ){\n\t\t\t//check furth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field success is set (has been assigned a value) and false otherwise
public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); }
[ "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the native type of given data type.
@Nullable public String getNativeType( final int dataType, final boolean allowsNull) { @Nullable String result; switch (dataType) { case Types.DECIMAL: result = "BigDecimal"; break; case Types.BIT: ...
[ "Type ll_getTypeForCode(int typeCode);", "@Generated\n @CFunction\n @NInt\n public static native long CFNumberGetType(CFNumberRef number);", "DataType getType(){\r\n\t\treturn value != null ? value.getType() : DataType.VOID;\r\n\t}", "@NativeType(\"opus_int32\")\n public int type() { return ntype(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of picked images
public byte[] saveImageBitmap(Intent data, byte[] bytesToChange) { Image image = ImagePicker.getFirstImageOrNull(data); Bitmap bitmap = BitmapFactory.decodeFile(image.getPath()); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 50, ...
[ "static ArrayList<String> getSelectedImages() {\n return selectedImages;\n }", "java.util.List<comm.CommModel.Image> \n getImagesList();", "Set<? extends Image> listImages();", "java.util.List<Lifestream.Image> \n getImageList();", "public ArrayList<Integer> getImage() {\n Arr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter Method that returns String corresponding to a User's favorite food.This method is used to populate a users profile page.
public String getFavFood(){ return favFood; }
[ "String getFavFood();", "@Override\n\tpublic String getFavFood() {\n\t\treturn null;\n\t}", "public String getFavoritedName() {\r\n return favoritedName;\r\n }", "public String getFavCandy() { return favCandy;}", "public String getIsFavorite() {\n\t\treturn isFavorite;\n\t}", "@Override\n\tpublic void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates list of LicenseModel elements
private static List<LicenseModel> createLicenseModelList(NodeList productElementList) { List<LicenseModel> lmList = new ArrayList<LicenseModel>(); for (int i = 0; i < productElementList.getLength(); i++) { LicenseModel tempLM = new LicenseModel(); Boolean isRestricted = true; ...
[ "Iterable<License> listLicenses(boolean active);", "public List<License> getLicenseList() {\n return this.licenseList;\n }", "@Override\r\n public Vector<License> getLicenses() throws Exception {\r\n Vector<License> vc = super.getLicenses();\r\n vc.add(new LicenseForProcess(getProcess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rimuove dal grafo l'arco che collega i nodi v1 e v2.
public void removeEdge(GraphNode v1, GraphNode v2) { for(GraphNode nd : this.nodes) { if(nd == v1) { Iterator<GraphEdge> it = nd.incidentEdges.iterator(); while(it.hasNext()) { GraphEdge edg = it.next(); if(edg.n1 == v1 && edg.n2 == v2 || edg.n2 == v1 && edg.n1 == v2) { it.remove(); t...
[ "public void rodrigues01() {\n\n objetivo = \"Mensurar o VO2máx. em sujeitos acima de 07 anos de idade, verificando a menor unidade de tempo utilizada para percorrer correndo a distância de 1600 m.\";\n material = \"Um avaliador; pista de atletismo com 400 m demarcada a cada 10m,cronômetro; sinalizado...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function process the data and reads the string line by line.
private void processData(String mapData) { String[] lines = mapData.split(MapDelimiters.NEXT_LINE_DELIMETER); for (String line : lines) { setCurrentDelimeter(line); processFileInformation(currentDelimeter, line); processBorderInformation(currentDelimeter, line); ...
[ "public abstract void lineRead(String line);", "@Override\n\tpublic void processLine(String input) {\n\t}", "private String[] readNextLine() throws IOException {\n if (firstRead) {\n firstRead = false;\n // the first read, initialize things\n currentReader = moveToNextStream();\n\n if (cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mapeamento Delete para deletar 1 empresa informando o id do mesma
@DeleteMapping("/empresa/{id}") public ResponseObject deletarEmpresa(@PathVariable(value = "id") final Integer id) throws NotFoundException { return this.empresaService.deletarEmpresa(id); }
[ "@Override\n\tpublic Empleado delete(int id) {\n\t\treturn null;\n\t}", "public void deletePrestamo(Long id) throws Exception;", "public void eliminarEmpleado(String id);", "public void delete(Integer idCarte);", "public void deletePuesto(Integer id) throws Exception;", "@Override\r\n\tpublic Integer dele...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Product getById(int productId) { return hibernateTemplate.get(Product.class, productId); }
[ "@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" ] ] } }
USEFUL FUNCTIONS FOR FEATURE MANIPULATION
protected void addFeaturesFromMap(HashMap<Integer, Double> map, HashMap<String, Double> features, String prefix) { Iterator<Integer> keys = map.keySet().iterator(); while(keys.hasNext()) { int itype = keys.next(); String hashKey = prefix + itype; features....
[ "@Override\n\tpublic void determineFeatures() {\n\t\tFeatures.add(\"By Popular Demand\");\n//\t\tFeatures.add(\"Rustic Hopsitality\");\n\t}", "boolean checkForSuperfluousFeatures();", "public abstract FeatureInfo[] getSystemAvailableFeatures();", "public IFeature[] setup();", "private void getFeatures() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increases the happiness of all truck drivers
protected void increaseTruckHappiness() { //Happy truck driver increases truckDriverHappiness by 5%, up to the original value truckDriverHappiness = Math.min((truckDriverHappiness * 1.05), maxTruckDriverHappiness); //System.out.println(truckDriverHappiness); }
[ "public void increaseHappiness() {\r\n\t\thappiness += World.getEnvironment().getUnitNeedRatio();\r\n\t\t\tif(happiness > 1f) {\r\n\t\t\t\thappiness = 1f;\r\n\t\t}\r\n\t}", "@Override\n public void walkies() {\n happiness += 35;\n bathroom = 0;\n }", "public void checkTowerUpgrade() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Basado en la clave primaria del objeto entrante, busca su registro correspondiente en la base de datos y lo elimina
public void eliminar(Profesor prof){ profesorRepositorio.delete(prof); }
[ "@Override\n\tpublic void eliminar(DiaDTO objeto) {\n\n\t}", "void eliminar( int clave);", "public void eliminarPrimero() {\n\n cabeza = cabeza.siguiente;\n /* Decimos que la cabeza sea cabeza.siguiente */\n /* Osea que el primer cabeza ya no existiria en los nodos */\n }", "public i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uses the system class loader to load the test class
public Class reload(Class aClass) throws ClassNotFoundException { return aClass; }
[ "@org.junit.Test\n public void ClassLoaderTest(){\n\n URL[] urls = sun.misc.Launcher.getBootstrapClassPath().getURLs();\n for (int i = 0; i < urls.length; i++) {\n System.out.println(urls[i].toExternalForm());\n }\n\n ClassLoader stringCL = ArrayList.class.getClassLoader();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column fi_user_account_record_sum.surplus_reward
public void setSurplusReward(BigDecimal surplusReward) { this.surplusReward = surplusReward; }
[ "private void rewardWinner(String winnerUID){\n int currentScore = Database.getInstance().getReference()\n .child(Database.CHILD_USERS).child(winnerUID)\n .child(Database.CHILD_SCORE)\n .get().getValue(Integer.class);\n currentScore+= ScoringConstants.REWA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.dstore.values.IntegerValue person_type_id = 2;
boolean hasPersonTypeId();
[ "io.dstore.values.StringValue getPersonIds();", "io.dstore.values.IntegerValue getProcedureTypeId();", "public void setM_WarehouseTo_ID (int M_WarehouseTo_ID)\n{\nset_Value (\"M_WarehouseTo_ID\", new Integer(M_WarehouseTo_ID));\n}", "int getMetastoreTypeValue();", "public void setIdpaytype(java.lang.Integer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 391 /Coverage entropy=2.4264905476463223
@Test(timeout = 4000) public void test391() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Component component0 = errorPage0.ul(); Table table0 = new Table(component0, "java.la4g.String@0000000006"); table0.strong((Object) errorPage0); assertEquals("wheel_ErrorPage", errorP...
[ "@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" ] ] } }
Deserialize be called when atm was initialised
private void readFromFile() { try { //deserialize the List ObjectInputStream is = new ObjectInputStream(new FileInputStream( "atmUserList.ser")); atmUserList = (HashMap<String, AtmUser>) is.readObject(); ObjectInputStream is2 = new ObjectInputS...
[ "@Override\n\tpublic void deserialize() {\n\t\t\n\t}", "@Override\n public void readSerializer() {\n try {\n FileInputStream readTemp = new FileInputStream(\"Output/tempFiles/temp.ser\");\n ObjectInputStream readStream = new ObjectInputStream(readTemp);\n\n membersArray ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gives the String representation of this piece
protected String getName(){ return "N"; }
[ "public String toString() {\n\t\treturn \"\"; //to be completed\n\t}", "public String toString() {\r\n\t\treturn StringUtils.mapString(this);\r\n\t}", "@Override\n public String toString() {\n return getString(this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toString(null, null);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the default command for a subsystem here. setDefaultCommand(new MySpecialCommand());
public void initDefaultCommand() { }
[ "@Override\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private Robot robot; Method : Control::Control() Purpose : Secondary Control class constructor that initialises a Robot object. Parameters : robot : An object of Class Robot. Returns : Nothing. Notes : None.
public Control() { }
[ "public Robot(){\r\n \r\n }", "public Robot() {\r\n\t}", "public Robot() \n {\n \t//Setting the motor channels on the RobotDrive object for the tank drive setup.\n myRobot = new RobotDrive(MOTOR_CHANNEL_LEFT, MOTOR_CHANNEL_RIGHT);\n myRobot.setExpiration(0.1);\n \n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public String getListViewData3() throws YssException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__1" $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__1__Impl" InternalJQVT.g:18402:1: rule__JvmParameterizedTypeReference__Group_1_4__1__Impl : ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) ;
public final void rule__JvmParameterizedTypeReference__Group_1_4__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJQVT.g:18406:1: ( ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) ) // InternalJQVT....
[ "public final void rule__JvmParameterizedTypeReference__Group_1_4_2__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:15534:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl )\n // InternalAle.g:15535:2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the main function, called when the program starts, creating a new Client instance
public static void main(String[] args) { new Client(); }
[ "public static void main(String[] args) {\n Client client = new Client();\n }", "public static void main(String[] args) {\n new MyClient();\r\n\t}", "public static void main(String[] args) {\n\tnew Client();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tclient = new Client();\n\t\tcli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
byte < short < int < long < float < double Auto Widening : To convert small data type to lage data type Converting small to large is easy/ because of that java can do it automatically you have to type the name of the small daat type before the variable name.
public static void main(String[] args) { byte num1= 123; short num2 = num1; int num3 = 2345; double num4 =num3; // Explicit Narrowing;If you convert large data type to small long num5 = 657; short num6 =(short)num5; double num7 = 12.56; float num8 = (float) num7; // Example short...
[ "public static void main(String[] args) {\n\t\t\n\t\tdouble d1 = 7.5; //no casting/conversation\n\t\tSystem.out.println(d1);\n\t\t\n\t\tdouble d2 = 7; //casting is happening\n\t\tSystem.out.println(d2);\n\t\t\n\t\t//widening, implicit casting, is done automatically \n\t\tint num1 = 10;\n\t\tdouble d3 = num1; //cast...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update the pencilmarks of the board
public static void updateBoard(Board b, byte hpos, byte wpos, byte value, UsedMethod solvedWith) { //update row and column for (byte i = 0; i < b.SIZE; i++) { //row if (b.getCellAt(hpos, i).isPossible(value)) { b.getCellAt(hpos, i).setImpossible(value); } //column if (b.getCellAt(i, wp...
[ "public void draw()\n {\n myPencil.up();\n myPencil.move(-100,100);\n myPencil.down();\n myPencil.move(100,100);\n myPencil.move(120,110);\n myPencil.move(100,100);\n myPencil.move(120,90);\n myPencil.move(100,100);\n myPencil.move(-100,100);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. 1 x: Enqueue element into the end of the queue. 2: Dequeue the element at the front of the queue. 3: Print the element at the front of the queue.
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int numberOfQueries = scanner.nextInt(); scanner.nextLine(); // this is to skip the new line and proceed to the query inputs Queue<Integer> queue = new Queue<>(); for (int i=1; i<= numberOfQueri...
[ "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n //int input = s.nextInt();\n MyQueue queue = new MyQueue();\n System.out.println(queue.dequeue());\n queue.enqueue(2);\n queue.enqueue(3);\n queue.enqueue(4);\n System.out.printl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated by an OCL generation rule. Checks whether constraint " pre: height > 0 " is satisfied.
@org.junit.Test public void testAreaOfParallelogram36() throws Throwable { GeometryCalculator testObject = new GeometryCalculator(); double mca_height = -1; exception.expect(Throwable.class); double res = testObject.areaOfParallelogram(0.00, mca_height); }
[ "public boolean testHeight(EIfcrectangularpyramid type) throws SdaiException;", "public boolean validateAgglomerative_CutHeightGe1(Agglomerative agglomerative, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn\r\n\t\t\tvalidate\r\n\t\t\t\t(PipelineprojectPackage.Literals.AGGLOMERATIVE,\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the parent item. The cursor's position was stored there.
@Override public void onClick(View view) { View parentItem = findParentWithId(view, R.id.restaurant_item); if (parentItem != null) { int adapterPosition = (Integer) parentItem.getTag(R.id.tag_adapter_position); mCursor.moveToPosition(adapterPosition); ...
[ "public int parent(int pos) {\n return (pos - 1) / 2;\n }", "private int parent(int pos) {\n return pos / 2;\n }", "public final Item getParent() throws NoSuchItemException {\n/* 6402 */ if (this.parentId != -10L)\n/* 6403 */ return Items.getItem(this.parentId); \n/* 6404 */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table asset_check_task
int updateByExampleSelective(@Param("record") AssetCheckTask record, @Param("example") AssetCheckTaskExample example);
[ "public boolean taskExist(Task task) throws SQLException;", "public Boolean updateTask(Task task) throws SQLException;", "@Override\n\tpublic Task addTask(Task task) {\n\n\t\t// Change tempChange=new Change();\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t// Step 1: Allocate a database 'C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional sint32 origin_y = 2;
@java.lang.Override public boolean hasOriginY() { return ((bitField0_ & 0x00000002) != 0); }
[ "protected abstract int calculateOriginY();", "public double getOriginY();", "public int getOrigY() {\n return 11;\n }", "public static int getOrigY() {\n return 4;\n }", "public float getOriginY () {\n\t\treturn originY;\n\t}", "public int getY() { return y ; }", "long getY();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column T_YJ_DWYJ_QXJL.DJRID
public void setDjrid(String djrid) { this.djrid = djrid == null ? null : djrid.trim(); }
[ "public void setRdsj(Date rdsj) {\n this.rdsj = rdsj;\n }", "public void setDr(int dr)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_el...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DuelGUI methods Prints correct information and plays correct soundFX when both players are reloading
public void reloadReload() { printOut.setText("Both " + player1.getName() + " and " + player2.getName() + " reloaded!"); sounder.playReload1(); sounder.playReload2(); }
[ "public void onHowToPlay() {\n wl = new WindowLoader(newGameButton);\n wl.load(\"/HowToPlay/HowToPlay\", getInitData());\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "public void refreshDuelScreen() {\n\t\tif (GameEngine.playerHandler.players[playerId] =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string imageName = 6;
public Builder setImageNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; imageName_ = value; onChanged(); return this; }
[ "public String getImageName() { return _imageName; }", "String getNameImg();", "public String getImgname() {\r\n return imgName;\r\n }", "private Object primitiveImageFileName(int argCount) {\n if (argCount == 0) {\n return makeStString(vm.image.imageFile().getAbsolutePath());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if a key was just pressed this frame
public static boolean wasKeyPressed(final int key) { return KEY_STATES[key] && !KEY_PREVIOUS_STATES[key]; }
[ "public static boolean isKeyPressed(String key) \r\n\t{ return engine!=null?engine.inputPressed.contains(\"[\"+key+\"]\"):false; }", "private boolean isPressed(KeyCode key){\n\t\treturn keys.getOrDefault(key,false);\n\t\t\n\t}", "public static boolean isPressed(int key) {\n return keys[key];\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .innova.protocol.Actor actors = 1;
public Builder clearActors() { if (actorsBuilder_ == null) { actors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actorsBuilder_.clear(); } return this; }
[ "public interface ActorService extends ActorReference{\n\n}", "public interface Actor\n{\n /**\n * Ejecuta el comportamiento normal de un actor\n * @param La lista de actores que son creados con su comportamiento\n */\n void actuar(List<Actor> listaActores);\n \n /**\n * Devuelve si el...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of GPS position. Remove the first "\n" is present
private String getRelationContent() { WaysAssembler assembler = new WaysAssembler(ways); String result = assembler.assemble(); if (result.startsWith("\n")) { result = result.substring(1); } return result; }
[ "public String getStringPositions() {\n StringBuilder ss = new StringBuilder();\n for( int i=0; i<positions.length; i++ ) {\n if( i>0 )\n ss.append(\",\");\n ss.append(positions[i]);\n }\n return ss.toString();\n }", "private String positionFromGPS(Packet packet, String code, i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests for nil ith "IdentificationEffectiveDate" element
public boolean isNilIdentificationEffectiveDateArray(int i) { synchronized (monitor()) { check_orphaned(); gov.niem.niem.niem_core._2_0.DateType target = null; target = (gov.niem.niem.niem_core._2_0.DateType)get_store().find_element_user(IDENTIFICATIONEFFECTIVEDAT...
[ "boolean isNilDepartdate();", "@Override\r\n\tpublic boolean getIncludesNull() {\r\n\t\treturn dateValue() == null;\r\n\t}", "private static boolean empty(Date dueDate) {\n\t\treturn dueDate == null;\n\t}", "@java.lang.Override\n public boolean hasReceiptdate() {\n return receiptdate_ != null;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The minimum number of write buffers that will be merged together before writing to storage. If set to 1, then all write buffers are fushed to L0 as individual files and this increases read amplification because a get request has to check in all of these files. Also, an inmemory merge may result in writing lesser data t...
public int minWriteBufferNumberToMerge() { return minWriteBufferNumberToMerge(nativeHandle_); }
[ "@Override\n protected BufferedMutatorParams buildBufferedMutatorParams() {\n return super.buildBufferedMutatorParams().writeBufferSize(10L * 1024L * 1024L * 1024L);\n }", "int shrinkGuaranteedOutputBuffers(int numToShrink)\n {\n try\n {\n Transport._globalLock.lock();\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Attempts to obtain the name of a chemical in a file. Returns null if no chemical name was found.
public static String getChemicalName(String file_name) { //define all the variables that will be obtained here String chemical = null; Scanner inputStream = null; try { inputStream = new Scanner(new FileInputStream(file_name)); } catch (FileNotFoundException e) { System.out.println("This file ...
[ "public String getChemical_name()\n\t{\n\t\treturn chemical_name;\n\t}", "public String getFileName() throws IOException {\n if (file != null) {\n return file.getAbsolutePath();\n } else {\n throw new IOException(\"no file\");\n }\n }", "private String getFileName() {\r\n\t\tSystem.out.print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns DataSource retrieved from JNDI.
public DataSource getDataSource() { return ds; }
[ "private DataSource getDataSource()\n throws NamingException\n {\n if (dataSource == null) {\n final InitialContext context = new InitialContext();\n try {\n dataSource = (DataSource) context.lookup(\"java:comp/env/AutorizadorVentaDataSource\");\n } f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
split and inner join table into it's left counter part (usefull if you really need inner join to operation filter, or order)
public static <L,R> Table<L> left(Class<L> left, Table<Pair<L,R>> table) { Mapper<Pair<L,R>, L> map= Pair.left() ; return map(table,left, map); }
[ "@NotNull\n @Support\n @PlainSQL\n TablePartitionByStep<Record> leftOuterJoin(String sql);", "@Test\n public void testLeftJoinWithSomeFiltersFromLeftRightSide() {\n util.verifyRelPlan(\n \"SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 AND b1 = b2 AND c1 = c2 WHERE a2 = 2 A...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prepara informacion de email para proveedores y clientes en ordenes
private List<MailInfo> prepareMailOrder(OrderComplete orderComplete, List<SupplierDeliveryInfo> supplierDeliveryInfoList, Catalog delivery, String flag) { List<MailInfo> mailInfoList = new ArrayList<MailInfo>(); for (SupplierDeliveryInfo sdi : supplierDeliveryInfoList) { if (sdi.getSelected()) { MailIn...
[ "public void saisirMail(){\n\t\tSystem.out.println(\"Saisir la nouvelle adresse e-mail du client :\");\n\t\tthis.adrEmail = Lire.S();\n\t}", "private void montarEmailComOficina(InscricaoCurso inscricaoCurso) {\n\t\tStringBuilder textoEmail = new StringBuilder();\r\n\t\ttextoEmail.append(\"Prezado(a) <b>\" + inscr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Publishes a list of tuples into one or more tables.
public void insert(List<String> insertStatements) throws RGMAPermanentException, RGMATemporaryException { try { doinsert(insertStatements); } catch (UnknownResourceException e) { try { restore(); doinsert(insertStatements); } catch (UnknownResourceException e1) { throw new RGMATemporaryExceptio...
[ "public static void storeAllData(ArrayList<Data> data) {\n try {\n PreparedStatement pst = conn.prepareStatement(\"INSERT INTO DATATAB VALUES(?,?,?)\");\n for (Data dat : data) {\n pst.setInt(1,dat.getId());\n pst.setString(1,dat.getArrival());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void doSelect(Game game, Player player) { super.doSelect(game, player); }
[ "@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 constructor is used when the class is built from an XML resource.
public ViewfinderView(Context context, AttributeSet attrs) { super(context, attrs); /* initialize these once for performance rather than calling them every time in onDraw() */ paint = new Paint(Paint.ANTI_ALIAS_FLAG); labelPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); labelPaint.setColor(Color.WHITE...
[ "private XML()\n {\n }", "public XmlAdaptedProduct() {}", "private XMLProvider() {\n super();\n }", "public NodeResource() {\n }", "public Resource(){\n super();\n }", "public XmlBase() {\r\n\tsuper();\r\n}", "private Resources()\r\n \t{\r\n \r\n \t}", "private XmlPackage() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
put the value in this entity and will not touch the OriginalValueMap and the ModifiedValueMap
@Override public Object put(final String field, final Object value) { return putValue(field, value); }
[ "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n public void editValue() \n {\n \tsuper.editValue();\n \tentity.updateValues();\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine if a given shape is the sphere for one of the lights.
public int getPickedLight(Shape3D kPickedShape) { for (int i = 0; i < m_akLightSpheres.length; i++) { if (m_akLightSpheres[i].getShape() == kPickedShape) { return i; } } return -1; }
[ "public abstract boolean intersectSphere(Ray ray, float radius);", "@Test\n public void sphereDirectional() {\n sphereTests();\n\n scene.addLight(new DirectionalLight(new Color(255, 100, 100), new Vector(3,-1,2)));\n\n ImageWriter imageWriter = new ImageWriter(\"sphereDirectional\", 500, 5...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an instance of Bmi Calculator Page class and provide the driver
@Test public void testBmiCalculation() { BmiCalcPage bmiCalcPage = new BmiCalcPage(driver); // Open the Bmi Calculator Page bmiCalcPage.get(); // Calculate the Bmi by supplying Height and Weight values bmiCalcPage.calculateBmi("181", "80"); // Verify Bmi & Bmi Category value...
[ "public PaymentPage() {\n PageFactory.initElements(driver, this);\n }", "public CreditPage(){\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public APIPage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public PIMPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"Select Tokens" Button Select the token.txt and set the path of the input field
public Button selectTokenBtn(TextField tokenPath) { Button tokenBtn = new Button("Select Tokens"); tokenBtn.setOnAction(event -> { tokenTxt = FXUtil.newFileChooser().showOpenDialog(Main.getInstance().getStage()); if (tokenTxt != null) { tokenPath.setText(tokenTxt...
[ "public void chooseFile(){\r\n String chosenFile;\r\n System.out.println(\"Copy and paste the path to the file to be divided:\");\r\n Scanner scan = new Scanner(System.in);\r\n chosenFile = scan.next();\r\n path_to_input = settingPath(chosenFile);\r\n }", "private void tokenB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Roman on 1/16/2015.
public interface IGraphElementSchema { public SchemaElementType getSchemaElementType(); public String getType(); public String getRoutingFieldName(); public Iterable<String> getIndexNames(); }
[ "@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() {}", "public void mo28221a() {\n }", "public void mo1857d() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all variable logs for given process instance id and variable identifier
List<? extends VariableInstanceLog> findVariableInstances(long processInstanceId, String variableId);
[ "@GetMapping(\"/instances\")\n public ResponseEntity<List<VariableInstance>> instances(Principal principal, @RequestParam Long processInstanceId) throws Exception {\n \tVariableInstanceList vi = ConvertUtils.convertToVariablesList(runtimeDataService.getVariablesCurrentState(processInstanceId));\n \treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public void onResume() { super.onResume(); int systemUiVisibility = getWindow().getDecorView().getSystemUiVisibility() | 2; if (VERSION.SDK_INT >= 16) { systemUiVisibility |= 4; } if (VERSION.SDK_INT >= 18) { systemUiVisibility |= MpegAudioHeader.MAX_FRAME...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DetailFragmentCallback for when an item has been selected.
public void onItemSelected(Uri itemUri);
[ "public abstract void onSelected(Context context, Object data);", "public interface Callback {\n /**\n * DetailFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(long id, Uri dataUri, MovieAdapter.MovieAdapterViewHolder vh);\n }", "public inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a job name for the given ScriptCompiler using the contained logical plan sources and sinks.
protected String buildJobName(ScriptCompiler compiler) throws PigRunnerException { StringBuilder sb = new StringBuilder("loddp:"); try { Operator source = compiler.getOptimizedLogicalPlan().getSources().get(0); if (source instanceof LOLoad) { sb.append((((LOLoad) ...
[ "public StrColumn getCompilerName() {\n return delegate.getColumn(\"compiler_name\", DelegatingStrColumn::new);\n }", "Compiler() {\r\n this.setName(NAME);\r\n }", "public String newScheduler(ArrayList<Server> servers, ArrayList<Job> j){\n\t\tString serverInfo = \"\"; \n\n\t\tfor (Server s: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
3 Way Quicksort: A variation of Quicksort that deals with duplicate keys more efficiently.
public static <T extends Comparable<? super T>> void threeWayQuickSort(T[] input) { threeWayQsort(input, 0, input.length - 1); }
[ "private void wiggleSortByQuickSelect(int[] nums){\n if(nums == null || nums.length == 0){\n return;\n }\n\n int len = nums.length;\n // we need keep the original nums array, because we need the relative pos\n int[] copy = Arrays.copyOf(nums, len);\n\n int mid = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Purchase createUpdatedEntity(EntityManager em) { Purchase purchase = new Purchase() .price(UPDATED_PRICE) .currency(UPDATED_CURRENCY) .number(UPDATED_NUMBER) .comission(UPDATED_COMISSION); return purchase; }
[ "@Test\n\tpublic void testCreationOfEntityInsideTransactionViaUpdate() {\n\n\t\tDemoEntity out = sfy.transact(5, new Work<DemoEntity>() {\n\t\t\t@Override\n\t\t\tpublic DemoEntity run() {\n\n\t\t\t\tDemoEntity demoEntity = sfy.get(DemoEntity.class).key(\"1\").now();\n\t\t\t\tif (demoEntity == null) {\n\t\t\t\t\tdem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
final C2577a<?> m12648b() { return this.f10965a; }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the current value for the PN counter.
public void setValue(long value) { this.value = value; }
[ "public void setCounter(int value){\n counter = value;\n }", "public void setCounter(int c) { counter = c; }", "public void incrementValue() {\n count++;\n }", "public void setValue(int value) { \n this.value = value; \n }", "public void setValue(int va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Intercepts base record class generation
@Override public boolean modelBaseRecordClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) { addDataAnnotation(topLevelClass); return true; }
[ "public SequelizemetaJpaRecord() {\n\t\tsuper();\n }", "protected BaseAnnotation() {/* intentionally empty block */}", "public BaseRecordProcessor(String className)\n {\n // Create a logging instance\n this.log = Logger.getLogger(className);\n\n // Initialize instance variables\n this.oracleConn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the indexth node in the linked list, if the index is valid.
public void deleteAtIndex(int index) { if (index < 0) return; ListNode p = head; while ((index--) != 0){ p = p.next; if (p.next == null) return; } p.next = p.next.next; }
[ "public void deleteAtIndex(int index) {\n\n if (head == null) {\n return;\n }\n\n if (index == 0) {\n head = head.next;\n return;\n }\n SinglyListNode n = head;\n for (int i = 0; i < index - 1; i++) {\n if (n.next == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .de.tubs.androidlab.instameet.server.protobuf.SimpleAppointment appointments = 1;
java.util.List<? extends de.tubs.androidlab.instameet.server.protobuf.Messages.SimpleAppointmentOrBuilder> getAppointmentsOrBuilderList();
[ "public Appointment(String[] appointmentInfo) {\n this.description = appointmentInfo[0];\n this.beginTimeString = appointmentInfo[1] + \" \" + appointmentInfo[2];\n this.endTimeString = appointmentInfo[3] + \" \" + appointmentInfo[4];\n }", "private Appointment createAppointmentForUpdate() {\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the "route". This is a Zuul defined bucket for collecting request metrics. By default the route is the first segment of the uri eg /get/my/stuff : route is "get"
public String getRoute() { return (String) get("route"); }
[ "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "@Override\r\n\tpublic String getRoute() {\n\t\treturn \"*\";\r\n\t}", "GetRouteResult getRoute(GetRouteRequest getRouteRequest);", "nta.med.kcck.api.rpc.proto.PatientServiceProto.SyncExaminationRequest.TraceRoute getRoute();", "NamedNode getR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public ArrayList> mylist; / private ArrayList list;
public MyAdapter(Context context) { super(); this.context = context; inflater = LayoutInflater.from(context); // mylist = new ArrayList<HashMap<String, String>>(); /*list = new ArrayList<>();*/ }
[ "private static List ArrayList() {\n\t\treturn null;\n\t}", "public test701_750() {\n\tlist= new ArrayList<>();\n}", "public abstract ArrayList getSocietyList();", "public ArrayList getArrayList(){\n return points;\n }", "private static ArrayList getPeople(){\n return people;\n }", "pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the constructor that we defined
public Animal(int numLegs, String noise, String color) { this.numLegs = numLegs; this.noise = noise; this.color = color; }
[ "public Tanh() {\n\t}", "public Innlegg() {\n\t\t\n\t}", "public Cachorro() {\r\n }", "public A231503() {\n this(3, 2);\n }", "private O()\r\n {\r\n super();\r\n }", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "public Chord()\n\t{\n\t}", "protected GeometricObject() {\r\n\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by iff on 2017/6/27.
public interface Dao { UserInfo login(String username, String passwd); RespResult sign(String username, String passwd); }
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "public void mo28221a() {\n }", "@Override\n public int ut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of Facebook Integrations
public ApiResponse<FacebookIntegrationEntityListing> getMessagingIntegrationsFacebookWithHttpInfo(Integer pageSize, Integer pageNumber) throws IOException { return getMessagingIntegrationsFacebook(createGetMessagingIntegrationsFacebookRequest(pageSize, pageNumber).withHttpInfo()); }
[ "public void listApis(TenantInfo tenant) throws Exception {\n ClientRequest request = new ClientRequest(\"http://agno.groundwork.groundworkopensource.com:8774/v2/\");\n request = request.followRedirects(true);\n request.accept(MediaType.APPLICATION_JSON);\n request.header(\"X-Auth-Token\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int32 subscription_id = 15;
public Builder clearSubscriptionId() { subscriptionId_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; }
[ "public int getSubscriptionId() {\n return subscriptionId_;\n }", "@Override\n public int hashCode() {\n return getSubscriptionId().hashCode();\n }", "public String getSubscriptionId() {\n\t\treturn _subscription_id;\n\t}", "public int getC_SubscriptionType_ID();", "public void setIdSubscript...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of field 'version'. The field 'version' has the following description: Indicates the version number of this process definition among its homonyms. By specifying a version, automatic deployment can tell whether this process is already deployed.
public void setVersion( final int version) { this._version = version; this._has_version = true; }
[ "public void setVersion(String version) {\r\n\t\tif (version == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't version to null\");\r\n\t\tthis.version = version;\r\n\t}", "public void setVersion(final java.lang.String version)\n {\n this._version = version;\n }", "protected void setVersion(int v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$FF: Couldn't be decompiled
public void startIntentSenderFromFragment(Fragment param1, IntentSender param2, int param3, @Nullable Intent param4, int param5, int param6, int param7, Bundle param8) throws SendIntentException { }
[ "static void method_6601() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_5455() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_571() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_8050() {\r\n // $FF: Couldn't be decompiled\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of pop method, of class Stack.
@Test(expected = EmptyStack.class) public void testPop() throws EmptyStack { Stack<Integer> stack = new Stack<Integer>(); stack.push(10); stack.push(15); stack.push(20); assertTrue(stack.top() == 20); stack.pop(); assertTrue(stack.top() == 15); stack.p...
[ "@Test\r\n\tpublic void testPop() {\r\n\t\tCard card1 = new Card(\"Spades\", 1, 1, 1);\r\n\t\tstack.push(card1);\r\n\t\tAssertJUnit.assertEquals(card1, stack.pop());\r\n\t}", "public void testPop()\n {\n Exception thrown = null;\n try\n {\n stack.pop();\n }\n catch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A4 Standard: 210mmx297mm 395.32ptx842.02pt Thus pt/mm = 2.835f => pt = mm 2.835f
private static float millisToPt(int millis) { return millis * 2.835f; }
[ "public void mo24174m() {\n super.mo24174m();\n this.f41120D = 1.0f / ((float) mo24173l());\n this.f41121E = 1.0f / ((float) mo24171j());\n }", "public float getPixelUnitToMillimeter() {\n/* 379 */ return this.ctx.getUserAgent().getPixelUnitToMillimeter();\n/* */ }", "public Po...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 18 / 208 covered goals: Goal 1. org.jfree.chart.plot.CategoryPlot.(Lorg/jfree/data/category/CategoryDataset;Lorg/jfree/chart/axis/CategoryAxis;Lorg/jfree/chart/axis/ValueAxis;Lorg/jfree/chart/renderer/category/CategoryItemRenderer;)V: Line 512 Goal 2. org.jfree.chart.plot.CategoryPlot.(Lorg/jfree/data...
@Test public void test018() throws Throwable { Line2D.Double line2D_Double0 = new Line2D.Double((-1012.885304078), (-503.725356399), (-2095.0), 713.83027273927); CategoryPlot categoryPlot0 = new CategoryPlot(); LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(".7xynV~"); int int0 = cat...
[ "@Test\n public void test27() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"36YucNqE{]6`[sE\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n JFreeChart jFreeChart0 = new JFreeChart((Plot) combinedDomainCategoryPl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Crea un campo radioBox e lo aggiunge ad una pagina. Crea un Campo e lo aggiunge alla Pagina Crea un campo da CampoFactory Invoca il metodo delegato della classe
public abstract Campo creaCampoRadio(String nomeCampo, Pagina unaPagina);
[ "private Campo creaCampoPercorso() {\n /* variabili e costanti locali di lavoro */\n Campo campo = null;\n String nome;\n\n try { // prova ad eseguire il codice\n\n nome = this.getTitoloCampoPercorso();\n campo = CampoFactory.testo(nome);\n CVDBottone ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an object to the room
public void addObject(GameObject go) { this.inventory.addObject(go); }
[ "public void addRoom(Room room) {\n\n\t}", "void addNew(final Object object);", "public void addObject(GameObject object) {\n this.object.add(0,object);\n }", "public void addObject (GameObject object)\r\n\t{\r\n\t\tthis.object.add(object);\r\n\t}", "void add(Object object);", "public void addRo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 356 /Coverage entropy=1.7328679513998633
@Test(timeout = 4000) public void test356() throws Throwable { XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null); // Undeclared exception! try { xmlEntityRef0.em((Object) ""); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e...
[ "@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" ] ] } }
This function avoids creating a new object of this class during deserialization
protected Object readResolve() { return getInstance(); }
[ "@Override\n\tpublic void deserialize() {\n\t\t\n\t}", "private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n \n }", "@Override\n public boolean objectSerialiserOnly() {\n return true;\n }", "private ObjectSerializer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of DirAssDirDISCValidator
public DirAssDirDISCValidator(LSRDataBean lsrDataBean, VendorTableDataBean vendorBean, ValidationDataBean validationData) { super(lsrDataBean, vendorBean, validationData); this.vendorBean = vendorBean; this.validationData = validationData; this.lsrDataBean = lsrDataBean; ...
[ "public CONSENTDIRECTIVEValidator() {\r\n\t\tsuper();\r\n\t\tcdaValidator = CDAValidator.INSTANCE;\r\n\t}", "public PsdstructureValidator() {\n\t\tsuper();\n\t}", "private DirectConeSearcher() {\n }", "public static DomainValidator getInstance() {\n return DOMAIN_VALIDATOR;\n }", "public ClassM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print any formant message
public void print(String message) { logger.println(message); }
[ "public void printMessage(){\n if ( this.message != null && !this.message.equals(\"\") ){\n System.out.println(L.get(\"feedback\") + \" : \" + this.message);\n this.message = \"\";\n } else {\n //System.out.println(L.get(\"feedback\") + \" : \" + L.get(\"unknown-error\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replace all occurrences of the argument "key" in the StringBuffer by value from the argument "rep".
public static final void modifyStringBuffer(final StringBuffer s, final String key, final String replacement) { int keylen; if ((keylen = key.length()) == 0) { return; } int replen = replacement.length(); int ndx = s.indexOf(key); //java 1.4 and higher if (ndx < 0) { return; } do { s.replac...
[ "StoreResponse replace(K key, V newVal) throws Exception;", "private static void substitute(StringBuffer sb,\n String target, String value)\n {\n int i = sb.indexOf(target);\n while (i >= 0) {\n sb.replace(i, i+target.length(), value);\n i =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the number is not a perfect square (ther is no int sqrt), then it returns 1. It does this by trying increasingly large numbers until it finds the right value (or is too high). What is its runtime?
int sqrt(int n) { for(guess = 1; guess * guess <= n; guess++) { if(guess * guess == n) { return guess; } } return -1; }
[ "static long sqrt(long x){\n if (x == 0 || x == 1)\r\n return x;\r\n\r\n // Staring from 1, try all numbers until\r\n // i*i is greater than or equal to x.\r\n long i = 1, result = 1;\r\n\r\n while (result <= x) {\r\n i++;\r\n result = i * i;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to insert element in binary tree.
public void insert(T key) { if (root == null) { root = new Node(key); return; } Queue<Node> q = new LinkedList<Node>(); Node temp = root; q.add(temp); // Do level order traversal until we find // an empty place. while (!q.isEmpty()) { temp = q.poll(); if (temp.left == null) { temp.left ...
[ "SelfBalancingBST<T> insert(T element);", "public void insert(T val) throws Wyjatek_BST;", "TreeNode<Integer> insert(Integer data, TreeNode<Integer> root);", "IBinTree<T> insert(T item, IComparator<T> order);", "public void insert(Object theElement);", "abstract BST insert(int k);", "@SuppressWarnings({...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ja pula a primeira
private void removerProducoesQueIniciamComVariaveisAnteriores() { for (int i = 1; i < variaveis.size(); i++) { Variavel v = variaveis.get(i); List<String> novasProds = new ArrayList<String>(); for (int prodIndex = 0; prodIndex < v.getProducoes().size(); prodIndex++) { String prod = v.getProducoes().get(p...
[ "private void prova() {\n }", "private void controlaBotaoPrescricaoMedica() {\r\n try {\r\n\r\n if (aghuFacade.isHCPA()){\r\n\t\n //ii) Se for o HCPA e a unidade do paciente estiver no parâmetro criado chama AGHUse senão chama AGHWEB\r\n if (unidadeDoAtendimentoE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sms_mall_commodity
int updateByExample(@Param("record") SmsMallCommodity record, @Param("example") SmsMallCommodityExample example);
[ "InventoryInCommodity selectByPrimaryKey(Integer inventory_in_commodity_id);", "@Query(\"SELECT * FROM \" + GlobalClass.TABLE_NAME + \" where \" + GlobalClass.ManufacturerName + \" = '\" + GlobalClass.COMPANY_NAME + \"'\")\n List<ProductTableData> getAllProductOfSecure();", "@Override\n\tpublic List<Commodi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo encargado de mostrar las pantallas actualizadas despues de realizar cualquier actividad
public void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK) { } if (resultCode == RESULT_OK) { if (requestCode == SELECT_FILE) onSelectFromGalleryResult(data); else if (requestCode == REQUEST_CAMERA) ...
[ "private void mostrarContenidoPrestamos() {\n\t\tpanelPrincipal.limpiarPanel();\n\t\tpanelLateral.ocultarBotonLateral(posActual);\n\t\tpanelLateral.mostrarBotonLateral(0);\n\t\tposActual = 0;\n\t\tfor(final Persona persona : Principal.getPersonas()) {\n\t\t\tArrayList<Prestamo> prestamos = persona.getPrestamos();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XDoWhileExpression__Group__5" $ANTLR start "rule__XDoWhileExpression__Group__5__Impl" InternalBotDuino.g:16079:1: rule__XDoWhileExpression__Group__5__Impl : ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) ;
public final void rule__XDoWhileExpression__Group__5__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBotDuino.g:16083:1: ( ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) ) // InternalBotDuino.g:16084:1: ( ( rule__XD...
[ "public final void rule__XDoWhileExpression__Group__5__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:16191:1: ( ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) )\n // InternalOcelet.g:16192:1: ( ( r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a row in the table render.
private String tableRow(int indent, String content) throws FileNotFoundException, IOException { return PrintUtil.applyTemplate("template" + File.separator + "table_top_line.html", new Object[] { indentSpaces(indent), content, "", "", "", COLOR_KEYWORDS, "" }); }
[ "abstract protected void renderRow();", "private TableRow generateNewRow() {\n TableRow tbRow = new TableRow(this.currContext);\n tbRow.setGravity(Gravity.CENTER_HORIZONTAL);\n tbRow.setLayoutParams(\n new TableLayout.LayoutParams(\n TableLayout.LayoutPar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test sending a transaction to central bank. Check if the transaction is send and processed. If it could not connect a fail with the message 'Could not connect to the CentraleBank' is thrown.
@Test public void testSend() { CentralConnection cc = new CentralConnection(BANKING_CODE, CENTRAL_URL, CENTRAL_PORT); Thread t = new Thread(cc); t.start(); try { //Wait for the bank to have registred with the central bank sleep(SHORT_NETWORK_TIMEOUT); } c...
[ "@Test\r\n\tpublic void transferTest() {\r\n\t\tBankAccount bankAccount2 = new BankAccount(customerAccount.getBSN());\r\n\t\ttry {\r\n\t\t\tbankAccount2.deposit(100, CARDNUM);\r\n\t\t} catch (IllegalAmountException | ClosedAccountTransferException e) {\r\n\t\t\t\r\n\t\t} catch (PinCardBlockedException e) {\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
JDove will invoke this method while request before
public abstract void onRequestBefore();
[ "@Override\n public void beforeRequestHook() {\n }", "@Override\n\tpublic void requestZJ() {\n\n\t}", "@Override\n public void onStart() {\n request(2);\n }", "public void ignite() {\n\t\tpageRequestHandler.requestPage(getReference());\n \t}", "protected void before(Request re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the given entry represents a travel authorization
protected boolean doesHeldEncumbranceRepresentAuthorization(HeldEncumbranceEntry heldEntry) { return StringUtils.equals(heldEntry.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) || StringUtils.equals(heldEntry.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes...
[ "boolean isAuthorised(String authority);", "public boolean isEntry(String type, String name){\n for(PermissionTableEntry entry : rightsList){\n if(entry.name.equals(name) && entry.type.equals(type))\n return true;\n }\n return false;\n }", "public boolean haveAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove all the entries in the queue.
void clear();
[ "public void clear() {\n\t\tqueue.clear();\n\t}", "public void clear() {\n this._queue = new ArrayList<>();\n }", "public void clear() {\n mQueue.clear();\n }", "public void clear() {\n\t\t// FIXME\n\t\t// queue.clear();\n\t}", "@Override\r\n\tpublic void clear() {\r\n\t\tnbrOfElements =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an environment that has the same content as this one, plus the binding (name, value).
default EvalEnv bind(String name, Object value) { return new EvalEnvs.SubEvalEnv(this, name, value); }
[ "public Builder env(String name, String value) {\n environment.put(name, Preconditions.checkNotNull(value, \"value must be non-null\"));\n return this;\n }", "@Override\r\n\tprotected IEnvironmentGet make_env() {\n\t\treturn this;\r\n\t}", "public EnvironmentProperties createEnviron...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recursively moves the keys of KeyframesPanes from each child
private void moveSelectedKeysOfEachChild(TreeItem<Metadata> treeItem,double dl){ KeyframePane keyframePane = treeItem.getValue().getKeyframePane(); if(keyframePane!=null){ keyframePane.moveSelectedKeysBy(dl); } for(TreeItem<Metadata> child:treeItem.getChildren()){ ...
[ "@Override\n\tprotected void update(ArrayList<String> pressedKeys) {\n\t\tsuper.update(pressedKeys);\n\t\tfor (DisplayObject child : children) {\n\t\t\tchild.update(pressedKeys);\n\t\t}\n\t}", "private void movement() {\r\n\r\n\t\tpane.setOnKeyPressed(new EventHandler<KeyEvent>() {\r\n\r\n\t\t\tpublic void handle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the player takes the reinforcement action
public void reinforce() { this.strategy.reinforce(); notifyObservers(this); }
[ "public void reinforce(Player player);", "public void cheaterReinforcement (String message) {\n Player player = holder.getActivePlayer();\n holder.sendGameLog(message);\n holder.updatePlayer(player);\n System.out.println(\"Armies allocation has been completed!\");\n\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }