query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Erstellt eine Tabelle in der die gemerkten Profile aufgelistet sind
public void createMerkzettelTable() throws Exception { Connection con = (Connection) DBConnection.connection(); PreparedStatement createMerkzettel = (PreparedStatement) con .prepareStatement("CREATE TABLE IF NOT EXISTS merkzettel(gemerktesProfil varchar(45), " + "merkendesProfil varchar(45), PRIMARY KEY("...
[ "void createProfileTable();", "public void listAll() {\n\t\tfor (Object k : users.keySet()) {\n\t\t\tusers.get((int) k).printShortProfile();\n\t\t}\n\t}", "public Profile[] getProfile();", "public List<UserProfile> listOfAllProfiles();", "private void fillProfile() {\r\n\t\t// Récupération des composants\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to refresh Page
protected void refreshPage() { driver.navigate().refresh(); }
[ "public void refresh() {\n\t\tdriver.navigate().refresh();\n\t\tlog(\"Page is refreshed\");\n\t}", "public void refresh(){\n\t\tlog.info(\"Refreshing the browser window...\");\n\t\texecuteScript(\"history.go(0)\");\n\t}", "protected void refreshCurrentPage() {\n if (mWebView != null) {\n mWebV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the last, last node, is filled.
public boolean isEmptyLast(){ return last == null; }
[ "private boolean full() {\n\t\treturn (this.head == 0 && this.tail == this.max) || (this.head == this.tail+1) ;\n\t}", "public boolean isEmpty() {\n\t\treturn lastNode == null;\n\t}", "public boolean IsFull() {\r\n\t\tboolean filled = false;\r\n\t\t\r\n\t\tif(stateStack[(stateStack.length - 1)] != null)\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method checks, whether a rochade has been selected, and executes it if true
public static boolean executeRochade(final ChessFieldButton capturedButton, final ChessFieldButton markedButton, final List<ChessFieldButton> field) { boolean result = false; int steps; steps = Math.abs(markedButton.getPosition().getRow() - capturedButton.getPosition().getRow()); if ((m...
[ "private boolean checkSelected() {\n return selectedObject != null;\n }", "void chose(boolean choice);", "@Override\n\tprotected boolean actionOnSelect() {\n\t\tfor (int i = 0; i < this.m_BlackCheck.length; i++) {\n\t\t\tthis.m_AreaObject.setBlackListElement(i, this.m_BlackCheck[i].isSelected());\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiply with a quaternion.
public Quaternion mul(final Quaternion quat) { float x = quat.versor.getX(); float y = quat.versor.getY(); float z = quat.versor.getZ(); float w = quat.versor.getW(); float qx = w * versor.getX() + x * versor.getW() - y * versor.getZ()+ z * versor.getY(); float qy = w * versor.getY() + x * versor.getZ() + ...
[ "float multiplie(Quaternion quaternion) {\n return this.x * quaternion.x + this.y * quaternion.y + this.z * quaternion.z + this.w * quaternion.w;\n }", "public static Quaternion multiplyQQ(Quaternion q1, Quaternion q2) {\n\tQuaternion q = new Quaternion(q1);\n\tq.multiplyQ(q2);\n\treturn new Quaternion(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts this service to perform action Foo with the given parameters. If the service is already performing a task this action will be queued.
public static void setWallpaper(Context context, String url) { Intent intent = new Intent(context, WallpaperService.class); intent.setAction(ACTION_SET_WALLPAPER); intent.putExtra(EXTRA_PARAM1, url); context.startService(intent); }
[ "public static void startActionFoo(Context context) {\n Intent intent = new Intent(context, DemoIntentService.class);\n intent.setAction(ACTION_FOO);\n context.startService(intent);\n }", "public static void startActionBaz(Context context, String param1, String param2) {\n Intent in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the location of the mouse
@Override public void mouseClicked(MouseEvent e){ PointerInfo a = MouseInfo.getPointerInfo(); Point b = a.getLocation(); // Gets the x -> and y co-ordinates int x = (int) b.getX(); int y = (int) b.getY(); System.out.println("Mouse x: " + x); System.out....
[ "public Point mousePos() {\n\t\treturn MouseInfo.getPointerInfo().getLocation();\n\t}", "public myPoint getMouse_Raw();", "public MouseEvent getCurrentMousePosition()\n\t{\n\t\treturn currentMousePosition;\n\t}", "public Point2D getMousePosition() {\n return mousePosition;\n }", "public static Vec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enumerate the objects in the queue, in no particular order
public synchronized Enumeration elements () { return q.elements (); }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0;i<10;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tObjQueue.put(i);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of all permissions for a single role.
public ApiResponse<PermissionsResponse> listRolePermissionsWithHttpInfo(String roleId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roleId' is set if (roleId == null) { throw new ApiException( 400, "Missing the required parameter 'roleId' whe...
[ "public List<PermissionDTO> getListOfPermissionDTOByRole(Integer roleId){\n\t\treturn permissionRepo.getPermissionsByRole(roleId);\n\t}", "java.util.List<java.lang.String>\n getAllPermissionsList();", "public IPermission[] getAllPermissions() throws AuthorizationException;", "@Override\n\tpublic List<R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum. Note that the number of characters may differ from the number of bytes in the string. optional uint64 max_len = 3;
@java.lang.Override public boolean hasMaxLen() { return ((bitField0_ & 0x00000008) != 0); }
[ "public int getMaxLength() { return 250; }", "public int getMaxLength( ) {\n return( 15 );\n }", "public void setMaxCharacters(int max);", "public long getMaxLength() {\n return maxLength_;\n }", "public void setMaxLength(long maxLength)\n {\n this.maxLength = maxLength;\n }", "public in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an array of User objects with fields matching the initialized fields of a parameter. Returns an empty list should there be no such Users.
public static User[] getUser(User searchKey){ String sqlSelect = buildSelectStatement(searchKey); CachedRowSetImpl rowSet = null; User[] result = null; try{ rowSet = ServerInterface.getReference().requestSelect(sqlSelect); result = buildEntityFromRowSet(rowSet); } catch(RequestException e){ ErrorM...
[ "List<UserModel> getUsersByFilter();", "IUser[] getUsersByUserId();", "public List<ParameterUser> findAll();", "List<User> getAUsers();", "public static ArrayList<User> getUsers() {\n ArrayList<User> returnArray = new ArrayList<User>();\n\n try {\n database db = new database();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table item
ItemDO selectByPrimaryKey(Integer id);
[ "@Override\n\tpublic void CreateFromSQL() {\n\n\t}", "public interface UserInfoMapperBase {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table user\n *\n * @param example UserInfoExample\n *\n * @return the value of int\n *\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Commit actions and close transaction.
void commitAndClose();
[ "public static void commitTransaction() {\n\t\ttransaction.commit();\n\t}", "public void commit() {\n\t\ttry {\n\t\t\tdatabaseConnection.commit();\n\t\t\tclose();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void commit() {\n\t\ttry {\n\t\t\tconexion.commit();\n\t\t} ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
double lock checking, in above code, synchronised is blocking all the methods, therefore synchronised block is ued for creating the object and reads outside the synchronised.
public static Singleton getFirstInstance() { if (firstInstance != null) return firstInstance; else { synchronized (lock) { if (firstInstance == null) { firstInstance = new Singleton(); return firstInstance; } else return firstInstance; } } }
[ "void obtainLock(){\n writeLock();\n }", "public void lock() { \n sync.acquireShared(1);\n }", "private void lock(){\n\t\tlock.writeLock().lock();\n\t\tlock.readLock().lock();\n\t}", "public void lockWhileInUse() {\n lock.lock();\n }", "public void lock() {\n //s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update de la clase. Hace las funciones de controller.
public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException { Input input = gc.getInput(); lastKey += delta; if (!waitForInput) { if (lastKey >= Main.KEYDELAY) { if (input.isKeyDown(Input.KEY_UP)) { option -= 1; if (option < 0) { option ...
[ "public void testUpdate(){\n \n }", "public void update() {\n\t\tupdateModel();\n\t\tupdateView();\n\t}", "protected void update() {\n\n }", "public void update(){\n updateFields();\n }", "public void update(Carte c);", "@Override\r\n\tpublic void update(Servico servico) {\n\r\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles full lobby, after the app is closed
void handleFullLobby() { (new Timer()).schedule(new TimerTask() { @Override public void run() { System.exit(0); } }, 2*1000L); }
[ "public void lobby() {\n boolean answer = ConfirmBox.display(\"Lobby\", \"Sei sicuro di voler tornare alla lobby?\");\n if (answer) {\n JavaFXStageProducer.getApp().getViewActions().leaveMatch();\n close();\n }\n }", "@Override\r\n\tpublic void onGameEnd() {\n\t\tsupe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a Vector3 set to (0, 0, 1)
public static Vector3 back() { Vector3 result = new Vector3(); result.setBack(); return result; }
[ "public Vector3(){\n this.set(0.0, 0.0, 0.0);\n }", "public Vec3()\n {\n this.x = 0f;\n this.y = 0f;\n this.z = 0f;\n }", "public Vec3 toVec3() {\n\t\treturn Vec3.createVectorHelper(xCoord, yCoord, zCoord);\n\t}", "public Vector3() {\n this(0, 0, 0);\n }", "public Vector3f() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check for required fields
public void validate() throws org.apache.thrift.TException { if (row == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); } // check for sub-struct validity if (timeRange != null) { timeRange.validate(); } ...
[ "boolean hasRequiredFields();", "protected boolean _validateRequired(){\n\n Object value;\n Method method;\n boolean isValid = true;\n boolean fieldInvalid;\n String fieldName;\n for (DataBaseField field : _fields.values()) {\n fieldInvalid = false;\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set this PrimitiveNode so that it is used. Unused nodes do not appear in the component menus and cannot be created by the user. The state is useful for hiding primitives that the user should not use.
public void clearNotUsed() { checkChanging(); userBits &= ~NNOTUSED; }
[ "protected void setUsed(Boolean usedState)\n {\n perfIDIsUsed = usedState;\n }", "protected void setUsed(boolean used) {\r\n \t\tthis.used = used;\r\n \t}", "public void setNotUsed() {\r\n\t\tisUsed = false;\r\n\t}", "public void setIsUsed(boolean isUsed){ this.isUsed = isUsed; }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recurse through the parent types.
private void recurseChildrenTypes(ParentChildren typePC, Collection<String> lineage) { if (typePC != null) { Collection<String> children = typePC.getChildren(); if (children != null) { for (String child : children) { lineage.add(child); recurseChildrenTypes(typeHierarchy_.get(child), lineage); ...
[ "public void markParentClasses(TypeElement type) {\n while (type != null) {\n String typeID = ElementReferenceMapper.stitchClassIdentifier(type, env.elementUtil());\n ReferenceNode node = elementReferenceMap.get(typeID);\n if (node == null) {\n ErrorUtil.warning(\"Encountered .class parent ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
logger.debug("Binary Tree Sort has been used");
@Override public int[] sortArray(int[] arrayToSort) { if (arrayToSort.length == 0) { return arrayToSort; } BinaryTree binaryTree = new BinaryTree(arrayToSort[0]); for (int index = 1 ; index < arrayToSort.length ; index++) { binaryTree.addElement(arrayToSort...
[ "public void sort(){\n values = BinaryProbabilityTree.getSortedTreeFromBinaryPT(values, \r\n getVariables()); \r\n// System.out.println(\"ARBOL DESPUES DE SORT\");\r\n// values.print(5);\r\n }", "void printTree(){\r\n inorder(root);\r\n }", "private void sorted(Node node){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table lt_ad_advertise
int updateByPrimaryKeySelective(AdAdvertise record);
[ "@Override\r\n\tpublic int add(Advertisement lr) {\n\t\t int a =0 ; \r\n\t\t \r\n\t\t try {\r\n\t\t\t \r\n\t\t\t a = this.insert(\"Mapper.Advertisement.insert\", lr);\r\n\t\t\t \r\n\t\t } catch (BaseException e) {\r\n\t\t\t // TODO Auto-generated catch block\r\n\t\t\t e.printStackTrace();\r\n\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
compare function for sorting
public int compareTo(Block o) { //-- ascending order return (int) (this.id - o.id); }
[ "public int compare( Object n1, Object n2 );", "NewExpression sort();", "@Override\n\t\t\tpublic int compare(GiftGameInfo lhs, GiftGameInfo rhs) {\n\t\t\t\treturn lhs.getSortNum() > rhs.getSortNum() ? 1 : -1;\n\t\t\t}", "@Override\n\t\t\t\tpublic int compare(Result arg0, Result arg1) {\n\t\t\t\t\treturn arg0....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate / renamed from: l
public boolean mo5542l(C0813i iVar) { return m3678a(this.f2436o, iVar); }
[ "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public abstract void mo81531l();", "protected void method_5557() {}", "private Lieu() {\n\t}", "public Lv (){\n \tsuper();\n }", "private L1Describe() {\n\t}", "static /* synthetic */ void m9058a(C2891l lVar) throws Exception {\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main display loop that runs once the thread is started.
public void run() { long updateStart; while (true) { updateStart = System.currentTimeMillis(); // clear display m_screen.clear(); // display robot transform Vector2 pos = m_odometer.getPosition(); if (pos != null) ...
[ "@Override\n\t\tpublic void run() {\n\t\t\tLoadScreen();\n\t\t}", "public void run()\n {\n display = \"\";\n resetStatus();\n while(frame.isVisible()){\n resetStatus();\n } \n }", "public void runWithDisplay(){\n\t\tDisplay disp = new Display( this, maxCoordinate )...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TArtifactTemplate__Group_6__2__Impl" $ANTLR start "rule__TArtifactTemplate__Group_6__3" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:33780:1: rule__TArtifactTemplate__Group_6__3 : rule__TArtifactTemplate__Group_6__3__Impl rule__TArtifactTempla...
public final void rule__TArtifactTemplate__Group_6__3() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:33784:1: ( rule__TArtifactTemplate__Group_6...
[ "public final void rule__LangDef__Group_1_2_3__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:11053:1: ( rule__LangDef__Group_1_2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column trade_records.updated_at
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
[ "public void setUpdatedat( Date updatedat ) {\n this.updatedat = updatedat;\n }", "public void setDateUpdate( Timestamp dateUpdate )\n {\n _dateUpdate = dateUpdate;\n }", "public void setUpdatedTs(Date updatedTs) {\n\t\tthis.updatedTs = updatedTs;\n\t}", "public final void setLastUpdate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.proto.Request request = 1;
private com.google.protobuf.SingleFieldBuilderV3< net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.Sin...
[ "cruz.agents.ProtoMessage.BandanaRequest.Type getType();", "transfer_protobuf.Commands.Command.Response getResponse();", "Msg request(Msg req)\n throws Exception;", "private RpcRequest() {}", "public interface Request {\n\n}", "public RequestType getRequest(){\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add input alias to list
public void addInputAlias(String alias) { if (!aliases.contains(alias)) { this.aliases.add(alias); refreshAdapter(); } }
[ "void addAlias(String alias) {\n if (aliases == null) {\n aliases = new ArrayList();\n }\n if (!aliases.contains(alias))\n aliases.add(alias);\n }", "HashMap<String, String> getAliasList();", "public void addAlias(XSDElement alias) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It execute an HTTP DELETE request in the URL specified.
public String delete(String url) { this.setURL(url); return delete(); }
[ "public Response delete(String url) throws URISyntaxException;", "public static HttpResponse httpDelete(String url) throws Exception {\n\t\tHttpClient client = HttpClientBuilder.create().setDefaultRequestConfig(requestConfig).build();\n\t\tHttpDelete httpDelete = new HttpDelete(url);\n\t\treturn client.execute(ht...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int getSize() { return this.size; }
[ "@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" ] ] } }
Visit a Writer node
public Object visit(Writer node){ return null; }
[ "public abstract Writer writer ();", "interface Writer {\n\t void write();\n}", "private void writeNode(BufferedWriter writer, Node node) throws IOException {\n writer.write(node.isTerminal + \"\\n\");\n writer.write(node.quantity + \"\\n\");\n writer.write(node.next.size() + \"\\n\");\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Listenpolicy configured for authentication vserver.
public String get_listenpolicy() throws Exception { return this.listenpolicy; }
[ "@Override\n public void listen(IPolicy p) {\n\n }", "PolicyServiceServer() {\r\n\r\n Map<String, String> environmentVariables = System.getenv();\r\n boolean envNotFound = false;\r\n\r\n if (environmentVariables.containsKey(POLICY_SERVICE_PORT)) {\r\n policyServicePort = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The number of days to wait before deleting the item (relevant for keys only)
@javax.annotation.Nullable @ApiModelProperty(value = "The number of days to wait before deleting the item (relevant for keys only)") public Long getDeleteInDays() { return deleteInDays; }
[ "public double getFileDeletionTime()\n {\n return (deleteEnd - deleteStart) / 1000;\n }", "int getOnlineStorageTtlDays();", "long remainTimeToLive();", "@Override\n public void timeOut() {\n sendDelete();\n }", "public static long getArtifactDustTimeRemaining(ItemStack item) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the MX object parsing the raw content from the parameter MxSwiftMessage
public MxAuth08800101(final MxSwiftMessage mxSwiftMessage) { this(mxSwiftMessage.message()); }
[ "public MxTsmt04100102(final MxSwiftMessage mxSwiftMessage) {\n this(mxSwiftMessage.message());\n }", "public MxTsmt03900102(final MxSwiftMessage mxSwiftMessage) {\n this(mxSwiftMessage.message());\n }", "public MxFxtr03600101(final MxSwiftMessage mxSwiftMessage) {\n this(mxSwiftMessa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
render to response body
@ResponseBody @ExceptionHandler(MissingServletRequestParameterException.class) @ResponseStatus(HttpStatus.BAD_REQUEST) public String wrongParametersHandler(MissingServletRequestParameterException e) { // returns the message of the exception return "Error 400 (Bad Request): The server could n...
[ "protected abstract void render(Map params, String body, Writer writer) throws Exception;", "@Override\n\tpublic void render(HttpServletRequest request, HttpServletResponse response, Object obj) {\n\t\tString jsonStr = \"\";\n\t\tif(obj!=null){\n\t\t\tjsonStr = JSON.toJSONString(obj);\n\t\t}\n\t\ttry {\n\t\t\tres...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end rule__Mixin__Group_3_2__0__Impl $ANTLR start rule__Mixin__Group_3_2__1 ../br.ufes.inf.nemo.ontouml.dsl.ui/srcgen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:5539:1: rule__Mixin__Group_3_2__1 : rule__Mixin__Group_3_2__1__Impl ;
public final void rule__Mixin__Group_3_2__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../br.ufes.inf.nemo.ontouml.dsl.ui/src-gen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:5543:1: ( rule__Mixin__Group_3_2_...
[ "public final void rule__DSLRuleRI__Group_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSasDsl.g:6492:1: ( rule__DSLRuleRI__Group_0__3__Impl )\n // InternalSasDsl.g:6493:2: rule__DSLRuleRI__Group_0__3__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generate a view for this renderer content.
@Override public View render(Context ctx) { // Load photo PicassoHelper.load(ctx, getContent().getImageURLSmall(), ivPhoto); // Set photo title tvPhotoTitle.setText(getContent().getTitle()); return rootView; }
[ "protected abstract ViewType createView();", "protected OsylAbstractView getView() {\r\n\treturn view;\r\n }", "public ViewComponent createViewComponent();", "public String createPageView(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\t\n\t\treturn sb.toString();\n\t}", "@Override\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the reportDate has been initialized. It is useful to determine if a field is null on purpose or just because it has not been initialized.
public boolean isReportDateInitialized() { return reportDateIsInitialized; }
[ "public boolean isCldateInitialized() {\n return cldate_is_initialized; \n }", "public final boolean isFieldInitialized(ZField field) {\r\n\t\treturn (m_initializedFields & (1 << field.getIndex())) != 0;\r\n\t}", "public boolean isSetDate() {\n return (this.mEntryIsSetFieldsSetBitMask & DATE_FI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.example.grpc.server.grpcserver.director.ProtoDirector director = 1;
public Builder addDirector( int index, com.example.grpc.server.grpcserver.director.ProtoDirector.Builder builderForValue) { if (directorBuilder_ == null) { ensureDirectorIsMutable(); director_.add(index, builderForValue.build()); onChanged(); } else { directorBuilder_...
[ "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "data.PersonProto.PersonOrBuilder getPersonOrBuilder();", "proto.CarOrBuilder getCarOrBuilder();", "com.ubbcluj.amcds.myDalgs.communication.Protocol.Pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add new method to current generated class which overrides original method specified as parameter.
private void addOverridingMethod(APIMethod method) { // return type have to be public or protected class if (!checkTypeAccessModifier(APIModifier.PROTECTED, method.getReturnType(),method.getTypeParamsMap().keySet())) { return; } // all methods params has to be public...
[ "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/ASTContext.cpp\", line = 1295,\n FQN=\"clang::ASTContext::addOverriddenMethod\", NM=\"_ZN5clang10ASTContext19addOverriddenMethodEPKNS_13CXXMethodDeclES3_\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this list has no observers, false otherwise.
public boolean isEmpty () { return size() == 0; }
[ "public boolean isEmpty() {\n return listeners.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn this.listeners == NULL;\n\t}", "public boolean isEmpty() {\n return events.isEmpty();\n }", "@Override\r\n\tpublic boolean isEmpty () {\n\t\treturn this.internal_list.isE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adding a constructor allows for access to the ArrayList by other classes.
public Job(){ this.JobDuties = new ArrayList<String>(); }
[ "public ArrayList() {\n \t\tthis(16);\n \t}", "ArrayList () {\r\n\t\tthis ( defaultSize );\r\n\t}", "public ArrayList1() {\n\t\tarrayList = new ArrayList<>();\n\t}", "public Arrlist() {\r\n\r\n\t}", "public ArrayList() {\n this(10);\n elementCount = 0;\n size = 10;\n }", "ArrayLine...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called every time the scheduler runs while the command is scheduled.
@Override public void execute() { if(!tokyoDrift.isScheduled()){ if(HAL9000 == 1) { if (threeMusketeers[1] == 0) { threeMusketeers[1] = dracula.getSensourLeft(); threeAngles[1] = whee.getCurrentAngle(); } if (timer.get() > 0.2) { System.out.println(); ...
[ "@Override\n public void autonomousPeriodic()\n {\n CommandScheduler.getInstance().run();\n }", "@Override\n public void schedule() {\n }", "@Override\r\n public void run() {\n schedule();\r\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TestSmellMetricsThresholdsList list = new ConfigFileHandler().readThresholds(new File("C:\\Users\\Psycho\\IdeaProjects\\ProgettoExample\\default_config.ini"));
@Override public void actionPerformed(AnActionEvent e) { String userDir = System.getProperty("user.home"); String pluginFolder = userDir + "\\.temevi"; LOGGER.info(System.getProperty("java.home")); File config = new File(pluginFolder + "\\default_config.ini"); LOGGER.info(con...
[ "@Test\n public void readConfig(){\n assertTrue(app.ghosts.size() == 5);\n assertTrue(app.fruitLeft == 299);\n assertTrue(app.lives == 10);\n assertTrue(app.frightenedLength == 3);\n assertTrue(app.speed == 1);\n\n }", "private List<String> getConfig(){\r\n File fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the selected cell. If no cell is selected a dummy cell with the selected source and target is returned. Both source and target may or may not be empty in that case.
public Cell getSelectedCell() { if (selectedCell != null) return selectedCell; DefaultCell cell = new DefaultCell(); if (sourceTypeSelector.getSelectedObject() != null) { ListMultimap<String, Type> sources = ArrayListMultimap.create(1, 1); sources.put(null, new DefaultType((TypeEntityDefini...
[ "public mxCell getSelectedComponent() {\n\t\tmxCell cell;\n\t\tcell = (mxCell)this.getGraph().getSelectionModel().getCell();\n\n\t\treturn cell;\n\n\t}", "protected Coord getSelected() {\r\n if (selectedLabel == null) {\r\n return null;\r\n }\r\n return selectedLabel.cord;\r\n }", "public String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public final void mo56103d(float f, float f2) { this.f56030b.mo108716e(f, f2); }
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodos Se encarga de inicializar los atributos y relaciones de la clase buscaminas a partir del nivel elegido por el usuario
private void inicializarPartida() { if (nivel == PRINCIPIANTE) { squares = new Square[FILAS_PRINCIPIANTE][COLUMNAS_PRINCIPIANTE]; setCantidadMinas(CANTIDAD_MINAS_PRINCIPIANTE); } else if (nivel == INTERMEDIO) { squares = new Square[FILAS_INTERMEDIO][COLUMNAS_INTERMEDIO]; setCantidadMinas(CANTIDAD_MINA...
[ "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISUSUARIO_DNI=\"\";\n\t\tNOMBRE=\"\";\n\t\tAPELLIDO1=\"\";\n\t\tAPELLIDO2=\"\";\n\t\tTELEFONO=\"\";\n\t\tEMAIL=\"\";\n\t\tDIRECCION=\"\";\n\t\tFECH_NACIMIENTO=\"\";\n\t\tSEXO=\"\";\n\t\t\t\n\t}", "@Override\n\tpublic void inicializar() thro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public XContentBuilder addEntry(String index, String type, Object content) { Map<String, String> headers = ((LogEntry)content).getHeaders(); byte[] body = ((LogEntry)content).getBody(); Map<String, String> map = new HashMap<String, String>(); XContentBuilder json = null; try { json = XContentFac...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "SourceID" element
void xsetSourceID(x0401.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax30Car sourceID);
[ "void xsetSourceId(org.apache.xmlbeans.XmlString sourceId);", "public void setSourceID(java.lang.String sourceID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
entry point from the model, requests grid be redisplayed
public void updateView( LifeCell[][] mg ) { grid = mg; repaint(); }
[ "public void updateGrid() {\n }", "@Override\n\tpublic void doGridUpdate() {\n\t\t\n\t}", "public void refreshGrid(Grid grid){\r\n\t\tif(dataManager.getData() != null){\r\n\t\t\tgrid.setModel(new ListModelList(dataManager.getData()));\r\n\t\t}\r\n\t}", "public void gridChanged();", "void execute(){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public void mo9563a(List<IdJournal> list) { this.f1580d = list; }
[ "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" ] ] } }
API for closing the Gitlab connections.
public void disconnect() { gitLabApi.close(); }
[ "public void closeConnectionPool(){\n storeHelper.shutdown();\n }", "void closeConnections();", "@After\n @SuppressFBWarnings(\"BC_UNCONFIRMED_CAST_OF_RETURN_VALUE\")\n public void disposeContainer() {\n gitServer.get().close();\n }", "public static void close() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The caret has moved, set a new selection so that the copy menu item is updated correctly.
private void handleSelectionChanged() { currentSelection.handleSelectionChanged( new Selection(editor, editController)); }
[ "@Override\n\tpublic void copy() {\n\n\t\tif( selector.getactive() ) //si la selection est active alors copy de la selection dans le clipboard\n\t\t{\n\t\t\tclipboard = page.substring(min(), max());// utilisation de substring() qui est une methode de API StringBuffer\n\t\t\tselector.desactiveSelection();\n\n\t\t}//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a 16 characters password, using the provided set of eligible characters.
public static String generatePassword(final char[] eligibleCharacters) { return generatePassword(eligibleCharacters, 16); }
[ "private static String generatePassword() {\n final String allowed = \"23456789abcdefghijkmnpqrstuvwxyz\";\n final int passLength = 15;\n\n StringBuilder sb = new StringBuilder(passLength);\n SecureRandom random = new SecureRandom();\n for (int i = 0; i < passLength; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@When("^User enter valid username and password$") public void User_enter_valid_username_and_password() throws Throwable { plaza.HomeScreen().emailentry("sree2sree02@gmail.com"); plaza.HomeScreen().passcodeentry("123@sreekanth"); }
[ "@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" ] ] } }
GENLAST:event_btnRoutePlannerActionPerformed Let the user end the journey by closing the application, thus making it unable to answer to any further pings from a vehicle.
private void btnEndJourneyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEndJourneyActionPerformed String title = "Exit application"; String msg = "Are you sure you want to \nend your journey?"; int end = JOptionPane.showConfirmDialog(parent, msg, title, ...
[ "private void stopRoute() {\n Log.d(TAG, \"stopRoute: STOPPING ROUTE\");\n RouteHandler.INSTANCE.finishRoute();\n stopButton.setVisibility(View.GONE);\n Toast.makeText(requireContext(), getResources().getString(R.string.route_stop_toast), Toast.LENGTH_SHORT).show();\n mapView.getO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onInfo(MediaPlayer mp, int what, int extra) { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the length of the compressed data.
public int getCompressedDataLength(){ return _compressedDataLength; }
[ "public int getUncompressedLength();", "public int get_data_size_z() { return data_size_z; }", "int size() {\n // 4 bytes for each length, type and crc32.\n // then add the data length.\n return 12 + getDataLength();\n }", "public long getUncompressedSize() {\n return uncompressedSi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If there are no floors, then no trials needed. OR if there is one floor, one trial needed.
static int eggDrop(int numberOfEggs, int numberOfFloors) { if (numberOfFloors == 1 || numberOfFloors == 0) return numberOfFloors; // We need k trials for one egg and k floors if (numberOfEggs == 1) return numberOfFloors; int min = Integer.MAX_VALUE, x, res; ...
[ "@Test\n public void testMovementInAllCorridorsOfFloor(){\n hotel = Hotel.setUpHotel(2 , 1,3,60);\n\n hotel.onMovement(1,3);\n hotel.onMovement(1,1);\n hotel.onMovement(1,2);\n\n // Only Long running ac will be turned off As turning off light wont be a good user experience. Can...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sys_rule_set_snapshot.content
public void setContent(String content) { this.content = content; }
[ "public void setContent(String value)\n {\n try\n {\n if(value != null)\n {\n set(contentDef, value);\n }\n else\n {\n unset(contentDef);\n }\n }\n catch(ModificationNotPermite...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the timestamp of the event.
public void setTimestamp(long value) { timestamp = value; setFields.add(EventField.TIMESTAMP); }
[ "public com.micer.core.event.Event.Builder setTimestamp(long value) {\n validate(fields()[3], value);\n this.timestamp = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void setTimestamp( final long aTimestamp )\n {\n this.timestamp = Long.valueOf( aTimestamp );\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the static context for the expressions being visited. Note: this may not reflect all changes in static context (e.g. namespace context, base URI) applying to nested expressions
public StaticContext getStaticContext() { return staticContext; }
[ "public static Context getStaticCurrentContext() {\n return instance;\n }", "public Set<StaticContextMethod> getStaticContexts() {\n\t\treturn staticContexts;\n\t}", "static Context getContext() {\n return CONTEXT;\n }", "public static Context getContext() {return context;}", "public sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'featuredApps' field is set and is not null
public boolean isNotNullFeaturedApps() { return genClient.cacheValueIsNotNull(CacheKey.featuredApps); }
[ "boolean hasIsApp();", "@java.lang.Override\n public boolean hasAppValue() {\n return appValue_ != null;\n }", "public boolean hasFestivalSettings() {\n return festivalSettingsBuilder_ != null || festivalSettings_ != null;\n }", "public boolean hasApp() {\n return distributionchannel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get instance of Members to access Members Lists
@Override public void mouseClicked(MouseEvent e) { Members members = Members.getInstance(); //find person Person p = members.getPatients().findMemberByName(searchField.getText()); //make person a patient to access patient methods Patient patient = (Patient)p...
[ "Members members();", "List<_member> listMembers();", "public List<User> getMembers(){\n return members;\n }", "java.util.List<TfGcmessages.CSOTFPartyMember> \n getMembersList();", "public ArrayList<Object> getMembers(){\n\t\treturn listOfMembers;\n\t}", "@Override\r\n\tpublic List<Member...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int updateDeletedNullById(Map<String, Object> map) { return mapper.updateDeletedNullById(map); }
[ "@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" ] ] } }
Provides access to a view. This can either be a userselected view (combobox within a panel), or the currently active view
public View getView();
[ "public abstract View getSelectedView();", "public View getView()\n\t{\n\t\treturn getActiveView();\n\t}", "public View getView() {\r\n\t\treturn oView ;\r\n\t}", "public MainView getView() {\n\t\treturn view;\n\t}", "public IView getView() {\r\n\t\treturn view;\r\n\t}", "protected OsylAbstractView getVie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read line from the file using method readUTF and returns it.
public static String readFromFile() { try { DataInputStream dos = new DataInputStream(new BufferedInputStream(new FileInputStream(FILES_TEST_PATH))); String s = dos.readUTF(); dos.close(); return s; } catch (IOException e) { e.printStac...
[ "public String read() {\r\n String _line=null;\r\n init(); \r\n \r\n try {\r\n if (_reader.hasNextLine()) _line=_reader.nextLine();\r\n }\r\n catch (Exception ex) {\r\n throw new FileReaderException(ex.getMessage());\r\n }\r\n \r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new AVLayout
public AVLayout() { // Does Nothing }
[ "public JPanel createLayout(){\n\t\treturn null;\n\t\t\n\t}", "public com.gazoomobile.mxalm.TVerticallayout addNewVerticallayout()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.gazoomobile.mxalm.TVerticallayout target = null;\n target = (com.gazoomo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method sets the local coordinates of the 4 vertices of the standard square, the 4 local coordinates are in counter clockwise order, starting from the lower right corner.
public void setVertices(double d) { xLocal = new double[]{d, d, -d, -d}; yLocal = new double[]{d, -d, -d, d}; }
[ "protected void setVerticesCoordinates() {\n\t\tArrayList<Integer> h = graph.getVertices();\n\t\tint s = h.size();\n\t\tint i = 0;\n\t\tfor (Integer n : h) {\n\t\t\tint x1 = (int) (300D + 200D * Math\n\t\t\t\t\t.cos(((double) (2 * i) * 3.1415926535897931D) / (double) s));\n\t\t\tint y1 = (int) (300D + 200D * Math\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
paramsThroughActivity = (ParamsThroughActivity) getIntent().getSerializableExtra("checkItem");
private void initParams(){ sqlCmd = new SqlCmd(); imageView = findViewById(R.id.scan_line); barCode = findViewById(R.id.bar_code); barCode.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView,...
[ "@Override\n public void itemClick(View view, int position, Item item) {\n ItemParcelable itemParcelable=new ItemParcelable(item);\n Intent intent=new Intent(this,DetailsActivity.class);\n intent.putExtra(\"data\",itemParcelable);\n startActivity(intent);\n\n }", "private void ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the client table data for the given channelNumber
public void updateClientTable(Vector<String[]> clientList, final String channelNumber) { // try to get the ssh client table JTable clientTable = clientTables.get(channelNumber); if (clientTable != null) { SSHClientTableModel model = (SSHClientTableModel) clientTable.getModel(); ...
[ "public void updateDataTable(String message);", "private void clientEditChannel(Client client)\n {\n DataInputStream dis = null;\n DataOutputStream dos = null;\n try\n {\n dis = new DataInputStream(client.getSocket().getInputStream());\n dos = new DataOutputStr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the class is implicitly imported by Tea. Returns true if the specified class represents a primitive type or a class or interface defined in one of the IMPLICIT_TEA_IMPORTS packages. This method also works for array types.
public boolean isImplicitTeaImport() { return getTeaToolsUtils().isImplicitTeaImport(mType); }
[ "public boolean isOrdinaryClass() {\n\t\treturn false;\n\t}", "public static <T extends EObject> boolean isImportOfType(final Resource context, final String importUri, final Class<T> expectedRootType) {\n final List<EObject> modelContents = LemmaUtils.getImportedModelContents(context, importUri);\n if (((mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .AppAuth app_auth = 1;
public boolean hasAppAuth() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "public APIAuth(){\n\n }", "public static native void testCreateAppWithAccess(AuthReq authReq, CallbackResultApp oCb);", "public void setAuthApp(String authApp) {\n addField(AUTH_APP, authApp);\n }", "@Override\n public com.mogujie.jarvis.protocol.AppAuthProtos.AppAuth getAppAuth() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the specified Entity in the database.
public void deleteEntity(String entityID, String pageID, String lectureID) { // Create a query to delete the entity with the specified ID. String query = String.format( "delete from ENTITY " + "where ENTITYID=%s " + "and PAGEID=%s " ...
[ "void deleteEntity(E entity);", "public void deleteEntity(Object entity) {\n HibernateUtil.getCurrentSession().beginTransaction();\n HibernateUtil.getCurrentSession().delete(entity);\n HibernateUtil.getCurrentSession().getTransaction().commit();\n\n }", "public void delete(T entity) {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ajoute un utilisateur, en specifiant ses attributs (identifiant, mot de passe). Ses proprietes (admin, pcreator) sont false
public void addUser(String login, String passwd) throws NullPointerException, Exception { addUser(login, passwd, false, false); }
[ "private boolean createUser() {\n\t\tif (rbAdmin.isSelected()) {\n\t\t\ttype = UserType.ADMIN;\n\t\t} else {\n\t\t\ttype = UserType.USER;\n\t\t}\n\t\treturn users.saveUser(tfUsername.getText(),\n\t\t\t\tString.valueOf(pfPassword.getPassword()), type);\n\t}", "@RequestMapping(value = \"/ajouter-user\", method = Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by luoyy on 2015/8/12 0012.
public interface IFileModel { //注意:文件上传后返回的url是不可以直接访问的。 /** * -------上传图片 * * @param filePath * @param onUploadListener */ void uploadPic(String filePath, OnUploadListener onUploadListener); /** * @param filename -------------文件上传后得到的filename * @param down...
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\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}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We need the opposite mapping, extraction method requires it.
public void parse() throws IOException{ try { JsonFactory jfactory = new JsonFactory(); /*** read media mapping from file ***/ JsonParser jParser = jfactory.createJsonParser(mediaFile); while(!jParser.isClosed()){ JsonToken jsonToken = jParser.nextToken(); ...
[ "public AMapping reverseSourceTarget() {\r\n AMapping m = MappingFactory.createDefaultMapping();\r\n for (String s : map.keySet()) {\r\n for (String t : map.get(s).keySet()) {\r\n m.add(t, s, map.get(s).get(t));\r\n }\r\n }\r\n return m;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Align exception with the one in ModelNodeget(ModelType). It's throwing an illegal state exception...
private <T> DomainObjectProvider<T> createObjectInternal(ModelNode entity, ModelType<T> type) { Preconditions.checkArgument(ModelNodeUtils.canBeViewedAs(entity, type), "node '%s' cannot be viewed as %s", entity, type); @SuppressWarnings("unchecked") val fullType = (ModelType<T>) ModelNodeUtils.getProjections(enti...
[ "public void checkModel() throws ModelSemanticsVerificationException {\n\t\tsuper.checkModel();\n\t\t// TODO: check the rest\n\t}", "@Override\n\tprotected void prepareModel() throws Exception {\n\t}", "public void testNotifyGraphEdgeChangeIfSemanticModelNull() throws Exception {\n graphEdge.setSemanticM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the previous interval to display
public void setPrev() { if (start-delta>0) { page--; start -= delta; last = false; } }
[ "private void setPrevious() {\n calculator.resetPreviousExpression();\n textViewPrevious = (TextView) findViewById(R.id.tvPrevious);\n textViewPrevious.setMovementMethod(new ScrollingMovementMethod());\n setPrevious(\"\");\n }", "public void previous() {\r\n\t\t;\r\n\t}", "public void previous() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for represent Tag resource
public interface Tag { /** * Retrive the id of the tag * * @return the id */ int getId(); /** * Change the id of the question * * @param id new id of the tag */ void setId(int id); /** * Retrieve the name of the tag * * @return the name of the tag */ String getName(); ...
[ "abstract Tag tag();", "tag getTag();", "public interface Tag\n{\n String GetName(); // Returns the tag's name\n}", "public interface TagInterface {\n Object getTagRequest();\n}", "public interface Tag extends Constructible, Extensible<Tag> {\n\n /**\n * Returns the name of the tag\n *\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return activity parent view
private static ViewGroup getActivityDecorView() { ViewGroup decorView = null; decorView = (ViewGroup) ((Activity) getContext()).getWindow().getDecorView(); return decorView; }
[ "public Activity getParent() { return parent; }", "public View getParentView() {\n//$Section=Attribute get$ID=42A1D01301F4$Preserve=no\n return iParentView;\n//$Section=Attribute get$ID=42A1D01301F4$Preserve=no\n }", "@Override\n public Intent getParentActivityIntent() {\n return getParentAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
unbind the acceptor from the binded port and close all the connections
public static void unbind(NioSocketAcceptor acceptor) { for (IoSession session : acceptor.getManagedSessions().values()) { session.close(true); } while (acceptor.isActive() || !acceptor.isDisposed()) { acceptor.unbind(); acceptor.dispose(false); } ...
[ "public void shutdown() {\n\t\tmRunning = false;\n\t\ttry {\n\t\t\tmSocket.close();\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\tmServer.removeHanlder(this);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error: failed to close read and wirte buffers and the socket. Due to: \"\n\t\t\t\t\t\t\t\t+ e.getM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This methods search and count the number of digit at the good position compare to the mystery pattern.
public static int findNbDigitsGoodPos(final int[] pNumberToCompare, final int[] pMysteryNumber) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Start search for nb digits in good pos"); //$NON-NLS-1$ LOGGER.trace("Number to compare : " + pNumberToCompare); //$NON-NLS-1$ LOGGE...
[ "@Test\n public void test117() throws Throwable {\n String string0 = StringUtils.rightPad(\"UPQB\", 160);\n int int0 = StringUtils.countMatches(\"UPQB ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end onCreate() MENU BUTTON ON ACTION BAR
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_account, menu); return true; }
[ "@Override\r\n\tprotected void _menu() {\n\t\tfinish();\r\n\t}", "@Override\n public void finish() {\n super.finish();\n openMenu();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.finish, menu);\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overriding Methods getItemViewType & getItemId and returning 'position' on both prevents recyclerView from reusing/duplicating the same Views. Source:
@Override public int getItemViewType(int position) { return position; }
[ "@Override\n public int getItemViewType(int position) {\n\n return position;\n }", "@Override\n public int getItemViewType(int position) {\n return getItemType(position);\n }", "@Override\n public int getItemViewType(int position) {\n return IGNORE_ITEM_VIEW_TYPE;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pick image from gallery
private void addimage(){ Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Picture"), PICK_IMAGE); }
[ "public void chooseImageFromGallery() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, requestGallery);\n }", "public void pickImage() {\n Intent intent = new Intent...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Only called by writeBlocksList and writeBlocksTemplate
private void clearHeapEndPtr() { /** * shouldn't this also clear m_stack ??? * Note that no error may happen if the caller behaves correctly, * meaning he doesn't call pop more often than push! * Then even if he calls pop less than push no bug may ...
[ "void formBlockReport() {\n for (int idx = blocks.size()-1; idx >= nrBlocks; idx--) {\n Block block = new Block(blocks.size() - idx, 0, 0);\n blocks.set(idx, new BlockReportReplica(block));\n }\n blockReportList = BlockListAsLongs.encode(blocks);\n }", "public static void save_bloc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Interlmpl inter = new Interlmpl(); System.out.println(inter.add(10, 10)); System.out.println(inter.sub(5, 10)); // 인터페이스는 기능이 구현되어 있지않음으로 // 객체를 생성할 수 없습니다. // ---------------------------------------- // Inter inter = new Inter(); // 인터페이스는 구현 클래스를 할당 받을 수 있습...
[ "@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" ] ] } }
Instantiates a new location.
public Location() { }
[ "public Location() {\n\t\tsuper();\n\t}", "public Location() {\n super();\n }", "public Location() {\n }", "public Location()\n {\n }", "public MyLocation() {\n }", "public Location(Location loc)\n {\n row = loc.row;\n col = loc.col;\n }", "public Location()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the set of operation definitions contained in this dictionary. This is an optional property.
public Set<? extends OperationDefinition> getOperationDefinitions() throws PropertyNotPresentException;
[ "public ArrayList<OperationDesc> getOperations() {\r\n return mOperations;\r\n }", "public Set<OperationOptionInfo> getOperationOptionInfo() {\r\n return declaredOperationOptions;\r\n }", "Set<Operation> getAvailableOperations();", "public Map<Operation, Operation> getMethodsToOperations()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column ylk_org.memo
public String getMemo() { return memo; }
[ "public java.lang.String getMemo() {\n return this.memo;\n }", "@Override\r\n\tpublic List<MemoVO> getMemo() {\n\t\tlogger.info(\"<== getMemo\");\r\n\t\treturn sqlSession.getMapper(MemoMapper.class).selectMemo();\r\n\t}", "public String getMemo()\n/* */ {\n/* 313 */ return this.memo;\n/* */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by chronoer on 2019/3/25.
public interface OnGameStateListener { void onComboLines(int lines); void onGameStateChange(int state); void onNeedTile(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "public void mo1857d() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TextView textDesc = (TextView) view.findViewById(android.R.id.text1); TextView textValor = (TextView) view.findViewById(android.R.id.text2);
@Override public void bindView(View view, Context context, Cursor cursor) { TextView textDesc = (TextView) view.findViewById(R.id.textDescricao); TextView textPlataforma = (TextView) view.findViewById(R.id.textPlataforma); TextView textValor = (TextView) view.findViewById(R.id.textValor); textDesc...
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main_prueba);\n\n Bundle b = new Bundle();\n b = getIntent().getExtras();\n\n String nombre = b.getString(\"NOMBRE\");\n String apel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for Bluetooth support and then check to make sure it is turned on Emulator doesn't support Bluetooth and will return null
private void checkBTState() { if (btAdapter == null) { errorExit("Fatal Error", "Bluetooth not support"); } else { if (btAdapter.isEnabled()) { Log.d(TAG, "...Bluetooth ON..."); } else { //Prompt user to turn on Bluetooth ...
[ "private boolean checkBluetoothLESupport() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.string_ble_not_support, Toast.LENGTH_SHORT).show();\n stopSelf();\n return false;\n }\n // Initialize...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Animate the dragItem to an automatically inserted placeholder item. A placeholder cell will be created for the reuse identifier and inserted at the specified indexPath without requiring a dataSource update. The cellUpdateHandler will be called whenever the placeholder cell becomes visible; collectionView:cellForItemAtI...
@NotNull @Generated @Selector("dropItem:toPlaceholder:") @MappedReturn(ObjCObjectMapper.class) UICollectionViewDropPlaceholderContext dropItemToPlaceholder(@NotNull UIDragItem dragItem, @NotNull UICollectionViewDropPlaceholder placeholder);
[ "protected void onDropInternal(Event event, Cell cell, Item item) {\r\n }", "public abstract void dragApplied(int indexOfTheDraggableItem, MyPoint position);", "public void handleDrop() {\n if (mDraggedEntry != null) {\n if (isIndexInBound(mDragEnteredEntryIndex) &&\n mDr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public HashMap<String, Object> checkLoginisNotDuplicated(String loginUser, String loginPassword) { Connection con=null; PreparedStatement ps=null; ResultSet rs=null; HashMap<String, Object> resultMap=new HashMap<String, Object>(); try { System.out.println("Value come from Parameter "+loginUser +" "+loginPa...
[ "@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" ] ] } }
Called once after isFinished returns true
@Override protected void end() { }
[ "@Override\n\t\t\tprotected boolean isFinished() {\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n protected boolean isFinished() {\n\n return false;\n\n }", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "protected final boolean isFinished(){ return true; }", "prote...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make sure to not withdrawal the negative or zero amount value
public String makeWithdrawal(Account account, double amount) { if(amount<=0) { return Constants.INVALID_AMOUNT; } if((account.getOverdraft() + account.getBalance()) < amount) return Constants.INSUFFICIENT_BLANCE; else { account.setBalance(account.getBalance() - amount); account.getOperationLi...
[ "void withdraw(int amount) {\n if (amount !=0) {\n balance = balance - amount;\n previousTransaction = -amount;\n }\n }", "public void withdraw (double amount)\r\n\t{\r\n\t\tif (amount <= 0)\r\n\t\t\tValidation.reportError(\"invalid withdrawal amount\");\r\n\t\telse if (amou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }